/* ── Mondragon Driving School ── */

:root {
  --paper: #f5f3ef;
  --paper-2: #ebe7e0;
  --card: #ffffff;
  --ink: #15161a;
  --ink-2: #50535a;
  --line: #dcd7ce;
  --red: #d2232a;
  --red-dark: #a9171d;
  --yellow: #ffc72c;
  --asphalt: #17191d;
  --asphalt-2: #22252a;
  --asphalt-line: #34383f;
  --on-dark: #f2f0ec;
  --on-dark-2: #a9acb2;

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --wrap: 1180px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; }
h3 { font-size: 24px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: transparent; border-color: var(--asphalt-line); color: var(--on-dark); }
.btn-light:hover { border-color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 4px; background: currentColor; border-radius: 2px; }
.eyebrow-yellow { color: var(--yellow); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 243, 239, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--red); color: #fff; border-radius: 10px;
  font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1;
}
.logo-text { display: flex; flex-direction: column; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; }
.logo-text small { font-family: var(--body); font-weight: 500; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-2); margin-top: 3px; text-transform: uppercase; }

.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color .2s; }
.main-nav a:hover, .main-nav a.is-current { color: var(--ink); }
.main-nav a.is-current { box-shadow: inset 0 -3px 0 var(--red); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { border: 0; background: none; font: 700 13px var(--body); letter-spacing: 0.05em; color: var(--ink-2); padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.lang-btn.is-active { background: var(--ink); color: var(--paper); }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1020px) {
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { font-family: var(--display); font-size: 26px; font-weight: 700; text-transform: uppercase; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-btn { display: block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 600px) {
  .header-call span { display: none; }
  .header-call { width: 42px; padding: 0; }
  .logo-text small { display: none; }
}

/* ── Hero ── */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-title { font-size: clamp(50px, 7vw, 92px); text-transform: uppercase; line-height: 1.18; margin-bottom: 24px; }
.hero-title mark { background: none; color: var(--red); }
.hero-lead { font-size: 19px; color: var(--ink-2); max-width: 30em; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font-family: var(--display); font-size: 36px; line-height: 1; }
.hero-proof span { font-size: 14px; color: var(--ink-2); font-weight: 500; }

.hero-media { position: relative; margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 24px; }
.hero-tag {
  position: absolute; left: -24px; bottom: 32px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--ink); color: var(--on-dark); padding: 16px 22px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; box-shadow: 0 18px 40px -16px rgba(0,0,0,.45);
}
.tag-price { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; color: var(--yellow); }
.tag-price small { font-size: 16px; font-weight: 600; color: var(--on-dark-2); text-transform: lowercase; }

/* dashed lane marking along the bottom of the hero */
.lane {
  position: absolute; left: 0; right: 0; bottom: 34px; height: 6px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 56px, transparent 56px 104px);
  opacity: .9;
}

@media (max-width: 900px) {
  .hero { padding: 28px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 4 / 3; border-radius: 18px; }
  .hero-tag { left: 12px; bottom: 12px; padding: 12px 16px; }
  .tag-price { font-size: 26px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/* ── Sections ── */
.section { padding: 112px 0; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--asphalt); color: var(--on-dark); }
.section-dark .section-lead { color: var(--on-dark-2); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.section-head-row .section-lead { max-width: 380px; }
.section-lead { font-size: 18px; color: var(--ink-2); margin-top: 16px; }
.section-lead a { color: var(--red); font-weight: 600; }
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 0; }
}

/* ── Packages ── */
.packages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.pkg {
  position: relative; display: flex; flex-direction: column;
  background: var(--asphalt-2); border: 1px solid var(--asphalt-line); border-radius: 20px; padding: 28px 24px;
}
.pkg header { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.pkg-cat {
  flex-shrink: 0; width: 56px; height: 56px; display: grid; place-items: center;
  border: 3px solid var(--on-dark); border-radius: 12px;
  font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1;
}
.pkg-cat sup { font-size: 18px; margin-left: 1px; }
.pkg h3 { font-size: 28px; text-transform: uppercase; }
.pkg header { align-items: flex-start; }
.pkg-for { font-size: 15px; color: var(--on-dark-2); }
.pkg-price { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; margin-bottom: 10px; }
.pkg-price span { font-size: 22px; color: var(--on-dark-2); font-weight: 700; }
.pkg .ticks { flex: 1; margin-bottom: 28px; }
.pkg .btn { width: 100%; }

.ticks li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 16px; line-height: 1.45; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317191d' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat;
}

.pkg-featured { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pkg-featured .pkg-cat { border-color: var(--red); color: var(--red); }
.pkg-featured .pkg-for, .pkg-featured .pkg-price span { color: var(--ink-2); }

.pkg-featured .ticks li::before { background-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.pkg-flag {
  position: absolute; top: -14px; right: 24px;
  background: var(--yellow); color: var(--asphalt); padding: 4px 14px; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
}

.promo {
  margin-top: 36px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 18px 24px; border: 2px dashed var(--asphalt-line); border-radius: var(--radius);
  font-size: 17px; font-weight: 500;
}
.promo-badge { background: var(--red); color: #fff; padding: 3px 12px; border-radius: 6px; font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 15px; }

@media (max-width: 1100px) { .packages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .packages { grid-template-columns: 1fr; } }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding-top: 28px; border-top: 4px solid var(--ink); }
.steps li:nth-child(2) { border-top-color: var(--red); }
.step-n { display: block; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink-2); letter-spacing: 0.1em; margin-bottom: 10px; }
.steps h3 { font-size: 26px; text-transform: uppercase; margin-bottom: 10px; }
.steps p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; gap: 36px 20px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ── Instructor ── */
.instr-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.instr-photo { margin: 0; position: relative; }
.instr-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% center; border-radius: 24px; }
.instr-photo::after { content: ''; position: absolute; right: -14px; bottom: -14px; width: 40%; height: 40%; border-right: 6px solid var(--red); border-bottom: 6px solid var(--red); border-bottom-right-radius: 30px; pointer-events: none; }
.instr-copy h2 { margin-bottom: 8px; }
.instr-role { font-weight: 600; color: var(--red); margin-bottom: 20px; }
.instr-copy > p:not(.eyebrow):not(.instr-role) { color: var(--ink-2); font-size: 18px; }
.instr-quote { margin: 28px 0; padding: 0 0 0 20px; border-left: 4px solid var(--yellow); }
.instr-quote p { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.15; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; }
@media (max-width: 900px) {
  .instr-grid { grid-template-columns: 1fr; gap: 40px; }
  .instr-photo { max-width: 460px; }
  .instr-photo::after { right: -8px; bottom: -8px; }
}

/* ── Gallery ── */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 12px; grid-auto-flow: dense; }
.g-item { margin: 0; background: var(--paper-2); border-radius: var(--radius); overflow: hidden; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-wide { grid-column: span 2; grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 480px) { .gallery { grid-auto-rows: 160px; gap: 8px; } .g-wide { grid-row: span 1; } }

/* ── Reviews ── */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: var(--card); border-radius: 18px; padding: 28px; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.review blockquote::before { content: '★★★★★'; display: block; color: var(--yellow); letter-spacing: 3px; font-size: 18px; margin-bottom: 14px; -webkit-text-stroke: 0.5px #d9a400; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; flex-wrap: wrap; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--display); font-size: 20px; }
.r-meta { font-weight: 500; color: var(--ink-2); font-size: 14px; }
.r-meta::before { content: '· '; }
@media (max-width: 960px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .reviews { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-weight: 700; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315161a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat;
  transition: transform .25s, background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--yellow); border-color: var(--yellow); }
.faq summary:hover { color: var(--red); }
.faq details p { padding: 0 52px 24px 0; color: var(--ink-2); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 32px; } .faq-grid .section-head { position: static; } .faq details p { padding-right: 0; } }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.big-phone {
  display: inline-block; margin: 32px 0 28px;
  font-family: var(--display); font-weight: 800; font-size: clamp(44px, 6vw, 72px); line-height: 1;
  color: var(--yellow); text-decoration: none;
}
.big-phone:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.contact-list { margin: 0; display: grid; gap: 16px; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list dt { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-2); }
.contact-list dd { margin: 0; font-size: 18px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--asphalt-line); }
.contact-list a:hover { border-bottom-color: var(--on-dark); }

.contact-form { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 32px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
  transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input:user-invalid { border-color: var(--red); }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.seg label { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span {
  display: grid; place-items: center; text-align: center; min-height: 46px; padding: 6px 8px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--card);
  font-weight: 600; font-size: 14px; line-height: 1.2; cursor: pointer; transition: all .15s;
}
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.form-note { font-size: 14px; color: var(--ink-2); text-align: center; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 520px) { .seg { grid-template-columns: repeat(3, 1fr); } .contact-form { padding: 22px 18px; } }

/* ── Footer ── */
.site-footer { background: var(--asphalt); color: var(--on-dark-2); border-top: 1px solid var(--asphalt-line); padding: 40px 0 100px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .logo-text { color: var(--on-dark); }
.site-footer .logo-text small { color: var(--on-dark-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; font-size: 15px; font-weight: 500; }
.footer-links a:hover { color: var(--on-dark); }
.footer-copy { width: 100%; font-size: 14px; padding-top: 24px; border-top: 1px solid var(--asphalt-line); }

/* ── Floating call button (phones) ── */
.call-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: none; align-items: center; gap: 8px; min-height: 54px; padding: 0 22px;
  background: var(--red); color: #fff; border-radius: 999px; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase;
  box-shadow: 0 12px 28px -10px rgba(210, 35, 42, .7);
  transform: translateY(120px); transition: transform .3s;
}
.call-fab.is-visible { transform: none; }
@media (max-width: 760px) { .call-fab { display: inline-flex; } }

/* ── Reveal on scroll ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-proof strong { font-size: 28px; }
  .hero-proof span { font-size: 13px; line-height: 1.3; }
}

/* ── Hero: highlight, sticker, category cards ── */
.hl { background: linear-gradient(transparent 55%, var(--yellow) 55%); color: var(--ink); font-weight: 700; padding: 0 2px; }
.sticker {
  position: absolute; top: -18px; right: -18px; width: 112px; height: 112px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: 1;
  background: var(--yellow); color: var(--ink); transform: rotate(10deg);
  font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 22px; letter-spacing: 0.04em;
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.45);
}
.sticker b { font-size: 56px; line-height: .9; }
.sticker::before { content: ''; position: absolute; inset: 6px; border: 2px dashed rgba(21,22,26,.35); border-radius: 50%; }

.cat-intro { margin: 56px 0 14px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.cat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cat-card {
  height: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 4px 16px;
  padding: 18px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.cat-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(0,0,0,.35); }
/* licence-style category tile: pictogram over the code, like on the card */
.lic {
  grid-row: span 2; width: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 6px; border-radius: 10px; background: #e7eef8; border: 1.5px solid #c3d2e8; color: #1f3a68;
}
.lic svg { width: 52px; height: 32px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lic b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; }
.cat-body { display: flex; flex-direction: column; }
.cat-body strong { font-weight: 700; font-size: 17px; line-height: 1.3; }
.cat-body span { font-size: 14.5px; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.cat-price { align-self: end; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--red); }
.cat-price::after { content: ' →'; }

/* ── Packages: instalments line ── */
.pkg-rate {
  align-self: flex-start; margin-bottom: 22px; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: var(--yellow); color: var(--asphalt); font-weight: 700; font-size: 14px;
}
.pkg-rate::before { content: '✓ '; }
.pkg .ticks { padding-top: 22px; border-top: 1px solid var(--asphalt-line); }
.pkg-featured .ticks { border-top-color: var(--line); }
.promo strong { color: var(--yellow); }

/* ── Steps: moto vs auto ── */
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 420px; }
.legend-txt { font-size: 15px; color: var(--ink-2); flex-basis: 100%; }
.mode {
  display: inline-block; padding: 2px 10px; border-radius: 6px;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
}
.mode-moto { background: var(--ink); color: var(--paper); }
.mode-auto { background: #e7eef8; color: #1f3a68; }
.modes { margin: 0; display: grid; gap: 12px; }
.modes div { display: grid; gap: 4px; justify-items: start; }
.modes dd { margin: 0; color: var(--ink-2); font-size: 16px; }
.modes dd strong { color: var(--red); }

/* ── Contact socials ── */
.contact-list .socials { display: flex; gap: 10px; margin-top: 6px; }
.contact-list .socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1.5px solid var(--asphalt-line); border-radius: 50%; }
.contact-list .socials a:hover { border-color: var(--yellow); color: var(--yellow); }

/* ── Back to top ── */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--paper); text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
@media (max-width: 760px) { .to-top { display: none; } }

@media (max-width: 900px) {
  .cat-row { grid-template-columns: 1fr; }
  .cat-intro { margin-top: 40px; }
  .sticker { top: -12px; right: -6px; width: 92px; height: 92px; font-size: 18px; }
  .sticker b { font-size: 44px; }
}

/* ── Logo image ── */
.logo-img { width: 52px; height: 52px; object-fit: contain; }
.site-footer .logo-img { width: 64px; height: 64px; }
@media (max-width: 600px) { .logo-img { width: 44px; height: 44px; } }

/* ── Contact bar above the header ── */
:root { --topbar-h: 40px; }
html { scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 12px); }
.topbar { background: var(--asphalt); color: var(--on-dark); font-size: 14px; font-weight: 600; }
.topbar-inner { height: var(--topbar-h); display: flex; align-items: center; gap: 24px; }
.tb-item { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--on-dark); white-space: nowrap; transition: color .2s; }
.tb-item:hover { color: var(--yellow); }
.tb-item svg { color: var(--yellow); flex-shrink: 0; }
.tb-social { margin-left: auto; display: flex; gap: 18px; }
@media (max-width: 1020px) {
  .main-nav { inset: calc(var(--header-h) + var(--topbar-h)) 0 auto 0; }
}
@media (max-width: 860px) { .tb-label { display: none; } }
@media (max-width: 600px) {
  .topbar-inner { gap: 14px; }
  .tb-email span { display: none; }
  .tb-social { gap: 14px; }
  .tb-item svg { width: 18px; height: 18px; }
}
@media (max-width: 600px) {
  .header-inner { gap: 12px; }
  .header-actions { gap: 8px; }
  .menu-btn { margin-right: -8px; }
}


/* ═══════════ DARK THEME ═══════════ */
:root {
  --paper: #0e0f11;
  --paper-2: #141619;
  --card: #1a1d21;
  --ink: #f2f0ec;
  --ink-2: #a3a7ae;
  --line: #2b2f35;
  --asphalt: #08090a;
  --asphalt-2: #17191d;
  --asphalt-line: #2b2f35;
  --tile: #1c2a40;
  --tile-line: #2c4266;
  --tile-ink: #b9cdef;
}
.site-header { background: rgba(14, 15, 17, 0.82); }
.topbar { background: #000; border-bottom: 1px solid var(--line); }
.lang-btn.is-active { background: var(--ink); color: var(--paper); }
.menu-btn span { background: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.hl { color: #111; }
.section-dark { background: var(--asphalt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pkg-featured { background: #f2f0ec; color: #15161a; border-color: #f2f0ec; }
.pkg-featured .pkg-for, .pkg-featured .pkg-price span { color: #50535a; }
.pkg-featured .ticks { border-top-color: #dcd7ce; }
.pkg-featured .pkg-cat { border-color: var(--red); color: var(--red); }
.lic, .mode-auto { background: var(--tile); border-color: var(--tile-line); color: var(--tile-ink); }
.mode-moto { background: var(--ink); color: var(--paper); }
.steps li { border-top-color: var(--ink); }
.chips li { background: var(--card); border-color: var(--line); }
.review { background: var(--card); border: 1px solid var(--line); }
.avatar { background: var(--red); color: #fff; }
.contact-form { background: var(--card); border: 1px solid var(--line); }
.field input, .field textarea, .seg span { background: var(--paper); border-color: var(--line); color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq summary::after { border-color: var(--line); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f0ec' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.faq details[open] summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315161a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.instr-photo::after { border-color: var(--red); }
.to-top { background: var(--red); color: #fff; }
.cat-card:hover { border-color: var(--ink-2); box-shadow: 0 14px 30px -18px rgba(0,0,0,.8); }
.site-footer { background: #000; }

/* ── Hero over a blurred photo ── */
.hero-photo { isolation: isolate; padding: 88px 0 110px; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: url('../images/img_2726.jpg') center 40% / cover no-repeat; filter: blur(8px);
  transform: scale(1.06);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8,9,10,.92) 0%, rgba(8,9,10,.72) 45%, rgba(8,9,10,.45) 100%),
    linear-gradient(180deg, rgba(8,9,10,0) 55%, var(--paper) 100%);
}
.hero-photo .hero-title, .hero-photo .hero-lead { text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero-photo .hero-lead { color: #d6d6d8; }
.hero-photo .hero-proof { border-top-color: rgba(255,255,255,.18); }
.hero-photo .hero-proof span { color: #c4c6ca; }
.hero-photo .btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.hero-photo .cat-intro { color: #c4c6ca; }
.hero-photo .cat-card { background: rgba(20, 22, 25, .78); border-color: rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-photo .cat-body span { color: #b6b9be; }
.hero-photo .cat-price { color: var(--yellow); }

.hero-panel {
  position: relative; justify-self: end; width: 100%; max-width: 400px;
  padding: 34px 30px 30px; border-radius: 22px;
  background: rgba(14, 15, 17, .62); border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.hero-panel .sticker { top: -34px; right: -26px; }
.panel-price { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: 1; color: var(--yellow); }
.panel-price small { font-size: 20px; color: #c4c6ca; font-weight: 600; }
.panel-sub { color: #c4c6ca; font-size: 15px; margin: 6px 0 22px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.14); }
.hero-panel .ticks { margin-bottom: 24px; }
.hero-panel .ticks li { color: #ecebe8; }

@media (max-width: 900px) {
  .hero-photo { padding: 48px 0 90px; }
  .hero-panel { justify-self: stretch; max-width: none; padding: 26px 22px 22px; }
  .hero-panel .sticker { top: -24px; right: -6px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(8,9,10,.80) 0%, rgba(8,9,10,.70) 60%, var(--paper) 100%); }
}
.hl { background: var(--yellow); color: #111; padding: 1px 7px; border-radius: 5px; text-shadow: none; }
.hero-bg::after {
  background:
    linear-gradient(90deg, rgba(8,9,10,.88) 0%, rgba(8,9,10,.6) 50%, rgba(8,9,10,.3) 100%),
    linear-gradient(180deg, rgba(8,9,10,0) 60%, var(--paper) 100%);
}
@media (max-width: 900px) {
  .hero-bg::after { background: linear-gradient(180deg, rgba(8,9,10,.72) 0%, rgba(8,9,10,.62) 60%, var(--paper) 100%); }
}

/* ── Hero photo: sharp, centred on the instructor, over a blurred fill ── */
.hero-bg { background: none; filter: none; transform: none; overflow: hidden; }
.hero-bg::before {
  content: ''; position: absolute; inset: -40px;
  background: url('../images/img_2726.jpg') center 30% / cover no-repeat;
  filter: blur(18px) brightness(.55);
}
.hero-bg-img {
  position: absolute; inset: 0;
  background: url('../images/img_2726.jpg') center 12% / auto 108% no-repeat;
  filter: blur(1px);
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 36%, #000 64%, transparent 82%);
  mask-image: linear-gradient(90deg, transparent 18%, #000 36%, #000 64%, transparent 82%);
}
.hero-bg::after {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,9,10,.9) 0%, rgba(8,9,10,.55) 38%, rgba(8,9,10,.35) 55%, rgba(8,9,10,.65) 80%, rgba(8,9,10,.8) 100%),
    linear-gradient(180deg, rgba(8,9,10,0) 65%, var(--paper) 100%);
}
@media (max-width: 900px) {
  .hero-bg-img { background-size: cover; background-position: 50% 8%; -webkit-mask-image: none; mask-image: none; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(8,9,10,.55) 0%, rgba(8,9,10,.75) 40%, rgba(8,9,10,.85) 70%, var(--paper) 100%); }
}

/* ── Hero photo: same treatment as the original site ── */
.hero-bg-img, .hero-bg::before { display: none; }
.hero-bg {
  background: url('../images/img_2726.jpg') center 25% / cover no-repeat;
  filter: brightness(.35);
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-photo:hover .hero-bg { transform: scale(1); }
.hero-bg::after {
  z-index: 1;
  background: linear-gradient(135deg, rgba(200,16,46,.15) 0%, rgba(10,10,10,.8) 60%);
}
@media (max-width: 900px) {
  .hero-bg::after { background: linear-gradient(135deg, rgba(200,16,46,.15) 0%, rgba(10,10,10,.8) 60%); }
}

/* ── Seasonal discount ── */
.sb-tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px; background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.3;
}
.season-badge {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px;
  padding: 6px 14px 6px 6px; border-radius: 10px; text-decoration: none;
  background: rgba(210, 35, 42, .12); border: 1.5px solid var(--red); color: var(--ink); font-weight: 700; font-size: 15px;
}
.season-badge:hover { background: rgba(210, 35, 42, .2); }
s { text-decoration-thickness: 2px; text-decoration-color: var(--red); opacity: .75; }
.cat-price s { color: var(--ink-2); font-weight: 600; margin-right: 4px; }
.pkg-sale { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--on-dark-2); }
.pkg-featured .pkg-sale { color: #50535a; }
.tag-sale, .panel-sale { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--on-dark-2); margin-bottom: 4px; }
.panel-sale { color: #c4c6ca; margin-bottom: 8px; }
.section-lead strong { color: var(--yellow); }
.section-dark .section-lead strong { color: var(--yellow); }
.sb-tag, s { white-space: nowrap; }
.pkg-sale { flex-wrap: wrap; gap: 6px 10px; }
.pkg-sale .sb-tag { font-size: 12px; padding: 2px 8px; }
