/* Общее для концепций «Аскет» (v2): шапка, кнопки, меню, панель расчёта, галерея работ.
   Цвета и шрифт задаёт страница переменными: --bg --fg --mut --line --acc --btn --btn-fg --sheet --sheet-fg --sheet-mut --sheet-line --font */
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--bg);-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--fg);font:400 16px/1.5 var(--font);-webkit-font-smoothing:antialiased;overflow-x:clip}   /* clip, не hidden: hidden делает body прокручиваемым — ломает прибитую шапку и блокировку прокрутки на html */
img,svg{display:block;max-width:100%}
ul{list-style:none}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:inherit}
:focus-visible{outline:1px solid var(--acc);outline-offset:4px}
@keyframes fade{from{opacity:0;transform:translateY(10px)}}

/* ---------- шапка ---------- */
.hdr{position:relative;z-index:30;display:flex;align-items:center;gap:clamp(20px,3vw,48px);height:var(--hdr);padding:0 var(--pad)}
.brand{display:flex;align-items:center;gap:18px;flex:none}
.brand img{height:30px;width:auto}
.brand small{font-size:13px;line-height:1.35;color:var(--mut);white-space:nowrap}
.nav{display:flex;gap:clamp(18px,2.2vw,34px);margin-left:clamp(8px,2vw,32px)}
.nav a{position:relative;padding:6px 0;color:var(--mut);white-space:nowrap;transition:color .25s}
.nav a:hover,.nav a[aria-current]{color:var(--fg)}
.nav a[aria-current]::after{content:"";position:absolute;left:50%;bottom:-4px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--acc)}
/* 25.10.2026: «Вся мебель ▾» — список семи направлений под пунктом меню (наведение или нажатие) */
.nav__dd{position:relative;display:flex}
.nav__more{display:flex;align-items:center;gap:7px;padding:6px 0;color:var(--mut);white-space:nowrap;transition:color .25s}
.nav__more svg{flex:none;width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.6;transition:transform .3s}   /* flex:none — стрелка не сжимается в тесной шапке */
.nav__more:hover,.nav__dd.open .nav__more,.nav__more.is-cur{color:var(--fg)}
.nav__more.is-cur{position:relative}
.nav__more.is-cur::after{content:"";position:absolute;left:50%;bottom:-4px;width:4px;height:4px;margin-left:-8px;border-radius:50%;background:var(--acc)}
.nav__list{position:absolute;z-index:40;top:calc(100% + 18px);left:-20px;display:grid;min-width:260px;padding:10px;background:var(--bg);border:1px solid var(--line);box-shadow:0 24px 50px -24px rgba(0,0,0,.6);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .2s,transform .25s cubic-bezier(.2,.8,.2,1),visibility 0s linear .25s}
.nav__list::before{content:"";position:absolute;left:0;right:0;top:-19px;height:19px}   /* мостик: список не закрывается, пока мышь идёт от пункта к нему */
.nav__dd.open .nav__list{opacity:1;visibility:visible;transform:none;transition:opacity .2s,transform .25s cubic-bezier(.2,.8,.2,1),visibility 0s}
@media (hover:hover) and (pointer:fine){ .nav__dd:hover .nav__list{opacity:1;visibility:visible;transform:none;transition:opacity .2s,transform .25s cubic-bezier(.2,.8,.2,1),visibility 0s} .nav__dd:hover .nav__more svg{transform:rotate(180deg)} }
.nav__dd.open .nav__more svg{transform:rotate(180deg)}
.nav .nav__list a{padding:10px 14px;color:var(--mut);transition:color .2s,background .2s}
.nav .nav__list a:hover{color:var(--fg);background:var(--line)}
.nav .nav__list a[aria-current]{color:var(--fg)}
.nav .nav__list a[aria-current]::after{position:static;display:inline-block;margin:0 0 3px 10px;vertical-align:middle}
/* с пунктом «Вся мебель» шапка шире: на ноутбуках «Вопросы» уходит из шапки (он есть в меню и подвале), промежутки меньше */
/* 28.10: «Портфолио» длиннее прежних «Работ» — на ноутбуках в шапке без «Вопросов» (до 1679 px) и «Отзывов» (до 1499 px): они в меню и на странице */
@media (min-width:1181px) and (max-width:1679px){ .hdr .nav a[href$="#voprosy"]{display:none} }
@media (min-width:1181px) and (max-width:1499px){ .hdr .nav a[href$="#otzyvy"]{display:none} .hdr .nav{gap:clamp(16px,1.5vw,34px)} }
.hdr-r{display:flex;align-items:center;gap:clamp(14px,2vw,28px);margin-left:auto}
.tel{white-space:nowrap;color:var(--mut);transition:color .2s}
.tel:hover{color:var(--fg)}
.cb{height:44px;padding:0 20px;border:1px solid var(--line2);white-space:nowrap;transition:border-color .2s,background .2s}
.cb:hover{border-color:var(--fg)}
.call{display:none;align-items:center;gap:10px;height:44px;padding:0 4px;white-space:nowrap}
.call svg{width:20px;height:20px}
.burger{display:grid;place-items:center;width:44px;height:44px;margin-right:-10px}
.burger i{display:block;width:22px;height:1.5px;background:currentColor;box-shadow:0 -7px 0 currentColor,0 7px 0 currentColor}

/* ---------- кнопки ---------- */
.btn{position:relative;display:inline-flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:64px;padding:10px 34px;background:var(--btn);color:var(--btn-fg);font-weight:500;font-size:17px;line-height:1.2;white-space:nowrap;transition:background .25s,color .25s}
.btn small{display:block;margin-top:3px;font-weight:400;font-size:13px;opacity:.7}
.btn:hover{background:var(--acc);color:#1E1F22}
.lnk{position:relative;padding:3px 0;border-bottom:1px solid var(--line2);white-space:nowrap;transition:border-color .25s}
.lnk:hover{border-color:var(--fg)}
.lnk sup{font-size:11px;color:var(--mut);margin-left:3px}

/* ---------- цифры доверия ---------- */
.trust{display:flex;gap:clamp(28px,3.4vw,56px)}
.trust li{display:grid;gap:1px}
.trust b{font-weight:400;font-size:clamp(22px,2.9vh,28px);letter-spacing:-.02em;line-height:1.2;white-space:nowrap}
.trust span{font-size:14px;color:var(--mut)}

/* ---------- шторки: меню и расчёт ---------- */
.veil{position:fixed;inset:0;z-index:60;background:rgba(12,12,14,.5);opacity:0;visibility:hidden;transition:.3s}
.sheet{position:fixed;z-index:61;top:0;right:0;bottom:0;display:flex;flex-direction:column;width:min(460px,100%);padding:24px 32px 32px;overflow-y:auto;
  background:var(--sheet);color:var(--sheet-fg);transform:translateX(102%);visibility:hidden;transition:transform .45s cubic-bezier(.2,.8,.2,1),visibility 0s linear .45s}
.open-menu .veil,.open-calc .veil,.open-gal .veil{opacity:1;visibility:visible}
.open-menu .sheet--menu,.open-calc .sheet--calc{transform:none;visibility:visible;transition:transform .45s cubic-bezier(.2,.8,.2,1),visibility 0s}
.sheet__top{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}
.sheet__top img{height:24px;width:auto}
.x{display:grid;place-items:center;width:44px;height:44px;margin-right:-10px}
.x svg{width:18px;height:18px}
.menu-list{margin-bottom:28px;font-size:22px;line-height:1.25;letter-spacing:-.01em}
.menu-list a{display:block;padding:7px 0;color:var(--sheet-mut);transition:color .2s}
.menu-list a:hover,.menu-list a[aria-current]{color:var(--sheet-fg)}
.menu-list a[aria-current]::after{content:"";display:inline-block;width:5px;height:5px;margin:0 0 4px 10px;border-radius:50%;background:var(--acc)}
.menu-meta{margin-bottom:20px;font-size:15px;line-height:1.7;color:var(--sheet-mut)}
.menu-meta a{color:var(--sheet-fg);border-bottom:1px solid var(--sheet-line)}
.msgs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.msgs a{display:inline-flex;align-items:center;gap:9px;padding:8px 16px 8px 11px;border:1px solid var(--sheet-line);font-size:14px;transition:border-color .2s}
.msgs img{flex:none;width:20px;height:20px}
.msgs a:hover{border-color:var(--sheet-fg)}
.sheet .btn{width:100%;align-items:center}

.calc h2{font-weight:400;font-size:30px;line-height:1.1;letter-spacing:-.02em;margin-bottom:10px}
.calc .offer{display:flex;align-items:baseline;gap:12px;margin:18px 0 22px;padding:14px 0;border-top:1px solid var(--sheet-line);border-bottom:1px solid var(--sheet-line)}
.calc .offer b{font-weight:500;font-size:34px;line-height:1;color:var(--acc)}
.calc .offer span{font-size:15px;line-height:1.35;color:var(--sheet-mut)}
.calc .pick{font-size:15px;color:var(--sheet-mut);margin-bottom:4px}
.calc .pick b{font-weight:500;color:var(--sheet-fg)}
.calc p{color:var(--sheet-mut);line-height:1.5}
.fld{display:block;margin-bottom:14px}
.fld span{display:block;margin-bottom:6px;font-size:13.5px;color:var(--sheet-mut)}
.fld input{width:100%;height:54px;padding:0 16px;border:1px solid var(--sheet-line);border-radius:0;background:transparent;color:var(--sheet-fg);font:inherit;font-size:17px}
.fld input:focus{outline:none;border-color:var(--sheet-fg)}
.agree{display:flex;gap:12px;align-items:flex-start;margin:6px 0 14px;font-size:13.5px;line-height:1.45;color:var(--sheet-mut)}
.agree input{flex:none;width:18px;height:18px;margin-top:1px;accent-color:var(--acc)}
.agree a{border-bottom:1px solid var(--sheet-line)}
.err{min-height:20px;margin-bottom:8px;font-size:13.5px;color:#D9534F}
.done{display:none}
.sent .calc__form{display:none}
.sent .done{display:block}
.done h2{margin-top:8px}

/* ---------- квиз расчёта (страница включает ASKET.quiz): по центру на компьютере, на весь экран на телефоне ---------- */
.sheet--quiz{top:50%;left:50%;right:auto;bottom:auto;width:min(900px,calc(100% - 48px));height:auto;min-height:min(500px,calc(100svh - 48px));max-height:calc(100svh - 48px);padding:22px 36px 26px;
  transform:translate(-50%,-47%);opacity:0;transition:transform .4s cubic-bezier(.2,.8,.2,1),opacity .3s,visibility 0s linear .4s}
.open-quiz .veil{opacity:1;visibility:visible}
.open-quiz .sheet--quiz{transform:translate(-50%,-50%);opacity:1;visibility:visible;transition:transform .4s cubic-bezier(.2,.8,.2,1),opacity .3s,visibility 0s}
.sheet--quiz .sheet__top{margin-bottom:16px}
.q-off{margin:0 18px 0 auto;padding:6px 12px;border:1px solid var(--acc);font-size:13.5px;white-space:nowrap}
.q-bar{height:2px;background:var(--sheet-line)}
.q-bar i{display:block;width:0;height:100%;background:var(--acc);transition:width .35s}
.q-n{margin:12px 0 8px;font-size:13.5px;color:var(--sheet-mut)}
.q-body{flex:1;min-height:0;overflow-y:auto}
.q-h{margin-bottom:18px;font-weight:400;font-size:clamp(24px,2.6vw,32px);line-height:1.1;letter-spacing:-.02em}
.q-opts{display:grid;gap:10px}
.q-opts--pic{grid-template-columns:repeat(4,minmax(0,1fr))}
.q-opts--5{grid-template-columns:repeat(5,minmax(0,1fr))}
.q-opts--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.q-opts--10{grid-template-columns:repeat(5,minmax(0,1fr))}   /* 28.10, главная: десять направлений с квадратными фото — 5 × 2 */
.q-opts--10 .q-card img{aspect-ratio:1}
.q-card{display:flex;flex-direction:column;gap:8px;padding:10px 12px 12px;border:1px solid var(--sheet-line);font-size:16px;line-height:1.25;transition:border-color .2s,box-shadow .2s}
.q-card:hover{border-color:var(--sheet-fg)}
.q-card[aria-pressed="true"]{border-color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc)}
.q-lbl{display:flex;align-items:center;gap:8px}
.q-plan{flex:none;width:22px;height:22px;fill:currentColor;fill-opacity:.14;stroke:currentColor;stroke-width:1.3;stroke-linejoin:round}
/* плитки форм на странице (экран «Расчёт»): фото кухни, под ним план, подпись и стрелка */
.q-tile{display:flex;flex-direction:column;gap:12px}
.q-im{display:block;overflow:hidden;background:rgba(127,127,127,.15)}
.q-im img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .7s cubic-bezier(.2,.8,.2,1)}
.q-tile:hover .q-im img{transform:scale(1.045)}
.q-tile .q-lbl{gap:10px;font-size:17px;line-height:1.2}
.q-tile .q-lbl::after{content:"→";margin-left:auto;opacity:.45;transition:transform .3s,opacity .3s}
.q-tile:hover .q-lbl::after{transform:translateX(4px);opacity:1}
.q-tile:focus-visible{outline:1px solid var(--acc);outline-offset:4px}
.q-card img,.q-none{display:block;width:100%;aspect-ratio:4/3;object-fit:cover;background:var(--sheet-line)}
.q-none{display:grid;place-items:center;font-style:normal;font-size:30px;color:var(--sheet-mut)}
.q-card--wide{grid-column:1/-1;flex-direction:row;align-items:center;min-height:56px}
.q-card--wide small{margin-left:4px;font-size:14px;color:var(--sheet-mut)}
.q-opts:not(.q-opts--pic) .q-card{padding:16px 18px;font-size:17px}
.q-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}
.q-back{padding:10px 0;color:var(--sheet-mut);transition:color .2s}
.q-back:hover{color:var(--sheet-fg)}
.sheet--quiz .q-next{width:auto;min-height:52px;padding:8px 32px}
.q-via{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 14px}
.q-via label{position:relative;cursor:pointer}
.q-via input{position:absolute;opacity:0;pointer-events:none}
.q-via span{display:block;padding:9px 16px;border:1px solid var(--sheet-line);font-size:14px}
.q-via input:checked+span{border-color:var(--acc);box-shadow:inset 0 0 0 1px var(--acc)}
.q-via input:focus-visible+span{outline:1px solid var(--acc);outline-offset:3px}
.q-done p{color:var(--sheet-mut);line-height:1.5}
.q-sum{margin-top:18px;font-size:15px;line-height:1.7;color:var(--sheet-mut)}
.q-sum b{font-weight:500;color:var(--sheet-fg)}

/* ---------- галерея работ ---------- */
.gal{position:fixed;z-index:61;inset:0;display:grid;place-items:center;padding:72px 64px;opacity:0;visibility:hidden;transition:.35s}
.open-gal .gal{opacity:1;visibility:visible}
.open-gal .veil{background:rgba(10,10,12,.93)}
.gal figure{position:relative;width:min(100%,calc((100svh - 160px) * 4 / 3),1000px)}
.gal img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#2A2B2F}   /* 19.10: в галерее есть вертикальные фото — показываем целиком */
.gal figcaption{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:14px;font-size:14px;color:rgba(255,255,255,.7)}
.g-calc{display:none;padding:9px 16px;border:1px solid rgba(255,255,255,.4);color:#fff;font-size:14px;white-space:nowrap;transition:border-color .2s,background .2s}
.g-calc:hover{border-color:#fff;background:rgba(255,255,255,.08)}
.galcalc .g-calc{display:inline-block}
.g-t{flex:1;min-width:0;line-height:1.35}   /* 24.10: подпись фото — форма, размеры, материалы (Алексей) */
.g-t b{font-weight:500;color:#fff}
.g-t small{display:block;margin-top:3px;font-size:13px;color:rgba(255,255,255,.55)}
.g-t .g-no{margin-right:.6em;font-style:normal;font-variant-numeric:tabular-nums;color:var(--acc)}   /* 28.10: номер работы в портфолио */
.gal .x{position:absolute;top:16px;right:26px;color:#fff}
.g-arr{position:absolute;top:50%;display:grid;place-items:center;width:48px;height:64px;margin-top:-32px;color:#fff;opacity:.6;filter:drop-shadow(0 1px 4px rgba(0,0,0,.6));transition:opacity .2s}
.g-arr:hover{opacity:1}
.g-arr svg{width:14px;height:24px}
.g-arr--l{left:-60px}
.g-arr--r{right:-60px}

/* ---------- телефон и планшет ---------- */
@media (max-width:1360px){ .tel{display:none} }
@media (max-width:1180px){ .nav{display:none} }
@media (max-width:1023px){
  .hdr{gap:12px}
  .brand{gap:12px}
  .brand img{height:25px}
  .brand small{font-size:12px}
  .cb{display:none}
  .hdr-r{gap:6px}
  .call{display:inline-flex}
  .sheet{top:auto;max-height:94svh;width:100%;padding:18px 20px 28px;transform:translateY(102%)}
  /* меню на телефоне помещается без прокрутки: разделы в две колонки, всё плотнее */
  .sheet--menu{padding:14px 20px 20px}
  .sheet--menu .sheet__top{margin-bottom:12px}
  .menu-list{display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,auto);column-gap:16px;margin-bottom:16px;font-size:17px;line-height:1.2}
  .menu-list a{padding:7px 0}
  .menu-meta{margin-bottom:14px;font-size:14px;line-height:1.6}
  .msgs{margin-bottom:16px}
  .msgs a{padding:8px 14px}
  .gal{padding:56px 0}
  .g-arr--l{left:2px}
  .g-arr--r{right:2px}
}
@media (max-width:1023px){
  .sheet--quiz{top:0;left:0;right:0;bottom:0;width:100%;height:100%;max-height:none;padding:14px 18px 18px;transform:translateY(102%);opacity:1}
  .open-quiz .sheet--quiz{transform:none}
  .sheet--quiz .sheet__top{margin-bottom:12px}
  .q-off{margin-right:8px;padding:5px 9px;font-size:12.5px}
  .q-opts--pic{grid-template-columns:1fr 1fr;gap:8px}
  .q-opts--5 .q-card:first-child,.q-opts--3 .q-card:first-child{grid-column:1/-1;flex-direction:row;align-items:center;gap:12px}   /* фото из «Хочу такую»: строкой сверху, ниже — 2 × 2 (у трёх плиток — 2 в ряд) */
  .q-opts--5 .q-card:first-child img,.q-opts--3 .q-card:first-child img{width:44%;flex:none}
  .q-h{margin-bottom:14px;font-size:24px}
  .q-opts:not(.q-opts--pic) .q-card{padding:13px 16px;font-size:16px}
  .q-card{padding:8px 9px 10px;font-size:15px}
  /* главная: десять направлений — карточки строкой, маленькое фото слева, 2 колонки: весь вопрос на одном экране телефона */
  .q-opts--10 .q-card:not(.q-card--wide){flex-direction:row;align-items:center;gap:10px;padding:6px 8px 6px 6px}
  .q-opts--10 .q-card:not(.q-card--wide) img{width:clamp(44px,13vw,64px);flex:none}
  .q-opts--10 .q-lbl{font-size:14.5px;line-height:1.15}
  .q-opts--10 .q-card:not(.q-card--wide) .q-plan{display:none}
}
@media (max-width:1023px) and (max-height:600px){ .menu-list a{padding:5px 0} .menu-meta{margin-bottom:10px} }   /* низкие экраны (320×568): меню без прокрутки */

@media (max-width:600px){ .gal figcaption{flex-wrap:wrap;padding:0 12px} .gal .g-t{flex:1 1 100%;font-size:13.5px} }
/* шапка 30.10 (Дмитрий: «гамбургер уезжает за экран», «логотип на телефоне сделай нормальный»).
   Гамбургер — кнопка в рамке, как «Заказать звонок», правым краем ровно по полю страницы (раньше margin-right:-10px, на 360–400 px вылезал за край).
   Телефон (до 599 px): логотип без длинного хвоста-рулетки — короткий хвост с растушёвкой, надпись крупнее (обрезка object-fit, файл тот же);
   номер с городами «кто и где» (чек-лист 9.9) на всех ширинах, подпись под знаком больше не нужна.
   body .hdr — чтобы перебить правила шапки в стилях страниц (они грузятся после этого файла). */
body .hdr .burger{width:44px;height:44px;margin-right:0;border:1px solid var(--line2);transition:border-color .2s}
body .hdr .burger:hover{border-color:var(--fg)}
/* компьютер: на 1362–1374 и 1500–1510 px строка не помещалась (номер и «Отзывы» появлялись впритык) — гамбургер заезжал в поле справа.
   Номер — с 1441 px, «Отзывы» — с 1600 px (они в меню-шторке и на странице) */
@media (min-width:1181px) and (max-width:1440px){ body .hdr .tel{display:none} }
@media (min-width:1181px) and (max-width:1599px){ body .hdr .nav a[href$="#otzyvy"]{display:none} }
@media (max-width:1023px){ body .hdr .burger{width:40px;height:40px} body .hdr .burger i{width:18px;box-shadow:0 -6px 0 currentColor,0 6px 0 currentColor} }
@media (max-width:599px){
  body .hdr{padding:0 var(--pad);gap:10px}
  body .hdr .hdr-r{gap:10px}
  body .hdr .brand{flex-direction:row;gap:0}
  body .hdr .brand small{display:none}
  body .hdr .brand img{height:30px;width:137px;object-fit:cover;object-position:100% 50%;-webkit-mask-image:linear-gradient(90deg,transparent,#000 13%);mask-image:linear-gradient(90deg,transparent,#000 13%)}
  body .hdr .call{padding:0}
  body .hdr .call svg{display:none}
  body .hdr .call span{display:flex}
}
@media (max-width:389px){ body .hdr .brand img{height:27px;width:123px} body .hdr .hdr-r{gap:8px} body .hdr .call b{font-size:14px} body .hdr .call small{font-size:11.5px} }
@media (max-width:359px){ body .hdr{gap:8px} body .hdr .brand img{height:24px;width:110px} body .hdr .hdr-r{gap:6px} body .hdr .call b{font-size:13px} body .hdr .call small{font-size:10.5px} body .hdr .burger{width:38px;height:38px} }
@media (max-width:339px){ body .hdr{padding:0 12px} body .hdr .brand img{height:21px;width:96px} body .hdr .call b{font-size:12.5px} body .hdr .call small{font-size:10px} body .hdr .burger{width:36px;height:36px} }
@media (prefers-reduced-motion:reduce){ *,*::before,*::after{animation:none!important;transition-duration:.01ms!important;transition-delay:0s!important} }
/* подвал, нижняя строка (29.10): строка «© … / ИП, ИНН, ОГРНИП» в две строки, документы и «Разработка сайта» остаются справа (чек-лист 2.3) */
@media (min-width:1024px){ .ft__bot > span{flex:1 1 300px} .ft__meta{margin-left:auto} }
/* сноска про Instagram под нижней строкой подвала (29.10.2026) */
.ft__ig{margin-top:12px;padding-right:clamp(72px,7vw,96px);font-size:12px;line-height:1.45;opacity:.45}   /* справа — место плавающих кнопок */
