/* Lemon Drive — styles.css
   Светлый сервисный стиль: крупные жирные заголовки, скруглённые карточки, кнопки-«пилюли». */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #19523B;
  --ink-deep: #0F3A29;
  --ink-soft: #44665A;
  --accent: #FECC00;
  --accent-hover: #FFDB4D;
  --accent-pale: #FFF3BF;
  --ground: #FFFFFF;
  --soft: #F2F5F2;
  --soft-2: #E6ECE7;
  --slot: #DDE5DF;
  --on-dark: #DDEBE2;
  --on-dark-quiet: #A9C7B6;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-h1: clamp(34px, 4.2vw, 62px);
  --fs-h2: clamp(30px, 3.4vw, 48px);
  --fs-h3: 20px;
  --fs-lead: 19px;
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-fine: 13px;

  --r-lg: 32px;
  --r-md: 24px;
  --r-sm: 16px;
  --wrap: 1240px;
  --gutter: 24px;
  --section: 120px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (max-width: 720px) {
  :root { --gutter: 16px; --section: 72px; --r-lg: 24px; --r-md: 20px; --fs-lead: 17px; }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: var(--fs-body); line-height: 1.55; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h2 { font-weight: 800; font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.03em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--ink-deep); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--soft { background: var(--soft); }
.section--tight { padding-top: 0; }
.section__h { margin-bottom: 48px; }
.lead { font-size: var(--fs-lead); line-height: 1.5; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Components ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  font: 600 var(--fs-body) var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s ease;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(1px) scale(.98); }
.pill--yellow { background: var(--accent); color: var(--ink-deep); }
.pill--yellow:hover { background: var(--accent-hover); }
.pill--green { background: var(--ink); color: #FFFFFF; }
.pill--green:hover { background: var(--ink-deep); }
.pill--ghost { background: var(--soft); color: var(--ink); min-height: 44px; padding: 0 16px; font-size: var(--fs-small); }
.pill--block { width: 100%; }

.slot { background: var(--slot); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; padding: 32px; text-align: center; overflow: hidden; }
.slot strong { display: block; font-weight: 700; }
.slot img { width: 100%; height: 100%; object-fit: cover; }

.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; color: var(--ink); background: var(--accent); border-radius: 999px; padding: 4px; width: 26px; height: 26px; }

/* ---------- 4. Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: #FFFFFF; }
.header__in { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 30px; object-fit: contain; }
.brand span { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand--light span { color: #FFFFFF; }
.nav { display: flex; gap: 28px; font-weight: 500; }
.nav a { text-decoration: none; transition: opacity .15s ease; }
.nav a:hover { opacity: .65; }
.header__side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header__cta { min-height: 44px; padding: 0 22px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

@media (max-width: 900px) {
  .header__in { min-height: 64px; gap: 12px; }
  .header__cta { display: none; }
  .menu-toggle { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0;
    background: #FFFFFF; padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 32px rgba(15,58,41,.12); /* taste-skill-ignore: выпадающее меню */
  }
  .nav.is-open { display: flex; }
  .nav a { min-height: 52px; display: flex; align-items: center; font-size: 18px; }
}

/* ---------- 5. Hero ---------- */
.hero { padding: 40px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: stretch; }
.hero__text { min-width: 0; display: flex; flex-direction: column; gap: 24px; padding-top: 24px; }
.hero__h1 { font-weight: 900; font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.04em; }
.hero__h1 > span { display: block; }
.hero__h1 mark { background: var(--accent); color: var(--ink-deep); padding: 0 .12em; border-radius: .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero__sub { font-size: var(--fs-lead); max-width: 36em; }
.hero__photo { min-height: 560px; }

.calc { background: var(--soft); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; max-width: 560px; }
.calc__q { font-weight: 700; font-size: var(--fs-h3); }
.stepper { display: flex; align-items: center; gap: 8px; background: #FFFFFF; border-radius: 999px; padding: 6px; }
.stepper__btn { flex: none; width: 52px; height: 52px; border: 0; border-radius: 999px; background: var(--soft-2); color: var(--ink); font: 600 26px var(--font); cursor: pointer; transition: background-color .15s ease, transform .15s var(--ease); }
.stepper__btn:hover { background: var(--accent); }
.stepper__btn:active { transform: scale(.92); }
.stepper__val { flex: 1 1 0; width: 0; min-width: 0; border: 0; background: transparent; text-align: right; color: var(--ink); font: 800 30px var(--font); letter-spacing: -0.02em; -moz-appearance: textfield; }
.stepper__val::-webkit-outer-spin-button, .stepper__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__cur { flex: none; font-weight: 800; font-size: 30px; padding-right: 8px; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc__out p { background: #FFFFFF; border-radius: var(--r-sm); padding: 14px 16px; display: flex; flex-direction: column; }
.calc__out strong { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1.15; }
.calc__out p:last-child { background: var(--accent-pale); }
.calc__out span { font-size: var(--fs-small); color: var(--ink-soft); }
.calc__note { font-size: var(--fs-fine); color: var(--ink-soft); }

@media (max-width: 900px) {
  .hero { padding: 16px 0 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero__text { padding-top: 8px; gap: 18px; }
  .hero__photo { min-height: 300px; }
  .calc { max-width: none; padding: 20px; }
}
@media (max-width: 420px) {
  .calc__out { grid-template-columns: 1fr; }
  .stepper__val, .stepper__cur { font-size: 26px; }
}

/* ---------- 6. Stats ---------- */
.stats { padding-bottom: 40px; }
.stats__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats__list li { background: var(--soft); border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.stats__list strong { font-weight: 900; font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.03em; line-height: 1.1; }
.stats__list span { color: var(--ink-soft); font-size: var(--fs-small); }
@media (max-width: 900px) { .stats__list { grid-template-columns: 1fr 1fr; gap: 10px; } .stats__list li { padding: 18px; } }

/* ---------- 7. Marquee ---------- */
.marquee { display: flex; overflow: hidden; padding: 8px 0 24px; gap: 10px; }
.marquee__track { flex: none; display: flex; gap: 10px; animation: marquee 38s linear infinite; }
.marquee__track li { flex: none; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-weight: 600; white-space: nowrap; }
.marquee__track li:nth-child(3n+2) { background: var(--accent); color: var(--ink-deep); }
.marquee__track li:nth-child(3n) { background: var(--soft-2); color: var(--ink); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - 10px)); } }

/* ---------- 8. Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split__photo { min-height: 480px; }
.split__text { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .split__photo { min-height: 260px; order: 2; } }

/* ---------- 9. Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: #FFFFFF; border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s var(--ease); }
.card__icon { width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--accent); color: var(--ink-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.card h3 { font-weight: 700; font-size: var(--fs-h3); line-height: 1.25; }
.card p { color: var(--ink-soft); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; gap: 10px; } .card { padding: 22px; } }

/* ---------- 10. How ---------- */
.how { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: stretch; }
.how__photo { min-height: 520px; }
.steps { display: flex; flex-direction: column; gap: 12px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--soft); border-radius: var(--r-md); padding: 22px 24px; }
.step__n { flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--ink); color: #FFFFFF; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.step:last-child .step__n { background: var(--accent); color: var(--ink-deep); }
.step h3 { font-weight: 700; font-size: var(--fs-h3); margin-bottom: 4px; }
.step p { color: var(--ink-soft); }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; gap: 28px; } .how__photo { min-height: 260px; order: 2; } .step { padding: 18px; } }

/* ---------- 11. Promo: switch + docs ---------- */
.promo { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.promo__main { background: var(--ink); color: #FFFFFF; border-radius: var(--r-lg); padding: 48px; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.promo__main .lead { color: var(--on-dark); }
.sw { display: flex; flex-direction: column; gap: 12px; }
.sw li { display: flex; gap: 14px; align-items: center; }
.sw__n { flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--accent); color: var(--ink-deep); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.promo__side { background: var(--accent-pale); border-radius: var(--r-lg); padding: 48px; display: flex; flex-direction: column; gap: 24px; }
.promo__side h2 { font-size: clamp(26px, 2.6vw, 36px); }
@media (max-width: 900px) { .promo { grid-template-columns: 1fr; } .promo__main, .promo__side { padding: 28px 22px; } .promo__main .pill { width: 100%; white-space: normal; text-align: center; } }

/* ---------- 12. FAQ ---------- */
.faq { max-width: 920px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.qa { background: var(--soft); border-radius: var(--r-md); transition: background-color .2s ease; }
.qa[open] { background: var(--accent-pale); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 16px 24px; font-weight: 600; font-size: 18px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; position: relative; width: 36px; height: 36px; border-radius: 999px; background: #FFFFFF; }
.qa summary i::before, .qa summary i::after { content: ''; position: absolute; left: 11px; top: 16.5px; width: 14px; height: 3px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa p { padding: 0 24px 22px; max-width: 64ch; }

/* ---------- 13. Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact__info { display: flex; flex-direction: column; gap: 20px; }
.contact__phone { font-weight: 900; font-size: clamp(34px, 4vw, 56px); letter-spacing: -0.03em; line-height: 1; text-decoration: none; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact__facts { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.contact__facts dt { font-size: var(--fs-small); color: var(--ink-soft); }
.contact__facts dd { font-weight: 500; }
.map { position: relative; min-height: 480px; border-radius: var(--r-lg); overflow: hidden; background: var(--slot); }
.map__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 32px; text-align: center; text-decoration: none; }
.map__fallback strong { font-size: var(--fs-lead); }
.map iframe { position: relative; z-index: 1; width: 100% !important; height: 100% !important; min-height: 480px; border: 0 !important; display: block; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 28px; } .map, .map iframe { min-height: 320px; } .contact__actions .pill { flex: 1 1 140px; } }

/* ---------- 14. Footer ---------- */
.footer { background: var(--ink-deep); color: var(--on-dark); padding: 64px 0 32px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #FFFFFF; }
.footer__top { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 20px; }
.footer__phone { color: var(--accent); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; font-size: var(--fs-small); }
.footer__cols div { display: flex; flex-direction: column; gap: 8px; }
.footer__cols b { color: #FFFFFF; }
.footer__bottom { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: var(--fs-fine); color: var(--on-dark-quiet); }
@media (max-width: 900px) { .footer { padding-bottom: 104px; } .footer__top { grid-template-columns: 1fr; } .footer__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- 15. Phone call bar ---------- */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: #FFFFFF;
    box-shadow: 0 -8px 24px rgba(15,58,41,.12); /* taste-skill-ignore: закреплённая панель */
    transition: transform .35s var(--ease);
  }
  .js .callbar { transform: translateY(110%); }
  .js .callbar.is-on { transform: none; }
}

/* ---------- 16. Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hero__h1 { animation: rise .8s var(--ease) both; }
.hero__sub { animation: rise .8s .12s var(--ease) both; }
.calc { animation: rise .8s .22s var(--ease) both; }
.hero__photo { animation: rise .8s .32s var(--ease) both; }
@keyframes bump { 50% { transform: scale(1.04); } }
.calc__out strong.is-bump { animation: bump .3s var(--ease); display: inline-block; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .card.reveal.is-in:hover { transform: translateY(-4px); transition-duration: .25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track[aria-hidden="true"] { display: none; }
  .marquee__track { flex-wrap: wrap; }
}
