/* Сайт «Автобусы АБВГДейки». Цвета и размеры — из макета Figma (стили «Игра / …»). */

@font-face { font-family: Nunito; font-weight: 400 800; font-display: swap;
  src: url(fonts/nunito-cyrillic-ext.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: Nunito; font-weight: 400 800; font-display: swap;
  src: url(fonts/nunito-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Nunito; font-weight: 400 800; font-display: swap;
  src: url(fonts/nunito-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #163B70; --red: #EC4D44; --red-hover: #D9433B; --red-press: #C23A33;
  --muted: #486383; --line: #D5E4EE; --road: #EEE4D3;
  --cream: #FFF9EE; --sky-wash: #E8F6FF; --yellow-wash: #FFF0B7; --pink-wash: #FFE8E3; --green-wash: #E6F3D9;
  --pad: 24px;
}
@media (min-width: 1200px) { :root { --pad: max(48px, calc((100vw - 1248px) / 2)); } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 18px/27px Nunito, system-ui, sans-serif; color: var(--navy); background: var(--cream);
       overflow-x: hidden; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
img { display: block; }
a { color: inherit; }
.wrap { padding-inline: var(--pad); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #247BCD; outline-offset: 3px; }

/* Кнопки */
.btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 64px; padding: 0 20px;
       border-radius: 20px; font: 800 20px/28px Nunito, sans-serif; text-decoration: none; cursor: pointer;
       white-space: nowrap; transition: background-color .12s, transform .08s; border: 0; }
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-primary:active { background: var(--red-press); }
.btn-secondary { background: #fff; color: var(--navy); border: 2px solid var(--navy); gap: 10px; }
.btn-secondary:hover { background: var(--sky-wash); }
.btn-secondary:active { background: #D4ECFB; }

/* Шапка */
.top { background: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 17px/20px Nunito, sans-serif; }
.brand img { width: 35px; height: 44px; }
.top-nav { display: none; }
.lang { display: flex; gap: 4px; padding: 4px; border-radius: 18px; background: var(--sky-wash); }
.lang button { height: 48px; min-width: 46px; padding: 0 12px; border: 0; border-radius: 14px; background: none;
               color: var(--navy); font: 800 16px/24px Nunito, sans-serif; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* Первый экран */
.hero { position: relative; background: var(--sky-wash); overflow: hidden; }
.hero-text { position: relative; z-index: 1; padding-top: 26px; }
.chip { display: inline-block; padding: 6px 16px; border-radius: 18px; background: #fff; font: 700 16px/24px Nunito, sans-serif;
        white-space: pre; }
h1 { margin-top: 28px; font: 800 46px/48px Nunito, sans-serif; }
.lead { margin-top: 26px; max-width: 280px; font-size: 24px; line-height: 34px; }
.actions { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.note { margin-top: 24px; font-size: 16px; line-height: 24px; color: var(--muted); }

.scene { position: relative; width: 390px; height: 526px; margin: 48px auto 0; z-index: 1; }
.scene > * { position: absolute; }
.phone { left: 91px; top: 0; width: 208px; height: 427px; border-radius: 30px; background: var(--navy); }
.phone img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: cover;
             border-radius: 22px; }
.phone i { position: absolute; left: 50%; top: 7px; width: 70px; height: 10px; margin-left: -35px; border-radius: 5px;
           background: var(--navy); }
.s-child { left: 12px; top: 155px; width: 82px; height: 210px; }
.s-green { left: 290px; top: 90px; width: 87px; height: 88px; }
.s-red { left: 8px; top: 373px; width: 224px; height: 118px; }
.s-small { left: 280px; top: 422px; width: 87px; height: 88px; }
.s-yellow { display: none; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: var(--road); }
.road::after { content: ""; position: absolute; left: 16px; right: 0; top: 36px; height: 6px;
               background: repeating-linear-gradient(90deg, #fff 0 52px, transparent 52px 105px); border-radius: 3px; }

/* Блоки */
.block { padding: 60px 0 68px; }
.cream { background: var(--cream); } .white { background: #fff; }
.block.green { background: var(--green-wash); } .sun { background: var(--yellow-wash); }
h2 { font: 800 38px/44px Nunito, sans-serif; }
.sub { margin-top: 16px; color: var(--muted); }
h3 { font: 800 26px/32px Nunito, sans-serif; }

.cards, .steps, .facts { display: grid; gap: 16px; margin-top: 40px; list-style: none; }
.card { min-height: 230px; padding: 20px 24px 28px; border-radius: 32px; }
.card.yellow, .step.yellow { background: var(--yellow-wash); }
.card.pink { background: var(--pink-wash); }
.card.sky, .step.sky { background: var(--sky-wash); }
.step.green { background: var(--green-wash); }
.big { font: 800 48px/56px Nunito, sans-serif; }
.card h3 { margin-top: 12px; }
.card p:last-child { margin-top: 12px; }

.step { border-radius: 28px; padding-bottom: 20px; }
.pic { position: relative; border-radius: 28px; overflow: hidden; }
.pic img { width: 100%; height: auto; }
/* надпись на картинке нарисована по-русски: поверх неё ставим такую же плашку с текстом на языке страницы */
.count { position: absolute; left: 23.5%; top: 12.5%; width: 45%; height: 16.1%; border-radius: 99px; background: #fff;
         display: flex; align-items: center; padding-left: 3%; font: 700 clamp(14px, 4.6vw, 20px)/1 Nunito, sans-serif;
         white-space: nowrap; }
.step h3 { padding: 4px 24px 0; }
.step p { display: none; }

.facts li { position: relative; display: flex; gap: 16px; align-items: flex-start; min-height: 126px; padding: 24px 20px;
            border-radius: 24px; background: #fff; }
.ico { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
       background: var(--green-wash); }
.facts p { font: 700 18px/26px Nunito, sans-serif; }
.tag { display: none; }

.get-main { display: flex; flex-direction: column; }
.stores { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 44px 0 62px; }
.store { position: relative; display: block; text-decoration: none; }
.store img { height: auto; }
.store:not([href]) { cursor: default; }
.store em { display: none; position: absolute; right: -14px; top: -10px; transform: rotate(6deg);
            padding: 2px 12px; border-radius: 12px; background: var(--red); color: #fff;
            font: 800 15px/24px Nunito, sans-serif; white-space: nowrap; }
.store-gp em { right: 0; top: 2px; }
.store:not([href]) em { display: block; }
.get .note { margin-top: 28px; }
.qr { display: none; }

/* Подвал */
/* на телефоне низ подвала закрыт закреплённой кнопкой — оставляем под неё место */
.foot { background: var(--navy); color: #fff; padding: 32px 0 calc(60px + 88px + env(safe-area-inset-bottom)); }
.foot-brand { display: none; }
.foot-nav { display: flex; flex-direction: column; }
.foot-nav a { padding: 16px 0; font: 700 18px/24px Nunito, sans-serif; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }
.copy { margin-top: 44px; font-size: 16px; line-height: 24px; }

/* Закреплённая кнопка на телефоне */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; padding: 8px 24px calc(16px + env(safe-area-inset-bottom));
          background: #fff; border-top: 1px solid var(--line); }
.sticky .btn { height: 56px; }

/* Планшет: то же, но шире */
@media (min-width: 700px) {
  .actions { flex-direction: row; }
  .actions .btn-primary { width: 320px; } .actions .btn-secondary { width: 184px; }
  .lead { max-width: none; }
  .cards, .steps { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts .wide { grid-column: 1 / -1; }
  .stores { flex-direction: row; justify-content: flex-start; margin: 32px 0 40px; }
  .get .btn { width: 320px; }
  .foot-nav { flex-direction: row; gap: 40px; }
}

/* Компьютер */
@media (min-width: 1200px) {
  body { font-size: 20px; line-height: 30px; }
  .sticky { display: none; }

  .top-row { height: 104px; }
  .brand { gap: 12px; font-size: 22px; line-height: 25px; }
  .brand img { width: 50px; height: 62px; }
  .top-nav { display: flex; gap: 6px; margin-left: auto; margin-right: 60px; }
  .top-nav a { padding: 15px 22px; border-radius: 16px; font: 700 18px/26px Nunito, sans-serif; text-decoration: none; }
  .top-nav a:hover { background: var(--sky-wash); }
  .lang button { min-width: 66px; }

  .hero { height: 744px; }
  .hero-text { padding-top: 64px; }
  .hero-text > * { max-width: 660px; }   /* справа — картинка; ширину держат сами строки, а не блок с полями */
  h1 { margin-top: 24px; font-size: 76px; line-height: 80px; }
  .lead { margin-top: 26px; }
  .actions { margin-top: 70px; }
  .note { margin-top: 28px; }
  .scene { position: absolute; right: calc(var(--pad) - 6px); top: 0; width: 580px; height: 744px; margin: 0; }
  .phone { left: 220px; top: 56px; width: 260px; height: 540px; border-radius: 32px; }
  .phone img { border-radius: 24px; }
  .s-child { left: 10px; top: 257px; width: 96px; height: 246px; }
  .s-green { left: 488px; top: 268px; width: 116px; height: 116px; }
  .s-red { left: 5px; top: 504px; width: 350px; height: 185px; }
  .s-small { left: 462px; top: 546px; width: 137px; height: 138px; }
  .s-yellow { display: block; } .s-orange { display: none; }
  .road { height: 94px; }
  .road::after { top: 44px; background: repeating-linear-gradient(90deg, #fff 0 64px, transparent 64px 128px); }

  .block { padding: 68px 0 76px; }
  h2 { font-size: 52px; line-height: 58px; }
  .cards, .steps { gap: 24px; margin-top: 46px; }
  .card { min-height: 320px; padding: 28px 24px; }
  .big { font-size: 64px; line-height: 76px; }
  .card h3 { margin-top: 26px; font-size: 28px; line-height: 34px; }
  .card p:last-child { margin-top: 20px; }

  .step, .step.yellow, .step.sky, .step.green { background: none; padding: 0; }
  .step.yellow .pic { background: var(--yellow-wash); } .step.sky .pic { background: var(--sky-wash); }
  .step.green .pic { background: var(--green-wash); }
  .count { font-size: 20px; }
  .step h3 { padding: 24px 0 0; }
  .step p { display: block; margin-top: 14px; font-size: 18px; line-height: 27px; color: var(--muted); }

  .facts { gap: 16px 48px; margin-top: 42px; }
  .facts li { min-height: 136px; gap: 24px; }
  .facts p { font-size: 20px; line-height: 28px; max-width: 480px; }
  .tag { display: block; margin-left: auto; align-self: center; padding: 14px; border-radius: 20px;
         background: var(--yellow-wash); font: 800 20px/28px Nunito, sans-serif; white-space: nowrap; margin-right: 44px; }

  .get { display: flex; justify-content: space-between; align-items: flex-start; }
  .stores { margin: 34px 0 36px; gap: 8px; align-items: center; }
  .qr:not([hidden]) { display: block; margin: 66px 64px 0 0; text-align: center; color: var(--muted); font-size: 16px; }
  .qr img { padding: 20px; border-radius: 20px; background: #fff; width: 190px; height: 190px; margin-bottom: 20px; }

  .foot { padding: 48px 0 42px; }
  .foot-row { display: grid; grid-template-columns: 1fr auto; row-gap: 46px; align-items: start; }
  .foot-brand { display: block; font: 800 22px/25px Nunito, sans-serif; }
  .foot-nav { gap: 72px; }
  .foot-nav a { padding: 14px 8px; font-size: 16px; }
  .copy { margin: 0; grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
