/* =========================================================
   SkyRazor — главная страница (новый дизайн)
   Стили взяты из css/style.css (new.html). Все правила начинаются с .home —
   этот файл подключается на всех страницах нового дизайна, но действует
   только внутри <main class="home"> на главной.
   Цвета и шрифты — переменные из styles/site.css (--accent, --line, --font-head …).
   ========================================================= */

/* ---------- Общее для главной ----------
   .card, .h2, .eyebrow, .tag, .sr-label, .btn*, .btn-row, .accent, заголовки и <s> — уже в styles/site.css */
.home h1, .home h2, .home h3 { letter-spacing: -.01em; }
/* Якоря #pick и #contacts не прячутся под липкой шапкой */
.home [id] { scroll-margin-top: calc(var(--header-h, 0px) + 16px); }
.home .section { padding-top: 72px; }
.home .section-sm { padding-top: 20px; }
.home .section-top { padding-top: 40px; }
.home .grid { display: grid; gap: 16px; }
.home .grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.home .grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.home .section-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.home .section-head .h2 { margin-bottom: 0; }
.home .link-strong { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* ---------- Главный экран ---------- */
.home .hero { padding: 48px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; border-radius: 28px; }
.home .hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.home .eyebrow-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-soft-ink); font: 500 12px/1.2 var(--font-mono); letter-spacing: .08em; }
.home .eyebrow-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.home .hero h1 { font-size: 54px; line-height: 1.06; font-weight: 800; text-wrap: balance; }
.home .lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 540px; }
.home .stats { display: flex; flex-wrap: wrap; gap: 12px 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.home .stats__caption { flex-basis: 100%; margin-bottom: -4px; font-size: 13px; color: var(--muted); }
.home .stats b { display: block; font: 700 26px/1 var(--font-head); white-space: nowrap; }
.home .stats.is-swapping b, .home .stats.is-swapping span { opacity: 0; }
.home .stats b, .home .stats span { transition: opacity .25s; }
.home .stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.home .stats .stats__caption span { display: inline; margin: 0; font-size: inherit; font-weight: 700; color: var(--text); }

/* Карусель антенн */
.home .hero-slider { flex: 1 1 380px; min-width: 0; display: grid; background: var(--surface-2); border-radius: 22px; padding: 20px; }
.home .hero-slide { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 6px; color: var(--text); opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.home .hero-slide.is-active { opacity: 1; visibility: visible; }
.home .hero-slide img { height: 300px; width: 100%; object-fit: contain; background: var(--surface); border-radius: 16px; padding: 16px; margin-bottom: 10px; }
.home .hero-slide { position: relative; }
.home .hero-slide > .sr-label { position: absolute; left: 10px; top: 10px; z-index: 2; }
.home .hero-slide:has(> .sr-label) img { padding-top: 34px; }
.home .hero-slide b { font: 700 20px/1.2 var(--font-head); }
.home .hero-slide .price { font-weight: 700; font-size: 20px; color: var(--text); }
.home .hero-slide:hover { color: var(--text); }
.home .hero-slider__nav { grid-area: 2 / 1; display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.home .hero-slider__dots { display: flex; gap: 6px; }
.home .hero-slider__dots button { width: 20px; height: 36px; padding: 0; border: 0; background: transparent; display: flex; align-items: center; transition: width .2s; }
.home .hero-slider__dots button::before { content: ''; display: block; width: 100%; height: 6px; border-radius: 3px; background: #C9CFD8; }
.home .hero-slider__dots button[aria-pressed="true"] { width: 36px; }
.home .hero-slider__dots button[aria-pressed="true"]::before { background: var(--accent); }
.home .hero-slider__pos { margin-left: auto; font: 500 12px var(--font-mono); color: var(--muted); }

/* ---------- Преимущества ---------- */
.home .perk { padding: 20px; display: flex; gap: 14px; align-items: flex-start; border-radius: 18px; }
.home .perk b { font-size: 16px; }
.home .perk p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.home .ico { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; }
.home .ico--lg { width: 48px; height: 48px; border-radius: 14px; }

/* ---------- Подбор по задаче ---------- */
.home .task { background: var(--accent-soft, #E6F6F3); border: 1px solid #BFE6DE; border-radius: 28px; padding: 40px 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px 40px; }
.home .task__head h2 { font-size: 30px; line-height: 1.2; margin: 10px 0 0; }
.home .task__head p { margin: 12px 0 0; color: #3D4A5C; line-height: 1.6; }
.home .task__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home .task__opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.home .task__opt { text-align: left; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: start; align-content: start; padding: 14px; min-height: 76px; border-radius: 16px; border: 1px solid #B9DDD6; background: rgba(255, 255, 255, .55); color: var(--text, #0E1116); font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.home .task__opt .ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--surface, #fff); color: var(--accent-text, #007A68); display: inline-flex; align-items: center; justify-content: center; }
.home .task__opt b { font-size: 15px; line-height: 1.3; }
.home .task__opt span:not(.ico) { font-size: 13px; line-height: 1.4; color: var(--muted, #5F6A7D); }
.home .task__opt:hover { border-color: var(--accent, #00A68E); }
.home .task__opt.is-on { border: 2px solid var(--accent, #00A68E); padding: 13px; background: var(--surface, #fff); }
.home .task__opt.is-on .ico { background: var(--accent, #00A68E); color: var(--accent-ink, #04140F); }
.home .task__results { grid-column: 1 / -1; background: var(--surface, #fff); border: 1px solid #BFE6DE; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.home .task__result[hidden] { display: none; }
.home .task__why { margin: 0 0 12px; font-size: 16px; line-height: 1.5; color: var(--text-2, #4A5466); }
.home .task__why b { color: var(--text, #0E1116); }
.home .task__picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.home .pick { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line, #E2E6EC); border-radius: 16px; color: var(--text, #0E1116); text-decoration: none; transition: border-color .15s; }
.home .pick:hover { border-color: var(--accent, #00A68E); color: var(--text, #0E1116); }
.home .pick img { width: 84px; height: 84px; flex: none; object-fit: contain; border-radius: 12px; background: #fff; }
.home .pick span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.home .pick b { font-size: 16px; line-height: 1.3; }
.home .pick small { font-size: 13px; color: var(--muted, #5F6A7D); }
.home .pick em { font-style: normal; font-weight: 700; font-size: 17px; }
.home .pick em.is-note { font-size: 14px; font-weight: 600; color: var(--text-2, #4A5466); }
.home .task__help { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding-top: 16px; border-top: 1px solid var(--line, #E2E6EC); }
.home .task__help span { margin-right: auto; font-weight: 600; }

@media (max-width: 900px) {
  .home .task { grid-template-columns: minmax(0, 1fr); padding: 20px; border-radius: 20px; gap: 16px; }
  .home .task__head h2 { font-size: 22px; }
  .home .task__options { gap: 8px; }
  .home .task__opt { grid-template-columns: minmax(0, 1fr); padding: 12px; min-height: 0; }
  .home .task__opt.is-on { padding: 11px; }
  .home .task__opt .ico { grid-row: auto; width: 36px; height: 36px; margin-bottom: 6px; }
  .home .task__opt b { font-size: 14px; }
  .home .task__results { padding: 14px; }
  .home .pick img { width: 64px; height: 64px; }
  .home .task__help span { flex-basis: 100%; }
  .home .task__help .btn { flex: 1 1 auto; }
}

/* ---------- Категории ---------- */
.home .cat { padding: 22px; display: flex; flex-direction: column; gap: 12px; color: var(--text); transition: border-color .15s; }
.home .cat:hover { border-color: var(--accent); color: var(--text); }
.home .cat b { font: 700 18px/1.25 var(--font-head); }
.home .cat p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.home .cat .more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent-text); }

/* ---------- Карточки товаров («Хіти та новинки») ---------- */
.home .product { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.home .product__img { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.home .product__img img { height: 200px; width: 100%; object-fit: contain; padding: 12px; }
.home .product__img .sr-label { position: absolute; left: 8px; top: 8px; z-index: 2; }
.home .product__img:has(.sr-label) img { padding-top: 30px; }
.home .stock { font-size: 13px; font-weight: 600; color: var(--ok, #0B7A3E); display: flex; align-items: center; gap: 6px; }
.home .stock::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #16A34A; }
.home .stock--order { color: var(--amber-ink); }
.home .stock--order::before { background: #D98E04; }
.home .product__name { font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--text); }
.home .product__name:hover { color: var(--accent-text); }
.home .specs { display: flex; flex-wrap: wrap; gap: 6px; }
.home .specs span { padding: 4px 8px; border-radius: 8px; background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.home .product__price { margin-top: auto; font-weight: 700; font-size: 22px; color: var(--text); }
.home .product__price .price { font: inherit; color: inherit; }
.home .product .btn { width: 100%; }

/* ---------- Комплект ---------- */
.home .bundle { display: flex; flex-wrap: wrap; overflow: hidden; border-radius: 28px; }
.home .bundle__img { flex: 1 1 420px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 24px; }
.home .bundle__img img { max-height: 340px; object-fit: contain; }
.home .bundle__text { flex: 1 1 420px; min-width: 0; padding: 44px; display: flex; flex-direction: column; gap: 16px; }
.home .bundle__img { position: relative; }
.home .bundle__img .sr-label { position: absolute; left: 12px; top: 12px; z-index: 2; }
.home .bundle__img:has(.sr-label) { padding-top: 40px; }
.home .bundle__text h2 { font-size: 30px; line-height: 1.2; }
.home .bundle__text p { margin: 0; line-height: 1.6; color: var(--text-2); }
.home .bundle__price { font-weight: 700; font-size: 30px; color: var(--text); }
.home .bundle__price .price { font: inherit; color: inherit; }

/* ---------- Почему мы ---------- */
.home .why { padding: 22px; border-radius: 18px; }
.home .why span { font: 500 13px var(--font-mono); color: var(--accent-text); }
.home .why b { display: block; margin-top: 10px; font-size: 17px; }
.home .why p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- Контакты и форма ---------- */
.home .contact { padding: 44px; display: flex; flex-wrap: wrap; gap: 40px; border-radius: 28px; }
.home .contact__info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.home .contact__info h2 { font-size: 30px; line-height: 1.2; }
.home .contact__info p { margin: 0; line-height: 1.6; color: var(--text-2); }
.home .contact__phone { font: 700 26px/1.2 var(--font-head); color: var(--text); }
.home .contact__form { flex: 1.3 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.home .contact__form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.home .contact__form small { font-size: 14px; font-weight: 500; color: var(--muted); }
.home .contact__form input, .home .contact__form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); font: inherit; font-size: 15px; font-weight: 400; color: var(--text); outline: none; }
.home .contact__form input { height: 50px; padding: 0 14px; }
.home .contact__form textarea { padding: 12px 14px; resize: vertical; }
.home .contact__form input:focus, .home .contact__form textarea:focus { border-color: var(--accent); background: var(--surface); }
.home .contact__form .is-invalid { border-color: #D1382B; }
.home .span-2 { grid-column: 1 / -1; }
.home .form-error { margin: 0; color: #B42318; font-size: 14px; font-weight: 600; }
.home .form-ok { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-soft-ink); font-weight: 600; }

/* =========================================================
   Планшет и телефон
   ========================================================= */
@media (max-width: 900px) {
  .home .section { padding-top: 48px; }

  .home .hero { padding: 20px; gap: 20px; border-radius: 22px; }
  .home .hero h1 { font-size: 30px; line-height: 1.1; }
  .home .lead { font-size: 16px; }
  .home .btn-row .btn--lg { flex: 1 1 100%; }
  .home .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .home .stats__caption { grid-column: 1 / -1; margin-bottom: 0; }
  .home .stats b { font-size: 15px; line-height: 1.15; white-space: normal; }
  .home .stats span { font-size: 12px; }
  .home .hero-slider { padding: 12px; }
  .home .hero-slide img { height: 200px; }

  .home .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home .perk { flex-direction: column; gap: 8px; padding: 14px; }
  .home .perk .ico { display: none; }
  .home .perk p { font-size: 13px; }
  .home .cat { padding: 14px; gap: 8px; }
  .home .cat b { font-size: 15px; font-family: var(--font); }
  .home .cat p { display: none; }
  .home .product { padding: 10px; gap: 8px; }
  .home .product__img img { height: 130px; padding: 8px; }
  .home .product__img .sr-label { left: 5px; top: 5px; max-width: calc(100% - 10px); }
  .home .product__img:has(.sr-label) img { padding-top: 24px; }
  .home .hero-slide > .sr-label { left: 8px; top: 8px; }
  .home .hero-slide:has(> .sr-label) img { padding-top: 28px; }
  .home .bundle__img .sr-label { left: 8px; top: 8px; }
  .home .bundle__img:has(.sr-label) { padding-top: 32px; }
  .home .product__name { font-size: 14px; }
  .home .specs { gap: 4px; }
  .home .specs span { padding: 3px 6px; font-size: 12px; line-height: 1.35; }
  .home .product__price { font-size: 18px; }
  .home .product__price s { display: block; margin: 0; }

  .home .bundle__text, .home .contact { padding: 20px; }
  .home .bundle__text h2, .home .contact__info h2 { font-size: 22px; }
  .home .bundle__price { font-size: 24px; }
  .home .contact__phone { font-size: 20px; }
}

@media (max-width: 600px) {
  .home .section-top { padding-top: 16px; }
  .home .hero { padding: 16px; }
  .home .hero h1 { font-size: 26px; }
  .home .product .btn { height: 44px; padding: 0 10px; }
}

/* Плашки характеристик на слайдах першого екрана (частоти · потужність · АКБ) */
.home .hero-slide__specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; }
.home .hero-slide__specs span { padding: 4px 9px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; line-height: 1.35; color: var(--text-2); }
