/* [c13] Блоки из c8: первый экран и «Свет → энергия» (одна анимация точек), «Сутки дома», заявка и подвал.
   Раскладка — как в c8; шрифт, цвета, кнопки, переключатели, поля и надзаголовки — из base.css (система c11).
   Из c8 убраны свои токены, свои шрифты и всё, что относилось к блокам, которых на сайте нет. */

.c8 { background: var(--bg); color: var(--ink); }
.c8 .wrap { padding-inline: var(--pad); width: 100%; }
.c8 .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.c8 svg text { font-family: var(--font); }
.c8 svg text.m { font-size: 12px; fill: var(--ink-3); }
.c8 svg text.v { font-size: 11px; fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.c8 svg text.l { font-size: 13px; fill: var(--ink-2); font-weight: 500; }
.c8 svg text.o { font-size: 13px; fill: var(--ink); font-weight: 600; }

/* ---------- Первый экран ----------
   [c13 · правки руководителя 2] небо и фон первого экрана — точно как в c12/c8 (светлое, светлеет к рассвету): исключение из палитры */
.c8 .hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: #FAF8F4; isolation: isolate; }
.c8 .hero .sky { position: absolute; inset: 0; z-index: -2; }
.c8 .hero .sky.dusk { background: linear-gradient(180deg, #A9B4C5 0%, #C4CBD6 45%, #E2E1E0 100%); }
.c8 .hero .sky.day { background:
  radial-gradient(60% 75% at var(--sx, 72%) var(--sy, 50%), rgba(255, 214, 140, .55) 0%, rgba(255, 228, 190, .32) 32%, rgba(250, 248, 244, 0) 70%),
  linear-gradient(180deg, #FCF4EA 0%, #FAF8F4 60%);
  opacity: 0; }
.c8 .hero.dawn .sky.dusk { opacity: 0; }
.c8 .hero.dawn .sky.day { opacity: 1; }
.c8 .hero canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; bottom: auto; }
.c8 .hero .mark-static { position: absolute; z-index: -1; display: none; opacity: .32; }
.c8 .hero .copy { position: absolute; inset: auto 0 0 0; padding-bottom: clamp(28px, 6vh, 96px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; row-gap: clamp(18px, 3vh, 44px); will-change: opacity, transform; }
.c8 .hero h1 { grid-column: 1 / span 9; font-size: var(--t-h1); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.c8 .hero h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.c8 .hero h1 .ln > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.c8 .hero h1 .ln:nth-child(2) > span { transition-delay: .09s; }
.c8 .hero h1 em { font-style: normal; color: var(--sun); }
.c8 .hero .eyebrow { grid-column: 1 / span 8; opacity: 0; transition: opacity .8s .1s; }
.c8 .hero .sub { grid-column: 1 / span 5; display: grid; gap: clamp(18px, 2.6vh, 32px); justify-items: start; opacity: 0; transform: translateY(14px); transition: opacity .8s .35s, transform .9s .35s var(--ease); }
.c8 .hero .sub p { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-2); max-width: 26em; }
.c8 .hero .side { grid-column: 9 / span 4; justify-self: end; text-align: right; opacity: 0; transition: opacity .8s .6s; font-size: var(--fs-s); color: var(--ink-3); display: grid; gap: 6px; }
.c8 .hero.ready h1 .ln > span { transform: none; }
.c8 .hero.ready .eyebrow, .c8 .hero.ready .side { opacity: 1; }
.c8 .hero.ready .sub { opacity: 1; transform: none; }
.c8 .skip { position: absolute; right: var(--pad); top: calc(clamp(14px, 2.4vw, 60px) + clamp(40px, 4.5vw, 116px) + 10px); z-index: 3; background: none; border: 0; font: 500 var(--fs-s) var(--font); color: var(--ink-3); cursor: pointer; opacity: .8; transition: opacity .4s; }
.c8 .hero.ready .skip { opacity: 0; pointer-events: none; }
.c8 .scroll-cue { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.c8 .scroll-cue i { width: 1px; height: 34px; background: linear-gradient(var(--ink-3) 50%, transparent 0) 0 0/1px 200%; animation: c8-cue 2.4s linear infinite; }
@keyframes c8-cue { to { background-position: 0 -68px; } }

/* ---------- «Свет → энергия»: вырастает из первого экрана ---------- */
.c8 .hero { overflow: visible; }
.c8 .hero::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100svh; min-height: 660px; z-index: -3; pointer-events: none;
  background: radial-gradient(60% 75% at 68% -45%, rgba(255, 214, 140, .55) 0%, rgba(255, 228, 190, .32) 32%, rgba(250, 248, 244, 0) 70%); }
.c8 .year { position: relative; min-height: 100svh; display: grid; background: transparent; }
.c8 .year .dust { position: absolute; left: 0; top: 0; width: 100%; height: 60%; pointer-events: none; opacity: .7; }
.c8 .year > .in { position: relative; grid-template-rows: 1fr auto; row-gap: clamp(28px, 4.5vh, 64px); align-items: center; padding-block: clamp(96px, 12vh, 170px) clamp(96px, 12vh, 150px); }
.c8 .year .txt { grid-column: 1 / span 5; display: grid; gap: clamp(14px, 1.3vw, 32px); align-self: center; }
.c8 .yfacts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); border-top: 1px solid var(--line); padding-top: clamp(18px, 2.6vh, 32px); }
.c8 .yfacts div { display: grid; gap: 6px; align-content: start; }
.c8 .yfacts b { font-size: var(--t-num-s); line-height: 1; font-weight: 500; letter-spacing: -.03em; }
.c8 .yfacts b small { font-size: var(--fs); font-weight: 500; letter-spacing: 0; margin-left: .25em; color: var(--ink-2); }
.c8 .yfacts span { font-size: var(--fs-s); color: var(--ink-3); max-width: 22em; }
.pinfx .c8 .duo { display: grid; }
.pinfx .c8 .duo > .hero, .pinfx .c8 .duo > .year { grid-area: 1 / 1; }
.pinfx .c8 .hero { overflow: hidden; }
.pinfx .c8 .hero::after { display: none; }
.pinfx .c8 .duo > .year { z-index: 2; pointer-events: none; }
.pinfx .c8 .duo.live > .year .in > * { pointer-events: auto; }
.pinfx .c8 .ychart circle { opacity: var(--land, 0) !important; transition: none !important; }
.pinfx .c8 .ychart text { opacity: var(--lab, 0); }
.pinfx .c8 .year .txt, .pinfx .c8 .yfacts { will-change: opacity, transform; }
.pinfx .c8 .year .dust { opacity: 0; }
.c8 .legend { display: flex; align-items: center; gap: 10px; font-size: var(--fs-s); color: var(--ink-3); }
.c8 .legend i { width: 12px; height: 12px; border-radius: 50%; background: var(--sun-2); flex: none; }
.c8 .ychart { grid-column: 6 / span 7; align-self: end; }
.c8 .ychart svg { width: 100%; height: auto; display: block; overflow: visible; clip-path: inset(100% -5% -5% -5%); transition: clip-path 1.2s var(--ease); }
.c8 .ychart.on svg { clip-path: inset(-12% -5% -5% -5%); }
.pinfx .c8 .ychart svg { clip-path: none; transition: none; }

/* ---------- «Сутки дома»: фон и иллюстрация меняются по времени суток ----------
   [c13 · правки руководителя 1] Фоны четырёх состояний — ИСКЛЮЧЕНИЕ из единой палитры: возвращены значения c12/c8
   (утро персиковое, день голубой, вечер — синий → лиловый → розовый → тёплый у горизонта, отключение — тёмно-синий).
   Цвета стен, земли, столба, соседа и окон — тоже из c12, чтобы иллюстрация сидела на этих фонах. */
.c8 .sutki2 { position: relative; min-height: 100svh; overflow: hidden; color: var(--ink); transition: color .6s;
  --wall1: #FBF9F5; --wall2: #EFEBE3; --pole: #8D877C; --groundc: #E7E1D3;
  --il-line: var(--ink); --il-dev: #FBFAF7; --il-gauge: #ECE8E1; --il-trim: #E2DDD3; }
.c8 .sutki2[data-s="2"] { color: #fff; --wall1: #EBD9C6; --wall2: #D6BFA6; --groundc: #C99A7E; --pole: #6E5F64; }
.c8 .sutki2[data-s="3"] { color: #fff; --wall1: #C9C6C0; --wall2: #B1ADA6; --pole: #6B6E76; --groundc: #2B303B; }
.c8 .sutki2 .bg { position: absolute; inset: 0; }
.c8 .sutki2 .bg i { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.c8 .sutki2 .bg i:nth-child(1) { background: linear-gradient(180deg, #F6DCC3 0%, #FBEBDD 50%, #FAF8F4 100%); }
.c8 .sutki2 .bg i:nth-child(2) { background: linear-gradient(180deg, #C9DEEE 0%, #E4EEF5 55%, #FAF8F4 100%); }
.c8 .sutki2 .bg i:nth-child(3) { background: linear-gradient(180deg, #262A45 0%, #4A3C5E 40%, #8E5A6A 70%, #D99272 92%, #EDB98C 100%); }
.c8 .sutki2 .bg i:nth-child(4) { background: linear-gradient(180deg, #161B28 0%, #232A3B 60%, #2F3646 100%); }
.c8 .sutki2[data-s="0"] .bg i:nth-child(1), .c8 .sutki2[data-s="1"] .bg i:nth-child(2), .c8 .sutki2[data-s="2"] .bg i:nth-child(3), .c8 .sutki2[data-s="3"] .bg i:nth-child(4) { opacity: 1; }
.c8 .sutki2 .in2 { position: relative; min-height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); grid-template-rows: 1fr auto; row-gap: clamp(16px, 2.6vh, 32px); padding-block: var(--sec); }
.c8 .sutki2 .dtx { grid-column: 1 / span 4; display: grid; align-content: center; gap: clamp(14px, 1.3vw, 32px); }
.c8 .sutki2[data-s="2"] .eyebrow, .c8 .sutki2[data-s="3"] .eyebrow { color: var(--text-d); }
.c8 .dsts { position: relative; min-height: clamp(260px, 34vh, 400px); }
.c8 .dst { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease); pointer-events: none; }
.c8 .dst.on { opacity: 1; transform: none; pointer-events: auto; }
.c8 .dst .t { font-size: var(--t-num); font-weight: 500; line-height: .92; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.c8 .dst h3 { margin: .55em 0 .45em; max-width: 15em; font-size: var(--t-h4); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.c8 .dst p { font-size: var(--fs); line-height: 1.5; opacity: .8; max-width: 26em; }
.c8 .dst .src { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-s); font-weight: 500; padding: .55em 1.1em .55em .9em; border-radius: 999px; border: 1px solid var(--line); }
.c8 .sutki2[data-s="2"] .dst .src, .c8 .sutki2[data-s="3"] .dst .src { border-color: var(--line-d); }
.c8 .dst .src i { width: 10px; height: 10px; border-radius: 50%; }
.c8 .dpic { grid-column: 5 / span 8; grid-row: 1 / span 2; align-self: center; position: relative; }
.c8 .dpic svg:first-child { width: 100%; height: auto; max-height: calc(100svh - 160px); display: block; overflow: visible; }
.c8 .dpic .flayer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; will-change: transform; }
.c8 .dpic .ground { fill: var(--groundc); transition: fill .8s; }
.c8 .dpic .stars { fill: #fff; opacity: 0; transition: opacity .8s; }
.c8 .dpic .sun { transition: transform 1.1s var(--ease), opacity .8s; }
.c8 .dpic .moon { transform: translate(820px, 120px); opacity: 0; transition: opacity .8s; }
.c8 .dpic .clouds { transition: opacity .8s; }
.c8 .dpic .nightonly { opacity: 0; transition: opacity .8s; }
.c8 .dpic .glass { fill: #CFE0EC; } .c8 .dpic .lit { fill: #FFCB5C; opacity: 0; transition: opacity .7s; } .c8 .dpic .doorlit { fill: #FFCB5C; opacity: 0; }
.c8 .dpic .win .glare { transition: opacity .6s; }
.c8 .dpic .nbwall { fill: #DDD6CA; transition: fill .8s; } .c8 .dpic .nbroof { fill: #8E887E; transition: fill .8s; } .c8 .dpic .nbw { fill: #C9D8E2; transition: fill .6s; }
.c8 .dpic .annexwall { fill: var(--wall2); transition: fill .8s; } .c8 .dpic .annexin { fill: #E3DDD2; }
.c8 .dpic .cut { opacity: 0; transition: opacity .5s; }
.c8 .dpic .flows path { fill: none; stroke: var(--sun); stroke-opacity: .3; stroke-width: 1.5; stroke-dasharray: 1 7; stroke-linecap: round; }
.c8 .dpic .flows #fl-sun { stroke: none; }
.c8 .dpic .disp { font: 600 11px var(--font); fill: var(--sun-2); }
.c8 .dpic .pct { font: 600 22px var(--font); fill: currentColor; }
.c8 .dpic .lbl text { font: 500 18px var(--font); fill: currentColor; }
.c8 .dpic .lbl text.s { font-size: 16px; font-weight: 400; opacity: .7; }
.c8 .dpic .lbl text.off { opacity: 0; fill: var(--sun); font-weight: 600; }
.c8 .dpic .batfill { transition: y .9s var(--ease), height .9s var(--ease); }
.c8 .sutki2[data-s="1"] .dpic .sheen { opacity: 1; } .c8 .dpic .sheen { opacity: .35; transition: opacity .8s; }
.c8 .sutki2[data-s="2"] .dpic .clouds, .c8 .sutki2[data-s="3"] .dpic .clouds { opacity: 0; }
.c8 .sutki2[data-s="2"] .dpic .lit, .c8 .sutki2[data-s="3"] .dpic .lit, .c8 .sutki2[data-s="2"] .dpic .nightonly, .c8 .sutki2[data-s="3"] .dpic .nightonly { opacity: 1; }
.c8 .sutki2[data-s="2"] .dpic .win .glare, .c8 .sutki2[data-s="3"] .dpic .win .glare { opacity: 0; }
.c8 .sutki2[data-s="2"] .dpic .stars { opacity: .35; } .c8 .sutki2[data-s="3"] .dpic .stars { opacity: .9; }
.c8 .sutki2[data-s="2"] .dpic .moon { opacity: .6; } .c8 .sutki2[data-s="3"] .dpic .moon { opacity: 1; }
.c8 .sutki2[data-s="2"] .dpic .nbw { fill: #FFCB5C; }
.c8 .sutki2[data-s="3"] .dpic .sun { opacity: 0; }
.c8 .sutki2[data-s="3"] .dpic .nbwall { fill: #4A4F5A; } .c8 .sutki2[data-s="3"] .dpic .nbroof { fill: #3A3E47; } .c8 .sutki2[data-s="3"] .dpic .nbw { fill: #2B303A; }
.c8 .sutki2[data-s="3"] .dpic .wire { stroke-dasharray: 5 7; }
.c8 .sutki2[data-s="3"] .dpic .cut, .c8 .sutki2[data-s="3"] .dpic .lbl text.off { opacity: 1; }
/* переключатель времени суток — тот же переключатель, что везде: пилюли в контуре, выбранное — чёрное */
.c8 .dsw { grid-column: 1 / span 4; grid-row: 2; align-self: end; }
.c8 .dsw button { position: relative; overflow: hidden; padding: .5em .7em .75em; min-height: clamp(56px, 3.6vw, 84px); }
.c8 .dsw button:last-child { flex-grow: 1.45; } /* [c13·п1] «Отключение» длиннее остальных — даём ему воздух */
.c8 .dsw button b { font-weight: 500; }
.c8 .dsw button span { font-size: var(--t-eyebrow); color: var(--ink-3); font-weight: 400; margin-top: 2px; font-variant-numeric: tabular-nums; transition: color .35s; }
.c8 .dsw button.on span { color: rgba(255, 255, 255, .7); }
.c8 .dsw button i { position: absolute; left: 24%; right: 24%; bottom: 7px; height: 2px; border-radius: 2px; overflow: hidden; }
.c8 .dsw button i::after { content: ""; position: absolute; inset: 0; background: var(--sun); transform: scaleX(0); transform-origin: left; }
.c8 .dsw button.on i::after { transform: scaleX(1); }
.c8 .sutki2.run .dsw button.on i::after { animation: c8-dbar var(--step, 4.6s) linear both; }
@keyframes c8-dbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* на тёмном небе — та же пара в обратных цветах */
.c8 .sutki2[data-s="2"] .dsw, .c8 .sutki2[data-s="3"] .dsw { background: transparent; border-color: var(--line-d); }
.c8 .sutki2[data-s="2"] .dsw button:not(.on), .c8 .sutki2[data-s="3"] .dsw button:not(.on) { color: var(--text-d); }
.c8 .sutki2[data-s="2"] .dsw button.on, .c8 .sutki2[data-s="3"] .dsw button.on { background: #fff; color: var(--ink); }
.c8 .sutki2[data-s="2"] .dsw button.on span, .c8 .sutki2[data-s="3"] .dsw button.on span { color: var(--ink-3); }
.c8 .sutki2[data-s="2"] .dsw button:not(.on) span, .c8 .sutki2[data-s="3"] .dsw button:not(.on) span { color: rgba(255, 255, 255, .5); }
@media (hover: hover) and (pointer: fine) {
  .c8 .sutki2[data-s="2"] .dsw button:not(.on):hover, .c8 .sutki2[data-s="3"] .dsw button:not(.on):hover { color: #fff; background: rgba(255, 255, 255, .1); }
}

/* ---------- Заявка и подвал: тёмная секция тем же чёрным, что кнопки ---------- */
.c8 .req { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.c8 .req canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.c8 .req .in { position: relative; z-index: 1; min-height: 100svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); grid-template-rows: 1fr auto; padding-block: var(--sec) clamp(36px, 3vw, 80px); }
.c8 .req .form { grid-column: 1 / span 6; align-self: center; display: grid; gap: clamp(14px, 1.3vw, 32px); }
.c8 .req .eyebrow, .c8 .req .lead { color: var(--text-d); }
.c8 .req .fields { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1vw, 24px) var(--gap); max-width: 760px; }
.c8 .req .fields .wide { grid-column: 1 / -1; }
.c8 .req .note { font-size: var(--fs-s); color: rgba(255, 255, 255, .55); max-width: 40em; }
.c8 .req .done { display: none; gap: 14px; }
.c8 .req .done .h3 { color: var(--sun); }
.c8 .req.ok .done { display: grid; }
.c8 .req.ok .fields, .c8 .req.ok .send-row { display: none; }
.c8 .send-row { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; margin-top: clamp(8px, 1vw, 24px); }
.c8 .foot { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 20px; border-top: 1px solid var(--line-d); margin-top: var(--sec); padding-top: clamp(28px, 2.4vw, 60px); font-size: var(--fs-s); color: var(--text-d); align-items: end; }
.c8 .foot .lg { grid-column: 1 / span 4; display: grid; gap: 12px; }
.c8 .foot .lg img { height: clamp(34px, 3.1vw, 80px); width: auto; }
.c8 .foot .ph { grid-column: 5 / span 4; display: grid; gap: 4px; }
.c8 .foot .ph a { color: #fff; text-decoration: none; font-size: var(--t-h3); font-weight: 500; letter-spacing: -.01em; }
.c8 .foot .rt { grid-column: 9 / span 4; justify-self: end; text-align: right; display: grid; gap: 4px; }
.c8 .foot a { color: inherit; }

/* ---------- Появление — как у блоков c11 ---------- */
.c8 .rv { opacity: 0; transform: translateY(34px); transition: opacity 1s ease-out, transform 1.2s var(--ease); }
.c8 .rv.in { opacity: 1; transform: none; }

/* ---------- Телефон и планшет (точки переключения — как в c8) ---------- */
@media (max-width: 900px) {
  .c8 .hero h1, .c8 .hero .sub, .c8 .hero .eyebrow { grid-column: 1 / -1; }
  .c8 .hero .side { display: none; }
  .c8 .hero::after { background: radial-gradient(70% 60% at 60% -67%, rgba(255, 214, 140, .55) 0%, rgba(255, 228, 190, .32) 32%, rgba(250, 248, 244, 0) 70%); }
  .c8 .year > .in { grid-template-rows: auto auto auto; }
  .c8 .yfacts { grid-template-columns: 1fr; row-gap: 16px; }
  .c8 .year .txt, .c8 .ychart { grid-column: 1 / -1; }
  .c8 .ychart { margin-top: 36px; }
  .c8 .ychart svg text.m { font-size: 19px; }
  .c8 .ychart svg text.v { font-size: 16px; }
  .c8 .ychart svg text.o { font-size: 20px; }
  .c8 .sutki2 .in2 { grid-template-rows: auto auto auto; }
  .c8 .sutki2 .dtx { grid-column: 1 / -1; display: contents; }
  .c8 .sutki2 .dtx .eyebrow { grid-column: 1 / -1; order: 1; } .c8 .sutki2 .dtx .h2 { grid-column: 1 / -1; order: 2; margin: 12px 0 8px; }
  .c8 .dpic { grid-column: 1 / -1; grid-row: auto; order: 3; margin-inline: -8px; }
  .c8 .dsw { grid-column: 1 / -1; grid-row: auto; order: 4; margin-top: 8px; }
  .c8 .dsw button { padding: .45em .1em .75em; font-size: var(--t-eyebrow); }
  .c8 .dpic .lbl text { font-size: 28px; }
  .c8 .dpic .lbl text.s:not(.off), .c8 .dpic .lbl path, .c8 .dpic .lbl text:nth-of-type(1), .c8 .dpic .lbl text:nth-of-type(5), .c8 .dpic .lbl text:nth-of-type(6), .c8 .dpic .lbl text:nth-of-type(7), .c8 .dpic .lbl text:nth-of-type(8) { display: none; }
  .c8 .dpic .pct { font-size: 30px; }
  .c8 .dsts { grid-column: 1 / -1; order: 5; min-height: 300px; margin-top: 14px; }
  .c8 .req .form { grid-column: 1 / -1; }
  .c8 .req .fields { grid-template-columns: 1fr; }
  .c8 .send-row .btn { width: 100%; }
  .c8 .foot .lg, .c8 .foot .ph, .c8 .foot .rt { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .c8 *, .c8 *::before, .c8 *::after { animation: none !important; transition: none !important; }
  .c8 .rv { opacity: 1; transform: none; }
  .c8 .ychart svg { clip-path: none !important; }
}
