:root {
  --navy-900: #0e1733;
  --navy-800: #16213d;
  --navy-700: #1e2a48;
  --navy-card: #141d38;
  --gold:      #e9a23b;
  --gold-300:  #f3c877;
  --gold-warm: #cf9f55;
  --white:     #ffffff;
  --muted:     #aab4cc;
  --muted-2:   #7e8aa6;
}

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

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--white);
  background: var(--navy-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.accent {
  background: linear-gradient(100deg, var(--gold-300), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* синий фирменный градиент линейки */
  background: linear-gradient(125deg, #0b1430 0%, #122042 32%, #1a2c54 62%, #274680 88%, #2f5598 100%);
  padding: clamp(20px, 4vw, 40px);
  overflow: hidden; /* удерживаем декоративное свечение, чтобы не расширяло страницу */
}
.hero::after {
  /* мягкое синее свечение в правом нижнем углу */
  content: "";
  position: absolute;
  right: -10%; bottom: -20%;
  width: 70vw; height: 70vw;
  max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(64,120,210,0.40) 0%, rgba(64,120,210,0) 62%);
  pointer-events: none;
}

.hero__bar { position: relative; z-index: 2; display: flex; justify-content: flex-end; }
.hero__logo { height: clamp(34px, 5vw, 52px); width: auto; }

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 880px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  align-items: center;
  gap: clamp(16px, 2.5vh, 26px);
  padding: clamp(20px, 5vh, 60px) 0;
}
/* flex-элементы не должны вылезать за контейнер — заставляем текст переноситься */
.hero__content > * { max-width: 100%; min-width: 0; }
.eyebrow, .hero__title, .hero__lead { width: 100%; }

.eyebrow {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: clamp(11px, 1.5vw, 15px);
  color: var(--gold-300);
  padding-left: 0.32em;
}

.hero__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.14;
  padding-top: 0.08em; /* запас сверху, чтобы бреве «Й» не срезалось при clip градиента */
  font-size: clamp(29px, 7vw, 84px);
  overflow-wrap: break-word;
  text-shadow: 0 6px 40px rgba(0,0,0,0.35);
}
.accent { -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.hero__lead {
  font-size: clamp(15px, 2vw, 20px);
  line-height: 1.55;
  color: #e7ecf7;
  max-width: 640px;
}

.hero__meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  font-size: clamp(11px, 1.4vw, 13px);
  padding: 7px 14px;
  border-radius: 100px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(4px);
  color: #f0f3fa;
}

.hero__cta {
  margin-top: 8px;
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--navy-900);
  background: linear-gradient(100deg, var(--gold-300), var(--gold));
  padding: 14px 32px;
  border-radius: 100px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 30px rgba(233,162,59,0.35);
}
.hero__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(233,162,59,0.5); }

/* ============ PRODUCTS ============ */
.products {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(56px, 10vh, 110px) clamp(18px, 4vw, 40px);
}

.section-head { text-align: center; margin-bottom: clamp(32px, 6vh, 60px); }
.section-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.05;
}
.section-sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 18px);
}

/* ====== FEATURE (продукт с датой, вертикально) ====== */
.features {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vh, 56px);
  margin-bottom: clamp(56px, 10vh, 110px);
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  background: linear-gradient(150deg, var(--navy-700) 0%, var(--navy-card) 100%);
  border: 1px solid rgba(46,110,200,0.22);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 36px);
  overflow: hidden;
}
.feature--alt { direction: rtl; }
.feature--alt > * { direction: ltr; }

.feature__media {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(150deg, #1a2747, #101a33);
  aspect-ratio: 4 / 5;
  max-height: 520px;
  display: flex; align-items: center; justify-content: center;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }

.feature__body { display: flex; flex-direction: column; gap: 14px; }
.feature__name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.05;
}
.feature__active { color: var(--gold); font-size: 0.62em; font-weight: 500; white-space: nowrap; }
.feature__portion {
  align-self: flex-start;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 600;
  color: var(--navy-900);
  background: linear-gradient(100deg, var(--gold-300), var(--gold));
  padding: 6px 16px;
  border-radius: 100px;
}
.feature__list {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.feature__list li {
  position: relative;
  padding-left: 24px;
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.45;
  color: #dde4f2;
}
.feature__list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--gold-300), var(--gold));
}
.feature__energy { font-size: 13px; color: var(--muted-2); }
.feature__btn {
  align-self: flex-start;
  margin-top: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(14px, 1.7vw, 16px);
  color: var(--navy-900);
  background: linear-gradient(100deg, var(--gold-300), var(--gold));
  padding: 13px 30px;
  border-radius: 100px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px rgba(233,162,59,0.30);
}
.feature__btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(233,162,59,0.45); }

.feature__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.feature__actions .feature__btn { margin-top: 0; }
.feature__more {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.7vw, 16px);
  cursor: pointer;
  color: var(--gold-300);
  background: transparent;
  border: 1px solid rgba(233,162,59,0.5);
  padding: 12px 26px;
  border-radius: 100px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.feature__more:hover { background: rgba(233,162,59,0.12); border-color: var(--gold); transform: translateY(-2px); }

.section-head--soon { margin-top: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(16px, 2.2vw, 26px);
}

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; }
  .feature--alt { direction: ltr; }
}

/* ====== CARD ====== */
.card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-card) 100%);
  border: 1px solid rgba(233,162,59,0.18);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(233,162,59,0.5);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 70% 30%, rgba(233,162,59,0.18), rgba(0,0,0,0) 60%),
    linear-gradient(150deg, #20294a, #121a32);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card__img { transform: scale(1.04); }

.card__img--placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(233,162,59,0.55);
  font-size: clamp(18px, 3vw, 26px);
}
.card__img--placeholder span { font-size: 0.5em; letter-spacing: 0.4em; color: rgba(170,180,204,0.6); }

/* состояние «скоро»: изображение размыто, бейдж сверху, имя остаётся резким */
.card--soon .card__img { filter: blur(7px) saturate(0.85) brightness(0.8); transform: scale(1.08); }
.card--soon:hover .card__img { transform: scale(1.1); }
.card__soon-badge {
  position: absolute;
  top: 14px; left: 14px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-900);
  background: linear-gradient(100deg, var(--gold-300), var(--gold));
  padding: 6px 14px;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
  flex: 1;
}
.card__name {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.card__active { color: var(--gold); font-size: 0.7em; font-weight: 500; }
.card__sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

.card__btn {
  margin-top: 10px;
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 100px;
  color: var(--navy-900);
  background: linear-gradient(100deg, var(--gold-300), var(--gold));
  transition: transform .2s ease, box-shadow .2s ease;
}
.card__btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(233,162,59,0.4); }

.card__btn--soon {
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  cursor: default;
}
.card__btn--soon:hover { transform: none; box-shadow: none; }

/* ============ FOOTER ============ */
.foot {
  text-align: center;
  padding: clamp(40px, 8vh, 80px) 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--navy-800);
}
.foot__logo { height: 40px; width: auto; margin-bottom: 18px; }
.foot__line { font-size: clamp(15px, 2vw, 19px); color: #e7ecf7; max-width: 620px; margin: 0 auto 32px; }

.foot__label {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: clamp(12px, 1.5vw, 14px);
  color: var(--muted);
  margin-bottom: 12px;
}

.foot__contact { margin-bottom: 30px; }
.foot__email {
  display: inline-block;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.6vw, 26px);
  letter-spacing: 0.02em;
  color: var(--navy-900);
  background: linear-gradient(100deg, var(--gold-300), var(--gold));
  padding: 12px 30px;
  border-radius: 100px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 24px rgba(233,162,59,0.30);
}
.foot__email:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(233,162,59,0.45); }

.foot__social { margin-bottom: 36px; }
.foot__links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.foot__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid rgba(233,162,59,0.4);
  background: rgba(255,255,255,0.04);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.foot__links a:hover {
  background: rgba(233,162,59,0.14);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.foot__note { font-size: 12px; color: var(--muted-2); max-width: 560px; margin: 0 auto; line-height: 1.5; }

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .card__body { padding: 14px; }
}

/* ============ MODAL ============ */
.modal[hidden] { display: none; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 4vw, 40px);
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 26, 0.78);
  backdrop-filter: blur(6px);
  animation: modalFade .2s ease;
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: 90dvh;
  overflow-y: auto;
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-card) 100%);
  border: 1px solid rgba(46,110,200,0.30);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  animation: modalPop .24s cubic-bezier(.2,.8,.3,1);
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1;
  cursor: pointer;
  color: var(--muted);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.modal__close:hover { background: rgba(233,162,59,0.18); color: var(--white); }

.modal__head { display: flex; gap: clamp(16px, 3vw, 26px); align-items: center; margin-bottom: 22px; padding-right: 40px; }
.modal__img {
  width: clamp(96px, 22vw, 150px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(150deg, #1a2747, #101a33);
  flex-shrink: 0;
}
.modal__name {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.06;
}
.modal__sub { color: var(--gold-300); font-size: clamp(14px, 2vw, 17px); margin-top: 6px; }
.modal__form {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-900);
  background: linear-gradient(100deg, var(--gold-300), var(--gold));
  padding: 5px 14px;
  border-radius: 100px;
}

.modal__desc p { font-size: clamp(14px, 1.8vw, 16px); line-height: 1.6; color: #dde4f2; margin-bottom: 14px; }

.modal__rc-title {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--gold);
  margin: 10px 0 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.modal__rc-wrap { overflow-x: auto; }
.rc { width: 100%; border-collapse: collapse; font-size: clamp(13px, 1.7vw, 15px); }
.rc th {
  text-align: left;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  white-space: nowrap;
}
.rc td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,0.07); color: #e3e9f5; vertical-align: top; }
.rc tr:last-child td { border-bottom: none; }
.rc__mg { white-space: nowrap; font-weight: 600; color: var(--white); }
.rc__pct { white-space: nowrap; color: var(--gold-300); font-weight: 600; text-align: right; }

.modal__usage { margin-top: 18px; font-size: clamp(13px, 1.7vw, 15px); line-height: 1.55; color: #dde4f2; }
.modal__energy { margin-top: 8px; font-size: 13px; color: var(--muted-2); }
.modal__energy:empty { display: none; }
.modal__usage:empty { display: none; }
.modal__note { margin-top: 18px; font-size: 11px; line-height: 1.5; color: var(--muted-2); }

@media (max-width: 520px) {
  .modal__head { flex-direction: column; text-align: center; align-items: center; padding-right: 0; }
}
