/* Витрина «Таке Мебель Эксклюзив» — строгий магазинный стиль: белый фон, сетка, красный акцент.
   Только системные шрифты, без внешних ресурсов.
   Резерв: styles-base.css (базовая вёрстка), styles-v1-editorial.css (прошлый дизайн). */

/* ---------- токены ---------- */
:root{
  --red:#e2211c;
  --red-dark:#b5130e;
  --red-deep:#8f0c08;
  --red-soft:#fdecea;
  --ink:#111111;
  --text:#1f1f22;
  --muted:#6b6b72;          /* 5.3:1 на белом */
  --line:#e5e5e5;
  --line-strong:#d4d4d4;
  --soft:#f5f5f5;
  --dark:#111111;
  --dark-2:#1c1c1c;
  --on-dark:#f2f2f2;
  --on-dark-muted:#a3a3a3;

  --font:"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;

  --fs-hero:clamp(40px,4.8vw,72px);
  --fs-h2:clamp(26px,2.6vw,38px);

  --maxw:1280px;
  --gutter:clamp(16px,3vw,32px);
  --space-section:clamp(56px,7vw,96px);
  --header-h:132px;

  --ease:cubic-bezier(.2,.7,.2,1);
}

/* ---------- основа ---------- */
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none !important}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:var(--font);font-size:16px;line-height:1.55;color:var(--text);background:#fff;-webkit-font-smoothing:antialiased}
body.no-scroll{overflow:hidden}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
h1,h2,h3,h4{margin:0;color:var(--ink);line-height:1.15;font-weight:600}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
:focus-visible{outline:2px solid var(--red);outline-offset:2px}
section[id]{scroll-margin-top:var(--header-h)}

/* ---------- фото: точка фокуса ----------
   Все фото вертикальные 4:5, мебель — в нижних 2/3 кадра, сверху потолок.
   В горизонтальных и квадратных окнах кадр сдвигается к мебели. */
img[src$="/kitchen-white.jpg"]{--focus:50% 68%}
img[src$="/kitchen-blue.jpg"]{--focus:50% 72%}
img[src$="/wardrobe.jpg"]{--focus:50% 55%}
img[src$="/hall.jpg"]{--focus:50% 60%}
img[src$="/living.jpg"]{--focus:50% 80%}
img[src$="/dining.jpg"]{--focus:50% 72%}
img[src$="/bedroom-green.jpg"]{--focus:50% 62%}
img[src$="/kids.jpg"]{--focus:50% 62%}
.hero-photo img,.category-tile-media img,.room-tile img,.about-visual img,.pm-media img,.product-media img{object-position:var(--focus,50% 60%)}

.container{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.muted{color:var(--muted)}

/* ---------- кнопки ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 28px;border:1px solid transparent;border-radius:0;font-size:15px;font-weight:600;line-height:1;white-space:nowrap;transition:background-color .18s,color .18s,border-color .18s}
.btn:disabled{opacity:.6;cursor:default}
.btn-primary,.btn-hero{background:var(--red);color:#fff}
.btn-primary:hover,.btn-hero:hover{background:var(--red-dark)}
.btn-ghost{background:#fff;color:var(--ink);border-color:var(--ink)}
.btn-ghost:hover{background:var(--ink);color:#fff}
.btn-hero-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.7)}
.btn-hero-ghost:hover{background:#fff;color:var(--ink);border-color:#fff}
.btn-block{width:100%}
.icon-btn{display:inline-grid;place-items:center;width:40px;height:40px;padding:0;border:0;background:transparent;color:var(--ink);transition:background-color .15s,color .15s}
.icon-btn:hover{background:var(--soft);color:var(--red)}

/* ---------- шапка ---------- */
.site-header{position:sticky;top:0;z-index:50;background:#fff}
.header-main{position:relative;border-bottom:1px solid var(--line)}
.header-main-inner{display:flex;align-items:center;gap:32px;min-height:84px}
.logo{display:flex;align-items:center;gap:12px;flex:none}
.logo-mark{display:inline-grid;place-items:center;width:64px;height:64px;background:var(--ink);color:#fff;font-size:15px;font-weight:700;letter-spacing:.14em;padding-left:.14em}
.logo-text{display:flex;flex-direction:column;font-size:14px;font-weight:600;line-height:1.25;color:var(--ink)}
.logo-text small{font-size:12px;font-weight:400;color:var(--muted)}
.site-nav{display:flex;gap:28px}
.site-nav a{position:relative;padding:6px 0;font-size:15px;color:var(--ink);transition:color .15s}
.site-nav a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--red);transform:scaleX(0);transition:transform .2s var(--ease)}
.site-nav a:hover{color:var(--red)}
.site-nav a:hover::after{transform:scaleX(1)}
.header-search{position:relative;flex:1;max-width:420px;margin-left:auto}
.header-search .icon{position:absolute;left:14px;top:50%;width:18px;height:18px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.header-search input{width:100%;height:40px;padding:0 14px 0 42px;border:1px solid transparent;border-radius:0;background:var(--soft);font-size:14px;outline:0;transition:border-color .15s,background-color .15s}
.header-search input::placeholder{color:#8d8d93}
.header-search input:focus{background:#fff;border-color:var(--ink)}
.header-actions{display:flex;align-items:center;gap:20px;flex:none}
.header-phone{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:var(--ink);white-space:nowrap}
.header-phone .icon{width:18px;height:18px;color:var(--red)}
.header-phone:hover{color:var(--red)}
.cart-btn{position:relative;display:flex;align-items:center;gap:8px;height:40px;padding:0 14px;border:1px solid var(--line-strong);background:#fff;font-size:14px;font-weight:600;color:var(--ink);transition:border-color .15s,color .15s}
.cart-btn:hover{border-color:var(--red);color:var(--red)}
.cart-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;background:var(--red);color:#fff;font-size:12px;font-weight:700;border-radius:10px}
.menu-toggle{display:none;width:40px;height:40px;padding:0;border:0;background:transparent;color:var(--ink)}
.menu-toggle .icon{width:24px;height:24px}
.menu-toggle.is-active{color:var(--red)}

.header-cats{border-bottom:1px solid var(--line);background:#fff}
.header-cats-inner{display:flex;gap:4px 36px;min-height:48px;align-items:stretch;overflow-x:auto;scrollbar-width:none}
.header-cats-inner::-webkit-scrollbar{display:none}
.cat-strip-link{position:relative;flex:none;padding:0;border:0;background:none;font-size:15px;color:var(--ink);white-space:nowrap;transition:color .15s}
.cat-strip-link::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:var(--red);transform:scaleX(0);transition:transform .2s var(--ease)}
.cat-strip-link:hover{color:var(--red)}
.cat-strip-link.is-active{color:var(--red);font-weight:600}
.cat-strip-link.is-active::after{transform:scaleX(1)}

/* ---------- герой ---------- */
.hero{display:grid;grid-template-columns:1fr 1fr;min-height:clamp(480px,62vh,640px)}
.hero-panel{display:flex;align-items:center;background:linear-gradient(180deg,#8e0606 0%,#cf120c 45%,#f22a1f 100%);color:#fff}
.hero-panel .hero-panel-inner{max-width:none;margin:0;padding:64px clamp(24px,4vw,64px) 64px max(var(--gutter),calc((100vw - var(--maxw)) / 2 + var(--gutter)))}
.hero h1{color:#fff;font-size:var(--fs-hero);font-weight:400;letter-spacing:-.02em;line-height:1.05}
.hero-sub{max-width:520px;margin-top:22px;font-size:clamp(17px,1.4vw,21px);font-weight:600;line-height:1.4}
.hero-points{display:grid;gap:10px;margin-top:28px;font-size:15px}
.hero-points li{display:flex;align-items:center;gap:10px}
.hero-points .icon{width:18px;height:18px;padding:2px;background:#fff;color:var(--red);stroke-width:3}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:40px}
.hero .btn-hero{background:var(--red-deep);min-width:180px}
.hero .btn-hero:hover{background:#6e0805}
.hero-photo{position:relative;overflow:hidden;background:var(--soft)}
.hero-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-photo-note{position:absolute;left:clamp(16px,2.4vw,32px);bottom:clamp(16px,2.4vw,32px);max-width:calc(100% - 32px);padding:12px 18px;background:#fff;border-left:3px solid var(--red);box-shadow:0 6px 20px rgba(0,0,0,.14);font-size:15px;font-weight:600;line-height:1.3;color:var(--ink)}

/* ---------- преимущества ---------- */
.features{border-bottom:1px solid var(--line)}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.feature{display:flex;align-items:flex-start;gap:14px;padding:28px 24px}
.feature + .feature{border-left:1px solid var(--line)}
.feature:first-child{padding-left:0}
.feature-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid var(--red);color:var(--red)}
.feature-icon .icon{width:22px;height:22px}
.feature b{display:block;font-size:15px;font-weight:600;color:var(--ink)}
.feature span:not(.feature-icon){display:block;margin-top:2px;font-size:13px;color:var(--muted);line-height:1.4}

/* ---------- заголовки секций ---------- */
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px 40px;flex-wrap:wrap;margin-bottom:36px}
.eyebrow{display:inline-flex;align-items:center;gap:10px;margin-bottom:12px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--red)}
.eyebrow::before{content:"";width:24px;height:2px;background:var(--red)}
.section-head h2,.about h2,.contacts h2{font-size:var(--fs-h2);font-weight:400;letter-spacing:-.01em}
.section-sub{max-width:560px;margin-top:12px;font-size:15px;color:var(--muted)}
.section-link{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;color:var(--red)}
.section-link .icon{width:18px;height:18px;transition:transform .2s var(--ease)}
.section-link:hover .icon{transform:translateX(4px)}

/* ---------- популярные категории ---------- */
.category-section{padding:var(--space-section) 0 0}
.category-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.category-tile{display:flex;flex-direction:column}
.category-tile-media{display:block;aspect-ratio:1/1;overflow:hidden;background:var(--soft)}
.category-tile-media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease);backface-visibility:hidden}
.category-tile-body{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 0 14px;border-bottom:1px solid var(--line-strong)}
.category-tile-body b{font-size:20px;font-weight:400;color:var(--ink);transition:color .15s}
.category-tile-body span{flex:none;padding:4px 8px;background:var(--red);color:#fff;font-size:13px;font-weight:600;line-height:1.2}
.category-tile:hover .category-tile-body b{color:var(--red)}

/* ---------- каталог ---------- */
.catalog{padding:var(--space-section) 0}
.catalog-filters{display:flex;flex-wrap:wrap;gap:8px}
.filter-chip{height:38px;padding:0 16px;border:1px solid var(--line-strong);border-radius:0;background:#fff;font-size:14px;color:var(--ink);transition:border-color .15s,color .15s,background-color .15s}
.filter-chip:hover{border-color:var(--red);color:var(--red)}
.filter-chip.is-active{background:var(--red);border-color:var(--red);color:#fff}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:40px 24px}
.product-skeleton{aspect-ratio:4/5;background:linear-gradient(90deg,var(--soft) 0%,#ececec 50%,var(--soft) 100%);background-size:200% 100%;animation:shimmer 1.4s linear infinite}
@keyframes shimmer{to{background-position:-200% 0}}

.product-card{display:flex;flex-direction:column;min-width:0}
.product-media{position:relative;display:block;width:100%;aspect-ratio:4/5;padding:0;border:0;background:var(--soft);overflow:hidden;isolation:isolate}
.product-media img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease);backface-visibility:hidden}
/* лёгкое затемнение сверху — плашка читается и на белой кухне, и на тёмной гостиной */
.product-media::after{content:"";position:absolute;inset:0 0 auto;height:72px;background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,0));pointer-events:none}
.product-ph{display:grid;place-items:center;width:100%;height:100%;font-size:48px;font-weight:300;letter-spacing:.08em;color:#b9b9be}
.product-badge{position:absolute;left:12px;top:12px;z-index:1;padding:5px 9px;background:var(--red);color:#fff;font-size:12px;font-weight:600;line-height:1.2;box-shadow:0 2px 6px rgba(0,0,0,.2)}
.product-body{display:flex;flex-direction:column;flex:1;padding-top:14px}
.product-cat{font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.product-name{min-height:calc(2em * 1.3);margin-top:4px;font-size:17px;font-weight:400;line-height:1.3;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-meta{min-height:1.4em;margin:4px 0 14px;font-size:13px;line-height:1.4;color:var(--muted)}
.product-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid var(--line-strong)}
.product-price{display:flex;flex-direction:column;line-height:1.2}
.product-price span{font-size:18px;font-weight:700;color:var(--ink);white-space:nowrap}
.product-price s{font-size:13px;color:var(--muted)}
.btn-buy{min-height:38px;padding:0 14px;background:var(--red);color:#fff;font-size:13px}
.btn-buy:hover{background:var(--red-dark)}
.empty-state{grid-column:1/-1;padding:56px 24px;border:1px dashed var(--line-strong);text-align:center;color:var(--muted)}
.catalog-note{margin-top:48px;padding-top:24px;border-top:1px solid var(--line);text-align:center;font-size:15px;color:var(--muted)}
.catalog-note a{color:var(--red);font-weight:600;text-decoration:underline;text-underline-offset:3px}

/* ---------- решения для комнат ---------- */
.rooms{padding:var(--space-section) 0;background:var(--soft)}
.rooms-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.room-tile{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:#e9e9e9;isolation:isolate}
.room-tile img{width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease);backface-visibility:hidden}
.room-tile-name{position:absolute;left:0;bottom:0;z-index:1;display:inline-flex;align-items:center;gap:10px;padding:12px 20px;background:#fff;font-size:17px;line-height:1.2;color:var(--ink);transition:background-color .18s,color .18s}
.room-tile-name::after{content:"→";color:var(--red);transition:color .18s,transform .2s var(--ease)}
.room-tile:hover .room-tile-name,.room-tile:focus-visible .room-tile-name{background:var(--red);color:#fff}
.room-tile:hover .room-tile-name::after,.room-tile:focus-visible .room-tile-name::after{color:#fff;transform:translateX(3px)}

/* зум фото — только там, где есть мышь: на телефоне hover «залипает» после тапа */
@media (hover:hover){
  .category-tile:hover .category-tile-media img,
  .product-media:hover img,
  .room-tile:hover img{transform:scale(1.04)}
}

/* ---------- о мастерской ---------- */
.about{padding:var(--space-section) 0}
.about-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(32px,6vw,96px);align-items:center}
.about-copy > p{max-width:580px;margin-top:20px;font-size:17px;color:#3a3a40}
.about-list{display:grid;gap:12px;margin-top:28px}
.about-list li{display:flex;gap:12px;font-size:15px}
.about-list .icon{width:20px;height:20px;margin-top:2px;color:var(--red);stroke-width:2.4}
.about-stats{display:grid;grid-template-columns:repeat(3,1fr);margin-top:40px;border-top:1px solid var(--line-strong)}
.about-stats div{padding:20px 20px 0}
.about-stats div:first-child{padding-left:0}
.about-stats div + div{border-left:1px solid var(--line)}
.about-stats b{display:block;font-size:clamp(28px,3vw,40px);font-weight:400;line-height:1;color:var(--red)}
.about-stats span{display:block;margin-top:8px;font-size:13px;color:var(--muted)}
.about-visual{background:var(--soft)}
.about-visual img{width:100%;aspect-ratio:4/5;object-fit:cover}

/* ---------- CTA ---------- */
.cta-band{background:var(--dark);color:var(--on-dark)}
.cta-inner{display:flex;justify-content:space-between;align-items:center;gap:24px 48px;flex-wrap:wrap;padding-top:56px;padding-bottom:56px}
.cta-band h2{color:#fff;font-size:var(--fs-h2);font-weight:400}
.cta-band p{margin-top:10px;color:var(--on-dark-muted);font-size:16px}
.cta-actions{display:flex;flex-wrap:wrap;gap:12px}
.cta-actions .icon{width:18px;height:18px}

/* ---------- контакты ---------- */
.contacts{padding:var(--space-section) 0;background:var(--soft)}
.contacts-inner{display:grid;grid-template-columns:1fr minmax(0,480px);gap:clamp(32px,6vw,96px);align-items:start}
.contacts-copy > p{max-width:520px;margin-top:20px;font-size:17px;color:#3a3a40}
.contacts-list{display:grid;gap:0;margin-top:32px;border-top:1px solid var(--line-strong)}
.contacts-list li{display:flex;gap:16px;padding:18px 0;border-bottom:1px solid var(--line-strong)}
.contacts-list .icon{width:22px;height:22px;margin-top:2px;color:var(--red)}
.contacts-list b{display:block;font-size:12px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.contacts-list span,.contacts-list a{display:block;margin-top:2px;font-size:17px;color:var(--ink)}
.contacts-list a:hover{color:var(--red)}
.contacts-form{padding:clamp(24px,3vw,40px);background:#fff;border-top:3px solid var(--red)}
.contacts-form h3{font-size:24px;font-weight:400}
.form-note{margin:8px 0 24px;font-size:14px;color:var(--muted)}

/* ---------- формы ---------- */
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px}
.field label{font-size:13px;font-weight:600;color:var(--ink)}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.input{width:100%;min-height:46px;padding:10px 14px;border:1px solid var(--line-strong);border-radius:0;background:#fff;font-size:15px;outline:0;transition:border-color .15s,box-shadow .15s}
.input::placeholder{color:#9a9aa0}
.input:hover{border-color:#b5b5b5}
.input:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(226,33,28,.12)}
textarea.input{resize:vertical;min-height:84px}
select.input{appearance:none;padding-right:36px;background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);background-position:calc(100% - 18px) 50%,calc(100% - 13px) 50%;background-size:5px 5px;background-repeat:no-repeat}
.form-error{margin-bottom:16px;padding:10px 14px;background:var(--red-soft);border-left:3px solid var(--red);font-size:14px;color:var(--red-deep)}
.form-privacy{margin-top:12px;font-size:12px;line-height:1.45;color:var(--muted)}
.form-success{padding:32px 0;text-align:center}
.form-success .icon{width:56px;height:56px;padding:14px;background:var(--red);color:#fff;border-radius:50%;stroke-width:2.6}
.form-success h4{margin-top:16px;font-size:22px;font-weight:600}
.form-success p{margin-top:6px;color:var(--muted)}

/* ---------- футер ---------- */
.site-footer{background:#0b0b0b;color:var(--on-dark-muted);font-size:14px}
.footer-inner{display:grid;grid-template-columns:1.2fr 1fr auto;gap:32px;align-items:center;padding-top:44px;padding-bottom:44px}
.footer-brand{display:flex;align-items:center;gap:16px}
.footer-brand .logo-mark{width:56px;height:56px;background:var(--red);font-size:14px}
.footer-brand b{display:block;color:#fff;font-size:15px;font-weight:600}
.footer-brand span:not(.logo-mark){display:block;margin-top:2px}
.footer-nav{display:flex;flex-wrap:wrap;gap:12px 28px}
.footer-nav a{color:var(--on-dark)}
.footer-nav a:hover,.footer-tools:hover{color:var(--red)}
.footer-meta{display:flex;flex-direction:column;align-items:flex-end;gap:6px;font-size:13px}
.footer-tools{color:var(--on-dark-muted);text-decoration:underline;text-underline-offset:3px}

/* ---------- плавающие кнопки связи ---------- */
.float-contacts{position:fixed;right:20px;bottom:20px;z-index:40;display:flex;flex-direction:column;gap:14px}
.float-btn{display:grid;place-items:center;width:56px;height:56px;border:2px solid var(--red);border-radius:50%;background:#fff;color:var(--red);box-shadow:0 0 0 6px rgba(226,33,28,.10),0 4px 14px rgba(0,0,0,.10);transition:background-color .18s,color .18s,transform .18s var(--ease)}
.float-btn .icon{width:24px;height:24px}
.float-btn:hover{background:var(--red);color:#fff;transform:translateY(-2px)}

/* ---------- оверлей, корзина ---------- */
.overlay{position:fixed;inset:0;z-index:80;background:rgba(17,17,17,.5)}
.cart-drawer{position:fixed;top:0;right:0;bottom:0;z-index:90;display:flex;flex-direction:column;width:min(440px,100%);background:#fff;box-shadow:-8px 0 32px rgba(0,0,0,.12);transform:translateX(100%);visibility:hidden;transition:transform .3s var(--ease),visibility 0s linear .3s}
.cart-drawer.is-open{transform:none;visibility:visible;transition:transform .3s var(--ease)}
.cart-head{display:flex;justify-content:space-between;align-items:center;padding:18px 24px;border-bottom:1px solid var(--line)}
.cart-head h2{position:relative;font-size:22px;font-weight:600;padding-left:14px}
.cart-head h2::before{content:"";position:absolute;left:0;top:4px;bottom:4px;width:3px;background:var(--red)}
.cart-body{flex:1;overflow-y:auto;padding:8px 24px 24px}
.cart-empty{display:flex;flex-direction:column;align-items:center;gap:16px;padding:56px 12px;text-align:center;color:var(--muted)}
.cart-empty .icon{width:48px;height:48px;color:var(--line-strong)}
.cart-line{display:grid;grid-template-columns:72px 1fr auto;gap:14px;padding:16px 0;border-bottom:1px solid var(--line)}
.cart-line-img{width:72px;height:90px;object-fit:cover;background:var(--soft);border:1px solid var(--line)}
.cart-line-name{font-size:15px;line-height:1.3;color:var(--ink)}
.cart-line-price{margin:2px 0 10px;font-size:13px;color:var(--muted)}
.cart-line-side{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between}
.cart-line-side b{font-size:15px;white-space:nowrap}
.cart-remove{width:28px;height:28px;padding:0;border:0;background:none;font-size:22px;line-height:1;color:var(--muted)}
.cart-remove:hover{color:var(--red)}
.checkout{margin-top:24px}
.checkout h3{margin-bottom:16px;font-size:18px;font-weight:600}
.cart-foot{padding:16px 24px 20px;border-top:1px solid var(--line);background:#fff}
.cart-row{display:flex;justify-content:space-between;gap:12px;padding:3px 0;font-size:14px;color:var(--muted)}
.cart-row b{color:var(--ink);font-weight:600}
.cart-total{margin-top:6px;padding-top:10px;border-top:1px solid var(--line);font-size:17px;color:var(--ink)}
.cart-total b{font-size:20px;font-weight:700;color:var(--red)}
.cart-hint{margin-top:8px;font-size:12px;color:var(--muted)}

/* ---------- количество ---------- */
.qty{display:inline-flex;align-items:stretch;height:44px;border:1px solid var(--line-strong)}
.qty-btn{width:40px;padding:0;border:0;background:#fff;font-size:18px;color:var(--ink);transition:color .15s,background-color .15s}
.qty-btn:hover{background:var(--soft);color:var(--red)}
.qty-input{width:44px;padding:0;border:0;border-left:1px solid var(--line);border-right:1px solid var(--line);text-align:center;font-size:15px;outline:0;-moz-appearance:textfield;appearance:textfield}
.qty-input::-webkit-outer-spin-button,.qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.qty-sm{height:32px}
.qty-sm .qty-btn{width:30px;font-size:16px}
.qty-sm .qty-input{width:36px;font-size:14px}

/* ---------- модальные окна ---------- */
.modal{position:fixed;inset:0;z-index:95;display:flex;align-items:center;justify-content:center;padding:16px;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .2s,visibility 0s linear .2s}
.modal.is-open{opacity:1;visibility:visible;transition:opacity .2s}
.modal-card{position:relative;display:grid;grid-template-columns:1fr 1fr;width:min(960px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;box-shadow:0 24px 64px rgba(0,0,0,.25);pointer-events:auto;transform:translateY(12px);transition:transform .25s var(--ease)}
.modal.is-open .modal-card{transform:none}
@supports (height:100dvh){.modal-card{max-height:calc(100dvh - 32px)}}
.modal-close{position:absolute;top:10px;right:10px;z-index:2;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.pm-media{position:relative;min-height:0;background:var(--soft);overflow:hidden}
.pm-media img{width:100%;height:100%;min-height:100%;aspect-ratio:4/5;object-fit:cover}
.pm-body{display:flex;flex-direction:column;padding:clamp(24px,3.5vw,44px)}
.pm-badge{align-self:flex-start;margin-bottom:14px;padding:4px 8px;background:var(--red);color:#fff;font-size:12px;font-weight:600}
.pm-body h2{padding-right:32px;font-size:clamp(24px,2.4vw,32px);font-weight:400}
.pm-meta{margin-top:8px;font-size:14px;color:var(--muted)}
.pm-desc{margin:18px 0 28px;font-size:15px;color:#3a3a40}
.pm-buy{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin-top:auto;padding-top:24px;border-top:1px solid var(--line)}
.pm-price{display:flex;flex-direction:column;margin-right:auto;line-height:1.2}
.pm-price span{font-size:26px;font-weight:700;color:var(--ink)}
.pm-price s{font-size:14px;color:var(--muted)}
.pm-note{margin-top:16px;font-size:13px;color:var(--muted)}
.success-card{display:block;width:min(440px,100%);padding:40px 32px;text-align:center}
.success-icon{display:inline-grid;place-items:center;width:64px;height:64px;margin-bottom:18px;background:var(--red);color:#fff;border-radius:50%}
.success-icon .icon{width:30px;height:30px;stroke-width:2.6}
.success-card h2{font-size:26px;font-weight:400}
.success-card p{margin-top:10px}
.success-card .btn{margin-top:24px;min-width:160px}

/* ---------- тост ---------- */
.toast{position:fixed;left:50%;bottom:24px;z-index:100;max-width:calc(100% - 32px);padding:12px 20px;background:var(--ink);color:#fff;font-size:14px;border-left:3px solid var(--red);opacity:0;transform:translate(-50%,12px);transition:opacity .2s,transform .2s var(--ease)}
.toast.is-visible{opacity:1;transform:translate(-50%,0)}

/* ---------- адаптив ---------- */
@media (max-width:1240px){
  .logo-text{display:none}
  .site-nav{gap:20px}
  .header-main-inner{gap:24px}
}
@media (max-width:1100px){
  .header-phone span{display:none}
  .product-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:960px){
  :root{--header-h:118px}
  .menu-toggle{display:inline-grid;place-items:center}
  .site-nav{display:none;position:absolute;left:0;right:0;top:100%;flex-direction:column;gap:0;padding:8px var(--gutter) 16px;background:#fff;border-bottom:1px solid var(--line);box-shadow:0 12px 24px rgba(0,0,0,.08)}
  .site-nav.is-open{display:flex}
  .site-nav a{padding:12px 0;border-bottom:1px solid var(--line)}
  .site-nav a::after{display:none}
  .header-main-inner{min-height:70px;gap:16px}
  .logo-mark{width:52px;height:52px;font-size:13px}
  .header-cats-inner{min-height:44px;gap:28px}
  .cat-strip-link{font-size:14px}

  .hero{grid-template-columns:1fr;min-height:0}
  .hero-panel .hero-panel-inner{padding:48px var(--gutter)}
  .hero-photo{aspect-ratio:16/9;max-height:440px}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
  .feature{padding:22px 20px}
  .feature:nth-child(odd){padding-left:0;border-left:0}
  .feature:nth-child(n+3){border-top:1px solid var(--line)}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .rooms-grid{grid-template-columns:repeat(2,1fr)}
  .about-inner,.contacts-inner{grid-template-columns:1fr}
  .about-visual img{aspect-ratio:16/10}
  .footer-inner{grid-template-columns:1fr;align-items:start}
  .footer-meta{align-items:flex-start}
  .modal-card{grid-template-columns:1fr}
  .pm-media img{height:auto;min-height:0;aspect-ratio:4/3;max-height:56vh}
}
@media (max-width:640px){
  :root{--header-h:176px}
  .header-main-inner{flex-wrap:wrap;gap:12px;padding-top:10px;padding-bottom:12px}
  .header-search{order:3;flex:1 0 100%;max-width:none;margin-left:0}
  .header-actions{margin-left:auto;gap:8px}
  .header-phone{display:grid;place-items:center;width:40px;height:40px;border:1px solid var(--line-strong)}
  .cart-btn > span:not(.cart-count){display:none}
  .cart-btn{padding:0 10px}
  .logo-mark{width:46px;height:46px;font-size:12px}

  .hero h1{font-size:40px}
  .hero-actions .btn{flex:1 1 100%}
  .hero-photo{aspect-ratio:4/3;max-height:300px}
  .hero-photo-note{left:12px;bottom:12px;padding:9px 14px;font-size:13px}
  .feature-grid{grid-template-columns:1fr}
  .feature,.feature:nth-child(odd){padding:16px 0;border-left:0}
  .feature + .feature{border-left:0;border-top:1px solid var(--line)}
  .category-tiles{grid-template-columns:1fr;gap:16px}
  .category-tile-media{aspect-ratio:16/10}
  .product-grid{gap:28px 12px}
  .product-name{font-size:15px}
  .product-foot{flex-direction:column;align-items:stretch;gap:10px}
  .btn-buy{width:100%}
  .product-badge{left:8px;top:8px;padding:4px 7px;font-size:11px}
  .rooms-grid{grid-template-columns:1fr 1fr;gap:12px}
  .room-tile{aspect-ratio:1/1}
  .room-tile-name{padding:8px 12px;font-size:14px}
  .room-tile-name::after{display:none}
  .about-visual img{aspect-ratio:4/3}
  .about-stats div{padding:16px 10px 0}
  .cta-actions{width:100%}
  .cta-actions .btn{flex:1 1 100%}
  .field-row{grid-template-columns:1fr}
  /* плавающие кнопки: две вместо трёх (заявка есть в меню и в CTA), компактнее и у самого края —
     перекрывают не больше правых ~36 px кнопки «В корзину», надпись остаётся открытой */
  .float-contacts{right:8px;bottom:12px;gap:8px}
  .float-form{display:none}
  .float-btn{width:44px;height:44px;box-shadow:0 0 0 3px rgba(226,33,28,.10),0 4px 12px rgba(0,0,0,.12)}
  .float-btn .icon{width:20px;height:20px}
  .site-footer{padding-bottom:64px}
  .modal{padding:8px}
  .modal-card{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px)}
  .pm-media img{aspect-ratio:4/3;max-height:46vh}
  .pm-buy .btn{flex:1 1 100%}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
}

/* --- фикс: на планшете и телефоне фото героя должно занимать всю ширину --- */
@media (max-width:900px){
  .hero-photo{width:100%;aspect-ratio:auto;height:440px}
}
@media (max-width:640px){
  .hero-photo{height:300px}
}

@media (max-width:960px){
  .hero-photo{width:100%;aspect-ratio:auto;height:440px}
}

/* ==========================================================================
   Чат с AI-консультантом
   ========================================================================== */
.chat-launcher{
  position:fixed;right:20px;bottom:20px;z-index:60;display:flex;align-items:center;gap:10px;
  padding:0 20px 0 16px;height:56px;border:0;border-radius:999px;background:var(--red);color:#fff;
  font:inherit;font-size:15px;font-weight:600;cursor:pointer;box-shadow:0 8px 24px rgba(226,33,28,.32);
  transition:transform .18s var(--ease),background-color .18s;
}
.chat-launcher:hover{background:var(--red-dark);transform:translateY(-2px)}
.chat-launcher .icon{width:24px;height:24px}
.chat-launcher.is-hidden{opacity:0;pointer-events:none;transform:translateY(8px)}
.chat-dot{position:absolute;right:12px;top:12px;width:9px;height:9px;border-radius:50%;background:#fff;box-shadow:0 0 0 3px rgba(226,33,28,.35)}
.float-contacts{bottom:96px}

.chat-panel{
  position:fixed;right:20px;bottom:96px;z-index:75;display:flex;flex-direction:column;
  width:380px;height:min(620px,calc(100vh - 130px));background:#fff;border:1px solid var(--line);
  border-radius:16px;box-shadow:0 24px 60px rgba(17,17,17,.22);overflow:hidden;
  opacity:0;visibility:hidden;transform:translateY(12px) scale(.98);pointer-events:none;
  transition:opacity .2s var(--ease),transform .2s var(--ease),visibility 0s linear .2s;
}
.chat-panel.is-open{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition-delay:0s}
.chat-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid var(--line);background:#fff}
.chat-ava{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--red);color:#fff;font-weight:700;font-size:15px;flex:none}
.chat-head-text{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.chat-head-text b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-head-text span{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.chat-online{width:7px;height:7px;border-radius:50%;background:#22b573;display:inline-block}
.chat-close{margin-left:auto;border:0;background:none;font-size:26px;line-height:1;color:var(--muted);cursor:pointer;padding:0 2px}
.chat-close:hover{color:var(--ink)}
.chat-messages{flex:1;overflow-y:auto;padding:16px 14px;background:#f6f6f6;display:flex;flex-direction:column;gap:10px}
.chat-msg{max-width:84%;padding:10px 13px;border-radius:14px;font-size:14px;line-height:1.45;white-space:pre-line;word-wrap:break-word}
.chat-msg.assistant{align-self:flex-start;background:#fff;border:1px solid var(--line);border-bottom-left-radius:4px;color:var(--ink)}
.chat-msg.user{align-self:flex-end;background:var(--red);color:#fff;border-bottom-right-radius:4px}
.chat-msg.is-system{align-self:center;max-width:92%;background:#e8f5ee;border:1px solid #c7e7d5;color:#1d6b45;font-size:12.5px;text-align:center;border-radius:10px}
.chat-msg.is-typing{display:flex;gap:4px;align-items:center;padding:12px 14px}
.chat-msg.is-typing span{width:6px;height:6px;border-radius:50%;background:#b9b9b9;animation:chatBlink 1.2s infinite}
.chat-msg.is-typing span:nth-child(2){animation-delay:.2s}
.chat-msg.is-typing span:nth-child(3){animation-delay:.4s}
@keyframes chatBlink{0%,80%,100%{opacity:.3}40%{opacity:1}}
.chat-quick{display:flex;gap:8px;padding:10px 14px;background:#fff;border-top:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.chat-quick::-webkit-scrollbar{display:none}
.chat-quick button{flex:none;border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;font-size:12.5px;color:var(--ink);cursor:pointer;transition:.15s}
.chat-quick button:hover{border-color:var(--red);color:var(--red)}
.chat-form{display:flex;gap:8px;align-items:center;padding:10px 14px 6px;background:#fff}
.chat-input{flex:1;min-width:0;border:1px solid var(--line);border-radius:999px;padding:10px 14px;font:inherit;font-size:14px;outline:none}
.chat-input:focus{border-color:var(--red);box-shadow:0 0 0 3px rgba(226,33,28,.12)}
.chat-send{display:grid;place-items:center;width:40px;height:40px;flex:none;border:0;border-radius:50%;background:var(--red);color:#fff;cursor:pointer;transition:background-color .15s}
.chat-send:hover{background:var(--red-dark)}
.chat-send .icon{width:18px;height:18px}
.chat-note{margin:0;padding:0 14px 10px;font-size:11px;color:var(--muted);background:#fff;text-align:center}
.float-contacts{z-index:50}

@media (max-width:640px){
  .chat-launcher{right:12px;bottom:12px;height:52px;padding:0 16px;font-size:14px}
  .chat-launcher-text{display:none}
  .chat-launcher{padding:0 14px}
  .chat-panel{right:0;left:0;bottom:0;width:100%;height:min(88vh,620px);border-radius:16px 16px 0 0;border-bottom:0}
  .float-contacts{bottom:80px;right:8px;bottom:78px}
  .chat-head{padding:12px 14px}
  .chat-messages{padding:12px 10px}
  .chat-msg{max-width:88%}
  .chat-quick{padding:8px 10px}
  .chat-form{padding:8px 10px 4px}
  .chat-note{padding-bottom:8px}
}
@media (prefers-reduced-motion:reduce){
  .chat-launcher,.chat-panel{transition:none}
  .chat-msg.is-typing span{animation:none;opacity:.7}
}

/* публичный режим (ссылка через туннель): служебные ссылки скрыты */
.is-public .footer-tools{display:none}
