:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
img{max-width:100%}
/* Раскладка: «плавающая» шапка-пилюля + первый экран в две колонки (текст | фото 4:5),
   на узких экранах всё складывается в одну колонку. Все размеры в rem —
   на экранах шире 1920px корневой шрифт растёт, и блок масштабируется целиком. */
@font-face{font-family:Gilroy;src:url(gilroy-regular.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:Gilroy;src:url(gilroy-semibold.woff2) format("woff2");font-weight:600;font-display:swap}

:root{
  color-scheme:dark;
  --bg:#0a0a0c;
  --fg:#f2f2f7;
  --muted:#808080;
  --line:rgba(242,242,247,.1);
  --panel:rgba(10,10,12,.3);
  --cyan:#00d9ff;
  --pink:#ff3dae;
  --font:Gilroy,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  /* Шкала шрифтов: 4 размера — 16, 20, 24 и 38px. Меньше 16px на сайте ничего нет. */
  --fs-h:2.125rem;                                 /* 34px на мобильном, 38px на десктопе: заголовки блоков, цифры */
  --fs-h3:1.5rem;                                  /* 24px: названия сборок, цены */
  --fs-l:1.125rem;                                 /* 18px на мобильном, 20px на десктопе: подзаголовки, кнопки, меню */
  --fs-m:1rem;                                     /* 16px: основной текст и подписи */
  --container:72.5rem;
  --gutter:max(1rem,env(safe-area-inset-left,0px));
  --gutter-r:max(1rem,env(safe-area-inset-right,0px));
  /* 16px на всех экранах: сайт остаётся компактным на 2K/4K, как на референсе */
  font-size:100%;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--fg);font:400 1rem/1.5 var(--font);-webkit-font-smoothing:antialiased;overflow-x:hidden}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--bg)}
img,svg{display:block;max-width:100%}
a{color:inherit}
h1,h2,h3,p,ul,dl,figure{margin:0;padding:0}
ul{list-style:none}
:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}

.wrap{width:100%;max-width:calc(var(--container) + var(--gutter) + var(--gutter-r));margin-inline:auto;padding-left:var(--gutter);padding-right:var(--gutter-r)}

/* ---------- Шапка ---------- */
/* как на страницах сборок: плавающая пилюля поверх контента,
   только логотип и бургер — соцсети, телефон и режим работы убраны */
.header{position:fixed;left:0;right:0;top:max(var(--gutter),calc((100vw - var(--container))/2));z-index:5;padding-block:0}
.header__bar{display:flex;align-items:center;gap:1.25rem;height:3.75rem;padding:0 .5rem 0 .625rem;border-radius:1.875rem;background:var(--panel);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
.logo{display:flex;align-items:center;gap:.875rem;margin-right:auto;text-decoration:none}
.logo__icon{width:2.875rem;height:2.875rem}
.logo__word{width:auto;height:1.0625rem}
.header__socials{display:none;align-items:center;gap:1.5rem}
.social{display:block;border-radius:50%;transition:transform .2s}
.social svg{width:2.1875rem;height:2.1875rem}
.header__phone{display:none;flex-direction:column;align-items:flex-end;gap:.25rem;line-height:1;white-space:nowrap}
.header__phone a{font-weight:600;font-size:var(--fs-l);text-decoration:none}
.header__phone span{font-size:var(--fs-m);color:var(--muted)}
.burger{flex:none;display:grid;place-items:center;width:2.875rem;height:2.875rem;padding:0;border:0;border-radius:50%;background:#f2f2f7;cursor:pointer;transition:transform .2s}
.burger i,.burger i::before,.burger i::after{display:block;width:1.25rem;height:2px;background:#0a0a0c}
.burger i{position:relative}
.burger i::before,.burger i::after{content:"";position:absolute;left:0}
.burger i::before{top:-.25rem}
.burger i::after{top:.25rem}

/* ---------- Первый экран ---------- */
.hero{display:grid;gap:1.875rem;padding-block:calc(1rem + 100px) 2rem}
.hero__intro,.hero__meta{min-width:0}
/* «Профессиональная сборка» в первом экране — та же Status Pill (голубой вариант).
   Текст правится в админке: content/home.json → badge. */
.hero h1{margin-top:.875rem;font-weight:600;font-size:var(--fs-h);line-height:1.18;text-wrap:balance}
.hero h1 em{font-style:normal;color:inherit}
.hero__lead{margin-top:.875rem;max-width:29rem;color:var(--muted);font-size:var(--fs-l);line-height:1.4}
.hero__btn{margin-top:1.75rem;border:0;cursor:pointer;font-family:inherit}
@media (max-width:63.99rem){.tf-ya-btn.hero__btn{width:100%}}
.btn{display:flex;align-items:center;justify-content:center;min-height:3.75rem;margin-top:1.75rem;padding:.5rem 2.125rem;border:0;border-radius:62.5rem;background:var(--cyan);color:#0a0a0c;font-weight:600;font-size:var(--fs-l);text-align:center;text-decoration:none;box-shadow:0 0 .625rem rgba(0,217,255,.34);transition:box-shadow .2s,transform .2s}

.hero__media{position:relative;justify-self:center;width:100%;max-width:31.25rem;aspect-ratio:4/5;border:1px solid var(--line);border-radius:1.25rem;overflow:hidden;background:#0a0a0c;box-shadow:-1.375rem 1.375rem 6.25rem -.875rem rgba(255,61,174,.18)}
.hero__media img{width:100%;height:100%;object-fit:cover;background:var(--bg)}
.hero__media figcaption{position:absolute;left:1.25rem;bottom:1.25rem;max-width:min(16rem,calc(100% - 2.5rem));padding:.875rem 1.375rem;border:1px solid var(--line);border-radius:1.25rem;background:rgba(10,10,12,.72);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);font-size:var(--fs-m);line-height:1.5}

.facts{display:flex;flex-wrap:wrap;gap:.75rem 1.5rem;color:var(--muted);font-size:var(--fs-l);line-height:1.3}
.facts li{display:flex;align-items:center;gap:.75rem}
.facts svg{flex:none;width:1.5rem;height:1.5rem;fill:none;stroke:var(--cyan);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.stats{display:grid;grid-template-columns:repeat(3,auto);justify-content:space-between;gap:1rem;max-width:35rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--line)}
.stats li{display:flex;flex-direction:column}
.stats b{font-weight:600;font-size:var(--fs-h);line-height:1.2;font-variant-numeric:lining-nums tabular-nums}
.stats span{color:var(--muted);font-size:var(--fs-m)}
.note{margin-top:1rem;color:var(--muted);font-size:var(--fs-m)}
.note a{text-underline-offset:.2em}

/* ---------- Меню ---------- */
.menu{display:flex;flex-direction:column;width:min(100%,25rem);max-width:none;height:100%;max-height:none;margin:0 0 0 auto;padding:calc(1.25rem + env(safe-area-inset-top,0px)) max(1.5rem,env(safe-area-inset-right,0px)) 2rem 2.125rem;border:0;border-left:1px solid var(--line);background:#0a0a0c;color:var(--fg);overflow-y:auto}
.menu:not([open]){display:none}
.menu::backdrop{background:rgba(0,0,0,.6)}
.menu[open]{animation:menu-in .25s ease-out}
@keyframes menu-in{from{transform:translateX(2rem);opacity:0}}
.menu__close{display:grid;place-items:center;width:2.875rem;height:2.875rem;margin-left:auto;padding:0;border:1px solid var(--line);border-radius:50%;background:none;color:inherit;font:400 1.5rem/1 var(--font);cursor:pointer}
.menu nav{display:flex;flex-direction:column;gap:.625rem;margin-top:.75rem}
.menu nav a{font-weight:400;font-size:1.25rem;line-height:1.3;text-decoration:none}
.menu__bottom{display:grid;gap:.3125rem;margin-top:auto;padding-top:2.5rem}
.menu__phone{font-weight:600;font-size:1.25rem;line-height:1.3;color:var(--fg);text-decoration:none}
.menu__note,.menu__mail{margin:0;font-size:1.125rem;line-height:1.3;color:var(--muted)}
.menu__mail a{color:var(--cyan);text-decoration:underline;text-underline-offset:.2em}
.menu__socials{display:flex;gap:1.25rem;align-items:center;margin-top:1.25rem}
.menu__socials img{display:block;width:2.25rem;height:2.25rem}
.menu__address{margin:2.5rem 0 0;font-size:1.125rem;line-height:1.4;color:var(--muted)}
.menu__address b{color:var(--fg);font-weight:600}
.menu .btn{margin-top:.75rem;width:100%}

/* ---------- Адаптив ---------- */
@media (hover:hover){
  .btn:hover{box-shadow:0 0 1.5rem rgba(0,217,255,.6);transform:translateY(-1px)}
  .burger:hover,.social:hover{transform:scale(1.07)}
  .menu__close:hover{border-color:var(--cyan)}
  .menu nav a:hover,.header__phone a:hover,.note a:hover{color:var(--cyan)}
}
@media (min-width:64rem){
  :root{--gutter:max(1.5rem,env(safe-area-inset-left,0px));--gutter-r:max(1.5rem,env(safe-area-inset-right,0px));--fs-h:2.375rem;--fs-l:1.25rem}
  .header{top:2%}
  /* первый экран: смещение шапки 2% + 60px пилюля + 40px зазор */
  .hero{padding-top:calc(2vh + 100px)}
}
@media (min-width:64rem){
  .hero{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:clamp(2rem,5vw,4rem);row-gap:2.5rem;padding-block:calc(2vh + 100px) 2.5rem}
  .hero__intro{padding-top:1.25rem}
  .hero__media{grid-column:2;grid-row:1/3;justify-self:end;align-self:start;border-radius:1.875rem;
    /* на низких экранах (ноутбуки) фото не вылезает за первый экран */
    max-height:max(26rem,calc(100svh - 9.5rem))}
  .hero__media figcaption{left:auto;right:1.875rem;bottom:1.875rem}
  .btn{margin-top:2.25rem}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}

/* Бейджи-фильтры по процессору над карточками */
.filters{display:flex;flex-wrap:wrap;gap:.625rem;margin-top:2.5rem}
.filters__btn{padding:.5rem 1.25rem;border:1px solid var(--line);border-radius:62.5rem;background:none;color:var(--muted);font:400 var(--fs-m)/1.2 var(--font);cursor:pointer;transition:color .2s,border-color .2s,background-color .2s}
.filters__btn[aria-pressed="true"]{border-color:var(--cyan);color:var(--cyan);background:rgba(0,217,255,.08)}
@media(hover:hover){.filters__btn:hover{border-color:var(--cyan);color:var(--cyan)}}

/* ---------- Популярные конфигурации ---------- */
/* зазор между блоками: 40px на мобильном (20px низ + 20px верх), 60px на десктопе (30px + 30px) */
.section{padding-block:1.875rem}
.section__title{margin:0;font-weight:600;font-size:var(--fs-h);line-height:1.18;text-wrap:balance}
.section__title em{font-style:normal;color:inherit}
.section__lead{margin-top:10px;max-width:46rem;text-wrap:balance;color:var(--muted);font-size:var(--fs-l);line-height:1.4}
#pochemu-my .section__lead{max-width:none}
.cards{display:grid;gap:1rem;margin-top:2.5rem}
.card{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-radius:1.25rem;background:#0a0a0c;overflow:hidden;transition:border-color .2s,transform .2s}
.card__media{position:relative;aspect-ratio:4/3;background:#0a0a0c}
.card__media img{width:100%;height:100%;object-fit:cover;background:#0a0a0c}
.card__body{display:flex;flex-direction:column;flex:1;gap:.75rem;padding:1.25rem 1.375rem 1.375rem}
.card__name{margin:0;font-weight:600;font-size:var(--fs-h3);line-height:1.15;text-transform:uppercase}
.card__name a{text-decoration:none}
.card__name a::after{content:"";position:absolute;inset:0}
.card__name a:focus-visible{outline:0}
.card:has(a:focus-visible){outline:2px solid var(--cyan);outline-offset:3px}
.specs{display:grid;gap:.5rem;margin:0}
.specs dt,.card__price span{color:var(--muted);font-size:var(--fs-m);line-height:1.3}
.specs dd{margin:0;font-weight:600;font-size:var(--fs-m);line-height:1.35}
.card__foot{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-top:auto;padding-top:.375rem}
.card__price{display:flex;flex-direction:column}
.card__price b{font-weight:600;font-size:var(--fs-h3);line-height:1.25;font-variant-numeric:lining-nums}
.card__foot-left{display:flex;flex-direction:column;gap:.375rem;min-width:0}
.card__go{flex:none;display:grid;place-items:center;width:3rem;height:3rem;border-radius:50%;background:var(--cyan);box-shadow:0 0 .625rem rgba(0,217,255,.34);transition:transform .2s;text-decoration:none}
.card__go svg{width:1.25rem;height:1.25rem;fill:none;stroke:#0a0a0c;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover){
  .card:hover{transform:translateY(-.125rem)}
  .card:hover .card__go{transform:rotate(45deg)}
}
@media (min-width:64rem){
  .section{padding-block:1.875rem}
  .cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(.875rem,2vw,1.5rem);margin-top:2.5rem}
  .card__media{aspect-ratio:4/3}
}
@media (min-width:64rem){
  .card__body{padding:1.5rem 1.5rem 1.5rem}
}

/* ---------- Доработки: подсветка карточек, подзаголовок, разделитель ---------- */
.card{transition:border-color .3s,transform .3s,box-shadow .3s}
@media (hover:hover){
  .card:hover{border-color:rgba(0,217,255,.35);box-shadow:-1.375rem 1.375rem 6.25rem -.875rem rgba(0,217,255,.25)}
}
@media (min-width:64rem){
  .section__lead{max-width:none;margin-top:10px}
}
.divider{display:flex;align-items:center;gap:1rem}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}
.divider span{display:inline-flex;align-items:center;gap:.625rem;padding:.4375rem 1.25rem .4375rem .75rem;border:1px solid var(--line);border-radius:62.5rem;color:var(--muted);font-size:var(--fs-m);line-height:1.25;white-space:nowrap}
.divider span::before{content:"";width:.375rem;height:.375rem;border-radius:50%;background:var(--cyan)}

/* ---------- Кнопка «Показать ещё» ---------- */
[hidden]{display:none!important}
.more{display:flex;align-items:center;justify-content:center;width:100%;min-height:3.5rem;margin:1.5rem auto 0;padding:.5rem 2.5rem;border:1px solid var(--cyan);border-radius:62.5rem;background:none;color:var(--fg);font:600 var(--fs-l)/1.2 var(--font);cursor:pointer;transition:background-color .2s,color .2s,box-shadow .2s}
/* пара кнопок под списком: «Показать ещё» и «Скрыть» рядом */
.more-buttons{display:flex;flex-wrap:wrap;gap:1rem;justify-content:center;margin-top:1.5rem}
.more-buttons .more{margin:0;width:auto}
@media (min-width:64rem){
  .more-buttons{margin-top:2rem}
}
.card--in{animation:card-in .45s ease-out both}
.card--in:nth-child(3n+2){animation-delay:.07s}
.card--in:nth-child(3n){animation-delay:.14s}
@keyframes card-in{from{opacity:0;transform:translateY(1.25rem)}}
@media (hover:hover){
  .more:hover{color:var(--cyan);background:rgba(0,217,255,.08);box-shadow:0 0 1rem rgba(0,217,255,.4)}
}
.section{scroll-margin-top:5.5rem}
/* зазор «Последние проекты» → «в наличии»: 20px низ секции + 20px верх = 40px на мобильном,
   30px + 30px = 60px на десктопе */
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* ---------- Преимущества под первым экраном ---------- */
/* junction hero→perks: 32px низ героя + 8px верх = 40px мобильный; 32px + 28px = 60px десктопный */
.perks{padding-block:.5rem 1.25rem}

/* ---------- Блок «7 причин заказать у нас» (перенос с Тильды) ----------
   Мобильный (до 1024px): карточки листаются пальцем по горизонтали, фото скрыто — как на Тильде.
   Десктоп: фото слева, справа две колонки карточек (1–4 | 5–7 + «Приезжайте в мастерскую»). */
.why__grid{margin-top:2.5rem}
.why__photo{display:none}
.why__list{display:grid;grid-auto-flow:column;grid-auto-columns:min(17rem,82%);gap:1rem;margin-inline:calc(-1 * var(--gutter)) calc(-1 * var(--gutter-r));padding-inline:var(--gutter) var(--gutter-r);overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--gutter);scrollbar-width:none;counter-reset:none;list-style:none}
.why__list::-webkit-scrollbar{display:none}
.why__item{position:relative;display:flex;flex-direction:column;gap:.375rem;min-width:0;padding:1.5rem 1.75rem 1.75rem;border:1px solid var(--line);border-radius:1.25rem;background:#0a0a0c;scroll-snap-align:start}
.why__item h3{margin:0;font-weight:600;font-size:var(--fs-l);line-height:1.3}
.why__item p{margin:0;color:#bdbdc2;font-size:var(--fs-m);line-height:1.45}
.why__num{display:flex;align-items:center;justify-content:center;width:2.375rem;height:2.375rem;margin-bottom:1.25rem;border-radius:50%;background:#fff;color:#0a0a0c;font-weight:600;font-size:var(--fs-m);line-height:1}
.why__item--cta{justify-content:center;border-color:var(--cyan);background:var(--cyan);color:#0a0a0c}
.why__item--cta p{color:#0a0a0c}
.why__btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:3.125rem;margin-top:1rem;padding:.5rem 1.5rem;border:0;border-radius:62.5rem;background:#0a0a0c;color:#fff;font-family:inherit;font-weight:600;font-size:var(--fs-l);text-decoration:none;cursor:pointer;transition:transform .2s}
@media (hover:hover){.why__btn:hover{transform:translateY(-2px)}}
@media (min-width:64rem){
  .why__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:2.5rem}
  .why__photo{display:block;position:relative;height:100%;border:1px solid var(--line);border-radius:1.25rem;overflow:hidden;box-shadow:0 0 6rem rgba(0,217,255,.12)}
  .why__photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
  .why__list{grid-auto-flow:row;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,auto);grid-auto-columns:auto;gap:1.25rem 2.5rem;margin:0;padding:0;overflow:visible;scroll-snap-type:none;align-items:start}
  /* порядок как на Тильде: левая колонка 1–4, правая 5–7 и запись в мастерскую */
  .why__item:nth-child(-n+4){grid-column:1}
  .why__item:nth-child(n+5){grid-column:2}
  .why__item:nth-child(1),.why__item:nth-child(5){grid-row:1}
  .why__item:nth-child(2),.why__item:nth-child(6){grid-row:2}
  .why__item:nth-child(3),.why__item:nth-child(7){grid-row:3}
  .why__item:nth-child(4),.why__item:nth-child(8){grid-row:4}
  .why__item{padding:1.5rem 4.5rem 1.75rem 1.75rem}
  .why__num{position:absolute;top:1.25rem;right:1.25rem;margin:0}
  .why__item--cta{padding-right:1.75rem}
}
.perks__list{display:grid;gap:1rem}
.perk{min-width:0;padding:1.375rem 1.5rem 1.5rem;border:1px solid var(--line);border-radius:1.25rem;background:#0a0a0c}
.perk h2{display:flex;align-items:center;gap:.75rem;font-weight:600;font-size:var(--fs-l);line-height:1.25}
.perk svg{flex:none;width:1.5rem;height:1.5rem;fill:none;stroke:#ff3dae;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.perk p{margin-top:.625rem;color:var(--muted);font-size:var(--fs-l);line-height:1.4}
@media (min-width:64rem){
  .perks{padding-block:1.75rem 1.875rem}
  .perks__list{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.875rem,2vw,1.5rem)}
}

/* ---------- Две раскладки: мобильная (до 1024px) и десктопная ---------- */
/* на планшетах мобильная колонка не растягивается на всю ширину, а стоит по центру */
@media (max-width:63.99rem){
  .wrap{max-width:calc(36rem + var(--gutter) + var(--gutter-r))}
}
@media (min-width:64rem){
  .btn{display:inline-flex}
  .more{width:auto;margin-top:2rem}
}

/* ---------- Футер: блок контактов ---------- */
.tfooter{margin-top:0}
.tf-section{padding-block:1.875rem}
.tf-title{margin:0;font-weight:600;font-size:var(--fs-h);line-height:1.18;text-wrap:balance}
.tf-title em{font-style:normal;color:inherit}
.tf-lead{margin-top:10px;color:var(--muted);font-size:var(--fs-l);line-height:1.4}
.tf-contacts__grid{display:grid;gap:1.5rem;margin-top:2.5rem;grid-template-areas:"photos" "details" "map"}
.tf-photos{grid-area:photos}
.tf-details{grid-area:details;margin-top:1rem}
.tf-map{grid-area:map;margin-top:1rem;margin-inline:calc(50% - 50vw)}
.tf-label{margin:14px 0 4px;color:var(--muted,#98A2B3);font-size:13px;text-transform:uppercase;letter-spacing:.06em;line-height:1.3;font-weight:600}
.tf-label:first-child{margin-top:0}
/* текст контактов — как образец на test.html: Gilroy 400, 16 px, отступ снизу 14 px */
.tf-value{margin:0 0 14px;font-size:16px;font-weight:400;line-height:1.45;color:var(--fg,#F2F2F7)}
.tf-value a{color:var(--cyan);text-decoration:underline;text-underline-offset:.2em}
.tf-photos .tf-label{margin-bottom:1.25rem}
.tf-shop__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;margin-top:.75rem}
.tf-shop__grid img{width:100%;aspect-ratio:9/16;object-fit:cover;border-radius:.625rem;background:#0a0a0c;cursor:zoom-in}
.tf-ph{aspect-ratio:9/16;border:1px dashed var(--line);border-radius:.875rem;background:#0a0a0c}
.tf-map{margin-inline:calc(50% - 50vw)}
.tf-map iframe{display:block;width:100%;height:70svh;aspect-ratio:auto;border:0;border-radius:0;background:#0a0a0c}
.tf-map-ph{height:70svh;border:1px dashed var(--line);border-radius:0;background:#0a0a0c}
.tf-socials{display:flex;gap:1.25rem;align-items:center;margin-top:1.25rem}
.tf-socials .social{display:block;border-radius:50%;transition:transform .2s}
.tf-socials img{display:block;width:2.5rem;height:2.5rem}
.tf-bottom{display:grid;gap:.5rem;margin-top:2.5rem;padding-block:1.5rem;border-top:1px solid var(--line)}
.tf-bottom p{margin:0;color:#434343;font-size:var(--fs-m);line-height:1.5}
@media (hover:hover){
  .tf-socials .social:hover{transform:scale(1.07)}
  .tf-value a:hover{color:var(--fg)}
}
@media (min-width:64rem){
  .tf-section{padding-block:1.875rem}
  .tf-lead{margin-top:10px;text-wrap:balance}
  .tf-contacts__grid{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);grid-template-areas:"photos map" "details map";gap:2.5rem}
  .tf-details{margin-top:0}
  /* карта в одном ряду с фото; её верх совпадает с верхом фото (ниже строки-подписи) */
  .tf-map{margin-inline:0;height:100%;margin-top:0;padding-top:2.875rem}
  .tf-map iframe,.tf-map-ph{height:100%;aspect-ratio:auto;border-radius:.625rem}
  .tf-socials{margin-top:1.25rem}
  /* карта растягивается по высоте левой колонки */
  .tf-map{height:100%;margin-inline:0}
  .tf-map iframe,.tf-map-ph{height:100%;aspect-ratio:auto;border-radius:.625rem}
  .tf-bottom{grid-template-columns:minmax(0,1fr) auto;align-items:end}
}

/* просмотр фото мастерской из футера */
.tf-view{width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:1rem;border:0;background:rgba(10,10,12,.96);color:var(--fg);overflow:hidden;cursor:zoom-out}
.tf-view::backdrop{background:#0a0a0c}
.tf-view img{position:absolute;inset:0;margin:auto;max-width:calc(100vw - 2rem);max-height:calc(100dvh - 3rem);width:auto;height:auto;object-fit:contain;background:var(--bg)}
.tf-view__close{position:absolute;top:1rem;right:1rem;display:grid;place-items:center;width:3rem;height:3rem;padding:0;border:1px solid var(--line);border-radius:50%;background:rgba(10,10,12,.72);color:var(--fg);font:400 1.5rem/1 var(--font);cursor:pointer}
@media (min-width:64rem){
  .tf-view{padding:3rem}
  .tf-view img{max-width:calc(100vw - 6rem);max-height:calc(100dvh - 4rem)}
  .tf-view__close{top:2rem;right:2rem}
}

/* ---------- Футер: блок отзывов ---------- */
.tf-reviews .tf-title{font-size:2.125rem}
.tf-reviews .tf-lead{margin-top:10px;font-size:var(--fs-l);line-height:1.4;color:var(--muted)}
.tf-reviews__grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:2.5rem}
.tf-review2{display:flex;flex-direction:column;gap:20px;min-height:300px;padding:27px 20px 20px 30px;border:1px solid var(--line);border-radius:10px;background:var(--bg)}
.tf-review2__text{margin:0;font-size:1.125rem;line-height:1.4;color:#bdbdc2}
.tf-review2__meta{display:flex;align-items:center;gap:20px;margin-top:auto}
.tf-avatar{flex:none;width:60px;height:60px;border-radius:50%;object-fit:cover;background:#2b2f38}
.tf-review2__who{display:grid;gap:3px}
.tf-review2__who b{font-weight:600;font-size:1.125rem;line-height:1.2;color:var(--fg)}
.tf-review2__who span{font-size:1.125rem;line-height:1.2;color:var(--muted)}
.tf-quote{flex:none;width:32px;height:18px;margin-left:auto}
.tf-ya-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding-block:20px}
.tf-ya-card{width:169px;border-radius:10px;background:#fdfdfd;overflow:hidden}
.tf-ya-top{display:flex;align-items:center;gap:4px;padding:14px 10px 12px 17px}
.tf-ya-ya{font-weight:600;font-size:28px;line-height:1;color:#fc3f1d}
.tf-ya-star{width:35px;height:35px}
.tf-ya-score{font-weight:600;font-size:32px;line-height:1;color:#0c0c0c}
.tf-ya-of{font-weight:600;font-size:16px;color:#0c0c0c}
.tf-ya-strip{padding:5px 2px;background:#e1e1e1;font-size:9px;line-height:1.1;text-align:center;color:#424242}
.tf-ya-btn{display:flex;align-items:center;justify-content:center;width:250px;max-width:100%;height:60px;border-radius:30px;background:#00d9ff;box-shadow:1px 1px 29.3px -10px #00d9ff;color:#0a0a0c;font-weight:600;font-size:var(--fs-l);text-decoration:none;transition:box-shadow .2s,transform .2s}
/* Бейдж «N+ отзывов» — обычная Status Pill, стили сразу ниже. */
.tf-ya-badge{display:inline-flex;align-items:center;gap:.5rem}

/* ---------- Status Pills: статусы и счётчики ----------
   Три состояния: stock — голубой, hit — розовый, order — серый.
   Заливка 10%, рамка 35%, точка с кольцом, шрифт 16px SemiBold, radius 999px.
   pointer-events:none — пилюля не перехватывает клик по карточке. */
.status-pill{
  --pill-rgb:128,128,128;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.375rem .8125rem;
  border:1px solid rgba(var(--pill-rgb),.35);
  border-radius:62.5rem;
  background:rgba(var(--pill-rgb),.10);
  color:rgb(var(--pill-rgb));
  font:600 var(--fs-m)/1.2 var(--font);
  white-space:nowrap;
  pointer-events:none;
}
.status-pill::before{
  content:"";
  flex:none;
  width:.5rem;
  height:.5rem;
  border-radius:50%;
  background:currentColor;
  box-shadow:0 0 0 3px rgba(var(--pill-rgb),.16);
}
.status-pill--stock{--pill-rgb:0,217,255}
.status-pill--hit{--pill-rgb:255,61,174}
.status-pill--order{--pill-rgb:128,128,128}
@media (hover:hover){
  .tf-ya-btn:hover{box-shadow:0 0 1.5rem rgba(0,217,255,.6);transform:translateY(-1px)}
}
@media (min-width:64rem){
  .tf-reviews .tf-title{font-size:2.75rem}
  .tf-reviews__grid{grid-template-columns:repeat(3,1fr);gap:40px;margin-top:34px}
}
@media (max-width:63.99rem){
  /* мобильный: одна карточка в кадре, остальные прокруткой вправо, рейтинг — в конце;
     карусель живёт в контентной колонке, а не на всю ширину экрана */
  .tf-reviews__grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px;scrollbar-width:none}
  .tf-reviews__grid::-webkit-scrollbar{display:none}
  .tf-review2,.tf-ya-cell{flex:0 0 calc(100% - 60px);scroll-snap-align:center}
}

/* ---------- Блок FAQ (вариант «две колонки») ----------
   Мобильный: заголовок и кнопка сверху, список вопросов под ними.
   Десктоп: левая колонка липкая, справа — вопросы с разделителями.
   Блок живёт в футере (.tf-section задаёт вертикальные отступы). */
.faq{scroll-margin-top:5.5rem}
.faq__lead{margin-top:10px;max-width:none;color:var(--muted);font-size:var(--fs-l);line-height:1.4}
.faq__btn{margin-top:1.5rem;gap:.75rem}
.faq__note{margin-top:1rem;color:var(--muted);font-size:var(--fs-m)}
.faq__list{margin-top:2.5rem}
.faq__item{border-bottom:1px solid var(--line)}
.faq__item:first-child{border-top:1px solid var(--line)}
.faq__q{display:flex;align-items:center;justify-content:space-between;gap:1rem;width:100%;padding:1.25rem 0;border:0;background:none;color:var(--fg);font:600 var(--fs-l)/1.3 var(--font);text-align:left;cursor:pointer}
.faq__plus{position:relative;flex:none;width:1.75rem;height:1.75rem;border:1px solid var(--line);border-radius:50%;transition:border-color .2s,background-color .2s}
.faq__plus::before,.faq__plus::after{content:"";position:absolute;left:50%;top:50%;width:.6875rem;height:1px;background:var(--cyan);transform:translate(-50%,-50%)}
.faq__plus::after{width:1px;height:.6875rem;transition:transform .25s,opacity .25s}
.faq__item.is-open .faq__plus{border-color:rgba(0,217,255,.35);background:rgba(0,217,255,.08)}
.faq__item.is-open .faq__plus::after{transform:translate(-50%,-50%) rotate(90deg);opacity:0}
.faq__a{max-height:0;overflow:hidden;opacity:0;transition:max-height .3s ease,opacity .25s ease}
.faq__item.is-open .faq__a{max-height:20rem;opacity:1}
.faq__a p{padding-bottom:1.25rem;color:var(--muted);font-size:var(--fs-m);line-height:1.45}
@media (min-width:64rem){
  .faq__list{margin-top:2.5rem}
  .faq__a p{font-size:1.125rem;line-height:1.4}
  .faq__lead{margin-top:10px;max-width:none}
}

/* Re:plain: прозрачный фон виджета, чтобы на мобильных не было белого квадрата до загрузки иконки */
/* Контактный попап (вариант 4, без логотипа) */
.contact-popup{border:0;padding:0;margin:auto;background:transparent;color:#F2F4F7;max-width:none;max-height:none;overflow:visible}
.contact-popup::backdrop{background:rgba(0,0,0,.6)}
.contact-popup[open]{animation:pp-in .25s ease-out}
@keyframes pp-in{from{opacity:0;transform:translateY(12px)}}
.cp{position:relative;display:flex;flex-direction:column;gap:20px;box-sizing:border-box;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid rgba(0,217,255,.25);border-radius:24px;background:#0A0A0C;color:#F2F4F7}
.cp__close{position:absolute;top:16px;right:16px;z-index:1;margin:0}
.cp__close:hover{border-color:#00d9ff;color:#00d9ff}
.cp__top{padding-right:42px}
.cp__title{margin:0;font:600 32px/1.1 var(--font)}
.cp__lead{margin:8px 0 0;color:#98A2B3;font-size:15px;line-height:1.45}
.cp__list{display:flex;flex-direction:column;gap:10px}
.cp__item{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:16px;background:#131720;border:1px solid rgba(255,255,255,.08);color:#F2F4F7;text-decoration:none}
.cp__item:hover{border-color:rgba(0,217,255,.35);background:#161B25}
.cp__item--accent{background:rgba(0,217,255,.08);border-color:rgba(0,217,255,.28)}
.cp__icon{flex:none;display:grid;place-items:center;width:40px;height:40px}
.cp__icon svg,.cp__icon img{display:block;width:32px;height:32px}
.cp__icon--text{border-radius:12px;background:rgba(255,255,255,.06);font-size:20px;color:#00D9FF}
.cp__text{display:flex;flex-direction:column;min-width:0}
.cp__text b{font-size:16px;line-height:1.3;font-weight:600}
.cp__text small{color:#98A2B3;font-size:13px;line-height:1.3}
.cp__arr{margin-left:auto;color:#00D9FF;font-size:20px}
.cp__footer{display:flex;gap:16px;align-items:flex-end;justify-content:space-between;padding-top:16px;border-top:1px solid rgba(255,255,255,.1)}
.cp__address{margin:0;font-size:15px;line-height:1.45;color:#D0D5DD}
.cp__address b{color:#F2F4F7}
.cp__muted{color:#98A2B3}
.cp__mapbtn{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:12px;border:1px solid rgba(0,217,255,.35);color:#00D9FF;text-decoration:none;font-weight:600}
.link-btn{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:.2em;cursor:pointer}
.link-btn:hover{color:#00D9FF}
@media (max-width:560px){.cp{padding:20px;border-radius:20px}.cp__title{font-size:28px}.cp__footer{flex-direction:column;align-items:stretch}.cp__mapbtn{width:100%}}

/* ==========================================================================
   «Подарки всем клиентам» — блок из старого сайта, на всех страницах.
   Размеры и отступы по экспорту Frame 128 (1440×587):
   заголовок 44/54, подзаголовок 20/24, карточки 560×300 с рамкой 10px,
   картинка 300×300, текст 200px, пилюля 144×30.
   ========================================================================== */
#gift{margin-top:2.5rem}
@media (min-width:64rem){#gift{margin-top:2.5rem}}

.gp__title{
  margin:0;
  font-weight:600;
  font-size:clamp(30px,3.06vw,44px);
  line-height:1.2338;
  color:#f2f4f7;
}
.gp__lead{
  margin:10px 0 0;
  color:var(--muted);
  font-weight:400;
  font-size:var(--fs-l);
  line-height:1.4;
  text-wrap:balance;
}
.gp__grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:40px;
  margin-top:60px;
}
.gp__card{
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  min-width:0;
  height:300px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:10px;
  overflow:hidden;
}
.gp__media{min-width:0;height:100%}
.gp__media img{
  display:block;
  width:300px;
  height:100%;
  object-fit:cover;
  border-radius:10px 0 0 10px;
}
.gp__body{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
  padding:30px;
}
.gp__name{
  margin:0;
  font-weight:600;
  font-size:clamp(26px,2.36vw,34px);
  line-height:1.12;
  color:#f2f4f7;
}
.gp__note{
  margin:20px 0 0;
  color:#BDBDC2;
  font-weight:500;
  font-size:18px;
  line-height:22px;
}
/* Пилюли в этом блоке — плоские, как в экспорте: 144×30, радиус 20, текст без точки.
   Общие .status-pill (с точкой и радиусом 999) на остальных блоках не меняем. */
.gp__body .status-pill{
  width:144px;
  height:30px;
  margin-top:20px;
  padding:0;
  justify-content:center;
  border-radius:20px;
  font-size:14px;
  line-height:17px;
}
.gp__body .status-pill::before{display:none}

@media (max-width:63.99rem){
  #gift .gp__title,#gift .gp__lead,#gift .gp__grid,#gift .gp__card{margin-left:0;margin-right:0}
  .gp__title{max-width:none;font-size:34px;line-height:42px;color:#F2F4F7}
  .gp__lead{max-width:none;margin-top:10px;font-size:var(--fs-l);line-height:1.4}
  .gp__grid{grid-template-columns:1fr;justify-items:stretch;gap:23px;margin-top:2.5rem}
  .gp__card{width:100%;max-width:none;height:540px;grid-template-columns:1fr;grid-template-rows:300px 1fr;border:1px solid rgba(255,255,255,.1);border-radius:10px}
  .gp__media{height:300px}
  .gp__media img{width:100%;height:100%;border-radius:10px 10px 0 0}
  .gp__body{padding:24px 30px 20px 30px}
  .gp__name{max-width:200px;font-size:34px;line-height:38px}
  .gp__note{max-width:200px;margin-top:10px;font-size:18px;line-height:21px;color:#BDBDC2}
  .gp__body .status-pill{width:200px;height:40px;margin-top:20px;border-radius:20px;font-size:14px;line-height:17px}
  #pochemu-my .section__lead{margin-top:10px}
  #pochemu-my .why__grid{margin-top:40px}
}


/* 100px между указанными блоками на всех ширинах (padding секций 30+30 + margin-top 40) */
#konfiguracii + #v-nalichii,
#v-nalichii + #pochemu-my,
#otzivy,
#otzivy + #faq,
#faq + #contakty{margin-top:2.5rem}
/* Десктоп: от подзаголовка до контента блока — 40px во всех блоках, кроме первого экрана */
@media (min-width:64rem){
  #pochemu-my .section__lead,#gift .gp__lead,#otzivy .tf-lead{white-space:nowrap}
  .filters{margin-top:2.5rem}
  .why__grid{margin-top:2.5rem}
  .gp__grid{margin-top:2.5rem}
  .tf-reviews__grid{margin-top:2.5rem}
}

/* ================= Страница сборки ================= */
/* видео на всю ширину (100vw/50vw) не учитывает вертикальный скроллбар — страхуемся от горизонтального скролла */
html{overflow-x:clip}
/* Ритм junction'ов: зазор между любыми соседними блоками = 40px на мобильном
   (20px низ блока + 20px верх следующего) и 60px на десктопе (30px + 30px).
   Блоки на страницах сборок используют асимметрию «низ 0, верх = зазор»,
   потому что у блока-галереи нижний отступ нулевой. */
.product{display:grid;gap:1.75rem;padding-block:.5rem 0}
.product__info,.gallery{min-width:0}
.section--about{padding-block:2.5rem 0}
.section--spec{padding-block:2.5rem 1.25rem}
.section--other{padding-block:4rem 4rem}

/* Галерея: листается пальцем или стрелками, под ней миниатюры; по нажатию на фото открывается крупный просмотр */
.gallery__stage{position:relative}
.gallery__track{display:flex;aspect-ratio:4/3;border:1px solid var(--line);border-radius:1.25rem;background:var(--bg);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;cursor:zoom-in}
.gallery__track::-webkit-scrollbar{display:none}
.gallery__track li{flex:0 0 100%;scroll-snap-align:start;background:var(--bg)}
.gallery__track img{width:100%;height:100%;object-fit:cover;background:var(--bg)}
.gallery__nav{position:absolute;top:calc(50% - 1.5rem);display:none;place-items:center;width:3rem;height:3rem;padding:0;border:1px solid var(--line);border-radius:50%;background:rgba(10,10,12,.72);color:var(--fg);cursor:pointer;transition:border-color .2s,color .2s}
.gallery__nav svg{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.gallery__nav--prev{left:1rem}
.gallery__nav--next{right:1rem}
.gallery__nav:disabled{opacity:.35;cursor:default}
/* Точки-чёрточки внутри фото, внизу по центру */
.gallery{position:relative}
.gallery__dots{position:absolute;bottom:1rem;left:0;right:0;z-index:2;display:flex;justify-content:center;align-items:center;gap:.5rem}
.gallery__dots button{flex:none;width:.75rem;height:.75rem;padding:0;border:0;border-radius:50%;background:var(--muted);cursor:pointer;transition:background-color .2s}
.gallery__dots button[aria-current="true"]{background:var(--cyan)}

/* Крупный просмотр фото: картинка вписана в экран, клик по ней — оригинальный размер */
.lightbox{width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:rgba(10,10,12,.96);color:var(--fg);overflow:hidden}
.lightbox::backdrop{background:#0a0a0c}
.lightbox__img{--px:.5rem;--py:4.5rem;position:absolute;inset:0;display:flex;align-items:center;justify-content:center;cursor:zoom-in}
.lightbox__img.zoomed{cursor:zoom-out;overflow:auto}
.lightbox__img picture{display:contents}
.lightbox__img img{display:block;max-width:calc(100vw - 2*var(--px));max-height:calc(100dvh - 2*var(--py));width:auto;height:auto;object-fit:contain;background:var(--bg)}
.lightbox__img.zoomed img{max-width:none;max-height:none}
.lightbox__btn{position:absolute;display:grid;place-items:center;width:3rem;height:3rem;padding:0;border:1px solid var(--line);border-radius:50%;background:rgba(10,10,12,.72);color:var(--fg);cursor:pointer;transition:border-color .2s,color .2s}
.lightbox__btn svg{width:1.125rem;height:1.125rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.lightbox__btn:disabled{opacity:.35;cursor:default}
.lightbox__close{top:calc(.75rem + env(safe-area-inset-top,0px));right:max(.75rem,env(safe-area-inset-right,0px))}
.lightbox__prev,.lightbox__next{bottom:calc(.75rem + env(safe-area-inset-bottom,0px))}
.lightbox__prev{right:calc(50% + 2.75rem)}
.lightbox__next{left:calc(50% + 2.75rem)}
.lightbox__count{position:absolute;left:0;right:0;bottom:calc(.75rem + env(safe-area-inset-bottom,0px));line-height:3rem;text-align:center;color:var(--muted);font-size:var(--fs-m);font-variant-numeric:lining-nums;pointer-events:none}

/* Название, цена, текст и кнопка — все по центру, одна колонка, как на Тильде */
.product__info{display:flex;flex-direction:column;align-items:center;text-align:center}
.product__cost{display:flex;flex-direction:column;align-items:center;min-width:0}
/* кнопка «Связаться» под стоимостью — стиль как «Связаться» на главной (.tf-ya-btn в page.css) */
.product__contact{display:flex;align-items:center;justify-content:center;width:250px;max-width:100%;height:60px;margin-top:20px;border:0;border-radius:30px;background:#00d9ff;box-shadow:1px 1px 29.3px -10px #00d9ff;color:#0a0a0c;font:600 var(--fs-l)/1.2 var(--font);text-decoration:none;cursor:pointer;transition:box-shadow .2s,transform .2s}
@media (max-width:63.99rem){.product__contact{width:100%}}
@media (hover:hover){.product__contact:hover{box-shadow:0 0 1.5rem rgba(0,217,255,.6);transform:translateY(-1px)}}
/* жирнее, чем 600: начертания Bold у нас нет, поэтому буквы слегка утолщены обводкой */
.product__info h1{margin-top:0;font-weight:600;font-size:var(--fs-h);line-height:1.18;text-transform:uppercase;-webkit-text-stroke:.03em currentColor}
/* вторая строка заголовка: то же h1, но обычным текстом */
.product__info h1 span{display:block;margin-inline:auto;max-width:50rem;margin-top:.5rem;text-wrap:balance;font-weight:400;font-size:var(--fs-m);line-height:1.4;text-transform:none;-webkit-text-stroke:0}
/* заголовок есть для поисковиков и экранных читалок, на экране не показывается */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.product__label{margin-top:1.25rem;color:var(--muted);font-size:var(--fs-m);line-height:1.3}
.product__price{font-weight:600;font-size:var(--fs-h);line-height:1.2;font-variant-numeric:lining-nums}
/* примечание и кнопка: без разделителя, просто воздух — как на Тильде */
.product__note{margin-top:1.5rem;max-width:37.5rem;text-wrap:balance;color:var(--muted);font-size:var(--fs-m);line-height:1.4;-webkit-text-stroke:.012em currentColor}
.product__info .btn{align-self:center;width:18.75rem;margin-top:1.5rem}
@media (max-width:63.99rem){.product__info .btn{width:100%}.product__cost{align-self:stretch}}

/* О сборке + видео: на мобильном текст, затем видео; на десктопе вертикальное видео справа */
.about{display:grid;gap:1.75rem}
.about__text{min-width:0}
/* описание сборки — на всю ширину контента, без ограничения в 46rem */
.about .section__lead{margin-top:0;max-width:none;text-wrap:pretty}
/* статья о сборке: отдельный блок после «Конфигурации» */
.section--about-text{padding-block:1.25rem 1.875rem}
.section--about-text .seo-text{margin-top:0}
@media (min-width:64rem){.section--about-text{padding-block:1.875rem}}
/* ответы на вопросы: раскрывающиеся блоки по клику (родные <details>/<summary>) */
.faq{display:grid;gap:.75rem;margin-top:2.75rem}
.faq__item{border:1px solid var(--line);border-radius:.875rem;background:#0a0a0c;overflow:hidden}
.faq__item summary{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 1.1rem;cursor:pointer;color:var(--fg);font-weight:600;font-size:var(--fs-m);line-height:1.35;list-style:none}
.faq__item summary::-webkit-details-marker{display:none}
.faq__item summary::after{content:"";flex:none;width:9px;height:9px;margin-right:2px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform .2s}
.faq__item[open] summary::after{transform:rotate(-135deg)}
.faq__answer{padding:0 1.1rem 1rem;color:var(--muted);font-size:var(--fs-m);line-height:1.5}
.section--faq{padding-block:1.875rem}

/* Конфигурация: плашки с обводкой — серая подпись сверху, значение крупнее под ней */
.spec-grid{display:grid;gap:.75rem;margin-top:2.75rem}
.spec-grid div{min-width:0;padding:.875rem 1.25rem 1rem;border:1px solid var(--line);border-radius:.875rem;background:#0a0a0c}
.spec-grid dt{color:var(--muted);font-size:var(--fs-m);line-height:1.3}
.spec-grid dd{margin:.25rem 0 0;font-weight:600;font-size:var(--fs-l);line-height:1.35;font-variant-numeric:lining-nums}
.spec-grid dd.todo{color:var(--muted);font-weight:400}
/* необязательное описание детали: показывается под её названием, если заполнено в админке */
.spec-grid .spec-desc{display:block;margin-top:.5rem;max-width:60ch;color:var(--muted);font-weight:400;font-size:var(--fs-m);line-height:1.45;font-variant-numeric:normal;white-space:pre-line}
/* текст о сборке: после заголовка конфигурации, во всю ширину */
.seo-text{margin-top:1.5rem}
.seo-text p{color:var(--muted);font-size:var(--fs-m);line-height:1.5}
/* статья с форматированием из админки (заголовки, списки, цитаты, фото, таблицы) */
.seo-text--rich{color:var(--muted);font-size:var(--fs-m);line-height:1.6;overflow-wrap:anywhere}
.seo-text--rich>:first-child{margin-top:0}
.seo-text--rich>:last-child{margin-bottom:0}
.seo-text--rich p,.seo-text--rich div{margin:0 0 .9em;color:inherit;font-size:inherit;line-height:inherit}
.seo-text--rich h1,.seo-text--rich h2,.seo-text--rich h3,.seo-text--rich h4,.seo-text--rich h5,.seo-text--rich h6{margin:1.4em 0 .55em;color:var(--fg);font-weight:600;line-height:1.25;text-wrap:balance}
.seo-text--rich h1{font-size:var(--fs-h)}
.seo-text--rich h2{font-size:var(--fs-h3)}
.seo-text--rich h3{font-size:var(--fs-l)}
.seo-text--rich h4,.seo-text--rich h5,.seo-text--rich h6{font-size:var(--fs-m)}
.seo-text--rich strong,.seo-text--rich b{color:var(--fg);font-weight:600}
.seo-text--rich ul,.seo-text--rich ol{margin:.9em 0 1em;padding-left:1.35em}
.seo-text--rich ul{list-style:disc}
.seo-text--rich ol{list-style:decimal}
.seo-text--rich li{margin:.3em 0;padding-left:.15em}
.seo-text--rich blockquote{margin:1.25em 0;padding:.75em 1.1em;border-left:3px solid var(--cyan);background:#101014;color:var(--muted)}
.seo-text--rich blockquote p:last-child{margin-bottom:0}
.seo-text--rich a{color:var(--cyan);text-decoration:underline;text-underline-offset:.2em}
.seo-text--rich picture{display:block;margin:1.5rem 0}
.seo-text--rich img{display:block;width:auto;max-width:100%;height:auto;margin:1.5rem auto;border:1px solid var(--line);border-radius:.875rem;background:#0a0a0c}
.seo-text--rich picture img{margin:0 auto}
.seo-text--rich figcaption{margin-top:.6rem;color:var(--muted);font-size:var(--fs-m);line-height:1.4;text-align:center}
.seo-text--rich table{display:block;max-width:100%;margin:1.5rem 0;border-collapse:collapse;overflow-x:auto;font-size:var(--fs-m);line-height:1.4}
.seo-text--rich th,.seo-text--rich td{min-width:7rem;padding:.55rem .75rem;border:1px solid var(--line);text-align:left;vertical-align:top}
.seo-text--rich th{color:var(--fg);background:#151517;font-weight:600}
.seo-text--rich hr{margin:1.75rem 0;border:0;border-top:1px solid var(--line)}
.seo-text--rich code{padding:.1em .35em;border-radius:.25rem;background:#151517;color:var(--fg);font-size:.92em}
.seo-text--rich pre{margin:1.25em 0;padding:.9em 1.1em;border:1px solid var(--line);border-radius:.625rem;background:#101014;overflow-x:auto;line-height:1.5}
.seo-text--rich pre code{padding:0;background:none}
.flex-note{margin-top:.75rem;padding:1.25rem 1.25rem 1.375rem;border:1px solid var(--line);border-radius:.875rem;background:#0a0a0c}
.flex-note p{font-size:var(--fs-m);line-height:1.45}
.flex-note ul{display:grid;gap:.5rem 2rem;margin-top:.875rem}
.flex-note li{display:flex;gap:.625rem;font-size:var(--fs-m);line-height:1.4}
.flex-note li::before{content:"";flex:none;width:.375rem;height:.375rem;margin-top:.5rem;border-radius:50%;background:var(--cyan)}

@media (hover:hover){
  .gallery__dots button:hover{background:var(--cyan)}
  .lightbox__btn:not(:disabled):hover{border-color:var(--cyan);color:var(--cyan)}
  .gallery__nav:not(:disabled):hover{border-color:var(--cyan);color:var(--cyan)}
}
@media (min-width:64rem){
  /* сетка комплектующих: одна колонка — блок занимает половину фрейма с контентом */
  .spec-grid{grid-template-columns:minmax(0,1fr);grid-auto-flow:row;width:50%;gap:.75rem}
  .flex-note{width:50%}
  .flex-note ul{grid-template-columns:minmax(0,1fr)}
  /* страницы с вертикальным видео: «Конфигурация» — слева плашки, справа видео */
  .spec--video-v .spec__cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 2.5rem;margin-top:2.75rem}
  .spec--video-v .spec__main,.spec--video-v .spec__video{min-width:0}
  .spec--video-v .spec-grid{width:100%;margin-top:0}
  .spec--video-v .flex-note{width:100%}
  /* видео растягивается ровно на высоту левой колонки: от верха первой плашки до низа примечания */
  .spec--video-v .spec__video{position:relative}
  .spec--video-v .spec__video .video{position:absolute;inset:0;height:100%;aspect-ratio:auto;max-width:none;margin:0}
  /* страницы с горизонтальным видео: «Конфигурация» в две колонки на всю ширину,
     колонки заполняются сверху вниз, как на Тильде */
  .section--spec--2col .spec-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,auto);grid-auto-flow:column;gap:.75rem 2rem;width:auto}
  .section--spec--2col .flex-note{width:auto}
  .section--spec--2col .flex-note ul{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery--many .gallery__nav{display:grid}
  .lightbox__img{--px:1rem;--py:3rem}
  .lightbox__prev,.lightbox__next{top:calc(50% - 1.5rem);bottom:auto}
  .lightbox__prev{left:1.25rem;right:auto}
  .lightbox__next{right:1.25rem;left:auto}
}
@media (min-width:64rem){
  /* по макету Figma (Frame 121, 1400px): фото 844/1400 = 60.3% ширины, вся высота экрана
     минус шапка (81px); справа контент 380px — 94px от фото, шаг между элементами 30px */
  .product{width:100%;max-width:none;padding:0;grid-template-columns:66.6667% minmax(0,1fr);gap:0;align-items:stretch}
  .product__gallery{width:100%;height:100svh;display:flex;flex-direction:column}
  .gallery{height:100%;display:flex;flex-direction:column}
  .gallery__stage{flex:1;min-height:0}
  .gallery__track{height:100%;width:100%;aspect-ratio:auto;border:0;border-radius:0}
  /* стрелка: круг 73px с обводкой 10%, за 48px до правого края фото */
  .gallery__nav{width:4.5625rem;height:4.5625rem;background:transparent;border-color:rgba(242,242,247,.1)}
  .gallery__nav--next{right:3rem}
  .gallery__nav:disabled{opacity:0}
  .gallery__dots{bottom:20px}
  .gallery__dots button{width:.75rem;height:.75rem;border-radius:50%;background:var(--muted)}
  .gallery__dots button[aria-current="true"]{background:var(--cyan)}
  /* правая колонка: контейнер 380px по центру, текст внутри — к левому краю, шаг 30px */
  /* правая колонка: контейнер 380px по центру горизонтали, весь блок с текстом
     и кнопкой — по центру области НИЖЕ шапки (81px), чтобы название никогда
     не перекрывалось шапкой на невысоких экранах; текст от левого края, шаг 30px */
  /* на экранах уже 1280px колонка уже 380px: блок сужается вместе с ней, название чуть мельче */
  .product__info{display:flex;flex-direction:column;justify-content:center;padding:81px 1.25rem 0;text-align:left}
  .product__info h1{margin-top:0;margin-inline:auto;width:min(380px,100%);font-size:57px;line-height:1.21;font-weight:600;-webkit-text-stroke:.018em currentColor}
  .product__info h1 span{margin-inline:0;max-width:380px;text-align:left}
  .product__cost{width:min(380px,100%);margin-inline:auto;align-items:flex-start;text-align:left;margin-top:20px}
  .product__label{margin-top:0;font-size:19px;line-height:1.16;color:#808080}
  .product__price{margin-top:0;font-size:44px;line-height:1.22;font-weight:600;-webkit-text-stroke:.018em currentColor}
  .product__note{margin-inline:auto;width:min(380px,100%);text-wrap:pretty;margin-top:20px;font-size:20px;line-height:1.25;color:#808080;-webkit-text-stroke:.012em currentColor}
  .product__info .btn{width:380px;max-width:100%;align-self:center;margin-inline:auto;margin-top:20px;height:60px}
  .product__cost .btn{align-self:stretch;width:100%;margin-top:20px;height:60px}
  /* на высоких экранах (2K) шаг между элементами больше — 40px */
  @media (min-height:1200px){
    .product__cost{margin-top:40px}
    .product__info .btn{margin-top:40px}
    .product__cost .btn{margin-top:20px}
  }
  .section--about{padding-block:3.75rem 0}
  .section--spec{padding-block:3.75rem 1.875rem}
  /* секция только с видео прижата к первому экрану (галерее) без отступа */
  .section--about.section--flush{padding-top:0}
  .section--other{padding-block:5rem 5rem}
  /* вертикальное видео слева, текст о сборке справа */
  .about--video-v{grid-template-columns:minmax(0,1fr);gap:3.25rem;align-items:start}
  /* «Описание сборки» для страниц с вертикальным видео: стоит над заголовком
     «Конфигурация» (на мобильном уедет под видео — см. мобильный блок) */
  .spec--video-v .spec__lead{margin:0 0 3.75rem;max-width:none;text-wrap:pretty}
  /* если есть только вертикальное видео — на десктопе блок видео не показываем
     (оно играет на мобильной версии) */
  .about--video-v .about__video{display:none}
  /* горизонтальное видео — во всю ширину экрана (выходит за пределы контейнера);
     100vw учитывает вертикальный скроллбар, поэтому страницу страхуем от горизонтального скролла */
  html{overflow-x:clip}
  .about--video-h .about__video .video{width:100vw;max-width:none;aspect-ratio:16/9;border:0;border-radius:0;margin-inline:calc(50% - 50vw)}
  /* шапка лежит поверх галереи при первой загрузке (как на макете), отступ сверху 2%;
     соцсети, телефон и режим работы из шапки убраны */
  .header{position:fixed;left:0;right:0;top:2%;padding-block:0}
  .header__socials,.header__phone{display:none}
  .product{padding:0}
  .product__gallery{height:100svh}
}

/* ============ Мобильная версия страницы сборки (до 1023px) ============ */
@media (max-width:63.99rem){
/* шапка лежит поверх галереи при первой загрузке (как на макете);
   отступ сверху = такой же, как слева/справа (центрирование контейнера) */
.header{position:fixed;left:0;right:0;top:max(var(--gutter),calc((100vw - var(--container))/2));padding-block:0}
/* фото: 70% экрана по высоте, во всю ширину, без скруглений, заходит под полосу шапки;
   на ширинах 609–1023px галерея тоже во всю ширину экрана (колонка .wrap ограничена 576px) */
.product{gap:0;padding:0;max-width:none}
.product__gallery{width:100%;height:70svh;display:flex;flex-direction:column}
.gallery{height:100%;display:flex;flex-direction:column}
.gallery__stage{flex:1;min-height:0}
.gallery__track{height:100%;width:100%;aspect-ratio:auto;border:0;border-radius:0}
.gallery__dots{bottom:20px}
.gallery__dots button{width:.75rem;height:.75rem;border-radius:50%;background:var(--muted)}
.gallery__dots button[aria-current="true"]{background:var(--cyan)}
/* инфо-блок под фото: название +34px от галереи, стоимость +10px, по центру экрана */
.product__info{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;padding:34px var(--gutter) 0;text-align:center}
.product__info h1{margin-top:0;margin-inline:0;max-width:none;font-size:var(--fs-h)}
.product__cost{width:auto;margin-inline:0;align-items:center;margin-top:5px}
/* зазор галерея/инфо → «О сборке»: 40px на мобильном (низ продукта 0 + верх блока 40px) */
.section--about{padding-inline:0;padding-top:2.5rem}
.about{gap:.875rem}
.about .about__text{padding-inline:var(--gutter)}
/* «Описание сборки» на мобильном — влево, как обычный текст */
.about .section__lead{text-align:left}
.about .about__video .video{width:100%;max-width:none;border:0;border-radius:0;aspect-ratio:9/16}
.about .about__video .video iframe{width:calc(100% + 16px);height:calc(100% + 16px);left:-8px;top:-8px}
.product__note{width:auto;margin-inline:0;margin-top:20px}
/* страницы с вертикальным видео: видео перенесено в блок «Конфигурация» —
   на мобильном поднимаем его над заголовком (порядок: текст → видео → заголовок → плашки),
   во всю ширину экрана, без рамки (плеер подгружается по клику) */
.spec--video-v{display:flex;flex-direction:column}
.spec--video-v .spec__cols{display:contents}
.spec--video-v .spec__video{order:-1;margin-inline:calc(50% - 50vw);margin-bottom:2.75rem}
/* порядок на мобильном: вертикальное видео → описание сборки → заголовок «Конфигурация»;
   описание выравнивается по левому краю */
.spec--video-v .spec__lead{margin:0 0 1.25rem;max-width:none;text-align:left;text-wrap:pretty}
.spec--video-v .spec__video .video{position:relative;height:auto;width:100%;max-width:none;border:0;border-radius:0;aspect-ratio:9/16}
.spec--video-v .spec__video .video iframe{width:calc(100% + 16px);height:calc(100% + 16px);left:-8px;top:-8px}
/* заголовок «Конфигурация»: тот же размер и начертание, что у названия, заглавными */
.section--spec .section__title{-webkit-text-stroke:.018em currentColor}
}

/* Видео: до клика показываем только обложку, плеер Kinescope подгружается по нажатию.
   Прижато к левому краю; в блоке «О сборке»: вертикальное — узкая колонка, горизонтальное — во всю ширину */
.video{position:relative;width:100%;max-width:24rem;margin:0 auto 0 0;aspect-ratio:9/16;border:1px solid var(--line);border-radius:1.25rem;background:#0a0a0c;overflow:hidden}
/* тёмный фон под плеером: если плеер Kinescope грузится дольше обычного,
   вместо его белой «вспышки» по краям виден тёмный фон сайта */
.video #kinescope-slot,.video iframe{background:#0a0a0c}
.video__play{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;border:0;background:none;cursor:pointer}
.video__play img{width:100%;height:100%;object-fit:cover;background:#0a0a0c}
.video__icon{position:absolute;inset:0;display:grid;place-items:center;width:4.5rem;height:4.5rem;margin:auto;border-radius:50%;background:var(--cyan);box-shadow:0 0 1.5rem rgba(0,217,255,.45);transition:transform .2s}
.video__icon svg{width:1.75rem;height:1.75rem;fill:#0a0a0c}
.video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
@media (hover:hover){.video__play:hover .video__icon{transform:scale(1.08)}}
@media (min-width:64rem){
  .video{max-width:none;aspect-ratio:16/9;border-radius:1.875rem}
  .video--vertical{height:100%;max-width:none;aspect-ratio:9/16;border:0;border-radius:0}
}

/* Re:plain: прозрачный фон виджета, чтобы на мобильных не было белого квадрата до загрузки иконки */
@media (max-width:63.99rem){#v-nalichii .section__title{font-size:var(--fs-h);line-height:1.18}}
