/* U-NEE modern layer, 01.11.2026. Ідея: вікна будинку, що світяться під час відключення. */
:root {
  --um-night: #0d1b2a; --um-night-2: #16293c; --um-line: #2b4258;
  --um-lamp: #ffc24a; --um-lamp-deep: #d98a00;
  --um-sky: #e9f0f5; --um-ink: #10212f; --um-mute: #55697a;
}
html:root { --ds-main-font: 'Onest', system-ui, sans-serif; }
body { font-family: var(--ds-main-font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .unee-h2 { letter-spacing: -.01em; }

/* Старий слайдер і блок переваг із неперевіреними обіцянками замінено калькулятором */
.ds-slideshow, .ds-advantages { display: none !important; }
/* Штучні наліпки «Закінчується», «Хіт» на кожному товарі прибрано */
.ds-module-stickers, .ds-product-stickers { display: none !important; }

/* ---- Hero / калькулятор ---- */
.um-hero {
  background: var(--um-night); color: #eef4f8; border-radius: 20px;
  padding: clamp(20px, 4vw, 48px); margin: 16px 0 40px; scroll-margin-top: 90px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px);
}
.um-hero h1 {
  font-family: 'Unbounded', var(--ds-main-font); font-weight: 600; color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.16; margin: 0 0 14px;
}
/* Тема фарбує p у контентних блоках темним: тут потрібна вища специфічність */
.um-hero p { color: #c7d5e0; }
.um-hero .um-sub { font-size: 1.05rem; line-height: 1.5; color: #b9c9d6; margin: 0 0 24px; max-width: 34em; }
.um-legend { display: block; font-weight: 600; margin: 0 0 10px; color: #fff; }
.um-loads { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; border: 0; }
.um-load { cursor: pointer; margin: 0; }
.um-load input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.um-load span {
  display: block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--um-line);
  color: #d5e0e9; font-size: .94rem; transition: background .15s, color .15s, border-color .15s;
}
.um-load:hover span { border-color: #6b8297; }
.um-load input:checked + span { background: var(--um-lamp); border-color: var(--um-lamp); color: #1b1300; font-weight: 600; }
.um-load input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.um-range-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.um-hours-val { font-family: 'Unbounded', var(--ds-main-font); color: var(--um-lamp); font-size: 1.05rem; }
#um-hours { width: 100%; accent-color: var(--um-lamp); height: 28px; }

.um-panel { background: var(--um-night-2); border-radius: 14px; padding: clamp(16px, 2.4vw, 26px); display: flex; flex-direction: column; }
.um-hero .um-day-cap { font-size: .86rem; color: #9fb2c2; margin: 0 0 10px; }
.um-day { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; margin-bottom: 20px; }
.um-day i {
  aspect-ratio: 3 / 4; border-radius: 3px; background: #22384c; display: block;
  transition: background .3s, box-shadow .3s;
}
.um-day i.on { background: var(--um-lamp); box-shadow: 0 0 12px rgba(255, 194, 74, .45); }
.um-day i.mark { outline: 2px solid #fff; outline-offset: 1px; }
.um-hero .um-res-name { font-family: 'Unbounded', var(--ds-main-font); font-size: 1.25rem; font-weight: 600; color: #fff; margin: 0 0 6px; }
.um-hero .um-res-meta { color: #c7d5e0; margin: 0 0 6px; line-height: 1.45; }
.um-res-link { color: var(--um-lamp); text-decoration: underline; text-underline-offset: 3px; font-size: .94rem; }
.um-res-link:hover { color: #fff; }
.um-hero form { margin-top: auto; padding-top: 18px; }
.um-row { display: flex; gap: 8px; flex-wrap: wrap; }
.um-row input[type=tel] {
  flex: 1 1 170px; min-width: 0; height: 48px; padding: 0 14px; border-radius: 10px;
  border: 1px solid #9fb2c2; background: #fff; color: var(--um-ink); font-size: 1rem;
}
.um-row button {
  flex: 1 1 170px; height: 48px; padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--um-lamp); color: #1b1300; font-weight: 700; font-size: 1rem; transition: background .15s;
}
.um-row button:hover { background: #ffd47d; }
.um-row button:disabled { opacity: .6; cursor: wait; }
.um-row button:focus-visible, .um-row input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.um-hero .um-note, .um-note { flex-basis: 100%; margin: 4px 0 0; font-size: .88rem; color: #9fb2c2; min-height: 1.2em; }
.um-note.is-error { color: #ff9d8a; }
.um-hero .um-small { font-size: .82rem; color: #8ea3b5; margin: 8px 0 0; line-height: 1.4; }
.um-hero .um-thanks, .um-thanks { margin: 0; color: #fff; line-height: 1.5; }
.um-hp, .um-sr { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Товари й контентні блоки ---- */
.unee-home { --unee-accent: var(--um-lamp-deep); margin-top: 0; }
.unee-h2 { font-family: 'Unbounded', var(--ds-main-font); font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
.unee-usp-card, .unee-scen-card, .unee-step { border-radius: 14px; box-shadow: none; }
.unee-usp-num { font-family: 'Unbounded', var(--ds-main-font); font-weight: 600; color: var(--um-ink); }
.dark-theme .unee-usp-num { color: #fff; }
.unee-scen-tag { color: #8a5a00; }
.unee-scen-featured { box-shadow: none; border: 2px solid var(--um-lamp-deep); }
.unee-cta-wide { background: var(--um-sky); border: 0; border-radius: 14px; }
.unee-btn { background: var(--um-night) !important; color: #fff !important; border-radius: 10px; }
.unee-btn:hover { background: var(--um-night-2) !important; }
.ds-module-item { border-radius: 14px; transition: box-shadow .2s; }
.ds-module-code { display: none !important; }
.ds-module-price { font-weight: 700; }

/* ---- Консультація в картці товару ---- */
.um-consult { background: var(--um-night); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
.um-consult-t, .um-consult .um-hero .um-thanks, .um-thanks { color: #fff; margin: 0 0 10px; line-height: 1.4; font-weight: 500; }
.um-consult .um-hero .um-thanks, .um-thanks { margin: 0; font-weight: 400; }

@media (max-width: 767px) {
  .um-hero { grid-template-columns: 1fr; border-radius: 14px; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .um-day i, .um-load span, .ds-module-item { transition: none; } }

/* Hero без білої рамки-контейнера теми */
.content-block:has(.um-hero) { background: none; padding: 0; box-shadow: none; border: 0; }
.content-block-text:has(.um-hero) { font-weight: 400; color: var(--um-ink); }
.dark-theme .content-block-text:has(.um-hero) { color: inherit; }
/* Компактне повідомлення про cookies */
#oct-policy { padding-top: 8px !important; padding-bottom: 8px !important; font-size: .82rem; line-height: 1.35; }
@media (max-width: 767px) { #oct-policy { bottom: 64px; } }

/* Тема задає колір p з !important: повертаємо світлий текст на темних панелях */
.um-hero p { color: #c7d5e0 !important; }
.um-hero .um-res-name, .um-hero .um-thanks, .um-consult p { color: #fff !important; }
.um-hero .um-day-cap, .um-hero .um-small { color: #9fb2c2 !important; }
.um-hero .um-note.is-error, .um-consult .um-note.is-error { color: #ff9d8a !important; }
/* Порожні зірки й «0 відгуків» не додають довіри, доки немає реальних відгуків */
.ds-module-rating { display: none !important; }
/* Меню в один рядок: сервісні сторінки лишаються у футері */
.ds-menu-maincategories-item:has(> a[href="/povernennia-ta-obmin"]),
.ds-menu-maincategories-item:has(> a[href="/umovy-uhody"]),
.ds-menu-maincategories-item:has(> a[href="/pro-nas"]) { display: none !important; }

/* ---- Графік відключень проти дому з U-NEE ---- */
.um-top { grid-column: 1 / -1; }
.um-hero .um-eyebrow { color: var(--um-lamp) !important; font-weight: 600; font-size: .95rem; margin: 0 0 12px; }
.um-hero h1 { font-size: clamp(1.6rem, 3.6vw, 3rem); margin-bottom: 26px; max-width: 22em; }
.um-hero .um-calc-title { font-family: 'Unbounded', var(--ds-main-font); font-weight: 600; color: #fff; font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.25; margin: 0 0 10px; }
.um-out-row { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 12px; margin-bottom: 6px; }
.um-out-label { font-size: .9rem; color: #9fb2c2; }
.um-out-label-on { color: #fff; font-weight: 600; }
.um-out-cells { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; }
.um-out-cells i { display: block; height: 30px; border-radius: 3px; background: #4d6578; transition: outline-color .2s; outline: 2px solid transparent; outline-offset: 1px; }
.um-out-cells i.off { background: repeating-linear-gradient(135deg, #1a2c3d 0 4px, #0d1b2a 4px 8px); box-shadow: inset 0 0 0 1px #2b4258; }
[data-row=home] i { background: var(--um-lamp); box-shadow: 0 0 8px rgba(255, 194, 74, .35); }
.um-out-cells i.now { outline-color: #fff; }
.um-out-axis { display: flex; justify-content: space-between; margin: 4px 0 0 182px; font-size: .78rem; color: #8ea3b5; }
.um-hero .um-out-status { margin: 12px 0 0; min-height: 1.5em; color: #e4edf3 !important; font-size: .95rem; font-variant-numeric: tabular-nums; }
.um-out-time { font-family: 'Unbounded', var(--ds-main-font); font-weight: 600; color: #fff; margin-right: 6px; }
.um-out-net.is-off { color: #ff9d8a; font-weight: 600; }
.um-out-sep { color: #5d7488; }
@media (max-width: 767px) {
  .um-out-row { grid-template-columns: 1fr; gap: 4px; margin-bottom: 10px; }
  .um-out-cells { gap: 2px; }
  .um-out-cells i { height: 24px; border-radius: 2px; }
  .um-out-axis { margin-left: 0; }
}

/* Кнопка біля заголовка веде до калькулятора */
.um-head { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 26px; }
.um-hero .um-head h1 { margin: 0; }
.um-cta {
  flex: none; padding: 15px 26px; border-radius: 10px; background: var(--um-lamp); color: #1b1300 !important;
  font-weight: 700; font-size: 1.05rem; text-decoration: none !important; white-space: nowrap; transition: background .15s;
}
.um-cta:hover { background: #ffd47d; }
.um-cta:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#um-pick { scroll-margin-top: 90px; }
html { scroll-behavior: smooth; }
@media (max-width: 767px) {
  .um-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .um-cta { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---- B2B-лендинги ---- */
.um-hero.um-b2b { margin-top: 8px; }
.um-hero .um-b2b-title { font-family: 'Unbounded', var(--ds-main-font); font-weight: 600; color: #fff !important; font-size: clamp(1.4rem, 3vw, 2.5rem); line-height: 1.16; margin: 0 0 12px; max-width: 22em; }
.um-hero .um-legend { color: #fff !important; }
.um-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.um-fields .um-legend { grid-column: 1 / -1; margin: 0; }
.um-field { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; margin: 0; color: #c7d5e0; font-size: .92rem; line-height: 1.3; }
.um-field input { height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--um-line); background: #0a1622; color: #fff; font-size: 1.05rem; font-weight: 600; width: 100%; }
.um-field input:focus-visible { outline: 2px solid var(--um-lamp); outline-offset: 1px; }
.um-dl { margin: 14px 0 0; }
.um-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--um-line); }
.um-dl dt { font-weight: 400; color: #c7d5e0; }
.um-dl dd { margin: 0; color: var(--um-lamp); font-weight: 700; text-align: right; white-space: nowrap; }
.um-row input.um-text { flex: 1 1 170px; min-width: 0; height: 48px; padding: 0 14px; border-radius: 10px; border: 1px solid #9fb2c2; background: #fff; color: var(--um-ink); font-size: 1rem; }
.um-b2b .um-row button { flex-basis: 100%; }
@media (max-width: 575px) { .um-fields { grid-template-columns: 1fr; } }
