/* ===== Переменные ===== */
:root {
  --bg:        #0a0a0a;
  --bg-alt:    #111111;
  --card:      #161616;
  --border:    #262626;
  --text:      #ffffff;
  --muted:     #a1a1a1;
  --accent:    #ffd400;
  --accent-dk: #e6be00;
  --radius:    16px;
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .25s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn--accent { background: var(--accent); color: #000; }
.btn--accent:hover {
  background: var(--accent-dk);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255,212,0,.25);
}
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--full { width: 100%; }

/* ===== Хедер ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}
.logo__mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #000;
  border-radius: 10px;
  font-weight: 800;
}
.logo__text b { color: var(--accent); }

.nav { display: flex; gap: 26px; }
.nav__link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: .2s;
}
.nav__link:hover { color: var(--accent); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .3s;
}

/* ===== Hero ===== */
.hero {
  padding: 90px 0 100px;
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(255,212,0,.12), transparent 60%),
    var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.hero__title {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero__text {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 520px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero__stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats b { font-size: 28px; color: var(--accent); font-weight: 800; }
.hero__stats span { font-size: 14px; color: var(--muted); }

/* Гарантия с подписью */
.hero__stat-guarantee small {
  font-size: 11px;
  color: var(--muted);
  opacity: .8;
  margin-top: 2px;
  font-weight: 500;
}

/* ===== Строки «медиа + текст» (сервисные страницы) ===== */
.eco-rows {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 44px;
}
.eco-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.eco-row--rev .eco-row__media { order: 2; }
.eco-row--rev .eco-row__text  { order: 1; }
.eco-row__media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.eco-row__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.eco-row__icon {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 18px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(255,212,0,.25));
}
.eco-row__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #fff;
  margin-bottom: 14px;
}
.eco-row__desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.eco-row__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eco-row__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.5;
  color: #d0d0d0;
}
.eco-row__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}
@media (max-width: 900px) {
  .eco-rows { gap: 44px; margin-top: 32px; }
  .eco-row { grid-template-columns: 1fr; gap: 22px; }
  .eco-row--rev .eco-row__media { order: 0; }
  .eco-row__title { font-size: 22px; }
  .eco-row__desc { font-size: 15px; }
}

/* ===== iPhone ===== */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero__visual::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255,180,60,.18), transparent 70%);
  filter: blur(60px);
  z-index: 0;
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.12); opacity: 1; }
}
.iphone {
  position: relative;
  z-index: 1;
  animation: float 7s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.iphone__frame {
  position: relative;
  width: 330px;
  height: 680px;
  border-radius: 56px;
  padding: 3px;
  background: linear-gradient(145deg,
    #6b6b6b 0%, #2a2a2a 15%, #1a1a1a 40%,
    #0a0a0a 60%, #2a2a2a 85%, #6b6b6b 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 0 0 3px #050505,
    0 0 0 4px rgba(120,120,120,.25),
    0 30px 60px rgba(0,0,0,.7),
    0 60px 120px rgba(0,0,0,.5),
    0 0 100px rgba(255,180,60,.10);
}
.iphone__btn {
  position: absolute;
  background: linear-gradient(180deg, #4a4a4a, #1a1a1a, #4a4a4a);
  border-radius: 2px;
  z-index: 5;
  box-shadow: inset 0 0 1px rgba(255,255,255,.3);
}
.iphone__btn--silent    { left: -3px; top: 110px; width: 4px; height: 30px; border-radius: 2px 0 0 2px; }
.iphone__btn--vol-up    { left: -3px; top: 170px; width: 4px; height: 60px; border-radius: 2px 0 0 2px; }
.iphone__btn--vol-down  { left: -3px; top: 245px; width: 4px; height: 60px; border-radius: 2px 0 0 2px; }
.iphone__btn--power     { right: -3px; top: 200px; width: 4px; height: 90px; border-radius: 0 2px 2px 0; }

.iphone__glass {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 53px;
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
}
.iphone__wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, #c8d4b8 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, #d4b890 0%, transparent 55%),
    radial-gradient(ellipse at 15% 80%, #b0b898 0%, transparent 60%),
    radial-gradient(ellipse at 75% 90%, #c8a880 0%, transparent 55%),
    linear-gradient(160deg, #c0c8b0 0%, #b8b09a 40%, #c0a080 75%, #a88868 100%);
  filter: blur(3px) saturate(.9);
  z-index: 1;
  transform: scale(1.05);
}
.iphone__shade {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(0,0,0,.20), transparent);
  z-index: 2;
  pointer-events: none;
}
.iphone__island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 30px;
  background: #000;
  border-radius: 999px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}
.iphone__island-cam {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a3a5a, #000 70%);
}
.iphone__status {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 30px 4px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.iphone__status-icons { display: flex; gap: 5px; align-items: center; opacity: .95; }

.hk-nav {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 8px;
  gap: 8px;
}
.hk-nav__pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(90,90,90,.35);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  white-space: nowrap;
}
.hk-nav__actions { display: flex; gap: 8px; flex-shrink: 0; }
.hk-nav__btn {
  height: 40px;
  min-width: 50px;
  padding: 0 14px;
  display: grid;
  place-items: center;
  background: rgba(90,90,90,.35);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
.hk-nav__btn--accent {
  background: rgba(110,180,220,.45);
  border-color: rgba(140,200,240,.5);
  min-width: 60px;
}

.hk-title {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 22px 14px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.hk-title__arrow { font-size: 22px; opacity: .75; font-weight: 400; }

.hk-mosaic {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "warm   hood"
    "warm   dim"
    "relay  lamp"
    "backl  light1"
    "light2 light3"
    "light4 light5"
    "floor  ."
    "floor  .";
  grid-template-rows: repeat(8, 62px);
  gap: 8px;
  padding: 0 20px 80px;
  flex: 1;
  overflow: hidden;
}
.hk-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(120,115,105,.55);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.05);
  position: relative;
  overflow: hidden;
}
.hk-tile__ico {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.15);
  color: #ffcc00;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.06);
}
.hk-tile__info {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  overflow: hidden;
  flex: 1;
}
.hk-tile__info b {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.hk-tile__info span {
  font-size: 11px;
  color: rgba(255,255,255,.7);
  white-space: nowrap;
}
.hk-tile--white {
  background: rgba(248,248,248,.95);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.hk-tile--white .hk-tile__ico { background: #ffcc00; color: #ffffff; border-color: transparent; }
.hk-tile__info--dark b { color: #0a0a0a; text-shadow: none; }
.hk-tile__info--dark span { color: #888; }
.hk-tile--dark { background: rgba(130,110,80,.55); border-color: rgba(255,220,160,.08); }
.hk-tile--big {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px;
}
.hk-tile__value {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1;
}
.hk-tile__bottom { display: flex; flex-direction: column; line-height: 1.25; }
.hk-tile__bottom b { font-size: 13px; font-weight: 700; }
.hk-tile__bottom span { font-size: 11px; opacity: .85; }
.hk-tile--warm {
  background: rgba(248,248,248,.95);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  padding: 16px 14px;
}
.hk-tile--warm .hk-tile__value { color: #f47b20; font-size: 40px; margin-left: -2px; }
.hk-tile--warm .hk-tile__bottom b { color: #0a0a0a; }
.hk-tile--warm .hk-tile__bottom span { color: #888; }
.hk-tile--floor {
  background: linear-gradient(165deg, rgba(110,85,60,.72), rgba(70,50,38,.85));
  border-color: rgba(255,235,200,.10);
}
.hk-tile--floor .hk-tile__value { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.hk-tile--floor .hk-tile__bottom b { color: #fff; }
.hk-tile--floor .hk-tile__bottom span { color: rgba(255,255,255,.6); }

.hk-tabbar {
  position: absolute;
  bottom: 22px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px;
  background: linear-gradient(95deg, rgba(255,200,100,.55) 0%, rgba(240,160,60,.55) 50%, rgba(210,140,60,.55) 100%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 1.5px solid rgba(255,220,150,.35);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25);
  z-index: 25;
}
.hk-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  color: #fff8e0;
  border-radius: 999px;
  text-shadow: 0 1px 2px rgba(120,60,0,.35);
}
.hk-tab--active {
  background: linear-gradient(180deg, rgba(255,230,150,.55), rgba(255,190,80,.45));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
  border: 1px solid rgba(255,240,200,.5);
  color: #fff;
}
.hk-tab__label { font-size: 9px; font-weight: 700; }

.iphone__home-bar {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 5px;
  background: rgba(255,255,255,.85);
  border-radius: 999px;
  z-index: 30;
}
.iphone__gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background: linear-gradient(115deg,
    rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 20%,
    transparent 40%, transparent 60%,
    rgba(255,255,255,.02) 80%, rgba(255,255,255,.05) 100%);
  border-radius: 53px;
}

/* ===== Секции ===== */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  color: var(--accent);
}
.section__subtitle {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 56px;
  max-width: 620px;
}

.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ===== Карточки устройств ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: .3s;
  display: block;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.card__icon { font-size: 40px; margin-bottom: 20px; }
.card__img {
  margin: -10px -10px 20px;
  border-radius: 10px;
  overflow: hidden;
}
.card__img img {
  display: block;
  width: 100%;
  height: auto;
}
.card__title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card__text { color: var(--muted); font-size: 15px; }

/* ===== Способы управления ===== */
.control {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: .3s;
  position: relative;
  overflow: hidden;
}
.control::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: .3s;
}
.control:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.4);
}
.control:hover::before { opacity: 1; }
.control__icon {
  font-size: 44px;
  margin-bottom: 20px;
  display: inline-block;
  filter: drop-shadow(0 4px 12px rgba(255,212,0,.25));
}
.control__title { font-size: 22px; font-weight: 800; margin-bottom: 10px; color: #fff; }
.control__text { color: var(--muted); font-size: 15px; line-height: 1.5; margin-bottom: 18px; }
.control__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.control__list li {
  padding-left: 22px;
  position: relative;
  font-size: 14px;
  color: #c8c8c8;
}
.control__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ===== Сценарии ===== */
.scenarios {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}
.scenarios__tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.s-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: .25s;
  font-family: inherit;
  text-align: left;
  color: var(--text);
}
.s-tab:hover {
  border-color: rgba(255,212,0,.5);
  transform: translateX(4px);
}
.s-tab--active {
  border-color: var(--accent);
  background: rgba(255,212,0,.08);
  box-shadow: 0 0 30px rgba(255,212,0,.08);
}
.s-tab__icon {
  font-size: 26px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(255,212,0,.25));
}
.s-tab__body { display: flex; flex-direction: column; gap: 2px; }
.s-tab__body b { font-size: 16px; font-weight: 700; color: #fff; }
.s-tab__body span { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* ===== План квартиры ===== */
.scenarios__plan { position: relative; }
.plan {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 960;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,200,120,.08), transparent 60%),
    linear-gradient(160deg, #252019 0%, #1a1610 50%, #100d08 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 30px 60px rgba(0,0,0,.7),
    0 0 0 1px rgba(255,255,255,.04),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 0 80px rgba(255,180,60,.04);
  transition: background 1.5s ease, box-shadow .5s ease;
}

.plan::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45) 100%);
  pointer-events: none;
  z-index: 5;
  border-radius: inherit;
}

.plan::after {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,212,0,.6), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease;
  z-index: 6;
}

.plan.is-active {
  border-color: rgba(255,212,0,.25);
  box-shadow:
    0 30px 80px rgba(0,0,0,.8),
    0 0 0 1px rgba(255,212,0,.15),
    0 0 60px rgba(255,212,0,.08),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 0 120px rgba(255,180,60,.06);
}

.plan.is-active::after { opacity: 1; }

.plan.circadian-morning { background: radial-gradient(ellipse at 30% 20%, rgba(150,190,255,.08), transparent 65%), linear-gradient(160deg, #1c1c1c 0%, #101010 50%, #080808 100%); }
.plan.circadian-day     { background: radial-gradient(ellipse at 30% 20%, rgba(255,240,200,.09), transparent 65%), linear-gradient(160deg, #1c1c1c 0%, #101010 50%, #080808 100%); }
.plan.circadian-evening { background: radial-gradient(ellipse at 30% 20%, rgba(255,150,70,.10), transparent 65%),  linear-gradient(160deg, #1c1c1c 0%, #101010 50%, #080808 100%); }
.plan.circadian-night   { background: radial-gradient(ellipse at 30% 20%, rgba(255,110,50,.07), transparent 65%),  linear-gradient(160deg, #1c1c1c 0%, #101010 50%, #080808 100%); }
.plan.climate-mode      { background: radial-gradient(ellipse at 30% 20%, rgba(120,220,180,.08), transparent 65%), linear-gradient(160deg, #1c1c1c 0%, #101010 50%, #080808 100%); }

.circadian-badge,
.climate-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 30;
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background:
    linear-gradient(135deg, rgba(30,30,30,.9), rgba(15,15,15,.85));
  backdrop-filter: blur(20px) saturate(180%);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  transition: .5s ease;
  box-shadow:
    0 8px 24px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.15);
  letter-spacing: -0.2px;
}

.circadian-badge.is-visible,
.climate-badge.is-visible { display: flex; }

.circadian-badge__icon,
.climate-badge__icon {
  font-size: 20px;
  filter: drop-shadow(0 0 6px currentColor);
}

.circadian-badge { border: 1px solid rgba(255,212,0,.35); }
.plan.circadian-morning .circadian-badge { border-color: rgba(150,190,255,.6); color: #b8d4ff; }
.plan.circadian-day     .circadian-badge { border-color: rgba(255,240,200,.6); color: #ffe9b8; }
.plan.circadian-evening .circadian-badge { border-color: rgba(255,150,70,.6);  color: #ffb26b; }
.plan.circadian-night   .circadian-badge { border-color: rgba(255,110,50,.6);  color: #ff8a4a; }

.climate-badge {
  border: 1px solid rgba(110,231,167,.55);
  color: #6ee7a7;
}

.plan__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.35));
}
.plan__svg g { pointer-events: none; }
.plan__svg .plan__device { pointer-events: auto; cursor: help; }

/* ===== Небо, солнце, луна ===== */
.sky-day { fill: url(#skyDay); }
.sky-night { fill: url(#skyNight); opacity: 0; transition: opacity 2.5s ease; }
.star { fill: #dfe8ff; opacity: 0; transition: opacity 2s ease; }
.stars { opacity: 0; transition: opacity 2.5s ease; }
.sun { transition: transform 2.5s ease, opacity 2s ease; transform: translate(760px, 90px); }
.sun-core { fill: #ffd76a; transition: fill 2s ease; }
.sun-glow { fill: url(#sunGlow); }
.moon { opacity: 0; transition: transform 2.5s ease, opacity 2s ease; transform: translate(880px, 120px); }
.moon-glow { fill: url(#moonGlow); }
.moon-core { fill: #e8ecf4; }
.moon-cut { fill: #10141f; }

#planView.sky-sunrise .sun { transform: translate(380px, 150px); }
#planView.sky-sunrise .sun-core { fill: #ffb45e; }
#planView.sky-sunset .sun { transform: translate(1050px, 300px); }
#planView.sky-sunset .sun-core { fill: #ff9a4a; }
#planView.sky-moon .sun { opacity: 0; }
#planView.sky-moon .moon { opacity: 1; }
#planView.sky-moon .stars { opacity: .9; }
#planView.sky-moon .sky-night { opacity: 1; }

/* ===== Полы и стены ===== */
.iso-floor { stroke: rgba(255,255,255,.07); stroke-width: 1; }
.wall-face { fill: url(#wallGrad); stroke: rgba(0,0,0,.25); stroke-width: .5; }
.wall-top  { fill: #4a443a; stroke: rgba(0,0,0,.3); stroke-width: .5; }
.plan.circadian-morning .wall-face { fill: #3a4152; }
.plan.circadian-evening .wall-face { fill: #4a3a2e; }
.plan.circadian-night   .wall-face { fill: #2c2830; }
.plan.climate-mode      .wall-face { fill: #31443c; }
.door-leaf { fill: #7d5f3a; stroke: rgba(0,0,0,.4); stroke-width: .8; }

/* ===== Окна и шторы ===== */
.win-glass { fill: #8fb6c9; opacity: .8; stroke: #d8dee4; stroke-width: 1.1; }
.win-frame { fill: none; stroke: #d8dee4; stroke-width: 1.4; }
.win-sill  { fill: #565049; stroke: rgba(0,0,0,.3); stroke-width: .5; }
.curtain-rod { stroke: #7d828c; stroke-width: 2.4; stroke-linecap: round; }
/* «живые» шторы: открытие — сборка к краю (сужение), закрытие — полная ширина */
.curtain {
  fill: #5d7089; opacity: .94; stroke: rgba(0,0,0,.35); stroke-width: .6;
  transform-box: fill-box;
  transform: scaleX(.16);
  transition: transform .9s ease;
}
.curtains.is-closed .curtain { transform: scaleX(1); }

.track-motor { fill: #6f7480; transition: .4s; }
.tracks.is-active .track-motor { fill: var(--accent); stroke: rgba(255,212,0,.5); stroke-width: 2; }

/* ===== Мебель ===== */
.furn-shadow { fill: rgba(0,0,0,.30); }
.rug { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.10); stroke-width: .5; }
.plant-ball { fill: #5d8a4f; stroke: rgba(0,0,0,.3); stroke-width: .8; }
.plant-ball.small { fill: #6a9a5b; }

/* ===== ТВ ===== */
.tv-frame { fill: #0c0d10; stroke: #26282e; stroke-width: 1; }
.tv-screen { fill: #05070a; transition: fill .5s ease; }
.plan__device--tv.is-active .tv-screen { fill: #6fa7dd; }

/* ===== LED-подсветка ===== */
.led-strip {
  fill: none; stroke: #ffdf7e; stroke-width: 2.5; stroke-linejoin: round;
  opacity: .08; transition: opacity .8s ease;
}
.led-strips.led-on .led-strip { opacity: .95; }
.led-strips.led-dim .led-strip { opacity: .38; stroke: #ffbe5a; }
.led-strips.led-off .led-strip { opacity: .06; }

/* ===== Тёплые полы ===== */
.floor-heat { fill: rgba(255,120,40,0); opacity: 0; transition: opacity .8s ease, fill .8s ease; }
.floor-heat.is-active { fill: rgba(255,120,40,.18); opacity: 1; }

/* ===== Подписи ===== */
.room-label {
  fill: rgba(255,255,255,.42);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-anchor: middle;
  pointer-events: none;
}

/* ===== Светильники ===== */
.lamp-cord { stroke: rgba(230,220,200,.35); stroke-width: 1.2; }
.lamp-shade { fill: #b8ad93; stroke: rgba(0,0,0,.4); stroke-width: .6; transition: .5s ease; }
.lamp-bulb { fill: #6f6a5c; transition: .5s ease; }
.light-pool { fill: url(#poolGrad); opacity: 0; transition: opacity .7s ease; }
.plan__device--spot .lamp-cord,
.plan__device--spot .lamp-shade { display: none; }
.plan__device--light.is-active .light-pool { opacity: .8; }
.plan__device--light.is-dim .light-pool { opacity: .32; }
.plan__device--light.is-dim .lamp-bulb { fill: #e0cf9e; }
.plan__device--light.is-dim .lamp-shade { fill: #d6c7a4; }
.plan__device--light.is-active .lamp-bulb { fill: #ffe9a8; }
.plan__device--light.is-active .lamp-shade { fill: #e8d9ae; }

/* Цвет ламп в циркадном режиме */
.plan.circadian-morning .plan__device--light.is-active .lamp-bulb { fill: #dceaff; }
.plan.circadian-morning .plan__device--light.is-active .lamp-shade { fill: #b9c6da; }
.plan.circadian-evening .plan__device--light.is-active .lamp-bulb { fill: #ffd9a8; }
.plan.circadian-evening .plan__device--light.is-active .lamp-shade { fill: #d9b48c; }
.plan.circadian-night   .plan__device--light.is-active .lamp-bulb { fill: #e8b27a; }

/* ===== Датчики и маркеры ===== */
.dev-base { fill: rgba(10,12,16,.9); stroke: rgba(255,255,255,.55); stroke-width: 1; transition: .4s ease; }
.dev-dot { fill: #9aa2ad; transition: .4s ease; }
.plan__device.is-active .dev-base { stroke: var(--accent); stroke-width: 2; }
.plan__device--temp-sensor.is-active .dev-dot { fill: #7cc4ff; }
.plan__device--thermostat.is-active .dev-dot { fill: #ffd45a; }
.plan__device--camera.is-active .dev-dot { fill: #ff6b6b; }
.plan__device--camera.is-active .cam-dome { stroke: #ff6b6b; }
.plan__device--ac.is-active .dev-dot { fill: #9fd8ff; }
.plan__device--motion.is-active .dev-dot { fill: #b18cff; }
.plan__device--leak.is-active .dev-dot { fill: #4dd0e1; }
.plan__device--smoke.is-active .dev-dot { fill: #ff9d66; }
.plan__device--lock.is-active .dev-dot { fill: #ffd45a; }
.plan__device--coffee.is-active .dev-dot { fill: #e8b06a; }
.cam-dome { fill: #2b2f36; stroke: rgba(255,255,255,.4); stroke-width: 1; transition: .4s; }

/* ===== Кондиционеры ===== */
.ac-body { fill: #cfcabf; stroke: rgba(0,0,0,.35); stroke-width: .8; }
.ac-side { fill: #b3ada0; stroke: rgba(0,0,0,.25); stroke-width: .5; }
.ac-flap { stroke: rgba(0,0,0,.4); stroke-width: 1; }
.ac-led { fill: #8a8f98; transition: .4s; }
.ac-unit.is-active .ac-led { fill: #6ee7a7; }
.ac-flow {
  fill: none; stroke: rgba(159,216,255,0);
  stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 6;
}
.ac-unit.is-active .ac-flow { stroke: rgba(159,216,255,.85); animation: acBlow 1.6s linear infinite; }
@keyframes acBlow { to { stroke-dashoffset: -20; } }

/* ===== Тултип ===== */
.plan-tooltip {
  position: absolute;
  z-index: 40;
  background: rgba(15,15,15,.95);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,212,0,.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .15s ease;
}
.plan-tooltip.is-visible { opacity: 1; }
.plan__hint {
  margin-top: 20px;
  padding: 18px 22px;
  background:
    linear-gradient(135deg, rgba(255,212,0,.08), rgba(255,212,0,.03));
  border: 1px solid rgba(255,212,0,.25);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: .3s;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
}
.plan__hint b {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.2px;
}
.plan__hint span {
  font-size: 14px;
  color: #d0d0d0;
  line-height: 1.5;
}

/* ===== Карусель готовых объектов ===== */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.carousel__viewport {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
}

.carousel__track {
  display: flex;
  gap: 20px;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.carousel__item {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
}

.carousel__arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: .25s;
  z-index: 2;
}

.carousel__arrow:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(255,212,0,.3);
}

.carousel__arrow svg { width: 22px; height: 22px; }

.carousel__arrow:disabled {
  opacity: .3;
  cursor: not-allowed;
  transform: none;
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-color: var(--border);
  box-shadow: none;
}

/* Точки */
.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: none;
  cursor: pointer;
  transition: .25s;
  padding: 0;
}

.carousel__dot:hover {
  background: rgba(255,212,0,.5);
}

.carousel__dot.is-active {
  background: var(--accent);
  width: 24px;
  border-radius: 999px;
}

/* Карточка объекта внутри карусели */
.carousel__item.project {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ===== Карточки объектов (project) ===== */
.project {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .3s;
  display: flex;
  flex-direction: column;
}
.project:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,.5);
}
.project__img {
  position: relative;
  height: 200px;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.project__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(255,212,0,.12), transparent 70%);
}
.project__icon {
  font-size: 72px;
  filter: drop-shadow(0 10px 20px rgba(255,212,0,.2));
  transition: transform .4s ease;
}
.project:hover .project__icon { transform: scale(1.15) rotate(-5deg); }
.project__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.project__body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.project__text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
  flex: 1;
}
.project__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}
.projects__more { text-align: center; margin-top: 40px; }

/* ===== КАЛЬКУЛЯТОР СТОИМОСТИ ===== */
.calc {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

.calc__form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc__label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}
.calc__area-value {
  color: var(--accent);
  font-weight: 800;
  font-size: 15px;
}

.calc__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calc__radio {
  cursor: pointer;
  position: relative;
}
.calc__radio input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.calc__radio-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: .25s;
  font-size: 14px;
  color: #d0d0d0;
  font-weight: 600;
}
.calc__radio-box:hover {
  border-color: rgba(255,212,0,.4);
  background: rgba(255,212,0,.04);
}
.calc__radio input:checked + .calc__radio-box {
  border-color: var(--accent);
  background: rgba(255,212,0,.1);
  color: #fff;
  box-shadow: 0 0 20px rgba(255,212,0,.12);
}
.calc__radio-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.calc__group .calc__options {
  grid-template-columns: 1fr;
}
.calc__radio-box small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
}
.calc__radio input:checked + .calc__radio-box small {
  color: rgba(255,255,255,.6);
}

.calc__range {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.calc__range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #0a0a0a;
  box-shadow: 0 0 20px rgba(255,212,0,.6);
  cursor: grab;
  transition: .2s;
}
.calc__range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 30px rgba(255,212,0,.9);
}
.calc__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #0a0a0a;
  box-shadow: 0 0 20px rgba(255,212,0,.6);
  cursor: grab;
}
.calc__range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.calc__checkboxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.calc__check {
  cursor: pointer;
  position: relative;
}
.calc__check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.calc__check-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: .25s;
  font-size: 13px;
  color: #d0d0d0;
  font-weight: 600;
}
.calc__check-box:hover {
  border-color: rgba(255,212,0,.4);
  background: rgba(255,212,0,.04);
}
.calc__check input:checked + .calc__check-box {
  border-color: var(--accent);
  background: rgba(255,212,0,.1);
  color: #fff;
  box-shadow: 0 0 20px rgba(255,212,0,.12);
}
.calc__check-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.calc__result {
  background:
    linear-gradient(145deg, rgba(255,212,0,.06), rgba(255,212,0,.02) 60%),
    var(--card);
  border: 1px solid rgba(255,212,0,.25);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
  box-shadow:
    0 20px 60px rgba(0,0,0,.4),
    0 0 60px rgba(255,212,0,.06),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.calc__result-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px dashed rgba(255,255,255,.1);
}
.calc__result-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.calc__result-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
}
.calc__result-price span:first-child {
  font-size: 52px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
  transition: .3s;
  text-shadow: 0 0 40px rgba(255,212,0,.3);
}
.calc__result-unit {
  font-size: 32px;
  color: var(--accent);
  font-weight: 700;
  opacity: .8;
}
.calc__result-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.calc__result-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc__result-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border-radius: 10px;
  font-size: 13px;
  color: #d0d0d0;
  transition: .3s;
}
.calc__result-list li b {
  color: #fff;
  font-weight: 700;
}
.calc__result-list li span:last-child {
  color: var(--accent);
  font-weight: 700;
}

.calc__result-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.calc__result-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc__result-meta-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.calc__result-meta-value {
  font-size: 15px;
  color: #fff;
  font-weight: 700;
}

.calc__cta {
  margin-top: 8px;
}

/* ===== Контакты ===== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  color: #d0d0d0;
}
.contact__list li {
  padding: 14px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* ===== Форма ===== */
.form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
}
.form__field { display: block; margin-bottom: 20px; }
.form__field span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.form__field input,
.form__field select {
  width: 100%;
  padding: 14px 18px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: .2s;
}
.form__field input:focus,
.form__field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,212,0,.15);
}
.form__field input::placeholder { color: #555; }
.form__note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
}
.form__success {
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  padding: 20px 0;
}
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  cursor: pointer;
}
.form__consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.form__consent span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.form__consent a { color: var(--accent); text-decoration: underline; }

/* ===== Cookie-баннер ===== */
.cookie {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(22,22,22,.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,212,0,.25);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  z-index: 1000;
  transform: translateY(200%);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
}
.cookie.is-visible { transform: translateY(0); }
.cookie__content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.cookie__icon { font-size: 28px; flex-shrink: 0; }
.cookie__content p {
  font-size: 13px;
  color: #c8c8c8;
  line-height: 1.5;
  margin: 0;
}
.cookie__content a { color: var(--accent); text-decoration: underline; }
.cookie__btn {
  padding: 10px 20px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: .2s;
  white-space: nowrap;
}
.cookie__btn:hover { background: var(--accent-dk); }

/* ===== Правовые страницы ===== */
.legal {
  max-width: 800px;
  margin: 0 auto;
  color: #c8c8c8;
  line-height: 1.7;
}
.legal h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  margin: 32px 0 12px;
}
.legal p { margin-bottom: 14px; font-size: 15px; }
.legal ul {
  margin: 12px 0 20px 24px;
  list-style: disc;
}
.legal ul li { margin-bottom: 8px; font-size: 15px; }
.legal__date {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

/* ===== Футер ===== */
.footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__copy { color: var(--muted); font-size: 14px; }
.footer__socials { display: flex; gap: 24px; }
.footer__socials a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: .2s;
}
.footer__socials a:hover { color: var(--accent); }
.footer__links { display: flex; gap: 20px; }
.footer__links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: .2s;
}
.footer__links a:hover { color: var(--accent); }

/* ===== Адаптив ===== */
@media (max-width: 1200px) {
  .carousel__item {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 992px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .hero__title { font-size: 42px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .section__title { font-size: 34px; }

  .scenarios { grid-template-columns: 1fr; }
  .scenarios__tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .s-tab { flex: 1 1 calc(50% - 5px); }
  .s-tab:hover { transform: translateY(-2px); }

  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .calc__result-price span:first-child { font-size: 44px; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 20px;
  }
  .nav.is-open { display: flex; }
  .burger { display: flex; }
  .header__cta { display: none; }

  .hero { padding: 60px 0 70px; }
  .hero__title { font-size: 34px; }
  .hero__text { font-size: 16px; }
  .hero__stats { gap: 28px; }
  .hero__stats b { font-size: 22px; }

  .section { padding: 70px 0; }
  .section__title { font-size: 28px; }

  .grid--4 { grid-template-columns: 1fr; }
  .s-tab { flex: 1 1 100%; }

  .calc__form { padding: 24px 20px; gap: 22px; }
  .calc__options { grid-template-columns: 1fr; }
  .calc__checkboxes { grid-template-columns: 1fr; }
  .calc__result { padding: 24px 20px; }
  .calc__result-price span:first-child { font-size: 36px; }
  .calc__result-unit { font-size: 24px; }

  .carousel__item {
    flex: 0 0 100%;
  }
  .carousel__arrow {
    width: 40px;
    height: 40px;
  }

  .cookie {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 14px 16px;
  }
  .cookie__btn { width: 100%; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  .iphone__frame { width: 280px; height: 580px; }
}
/* ===== Партнёр в футере (Wiren Board) ===== */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__partner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: .25s;
  opacity: .85;
}

.footer__partner:hover {
  opacity: 1;
  color: var(--text);
}

.footer__partner img {
  height: 24px;
  width: auto;
  display: block;
  border-radius: 4px;
  transition: transform .25s;
}

.footer__partner:hover img {
  transform: scale(1.05);
}

/* =========================================================
   МОБИЛЬНАЯ ВЕРСИЯ (Главная страница)
   ========================================================= */

/* Запрещаем горизонтальную прокрутку всему сайту */
html, body {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 768px) {
  /* 1. ХЕДЕР */
  .header__inner {
    height: 60px;
  }
  .logo__text { font-size: 16px; }
  .header__cta { display: none; } /* Скрываем кнопку, чтобы не теснила меню */

  /* 2. HERO (Главный экран) */
  .hero { padding: 40px 0 60px; }
  .hero__title { font-size: 32px; line-height: 1.1; }
  .hero__text { font-size: 15px; margin-bottom: 24px; }
  .hero__actions { flex-direction: column; gap: 12px; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 20px; justify-content: space-between; }
  .hero__stats b { font-size: 22px; }
  .hero__stats span { font-size: 12px; }

  /* 3. IPHONE-МОКАП (Уменьшаем, чтобы влезал) */
  .hero__visual {
    margin-top: 40px;
    transform: scale(0.85); /* Уменьшаем весь телефон */
    transform-origin: top center;
  }
  .iphone__frame {
    width: 280px;
    height: 580px;
  }
  .iphone__frame { box-shadow: 0 20px 40px rgba(0,0,0,.6); } /* Убираем лишние тени */

  /* 4. СЕТКИ КАРТОЧЕК (Устройства, Управление) */
  .grid--4, .grid--3 { grid-template-columns: 1fr; gap: 16px; }
  .card, .control { padding: 24px 20px; }

  /* 5. СЦЕНАРИИ (План квартиры) */
  .scenarios { grid-template-columns: 1fr; gap: 20px; }
  .scenarios__tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none; /* Скрываем скроллбар */
  }
  .scenarios__tabs::-webkit-scrollbar { display: none; }
  .s-tab { flex: 0 0 auto; min-width: 150px; padding: 12px; }
  .s-tab__body b { font-size: 14px; }
  .s-tab__body span { font-size: 11px; }
  
  .plan { aspect-ratio: 4/3; } /* Меняем пропорции плана, чтобы он был крупнее */
  .plan__hint { font-size: 13px; padding: 14px 16px; }
  
  /* 6. КАРУСЕЛЬ ОБЪЕКТОВ */
  .carousel__item { flex: 0 0 100%; } /* Одна карточка на экран */
  .carousel__arrow { display: none; } /* Скрываем стрелки, листаем свайпом */
  
  /* 7. КОНТАКТЫ И ФОРМА */
  .contact { grid-template-columns: 1fr; gap: 30px; }
  .form { padding: 24px 20px; }
  
  /* 8. ФУТЕР */
  .footer__inner { flex-direction: column; text-align: center; gap: 20px; }
  .footer__links { flex-direction: column; gap: 10px; }
}

@media (max-width: 768px) {
  /* Калькулятор */
  .calc { grid-template-columns: 1fr; gap: 20px; }
  .calc__form { padding: 20px 16px; gap: 20px; }
  .calc__options { grid-template-columns: 1fr; } /* Кнопки в один столбец */
  .calc__checkboxes { grid-template-columns: 1fr; }
  
  .calc__result { position: static; padding: 24px 20px; }
  .calc__result-price span:first-child { font-size: 40px; }
  .calc__result-unit { font-size: 24px; }
  
  .calc__result-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .calc__result-list li span:last-child { font-size: 16px; }
}
/* =========================================================
   ЖЕСТКИЙ МОБИЛЬНЫЙ ФИКС
   ========================================================= */
@media (max-width: 768px) {
  /* 1. Убиваем горизонтальный скролл наглухо */
  html, body {
    overflow-x: hidden !important;
    width: 100%;
    position: relative;
  }
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }

    /* 2. Исправляем iPhone (убираем пустоту и обрезание) */
  .hero__visual {
    margin-top: 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    overflow: hidden; /* Отрезаем то, что вылезает */
    width: 100%;
  }
  
  .iphone {
    transform: scale(0.75); /* Чуть уменьшаем */
    transform-origin: top center;
    margin: 0 auto; /* Центрируем */
  }
  
  /* На всякий случай убираем тени, которые могут расширять блок */
  .iphone__frame {
    box-shadow: 0 20px 40px rgba(0,0,0,.6) !important; 
  }

  /* 3. Сценарии и план */
  .scenarios {
    display: flex;
    flex-direction: column;
  }
  .scenarios__tabs {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }
  .s-tab {
    flex: 0 0 160px; /* Фиксированная ширина карточек сценариев */
  }
  .plan {
    aspect-ratio: 4 / 3 !important; /* Делаем план повыше */
  }
  /* 4. Калькулятор */
  .calc {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .calc__result-price span:first-child {
    font-size: 36px !important;
  }

  /* 5. Модалки и админка */
  .modal__content {
    width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
  .admin__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
    /* Красивая сетка 2х2 для карточек управления */
  #how .grid--4 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки */
    gap: 12px;
  }

  .control {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .control__icon {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .control__title {
    font-size: 16px;
    margin-bottom: 6px;
  }

  /* В карточках со списком описание компактно обрезаем (2 строки) */
  .control:has(.control__list) .control__text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
    margin-bottom: 10px;
  }

  .control__list {
    padding-top: 10px;
    gap: 6px;
  }

  .control__list li {
    font-size: 11px;
    padding-left: 14px;
    line-height: 1.3;
  }

  .control__list li::before {
    content: "•"; /* Вместо стрелочки — точка, чтобы было компактнее */
    font-size: 14px;
    top: -1px;
  }
}

/* =========================================================
   КОМПАКТНЫЕ КАРТОЧКИ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ
   ========================================================= */
@media (max-width: 768px) {
  
  /* Делаем сетку из 2 колонок для всех блоков с 4 карточками */
  .grid--4 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Две колонки */
    gap: 12px !important; /* Маленький отступ между карточками */
  }

  /* --- 1. БЛОК "УСТРОЙСТВА" (Свет, Климат, Безопасность, Видео) --- */
  .card {
    padding: 16px 12px !important;
    border-radius: 14px;
  }

  .card__icon {
    font-size: 28px !important;
    margin-bottom: 8px !important;
  }

  .card__title {
    font-size: 15px !important;
    margin-bottom: 4px !important;
    line-height: 1.2;
  }

  .card__text {
    font-size: 11px !important;
    line-height: 1.3;
    /* Обрезаем текст, если он слишком длинный */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* --- 2. БЛОК "СПОСОБЫ УПРАВЛЕНИЯ" --- */
  .control {
    padding: 16px 12px !important;
    border-radius: 14px;
  }

  .control__icon {
    font-size: 28px !important;
    margin-bottom: 8px !important;
  }

  .control__title {
    font-size: 15px !important;
    margin-bottom: 4px !important;
  }

  /* В карточках со списком описание компактно обрезаем (2 строки) */
  .control:has(.control__list) .control__text {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-size: 12px !important;
    margin-bottom: 10px !important;
  }

  .control__list {
    padding-top: 8px !important;
    gap: 4px !important;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .control__list li {
    font-size: 10px !important;
    padding-left: 12px !important;
    line-height: 1.3;
    color: var(--muted);
  }

  /* Заменяем стрелочку на маленькую точку для компактности */
  .control__list li::before {
    content: "•" !important;
    font-size: 14px;
    color: var(--accent);
    top: -2px;
  }
}
/* =========================================================
   ФИНАЛЬНЫЕ ПРАВКИ ДЛЯ МОБИЛЬНОЙ ВЕРСИИ
   ========================================================= */
@media (max-width: 768px) {
  
  /* --- 1. ЦЕНТРИРУЕМ ФУТЕР --- */
  .footer__inner {
    align-items: center !important;
    text-align: center !important;
  }
  
  .footer__brand {
    align-items: center !important;
    text-align: center !important;
    width: 100%;
    margin-bottom: 20px;
  }

  .logo {
    justify-content: center !important;
    width: 100%;
  }

  .footer__partner {
    justify-content: center !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center;
    gap: 8px;
  }

  /* --- 2. КРАСИВАЯ СЕТКА ДЛЯ СЦЕНАРИЕВ --- */
  /* Превращаем вертикальный список в сетку 2х2 */
  .scenarios__tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Две колонки */
    gap: 12px !important;
    overflow: visible !important;
    padding-bottom: 0 !important;
  }

  .s-tab {
    flex: none !important;
    min-width: 0 !important;
    padding: 16px 14px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .s-tab__icon {
    font-size: 28px !important;
    margin-bottom: 4px;
  }

  .s-tab__body b {
    font-size: 15px !important;
    line-height: 1.2;
  }

  .s-tab__body span {
    font-size: 11px !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Обрезаем описание до 2 строк, если длинное */
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* --- 3. УЛУЧШАЕМ КАЛЬКУЛЯТОР --- */
  /* Чтобы кнопки "Тип объекта" не были гигантскими */
  .calc__radio-box {
    padding: 12px 14px !important;
  }
  .calc__radio-box b {
    font-size: 14px !important;
  }
  .calc__radio-icon {
    font-size: 18px !important;
  }
}
/* =========================================================
   УЛУЧШАЕМ КАЛЬКУЛЯТОР И СТАТИСТИКУ НА МОБИЛЬНЫХ
   ========================================================= */
@media (max-width: 768px) {
  
  /* --- 1. КАЛЬКУЛЯТОР: Делаем сетку 2х2 --- */
  .calc__options {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important; /* Две колонки */
    gap: 8px !important;
  }

  .calc__radio-box {
    display: flex !important;
    flex-direction: column !important; /* Иконка сверху, текст снизу */
    align-items: center !important;
    text-align: center !important;
    padding: 12px 8px !important;
    gap: 6px !important;
  }

  .calc__radio-icon {
    font-size: 22px !important;
  }

  .calc__radio-box b {
    font-size: 13px !important;
    line-height: 1.2;
  }

  /* То же самое для чекбоксов "Что включить" */
  .calc__checkboxes {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .calc__check-box {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 12px 8px !important;
    gap: 6px !important;
    font-size: 12px !important;
  }

  .calc__check-icon {
    font-size: 20px !important;
  }

  /* --- 2. СТАТИСТИКА В HERO (поддержка, гарантия, СПб) --- */
  .hero__stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 ровные колонки */
    gap: 10px !important;
    margin-top: 20px;
    text-align: center !important;
  }

  .hero__stats div {
    align-items: center !important; /* Центрируем текст */
    justify-content: flex-start !important;
  }

  .hero__stats b {
    font-size: 18px !important; /* Уменьшаем цифры */
    margin-bottom: 4px;
  }

  .hero__stats span {
    font-size: 11px !important;
    line-height: 1.2;
  }

  /* Убираем мелкий шрифт "на оборудование и сборку", чтобы не ломал сетку */
  .hero__stat-guarantee small {
    display: none !important; 
  }
}
/* =========================================================
   КАСТОМИЗАЦИЯ IPHONE ДЛЯ МОБИЛЬНЫХ
   ========================================================= */
@media (max-width: 768px) {
  
  /* Уменьшаем общий контейнер, чтобы он точно влезал */
  .iphone {
    transform: scale(0.85) !important;
    transform-origin: top center;
    margin-bottom: -60px; /* Подтягиваем следующий блок вверх */
  }

  /* Уменьшаем отступы в шапке телефона */
  .hk-nav {
    padding: 8px 14px 4px !important;
  }
  .hk-nav__pill {
    padding: 6px 12px !important;
    font-size: 12px !important;
  }
  .hk-nav__btn {
    height: 32px !important;
    min-width: 40px !important;
    padding: 0 10px !important;
  }
  .hk-nav__btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  
  .hk-title {
    font-size: 18px !important;
    padding: 2px 16px 10px !important;
  }

  /* Уменьшаем сетку и сами плитки */
  .hk-mosaic {
    padding: 0 14px 65px !important;
    /* Уменьшаем высоту рядов (было 62px) */
    grid-template-rows: repeat(8, 45px) !important;
    gap: 6px !important;
  }

  .hk-tile {
    padding: 8px !important;
    border-radius: 14px !important;
    gap: 8px !important;
  }

  /* Иконки внутри плиток */
  .hk-tile__ico {
    width: 28px !important;
    height: 28px !important;
  }
  .hk-tile__ico svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Текст внутри плиток */
  .hk-tile__info b {
    font-size: 11px !important; /* Уменьшаем шрифт, чтобы не было обрезания */
  }
  .hk-tile__info span {
    font-size: 9px !important;
  }

  /* Большие плитки (Тёплая стена, Тёплый пол) */
  .hk-tile--big {
    padding: 12px !important;
  }
  .hk-tile__value {
    font-size: 28px !important; /* Уменьшаем цифры 40.0° */
  }
  .hk-tile__bottom b {
    font-size: 11px !important;
  }
  .hk-tile__bottom span {
    font-size: 9px !important;
  }
  .hk-tile--warm .hk-tile__value {
    font-size: 26px !important;
  }

  /* Нижнее меню (Дом, Автоматизация, Обзор) */
  .hk-tabbar {
    bottom: 16px !important;
    left: 10px !important;
    right: 10px !important;
    padding: 4px !important;
  }
  .hk-tab {
    padding: 6px 4px !important;
    gap: 2px !important;
  }
  .hk-tab svg {
    width: 18px !important;
    height: 18px !important;
  }
  .hk-tab__label {
    font-size: 8px !important;
  }
}
/* =========================================================
   УВЕЛИЧИВАЕМ IPHONE ПОД РАЗМЕР ЭКРАНА
   ========================================================= */
@media (max-width: 768px) {
  
  .hero__visual {
    padding: 0 10px; /* Небольшие отступы по краям экрана */
    margin-top: 20px;
    margin-bottom: 30px;
    overflow: visible; /* Убираем обрезку, если она была */
  }

  .iphone {
    transform: none !important; /* Отменяем предыдущее уменьшение */
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .iphone__frame {
    width: 100% !important;
    max-width: 350px; /* Телефон будет занимать почти всю ширину экрана */
    height: auto !important;
    aspect-ratio: 330 / 680; /* Сохраняем точные пропорции iPhone */
  }

  /* --- Корректируем внутренности под новый размер --- */
  
  /* Чуть увеличиваем отступы в сетке */
  .hk-mosaic {
    padding: 0 16px 75px !important;
    grid-template-rows: repeat(8, 52px) !important;
    gap: 8px !important;
  }

  /* Текст внутри плиток теперь можно сделать чуть крупнее (было 11px) */
  .hk-tile__info b {
    font-size: 12.5px !important; 
  }
  .hk-tile__info span {
    font-size: 10px !important;
  }

  /* Иконки тоже делаем чуть больше */
  .hk-tile__ico {
    width: 32px !important;
    height: 32px !important;
  }
  .hk-tile__ico svg {
    width: 16px !important;
    height: 16px !important;
  }

  /* Увеличиваем цифры в больших плитках */
  .hk-tile__value {
    font-size: 36px !important; 
  }
  .hk-tile--warm .hk-tile__value {
    font-size: 34px !important;
  }
}
/* =========================================================
   КАСТОМНЫЕ SVG-ИКОНКИ ВМЕСТО ЭМОДЗИ
   ========================================================= */
.card__icon svg,
.control__icon svg,
.s-tab__icon svg,
.comp-card__icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent); /* Желтый цвет бренда */
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(255,212,0,.25)); /* Легкое свечение */
}

/* Для мобильной версии делаем их чуть меньше */
@media (max-width: 768px) {
  .card__icon svg, .control__icon svg, .s-tab__icon svg {
    width: 28px;
    height: 28px;
  }
}
/* =========================================================
   ПРЕМИАЛЬНЫЕ DUOTONE-ИКОНКИ (СТИЛЬ SMART HOME)
   ========================================================= */

/* Создаем подложку под иконку */
.card__icon,
.control__icon,
.comp-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.1), rgba(255, 212, 0, 0.02));
  border: 1px solid rgba(255, 212, 0, 0.2);
  border-radius: 16px;
  margin-bottom: 20px;
  box-shadow: inset 0 0 20px rgba(255, 212, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* При наведении на карточку подложка загорается ярче */
.card:hover .card__icon,
.control:hover .control__icon {
  background: linear-gradient(135deg, rgba(255, 212, 0, 0.2), rgba(255, 212, 0, 0.05));
  border-color: rgba(255, 212, 0, 0.5);
  box-shadow: inset 0 0 30px rgba(255, 212, 0, 0.1), 0 10px 30px rgba(255, 212, 0, 0.15);
  transform: translateY(-3px);
}

/* Стили для самих SVG (сброс эмодзи) */
.card__icon svg,
.control__icon svg,
.comp-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Заливка (Fill) для внутренних частей иконки */
.icon-fill {
  fill: rgba(255, 212, 0, 0.2); /* Полупрозрачный желтый */
}

/* Для мобилки делаем подложку чуть меньше */
@media (max-width: 768px) {
  .card__icon, .control__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .card__icon svg, .control__icon svg {
    width: 24px;
    height: 24px;
  }
}
/* =========================================================
   НОВЫЙ ЛОГОТИП (ИСПРАВЛЕНИЕ РАЗМЕРА И ФОНА)
   ========================================================= */

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo__img {
  height: 100px; /* Увеличиваем высоту, чтобы текст читался */
  width: auto;
  max-width: 850px; /* Ограничиваем ширину, чтобы не перекрывать меню */
  display: block;
  object-fit: contain;
  
  /* МАГИЯ: Это свойство сделает черный фон картинки прозрачным на темной шапке */
  mix-blend-mode: screen; 
}

/* В подвале логотип можно сделать чуть крупнее */
.footer .logo__img {
  height: 100px; 
  max-width: 560px;
}

/* Адаптив для мобильных телефонов */
@media (max-width: 325px) {
  .logo__img {
    height: 8px; /* На телефоне уменьшаем, чтобы влезало в шапку */
    max-width: 10px;
  }
  .footer .logo__img {
    height: 8px;
    max-width: 10px;
  }
}

/* =========================================================
   ФУТЕР В ОДНУ СТРОКУ (ИСПРАВЛЕННЫЙ)
   ========================================================= */

.footer__inner {
  display: flex !important;
  flex-direction: row !important; 
  justify-content: space-between !important; 
  align-items: center !important;
  flex-wrap: wrap !important; /* Разрешаем перенос только если экран слишком узкий */
  gap: 16px !important;
  text-align: left !important;
}

/* Блок логотипа и партнера */
.footer__brand {
  display: flex !important;
  flex-direction: row !important; 
  align-items: center !important;
  gap: 32px !important; /* Отступ между логотипом и Wirenboard */
  margin-bottom: 0 !important;
}

/* Wirenboard: текст и логотип в одну строку */
.footer__partner {
  display: flex !important;
  flex-direction: column !important; /* Текст сверху, логотип снизу */
  align-items: flex-start !important; /* Прижимаем к левому краю */
  gap: 8px !important; /* Отступ между текстом и логотипом */
  white-space: nowrap !important;
  margin-top: 0 !important;
}

.footer__partner img {
  height: 36px !important;
  margin: 0 !important;
}

/* Запрещаем ломаться остальному тексту */
.footer__links, 
.footer__copy, 
.footer__socials {
  margin: 0 !important;
  white-space: nowrap !important; /* Текст всегда в одну строку */
}

.footer__links a {
  font-size: 13px !important;
}

.footer__copy {
  font-size: 13px !important;
  color: var(--muted) !important;
}

.footer__socials {
  display: flex !important;
  gap: 20px !important;
}

/* =========================================================
   ВОЗВРАЩАЕМ СТОЛБИК ДЛЯ МОБИЛЬНЫХ (чтобы не сломалось)
   ========================================================= */
@media (max-width: 992px) {
  .footer__inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 24px;
  }
  
  .footer__brand {
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
  }
  
  .footer__partner {
    align-items: center !important;
    text-align: center !important;
  }
  
  .footer__links, 
  .footer__socials {
    flex-direction: column !important;
    gap: 10px !important;
  }
}
/* =========================================================
   ПОДНИМАЕМ ТЕКСТ В HERO-СЕКЦИИ ВЫШЕ
   ========================================================= */

.hero {
  padding-top: 40px !important; /* Уменьшаем отступ сверху (было около 90px) */
  padding-bottom: 60px !important;
}

/* Если используется Grid-сетка, выравниваем элементы по верху, а не по центру */
.hero__inner {
  align-items: start !important; 
  padding-top: 10px !important;
}

/* Корректируем отступ для мобильных, чтобы тоже было выше */
@media (max-width: 768px) {
  .hero {
    padding-top: 20px !important;
  }
}
/* =========================================================
   БОЛЬШИЕ ЦЕНТРИРОВАННЫЕ 3D-ИКОНКИ
   ========================================================= */

/* Контейнер для иконки */
.card__icon,
.control__icon {
  display: flex !important;
  justify-content: center !important; /* Центрируем по горизонтали */
  align-items: center !important;
  width: 100% !important;
  height: auto !important;
  background: transparent !important; /* Убираем старую подложку */
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 24px !important; /* Отступ до заголовка */
}

/* Сама картинка */
.card__icon img,
.control__icon img {
  width: 150% !important; /* Картинка растягивается на всю ширину колонки */
  max-width: 340px !important; /* Но не становится гигантской */
  height: auto !important;
  object-fit: contain !important; /* Сохраняем пропорции */
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)); /* Легкая тень для объёма */
  transition: transform 0.3s ease;
}

/* Легкая анимация при наведении на карточку */
.card:hover .card__icon img,
.control:hover .control__icon img {
  transform: translateY(-5px) scale(1.05);
}

/* Мобильная версия: чуть уменьшаем, чтобы не занимали пол-экрана */
@media (max-width: 768px) {
  .card__icon img,
  .control__icon img {
    max-width: 100px !important;
  }
}
/* =========================================================
   ЦЕНТРИРОВАНИЕ ТЕКСТА В КАРТОЧКАХ УСТРОЙСТВ
   ========================================================= */

#catalog .card {
  text-align: center !important; /* Центрируем весь текст внутри карточки */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* Страхуемся, чтобы всё встало ровно */
}

#catalog .card__title {
  text-align: center !important;
  width: 100%;
}

#catalog .card__text {
  text-align: center !important;
  width: 100%;
}
/* =========================================================
   ВЫРАВНИВАНИЕ КАРТОЧЕК В БЛОКЕ "УСТРОЙСТВА"
   ========================================================= */

#catalog .card {
  justify-content: flex-start !important; /* Прижимаем всё к верху карточки */
}

/* 1. Выравниваем иконки по нижнему краю */
#catalog .card__icon {
  height: 90px !important; /* Фиксированная высота контейнера для иконки */
  display: flex !important;
  align-items: flex-end !important; /* Иконки прижимаются к низу, создавая ровную линию */
  justify-content: center !important;
  margin-bottom: 24px !important;
}

#catalog .card__icon img,
#catalog .card__icon svg {
  max-height: 70px !important; /* Ограничиваем максимальную высоту иконки */
  width: auto !important;
  object-fit: contain !important;
}

/* 2. Выравниваем заголовки */
#catalog .card__title {
  min-height: 52px !important; /* Фиксированная высота для заголовка (вмещает 2 строки) */
  display: flex !important;
  align-items: center !important; /* Центрируем текст по вертикали */
  justify-content: center !important;
  margin-bottom: 12px !important;
}

/* 3. Выравниваем текст */
#catalog .card__text {
  margin: 0 !important;
}
/* =========================================================
   УМЕНЬШЕНИЕ IPHONE И ВНУТРЕННИХ ЭЛЕМЕНТОВ (ДЕСКТОП/ПЛАНШЕТ)
   ========================================================= */

/* 1. Уменьшаем сам корпус телефона */
.iphone__frame {
  width: 280px !important;  /* Было 330px */
  height: 580px !important; /* Было 680px */
  border-radius: 48px !important; /* Пропорционально уменьшаем скругление */
}

/* 2. Уменьшаем сетку и отступы внутри */
.hk-mosaic {
  /* Уменьшаем высоту рядов */
  grid-template-rows: repeat(8, 40px) !important; 
  gap: 6px !important;
  padding: 0 16px 70px !important;
}

/* 3. Уменьшаем плитки */
.hk-tile {
  padding: 10px !important;
  border-radius: 18px !important;
  gap: 8px !important;
}

/* 4. Уменьшаем иконки внутри плиток */
.hk-tile__ico {
  width: 32px !important;
  height: 32px !important;
}
.hk-tile__ico svg {
  width: 16px !important;
  height: 16px !important;
}

/* 5. Уменьшаем текст, чтобы он помещался целиком */
.hk-tile__info b {
  font-size: 12px !important; /* Уменьшаем заголовок */
  white-space: normal !important; /* Разрешаем перенос, если не влезает */
  display: -webkit-box;
  -webkit-line-clamp: 1; /* Обрезаем только если совсем длинно */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hk-tile__info span {
  font-size: 10px !important; /* Уменьшаем подпись */
}

/* 6. Уменьшаем большие плитки (Тёплая стена, Тёплый пол) */
.hk-tile--big {
  padding: 14px !important;
}
.hk-tile__value {
  font-size: 34px !important;
}
.hk-tile--warm .hk-tile__value {
  font-size: 30px !important;
}
.hk-tile__bottom b { font-size: 12px !important; }
.hk-tile__bottom span { font-size: 10px !important; }

/* 7. Уменьшаем нижнее меню и верхнюю шапку */
.hk-nav { padding: 10px 16px 6px !important; }
.hk-nav__pill { padding: 6px 12px !important; font-size: 13px !important; }
.hk-nav__btn { height: 34px !important; min-width: 44px !important; }
.hk-title { font-size: 20px !important; padding: 4px 18px 10px !important; }

.hk-tabbar {
  bottom: 18px !important;
  left: 12px !important;
  right: 12px !important;
  padding: 4px !important;
}
.hk-tab__label { font-size: 8px !important; }
/* =========================================================
   БЛОК "УСТРОЙСТВА": СЕТКА 2Х2, БЕЗ ФОНА, КРУПНЫЕ ИКОНКИ
   ========================================================= */

/* 1. Сетка как в "Способах управления": 4 в ряд на десктопе */
#catalog .grid--4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  max-width: none;
  margin: 0;
}

/* 2. Убираем фон, рамки и выделение у карточек */
#catalog .card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

/* Убираем эффекты при наведении (поднятие, свечение) */
#catalog .card:hover {
  transform: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* 3. Место под будущие 3D-картинки (делаем просторно) */
#catalog .card__icon {
  height: 140px !important; /* Высота контейнера под картинку */
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Стили для будущих картинок */
#catalog .card__icon img {
  max-height: 120px !important; /* Картинка будет крупной */
  max-width: 120px !important;
  width: auto !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4)); /* Тень для объема */
}

/* 4. Увеличиваем шрифты */
#catalog .card__title {
  font-size: 24px !important; /* Крупный заголовок */
  margin-bottom: 12px !important;
  font-weight: 800;
}

#catalog .card__text {
  font-size: 16px !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
  max-width: 320px; /* Чтобы текст не растягивался слишком широко */
}

/* 5. Адаптив для мобильных — 2 в ряд, как в "Способах управления" */
@media (max-width: 768px) {
  #catalog .grid--4 {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
}
/* =========================================================
   ТРИ ИКОНКИ В КАРТОЧКЕ "ГОЛОС"
   ========================================================= */

/* Контейнер для группы иконок */
.control__icon--multi {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important; /* Расстояние между иконками */
  height: 100px !important; /* Оставляем высоту как у других карточек */
  width: 100% !important;
}

/* Сами картинки */
.control__icon--multi img {
  width: auto !important;
  height: 45px !important; /* Делаем их меньше, чтобы все три влезли */
  object-fit: contain !important;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.3)); /* Легкая тень для объема */
}

/* Адаптив для мобильных (чуть уменьшаем) */
@media (max-width: 768px) {
  .control__icon--multi img {
    height: 38px !important;
  }
}
/* =========================================================
   ФИКС ИКОНОК В БЛОКЕ "СПОСОБЫ УПРАВЛЕНИЯ" НА МОБИЛЬНЫХ
   ========================================================= */
@media (max-width: 768px) {
  
  /* 1. Ограничиваем общую высоту контейнера для всех иконок */
  .control__icon,
  .control__icon--multi {
    height: 60px !important; /* Делаем контейнер компактным */
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    overflow: hidden !important; /* Отрезаем всё, что пытается вылезти */
  }

  /* 2. Жестко ограничиваем размеры самих картинок */
  .control__icon img,
  .control__icon--multi img {
    height: 100% !important; /* Картинка занимает всю высоту контейнера */
    max-height: 50px !important; /* Но не больше 50 пикселей */
    width: auto !important;
    max-width: 100% !important; /* Чтобы не вылезала по ширине */
    object-fit: contain !important; /* Сохраняем пропорции */
  }

  /* 3. Отдельно для тройной иконки "Голос" (чтобы они были поменьше) */
  .control__icon--multi img {
    height: 32px !important; 
    max-height: 32px !important;
  }

  /* 4. Уменьшаем отступы в карточке, чтобы всё влезло */
  .control {
    padding: 16px 12px !important;
  }
  
  .control__title {
    font-size: 16px !important;
    margin-bottom: 8px !important;
  }
  
  .control__list li {
    font-size: 11px !important;
    padding-left: 14px !important;
    line-height: 1.3 !important;
  }
}
/* =========================================================
   КНОПКА "НАВЕРХ" С КРУГОВЫМ ПРОГРЕССОМ
   ========================================================= */

.scroll-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  
  /* Скрываем по умолчанию */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Класс для появления (добавляется через JS) */
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(255, 212, 0, 0.1);
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 212, 0, 0.2);
}

.scroll-top:active {
  transform: translateY(0) scale(0.95);
}

/* Круговой прогресс */
.progress-ring {
  position: absolute;
  top: -1px;
  left: -1px;
  transform: rotate(-90deg); /* Чтобы полоска начиналась сверху */
}

.progress-ring__progress {
  /* Длина окружности: 2 * ПИ * радиус(21) ≈ 131.9 */
  stroke-dasharray: 131.9;
  stroke-dashoffset: 131.9;
  transition: stroke-dashoffset 0.1s linear;
}

/* Стрелка */
.scroll-top__arrow {
  width: 20px;
  height: 20px;
  color: var(--accent);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
  /* Пересчитываем размеры для мобилки, если меняли */
  .progress-ring {
    width: 44px;
    height: 44px;
  }
  .progress-ring circle {
    r: 18;
    cx: 22;
    cy: 22;
  }
  .progress-ring__progress {
    stroke-dasharray: 113.1; /* 2 * ПИ * 18 */
    stroke-dashoffset: 113.1;
  }
  .scroll-top__arrow {
    width: 18px;
    height: 18px;
  }
}
/* Стиль для картинки обложки в карусели */
.project__cover {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Заполняет блок без искажений */
  object-position: center;
  transition: transform 0.4s ease;
}

.project:hover .project__cover {
  transform: scale(1.05); /* Легкий зум при наведении */
}

/* Убираем старую иконку, если она есть */
.project__img img + .project__icon {
  display: none;
}
/* =========================================================
   ФИКС КАРТИНКИ В КАРУСЕЛИ НА МОБИЛЬНЫХ
   ========================================================= */
@media (max-width: 768px) {
  .project__img {
    position: relative !important;
    height: 200px !important;
    display: block !important; /* Отключаем grid, чтобы картинка не сжималась */
    background: #111 !important; /* Темный фон на случай загрузки */
  }

  .project__cover {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Заполняет весь блок */
    display: block !important;
    z-index: 1;
  }

  /* Если картинки нет, чтобы иконка стояла по центру */
  .project__icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1;
  }

  /* Тег "Квартира" должен быть поверх картинки */
  .project__tag {
    position: absolute !important;
    top: 16px !important;
    left: 16px !important;
    z-index: 10 !important; 
  }
}
/* =========================================================
   ШАПКА И ВЫПАДАЮЩЕЕ МЕНЮ (ОБНОВЛЕННОЕ)
   ========================================================= */

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Левая часть (Бургер + Лого) */
.header__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Правая часть (Ссылки + Кнопка) */
.header__right {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav--desktop {
  display: flex;
  gap: 24px;
}

/* --- Иконка бургера (Уменьшенная) --- */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px; /* Расстояние между полосками */
  width: 22px; /* Ширина полосок */
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px; /* Толщина полоски */
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Анимация бургера в крестик */
.burger.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- ВЫПАДАЮЩЕЕ МЕНЮ --- */
/* --- ВЫПАДАЮЩЕЕ МЕНЮ (ЧЕРНОЕ, БЕЗ ПРОЗРАЧНОСТИ) --- */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 24px;
  width: 280px;
  
  /* Плотный черный фон (как у карточек) */
  background: #161616; 
  border: 1px solid var(--border); /* Темная рамка */
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6); /* Глубокая тень */
  
  /* Скрыто по умолчанию */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  padding: 16px 20px;
}

.dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Меняем цвет текста ссылок на белый/светлый */
.dropdown-menu__link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 15px; 
  font-weight: 600;
  color: #fff; /* Белый текст */
  text-decoration: none;
  padding: 10px 0;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: .2s;
  font-family: inherit;
}

/* При наведении делаем текст желтым */
.dropdown-menu__link:hover {
  color: var(--accent);
  padding-left: 5px;
}

/* Стили для подменю объектов */
.dropdown-menu__item {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.dropdown-menu__submenu {
  display: flex;
  flex-direction: column;
  padding-left: 12px;
  border-left: 1px solid var(--border); /* Темная линия */
  
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  margin-top: 0;
  margin-bottom: 0;
}

/* При наведении на блок с текстом */
.dropdown-menu__item:hover .dropdown-menu__submenu {
  max-height: 400px;
  opacity: 1;
  margin-top: 5px;
  margin-bottom: 10px;
}

/* Стрелочка в подменю */
.dropdown-menu__toggle .arrow {
  transition: transform 0.3s;
  font-size: 12px;
  color: var(--muted);
}

.dropdown-menu__item:hover .arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

/* Ссылки внутри подменю */
.dropdown-menu__submenu a {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
  text-decoration: none;
  transition: .2s;
}

.dropdown-menu__submenu a:hover {
  color: var(--accent);
}
/* ===== Баннер «сайт на этапе разработки» ===== */
.dev-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffd400;
  color: #111;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
/* Шапка цепляется под баннером при прокрутке */
.header { top: 36px; }


/* ###########################################################
   ТЕМА 2026 — светлая премиальная. Перекрывает старые стили.
   ########################################################### */
:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #171410;
  --ink-soft: #3E3A32;
  --muted: #6B675E;
  --line: #E7E3DA;
  --accent: #F5C518;
  --accent-deep: #D9A404;
  --dark: #14120D;
  --dark-soft: #201D16;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(23,20,16,.05), 0 4px 16px rgba(23,20,16,.05);
  --shadow-md: 0 12px 40px rgba(23,20,16,.10);
  --font: 'Manrope', -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--ink); }

.container { max-width: 1200px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 15px; font-weight: 700; letter-spacing: .1px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
  text-decoration: none;
}
.btn--accent { background: var(--ink); color: #fff; }
.btn--accent:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: #CFCCC2; }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); transform: translateY(-2px); }
.btn--full { width: 100%; }

/* ---------- Баннер разработки ---------- */
.dev-banner {
  position: sticky; top: 0; z-index: 1000;
  background: var(--ink); color: var(--accent);
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  text-align: center; padding: 8px 12px;
}

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 34px; z-index: 100;
  background: rgba(247,245,240,.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header__cta { padding: 11px 22px; font-size: 14px; }
.nav__link {
  color: var(--ink-soft); font-size: 15px; font-weight: 600;
  position: relative; padding: 6px 2px;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--accent-deep);
  transition: right .3s ease;
}
.nav__link:hover::after, .nav__link.nav__link--active::after { right: 0; }
.burger span { background: var(--ink); }
.dropdown-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.dropdown-menu__link { color: var(--ink-soft); }
.dropdown-menu__link:hover { color: var(--ink); background: #F4F1E9; }
.dropdown-menu__toggle { color: var(--ink-soft); }

/* ---------- Секции и заголовки ---------- */
.section { padding: 104px 0; }
.section--alt { background: #F1EEE6; }
.section--dark {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(245,197,24,.07), transparent 60%),
    var(--dark);
  color: #F3F0E8;
}
.section__title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800; letter-spacing: -1.2px; line-height: 1.08;
  color: inherit;
}
.section--dark .section__title { color: #fff; }
.section__subtitle { color: var(--muted); font-size: 17px; margin-top: 16px; }
.section--dark .section__subtitle { color: #A8A398; }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 18px;
}
.section--dark .section-label { color: var(--accent); }
.section-label::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Hero ---------- */
.hero-main {
  position: relative;
  min-height: 720px;
  display: flex; align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-main__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center right;
}
.hero-main::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(247,245,240,.97) 0%, rgba(247,245,240,.9) 34%, rgba(247,245,240,.45) 58%, rgba(247,245,240,0) 78%);
}
.hero-main::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(180deg, transparent, rgba(23,20,16,.18));
}
.hero-main__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 48px; align-items: center;
  padding: 96px 0 120px;
  width: 100%;
}
.hero-main__title {
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 800; letter-spacing: -2px; line-height: 1.02;
  margin: 18px 0 22px;
}
.hero-main__title .hl { background: linear-gradient(180deg, transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%); }
.hero-main__text { font-size: 18px; line-height: 1.65; color: var(--ink-soft); max-width: 540px; }
.hero-main__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-main__stats {
  display: flex; gap: 40px; list-style: none; margin: 44px 0 0; padding: 26px 0 0;
  border-top: 1px solid rgba(23,20,16,.14);
  max-width: 560px;
}
.hero-main__stats b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.hero-main__stats span { font-size: 13.5px; color: var(--muted); }

/* UI-панель сценария */
.hero-panel {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(23,20,16,.25);
  padding: 26px 28px;
  max-width: 400px;
  justify-self: end;
  width: 100%;
}
.hero-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
  padding-bottom: 16px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.hero-panel__head b { color: var(--ink); font-size: 21px; letter-spacing: -.3px; text-transform: none; font-weight: 800; display: block; margin-top: 4px; }
.hero-panel__dot { width: 10px; height: 10px; border-radius: 50%; background: #37C871; box-shadow: 0 0 0 4px rgba(55,200,113,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(55,200,113,.06); } }
.hero-panel__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-soft);
}
.hero-panel__row:last-child { border-bottom: 0; }
.hero-panel__row b { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.hero-panel__bar { flex: 1; height: 5px; border-radius: 99px; background: #EDEAE2; overflow: hidden; margin: 0 14px; }
.hero-panel__bar i { display: block; height: 100%; width: 38%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); animation: bar 5s ease-in-out infinite alternate; }
@keyframes bar { to { width: 64%; } }
.hero-panel__foot { margin-top: 14px; font-size: 12.5px; color: var(--muted); letter-spacing: .4px; }

/* ---------- Полоса доверия ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0; flex-wrap: wrap; }
.trust__title { font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.trust__logo { height: 22px; width: auto; }
.trust__items { display: flex; gap: 12px; flex-wrap: wrap; }
.trust__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
}
.trust__chip img { height: 20px; width: auto; }

/* ---------- Карточки направлений (бывшие .control) ---------- */
.control {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.control:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #D8D3C6; }
.control__link { display: block; text-decoration: none; color: inherit; }
.control__icon {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #FFDD55, var(--accent));
  border-radius: 16px;
  margin-bottom: 20px;
  color: var(--ink);
}
.control__icon svg { width: 28px; height: 28px; }
.control__text { color: var(--muted); font-size: 15px; line-height: 1.55; }
.control__list { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.control__list li {
  position: relative; padding: 5px 0 5px 26px;
  color: var(--ink-soft); font-size: 14.5px; font-weight: 600;
}
.control__list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent-deep); border-bottom: 2px solid var(--accent-deep);
  transform: rotate(-45deg);
}
.control__more { display: inline-block; margin-top: 18px; font-weight: 800; font-size: 14px; color: var(--ink); }
.control__more::after { content: " →"; color: var(--accent-deep); }

/* ---------- План сценариев (тёмная секция) ---------- */
.scenarios { display: grid; grid-template-columns: 330px 1fr; gap: 40px; align-items: start; }
.scenarios__tabs { flex-direction: column; }
.s-tab {
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px 16px;
  transition: background .25s ease, border-color .25s ease;
}
.s-tab__body b { color: #F3F0E8; font-size: 15.5px; }
.s-tab__body span { color: #9B968B; font-size: 13px; }
.s-tab:hover { border-color: rgba(255,255,255,.3); }
.s-tab--active { background: rgba(245,197,24,.1); border-color: rgba(245,197,24,.5); }
.scenarios__plan { position: relative; }
.plan {
  position: relative;
  width: 100%;
  aspect-ratio: 1200 / 960;
  background:
    radial-gradient(ellipse at 30% 15%, rgba(245,197,24,.05), transparent 60%),
    linear-gradient(160deg, #1B1913 0%, #131109 55%, #0C0A06 100%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0,0,0,.45);
  transition: background 1.5s ease;
}
.plan__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 3D-управление и подсказка */
.plan3d-ui {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.plan3d-buttons {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}
.plan3d-buttons button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(20,19,15,.72);
  color: #EDE8DA;
  font: 700 12px/1 Manrope, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: border-color .2s, color .2s, background .2s;
}
.plan3d-buttons button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(20,19,15,.9);
}
.plan3d-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(20,19,15,.65);
  color: rgba(237,232,218,.72);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px;
  backdrop-filter: blur(8px);
  opacity: 1;
  transition: opacity .5s ease, transform .5s ease;
}
.plan3d-hint.is-hidden { opacity: 0; transform: translateY(6px); }
@media (max-width: 768px) {
  .plan3d-hint { display: none; }
  .plan3d-buttons { top: 10px; right: 10px; }
  .plan3d-buttons button { padding: 7px 10px; font-size: 11px; }
}
.plan__hint {
  margin-top: 18px;
  background: rgba(245,197,24,.07);
  border: 1px solid rgba(245,197,24,.22);
  color: #E8E4D8;
}
.plan__hint b { color: var(--accent); }
.circadian-badge, .climate-badge {
  background: rgba(18,16,10,.9);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff;
}
.circadian-badge { border-color: rgba(245,197,24,.4); color: var(--accent); }
.climate-badge { border-color: rgba(110,231,167,.5); color: #6EE7A7; }

/* ---------- Проекты / карусель ---------- */
.project {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
  display: flex; flex-direction: column;
  height: 100%;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.project__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #ECE9E0; }
.project__cover { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project__cover { transform: scale(1.05); }
.project__icon {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 64px;
  background: linear-gradient(135deg, #FFDD55, var(--accent));
}
.project__tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(23,20,16,.82); color: #fff;
  backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.project__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project__title { font-size: 18.5px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }
.project__text { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.project__meta { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 16px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.carousel { position: relative; }
.carousel__viewport { overflow: hidden; border-radius: 4px; }
.carousel__track { display: flex; gap: 24px; transition: transform .55s cubic-bezier(.25,.8,.3,1); }
.carousel__item { flex: 0 0 calc((100% - 48px) / 3); }
.carousel__arrow {
  position: absolute; top: 42%; z-index: 5;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  transition: background .25s ease, transform .25s ease;
}
.carousel__arrow:hover { background: var(--accent); transform: translateY(-2px); }
.carousel__arrow--prev { left: -26px; }
.carousel__arrow--next { right: -26px; }
.carousel__arrow svg { width: 22px; height: 22px; }
.carousel__arrow:disabled { opacity: .35; pointer-events: none; }
.carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.carousel__dot { width: 8px; height: 8px; border-radius: 99px; background: #CFCCC2; border: 0; padding: 0; cursor: pointer; transition: background .25s ease, width .25s ease; }
.carousel__dot.is-active { background: var(--ink); width: 26px; }
.carousel__loading { padding: 60px 0; text-align: center; color: var(--muted); width: 100%; }

/* ---------- Калькулятор ---------- */
.calc {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 32px; align-items: start;
}
.calc__form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-sm); }
.calc__group { margin-bottom: 30px; }
.calc__group:last-child { margin-bottom: 0; }
.calc__label { display: block; font-size: 15px; font-weight: 800; margin-bottom: 14px; color: var(--ink); }
.calc__area-value { color: var(--accent-deep); }
.calc__options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calc__radio input { position: absolute; opacity: 0; pointer-events: none; }
.calc__radio-box {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 14px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--bg);
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.calc__radio input:checked + .calc__radio-box { border-color: var(--ink); background: #FFFDF4; box-shadow: 0 0 0 3px rgba(245,197,24,.25); }
.calc__radio-icon { font-size: 20px; line-height: 1; }
.calc__range { width: 100%; accent-color: var(--ink); height: 34px; cursor: pointer; }
.calc__range-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.calc__checkboxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc__check input { position: absolute; opacity: 0; pointer-events: none; }
.calc__check-box {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
  cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
.calc__check input:checked + .calc__check-box { border-color: var(--ink); background: #FFFDF4; box-shadow: 0 0 0 3px rgba(245,197,24,.25); }
.calc__result {
  background: var(--dark); color: #F3F0E8;
  border-radius: var(--radius);
  padding: 32px 30px;
  position: sticky; top: 120px;
}
.calc__result-label { font-size: 13px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: #A8A398; }
.calc__result-price { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; margin: 8px 0 4px; color: #fff; font-variant-numeric: tabular-nums; }
.calc__result-unit { color: var(--accent); font-size: 30px; }
.calc__result-note { font-size: 13px; color: #9B968B; }
.calc__result-list { margin: 22px 0; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); list-style: none; }
.calc__result-list li { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; font-size: 14px; color: #CFCBC1; }
.calc__result-list b { color: #fff; font-variant-numeric: tabular-nums; }
.calc__result-meta { display: grid; gap: 8px; margin-bottom: 22px; }
.calc__result-meta-label { font-size: 12px; color: #9B968B; text-transform: uppercase; letter-spacing: 1px; }
.calc__result-meta-value { font-size: 14.5px; font-weight: 700; color: #F3F0E8; }
.calc__cta { width: 100%; }
/* Калькулятор: дочистка светлой темы (старые checked-правила тянули белый текст) */
.calc__radio input:checked + .calc__radio-box,
.calc__check input:checked + .calc__check-box { color: var(--ink); }
.calc__radio input:checked + .calc__radio-box small,
.calc__check input:checked + .calc__check-box small { color: var(--muted); }
.calc__range { background: var(--line); }
.calc__range::-webkit-slider-thumb { border-color: var(--bg); box-shadow: 0 0 0 3px rgba(245,197,24,.3); }
.calc__range::-moz-range-thumb { border-color: var(--bg); box-shadow: 0 0 0 3px rgba(245,197,24,.3); }

/* ---------- Пакеты ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pricing__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.pricing__item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pricing__item--featured { background: var(--dark); color: #F3F0E8; border-color: var(--dark); position: relative; overflow: hidden; }
.pricing__item--featured::before {
  content: "Рекомендуем";
  position: absolute; top: 20px; right: -34px;
  background: var(--accent); color: var(--ink);
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 40px; transform: rotate(38deg);
}
.pricing__name { font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.pricing__item--featured .pricing__name { color: var(--accent); }
.pricing__price { font-size: 30px; font-weight: 800; letter-spacing: -.8px; margin: 12px 0 4px; }
.pricing__per { font-size: 13.5px; color: var(--muted); }
.pricing__item--featured .pricing__per { color: #9B968B; }
.pricing__list { list-style: none; margin: 22px 0 28px; padding: 18px 0 0; border-top: 1px solid var(--line); flex: 1; }
.pricing__item--featured .pricing__list { border-color: rgba(255,255,255,.14); }
.pricing__list li { position: relative; padding: 6px 0 6px 26px; font-size: 14.5px; color: var(--ink-soft); }
.pricing__item--featured .pricing__list li { color: #D8D4C9; }
.pricing__list li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent-deep); border-bottom: 2px solid var(--accent-deep);
  transform: rotate(-45deg);
}
.pricing__item--featured .pricing__list li::before { border-color: var(--accent); }

/* ---------- Этапы работы ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.steps__item { position: relative; padding: 26px 0 26px 84px; border-bottom: 1px solid var(--line); }
.steps__num {
  position: absolute; left: 0; top: 22px;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 17px; font-weight: 800; color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}
.steps__title { font-size: 17px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.2px; }
.steps__text { font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* ---------- Основатель ---------- */
.founder { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.founder__photo {
  position: relative; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, #26221A, #14120D);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.founder__photo::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 80% 0%, rgba(245,197,24,.22), transparent 55%);
}
.founder__initials { font-size: 84px; font-weight: 800; color: var(--accent); letter-spacing: -2px; }
.founder__badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-radius: 14px; padding: 12px 16px;
  font-size: 13px; font-weight: 700; color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.founder__badge b { display: block; font-size: 15px; }
.founder__text { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin: 20px 0 26px; max-width: 620px; }
.founder__text b { color: var(--ink); }
.founder__facts { display: flex; gap: 34px; flex-wrap: wrap; }
.founder__facts b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.founder__facts span { font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 44px 22px 0;
  font-size: 17px; font-weight: 700; color: var(--ink);
  position: relative;
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 26px; font-weight: 400; color: var(--accent-deep);
  transition: transform .3s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details[open] summary { color: var(--accent-deep); }
.faq__body { padding: 0 40px 24px 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* ---------- Контакты и форма ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 700; color: var(--ink); }
.contact__list a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--accent); transition: border-color .2s ease; }
.contact__list a:hover { border-color: var(--ink); }
.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 32px; box-shadow: var(--shadow-sm);
  display: grid; gap: 18px;
}
.form__field span { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.form__field input, .form__field select, .form__field textarea {
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form__field input:focus, .form__field select:focus, .form__field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(245,197,24,.25);
}
.form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form__consent input { margin-top: 3px; accent-color: var(--ink); }
.form__consent a { color: var(--ink); }
.form__note { font-size: 12.5px; color: var(--muted); text-align: center; margin: 0; }
.form__success {
  background: #EDF8F0; border: 1px solid #BFE6CC; color: #1E7A3C;
  border-radius: 12px; padding: 18px 20px; font-weight: 700; text-align: center;
}

/* ---------- Футер ---------- */
.footer { background: var(--dark); color: #CFCBC1; }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px; padding: 72px 0 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 18px; }
.footer__desc { font-size: 14.5px; line-height: 1.65; color: #9B968B; max-width: 300px; }
.footer__title { font-size: 13px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase; color: #7D7869; margin-bottom: 18px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: #CFCBC1; text-decoration: none; font-size: 15px; font-weight: 600; transition: color .2s ease; }
.footer__col a:hover { color: var(--accent); }
.footer__contact { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__contact a { color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; }
.footer__contact a:hover { color: var(--accent); }
.footer__contact span { color: #9B968B; font-size: 13.5px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13.5px; color: #9B968B;
}
.footer__bottom a { color: #CFCBC1; text-decoration: none; }
.footer__bottom a:hover { color: var(--accent); }
.footer__socials { display: flex; gap: 18px; }
.footer__copy { margin: 0; }
.footer__partner { display: inline-flex; align-items: center; gap: 10px; color: #9B968B; font-size: 13px; }
.footer__partner img { height: 18px; width: auto; }

/* ---------- Cookie / наверх ---------- */
.cookie {
  background: rgba(20,18,13,.96); color: #E8E4D8;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.cookie__content a { color: var(--accent); }
.cookie__btn { background: var(--accent); color: var(--ink); }
.cookie__btn:hover { background: #fff; }
.scroll-top {
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); color: var(--ink);
  transition: background .25s ease, transform .25s ease;
}
.scroll-top:hover { background: var(--accent); transform: translateY(-3px); }
.progress-ring__track { stroke: #EDEAE2; }

/* ---------- Внутренние страницы ---------- */
.page-hero {
  padding: 84px 0 64px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.page-hero__title { color: var(--ink); font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -1.6px; line-height: 1.12; }
.page-hero__text { color: var(--muted); margin-top: 14px; }
.breadcrumbs { color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: inherit;
}
.card:hover { border-color: #D8D3C6; box-shadow: var(--shadow-md); }
.card__title { color: var(--ink); }
.card__text { color: var(--muted); }
.control__title { color: var(--ink) !important; }
.grid { display: grid; gap: 24px; }
.accent { color: var(--accent-deep); }

/* Docs (design.html) */
.docs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.docs-sidebar { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; position: sticky; top: 120px; }
.docs-nav__title { font-size: 12px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.docs-nav__link { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 600; text-decoration: none; }
.docs-nav__link:hover { background: #F1EEE6; color: var(--ink); }
.doc-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 24px; }
.doc-title { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.doc-text { color: var(--ink-soft); line-height: 1.7; font-size: 15px; }
.doc-list { margin: 12px 0 0; padding-left: 20px; color: var(--ink-soft); }
.doc-list li { padding: 3px 0; }
.doc-image { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-top: 16px; }
.doc-image img { width: 100%; display: block; }

/* Legal (privacy) */
.legal h2 { color: var(--ink); margin: 34px 0 14px; font-size: 22px; letter-spacing: -.4px; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.75; font-size: 15px; }

/* ---------- Тултип плана ---------- */
.plan-tooltip {
  background: rgba(20,18,13,.95);
  border: 1px solid rgba(245,197,24,.35);
  color: #F3F0E8;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .hero-main__inner { grid-template-columns: 1fr; gap: 36px; padding: 72px 0 96px; }
  .hero-panel { justify-self: start; max-width: 460px; }
  .scenarios { grid-template-columns: 1fr; }
  .scenarios__tabs { flex-direction: row; overflow-x: auto; padding-bottom: 8px; }
  .s-tab { flex: 0 0 220px; }
  .carousel__item { flex: 0 0 calc((100% - 24px) / 2); }
  .founder { grid-template-columns: 1fr; gap: 36px; }
  .founder__photo { max-width: 420px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .pricing { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero-main { min-height: 0; }
  .hero-main__bg { object-position: 70% center; }
  .calc__options { grid-template-columns: 1fr 1fr; }
  .calc__checkboxes { grid-template-columns: 1fr 1fr; }
  .carousel__item { flex: 0 0 100%; }
  .carousel__arrow { display: none; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 32px; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; }
}

/* ---------- Переопределения старых блоков (порядок каскада) ---------- */
#catalog .grid--4 {
  grid-template-columns: repeat(4, 1fr) !important;
  max-width: none !important;
  margin: 0 !important;
  gap: 24px !important;
}
@media (max-width: 1100px) {
  #catalog .grid--4 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 768px) {
  #catalog .grid--4 { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .section { padding: 64px 0; }
  .hero-main__stats { gap: 22px; flex-wrap: wrap; }
  .hero-panel { display: none; }
  .header__cta { display: none; }
}

/* Логотип на тёмной плашке в светлой шапке */
.header .logo {
  display: inline-flex; align-items: center; line-height: 0;
  background: var(--ink);
  padding: 9px 16px;
  border-radius: 14px;
  transition: background .25s ease;
}
.header .logo:hover { background: #000; }
.header .logo__img { height: 46px; width: auto; display: block; }

/* Контактная информация в шапке (справа, перед кнопкой) */
.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.25;
  text-align: right;
}
.header__contacts a { text-decoration: none; }
.header__contacts .header__phone {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: .2px;
  white-space: nowrap;
}
.header__contacts .header__phone:hover { color: var(--accent-deep, #B98A00); }
.header__contacts .header__mail {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.header__contacts .header__mail:hover { color: var(--ink); }
@media (max-width: 1100px) {
  .header__contacts { display: none; }
}
/* Десктопное меню на мобильных скрыто (открывается бургер) */
@media (max-width: 768px) {
  .nav--desktop { display: none; }
}

/* ---------- Контраст: переназначение старых переменных ---------- */
:root {
  /* старые переменные теперь разрешаются в светлую тему —
     любые необновлённые правила дают тёмный текст на светлом фоне */
  --card: #FFFFFF;
  --border: #E7E3DA;
  --muted: #57544C;
}
body { color: var(--ink); }
p, li { color: inherit; }

/* Усиление читаемости текста */
.section__subtitle { color: #55524A; }
.page-hero__text { color: #4E4B44; }
.control__text, .card__text { color: #4E4B44; }
.steps__text { color: #55524A; }
.faq__body { color: #4E4B44; }
.breadcrumbs { color: #57544C; }
.breadcrumbs a { color: #57544C; }
.contact__list li { color: var(--ink); }

/* Плотнее вуаль в hero, чтобы текст не сливался с окном */
.hero-main::before {
  background: linear-gradient(90deg,
    rgba(247,245,240,1) 0%,
    rgba(247,245,240,.96) 38%,
    rgba(247,245,240,.72) 60%,
    rgba(247,245,240,.25) 80%);
}

/* Акцентный цвет — только тёмное золото, жёлтый на белом запрещён */
.accent,
h1 .accent, h2 .accent, h3 .accent,
.page-hero__title .accent, .section__title .accent, .hero-main__title .accent {
  color: var(--accent-deep) !important;
}

/* ---------- Hero: читаемость поверх фото ---------- */
/* Строка статистики — на стеклянной светлой подложке, чтобы не проваливаться в тёмные участки фото */
.hero-main__stats {
  background: rgba(247,245,240,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 18px;
  padding: 20px 24px !important;
  box-shadow: 0 10px 30px rgba(23,20,16,.12);
}
.hero-main__stats b { color: var(--ink); }
.hero-main__stats span { color: var(--muted); }
/* Прозрачная кнопка поверх фото — со светлой подложкой */
.hero-main .btn--ghost {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(23,20,16,.18);
}
/* Нижняя вуаль чуть плотнее — текст у нижнего края не сливается с фото */
.hero-main::after {
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(23,20,16,.32));
}

/* ---------- Hero: текст на сплошной панели (гарантированная читаемость) ---------- */
.hero-main__content {
  background: rgba(250,249,246,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 26px;
  padding: 44px 46px;
  box-shadow: 0 26px 70px rgba(23,20,16,.20);
  max-width: 680px;
}
.hero-main__text { color: #3E3A32; }
/* Статистика внутри панели — без отдельной подложки */
.hero-main__stats {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  box-shadow: none;
  padding: 22px 0 0 !important;
  border-top: 1px solid rgba(23,20,16,.14) !important;
}
.hero-main .btn--ghost { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 768px) {
  .hero-main__content { padding: 30px 26px; border-radius: 20px; }
}

/* ---------- Hero: оба блока — матовое стекло ---------- */
.hero-main__content {
  background: rgba(250,249,246,.72);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}
.hero-panel {
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border-color: rgba(255,255,255,.55);
}

/* ---------- Hero: ещё прозрачнее ---------- */
.hero-main__content {
  background: rgba(250,249,246,.55);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}
.hero-panel {
  background: rgba(255,255,255,.45);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

/* ---------- Типографика: уменьшенный масштаб ---------- */
body { font-size: 15px; line-height: 1.55; }

.section__title { font-size: clamp(25px, 3.2vw, 37px); letter-spacing: -1px; }
.section__subtitle { font-size: 15.5px; margin-top: 14px; }
.section-label { font-size: 12.5px; margin-bottom: 14px; }

.hero-main__title { font-size: clamp(31px, 4.4vw, 54px); letter-spacing: -1.6px; margin: 14px 0 18px; }
.hero-main__text { font-size: 16px; line-height: 1.6; }
.hero-main__stats { margin-top: 34px; }
.hero-main__stats b { font-size: 22px; }
.hero-main__stats span { font-size: 12.5px; }
.hero-panel { padding: 22px 24px; }
.hero-panel__head b { font-size: 18px; }
.hero-panel__row { padding: 11px 0; font-size: 14px; }

.page-hero { padding: 64px 0 52px; }
.page-hero__title { font-size: clamp(27px, 3.8vw, 44px); letter-spacing: -1.3px; }
.page-hero__text { font-size: 15.5px; }

.control { padding: 26px 22px; }
.control__icon { width: 50px; height: 50px; border-radius: 14px; margin-bottom: 16px; }
.control__icon svg { width: 24px; height: 24px; }
.control__text { font-size: 14px; }
.control__list { margin-top: 14px; padding-top: 12px; }
.control__list li { font-size: 13.5px; padding: 4px 0 4px 24px; }

.card__text { font-size: 14px; }
.project__title { font-size: 17px; }
.project__text { font-size: 14px; }
.project__meta { font-size: 13px; }

.calc__form { padding: 28px 26px; }
.calc__label { font-size: 14px; margin-bottom: 12px; }
.calc__radio-box { font-size: 12.5px; padding: 12px; }
.calc__check-box { font-size: 12.5px; padding: 10px 12px; }
.calc__result { padding: 26px 24px; }
.calc__result-price { font-size: 36px; }
.calc__result-list li { font-size: 13px; }
.calc__result-note { font-size: 12px; }

.pricing__item { padding: 26px 24px; }
.pricing__price { font-size: 25px; }
.pricing__per { font-size: 12.5px; }
.pricing__list li { font-size: 13.5px; }
.pricing__name { font-size: 12px; }

.steps__item { padding: 22px 0 22px 72px; }
.steps__num { width: 48px; height: 48px; font-size: 15px; top: 18px; }
.steps__title { font-size: 15.5px; }
.steps__text { font-size: 13.5px; }

.founder__text { font-size: 15.5px; margin: 16px 0 22px; }
.founder__facts b { font-size: 20px; }
.founder__facts span { font-size: 12.5px; }
.founder__initials { font-size: 64px; }

.faq summary { font-size: 15.5px; padding: 18px 40px 18px 0; }
.faq__body { font-size: 14px; padding: 0 36px 20px 0; }

.contact__list li { font-size: 15.5px; }
.form { padding: 28px 26px; gap: 15px; }
.form__field span { font-size: 12.5px; }
.form__field input, .form__field select, .form__field textarea { font-size: 14px; padding: 12px 14px; }
.form__note { font-size: 12px; }

.btn { font-size: 14px; padding: 13px 24px; }
.nav__link { font-size: 14px; }
.header__cta { font-size: 13px; padding: 10px 18px; }

.footer__col a { font-size: 14px; }
.footer__contact a { font-size: 16px; }
.footer__desc { font-size: 13.5px; }
.footer__bottom { font-size: 12.5px; }
.trust__chip { font-size: 12.5px; padding: 8px 14px; }
.trust__title { font-size: 12px; }
.breadcrumbs { font-size: 13.5px; }

/* ---------- Демо-телефон экосистем ---------- */
.demo-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.demo-copy .section-label { margin-bottom: 14px; }
.demo-copy h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -1px; margin-bottom: 14px; }
.demo-copy p { font-size: 15px; line-height: 1.7; color: #4E4B44; margin-bottom: 12px; }

.ph {
  width: 300px; margin: 0 auto;
  background: #0B0B0D; border-radius: 46px; padding: 12px;
  box-shadow: 0 40px 90px rgba(23,20,16,.35), inset 0 0 0 2px #2A2A2E;
  position: relative;
}
.ph__notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #0B0B0D; border-radius: 999px; z-index: 3; }
.ph__screen { background: linear-gradient(180deg, #131318, #0A0A0D); border-radius: 36px; overflow: hidden; min-height: 580px; padding: 66px 16px 22px; color: #EEE; position: relative; }
.ph__status { position: absolute; top: 16px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 28px; font-size: 12px; font-weight: 700; color: #DDD; z-index: 2; }
.ph__title { font-size: 19px; font-weight: 800; margin: 4px 4px 14px; color: #fff; }
.ph__sub { font-size: 12px; color: #8B8B92; margin: -8px 4px 14px; }

/* HomeKit-плитки */
.ph__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ph__tile { background: #1C1C21; border: 1px solid transparent; border-radius: 20px; padding: 14px; min-height: 88px; cursor: pointer; transition: background .3s ease, box-shadow .3s ease, border-color .2s ease; }
.ph__tile:hover { border-color: #3A3A42; }
.ph__tile.is-on { background: linear-gradient(160deg, #FFDD55, #F5C518); color: #111; box-shadow: 0 8px 26px rgba(245,197,24,.4); }
.ph__tile.is-on .ph__tile-sub { color: rgba(0,0,0,.62); }
.ph__tile-ico { font-size: 20px; line-height: 1; }
.ph__tile-name { font-size: 12.5px; font-weight: 800; margin-top: 9px; }
.ph__tile-sub { font-size: 11px; color: #8B8B92; margin-top: 2px; }
.ph__tile.is-on .ph__tile-sub { font-weight: 700; }

/* Алиса: волна + чипы */
.alisa-orb {
  width: 150px; height: 150px; margin: 30px auto 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #C6FF4D, #57D94C 55%, #1FA33B);
  position: relative; cursor: pointer;
}
.alisa-orb::before, .alisa-orb::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 2px solid rgba(87,217,76,.55); animation: orb 2.6s ease-out infinite;
}
.alisa-orb::after { animation-delay: 1.3s; }
.alisa-orb.is-talk { animation: orbTalk .5s ease-in-out infinite alternate; }
@keyframes orb { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
@keyframes orbTalk { to { transform: scale(1.06); } }
.alisa-status { text-align: center; font-size: 12px; color: #9A9AA2; margin-bottom: 8px; min-height: 16px; }
.ph__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ph__chip { background: #1C1C21; border: 1px solid #2C2C33; padding: 8px 12px; border-radius: 999px; font-size: 11.5px; color: #DDD; cursor: pointer; transition: background .2s ease, color .2s ease; }
.ph__chip:hover { background: #57D94C; color: #08130A; border-color: transparent; }

/* Google Home: слайдеры и диск */
.g-slider { margin: 16px 2px; }
.g-slider__head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: #EEE; margin-bottom: 8px; }
.g-slider__track { height: 8px; border-radius: 99px; background: #26262C; overflow: hidden; }
.g-slider__fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #8AB4F8, #4285F4); width: 40%; animation: gslide 6s ease-in-out infinite alternate; }
.g-slider__fill--warm { background: linear-gradient(90deg, #FCD56B, #F5A623); animation-delay: 1.2s; }
@keyframes gslide { to { width: 82%; } }
.g-dial { width: 132px; height: 132px; margin: 14px auto 4px; border-radius: 50%; background: conic-gradient(#4285F4 0 40%, #26262C 40% 100%); display: grid; place-items: center; animation: gdial 8s ease-in-out infinite alternate; }
.g-dial span { width: 98px; height: 98px; border-radius: 50%; background: #101014; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; }
@keyframes gdial { to { background: conic-gradient(#4285F4 0 66%, #26262C 66% 100%); } }

/* SprutHub: график и сенсоры */
.sh-chart { margin-top: 6px; }
.sh-chart polyline { fill: none; stroke: #F5C518; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; animation: shdash 4.5s ease-in-out infinite alternate; }
@keyframes shdash { to { stroke-dashoffset: 0; } }
.sh-legend { display: flex; justify-content: space-between; font-size: 10.5px; color: #7D7D86; margin-top: 4px; }
.sh-sensor { display: flex; justify-content: space-between; align-items: center; background: #16161B; border: 1px solid #232329; border-radius: 14px; padding: 11px 13px; margin-top: 9px; font-size: 12px; color: #CCC; }
.sh-sensor b { color: #fff; font-variant-numeric: tabular-nums; font-size: 13px; }
.sh-note { font-size: 11px; color: #7D7D86; margin-top: 12px; text-align: center; }

/* Реальные скриншоты приложений в демо-телефонах
   (источники: apple.com, google.com, yandex.ru, spruthub.ru) */
.ph--real .ph__notch, .ph--real .ph__status { display: none; }
.ph__screen--shots { padding: 0; }
.ph__shots {
  position: absolute; top: 0; left: 0; height: 100%;
  display: flex; width: calc(100% * var(--n, 1));
  max-width: none; /* мобильный фикс `*{max-width:100vw}` не должен резать ленту */
  transform: translateX(calc(-100% / var(--n, 1) * var(--idx, 0)));
  transition: transform .55s cubic-bezier(.32, .72, .35, 1);
}
.ph__shots img {
  flex: 0 0 calc(100% / var(--n, 1));
  width: calc(100% / var(--n, 1)); height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 1;
}

/* Чипы-траст как ссылки */
a.trust__chip { text-decoration: none; transition: border-color .2s ease, transform .2s ease, background .2s ease; }
a.trust__chip:hover { border-color: var(--ink); background: #fff; transform: translateY(-2px); color: var(--ink); }

@media (max-width: 900px) {
  .demo-wrap { grid-template-columns: 1fr; gap: 40px; }
  .demo-copy { order: 2; }
}

/* Футер: левая колонка — лого, описание и контакты столбиком */
.footer__brand {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 18px !important;
  max-width: 320px;
}
.footer__brand .footer__contact {
  margin-top: 8px;
}

/* Шапка: графитовая полка, белый текст (2026-11-12) */
.header {
  background: rgba(32,32,36,.94);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header .nav__link { color: #F2F0EA; }
.header .nav__link:hover { color: var(--accent); }
.header .nav__link::after { background: var(--accent); }
.header .burger span { background: #F2F0EA; }
.header .header__contacts .header__phone { color: #FFFFFF; }
.header .header__contacts .header__phone:hover { color: var(--accent); }
.header .header__contacts .header__mail { color: #B9B6AE; }
.header .header__contacts .header__mail:hover { color: #FFFFFF; }

/* Весь тёмный фон сайта — фирменный графит (2026-11-12) */
:root {
  --dark: #202024;
  --dark-soft: #2A2A30;
}
.founder__photo { background: linear-gradient(160deg, #2A2A30, #202024); }

/* Логотип в шапке: без чёрной плашки, крупнее */
.header .logo { background: transparent; padding: 0; border-radius: 0; }
.header .logo:hover { background: transparent; }
.header .logo__img { height: 58px; }

/* Светлый фон затемнён в тон фото интерьера corner.jpg (тёплый камень/греж) (2026-11-13) */
:root {
  --bg: #EAE5DC;
  --line: #D8D1C2;
}
.section--alt { background: #E1DBCE; }

/* Hero с iPhone возвращён: тёмная секция на фирменном графите (2026-11-14) */
.hero {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(245,197,24,.10), transparent 60%),
    var(--dark);
  color: #F3F0E8;
}
.hero .hero__title { color: #fff; }
.hero .hero__title .accent { color: var(--accent); }
.hero .hero__text { color: #B9B6AE; }
.hero .hero__stats span,
.hero .hero__stat-guarantee small { color: #A8A398; }
.hero .btn--accent { background: var(--accent); color: #171410; }
.hero .btn--accent:hover { background: #fff; color: #171410; }
.hero .btn--ghost { color: #F3F0E8; border-color: rgba(255,255,255,.25); }
.hero .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero-main: iPhone вместо стеклянной панели ---------- */
.hero-main__visual { display: flex; justify-content: center; align-items: center; position: relative; }
@media (max-width: 1100px) {
  .hero-main__visual .iphone__frame { transform: scale(.85); transform-origin: center top; }
}
@media (max-width: 768px) {
  .hero-main__visual { margin-top: 8px; }
  .hero-main__visual .iphone__frame { transform: scale(.78); }
}

/* ---------- Страница «Статьи» ---------- */
.articles-list { display: flex; flex-direction: column; gap: 22px; }
.article-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s ease, box-shadow .25s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(23,20,16,.14); }
.article-card__media { position: relative; min-height: 220px; background: var(--dark); }
.article-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-card__placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 56px; font-weight: 800; color: var(--accent);
}
.article-card__body { padding: 26px 28px 24px 0; display: flex; flex-direction: column; }
.article-card__date { font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.article-card__title { font-size: 24px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; margin: 10px 0 10px; }
.article-card__intro { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
.article-card__more { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 800; color: var(--accent-deep); }
@media (max-width: 768px) {
  .article-card { grid-template-columns: 1fr; }
  .article-card__media { min-height: 200px; }
  .article-card__body { padding: 0 22px 22px; }
}

/* ---------- Страница полной статьи ---------- */
.article { max-width: 820px; }
.article__media { border-radius: 22px; overflow: hidden; margin-bottom: 28px; }
.article__media img { width: 100%; height: auto; display: block; }
.article__body { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); }
.article__body > *:first-child { margin-top: 0; }
.article__body p { font-size: 16.5px; line-height: 1.75; color: var(--ink-soft); margin: 0 0 18px; }
.article__body h2 {
  margin: 34px 0 14px;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: -.6px;
  color: var(--ink);
}
.article__body h3 {
  margin: 28px 0 12px;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -.3px;
  color: var(--ink);
}
.article__body h4 {
  margin: 24px 0 10px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
}
.article__body ul,
.article__body ol { margin: 0 0 18px; padding-left: 26px; }
.article__body li { margin-bottom: 8px; line-height: 1.7; }
.article__body li > ul,
.article__body li > ol { margin: 8px 0 0; }
.article__body a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.article__body a:hover { color: var(--ink); }
.article__body strong,
.article__body b { color: var(--ink); font-weight: 800; }
.article__body blockquote {
  margin: 0 0 20px;
  padding: 16px 20px 16px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 212, 0, .08);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}
.article__body blockquote p:last-child { margin-bottom: 0; }
.article__body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 6px 0 22px;
  border-radius: 16px;
}
.article__body figure { margin: 6px 0 22px; }
.article__body figure img { margin: 0; }
.article__body figcaption {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
.article__body pre {
  margin: 0 0 20px;
  padding: 18px 20px;
  background: var(--dark);
  border-radius: 14px;
  overflow-x: auto;
  color: #EDEAE3;
  font-size: 14px;
  line-height: 1.6;
}
.article__body pre code { background: none; padding: 0; color: inherit; }
.article__body code {
  padding: 2px 6px;
  background: rgba(32, 32, 36, .07);
  border-radius: 6px;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: .9em;
  color: var(--ink);
}
.article__body iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 6px 0 22px;
  border: 0;
  border-radius: 16px;
  background: var(--dark);
}
.article__body hr {
  margin: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.article__body table {
  width: 100%;
  margin: 0 0 22px;
  border-collapse: collapse;
  font-size: 15px;
}
.article__body th,
.article__body td {
  padding: 10px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.article__body th { background: var(--surface); color: var(--ink); font-weight: 800; }
@media (max-width: 768px) {
  .article__body h2 { font-size: 25px; }
  .article__body h3 { font-size: 21px; }
  .article__body blockquote { padding: 14px 16px 14px 18px; font-size: 16px; }
}
.article__back { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* =========================================================
   A11Y: контраст текста на светлых секциях и в футере
   ========================================================= */
:root { --accent-text: #7A5A00; }

.section-label,
.accent,
h1 .accent,
h2 .accent,
h3 .accent,
.hero-main__title .accent,
.page-hero__title .accent,
.section__title .accent,
.steps__num,
.calc__area-value,
summary,
.article-card__more,
.project-review__author { color: var(--accent-text) !important; }

.section--dark .section-label,
.section--dark .accent { color: var(--accent) !important; }

.footer { --muted: #B8B2A6; }
.footer__title { color: #C3BDB0 !important; }
.footer__desc { color: #A9A399 !important; }
.footer__copy,
.footer__socials a,
.footer__links a,
.footer__col a,
.footer__contact a,
.footer__contact span { color: #B8B2A6 !important; }

.footer__partner { opacity: 1 !important; color: #B8B2A6 !important; }
.footer__socials a:hover,
.footer__col a:hover,
.footer__contact a:hover { color: var(--accent) !important; }

/* Точки карусели: визуально 8px, кликабельная область 24px */
.carousel__dot {
  width: 24px;
  height: 24px;
  padding: 8px;
  background: transparent;
  border-radius: 0;
  box-sizing: border-box;
}
.carousel__dot::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #CFCCC2;
  transition: background .25s ease;
}
.carousel__dot:hover { background: transparent; }
.carousel__dot:hover::before { background: var(--accent-deep); }
.carousel__dot.is-active { width: 24px; }
.carousel__dot.is-active::before { background: var(--ink); }

/* =========================================================
   HERO IPHONE — точечная правка верха и нижнего таббара
   ========================================================= */
.hero-main__visual .iphone__island {
  width: 82px;
  height: 24px;
  top: 11px;
}
.hero-main__visual .iphone__island-cam { width: 7px; height: 7px; }

.hero-main__visual .iphone__status {
  padding: 15px 26px 2px;
  font-size: 13px;
}

.hero-main__visual .hk-nav {
  padding: 8px 18px 4px !important;
}
.hero-main__visual .hk-nav__btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
}
.hero-main__visual .hk-nav__btn svg {
  width: 15px !important;
  height: 15px !important;
}

.hero-main__visual .hk-tabbar {
  bottom: 16px !important;
  padding: 3px !important;
}
.hero-main__visual .hk-tab {
  padding: 4px 6px !important;
  gap: 1px !important;
}
.hero-main__visual .hk-tab svg {
  width: 15px !important;
  height: 15px !important;
}
.hero-main__visual .hk-tab__label { font-size: 7px !important; }
.hero-main__visual .iphone__home-bar { height: 4px; bottom: 6px; }

/* =========================================================
   МОБИЛЬНАЯ ДОРАБОТКА (2026-11-23)
   ========================================================= */
@media (max-width: 768px) {
  /* Портрет основателя: не занимает пол-экрана */
  .founder__photo { aspect-ratio: 16 / 10; max-height: 300px; padding-bottom: 46px; }
  .founder__initials { font-size: 56px; }

  /* Футер: аккуратная центрированная колонка */
  .footer__inner { gap: 28px !important; padding: 48px 0 24px !important; }
  .footer__brand { gap: 14px !important; }
  .footer__desc { font-size: 14px; }
  .footer__title { margin-bottom: 4px; }
  .footer__col { gap: 10px; }
  .footer__contact { gap: 10px; }

  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 22px 0;
  }
  .footer__socials {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px !important;
    white-space: normal !important;
  }
  .footer__copy { margin: 0 !important; white-space: normal !important; }

  /* Подсказка «нажмите, чтобы увеличить» для сканов проектов */
  .doc-image-placeholder a { display: block; }
  .doc-image-placeholder a::after {
    content: "Нажмите, чтобы открыть в полном размере";
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
    text-align: center;
  }
}

/* Сканы документации: курсор-лупа и подсветка */
.doc-image-placeholder a { display: block; }
.doc-image-placeholder img { cursor: zoom-in; transition: opacity .2s ease; }
.doc-image-placeholder a:hover img { opacity: .9; }

/* Карусель проектов: свайп по горизонтали, вертикальный скролл страницы сохраняется */
.carousel__viewport { touch-action: pan-y; }
