/*
Theme Name: ПРОСТРАНСТВО
Theme URI: https://пространствомебели.рф
Description: Самостоятельная тема. Дизайн отделён от Elementor, контент остаётся в WordPress.
Author: Пространство
Version: 0.2.0
Text Domain: prostranstvo
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 8.2
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600&family=Montserrat:wght@300;400;500&display=swap');

:root{
  --paper:#f7f5f1;
  --white:#fbfaf7;
  --ink:#20201e;
  --muted:#77736d;
  --line:#dedbd4;
  --dark:#20201e;
  --max:1200px;
  --section-padding:40px;
  --content-padding:40px;
  --grid-gap:24px;
}
@media (max-width:1024px){
  :root{
    --section-padding:32px;
    --content-padding:32px;
  }
}
@media (max-width:767px){
  :root{
    --section-padding:20px;
    --content-padding:20px;
  }
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:"Manrope",Arial,sans-serif;
  font-size:16px;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
img{display:block;max-width:100%}
.container{width:calc(100% - (var(--content-padding) * 2));max-width:var(--max);margin-left:auto;margin-right:auto}
.ph{
  display:block;
  width:100%;
  height:100%;
  background:
    linear-gradient(160deg, rgba(255,255,255,.28), transparent 42%),
    #ddd7ce;
}

.header{
  background:#fff;
  border-top:1px solid #242424;
  border-bottom:1px solid #ebe7df;
  position:sticky;
  top:0;
  z-index:20;
}
.header-inner{
  display:flex;
  align-items:center;
  gap:24px;
  width:calc(100% - (var(--content-padding) * 2));
  max-width:var(--max);
  margin-left:auto;
  margin-right:auto;
  padding:14px 0;
}
.logo{display:block;width:311px;height:52px;overflow:hidden;flex:none;line-height:0}
.logo img{height:111px;width:333px;max-width:none;margin:-29px 0 0 -11px;display:block}
.header-side{
  margin-left:auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
  min-width:0;
}
.utility{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
  max-width:100%;
}
.phone,.hours{font-size:14px;font-weight:400;color:#2b2c2b;line-height:1;white-space:nowrap}
.vline{color:#b7b3ab;line-height:1;flex:none}
.chip{
  height:30px;
  padding:0 12px;
  border:1px solid #d8d5cf;
  background:#fff;
  color:#2b2c2b;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  font-size:13px;
  font-weight:400;
  letter-spacing:.06em;
  line-height:1;
  white-space:nowrap;
  transition:background .18s ease,border-color .18s ease;
}
.chip:hover{background:#faf9f7;border-color:#bcb9b2}
button.chip,button.btn{cursor:pointer}
button.btn{font:inherit}
button.chip{appearance:none}
.chip-icon{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.45}
.nav{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:22px 28px;font-size:16px;color:#2b2c2b}
.nav a{transition:.2s;white-space:nowrap}
.nav a:hover{opacity:.55}
.nav-drop{position:relative}
.nav-drop::after{content:"";position:absolute;left:0;right:0;top:100%;height:12px}
.nav-drop>a::after{content:"";display:inline-block;margin-left:6px;border:4px solid transparent;border-top-color:currentColor;transform:translateY(1px)}
.nav-sub{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:220px;
  padding:8px 0;
  background:#fff;
  border:1px solid #ebe7df;
  flex-direction:column;
  align-items:stretch;
  z-index:30;
}
.nav-drop:hover .nav-sub,.nav-drop:focus-within .nav-sub{display:flex;flex-direction:column;align-items:stretch}
.nav-sub a{padding:9px 16px}
.menu{display:none;border:0;background:none;font-size:24px;line-height:1;cursor:pointer;color:var(--ink);flex:none}

.hero{
  min-height:610px;
  background:#393733;
  color:#fff;
  position:relative;
  overflow:hidden;
}
.hero-bg{
  position:absolute;inset:0;
  background:
    linear-gradient(90deg,rgba(25,24,22,.78) 0%,rgba(25,24,22,.42) 42%,rgba(25,24,22,.05) 75%),
    #4a463f center/cover no-repeat;
  filter:saturate(.78);
}
.hero-bg.has-photo{
  background-image:linear-gradient(90deg,rgba(22,20,18,.72) 0%,rgba(22,20,18,.58) 48%,rgba(22,20,18,.46) 100%), var(--hero);
  filter:none;
}
.hero-inner{
  position:relative;
  min-height:610px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:40px;
}
.hero-copy{width:min(62%, 720px);padding:var(--section-padding) 0}
.eyebrow{font-size:12px;letter-spacing:.15em;text-transform:uppercase;margin-bottom:26px;opacity:.9}
.hero h1{
  margin:0 0 25px;
  font-family:"Montserrat",Arial,sans-serif;
  font-weight:300;
  font-size:clamp(48px,5.3vw,82px);
  line-height:.98;
  letter-spacing:-.035em;
}
.hero p{font-size:20px;letter-spacing:.04em;line-height:1.4;width:max-content;max-width:none;white-space:nowrap;color:#f0eee9;margin:0 0 34px}
.hero-line{white-space:nowrap}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:22px;
  min-height:50px;padding:0 25px;border:1px solid var(--ink);
  background:var(--ink);color:#fff;
  transition:.25s;
}
.btn:hover{transform:translateY(-2px)}
.btn-light{background:#faf8f3;color:#1e1d1a;border-color:#faf8f3}
.hero-meta{
  position:absolute;left:0;bottom:34px;display:flex;align-items:center;gap:17px;
  font-size:11px;letter-spacing:.08em;
}
.hero-meta .dash{width:44px;height:1px;background:#fff}
.hero-card{
  width:min(280px, 32%);
  margin-right:6%;
  padding:28px 26px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.28);
  backdrop-filter:blur(8px);
}
.hero-card strong{
  display:block;
  font-family:"Montserrat",Arial,sans-serif;
  font-weight:400;
  font-size:18px;
  letter-spacing:.04em;
  line-height:1.35;
  margin-bottom:14px;
}
.hero-card p{line-height:1.6;color:#f3f0ea;margin:0;max-width:none}

.category-strip{background:var(--white);border-bottom:1px solid var(--line);padding:var(--section-padding) 0}
.categories{display:grid;grid-template-columns:repeat(5,1fr);gap:var(--grid-gap)}
.cat{min-height:166px;background:#eeeae3;position:relative;overflow:hidden;border:1px solid #e4e0d8}
.cat img,.cat .ph{width:100%;height:112px;object-fit:cover;filter:saturate(.72)}
.cat-body{padding:12px 13px 28px}
.cat-title{font-weight:500}
.cat-sub{color:var(--muted);margin-top:4px}
.cat-arrow{position:absolute;right:13px;bottom:14px;color:#8c877e}

.intro{padding:var(--section-padding) 0;background:var(--paper)}
.intro-grid{display:grid;grid-template-columns:1fr 1.28fr 120px;gap:var(--grid-gap);align-items:center}
.intro h2,.section-title{
  font-family:"Montserrat",Arial,sans-serif;
  font-weight:300;
  letter-spacing:-.025em;
  line-height:1.03;
}
.intro h2{font-size:48px;margin:0 0 28px}
.intro p{line-height:1.7;color:#68645e;max-width:460px}
.intro .btn{margin-top:28px}
.intro-image{height:310px;overflow:hidden;background:#ddd7ce}
.intro-image img,.intro-image .ph{width:100%;height:100%;object-fit:cover;filter:saturate(.7)}
.keywords{align-self:center}
.keyword{padding:14px 0;border-bottom:1px solid #cbc7c0;font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.keyword:last-child{border-bottom:0}

.benefits{background:#f1eee8;border-top:1px solid #e4e0d9;border-bottom:1px solid #e4e0d9;padding:var(--section-padding) 0}
.benefit-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.benefit{padding:30px;border-right:1px solid #ddd9d1;display:flex;gap:18px;align-items:flex-start}
.benefit:last-child{border-right:0}
.bicon{width:34px;height:34px;border:1px solid #96918a;border-radius:50%;display:grid;place-items:center;flex:none}
.bicon svg{width:16px;height:16px;stroke:#5f5b55;fill:none;stroke-width:1.4}
.benefit strong{font-weight:500;display:block;margin-bottom:5px}
.benefit span{color:#77736d;line-height:1.45}

.section{padding:var(--section-padding) 0}
.section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:var(--grid-gap);gap:20px}
.section-kicker{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#77736d;margin-bottom:12px}
.section-title{font-size:38px;margin:0}
.text-link{border-bottom:1px solid #8e8a83;padding-bottom:5px;white-space:nowrap}

.popular-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:var(--grid-gap)}
.pop-card{background:#eeeae3;border:1px solid #e0dcd4}
.pop-img{height:230px;overflow:hidden;background:#ddd7ce}
.pop-img img,.pop-img .ph{width:100%;height:100%;object-fit:cover;filter:saturate(.65)}
.pop-body{padding:14px;display:flex;justify-content:space-between;align-items:center}
.pop-body strong{font-weight:500}
.pop-body span{color:#77736d}

.feature{padding:var(--section-padding) 0}
.feature-box{min-height:390px;display:grid;grid-template-columns:43% 57%;background:#e8e3db;overflow:hidden}
.feature-copy{padding:var(--section-padding);display:flex;flex-direction:column;justify-content:center}
.feature-copy h2{font-family:"Montserrat",Arial,sans-serif;font-weight:300;font-size:52px;line-height:1;margin:0 0 20px;letter-spacing:-.03em}
.feature-copy p{line-height:1.7;color:#68645e;max-width:460px}
.feature-copy .btn{margin-top:28px;align-self:flex-start}
.feature-image{min-height:390px;overflow:hidden;background:#d4cec4}
.feature-image img,.feature-image .ph{width:100%;height:100%;object-fit:cover;filter:saturate(.7)}

.products{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--grid-gap)}
.product{position:relative}
.product-img{height:300px;background:#eeeae3;overflow:hidden}
.product-img img,.product-img .ph{width:100%;height:100%;object-fit:cover;filter:saturate(.55)}
.product-meta{padding:13px 3px 0;display:flex;justify-content:space-between;gap:15px}
.product-name,.product-price{font-size:inherit}
.product-price{font-weight:500;white-space:nowrap}
.heart{
  position:absolute;top:12px;right:12px;width:30px;height:30px;border-radius:50%;
  background:rgba(250,248,243,.9);display:grid;place-items:center;border:0;padding:0;cursor:pointer;
}
.heart svg{width:15px;height:15px;stroke:#2a2926;fill:none;stroke-width:1.4}

.editorial{background:#22211f;color:#f6f3ed;min-height:350px;display:grid;grid-template-columns:40% 60%}
.editorial-copy{padding:var(--section-padding);display:flex;flex-direction:column;justify-content:center}
.editorial-copy .section-kicker{color:#b7b2aa}
.editorial-copy h2{font-family:"Montserrat",Arial,sans-serif;font-weight:300;font-size:46px;line-height:1;margin:0 0 18px}
.editorial-copy p{line-height:1.65;color:#c9c5bd;max-width:460px}
.editorial-copy .btn{margin-top:26px;align-self:flex-start}
.editorial-image{min-height:350px;position:relative;background:#3a3834 center/cover no-repeat;filter:saturate(.6)}
.editorial-image.has-photo{background-image:var(--editorial)}
.editorial-nav{
  position:absolute;right:36px;bottom:32px;display:flex;flex-direction:column;gap:10px;
  font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#f4f1eb;
}

.brands{padding:var(--section-padding) 0;border-bottom:1px solid var(--line);background:var(--white)}
.brands .section-kicker{margin-bottom:22px}
.brand-row{display:grid;grid-template-columns:repeat(5,1fr);gap:var(--grid-gap);align-items:center}
.brand{font-family:"Montserrat",Arial,sans-serif;font-size:21px;font-weight:400;text-align:center;letter-spacing:.04em;color:#55514b}

.store{background:#282724;color:#fff;display:grid;grid-template-columns:40% 60%;min-height:400px}
.store-copy{padding:var(--section-padding);display:flex;flex-direction:column;justify-content:center}
.store-copy .section-kicker{color:#b7b2aa}
.store-copy h2{font-family:"Montserrat",Arial,sans-serif;font-weight:300;font-size:50px;line-height:1;margin:0 0 20px}
.store-copy p{color:#c7c3bc;line-height:1.65;max-width:460px}
.store-copy .btn{margin-top:28px;align-self:flex-start}
.store-image{min-height:400px;background:#3c3a36 center/cover no-repeat;filter:saturate(.55) brightness(.78)}
.store-image.has-photo{background-image:var(--store)}

.calc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--grid-gap)}
.calc-card{background:#eeeae3;padding:28px}
.calc-card p{line-height:1.65;color:#69655f;margin:0}
.calc-foot{margin-top:28px;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.calc-foot strong{font-weight:500}
.calc-foot div div{color:#77736d;margin-top:7px}

.footer{background:#f4f1eb;padding:var(--section-padding) 0}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:var(--grid-gap)}
.footer-logo{display:block;width:230px;height:38px;overflow:hidden;margin:0 0 18px;line-height:0}
.footer-logo img{width:246px;height:82px;max-width:none;margin:-21px 0 0 -8px;display:block}
.footer p{line-height:1.7;color:#77736d;max-width:380px}
.footer h4{font-size:11px;letter-spacing:.12em;text-transform:uppercase;margin:0 0 16px;font-weight:500}
.footer a{display:block;color:#6e6a64;margin:9px 0}
.copyright{border-top:1px solid #d9d5ce;margin-top:var(--grid-gap);padding-top:20px;color:#8b867e;font-size:10px;display:flex;justify-content:space-between;gap:16px}

@media (max-width:1100px){
  body{font-size:15px}
  .phone,.hours{font-size:13px}
  .chip{font-size:12px;height:28px;padding:0 9px}
  .nav{gap:18px;font-size:15px}
  .hero,.hero-inner{min-height:540px}
  .hero-card{display:none}
  .intro-grid{grid-template-columns:1fr 1.2fr}
  .keywords{display:none}
  .popular-grid{grid-template-columns:repeat(3,1fr)}
  .products{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:760px){
  .header-inner{position:relative;flex-wrap:wrap;align-items:center;gap:12px 10px;width:calc(100% - 24px)}
  .logo{width:214px;height:38px}
  .logo img{height:75px;width:226px;margin:-20px 0 0 -8px}
  .menu{display:block;margin-left:auto;padding:0;width:32px}
  .header-side{order:3;width:100%;margin-left:0;align-items:center}
  .utility{flex-wrap:wrap;justify-content:center;width:100%;row-gap:8px}
  .vline{display:none}
  .chip{height:28px;padding:0 8px;font-size:12px}
  .nav{
    display:none;
    position:absolute;
    top:100%;left:0;right:0;
    background:#fff;
    border-bottom:1px solid #ebe8e1;
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 0 14px;
    font-size:16px;
  }
  .nav.is-open{display:flex}
  .nav a{padding:12px 15px}
  .nav-sub,.nav.is-open .nav-sub{position:static;display:flex;min-width:0;padding:0 0 4px 14px;border:0}
  .nav-sub a{padding:8px 15px}
  .hero,.hero-inner{min-height:620px}
  body{font-size:16px}
  .hero-copy{width:100%;padding:var(--section-padding) 0;align-self:flex-end}
  .hero p{white-space:normal;width:auto;max-width:100%;font-size:20px}
  .hero h1{font-size:50px}
  .hero-keep{display:block}
  .hero-line{white-space:normal}
  .categories{grid-template-columns:repeat(2,1fr)}
  .cat:last-child{display:none}
  .intro-grid{display:block}
  .intro h2{font-size:40px}
  .intro-image{height:250px;margin-top:28px}
  .benefit-grid{grid-template-columns:1fr 1fr}
  .benefit{padding:22px 15px;border-bottom:1px solid #ddd9d1}
  .section-title{font-size:31px}
  .section-head{align-items:flex-start;flex-direction:column}
  .popular-grid{grid-template-columns:1fr 1fr}
  .pop-img{height:180px}
  .feature-box{display:block}
  .feature-copy h2{font-size:42px}
  .feature-image{height:300px;min-height:300px}
  .products{grid-template-columns:1fr 1fr}
  .product-img{height:230px}
  .editorial{display:block}
  .editorial-image{min-height:260px}
  .brand-row{grid-template-columns:repeat(2,1fr)}
  .brand{font-size:17px}
  .store{display:block}
  .store-copy h2{font-size:42px}
  .store-image{height:270px;min-height:270px}
  .calc-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr;justify-items:center;text-align:center}
  .footer-logo{margin-left:auto;margin-right:auto}
  .footer p{max-width:100%}
  .copyright{display:block;text-align:center}
  .copyright span{display:block;margin-top:8px}
}

.catalog{background:var(--paper);padding:var(--section-padding) 0}
.crumbs{display:flex;gap:8px;align-items:center;color:#8a8680;margin-bottom:18px}
.crumbs a:hover{opacity:.55}
.catalog h1{
  margin:0 0 14px;
  font-family:"Montserrat",Arial,sans-serif;
  font-weight:300;
  font-size:clamp(40px,4.6vw,64px);
  letter-spacing:-.03em;
  line-height:1;
}
.catalog-lead{max-width:640px;color:#68645e;margin:0 0 var(--grid-gap);line-height:1.6}
.catalog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--grid-gap)}
.catalog-card{
  display:flex;
  flex-direction:column;
  background:#eeeae3;
  border:1px solid #e4e0d8;
  color:inherit;
  min-height:100%;
}
a.catalog-card{cursor:pointer}
a.catalog-card:hover .catalog-arrow{transform:translateX(4px)}
.catalog-card.is-inactive{cursor:default}
.catalog-card.is-inactive h2{color:#8a8680}
.catalog-toggle{
  display:flex;
  flex-direction:column;
  width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.catalog-media{display:block;height:280px;overflow:hidden;background:#ddd7ce}
.catalog-media img,.catalog-media .ph{width:100%;height:100%;object-fit:cover}
.catalog-card-body{padding:16px 18px 18px;display:grid;grid-template-columns:1fr auto;gap:6px 16px;align-items:center}
.catalog-card h2{
  margin:0;
  font-family:"Manrope",Arial,sans-serif;
  font-size:1em;
  font-weight:500;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.catalog-card p{grid-column:1 / -1;margin:0;color:#68645e;line-height:1.5}
.catalog-arrow{transition:transform .2s}
.catalog-sub{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 18px;
  padding:0 18px 18px;
}
.catalog-sub[hidden]{display:none}
.catalog-sub a,.catalog-sub span{padding:8px 0;border-top:1px solid #ddd8d0}
.catalog-sub span{color:#8a8680;cursor:default}
.catalog-sub a{cursor:pointer}
.catalog-more{margin-top:28px}
.catalog-copy{max-width:760px;margin-top:var(--grid-gap)}
.catalog-copy article{padding:28px 0;border-top:1px solid #e4e0d8}
.catalog-copy h2{
  margin:0 0 12px;
  font-family:"Manrope",Arial,sans-serif;
  font-size:15px;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.catalog-copy p{margin:0;color:#3c3a36;line-height:1.7}
.catalog-copy p + p,.catalog-copy ul + p{margin-top:14px}
.catalog-copy ul{margin:14px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:8px 24px}
.catalog-copy li{line-height:1.5}
.catalog-source{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:16px;
  font-size:14px;
  letter-spacing:.04em;
  border-bottom:1px solid #c8c3bb;
}
.catalog-source:hover{opacity:.55}
.copyright-legal{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 18px}
.copyright a{display:inline;margin:0;color:#4a4742;font-size:12px;text-decoration:none}
.copyright a:hover{color:#20201e;text-decoration:underline}
.copyright-legal button{
  border:0;background:transparent;padding:0;cursor:pointer;
  color:#4a4742;font:inherit;font-size:12px;line-height:inherit;
}
.copyright-legal button:hover{color:#20201e;text-decoration:underline}
@media (max-width:760px){
  .copyright span.copyright-legal{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:flex-start;
    gap:8px;
  }
  .copyright-legal a,
  .copyright-legal button{display:block}
}

.home-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--grid-gap)}
.home-card{display:flex;flex-direction:column;background:#eeeae3;border:1px solid #e4e0d8;color:inherit;min-height:100%}
.home-card img{width:100%;height:240px;object-fit:cover}
.home-card-body{display:flex;flex-direction:column;gap:6px;padding:16px 18px 18px;flex:1}
.home-card strong{font-family:"Montserrat",Arial,sans-serif;font-weight:400;font-size:20px;letter-spacing:.02em;line-height:1.25}
.home-card-body > span{color:#68645e}
.home-card em{margin-top:auto;padding-top:10px;font-style:normal;font-size:13px;letter-spacing:.06em}
#about{position:relative;overflow:hidden}
.home-about-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
#about::after{content:"";position:absolute;inset:0;background:rgba(20,20,18,.68);z-index:1}
#about .container{position:relative;z-index:2}
#about h2,#about p{color:#fff}
#about p{
  max-width:50%;
  font-family:"Manrope",Arial,sans-serif;
  font-weight:400;
  font-size:16px;
}
#about .btn{background:#fff;color:#20201e;border-color:#fff}
@media (max-width:1100px){
  #about p{font-size:15px}
}
@media (max-width:760px){
  #about p{max-width:none;font-size:16px}
}
.home-about p + p{margin-top:14px}
.home-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:var(--grid-gap)}
.hero-card .btn{margin-top:18px}
.home-why-head.section-head{justify-content:center;text-align:center}
.home-why{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--grid-gap)}
.home-why article{padding:8px 12px 4px;text-align:center}
.home-why img{width:72px;height:72px;margin:0 auto 14px;object-fit:contain}
.home-why strong{display:block;font-weight:500;letter-spacing:.04em;text-transform:uppercase;font-size:14px}
.home-portfolio .portfolio-switch{margin-bottom:var(--grid-gap)}
.home-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--grid-gap)}
.home-step{background:#fff;border:1px solid #e4e0d8;padding:22px}
.home-step b{display:block;margin-bottom:12px;font-family:"Montserrat",Arial,sans-serif;font-weight:300;font-size:32px}
.home-step strong{display:block;margin-bottom:8px;font-weight:500}
.home-step p{margin:0;color:#68645e;line-height:1.6}
#portfolio{background:#fff}
#process{background:#e7e1d7}
#contacts{background:#fbfaf7}
.home-calc{display:grid;grid-template-columns:1.3fr .7fr;gap:var(--grid-gap);align-items:stretch}
.home-calc-grid{grid-template-columns:1fr 1fr}
.home-calc-photo{overflow:hidden;background:#ddd7ce;min-height:280px}
.home-calc-photo img{width:100%;height:100%;object-fit:cover}
.home-articles{background:#fff}
.article-carousel-nav{display:flex;align-items:center;gap:8px}
.article-carousel-nav button{
  width:40px;height:40px;border:1px solid #dedbd4;background:#fff;color:#20201e;cursor:pointer;line-height:1;
}
.article-carousel-nav button:disabled{opacity:.35;cursor:default}
.article-carousel{min-width:0}
.article-carousel-track{
  display:flex;gap:var(--grid-gap);overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  scrollbar-width:none;overscroll-behavior-x:contain;
}
.article-carousel-track::-webkit-scrollbar{display:none}
.article-carousel-track .post-card{
  flex:0 0 calc((100% - (2 * var(--grid-gap))) / 3);
  min-width:0;scroll-snap-align:start;
}
@media (max-width:1100px){
  .home-grid,.home-why,.home-steps{grid-template-columns:1fr 1fr}
  .home-calc{grid-template-columns:1fr}
  .home-calc-photo{height:280px}
}
@media (max-width:760px){
  .home-why-head.section-head{align-items:center}
  .home-grid,.home-why,.home-steps,.home-calc-grid{grid-template-columns:1fr}
  .home-card img{height:200px}
  .article-carousel-track .post-card{flex-basis:100%}
}
@media (max-width:760px){
  .catalog-grid{grid-template-columns:1fr}
  .catalog h1{font-size:40px}
  .catalog-media{height:220px}
  .catalog-copy{margin-top:var(--grid-gap)}
  .catalog-copy ul{grid-template-columns:1fr}
}

.screen-reader-text{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.consult{
  position:fixed;inset:0;z-index:100001;
  display:flex;align-items:center;justify-content:center;
  padding:24px;
  background:rgba(32,32,30,.62);
}
.consult[hidden]{display:none}
.consult-dialog{
  position:relative;
  width:min(560px,100%);
  max-height:calc(100vh - 48px);
  overflow:auto;
  background:#fbfaf7;
  padding:52px 44px 36px;
  box-shadow:0 24px 70px rgba(32,32,30,.22);
}
.consult-close{
  position:absolute;top:14px;right:14px;
  width:36px;height:36px;border:0;background:transparent;
  color:#20201e;font-size:28px;line-height:1;cursor:pointer;
}
.consult-dialog h2{
  margin:0 0 14px;
  font-family:"Montserrat",Arial,sans-serif;
  font-weight:500;
  font-size:clamp(26px,3vw,34px);
  line-height:1.15;
  letter-spacing:.03em;
  text-align:center;
  text-transform:uppercase;
}
.consult-lead{
  margin:0 0 28px;
  text-align:center;
  font-size:13px;
  line-height:1.55;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.consult-form{display:flex;flex-direction:column;gap:14px}
.consult-field input{
  width:100%;height:52px;padding:0 16px;
  border:1px solid #e3dfd7;background:#fff;color:#20201e;
}
.consult-field input:focus{outline:1px solid #20201e;outline-offset:1px}
.consult-submit{
  width:100%;margin-top:4px;
  letter-spacing:.14em;text-transform:uppercase;
}
.consult-submit svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.consult-submit:disabled{opacity:.38;cursor:default;transform:none}
.consult-consent{
  display:flex;align-items:flex-start;gap:10px;
  font-size:13px;line-height:1.45;color:#20201e;
}
.consult-consent input{
  width:18px;height:18px;margin:2px 0 0;flex:none;accent-color:#20201e;
}
.consult-consent a{color:#20201e;border-bottom:1px solid #c8c3bb}
.consult-note{min-height:1.3em;margin:0;text-align:center;font-size:14px}
.consult-note.is-error{color:#8a4038}
.consult-trap{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
@media (max-width:760px){
  .consult{padding:16px}
  .consult-dialog{padding:44px 20px 24px}
}

.ccp{
  position:fixed;left:0;right:0;bottom:18px;z-index:90;
  display:flex;justify-content:center;padding:0 16px;
}
.ccp[hidden]{display:none}
.ccp-card{
  width:min(920px,100%);
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px 28px;align-items:center;
  background:#fff;color:var(--ink);
  border:1px solid var(--line);
  box-shadow:0 16px 50px rgba(32,32,30,.16);
  padding:22px 24px;
}
.ccp-copy{grid-column:1;grid-row:1}
.ccp-choices{grid-column:1;grid-row:2;display:flex;flex-wrap:wrap;gap:8px 22px}
.ccp-actions{grid-column:2;grid-row:1 / span 2;display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:center}
.ccp-copy h2{
  margin:0 0 8px;
  font-family:"Montserrat",Arial,sans-serif;
  font-size:18px;font-weight:500;letter-spacing:.02em;line-height:1.3;
}
.ccp-copy p{margin:0 0 10px;max-width:62ch;font-size:14px;line-height:1.5;color:#4a4742}
.ccp-copy a{font-size:13px;color:var(--ink);border-bottom:1px solid #c8c3bb}
.ccp-choice{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.3;cursor:pointer}
.ccp-choice input{width:18px;height:18px;margin:0;accent-color:var(--ink);cursor:pointer}
.ccp-choice input:disabled{cursor:default}
.ccp-choice:has(input:disabled){opacity:.4;cursor:default}
.ccp-actions .btn{min-height:44px;padding:0 18px;font-size:13px;letter-spacing:.04em}
.ccp-actions .btn.ccp-decline{background:#fff;color:var(--ink)}
.ccp-save{
  border:0;background:transparent;color:var(--ink);
  font:inherit;font-size:13px;line-height:1.3;
  text-decoration:underline;text-underline-offset:3px;
  cursor:pointer;padding:8px 4px;
}
@media (max-width:760px){
  .ccp{bottom:0;padding:0 12px 12px}
  .ccp-card{grid-template-columns:1fr;width:100%;padding:18px 16px 16px}
  .ccp-copy,.ccp-choices,.ccp-actions{grid-column:1;grid-row:auto}
  .ccp-actions{flex-direction:column;align-items:stretch;width:100%}
  .ccp-actions .btn{flex:none;width:100%}
  .ccp-save{align-self:center;text-align:center}
}
