/* затемнение можно ослаблять/усиливать альфой */
:root {
  --hero-overlay: rgba(11, 27, 58, .55);
}

/* DESKTOP: широкая версия */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(180deg, var(--hero-overlay), rgba(11, 27, 58, .40)),
    image-set(url("/photo/main_section.avif") type("image/avif") 1x,
      url("/photo/main_section.webp") type("image/webp") 1x,
      url("/photo/main_section.webp") type("image/webp") 1x);
  background-size: cover;
  background-position: center 55%;
}

/* MOBILE: вертикальная версия кадра */
@media (max-width: 768px) {
  .hero {
    background:
      linear-gradient(180deg, var(--hero-overlay), rgba(11, 27, 58, .40)),
      image-set(url("/photo/main_section_vertical.webp") type("image/webp") 1x,
        url("/photo/main_section_vertical.png") type("image/png") 1x);
    background-size: cover;
    background-position: center 30%;
  }
}

:root {
  --color-primary: #2563EB;
  /* синий CTA/ссылки */
  --color-navy: #0B1B3A;
  /* тёмный фон/градиент */
  --color-sky: #EFF6FF;
  /* светлый фон секций/чипов */
  --color-success: #16A34A;
  /* зелёный: “Płatność przy odbiorze” */
  --color-text: #0B0D12;
  /* основной текст */
  --color-white: #FFFFFF;
  --color-navbar: #F3F4F6;
  --color-card: #F8FAFC;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, .18);
  --shadow-soft: 0 6px 20px rgba(0, 0, 0, .12);
  --container: 1200px;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--color-text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  text-decoration: none
}

/* ================= HERO [START] ================ */
/* Переменная затемнения уже есть у тебя в :root ( --hero-overlay ) */

/* Современные форматы, если поддерживается image-set */
@supports (background-image: image-set(url("x.avif") type("image/avif"))) {
  .hero {
    background-image:
      linear-gradient(180deg, var(--hero-overlay), rgba(11, 27, 58, .40)),
      image-set(url("photo/main_section.avif") type("image/avif"),
        url("photo/main_section.webp") type("image/webp"),
        url("photo/main_section.webp") type("image/webp"));
  }
}

/* MOBILE: вертикальный кадр по умолчанию PNG */
@media (max-width: 768px) {
  .hero {
    background-position: center 30%;
    background-image:
      linear-gradient(180deg, var(--hero-overlay), rgba(11, 27, 58, .40)),
      url("photo/main_section_vertical.png");
  }

  /* и AVIF/WEBP при поддержке image-set */
  @supports (background-image: image-set(url("x.avif") type("image/avif"))) {
    .hero {
      background-image:
        linear-gradient(180deg, var(--hero-overlay), rgba(11, 27, 58, .40)),
        image-set(url("photo/main_section_vertical.webp") type("image/webp"),
          url("photo/main_section_vertical.png") type("image/png"));
    }
  }
}

/* остальной твой код для .hero (внутренние отступы, заголовки и т.д.) — оставить */
.hero .inner {
  padding: 96px 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center
}

h1 {
  margin: 0;
  font-weight: 800;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .35)
}

.subhead {
  max-width: 780px;
  font-size: 18px;
  opacity: .95
}

/* === HERO: pills layout (две строки) [FIX] === */
.pills-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* делаем детей .trust прямыми детьми .pills-wrap,
   чтобы на них работал order */
.pills-wrap .trust {
  display: contents;
}

/* разрыв строки после первых трёх */
.pills-wrap::after {
  content: "";
  flex-basis: 100%;
  order: 1;
}

/* обе эти — во второй строке */
.pills-wrap .trust .pill:nth-child(4),
.pills-wrap .kpi {
  order: 2;
}

/* первые три — прозрачные, белый текст */
.pills-wrap .trust .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .65);
  background: transparent;
  color: #fff;
  font-size: 14px;
}

/* 4-я таблетка — белая */
.pills-wrap .trust .pill:nth-child(4) {
  background: #fff;
  color: var(--color-text);
  border: 1px solid rgba(11, 27, 58, .12);
  box-shadow: var(--shadow-soft);
  padding: 12px 20px;
}

/* KPI — белая */
.pills-wrap .kpi {
  display: flex;
  justify-content: center;
}

.pills-wrap .kpi .pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  background: #fff;
  color: var(--color-text);
  border: 1px solid rgba(11, 27, 58, .12);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
}


/* HERO — mobile spacing & type to match Section 2  */
@media (max-width:768px) {

  /* ближе к «брови» и меньше зазор между заголовком/текстом/карточками */
  .hero .inner {
    padding: 72px 16px 40px;
    /* было 96px 0 48px */
    gap: 20px;
    /* было 32px */
  }

  /* h1 ещё компактнее, но читабельно */
  .hero h1 {
    font-size: 30px;
    /* было 44/56 — делаем меньше */
    line-height: 1.15;
    letter-spacing: -0.3px;
    margin: 0;
    /* убираем лишний внешний отступ */
  }

  /* подзаголовок не уменьшаем, но делаем уже,
     чтобы текст разбился на больше строк и дал такие же поля, как в секции 2 */
  .hero .subhead {
    font-size: 16px;
    /* не уменьшаем ниже 16px */
    max-width: 36ch;
    /* контролируем длину строки как в секции 2 */
  }

  /* небольшой сдвиг карточек вверх, чтобы общий ритм совпал с секцией 2 */
  .choice-wrap {
    margin-top: 4px;
  }
}


/* ================= HERO [END] ================== */

/* ======= HERO: Choice cards (fixed) [REPLACE WHOLE BLOCK] ======= */
.choice-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 380px));
  gap: 25px;
  /* ДЕСКТОП: зазор между карточками = 25px */
  justify-content: center;
  align-items: stretch;
}

.choice-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  color: var(--color-text);
  border: 1px solid rgba(11, 27, 58, .08);
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;

  /* ←← ИМЕННО ЭТО ЗНАЧЕНИЕ МЕНЯЕШЬ, чтобы сдвигать плашку */
  --tag-shift: -30px;
  /* +10px = вправо, -10px = влево */
}

/* Stretched link pattern: makes the button's link cover the whole card */
.choice-card .btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  /* ensure it's on top of card content */
  cursor: pointer;
}

.choice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
}

/* Disable hover transform on mobile to prevent click interference */
@media (max-width: 768px) {
  .choice-card:hover {
    transform: none;
  }
}

/* === MEDIA: фото документа сверху карточки === */
.choice-card .media {
  margin: -22px -22px 10px;
  /* «фулл-блид» по верху */
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: #f2f4f7;
}

.choice-card .media img {
  display: block;
  width: 100%;
  height: 280px;
  /* фиксируем высоту на десктопе */
  object-fit: cover;
}

/* шапка карточки */
.choice-card .head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-sky);
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, .08);
}

.choice-card h3 {
  margin: 0;
  font-size: 20px;
}

.choice-card .list {
  font-size: 15px;
  opacity: .95;
}

/* Линия «цена + кнопка» — на одном уровне, кнопка прижата вправо */
.choice-card .actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* цена слева, кнопка справа */
  gap: 12px;
  margin-top: 4px;
  flex-wrap: nowrap;
  /* не переносим на новую строку */
}

/* Стили кнопок */
.choice-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  line-height: 1;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.choice-card .btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
}

.choice-card .btn-primary:hover {
  background: #1f4ed4;
  /* темнее на ховере */
  border-color: #1f4ed4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.choice-card .btn-primary:active {
  background: #1a43b8;
  /* ещё темнее на active */
  border-color: #1a43b8;
}

.choice-card .btn-ghost {
  background: #fff;
  color: var(--color-text);
  border-color: rgba(11, 27, 58, .15);
}

.choice-card .btn-ghost:hover {
  background: #F1F5F9;
  border-color: rgba(11, 27, 58, .30);
}

.choice-card .btn-ghost:active {
  background: #E5EAF0;
  border-color: rgba(11, 27, 58, .38);
}

.choice-card .btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Цена (вместо «Szczegóły») */
.choice-card .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
}

.choice-card .price .now {
  font-size: 20px;
  color: var(--color-primary);
  /* актуальная цена — синяя */
}

.choice-card .price .old {
  font-size: 14px;
  color: rgba(0, 0, 0, .45);
  text-decoration: line-through;
  /* зачёркнутая старая цена */
}

/* БЕЙДЖ: центр на верхнем крае карточки, прижат вправо
   right считается как (внутренний паддинг) + (твоё смещение) */
.choice-card .tag {
  position: absolute;
  top: 0;
  right: calc(22px + var(--tag-shift));
  /* ← тут участвует --tag-shift */
  transform: translateY(-50%);
  /* центр бейджа по линии верха */
  z-index: 2;

  background: var(--color-success);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

/* МОБИЛКА: одна колонка, зазор 24px; тот же сдвиг работает и здесь */
@media (max-width:768px) {
  .choice-wrap {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .choice-card {
    padding: 18px;
  }

  .choice-card .media {
    margin: -18px -18px 10px;
  }

  .choice-card .media img {
    height: 220px;
  }

  .choice-card .btn {
    flex: 0 0 auto;
  }

  .choice-card .tag {
    right: calc(18px + var(--tag-shift));
    /* 18px = мобильный паддинг карточки */
    transform: translateY(-50%);
  }
}

/* ======= HERO: Choice cards (fixed) [END] ======= */

/* ================= STEPS [START] =============== */
.section-steps {
  background: #fff;
  padding: 56px 0
}

.section-steps .intro {
  max-width: 800px;
  margin: 0 auto 16px;
  color: #475569
}

.timeline {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* ВАЖНО: центр линии совпадает с центром столбца (40px → центр = 20px, ширина линии 4px → left = 18px) */
.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(var(--color-navy), var(--color-primary));
  border-radius: 999px;
}

.step {
  display: contents
}

/* Точка строго по центру линии */
.dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid #fff;
  box-shadow: var(--shadow-soft);
  grid-column: 1;
  place-self: start center;
  position: relative;
  top: 0;
  /* было 2px — убираем, чтобы центр совпадал */
}

/* Карточки шага: тени + анимация появления справа */
.content {
  grid-column: 2;
  background: #fff;
  border: 1px solid rgba(11, 27, 58, .10);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
  transition: transform .6s cubic-bezier(.22, .61, .36, 1), opacity .6s ease, box-shadow .18s ease;
  will-change: transform, opacity;
  /* стартовое состояние (до попадания в зону видимости) */
  transform: translateX(40px);
  opacity: 0;
}

.content.in-view {
  transform: none;
  opacity: 1;
}

.content:hover {
  transform: translateY(-2px);
  /* лёгкий подъём при ховере */
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
}

.content h3 {
  margin: 0 0 6px;
  font-size: 18px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.content .meta {
  font-size: 14px;
  opacity: .8;
  margin-bottom: 6px
}

/* Немного «ступенчатой» задержки для карточек */
.timeline .content:nth-of-type(1) {
  transition-delay: var(--delay, .00s);
}

.timeline .content:nth-of-type(2) {
  transition-delay: var(--delay, .06s);
}

.timeline .content:nth-of-type(3) {
  transition-delay: var(--delay, .12s);
}

/* Мобилка */
@media (max-width:768px) {
  .section-steps {
    padding: 40px 0
  }

  .timeline {
    grid-template-columns: 28px 1fr
  }

  .timeline::before {
    left: 12px
  }

  /* 28px столбец → центр 14px → 14-2 = 12 */
  .dot {
    width: 20px;
    height: 20px
  }

  .content {
    box-shadow: 0 10px 26px rgba(0, 0, 0, .14)
  }
}

/* Если пользователь предпочитает «без анимаций» */
@media (prefers-reduced-motion: reduce) {
  .content {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* ================= STEPS [END] ================= */

/* ================= SOCIAL (Maps + Vertical YouTube) [START] ============= */
.section-social {
  background: #fff;
  padding: 56px 0;
  /* десктоп как в секции 2 */
  color: var(--color-text);
}

@media (max-width:768px) {
  .section-social {
    padding: 40px 0;
  }

  /* мобилка как в секции 2 */
}

/* grid секции: зазор как в секции 2 — 24 / 16 */
.social-grid {
  display: grid;
  gap: 24px;
  /* desktop */
  grid-template-columns: 1.2fr .8fr;
  /* слева карта шире */
  align-items: stretch;
  /* карточки одной высоты */
}

@media (max-width:768px) {
  .social-grid {
    gap: 16px;
  }

  /* mobile */
}

/* общая карточка */
.section-social .card {
  background: #fff;
  color: var(--color-text);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, .08);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.section-social h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

/* ====== внутри левой карточки: сетка карта + отзывы ====== */
.map-card .map-layout {
  display: grid;
  grid-template-columns: 370px 280px;
  /* карта 370px, отзывы 280px */
  gap: 12px;
  align-items: stretch;
}

/* важно: позволяем колонкам ужиматься */
.map-embed,
.g-reviews {
  min-width: 0;
}

/* MAPA */
.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  border-right: none;
  /* убираем тонкую линию справа */
  aspect-ratio: 16/12;
  /* делаем карту чуть выше */
  background: #eef2f7;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--color-primary);
}

/* Opinie (правая колонка) — белая панель */
.g-reviews {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-left: -2px;
  /* сдвиг, чтобы не было щели с картой */
}

.g-review {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 10px 2px;
}

.g-review+.g-review {
  border-top: 1px solid rgba(0, 0, 0, .06);
}

.g-review .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.g-review .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #334155;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.g-review .name {
  font-weight: 700;
  line-height: 1.1;
}

.g-review .stars {
  color: #f59e0b;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .5px;
}

.g-review .text {
  font-size: 14px;
  opacity: .92;
}

/* ====== VIDEO (9:16) + стрелки ====== */
/* ширина видео и ИНДИВИДУАЛЬНЫЕ отступы стрелок */
.video-vert {
  position: relative;
  --video-w: 82%;
  /* ДЕСКТОП: ширина самого видео */
  --nav-left: 24px;
  /* ДЕСКТОП: отступ стрелки от края видео слева */
  --nav-right: 30px;
  /* ДЕСКТОП: отступ стрелки от края видео справа */
}

.video-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .08);
  background: #000;
}

.ratio-9x16 {
  aspect-ratio: 9/16;
}

/* ДЕСКТОП: классическое 9:16 */
.ratio-9x16 iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ====== YOUTUBE FACADE ====== */
.youtube-facade {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  cursor: pointer;
}
.youtube-facade::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.15); /* Lekkie przyciemnienie / Light overlay */
  pointer-events: none;
}
.youtube-facade .yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.2s ease, filter 0.2s ease;
  padding: 0;
  display: flex;
}
.youtube-facade:hover .yt-play-btn {
  transform: translate(-50%, -50%) scale(1.05);
  filter: brightness(1.1);
}

/* стрелки — в просвете, без фона/рамки, чёрные */
#yt-slider {
  position: static;
}

/* позиционируем от .video-vert */
.video-vert .yt-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: #000;
  cursor: pointer;
}

.video-vert .yt-nav svg {
  pointer-events: none;
  stroke-width: 2.2;
}

/* вычисляемые позиции стрелок от ширины видео */
.video-vert .yt-prev {
  left: calc((100% - var(--video-w))/2 - var(--nav-left));
}

.video-vert .yt-next {
  right: calc((100% - var(--video-w))/2 - var(--nav-right));
}

.video-vert .yt-nav:hover {
  filter: brightness(0.85);
}

.video-vert .yt-nav:active {
  transform: translateY(calc(-50% + 1px));
}

/* десктоп: ширина видео и центрирование */
@media (min-width:769px) {
  .section-social .video-vert .video-embed {
    width: var(--video-w);
    margin-inline: auto;
  }
}

/* адаптив */
@media (max-width:1024px) {
  .social-grid {
    grid-template-columns: 1fr;
  }

  .map-card .map-layout {
    grid-template-columns: 1fr;
  }

  /* отзывы под картой */
}

/* МОБИЛКА: делаем видео чуть «ниже» и оставляем поля под стрелки */
@media (max-width:768px) {
  .video-vert {
    --video-w: 85%;
    /* ← ширина видео на мобиле (уменьши/увеличь поля по бокам) */
    --nav-left: 15px;
    /* ← расстояние стрелки от края видео слева */
    --nav-right: 20px;
    /* ← расстояние стрелки от края видео справа */
  }

  .section-social .video-vert .video-embed {
    width: var(--video-w);
    margin-inline: auto;
    /* центрируем более узкое видео */
  }

  .section-social .ratio-9x16 {
    aspect-ratio: 9/16;
    /* ← «чуть ниже», чем 9/16 (меньше высота при той же ширине) */
  }

  /* ВАЖНО: убираем прежние принудительные left/right, чтобы работала формула calc */
  /* (ничего не задаём явно — позиции берутся из вычисляемых правил выше) */
}

/* === reveal-анимации как в секции 2 === */
.section-social .reveal-left,
.section-social .reveal-right {
  opacity: 0;
  transition:
    opacity .60s cubic-bezier(.22, .61, .36, 1),
    transform .60s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

@media (min-width:769px) {
  .section-social .reveal-left {
    transform: translateX(-24px);
  }

  .section-social .reveal-right {
    transform: translateX(24px);
  }
}

@media (max-width:768px) {
  .section-social .reveal-left {
    transform: translateX(-16px);
  }

  .section-social .reveal-right {
    transform: translateX(16px);
  }
}

.section-social .is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ================= SOCIAL [END] ================== */

/* ============== WHY v2 (cards) [START] =============== */
.section-why2 {
  background: #fff;
  padding: 56px 0;
  color: var(--color-text);
}

.section-why2 .lead {
  margin-top: 6px;
  opacity: .9;
}

.why2-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  align-items: stretch;
}

.why2-card {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
}

/* белая карточка в общем стиле, чуть заметнее тень */
.why2-card.card {
  padding: 20px;
  border: 1px solid rgba(11, 27, 58, .10);
  border-radius: 20px;
  /* мягкие углы как везде */
  box-shadow: 0 10px 26px rgba(0, 0, 0, .14);
  /* базовая тень */
  transition: transform .18s ease, box-shadow .18s ease;
}

/* hover — как в секции 2 (Etapy): одинаковая «выпуклость» */
.section-why2 .why2-card.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, .20);
}

/* иконка */
.why2-card .icon-why {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--color-sky);
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, .08);
  font-size: 24px;
  line-height: 1;
}

/* номер */
.why2-card .num-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-weight: 800;
  color: var(--color-primary);
  opacity: .9;
}

.why2-card h3 {
  margin: 2px 0 2px;
  font-size: 18px;
}

.why2-card p {
  margin: 0;
  opacity: .95;
}

/* === reveal-анимации — те же параметры, что в секции 2 === */
/* стартовые состояния */
.section-why2 .reveal-left,
.section-why2 .reveal-right {
  opacity: 0;
  transition:
    opacity .60s cubic-bezier(.22, .61, .36, 1),
    transform .60s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

/* смещение на входе: десктоп */
@media (min-width:769px) {
  .section-why2 .reveal-left {
    transform: translateX(-24px);
  }

  .section-why2 .reveal-right {
    transform: translateX(24px);
  }
}

/* смещение на входе: мобилка */
@media (max-width:768px) {
  .section-why2 .reveal-left {
    transform: translateX(-16px);
  }

  .section-why2 .reveal-right {
    transform: translateX(16px);
  }
}

/* когда элемент в зоне видимости — те же классы-триггеры, что в других секциях */
/* элемент во вьюпорте */
.section-why2 .is-visible,
.section-why2 .is-inview {
  opacity: 1;
  transform: translateX(0);
}

/* адаптив сетки */
@media (max-width:1024px) {
  .why2-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ============== WHY v2 (cards) [END] ================= */


/* ================= FAQ [START] ================= */
:root {
  /* высота фото слева */
  --faq-photo-h: 280px;
}

.faq-wrap {
  background: #fff;
  padding: 56px 0;
}

/* как в секции 2 */
@media (max-width:768px) {
  .faq-wrap {
    padding: 40px 0;
  }

  /* как в секции 2 */
}

/* сетка: слева фиксированная колонка, справа — гибкая */
.faq-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(320px, 480px) 1fr;
  /* ВАЖНО: вернули как было красиво */
  align-items: start;
}

@media (max-width:992px) {
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

/* левая колонка */
.faq-left {
  display: grid;
  gap: 16px;
  align-content: start;
  align-self: start;
}

/* фото слева */
.faq-img {
  height: var(--faq-photo-h);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
}

.faq-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* мобилка: фото убираем */
@media (max-width:768px) {
  .faq-img {
    display: none;
  }
}

/* карточка формы — только в секции FAQ */
.faq-wrap .card {
  background: #fff;
  color: var(--color-text);
  border: 1px solid rgba(11, 27, 58, .12);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}

/* ===== FAQ (секция 5): форма [REWRITE] ===== */

/* Заголовок формы */
.faq-form h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

/* Строка: инпут + кнопка всегда в один ряд */
.faq-form .row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  /* запрет переноса */
  min-width: 0;
  /* строка может сжиматься внутри карточки */
}

/* Поле телефона:
   - может сжиматься
   - мин. ширина = 12 символов + горизонтальные паддинги и рамки
   - box-sizing чтобы ширина считалась корректно */
.faq-form input[type=tel] {
  flex: 1 1 0%;
  /* сжимается первым */
  min-inline-size: calc(12ch + 28px + 2px);
  /* 12ch + (14px*2 паддинги) + (1px*2 рамка) */
  max-inline-size: 100%;
  min-width: 0;
  /* критично для Chrome/Samsung */
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 12px;
  font-size: 16px;
  box-sizing: border-box;
}

/* Кнопка — фиксированная по содержимому, не переносится */
.faq-form button {
  flex: 0 0 auto;
  white-space: nowrap;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background-color .18s ease, box-shadow .18s ease;
}

.faq-form button:hover {
  background: #1f4ed4;
  /* темнее при ховере — как в секции 1 */
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.faq-form button:active {
  background: #1a43b8;
}

/* Текст под формой */
.faq-form .gdpr {
  font-size: 12px;
  color: #475569;
  margin-top: 8px;
}

/* Очень узкие экраны */
@media (max-width:360px) {
  .faq-form button {
    padding: 0 14px;
    font-size: 14px;
  }
}

/* правая колонка (FAQ) */
.faq-box {
  padding: 16px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.faq-box .intro {
  opacity: .9;
  margin-bottom: 12px;
}

/* элементы FAQ */
.faq-item {
  border: 1px solid rgba(11, 27, 58, .12);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
}

.faq-item+.faq-item {
  margin-top: 10px;
}

.faq-item summary {
  list-style: none;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-right: 28px;
}

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

/* кружок с ? */
.faq-item .q-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
}

/* чеврон */
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  margin-top: -6px;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .22s ease;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

/* плавное открытие ответа */
.faq-item>p {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .35s ease, opacity .25s ease, transform .25s ease;
}

.faq-item[open]>p {
  margin-top: 8px;
  margin-bottom: 2px;
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
}

/* Reveal-анимации — только для секции FAQ */
.faq-wrap .reveal-left,
.faq-wrap .reveal-right {
  transform: none;
  opacity: 1;
  transition: transform .60s cubic-bezier(.22, .61, .36, 1),
    opacity .60s cubic-bezier(.22, .61, .36, 1);
  will-change: transform, opacity;
}

.js-ready .faq-wrap .reveal-left {
  transform: translateX(-32px);
  opacity: 0;
}

.js-ready .faq-wrap .reveal-right {
  transform: translateX(32px);
  opacity: 0;
}

.js-ready .faq-wrap .is-inview {
  transform: none;
  opacity: 1;
}

/* ================= FAQ [END] =================== */

/* --- базовые фиксы для мобилок --- */
html {
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
  /* чтобы iOS не увеличивал шрифты */
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* убираем горизонтальный скролл и «белую полосу» справа */
html,
body {
  width: 100%;
  overflow-x: hidden;
}

/* медиа не выходят за экран */
img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* безопасная ширина вместо 100vw (не включает скроллбар) */
:root {
  --vw-safe: calc(100vw - (100vw - 100%));
}

/* утилита: если где-то используется 100vw — заменяй на этот класс,
   либо просто так переопредели проблемные блоки */
.vw-safe {
  width: var(--vw-safe);
}

/* на всякий случай ограничим широкие «на всю ширину» контейнеры */
.full-bleed,
.section-hero,
.header-hero,
.footer,
.section-why {
  max-width: 100%;
}

/* Строка формы: по умолчанию в один ряд */
.faq-form .row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
}

/* Поле телефона — сжимается, но не ломает отступы */
.faq-form input[type="tel"] {
  flex: 1 1 0%;
  min-width: 0;
  min-inline-size: calc(12ch + 28px + 2px);
  /* минимум под формат +48512286639 */
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 12px;
  font-size: 16px;
  box-sizing: border-box;
}

/* Кнопка — как в секции 1 (с затемнением) */
.faq-form button {
  flex: 0 0 auto;
  white-space: nowrap;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background-color .18s ease, box-shadow .18s ease, transform .06s ease;
}

.faq-form button:hover {
  background: #1f4ed4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.faq-form button:active {
  background: #1a43b8;
  transform: translateY(1px);
}

/* МОБИЛКИ: если места мало — переносим кнопку под поле и растягиваем на 100% */
@media (max-width: 480px) {
  .faq-form .row {
    flex-wrap: wrap;
  }

  .faq-form input[type="tel"] {
    flex: 1 0 100%;
    width: 100%;
    min-inline-size: 0;
    /* позволяем сжаться до ширины карточки */
  }

  .faq-form button {
    flex: 1 0 100%;
    width: 100%;
    margin-top: 8px;
  }
}


/* Больше отступа под подписью */
.faq-form label {
  display: block;
  margin: 0 0 14px;
  /* увеличь число при желании, например 16–20px */
}

/* (необязательно) на мобилке чуть больше */
@media (max-width:480px) {
  .faq-form label {
    margin-bottom: 12px;
  }
}

@media (max-width: 768px) {
  .hero .subhead {
    padding: 0 16px;
    /* воздух слева/справа как у контента */
    word-break: break-word;
  }
}

.choice-title {
  font-size: 21px;
}

@media (max-width: 768px) {
  .choice-title {
    font-size: 17px;
  }
}



.site-nav {
  width: 100%;
  max-width: 100%;
}