/* ================= СТРАНИЦА МОДЕЛИ (07.09) — чёрная, в одном стиле с главной ================= */
.model-page { background: #000; color: var(--text); }
.m-wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.m-section { padding: clamp(80px, 13vh, 170px) 0; border-top: 1px solid #0f1214; }   /* воздух (12.09) */

/* --- герой --- */
.m-hero { padding: clamp(96px, 14vh, 150px) 0 clamp(50px, 8vh, 90px); }
.m-eyebrow {
  color: var(--accent); font-size: clamp(11px, 1.05vw, 14px); font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 18px;
}
.m-title {
  font-family: "Dune Rise", var(--font-display); font-weight: 400;
  font-size: clamp(44px, 8vw, 120px); line-height: 1; letter-spacing: 0.08em; margin: 0;
}
.m-sub {
  margin: clamp(18px, 3vh, 30px) auto 0; max-width: 40ch;
  font-family: "Inter Tight", "Inter", sans-serif; font-weight: 500;
  font-size: clamp(16px, 1.6vw, 24px); line-height: 1.4; color: #b9c0c5;
}
/* переключатель ёмкости */
.m-switch {
  display: inline-flex; gap: 4px; padding: 4px;
  background: #101316; border-radius: 999px;
}
.m-switch__btn {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px;
  padding: 12px 22px; background: transparent; color: var(--muted);
  font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: clamp(14px, 1.15vw, 17px);
  transition: background 0.3s, color 0.3s;
}
.m-switch__btn:hover { color: var(--text); }
.m-switch__btn.is-on { background: var(--text); color: #000; }
/* сцена: фото + цифры */
.m-stage {
  display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto;
  column-gap: clamp(24px, 4vw, 64px); row-gap: clamp(22px, 3.5vh, 36px);
  align-items: start; text-align: left;
}
.m-stage .m-switch { align-self: center; justify-self: center; }
.m-stage__name { align-self: center; }
.m-stage__photo { grid-column: 1; }
.m-stage__facts { grid-column: 2; margin-top: clamp(28px, 3vw, 48px); }   /* карточки на уровне верха корпуса батареи (у фото прозрачный запас сверху) */
.m-stage__name {
  margin: 0;
  font-family: "Dune Rise", var(--font-display); font-weight: 400;
  font-size: clamp(28px, 3.2vw, 48px); line-height: 1; letter-spacing: 0.08em;
}
/* три цифры одним ровным блоком */
.m-fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.m-fact-grid .m-fact { background: #0c0e10; border-radius: 20px; padding: clamp(18px, 1.8vw, 26px) clamp(14px, 1.4vw, 20px); min-width: 0; }
.m-fact-grid .m-fact b { font-size: clamp(30px, 3vw, 48px); white-space: nowrap; }
.m-fact-grid .m-fact span { font-size: clamp(10px, 0.8vw, 12px); line-height: 1.35; }
.m-fact-grid .m-fact i { font-style: normal; color: var(--text); font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: clamp(14px, 1.15vw, 18px); margin-top: 2px; }
.m-stage__photo img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: radial-gradient(ellipse 66% 60% at 50% 48%, #000 58%, transparent 90%);
          mask-image: radial-gradient(ellipse 66% 60% at 50% 48%, #000 58%, transparent 90%);
}
.m-fact { display: flex; flex-direction: column; gap: 6px; }
.m-fact b {
  font-family: "Dune Rise", var(--font-display); font-weight: 400; line-height: 1;
  font-size: clamp(34px, 3.6vw, 56px); color: var(--text); transition: opacity 0.35s;
}
.m-fact span { color: #86868b; font-size: clamp(12px, 0.95vw, 14px); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.m-price {
  margin-top: clamp(26px, 4vh, 44px);
  font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600;
  font-size: clamp(26px, 2.4vw, 38px); color: var(--text);
}
.m-price span { transition: opacity 0.35s; }
.m-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(20px, 3vh, 32px); }
.m-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #000; text-decoration: none;
  font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: 16px;
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.m-btn:hover { transform: translateY(-1px); }
.m-btn--ghost { background: #151519; color: var(--text); }
.m-btn--ghost:hover { background: #1d1f24; }
.is-swapping [data-m] { opacity: 0; }

/* --- общие заголовки --- */
.m-h2 {
  font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600;
  font-size: clamp(30px, 3.6vw, 56px); line-height: 1.08; letter-spacing: -0.01em; margin: 0;
}
.m-lead {
  margin: clamp(14px, 2.4vh, 24px) 0 0; max-width: 60ch;
  font-family: "Inter Tight", "Inter", sans-serif; font-weight: 500;
  font-size: clamp(15px, 1.35vw, 20px); line-height: 1.45; color: #b9c0c5;
}
.m-note { margin: clamp(18px, 3vh, 28px) 0 0; color: #86868b; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.5; }
.m-note b { color: var(--text); font-weight: 600; }

/* --- карточки --- */
.m-cards { display: grid; gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(32px, 5vh, 56px); }
.m-cards--3 { grid-template-columns: repeat(3, 1fr); }
.m-cards--4 { grid-template-columns: repeat(4, 1fr); }
.m-cards--tech { grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.m-card {
  background: #0c0e10; border-radius: 24px; padding: clamp(22px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
}
.m-card__label { color: var(--text); font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: clamp(14px, 1.15vw, 17px); }
.m-card b { font-family: "Dune Rise", var(--font-display); font-weight: 400; font-size: clamp(34px, 3.4vw, 54px); line-height: 1; }
.m-card b span { transition: opacity 0.35s; }
.m-card__note { color: #86868b; font-size: 13px; }

/* --- характеристики --- */
.m-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 64px); margin: clamp(32px, 5vh, 56px) 0 0; }
.m-specs div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid #14171a; }
.m-specs dt { color: #86868b; font-size: clamp(13px, 1.05vw, 15px); }
.m-specs dd { margin: 0; text-align: right; font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: clamp(14px, 1.15vw, 17px); }

/* --- совместимость --- */
.m-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.m-list { list-style: none; margin: 0; padding: 0; }
.m-list li { padding: 16px 0; border-bottom: 1px solid #14171a; color: #b9c0c5; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.45; }
.m-list b { color: var(--text); font-weight: 600; }

/* --- технологии --- */
.m-tech {
  background: #0c0e10; border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; transition: transform 0.4s, background 0.4s;
  appearance: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit;
}
.m-tech:hover { transform: translateY(-3px); background: #101316; }
.m-tech { aspect-ratio: 1 / 1; }
.m-tech img { width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; display: block; }
.m-tech img.m-tech__board { object-fit: contain; padding: 14% 8%; background: #000; box-sizing: border-box; }
.m-tech b { margin: 22px 26px 8px; font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: clamp(20px, 2vw, 30px); }
.m-tech span { margin: 0 26px 26px; color: #86868b; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.45; }

/* --- заявка --- */
.m-form { display: grid; gap: 14px; }
.m-form label[hidden] { display: none; }
.m-form label { display: grid; gap: 8px; color: #86868b; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.m-form input, .m-form select {
  height: 50px; padding: 0 16px; border-radius: 14px; border: 1px solid #1c2024; background: #0c0e10;
  color: var(--text); font: 500 16px/1 "Inter", sans-serif; outline: none;
}
.m-form input:focus, .m-form select:focus { border-color: var(--accent); }
.m-form .m-btn { justify-self: start; margin-top: 6px; }
.m-form__ok { margin: 0; color: var(--accent); font-weight: 600; }

/* --- адаптив --- */
@media (max-width: 900px) {
  .m-stage { grid-template-columns: 1fr; text-align: center; }
  .m-stage__photo, .m-stage__facts { grid-column: 1; }
  .m-stage__name { justify-self: center; }
  .m-cta { justify-content: center; }
  .m-fact-grid { text-align: center; }
  .m-cards--4 { grid-template-columns: 1fr 1fr; }
  .m-cards--tech { grid-template-columns: 1fr; }
  .m-two { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .m-cards--3, .m-cards--4 { grid-template-columns: 1fr; }

  .m-specs { grid-template-columns: 1fr; }
  .m-switch__btn { padding: 10px 14px; }
}

/* --- калькулятор (11.09) --- */
.m-calc { margin-top: clamp(40px, 7vh, 80px); background: #0c0e10; border-radius: 28px; padding: clamp(24px, 3.2vw, 44px); }
.m-h3 { margin: 0; font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.1; }
.m-calc__sub { margin: 10px 0 0; color: #86868b; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.45; }
.m-calc__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) auto auto minmax(0, 1.5fr); gap: 18px 22px; margin-top: clamp(22px, 3.5vh, 36px); align-items: start; }
.m-calc__field { display: grid; gap: 10px; min-width: 0; color: #86868b; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.m-calc__field--wide { grid-column: 1 / -1; }
.m-calc__field b { color: var(--text); font-size: 13px; letter-spacing: 0; }
.m-calc__field select {
  width: 100%; min-width: 0; max-width: 100%;
  height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #1c2024; background: #000;
  color: var(--text); font: 500 15px/1 "Inter", sans-serif; text-transform: none; letter-spacing: 0;
}
.m-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #000; border-radius: 22px; justify-self: start; }
.m-seg button {
  appearance: none; border: 0; cursor: pointer; border-radius: 999px; padding: 9px 14px;
  background: transparent; color: var(--muted); font: 600 14px/1 "Inter Tight", "Inter", sans-serif;
  letter-spacing: 0; text-transform: none; white-space: nowrap; transition: background 0.3s, color 0.3s;
}
.m-seg button.is-on { background: var(--text); color: #000; }
.m-calc input[type=range] { width: 100%; accent-color: var(--accent); }
.m-calc__out { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 48px); align-items: center; margin-top: clamp(26px, 4vh, 40px); padding-top: clamp(22px, 3vh, 32px); border-top: 1px solid #14171a; }
.m-calc__hours { display: flex; flex-direction: column; gap: 6px; }
.m-calc__hours b { font-family: "Dune Rise", var(--font-display); font-weight: 400; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; }
.m-calc__hours > span { color: #86868b; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.m-calc__kit { display: grid; gap: 4px; }
.m-calc__kit b { font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: clamp(17px, 1.5vw, 22px); }
.m-calc__kit > span { color: var(--text); font-weight: 600; font-size: clamp(16px, 1.3vw, 20px); }
.m-calc__hint { color: #86868b !important; font-weight: 500 !important; font-size: 13px !important; }
@media (max-width: 900px) {
  .m-calc__grid { grid-template-columns: 1fr 1fr; }
  .m-calc__out { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .m-calc__grid { grid-template-columns: 1fr; }
  .m-seg { flex-wrap: wrap; border-radius: 20px; }
}

/* --- попап технологии (11.09) --- */
.m-modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.m-modal[hidden] { display: none; }   /* display:flex перебивает hidden — возвращаем */
.m-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.72); backdrop-filter: blur(6px); }
.m-modal__card {
  position: relative; width: min(92vw, 720px); max-height: 90svh; overflow: auto;
  background: #0c0e10; border-radius: 28px; border: 1px solid #16191d;
  animation: modal-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.m-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 999px;
  border: 0; background: rgba(0,0,0,0.55); color: var(--text); font-size: 18px; cursor: pointer;
}
.m-modal__close:hover { color: var(--accent); }
.m-modal__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.m-modal__img.is-board { object-fit: contain; padding: 10% 8%; box-sizing: border-box; background: #000; }
.m-modal__body { padding: clamp(22px, 3vw, 36px); }
.m-modal__title { display: block; font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
.m-modal__text { margin: 14px 0 0; color: #b9c0c5; font-family: "Inter Tight", "Inter", sans-serif; font-weight: 500; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; }
.m-modal__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(20px, 3vh, 28px); }
body.modal-open { overflow: hidden; }

/* --- бортовая сеть (11.09) --- */
.m-net__presets { display: flex; gap: 8px; flex-wrap: wrap; }
.m-chip {
  appearance: none; border: 1px solid #1c2024; background: #000; color: var(--muted); cursor: pointer;
  border-radius: 999px; padding: 10px 16px; font: 600 14px/1 "Inter Tight", "Inter", sans-serif; transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.m-chip.is-on { background: var(--text); color: #000; border-color: var(--text); }
.m-net__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 22px; margin-top: clamp(20px, 3vh, 30px); }
.m-net__item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: #000; cursor: pointer; transition: background 0.25s;
}
.m-net__item:hover { background: #101316; }
.m-net__item input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.m-net__name { color: var(--text); font-family: "Inter Tight", "Inter", sans-serif; font-weight: 500; font-size: clamp(14px, 1.1vw, 16px); }
.m-net__amp { color: #86868b; font-size: 13px; font-weight: 600; white-space: nowrap; }
.m-net__item input:not(:checked) ~ .m-net__name { color: var(--muted); }
@media (max-width: 760px) { .m-net__grid { grid-template-columns: 1fr; } }

/* --- сборки для бортовой сети (11.09): все строки на одном уровне во всех карточках --- */
.m-kit { display: grid; grid-template-rows: auto 4.4em auto 2.9em auto; gap: 8px; align-content: start; }
.m-kit__label { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.m-kit__desc { color: var(--text); font-family: "Inter Tight", "Inter", sans-serif; font-weight: 500; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.4; }
.m-kit b { font-size: clamp(26px, 2.3vw, 36px); line-height: 1.05; white-space: nowrap; align-self: end; }
.m-kit__sub { color: #86868b; font-size: 13px; line-height: 1.4; }
.m-kit__price { color: var(--text); font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: clamp(16px, 1.3vw, 20px); white-space: nowrap; }
.m-kit__price em { font-style: normal; color: #86868b; font-weight: 500; font-size: 0.8em; white-space: nowrap; }

/* --- шапка страницы модели: логотип по центру и крестик — выход на главную (11.09) --- */
.model-page .nav__home {
  position: absolute; left: 50%; top: 24px; transform: translateX(-50%);
  color: var(--text); text-decoration: none; font-family: "Dune Rise", sans-serif;
  font-size: 16px; line-height: 24px; letter-spacing: 0.08em; transition: color 0.3s;
}
.model-page .nav__close {
  position: absolute; right: 24px; top: 20px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); text-decoration: none; font-size: 22px; line-height: 1; transition: color 0.3s;
}
.model-page .nav__home:hover, .model-page .nav__close:hover { color: var(--accent); }
a.menu-overlay__logo, a.menu-overlay__logo:hover, .model-page .nav__home, .model-page .nav__home:hover { text-decoration: none; }
.menu-overlay__logo:hover { color: var(--accent); }

/* --- заявка: селекты со своей стрелкой, количество, доставка --- */
.m-form select {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%2397a0a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 18px center;
}
.m-qty { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.m-qty legend { padding: 0; margin-bottom: 10px; color: #86868b; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.m-qty__row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 16px; border-radius: 14px; background: #0c0e10; border: 1px solid #1c2024;
  color: var(--text); font-family: "Inter Tight", "Inter", sans-serif; font-weight: 500; font-size: 15px; text-transform: none; letter-spacing: 0;
}
.m-stepper { display: inline-flex; align-items: center; border-radius: 999px; background: #000; }
.m-stepper button {
  width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--text);
  font-size: 20px; line-height: 1; cursor: pointer; transition: background 0.2s;
}
.m-stepper button:hover { background: #1d1f24; }
.m-stepper input {
  width: 44px; height: 36px; padding: 0; border: 0; background: transparent; color: var(--text);
  text-align: center; font: 600 16px/1 "Inter Tight", "Inter", sans-serif; -moz-appearance: textfield;
}
.m-stepper input::-webkit-outer-spin-button, .m-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.m-qty__total { margin-top: 4px; color: #86868b; font-size: 14px; text-transform: none; letter-spacing: 0; }
.m-qty__total b { color: var(--text); font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: 16px; }

/* --- облегчение страницы (12.09): свёрнутый калькулятор, полоса брендов --- */
.m-fold { margin-top: clamp(28px, 5vh, 56px); }
.m-fold__summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 12px;
  font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: clamp(18px, 1.6vw, 24px); color: var(--text);
}
.m-fold__summary::-webkit-details-marker { display: none; }
.m-fold__summary::after {
  content: ""; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.3s;
}
.m-fold[open] .m-fold__summary::after { transform: rotate(-135deg) translateY(-2px); }
.m-fold .m-calc { margin-top: clamp(20px, 3vh, 32px); }
.m-brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 36px; align-self: center; }
.m-brands li { font-family: "Inter Tight", "Inter", sans-serif; font-weight: 600; font-size: clamp(18px, 1.8vw, 28px); color: #6e767c; letter-spacing: 0.01em; }

/* телефон: карточки сборок по содержимому, без пустых рядов (после базовых правил — чтобы победить по порядку) */
@media (max-width: 640px) {
  .m-cards .m-kit { grid-template-rows: auto auto auto auto auto; gap: 6px; }
  .m-cards .m-kit b { align-self: start; margin-top: 6px; }
}
