/* remont-kvartir30.ru — «Рулетка и план»: графит, тёплый белый, лотос-коралл, волжская бирюза, жёлтая лента рулетки */
:root{
  --bg:#f6f4ef; --surface:#ffffff; --surface-2:#efece5; --ink:#15171c; --muted:#5d6370; --line:#e1ddd3;
  --accent:#e0566f; --accent-ink:#ffffff; --accent-soft:#fbe4e8; --teal:#1f6f78; --teal-soft:#dcefef;
  --tape:#f2c230; --tape-ink:#3a2c00; --ok:#24804f; --warn:#b4600f; --warn-soft:#fdf0e1;
  --radius:18px; --radius-s:12px; --shadow:0 1px 2px rgba(21,23,28,.05),0 8px 30px rgba(21,23,28,.06);
  --shadow-l:0 20px 60px rgba(21,23,28,.12); --max:1180px;
  --font:"Inter","Segoe UI Variable Text","Segoe UI",Roboto,"Helvetica Neue",system-ui,sans-serif;
  --display:"Manrope","Segoe UI Variable Display","Segoe UI",Roboto,system-ui,sans-serif;
  color-scheme:light;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#111317; --surface:#181b21; --surface-2:#1f232a; --ink:#eceae4; --muted:#a2a7b2; --line:#2b3039;
  --accent:#ff7189; --accent-ink:#1a0a0e; --accent-soft:#3a1c24; --teal:#5fc0c8; --teal-soft:#16302f;
  --tape:#f2c230; --warn-soft:#2e2414; --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 30px rgba(0,0,0,.25); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#111317; --surface:#181b21; --surface-2:#1f232a; --ink:#eceae4; --muted:#a2a7b2; --line:#2b3039;
  --accent:#ff7189; --accent-ink:#1a0a0e; --accent-soft:#3a1c24; --teal:#5fc0c8; --teal-soft:#16302f;
  --warn-soft:#2e2414; --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 30px rgba(0,0,0,.25); color-scheme:dark}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:17px/1.65 var(--font);text-rendering:optimizeLegibility}
img,svg{max-width:100%;display:block}
a{color:inherit}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--tape);outline-offset:2px;border-radius:6px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
h1,h2,h3,h4{font-family:var(--display);line-height:1.12;letter-spacing:-.02em;margin:0 0 .5em;font-weight:800}
h1{font-size:clamp(34px,5.4vw,62px)}
h2{font-size:clamp(26px,3.2vw,38px)}
h3{font-size:clamp(19px,2vw,23px);letter-spacing:-.01em}
p{margin:0 0 1em}
.muted{color:var(--muted)}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:var(--bg);padding:8px 14px;border-radius:8px;z-index:100}
.skip:focus{left:8px}

/* progress + header */
.progress{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--accent),var(--tape));z-index:60}
.top{position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}
.top-in{display:flex;align-items:center;gap:22px;height:68px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font:800 19px/1 var(--display);letter-spacing:-.02em}
.brand-mark{width:34px;height:34px;border-radius:10px;background:var(--ink);color:var(--bg);display:grid;place-items:center;font-size:15px;position:relative;overflow:hidden}
.brand-mark::after{content:"";position:absolute;left:0;right:0;bottom:0;height:6px;background:repeating-linear-gradient(90deg,var(--tape) 0 3px,transparent 3px 6px)}
.brand b{color:var(--accent)}
.menu{display:flex;gap:4px;margin-left:auto}
.menu a{text-decoration:none;padding:8px 12px;border-radius:10px;color:var(--muted);font-weight:600;font-size:15px}
.menu a:hover,.menu a[aria-current]{color:var(--ink);background:var(--surface-2)}
.top-cta{text-decoration:none;font-weight:700;font-size:14px;padding:9px 14px;border-radius:999px;background:var(--ink);color:var(--bg);white-space:nowrap}
.theme-btn{border:1px solid var(--line);background:var(--surface);color:var(--ink);width:38px;height:38px;border-radius:12px;cursor:pointer;display:grid;place-items:center}
.theme-btn svg{width:18px;height:18px}
.burger{display:none}
@media (max-width:940px){
  .menu{position:fixed;inset:68px 0 auto 0;flex-direction:column;background:var(--bg);padding:12px 20px 20px;border-bottom:1px solid var(--line);transform:translateY(-120%);transition:transform .25s ease;margin:0;box-shadow:var(--shadow-l)}
  .menu.open{transform:none}
  .menu a{padding:12px 10px;font-size:17px}
  .burger{display:grid;margin-left:auto;border:1px solid var(--line);background:var(--surface);color:var(--ink);width:38px;height:38px;border-radius:12px;place-items:center;cursor:pointer}
  .top-cta{display:none}
}

/* tape divider — signature */
.tape{height:14px;background:
  repeating-linear-gradient(90deg,var(--tape-ink) 0 1px,transparent 1px 10px) bottom/100% 6px no-repeat,
  repeating-linear-gradient(90deg,var(--tape-ink) 0 1px,transparent 1px 50px) bottom/100% 10px no-repeat,
  var(--tape);opacity:.9}

/* hero */
.hero{padding:64px 0 56px;position:relative;overflow:hidden}
.hero::before{content:"";position:absolute;inset:0;background-image:linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px);background-size:32px 32px;mask-image:radial-gradient(ellipse at 70% 40%,#000 0,transparent 70%);-webkit-mask-image:radial-gradient(ellipse at 70% 40%,#000 0,transparent 70%);opacity:.55;pointer-events:none}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center;position:relative}
.kicker{display:inline-flex;align-items:center;gap:8px;font:700 13px/1 var(--font);letter-spacing:.06em;text-transform:uppercase;color:var(--teal);background:var(--teal-soft);padding:8px 12px;border-radius:999px;margin-bottom:18px}
.lead{font-size:clamp(18px,1.6vw,21px);color:var(--muted);max-width:640px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.btn{display:inline-flex;align-items:center;gap:8px;text-decoration:none;font-weight:700;padding:14px 20px;border-radius:14px;border:1px solid transparent;cursor:pointer;font-size:16px;transition:transform .15s ease,box-shadow .15s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--accent);color:var(--accent-ink);box-shadow:0 8px 24px color-mix(in srgb,var(--accent) 35%,transparent)}
.btn-ghost{background:var(--surface);border-color:var(--line);color:var(--ink)}
.hero-stats{display:flex;flex-wrap:wrap;gap:22px;margin-top:30px;padding-top:22px;border-top:1px dashed var(--line)}
.hero-stats div{min-width:120px}
.hero-stats b{display:block;font:800 26px/1.1 var(--display)}
.hero-stats span{font-size:14px;color:var(--muted)}
.plan{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:18px;box-shadow:var(--shadow-l);position:relative}
.plan svg{width:100%;height:auto}
.plan-tag{position:absolute;top:-14px;right:22px;background:var(--tape);color:var(--tape-ink);font:800 13px/1 var(--font);padding:9px 12px;border-radius:10px;transform:rotate(2deg);box-shadow:var(--shadow)}
.plan .room{fill:var(--surface-2);stroke:var(--ink);stroke-width:3}
.plan .wall-new{stroke:var(--accent);stroke-width:4;stroke-dasharray:8 6}
.plan .dim{stroke:var(--teal);stroke-width:1.5}
.plan .lbl{fill:var(--ink);font:700 13px var(--font)}
.plan .lbl-s{fill:var(--muted);font:600 11px var(--font)}
.plan .dim-t{fill:var(--teal);font:700 11px var(--font)}

/* sections */
.section{padding:64px 0}
.section.alt{background:var(--surface-2)}
.sec-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:26px;flex-wrap:wrap}
.sec-head p{color:var(--muted);max-width:460px;margin:0}
.eyebrow{font:800 12px/1 var(--font);letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:10px;display:block}
.more{font-weight:700;text-decoration:none;color:var(--teal)}

/* cards */
.grid{display:grid;gap:16px}
.g2{grid-template-columns:repeat(2,1fr)} .g3{grid-template-columns:repeat(3,1fr)} .g4{grid-template-columns:repeat(4,1fr)}
@media (max-width:980px){.g3,.g4{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.g2,.g3,.g4{grid-template-columns:1fr}}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;text-decoration:none;display:flex;flex-direction:column;gap:10px;box-shadow:var(--shadow);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
a.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-l);border-color:color-mix(in srgb,var(--accent) 40%,var(--line))}
.card h3{margin:0;font-size:19px}
.card p{margin:0;color:var(--muted);font-size:15px}
.card .ico{width:44px;height:44px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}
.card .ico svg{width:22px;height:22px}
.card .go{margin-top:auto;font-weight:700;color:var(--teal);font-size:14px}
.tag{display:inline-block;font:700 12px/1 var(--font);padding:6px 9px;border-radius:8px;background:var(--teal-soft);color:var(--teal);align-self:flex-start}

/* price tiers */
.tiers{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media (max-width:980px){.tiers{grid-template-columns:repeat(2,1fr)}}
@media (max-width:520px){.tiers{grid-template-columns:1fr}}
.tier{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;position:relative;overflow:hidden}
.tier::before{content:"";position:absolute;left:0;top:0;right:0;height:5px;background:var(--c,var(--teal))}
.tier h3{font-size:18px;margin-bottom:6px}
.tier .price{font:800 26px/1.1 var(--display);margin:8px 0 2px}
.tier .unit{font-size:13px;color:var(--muted)}
.tier ul{margin:14px 0 0;padding-left:18px;font-size:14px;color:var(--muted)}
.src{font-size:13px;color:var(--muted);margin-top:14px}

/* article layout */
.page-head{padding:40px 0 30px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,var(--surface-2),transparent)}
.crumbs{font-size:14px;color:var(--muted);margin-bottom:18px;display:flex;flex-wrap:wrap;gap:6px}
.crumbs a{text-decoration:none;color:var(--muted)} .crumbs a:hover{color:var(--ink)}
.crumbs span[aria-hidden]{opacity:.5}
.meta{display:flex;flex-wrap:wrap;gap:16px;font-size:14px;color:var(--muted);margin-top:16px}
.meta span{display:inline-flex;align-items:center;gap:6px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:48px;padding:40px 0 20px;align-items:start}
@media (max-width:1000px){.layout{grid-template-columns:minmax(0,1fr)}}
.prose,.aside{min-width:0}
.prose{max-width:760px}
.prose h2{margin-top:1.8em;scroll-margin-top:90px}
.prose h3{margin-top:1.4em}
.prose ul,.prose ol{padding-left:1.3em}
.prose li{margin:.35em 0}
.prose a{color:var(--teal);text-decoration-thickness:1px;text-underline-offset:3px}
.prose strong{font-weight:700}
.prose table{width:100%;border-collapse:separate;border-spacing:0;font-size:15px;margin:1.2em 0;border:1px solid var(--line);border-radius:var(--radius-s);overflow:hidden;background:var(--surface)}
.prose th,.prose td{padding:11px 13px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.prose th{background:var(--surface-2);font-weight:700}
.prose tr:last-child td{border-bottom:0}
.tw{overflow-x:auto;-webkit-overflow-scrolling:touch}
.tw table{min-width:520px}
.note,.warn,.tip{border-radius:var(--radius-s);padding:16px 18px;margin:1.3em 0;font-size:16px}
.tip{background:var(--teal-soft);border-left:4px solid var(--teal)}
.warn{background:var(--warn-soft);border-left:4px solid var(--warn)}
.note{background:var(--surface-2);border:1px solid var(--line)}
.aside{position:sticky;top:88px;display:flex;flex-direction:column;gap:16px}
@media (max-width:1000px){.aside{position:static}}
.toc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.toc b{display:block;margin-bottom:8px;font:800 14px var(--display);text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.toc ol{list-style:none;margin:0;padding:0;counter-reset:t}
.toc li{counter-increment:t;margin:2px 0}
.toc a{display:flex;gap:8px;text-decoration:none;font-size:14px;padding:6px 8px;border-radius:8px;color:var(--muted)}
.toc a::before{content:counter(t,decimal-leading-zero);font-weight:700;color:var(--accent);font-variant-numeric:tabular-nums}
.toc a:hover,.toc a.on{background:var(--surface-2);color:var(--ink)}
@media (max-width:1000px){.toc{display:none}}
.side-card{background:var(--ink);color:var(--bg);border-radius:var(--radius);padding:20px}
.side-card h3{font-size:18px}
.side-card p{font-size:14px;opacity:.8}
.side-card .btn{background:var(--tape);color:var(--tape-ink);padding:11px 16px;font-size:15px}

/* checklist */
.check{list-style:none;padding:0!important;margin:1.2em 0}
.check li{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:8px 0!important}
.check input{appearance:none;-webkit-appearance:none;flex:0 0 22px;height:22px;border:2px solid var(--muted);border-radius:7px;margin-top:2px;cursor:pointer;display:grid;place-items:center}
.check input:checked{background:var(--ok);border-color:var(--ok)}
.check input:checked::after{content:"";width:6px;height:11px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg) translate(-1px,-1px)}
.check input:checked+span{color:var(--muted);text-decoration:line-through}
.check-meta{font-size:14px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.check-meta button{background:none;border:1px solid var(--line);border-radius:8px;padding:5px 10px;color:var(--muted);cursor:pointer}

/* steps */
.steps{counter-reset:s;display:grid;gap:12px;margin:1.2em 0;padding:0!important;list-style:none}
.steps>li{counter-increment:s;position:relative;padding:16px 16px 16px 64px!important;margin:0!important;background:var(--surface);border:1px solid var(--line);border-radius:14px}
.steps>li::before{content:counter(s);position:absolute;left:16px;top:14px;width:34px;height:34px;border-radius:10px;background:var(--ink);color:var(--bg);display:grid;place-items:center;font:800 15px var(--display)}

/* faq */
.faq details{background:var(--surface);border:1px solid var(--line);border-radius:14px;margin:10px 0;padding:0 18px}
.faq summary{cursor:pointer;list-style:none;padding:16px 28px 16px 0;font-weight:700;position:relative}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"";position:absolute;right:2px;top:50%;width:10px;height:10px;border:solid var(--muted);border-width:0 2px 2px 0;transform:translateY(-70%) rotate(45deg);transition:transform .2s}
.faq details[open] summary::after{transform:translateY(-30%) rotate(-135deg)}
.faq details p{color:var(--muted);margin:0 0 16px}

/* calculator */
.calc{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:24px;box-shadow:var(--shadow-l);margin:1.4em 0}
.calc h3{margin-bottom:4px}
.calc-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-top:18px}
@media (max-width:620px){.calc-grid{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--muted)}
.field input[type=number],.field select{font:600 17px var(--font);color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:12px 14px;width:100%}
.field input[type=range]{width:100%;accent-color:var(--accent)}
.seg{display:flex;flex-wrap:wrap;gap:6px}
.seg label{flex:1 1 auto}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg span{display:block;text-align:center;padding:10px 12px;border:1px solid var(--line);border-radius:12px;cursor:pointer;color:var(--ink);font-weight:600;background:var(--bg);white-space:nowrap}
.seg input:checked+span{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.seg input:focus-visible+span{outline:3px solid var(--tape);outline-offset:2px}
.toggle{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:600;cursor:pointer}
.toggle input{width:20px;height:20px;accent-color:var(--accent)}
.calc-out{margin-top:20px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:620px){.calc-out{grid-template-columns:1fr}}
.calc-out div{background:var(--surface-2);border-radius:14px;padding:14px}
.calc-out span{display:block;font-size:13px;color:var(--muted)}
.calc-out b{font:800 22px/1.2 var(--display)}
.calc-out .total{background:var(--ink);color:var(--bg)}
.calc-out .total span{color:inherit;opacity:.7}
.calc-bar{height:12px;border-radius:999px;background:var(--surface-2);overflow:hidden;display:flex;margin-top:14px}
.calc-bar i{display:block;height:100%}
.calc-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:13px;color:var(--muted);margin-top:8px}
.calc-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}

/* ad slot */
.ad{display:flex;align-items:center;gap:16px;flex-wrap:wrap;border:1.5px dashed color-mix(in srgb,var(--muted) 45%,transparent);border-radius:var(--radius);padding:18px 20px;margin:28px 0;background:var(--surface)}
.ad small{font:800 11px var(--font);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);background:var(--surface-2);padding:5px 8px;border-radius:6px}
.ad strong{font-family:var(--display)}
.ad span{color:var(--muted);font-size:15px}
.ad a{margin-left:auto;font-weight:700;color:var(--teal);text-decoration:none}

/* related + sister */
.related{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:1em 0 0}
@media (max-width:620px){.related{grid-template-columns:1fr}}
.related a{display:block;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px;text-decoration:none;font-weight:700}
.related a span{display:block;font-weight:500;font-size:14px;color:var(--muted);margin-top:4px}
.related a:hover{border-color:var(--accent)}

/* footer */
.foot{margin-top:72px;background:var(--ink);color:#d9d7d1;padding:52px 0 30px}
:root[data-theme="dark"] .foot{background:#0b0c0f}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .foot{background:#0b0c0f}}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:30px}
@media (max-width:860px){.foot-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.foot-grid{grid-template-columns:1fr}}
.foot h4{font-size:14px;text-transform:uppercase;letter-spacing:.08em;color:#9c9a94;margin-bottom:12px}
.foot ul{list-style:none;margin:0;padding:0}
.foot li{margin:7px 0}
.foot a{color:#ecebe6;text-decoration:none;font-size:15px}
.foot a:hover{color:var(--tape)}
.foot .brand{color:#fff}
.foot .brand-mark{background:#fff;color:#15171c}
.foot p{font-size:14px;color:#a5a39d}
.foot-bottom{border-top:1px solid #2a2c31;margin-top:34px;padding-top:18px;font-size:13px;color:#8f8d87;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}

@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.top,.foot,.aside,.ad,.progress,.calc{display:none!important}body{background:#fff;color:#000}}
@media (max-width:860px){.hero-grid{grid-template-columns:1fr}.hero{padding:40px 0}}
.brand{white-space:nowrap}
#calc,[id]{scroll-margin-top:84px}
@media (max-width:420px){.brand{font-size:16px;gap:8px}.brand-mark{width:30px;height:30px}.top-in{gap:10px}}
