/* ==========================================================================
   tez-prava.uz — SEO Landing Page Stylesheet
   ========================================================================== */

:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Modern HSL Color Palette */
  --primary: hsl(221, 83%, 53%);
  --primary-hover: hsl(221, 83%, 45%);
  --primary-light: hsl(221, 83%, 96%);
  
  --secondary: hsl(215, 25%, 27%);
  --accent-green: hsl(152, 69%, 41%);
  --accent-orange: hsl(35, 92%, 50%);
  --accent-red: hsl(0, 84%, 60%);
  --accent-purple: hsl(263, 70%, 58%);
  --accent-cyan: hsl(188, 86%, 42%);

  --bg-page: hsl(210, 30%, 98%);
  --bg-card: hsl(0, 0%, 100%);
  --bg-card-hover: hsl(210, 20%, 99%);
  
  --text-main: hsl(217, 33%, 17%);
  --text-muted: hsl(215, 16%, 47%);
  --text-light: hsl(215, 20%, 65%);
  
  --border-color: hsl(214, 25%, 90%);
  --border-light: hsl(214, 25%, 94%);
  
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 20px 35px -8px rgba(15, 23, 42, 0.1), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

.w-full {
  width: 100%;
}

.subheading {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.1rem;
  max-width: 680px;
  margin-inline: auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(240, 75%, 58%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.top-announcement {
  background: hsl(221, 83%, 12%);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.announcement-link {
  color: hsl(35, 92%, 65%);
  font-weight: 700;
  font-size: 0.85rem;
}

.announcement-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: var(--radius-md);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.logo-tld {
  color: var(--text-main);
}

.logo-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--primary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-hero-main {
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.btn-hero-main:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.btn-hero-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 1.1rem;
  padding: 16px 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.btn-hero-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-large {
  font-size: 1.1rem;
  padding: 16px 36px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 60px 0 80px;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.stat-mini-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-mini-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-mini-divider {
  width: 1px;
  height: 36px;
  background: var(--border-color);
}

/* Hero Simulator Mockup */
.exam-simulator-mockup {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: var(--transition);
}

.exam-simulator-mockup:hover {
  transform: translateY(-4px);
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: hsl(215, 30%, 96%);
  border-bottom: 1px solid var(--border-color);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mockup-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.mockup-timer {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-orange);
  background: rgba(245, 158, 11, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
}

.mockup-body {
  padding: 24px;
}

.mockup-q-num {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.mockup-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.45;
}

.mockup-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mockup-opt {
  padding: 12px 16px;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mockup-opt.active-opt {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--accent-green);
  color: hsl(152, 69%, 30%);
  font-weight: 600;
}

.check-icon {
  font-weight: 800;
  color: var(--accent-green);
}

.mockup-cta-btn {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mockup-cta-btn:hover {
  background: var(--primary-hover);
}

/* ==========================================================================
   Keywords Bar
   ========================================================================== */
.keywords-bar {
  background: #fff;
  border-block: 1px solid var(--border-color);
  padding: 16px 0;
}

.keywords-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.keywords-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.keywords-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-tag {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
}

.keyword-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.section-about {
  padding: 80px 0;
  background: var(--bg-page);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.about-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.about-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.about-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   Tickets Section (1-50)
   ========================================================================== */
.section-tickets {
  padding: 80px 0;
  background: #fff;
}

.tickets-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 12px;
}

.ticket-badge {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ticket-badge span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.ticket-badge small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ticket-badge:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.ticket-badge:hover span {
  color: var(--primary);
}

/* ==========================================================================
   Topics Section
   ========================================================================== */
.section-topics {
  padding: 80px 0;
  background: var(--bg-page);
}

.topics-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.topic-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  transition: var(--transition);
}

.topic-item:hover {
  background: #fff;
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}

.topic-num {
  width: 32px;
  height: 32px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Traffic Signs Section
   ========================================================================== */
.section-signs {
  padding: 80px 0;
  background: #fff;
}

.signs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sign-group-card {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: var(--transition);
}

.sign-group-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-sm);
}

.sign-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.sign-group-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.sign-group-card p {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   Exam Rules Section
   ========================================================================== */
.section-exam-rules {
  padding: 80px 0;
  background: var(--bg-page);
}

.exam-rules-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.rules-title {
  font-size: 2rem;
  margin-bottom: 20px;
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rules-list li {
  font-size: 1rem;
  color: var(--text-main);
  position: relative;
  padding-left: 24px;
}

.rules-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 800;
}

.rules-action-box {
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}

.rules-box-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.rules-box-desc {
  font-size: 0.92rem;
  margin-bottom: 20px;
}

/* ==========================================================================
   Cyrillic SEO Section
   ========================================================================== */
.section-cyrillic-seo {
  padding: 50px 0;
  background: #fff;
}

.cyrillic-box {
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.cyrillic-box h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.cyrillic-box p {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.cyrillic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cyrillic-tags a {
  background: #fff;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.cyrillic-tags a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.section-faq {
  padding: 80px 0;
  background: var(--bg-page);
}

.faq-container {
  max-width: 800px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item[open] {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: var(--text-main);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.section-cta {
  padding: 40px 0 80px;
  background: var(--bg-page);
}

.cta-box {
  background: linear-gradient(135deg, hsl(221, 83%, 53%) 0%, hsl(224, 76%, 42%) 100%);
  border-radius: var(--radius-xl);
  padding: 50px 44px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: var(--shadow-lg);
}

.cta-title {
  color: #fff;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 560px;
}

.btn-cta {
  background: #fff;
  color: var(--primary);
  font-size: 1.1rem;
  padding: 18px 36px;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.btn-cta:hover {
  background: var(--bg-page);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: hsl(217, 33%, 12%);
  color: #fff;
  padding: 60px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  padding-bottom: 50px;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.footer-text {
  color: hsl(215, 20%, 65%);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 60px;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: hsl(215, 20%, 65%);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: hsl(215, 20%, 55%);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .tickets-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .signs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .exam-rules-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .tickets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topics-list-grid {
    grid-template-columns: 1fr;
  }
  .signs-grid {
    grid-template-columns: 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 30px;
  }
  .footer-links {
    flex-direction: column;
    gap: 24px;
  }
}
