:root {
  --navy: #0b1f3f;
  --navy-2: #123166;
  --navy-3: #1a4894;
  --red: #e0263e;
  --red-dark: #b81f33;
  --gold: #f2a93b;
  --ink: #172033;
  --muted: #5c6579;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #e6eaf1;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11, 31, 63, 0.18);
  --container: 1160px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-locked { overflow: hidden; height: 100%; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; color: var(--navy); }
p { margin: 0 0 14px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px -8px rgba(224,38,62,.6); }
.btn-primary:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy-3); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-3), var(--navy));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: var(--navy); font-size: 1.02rem; }
.brand-text small { color: var(--muted); font-size: .76rem; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
}
.main-nav a:hover { color: var(--red); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { padding: 10px 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--navy); margin: 0 auto; transition: .2s; }

/* Hero */
.hero {
  padding: 64px 0 40px;
  background:
    radial-gradient(circle at 85% 0%, rgba(26,72,148,.08), transparent 45%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.hero h1 span { color: var(--red); }
.hero-sub { font-size: 1.05rem; max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 22px 0 26px; }
.hero-trust {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-trust li { font-size: .85rem; color: var(--muted); }
.hero-trust strong { display: block; color: var(--navy); font-size: 1.05rem; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Sections */
.section { padding: 76px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2rem); text-align: center; }
.section-sub { text-align: center; max-width: 62ch; margin: 0 auto 36px; }

/* Videos */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.video-card p { text-align: center; font-weight: 700; color: var(--navy); margin: 12px 0 0; }
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.video-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.videos { padding-bottom: 44px; }

/* Video block 2 — heading + single video, stacked */
.videos-2 { padding: 20px 0 76px; }
.video-block { max-width: 760px; margin: 0 auto 44px; }
.video-block:last-child { margin-bottom: 0; }
.video-heading {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 16px;
}
.video-frame-single { box-shadow: var(--shadow); }

/* Badge number */
.badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy-3);
  color: #fff;
  font-weight: 800;
  margin: 0 auto 16px;
}
.section .badge-num { display: flex; }

.subheading { color: var(--navy); font-size: 1.15rem; margin-top: 34px; }

.topics-grid {
  list-style: none;
  counter-reset: topic;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 28px;
}
.topics-grid li {
  counter-increment: topic;
  position: relative;
  padding: 12px 16px 12px 48px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .92rem;
  color: var(--ink);
}
.topics-grid li::before {
  content: counter(topic);
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.note-card {
  margin-top: 34px;
  padding: 22px 26px;
  /* sits in the white #telim-plani section — tinted so the card still reads as a card */
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.note-card p:last-child { margin-bottom: 0; }
.note-card .highlight { color: var(--red); font-weight: 700; }

/* Training car banner */
.training-car { background: var(--navy); padding: 44px 0 40px; }
.training-car .container { display: flex; flex-direction: column; align-items: center; }
.training-car img {
  width: auto;
  max-width: 100%;
  max-height: 460px;
  object-fit: contain;
  border-radius: var(--radius);
}
.training-car-caption {
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  margin-top: 22px;
}
.training-car-caption span { font-weight: 600; opacity: .8; }
.training-car-caption strong { font-size: clamp(1.6rem, 3vw, 2.4rem); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--red);
  transform: scale(1.03);
  box-shadow: 0 18px 40px -14px rgba(224,38,62,.35);
}
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff;
  font-size: .72rem; font-weight: 800;
  padding: 5px 14px; border-radius: 999px;
  margin: 0;
}
.price-card h3 { font-size: 1.1rem; min-height: 54px; }
.price-lessons { color: var(--red); font-weight: 700; margin-bottom: 6px; }
.price-lessons em { color: var(--muted); font-style: normal; font-weight: 500; font-size: .85rem; }
.price-tag { font-size: 2.4rem; font-weight: 800; color: var(--navy); margin: 6px 0 10px; }
.price-tag span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-desc { flex-grow: 1; }
.price-card .btn { margin-top: 8px; }

/* Plan list */
.plan-list {
  list-style: none;
  counter-reset: plan;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 30px;
}
.plan-list li {
  counter-increment: plan;
  padding-left: 30px;
  position: relative;
  color: var(--ink);
  font-size: .95rem;
}
.plan-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--red);
  font-weight: 800;
}
.lang-note { text-align: center; font-style: italic; }

/* Instructor */
.instructor-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 42px;
  align-items: center;
}
.instructor-inner img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.social-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.social-badges a {
  background: var(--red);
  border: 2px solid transparent;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(224,38,62,.6);
  transition: background .15s ease, transform .15s ease;
}
.social-badges a:hover { background: var(--red-dark); transform: translateY(-2px); }

/* Certificate table */
.table-wrap { overflow-x: auto; }
.cert-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cert-table th, .cert-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.cert-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.cert-table td:last-child { font-weight: 700; color: var(--red); }
.cert-table tr:last-child td { border-bottom: none; }

/* Consult */
.consult { background: linear-gradient(135deg, var(--navy), var(--navy-3)); }
.consult-inner { text-align: center; max-width: 700px; }
.consult h2 { color: #fff; }
.consult p { color: rgba(255,255,255,.82); }

/* Who for */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.who-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow);
}

/* Personal message */
.instructor-inner ol { margin: 0 0 14px; padding-left: 20px; color: var(--ink); }
.instructor-inner ol li { margin-bottom: 6px; }
.instructor-inner .highlight { color: var(--navy); font-weight: 700; margin-bottom: 0; }
.message-section { padding-bottom: 14px; }
.message-block { max-width: 760px; margin: 44px auto 0; }
.video-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.schedule-list { grid-template-columns: 1fr; margin: 30px 0 8px; }

/* Trust */
.trust-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
}
.trust-inner img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Final CTA */
.final-cta {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  text-align: center;
}
.final-cta h2, .final-cta p { color: #fff; }
.final-cta p { color: rgba(255,255,255,.9); }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.final-cta .btn-primary { background: var(--navy); box-shadow: none; }
.final-cta .btn-primary:hover { background: var(--navy-2); }

/* Contract page */
.page-header { padding: 48px 0 8px; text-align: center; }
.page-header h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.page-header p { color: var(--muted); }
.contract { max-width: 760px; margin: 0 auto; }
.contract h2 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-top: 36px;
}
.contract ol {
  padding-left: 22px;
  margin: 0 0 18px;
  color: var(--ink);
}
.contract ol li { margin-bottom: 10px; }
.contract .closing { margin-top: 8px; }
.contract .signature {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.contract .signature-role { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.signature-fields { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 44px; }
.signature-fields div {
  flex: 1;
  min-width: 200px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  color: var(--muted);
  font-size: .85rem;
}
.back-home { display: inline-flex; margin-top: 40px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 44px 0 30px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: rgba(255,255,255,.6); }
.footer-note { max-width: 60ch; font-size: .9rem; }
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.5); margin: 0; }

/* Ziyarətçi sayğacı (counter.php ilə doldurulur, JS uğursuz olsa gizli qalır) */
.visit-counter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 4px;
}
.visit-counter[hidden] { display: none; }
.vc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 104px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  background: rgba(255,255,255,.05);
}
.vc-num {
  font-variant-numeric: tabular-nums;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
}
.vc-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.55);
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px -8px rgba(37,211,102,.7);
  z-index: 400;
  transition: transform .2s ease;
}
.floating-whatsapp:hover { transform: scale(1.08); }

/* Responsive */
@media (max-width: 980px) {
  .hero { padding-bottom: 12px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .video-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .video-row { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .who-grid { grid-template-columns: 1fr 1fr; }
  .instructor-inner, .trust-inner { grid-template-columns: 1fr; text-align: center; }
  .instructor-inner img, .trust-inner img { margin: 0 auto; max-width: 240px; }
  .social-badges { justify-content: center; }
  .message-section { padding-top: 8px; }
}

.mobile-menu-panel { display: none; }

@media (max-width: 760px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }

  .mobile-menu-panel.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h, 66px);
    left: 0; right: 0; bottom: 0;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-top: 1px solid var(--line);
    z-index: 490;
  }
  .mobile-menu-panel .main-nav {
    display: flex;
    flex-direction: column;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    gap: 16px;
  }
  .mobile-menu-panel .header-actions {
    display: flex;
    flex-direction: column;
    padding: 18px 24px;
  }
  .topics-grid, .plan-list { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions .btn, .cta-buttons .btn { width: 100%; }
  .hero-trust { gap: 16px; }
}
