/* Главная в стиле маркетплейса (с 11 октября 2026), цвета base-map.
   Подключается поверх style.css и действует только внутри body.home —
   посадочные и остальные страницы от этого файла не зависят. */

body.home{background:var(--bg);font-size:15px}
.home .wrap{max-width:1240px}

/* -------------------------------------------------------------- баннер */
.hero{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;margin-top:20px}
.hero__main{position:relative;overflow:hidden;border-radius:24px;padding:30px 32px 32px;color:#fff;
  background:radial-gradient(120% 140% at 100% 0%,var(--green-light) 0%,var(--green) 45%,#12803A 100%)}
.hero__main::after{content:"";position:absolute;right:-60px;bottom:-80px;width:280px;height:280px;
  border-radius:50%;background:rgba(255,255,255,.08)}
.hero h1{margin:0 0 10px;font-size:34px;line-height:1.12;letter-spacing:-.03em;font-weight:800;max-width:620px}
.hero p{margin:0;max-width:560px;font-size:16px;opacity:.92}
.hero__pills{list-style:none;padding:0;margin:20px 0 24px;display:flex;flex-wrap:wrap;gap:8px}
.hero__pills li{display:flex;align-items:center;gap:6px;padding:7px 12px;border-radius:12px;
  background:rgba(255,255,255,.16);font-size:13.5px;font-weight:600;backdrop-filter:blur(2px)}
.hero svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;
  stroke-linecap:round;stroke-linejoin:round;flex:none}
.hero__cta{position:relative;z-index:1;display:inline-flex;align-items:center;height:48px;padding:0 26px;
  border-radius:14px;background:#fff;color:var(--green);font-weight:800;text-decoration:none;
  box-shadow:0 6px 18px rgba(0,0,0,.12);transition:transform .15s}
.hero__cta:hover{transform:translateY(-1px)}
.hero__prices{background:#fff;border-radius:24px;padding:22px;display:flex;flex-direction:column;gap:10px}
.hero__prices-ttl{font-weight:800;font-size:17px;letter-spacing:-.01em;margin-bottom:2px}
.pt{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:12px 14px;
  border-radius:14px;background:var(--soft-bg)}
.pt span{color:var(--muted);font-size:14px}
.pt b{font-size:22px;font-weight:800;color:var(--green);letter-spacing:-.02em;white-space:nowrap}
.hero__more{margin-top:auto;color:var(--green);font-weight:600;font-size:14px;text-decoration:none}
.hero__more:hover{text-decoration:underline}

/* ------------------------------------------------------- раскладка */
.home .layout{grid-template-columns:minmax(0,1fr) 340px;gap:16px;padding-top:16px;padding-bottom:70px}
.home .side{top:132px}

/* шаги — белые карточки без рамок */
.home .step{margin-top:16px;background:#fff;border-radius:20px;padding:20px 20px 22px}
.home .main>.step:first-of-type{margin-top:0}
.home .step h2{font-size:21px;font-weight:800;letter-spacing:-.02em;margin:0 0 14px;flex-wrap:wrap}
.home .step h2 small{font-size:13.5px;font-weight:400;color:var(--muted);letter-spacing:0}
.home .step__n{width:30px;height:30px;border-radius:10px;font-size:15px}
.home .panel{border:0;box-shadow:none;border-radius:16px;background:transparent;overflow:visible}
.home .panel--pad{padding:0}
.home .panel__bar{border:0;padding:0 0 12px;gap:10px}
.home .search{height:44px;border-radius:12px;background:var(--bg);border:2px solid transparent;padding:0 14px}
.home .search:focus{background:#fff;border-color:var(--green);box-shadow:none}
.home .link{font-weight:600;padding:6px 10px;border-radius:10px}
.home .tree{max-height:460px;border-radius:16px;background:var(--bg);padding:6px}
.home .group{border:0;background:#fff;border-radius:12px;margin-bottom:6px}
.home .group:last-child{margin-bottom:0}
.home .group__head{background:transparent;padding:12px 14px;border-radius:12px}
.home .group__head:hover{background:var(--soft-bg)}
.home .group__title{font-weight:700}
.home .group__body{padding:2px 14px 12px 38px}
.home .chip{padding:3px 10px;font-weight:600}
.home .cb input{width:18px;height:18px}
.home .item{padding:5px 0}
.home .countries{padding:0 0 10px}

/* выбранное — «таблетки» с крестиком, как выбранные фильтры на маркетплейсе */
.picked{background:#fff;border-radius:20px;padding:14px 18px 16px;margin-bottom:16px}
.picked__head{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.picked__head b{font-weight:800;font-size:15px}
.picked__head .link{margin-left:auto;font-size:13.5px}
.picked__chips{display:flex;flex-wrap:wrap;gap:8px}
.pk{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 6px 0 12px;border:0;
  border-radius:17px;background:var(--green-bg);color:#166534;font:inherit;font-size:13.5px;
  font-weight:600;cursor:pointer;transition:background .15s}
.pk:hover{background:#D1EEDC}
.pk i{font-style:normal;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;
  border-radius:50%;background:rgba(22,101,52,.12);font-size:13px;line-height:1}
.pk--more{background:var(--bg);color:var(--muted);padding:0 12px;cursor:default}
.pk small{font-weight:400;opacity:.75}

/* быстрые фильтры — переключатели-таблетки */
.qf{display:flex;flex-wrap:wrap;gap:8px}
.qf__pill{position:relative;display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 16px;
  border-radius:21px;background:var(--bg);font-size:14px;font-weight:600;cursor:pointer;
  user-select:none;transition:background .15s,color .15s,box-shadow .15s}
.qf__pill:hover{background:#E8EAEE}
.qf__pill input[type=checkbox]{position:absolute;opacity:0;pointer-events:none}
.qf__pill:has(input:checked){background:var(--green);color:#fff;box-shadow:0 4px 12px rgba(22,163,74,.25)}
.qf__pill:has(input:checked)::before{content:"✓";font-weight:800}
.qf__pill:has(input:focus-visible){outline:2px solid var(--green);outline-offset:2px}
.qf__pill select{border:0;background:#fff;border-radius:12px;padding:5px 8px;font:inherit;font-size:13.5px;cursor:pointer}
.qf__pill--select{padding-right:6px;cursor:default}
.qf__note{margin:12px 0 0;color:var(--muted);font-size:13px}

/* оформление */
.home .order__row select,.home .order__row input[type=email]{height:46px;border-radius:12px;background:var(--bg);
  border:2px solid transparent}
.home .order__row select:focus,.home .order__row input[type=email]:focus{background:#fff;border-color:var(--green);box-shadow:none}
.home .btn{border-radius:12px;padding:12px 22px;font-weight:700}
.home .btn--ghost{border-width:2px}
.home .btn--big{height:52px;font-size:16px;border-radius:14px}
.home .preview{margin-top:14px;border-radius:14px;background:var(--bg);padding:10px}

/* готовые базы — карточки товара */
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.pc{display:flex;flex-direction:column;gap:6px;padding:14px;border-radius:18px;background:var(--bg);
  color:var(--ink);text-decoration:none;transition:transform .15s,box-shadow .15s,background .15s}
.pc:hover{background:#fff;transform:translateY(-2px);box-shadow:0 10px 28px rgba(17,24,39,.10)}
.pc__ava{position:relative;width:100%;height:88px;border-radius:14px;display:flex;align-items:center;
  justify-content:flex-end;padding:0 14px;color:var(--green);margin-bottom:4px;overflow:hidden}
.pc__ava svg{width:46px;height:46px;margin-top:14px;fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.pc:hover .pc__ava svg{transform:scale(1.08) rotate(-4deg)}
.pc__ava em{position:absolute;left:8px;top:8px;font-style:normal;font-size:11px;font-weight:700;
  padding:2px 8px;border-radius:8px;background:rgba(255,255,255,.85);color:#166534;
  max-width:calc(100% - 16px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc__ava--0{background:linear-gradient(135deg,#DCFCE7,#F0FDF4)}
.pc__ava--1{background:linear-gradient(135deg,#BBF7D0,#ECFDF5)}
.pc__ava--2{background:linear-gradient(135deg,#E8F5EE,#D1FAE5)}
.pc__ava--3{background:linear-gradient(135deg,#F0FDF4,#BBF7D0)}
.pc__price{font-size:22px;font-weight:800;color:var(--green);letter-spacing:-.02em}
.pc__title{font-weight:600;font-size:14px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.pc__meta{color:var(--muted);font-size:13px}
.pc__tags{display:flex;gap:6px;flex-wrap:wrap}
.pc__tags i{font-style:normal;font-size:12px;font-weight:600;padding:2px 8px;border-radius:8px;background:#fff;color:#166534}
.pc__btn{margin-top:auto;display:flex;align-items:center;justify-content:center;height:38px;border-radius:12px;
  background:var(--green);color:#fff;font-weight:700;font-size:14px}
.cards__all{display:inline-block;margin-top:14px;color:var(--green);font-weight:700;text-decoration:none}
.cards__all:hover{text-decoration:underline}

/* вопросы и тарифы */
.home .faq{background:transparent}
.home .faq__item{border-radius:14px;background:var(--bg);margin-bottom:8px;border:0}
.home #tariffs{padding:0;overflow:hidden}
.home .tariffs-box{border:0;box-shadow:none;border-radius:20px}
.home .tariffs-box__head{padding:20px}
.home .tariffs-box__title{font-size:21px;font-weight:800;letter-spacing:-.02em}

/* ------------------------------------------------- корзина справа */
.home .cart{border:0;box-shadow:none;border-radius:20px;padding:22px}
.home .cart__title{font-size:21px;font-weight:800;letter-spacing:-.02em;margin-bottom:14px}
.home .cart__price{font-size:38px;line-height:1.05;margin-top:6px}
.home .cart__rows{font-size:22px}
.home .cart__break{margin-top:14px;padding:12px;border-radius:14px;background:var(--bg)}
.home .brk{position:relative;padding-bottom:7px;margin-bottom:6px}
.home .brk:last-child{margin-bottom:0}
.home .brk::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;border-radius:2px;background:#E5E7EB}
.home .brk s{position:absolute;left:0;bottom:0;height:4px;border-radius:2px;background:var(--green);z-index:1;
  width:0;transition:width .3s;text-decoration:none}
.home .cart__list{border-top:0;padding-top:4px}
.home .cart .btn--big{margin-top:14px}

/* Корзина не выше окна. Липкая колонка выше экрана обрезалась снизу, и до
   её конца было не добраться, пока не докрутишь всю страницу. Теперь она
   прокручивается сама, а кнопка заказа стоит сразу под ценой. */
@media (min-width:941px){
  .home .side{max-height:calc(100vh - 148px);display:flex;flex-direction:column}
  .home .cart{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;min-height:0}
}
@media (min-width:941px) and (max-height:820px){
  .home .cart{padding:18px}
  .home .cart__title{font-size:18px;margin-bottom:8px}
  .home .cart__rows{font-size:19px}
  .home .cart__price{font-size:32px}
  .home .cart__break{margin-top:10px;padding:10px}
  .home .brk{font-size:13px;padding-bottom:5px;margin-bottom:4px}
}
.cart__trust{list-style:none;margin:16px 0 0;padding:14px 0 0;border-top:1px solid var(--line);
  display:flex;flex-direction:column;gap:8px;font-size:13px;color:var(--muted)}
.cart__trust li{display:flex;align-items:center;gap:8px}
.cart__trust svg{width:18px;height:18px;padding:3px;border-radius:50%;background:var(--green-bg);
  fill:none;stroke:var(--green);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* ------------------------------------------------------------ узко */
@media (max-width:1100px){
  .cards{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:940px){
  .hero{grid-template-columns:minmax(0,1fr)}
  .hero__prices{flex-direction:row;flex-wrap:wrap}
  .hero__prices-ttl{width:100%}
  .pt{flex:1;min-width:150px;flex-direction:column;align-items:flex-start;gap:2px}
  .home .layout{display:flex;flex-direction:column}
  .home .side{top:auto}
  #picked{order:0}
  #popular{order:7}
}
@media (max-width:720px){
  .home .wrap{padding:0 12px}
  .hero{margin-top:12px}
  .hero__main{padding:22px 20px 24px;border-radius:20px}
  .hero h1{font-size:25px}
  /* Три цены в одну строку: столбиком они отодвигали конструктор на экран вниз. */
  .hero__prices{padding:16px;gap:8px;border-radius:20px}
  .hero__prices-ttl{font-size:15px}
  .pt{min-width:0;flex:1 1 0;padding:10px;border-radius:12px}
  .pt span{font-size:11.5px}
  .pt b{font-size:17px}
  .hero__more{font-size:13px;width:100%}
  .hero p{font-size:15px}
  .home .step{padding:16px 14px 18px;border-radius:18px}
  .home .step h2{font-size:19px}
  .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .pc{padding:10px;border-radius:16px}
  .pc__price{font-size:19px}
  .qf__pill{height:40px;padding:0 14px;font-size:13.5px}
  .home .mbar{border-radius:18px 18px 0 0}
}

/* Переходы по якорям и поиску не прячут раздел под липкой шапкой. */
.home .step,.home #cart,.home #picked{scroll-margin-top:128px}
/* Поиск ничего не нашёл в этом списке — пустую серую подложку не показываем. */
.home .tree:not(:has(.group:not(.hidden))){display:none}
.home .panel:has(.tree:not(:has(.group:not(.hidden))))::after{content:"Здесь ничего не нашлось";
  display:block;color:var(--muted);font-size:13.5px;padding:4px 2px 0}

/* Совсем узкие карточки: подпись города наезжала на иконку. Город и так
   стоит в названии карточки — плашку убираем, иконку ставим по центру. */
@media (max-width:420px){
  .pc__ava{height:72px;justify-content:center;padding:0}
  .pc__ava em{display:none}
  .pc__ava svg{margin-top:0;width:40px;height:40px}
}
