:root{--teal:#222428;--teal-2:#7a5300;--mint:#ffc21a;--paper:#efede8;--sand:#e2dfd7;--ink:#1b1c1f;--muted:#52535a;--coral:#a8261b;--yellow:#ffc21a;--line:#d8d4cb;
 --disp:'Oswald','Arial Narrow',sans-serif}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:76px}
body{background:var(--paper);color:var(--ink);font:400 17px/1.6 'IBM Plex Sans',system-ui,sans-serif;font-variant-numeric:lining-nums;overflow-x:hidden}
img{max-width:100%;display:block;height:auto}
a{color:var(--teal-2)}
:focus-visible{outline:3px solid var(--coral);outline-offset:3px}
.wrap{width:min(1140px,100% - 40px);margin:0 auto}
.wrap.narrow{width:min(820px,100% - 40px)}
h1,h2,h3{font-family:var(--disp);line-height:1.15;letter-spacing:.01em;text-wrap:balance}
h1{font-size:clamp(34px,4.6vw,56px);font-weight:700;text-transform:uppercase}
h2{font-size:clamp(28px,3.5vw,42px);font-weight:600;margin-bottom:14px;text-transform:uppercase}
h3{font-size:21px;font-weight:600}
.sub{color:var(--muted);max-width:640px;margin-bottom:28px}
.small{font-size:13.5px;color:var(--muted)}
.eye{font-weight:700;font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--teal-2);margin-bottom:16px}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:12px 22px;border-radius:7px;border:2px solid var(--yellow);background:var(--yellow);color:var(--ink);font-weight:600;font-size:16px;line-height:1.25;text-decoration:none;text-align:center;cursor:pointer;transition:transform .15s,filter .15s}
.btn:hover{filter:brightness(1.08);transform:translateY(-1px)}
.btn.ghost{background:transparent;border-color:currentColor;color:var(--teal)}
.btn.sm{min-height:40px;padding:8px 16px;font-size:14px}
.acts{display:flex;gap:12px;flex-wrap:wrap;margin:26px 0 14px}

.head{position:sticky;top:0;z-index:20;background:var(--teal);color:#fff;border-bottom:4px solid var(--yellow)}
.head-in{display:flex;align-items:center;gap:22px;min-height:64px}
.logo{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-family:var(--disp);font-weight:800;font-size:18px;white-space:nowrap}
.logo img{border:1px solid rgba(255,255,255,.35);border-radius:8px}
.head nav{display:flex;gap:20px;margin-left:auto;font-size:14.5px}
.head nav a{color:#e6e7ea;text-decoration:none;white-space:nowrap}
.head nav a:hover{color:var(--mint)}
.head nav .back{color:var(--mint)}

.hero{padding:62px 0 76px;color:#fff;background:linear-gradient(90deg,rgba(24,25,28,.96),rgba(24,25,28,.72)),url(img/site.jpg) center/cover}
.hero .lead{color:#e6e7ea}.hero .small{color:#c8c9ce}.hero .eye{color:var(--yellow)}.hero .btn.ghost{color:#fff}
.hero .scrap{color:var(--ink)}.hero .s4{color:#fff;border:2px solid var(--yellow)}
.hero-in{display:grid;grid-template-columns:1fr 1.05fr;gap:48px;align-items:center}
.hero h1{margin-bottom:20px}
.lead{font-size:19px;color:var(--muted)}
.mess{position:relative;padding:44px 0 40px;min-width:0}
.win,.shot{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 30px 60px -24px rgba(20,21,24,.5)}
.dots{display:flex;gap:6px;padding:10px 12px;background:#34373d}
.dots i{width:9px;height:9px;border-radius:50%;background:var(--mint);opacity:.7}
.scrap{position:absolute;padding:12px 15px;font-size:13.5px;line-height:1.4;max-width:230px;box-shadow:0 14px 26px -10px rgba(10,11,14,.5);animation:drop .8s both}
.s1{top:0;left:-8px;background:#fff;border:1px solid #cfd8cf;border-top:7px solid #2f7a4f;transform:rotate(-6deg);animation-delay:.9s}
.s2{top:10px;right:-6px;background:var(--yellow);transform:rotate(5deg);animation-delay:1.1s}
.s3{bottom:6px;left:6px;background:#fff;border-left:6px solid var(--yellow);transform:rotate(3deg);animation-delay:1.3s}
.s3 span{display:block;font-weight:700}
.s4{bottom:-8px;right:10px;background:var(--teal);color:#fff;border-radius:14px 14px 3px 14px;transform:rotate(-3deg);animation-delay:1.5s}
@keyframes drop{from{opacity:0;translate:0 -26px}}

.sec{padding:78px 0}
.sec.sand{background:var(--sand)}
.dark{color:#fff;background:var(--teal)}
.dark .sub,.dark .eye{color:var(--mint)}
.dark .btn.ghost{color:#fff}
.photo{background:linear-gradient(rgba(24,25,28,.88),rgba(24,25,28,.93)),url(img/rafters.jpg) center/cover}
.garage{background:linear-gradient(90deg,rgba(24,25,28,.96),rgba(24,25,28,.72)),url(img/site.jpg) center/cover}
.two{display:grid;grid-template-columns:1.15fr 1fr;gap:44px;align-items:start}
.two>*{min-width:0}

.checks{list-style:none;display:grid;gap:9px}
.checks label{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px 16px;cursor:pointer;line-height:1.45}
.checks label:has(:checked){border-color:#c99400;background:#fff4cf}
.checks input{width:21px;height:21px;margin-top:1px;accent-color:var(--teal);flex:none}
.verdict{position:sticky;top:88px;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.verdict img{width:100%;height:210px;object-fit:cover}
.v-body{padding:24px;display:grid;gap:12px;justify-items:start}
.v-num{color:var(--muted)}
.v-num b{font-family:var(--disp);font-size:52px;line-height:1;color:var(--coral)}

.pairs{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:28px}
.pairs article{background:#fff;color:var(--ink);border-radius:14px;padding:22px;display:grid;gap:12px;align-content:start}
.pairs p{font-size:15.5px;line-height:1.5;border-radius:8px;padding:12px 14px}
.pairs span{display:block;font-size:11.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;margin-bottom:3px}
.was{background:#f6e7e4;color:#6e2018}
.now{background:#fff1bf}

.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.tabs button{font:600 14.5px 'IBM Plex Sans',sans-serif;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:7px;padding:10px 14px;cursor:pointer}
.tabs button[aria-selected=true]{background:var(--teal);border-color:var(--teal);color:#fff}
.shot img{width:100%;aspect-ratio:1920/1230;transition:opacity .2s}
.shot figcaption{padding:16px 20px;border-top:1px solid var(--line);font-size:15.5px;min-height:76px}
.phones{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:28px;align-items:center;margin-top:52px}
.phones h3{font-size:26px;margin-bottom:12px}
.phones p{color:var(--muted);margin-bottom:20px}
.phones img{border:7px solid var(--ink);border-radius:26px;width:100%;max-width:260px;justify-self:center}

.plain{list-style:none;display:grid;gap:12px}
.plain li{border-left:4px solid #c99400;padding-left:14px}
.calc{background:#fff;border:1px solid var(--line);border-radius:14px;padding:26px;display:grid;gap:20px}
.calc label{display:grid;gap:10px;font-weight:500}
.calc label b{color:var(--teal-2)}
input[type=range]{width:100%;accent-color:#c99400;height:28px}
.res{background:var(--teal);color:#fff;border-radius:12px;padding:20px}
.res b{display:block;font-family:var(--disp);font-size:clamp(34px,4.6vw,50px);line-height:1.15;color:var(--mint)}

.scroll{overflow-x:auto;border-radius:14px;border:1px solid var(--line);background:#fff;margin-top:24px}
.cmp{width:100%;min-width:700px;border-collapse:collapse;font-size:15px}
.cmp th,.cmp td{padding:15px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.cmp thead th{font-family:var(--disp);font-size:16px}
.cmp thead th:last-child{background:var(--teal);color:#fff}
.cmp td:last-child{background:#fff1bf;font-weight:600}
.cmp tbody tr:last-child>*{border-bottom:0}
.note{margin-top:22px;color:var(--muted);max-width:760px}

.who{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.who article{background:#fff;border-radius:14px;overflow:hidden;border:1px solid var(--line)}
.who img{width:100%;height:190px;object-fit:cover}
.who h3{padding:16px 18px 4px;font-size:18px}
.who p{padding:0 18px 20px;font-size:15px;color:var(--muted)}

.case{display:grid;grid-template-columns:1.2fr 1fr;gap:48px;align-items:center}
.case>div p:not(.eye){margin-bottom:14px;color:#e6e7ea}
.case-list{list-style:none;display:grid;gap:12px}
.case-list li{background:#fff;color:var(--muted);border-radius:12px;padding:16px 18px;font-size:15px}
.case-list b{display:block;color:var(--ink);font-size:17px}

.prices{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.price{background:#fff;border:1px solid var(--line);border-radius:14px;padding:24px;display:flex;flex-direction:column;gap:10px}
.price:first-child{border:3px solid var(--yellow)}
.step{font-weight:700;font-size:12.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--teal-2)}
.lead-s{font-weight:600;line-height:1.45;padding-bottom:6px}
.price ul{list-style:none;display:grid;gap:8px;font-size:15px}
.price li{padding-left:20px;position:relative}
.price li::before{content:"";position:absolute;left:0;top:.5em;width:10px;height:6px;border:solid #c99400;border-width:0 0 3px 3px;rotate:-45deg}
.term{margin-top:auto;padding-top:14px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}

.steps{list-style:none;counter-reset:s;display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-top:26px}
.steps li{counter-increment:s;background:#fff;border-radius:12px;padding:18px;font-size:14.5px;color:var(--muted)}
.steps li::before{content:counter(s);display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:var(--teal);color:var(--mint);font-family:var(--disp);font-weight:800;margin-bottom:12px}
.steps b{display:block;color:var(--ink);font-size:16.5px;margin-bottom:4px}

details{background:#fff;border:1px solid var(--line);border-radius:10px;margin-top:10px}
summary{cursor:pointer;padding:18px 20px;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:16px}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-size:24px;line-height:1;color:var(--teal-2)}
details[open] summary::after{content:"\2212"}
details p{padding:0 20px 20px;color:var(--muted)}

.final{padding:86px 0;text-align:center}
.final p{color:#e6e7ea}
.final .acts{justify-content:center;margin-bottom:0}
.foot{border-top:1px solid rgba(255,255,255,.18);background:var(--teal);color:#e6e7ea;padding:24px 0;font-size:14px}
.foot .wrap{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
.foot a{color:var(--mint)}
/* внутри вкладки основного сайта ссылки «назад» не нужны */
.inframe .back{display:none!important}

/* прелоадер: стена из кирпичей */
#pre{position:fixed;inset:0;z-index:100;background:var(--teal);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;transition:opacity .4s;animation:preout .4s 3s forwards}
#pre.hide{opacity:0;pointer-events:none}
.wall{display:grid;grid-template-columns:repeat(6,22px);gap:4px}
.wall i{grid-column:span 2;height:18px;background:var(--yellow);border-radius:2px;animation:brick 1.5s ease-out infinite both}
.wall i:nth-child(4){animation-delay:.28s}.wall i:nth-child(5){animation-delay:.36s}.wall i:nth-child(6){animation-delay:.44s}
.wall i:nth-child(1){animation-delay:.56s}.wall i:nth-child(2){animation-delay:.64s}.wall i:nth-child(3){animation-delay:.72s}
.wall i:nth-child(8){animation-delay:.08s}.wall i:nth-child(9){animation-delay:.16s}
@keyframes brick{0%{opacity:0;transform:translateY(-26px)}25%,85%{opacity:1;transform:none}100%{opacity:0}}
@keyframes preout{to{opacity:0;visibility:hidden}}

@media (max-width:1020px){
 .head nav{display:none}.head .btn{margin-left:auto}
 .hero-in,.two,.case{grid-template-columns:minmax(0,1fr)}
 .verdict{position:static}
 .who{grid-template-columns:repeat(2,1fr)}
 .steps{grid-template-columns:repeat(2,1fr)}
 .prices{grid-template-columns:minmax(0,1fr)}
 .phones{grid-template-columns:1fr 1fr}.phones>div{grid-column:1/-1}
}
@media (max-width:620px){
 body{font-size:16px}
 .sec{padding:54px 0}.hero{padding:36px 0 54px}.final{padding:60px 0}
 .logo{font-size:15px;gap:8px}.logo img{width:28px;height:28px}
 .pairs,.who,.steps{grid-template-columns:minmax(0,1fr)}
 .acts .btn{flex:1 1 100%}
 .scrap{font-size:11.5px;padding:9px 11px;max-width:160px}
 .s1{left:0}.s2{right:0}
 .tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px}.tabs button{white-space:nowrap}
 .phones{gap:14px}.phones img{border-width:4px;border-radius:18px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.scrap,.wall i{animation:none}.btn{transition:none}}
