/* =========================================
   1. ПЕРЕМЕННЫЕ (ВСТАВЛЯЙ СВОИ ФАЙЛЫ И ЦВЕТА ЗДЕСЬ)
   ========================================= */
:root {
  /* --- ФОНЫ БЛОКОВ (по порядку сверху вниз) --- */
  --ФОТО_ФОН_СТРАНИЦЫ: url('./Img/backgroundPhoto.png');
  --ФОТО_БЛОК1_HERO: url('./Img/Picture1.png');
  --ФОТО_БЛОК2_ЕНЕРГОПАРК: url('./Img/block2.png');
  --ФОТО_БЛОК3_БОЛГРАД: url('./Img/block3.png');
  --ФОТО_БЛОК4_ІНВЕСТИЦІЯ: url('./Img/block4.png');
  --ФОТО_БЛОК5_CODEX: url('./Img/block5.png');

  /* --- ФОТО ВНУТРИ КАРТОЧЕК (замените на свои) --- */
  --ФОТО_ЕНЕРГЕТИКА: url('./Img/block4.1.png');
  --ФОТО_CODEX: url('./Img/block5.1.png');

  /* --- ГРАДИЕНТЫ --- */
  /* двухцветная кнопка: синий слева → тёмно-синий справа */
  --ГРАДИЕНТ_КНОПКА: linear-gradient(100deg, #2f6fdd 0%, #2559bd 32%, #17284f 78%, #111a2e 100%);
  --ГРАДИЕНТ_СВЕЧЕНИЕ_ФУТЕРА: radial-gradient(ellipse at bottom, rgba(109, 162, 223, 0.25) 0%, transparent 70%);

  /* --- ЦВЕТА --- */
  --ЦВЕТ_ФОН_ОСНОВНОЙ: #0b0e14;
  --ЦВЕТ_ФОН_КАРТОЧКИ: #0b0e14;
  --ЦВЕТ_ТЕКСТ_ОСНОВНОЙ: #ffffff;
  --ЦВЕТ_ТЕКСТ_СЕРЫЙ: #94a3b8;
  --ЦВЕТ_ТЕКСТ_СВЕТЛЫЙ: #e2e8f0;
  --ЦВЕТ_АКЦЕНТ_СИНИЙ: #2563eb;

  /* --- СЕТКА И ШРИФТЫ --- */
  --font-primary: 'Montserrat', sans-serif;
  --container-width: 1200px;
  --page-pad: 20px;

  /* Фон-блоки шире контейнера: до 1920px, всё сверх этого обрезается.
     --bleed-pad — добавка к паддингу блока, чтобы текст остался
     выровненным по контейнеру 1160px. */
  --bleed-width: min(100vw, 1920px);
  --bleed-pad: calc((var(--bleed-width) - min(1160px, 100vw - var(--page-pad) * 2)) / 2);

  /* Растушёвка краёв фото — фото плавно уходит в общий фон страницы.
     Две линейные маски перемножаются, поэтому углы остаются прямыми.
     Меняя проценты, регулируем ширину перехода. */
  --fade-x: linear-gradient(to right, transparent 0%, #000 20%, #000 80%, transparent 100%);
  --fade-y: linear-gradient(to bottom, transparent 0%, #000 7%, #000 93%, transparent 100%);
  /* у hero верх остаётся сплошным — он у самого края экрана */
  --fade-y-hero: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}

/* =========================================
   2. СБРОС И БАЗОВЫЕ СТИЛИ СТРАНИЦЫ
   ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.4;
  color: var(--ЦВЕТ_ТЕКСТ_ОСНОВНОЙ);
  background-color: var(--ЦВЕТ_ФОН_ОСНОВНОЙ);
  background-image: var(--ФОТО_ФОН_СТРАНИЦЫ);
  background-repeat: repeat;
  background-position: top left;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Блоки идут вплотную друг к другу — без отступов между секциями */
.page-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Блоки с фото-фоном тянутся на всю ширину экрана (максимум 1920px) */
.hero-card,
.park-calc-group,
.bolhrad-card,
.invest-block,
.why-block {
  width: var(--bleed-width);
  margin-left: calc(50% - var(--bleed-width) / 2);
}

/* =========================================
   3. ОБЩИЕ ЭЛЕМЕНТЫ
   ========================================= */
.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  border: none;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* =========================================
   4. БЛОК 1 — HERO «ЕНЕРГОПАРК ЧЕРНІВЦІ»
   ========================================= */
.hero-card {
  position: relative;
  z-index: 1;
  min-height: 660px;
  padding: 50px calc(var(--bleed-pad) + 60px) 38px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ЦВЕТ_ТЕКСТ_ОСНОВНОЙ);
  /* без сплошной заливки — по краям видно общий фон страницы */
}

/* Слой с фото — на всю карточку, без скруглений.
   По краям фото плавно растворяется в общем фоне страницы:
   две линейные маски (по горизонтали и вертикали) перемножаются,
   поэтому углы остаются прямыми, без овала. */
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--ФОТО_БЛОК1_HERO);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  -webkit-mask-image: var(--fade-x), var(--fade-y-hero);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y-hero);
  mask-composite: intersect;
}

/* Всё содержимое карточки лежит поверх фото */
.hero-card__header,
.hero-card__content,
.hero-card__footer,
.hero-card__slogan {
  position: relative;
  z-index: 2;
}

.hero-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-codex__img {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
}

.logo-ribas__img {
  display: block;
  height: 50px;
  width: auto;
  object-fit: contain;
}

.hero-card__content {
  margin: 20px 0;
}

.hero-card__title {
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-card__desc {
  font-size: 23px;
  line-height: 1.45;
  color: var(--ЦВЕТ_ТЕКСТ_СВЕТЛЫЙ);
  margin-bottom: 26px;
}

.hero-card__desc--bold {
  font-weight: 800;
  color: var(--ЦВЕТ_ТЕКСТ_ОСНОВНОЙ);
}

.hero-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 500;
  color: var(--ЦВЕТ_ТЕКСТ_СВЕТЛЫЙ);
}

.check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 14px;
  color: var(--ЦВЕТ_ТЕКСТ_СЕРЫЙ);
}

.hero-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 24px 0;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 38px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  background: var(--ГРАДИЕНТ_КНОПКА);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  color: var(--ЦВЕТ_ТЕКСТ_ОСНОВНОЙ);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.hero-yield {
  text-align: right;
}

.hero-yield__value {
  font-size: clamp(24px, 2.8vw, 33px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-yield__label {
  font-size: 22px;
  margin-top: 4px;
}

.hero-card__slogan {
  text-align: center;
  font-size: 20px;
  color: var(--ЦВЕТ_ТЕКСТ_СЕРЫЙ);
  letter-spacing: 0.01em;
}

/* =========================================
   5. БЛОК 2 — ЕНЕРГОПАРК + КАЛЬКУЛЯТОР
   (две секции на одном общем фоне)
   ========================================= */
.park-calc-group {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
  /* контент точно по контейнеру 1160px — строки шире, подписи в 2 строки */
  padding: 70px var(--bleed-pad);
}

.park-calc-group::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--ФОТО_БЛОК2_ЕНЕРГОПАРК);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
  pointer-events: none;
  /* мягкое затухание к краям, чтобы фон сливался со страницей */
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y);
  mask-composite: intersect;
}

/* --- 5.1 Сучасний енергопарк нового покоління --- */
.features-title {
  font-size: clamp(28px, 3.8vw, 47px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.features-desc {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ЦВЕТ_ТЕКСТ_СВЕТЛЫЙ);
  max-width: 780px;
  margin-bottom: 30px;
}

.features-grid {
  display: grid;
  /* колонки по содержимому: у длинных подписей плашка шире, как в макете */
  grid-template-columns: repeat(4, auto);
  column-gap: 20px;
  row-gap: 26px;
}

.feature-pill {
  position: relative;
  overflow: hidden;
  padding: 7px 20px;
  border: 1px solid rgba(120, 150, 200, 0.35);
  border-radius: 9999px;
  text-align: center;
  transition: all 0.3s ease;
}

/* текст всегда поверх световых слоёв */
.feature-pill__value,
.feature-pill__label {
  position: relative;
  z-index: 1;
}

.feature-pill:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(120, 150, 200, 0.6);
}

.feature-pill__value {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 3px;
}

.feature-pill__label {
  font-size: 15px;
  line-height: 1.3;
  color: var(--ЦВЕТ_ТЕКСТ_СЕРЫЙ);
}

/* --- 5.2 Калькулятор дохідності --- */
.calculator-section {
  text-align: center;
  /* --glow (0…1) задаёт script.js по положению ползунка */
  --glow: 0;
}

/* Солнце за суммой: чем больше инвестиция, тем ярче и крупнее */
.calculator__input-area {
  position: relative;
  z-index: 1;
}

.calc-sun {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: -1;
  /* обрезаем по кругу: вращающиеся лучи иначе расширяют страницу по диагонали */
  overflow: hidden;
  border-radius: 50%;
  width: 460px;
  height: 460px;
  max-width: 90vw;
  max-height: 90vw;
  transform: translate(-50%, -50%) scale(calc(0.7 + var(--glow) * 0.45));
  opacity: calc(0.18 + var(--glow) * 0.82);
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.calc-sun__core,
.calc-sun__rays {
  position: absolute;
  border-radius: 50%;
}

.calc-sun__core {
  inset: 27%;
  background: radial-gradient(circle,
    rgba(255, 250, 226, 0.95) 0%,
    rgba(255, 209, 122, 0.75) 32%,
    rgba(255, 160, 60, 0.35) 55%,
    rgba(255, 140, 40, 0) 72%);
  filter: blur(calc(4px + var(--glow) * 10px));
}

.calc-sun__rays {
  inset: 0;
  background: repeating-conic-gradient(from 0deg,
    rgba(255, 216, 150, 0.55) 0deg 2.5deg,
    transparent 2.5deg 15deg);
  opacity: calc(var(--glow) * 0.85);
  -webkit-mask-image: radial-gradient(circle, #000 16%, rgba(0, 0, 0, 0.35) 40%, transparent 64%);
  mask-image: radial-gradient(circle, #000 16%, rgba(0, 0, 0, 0.35) 40%, transparent 64%);
  animation: sun-spin 70s linear infinite;
  transition: opacity 0.5s ease;
}

@keyframes sun-spin {
  to { transform: rotate(360deg); }
}

/* Сумма подсвечивается вместе с солнцем */
.calculator__amount-wrap .currency,
#calc-input {
  text-shadow: 0 0 calc(var(--glow) * 34px) rgba(255, 205, 120, calc(var(--glow) * 0.8));
  transition: text-shadow 0.5s ease;
}

.calculator__subtitle {
  font-size: 20px;
  margin-bottom: 15px;
}

.calculator__amount-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 15px;
}

.calculator__amount-wrap .currency {
  font-size: 44px;
  font-weight: 800;
}

#calc-input {
  width: 190px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  outline: none;
  color: var(--ЦВЕТ_ТЕКСТ_ОСНОВНОЙ);
  font-family: inherit;
  font-size: 44px;
  font-weight: 800;
  text-align: left;
  transition: border-color 0.3s ease;
}

#calc-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
}

#calc-slider {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  max-width: 300px;
  height: 2px;
  margin: 0 auto 50px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

#calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
  box-shadow: 0 0 15px rgba(255, 255, 255, 1);
}

.calculator__box {
  display: flex;
  justify-content: space-between;
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15px);
}

.calc-box-col {
  flex: 1;
  text-align: center;
  transition: all 0.3s ease;
}

.calc-box-col:hover {
  transform: scale(1.04);
}

.calc-box-val {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.calc-box-col:hover .calc-box-val {
  color: var(--ЦВЕТ_АКЦЕНТ_СИНИЙ);
}

.calc-box-label {
  font-size: 15px;
  color: var(--ЦВЕТ_ТЕКСТ_СЕРЫЙ);
}

/* Кнопка под таблицей расчёта */
.calc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 46px auto 0;
  padding: 15px 60px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  background: var(--ГРАДИЕНТ_КНОПКА);
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.4);
  color: var(--ЦВЕТ_ТЕКСТ_ОСНОВНОЙ);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.calc-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

/* =========================================
   6. БЛОК 3 — «ПЕРШИЙ ЕНЕРГОПАРК ВЖЕ В РОБОТІ»
   ========================================= */
.bolhrad-card {
  position: relative;
  z-index: 1;
  min-height: 460px;
  padding: 42px calc(var(--bleed-pad) + 46px) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Слой с фото — с растушёвкой краёв в общий фон */
.bolhrad-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--ФОТО_БЛОК3_БОЛГРАД);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y);
  mask-composite: intersect;
}

/* Затемнение сверху и снизу — чтобы текст читался поверх фото */
.bolhrad-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(6, 10, 18, 0.78) 0%,
    rgba(6, 10, 18, 0.35) 32%,
    rgba(6, 10, 18, 0.35) 55%,
    rgba(6, 10, 18, 0.85) 100%);
  pointer-events: none;
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y);
  mask-composite: intersect;
}

.bolhrad-card__top,
.bolhrad-card__bottom {
  position: relative;
  z-index: 2;
}

.bolhrad-card__title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.bolhrad-card__desc {
  font-size: 16px;
  line-height: 1.45;
  color: var(--ЦВЕТ_ТЕКСТ_СВЕТЛЫЙ);
}

.bolhrad-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-top: 40px;
}

.bolhrad-card__stage {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.bolhrad-stats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bolhrad-stats li {
  font-size: 17px;
  line-height: 1.35;
  color: var(--ЦВЕТ_ТЕКСТ_СВЕТЛЫЙ);
}

.bolhrad-stats li b {
  font-weight: 800;
  color: var(--ЦВЕТ_ТЕКСТ_ОСНОВНОЙ);
}

.bolhrad-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 15px 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 9999px;
  background: rgba(10, 14, 22, 0.55);
  backdrop-filter: blur(6px);
  color: var(--ЦВЕТ_ТЕКСТ_ОСНОВНОЙ);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.3s ease;
}

.bolhrad-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* =========================================
   7. БЛОК 4 — «ЯК ПРАЦЮЄ ВАША ІНВЕСТИЦІЯ»
   ========================================= */
.invest-block {
  position: relative;
  z-index: 1;
  /* без нижнего паддинга — следующий блок начинается сразу за фото */
  padding: 44px calc(var(--bleed-pad) + 70px) 0;
}

/* Слой с фото — с растушёвкой краёв в общий фон */
.invest-block::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #0a1020;
  background-image: var(--ФОТО_БЛОК4_ІНВЕСТИЦІЯ);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y);
  mask-composite: intersect;
}

.invest-block__title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 46px;
}

.invest-block__title--second {
  font-size: clamp(28px, 3.2vw, 38px);
  margin: 44px 0 26px;
}

/* --- Схема шагов 1-6 --- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  align-items: center;
  row-gap: 12px;
}

/* Раскладка: 1 → 2 → 3 / ↓ / 4  5  6 */
.steps-grid > div:nth-of-type(1) { grid-area: 1 / 1; }
.steps-grid > div:nth-of-type(2) { grid-area: 1 / 3; }
.steps-grid > div:nth-of-type(3) { grid-area: 1 / 5; }
.steps-grid > div:nth-of-type(4) { grid-area: 3 / 1; }
.steps-grid > div:nth-of-type(5) { grid-area: 3 / 3; }
.steps-grid > div:nth-of-type(6) { grid-area: 3 / 5; }
.steps-grid > span:nth-of-type(1) { grid-area: 1 / 2; }
.steps-grid > span:nth-of-type(2) { grid-area: 1 / 4; }

.step {
  display: flex;
  align-items: center;
  gap: 18px;
}

.step__num {
  flex-shrink: 0;
  font-size: 74px;
  font-weight: 800;
  line-height: 1;
}

.step__text {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}

.step-arrow svg {
  width: 40px;
  height: 16px;
}

/* стрелка вниз — отдельной строкой под вторым шагом */
.step-arrow--down {
  grid-area: 2 / 3;
}

.step-arrow--down svg {
  width: 16px;
  height: 40px;
}

/* --- Карточка «Чому саме енергетика?» --- */
.energy-card {
  position: relative;
  z-index: 1;
  min-height: 300px;
  padding: 34px 40px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background-color: #0a1020;
  background-image: var(--ФОТО_ЕНЕРГЕТИКА);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Затемнение слева — под текст */
.energy-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(8, 14, 26, 0.92) 0%,
    rgba(8, 14, 26, 0.82) 42%,
    rgba(8, 14, 26, 0.25) 75%,
    rgba(8, 14, 26, 0.1) 100%);
  pointer-events: none;
}

.energy-stats {
  position: relative;
  z-index: 2;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 460px;
}

.energy-stats__val {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 2px;
}

.energy-stats__label {
  font-size: 13px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ЦВЕТ_ТЕКСТ_СВЕТЛЫЙ);
}

/* =========================================
   8. БЛОК 5 — «ЧОМУ CODEX ENERGY»
   ========================================= */
.why-block {
  position: relative;
  z-index: 1;
  padding: 46px calc(var(--bleed-pad) + 46px) 50px;
}

/* Слой с фото — с растушёвкой краёв в общий фон */
.why-block::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #070b12;
  background-image: var(--ФОТО_БЛОК5_CODEX);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-image: var(--fade-x), var(--fade-y);
  mask-composite: intersect;
}

.why-block__title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 34px;
}

.why-block__body {
  display: flex;
  align-items: stretch;
  gap: 46px;
}

.why-block__photo {
  flex-shrink: 0;
  width: 42%;
  min-height: 330px;
  border-radius: 8px;
  background-image: var(--ФОТО_CODEX);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.why-list {
  flex: 1;
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.why-list__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
}

.why-list__desc {
  font-size: 13px;
  line-height: 1.4;
  color: var(--ЦВЕТ_ТЕКСТ_СЕРЫЙ);
}

/* --- Плашка Ribas --- */
.ribas-bar {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-top: 40px;
  padding: 22px 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(8px);
}

.ribas-bar__logo {
  flex-shrink: 0;
  padding-right: 34px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.ribas-bar__logo img {
  display: block;
  height: 46px;
  width: auto;
  object-fit: contain;
}

.ribas-bar__text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

/* =========================================
   9. ФОРМА КОНСУЛЬТАЦИИ
   ========================================= */
.form-box {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  padding: 45px 50px;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(15px);
  transition: box-shadow 0.4s ease;
}

.form-box:hover {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.form-box__left {
  flex: 1;
}

.form-box__right {
  flex-shrink: 0;
  width: 360px;
}

.form-box__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
}

.form-box__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ЦВЕТ_ТЕКСТ_СЕРЫЙ);
  max-width: 380px;
}

.logo--small img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.consult-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 42px;
  background: rgba(255, 255, 255, 0.03);
  outline: none;
  color: var(--ЦВЕТ_ТЕКСТ_ОСНОВНОЙ);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s, background 0.3s;
}

.form-input:focus {
  border-color: var(--ЦВЕТ_АКЦЕНТ_СИНИЙ);
  background: rgba(255, 255, 255, 0.08);
}

.btn--submit {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  padding: 0;
  border-radius: 42px;
  background: var(--ГРАДИЕНТ_КНОПКА);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  color: var(--ЦВЕТ_ТЕКСТ_ОСНОВНОЙ);
  font-size: 14px;
  font-weight: 700;
}

.btn--submit:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

/* =========================================
   10. ФУТЕР
   ========================================= */
.main-footer {
  position: relative;
  z-index: 2;
  padding: 60px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  width: 100vw;
  height: 600px;
  background: var(--ГРАДИЕНТ_СВЕЧЕНИЕ_ФУТЕРА);
  pointer-events: none;
}

.footer__logo-wrap {
  margin-bottom: 30px;
}

.footer__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.footer__questions {
  text-align: center;
  margin-bottom: 40px;
}

.questions__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}

.questions__subtitle {
  font-size: 16px;
  color: var(--ЦВЕТ_ТЕКСТ_СЕРЫЙ);
}

.footer__contacts-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  width: 100%;
  margin-bottom: 50px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3f4756 0%, #b5d1f0 100%);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-circle:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(181, 209, 240, 0.3);
  filter: brightness(1.1);
}

.contact-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card__text {
  font-size: 15px;
  line-height: 1.4;
  color: var(--ЦВЕТ_ТЕКСТ_СЕРЫЙ);
  text-decoration: none;
  transition: color 0.3s ease;
}

a.contact-card__text:hover {
  color: var(--ЦВЕТ_АКЦЕНТ_СИНИЙ);
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ЦВЕТ_ТЕКСТ_ОСНОВНОЙ);
  opacity: 0.75;
  transition: all 0.3s ease;
}

.social-link svg {
  width: 22px;
  height: 22px;
}

.social-link:hover {
  opacity: 1;
  color: var(--ЦВЕТ_АКЦЕНТ_СИНИЙ);
  transform: translateY(-3px);
}

/* Кнопка из мобильного макета — на десктопе не показывается */
.footer-cta {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 340px;
  margin: 4px auto 26px;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 9999px;
  background-image:
    linear-gradient(100deg, transparent 22%, rgba(255, 255, 255, 0.3) 40%, transparent 58%),
    var(--ГРАДИЕНТ_КНОПКА);
  background-size: 260% 100%, 100% 100%;
  background-position: 140% 0, 0 0;
  box-shadow: 0 8px 26px rgba(37, 99, 235, 0.4);
  color: var(--ЦВЕТ_ТЕКСТ_ОСНОВНОЙ);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background-position 0.8s ease, transform 0.3s ease, filter 0.3s ease;
}

.footer-cta:hover {
  background-position: -40% 0, 0 0;
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.footer__copyright {
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
}

/* =========================================
   11. АДАПТИВНОСТЬ
   ========================================= */

/* ----------------- ПЛАНШЕТ ----------------- */
@media (max-width: 1024px) {
  /* Плашки характеристик перестраиваются по содержимому */
  .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .feature-pill {
    flex: 0 1 auto;
  }
}

@media (max-width: 900px) {
  /* Блок 2 */
  .park-calc-group {
    gap: 50px;
    padding: 55px calc(var(--bleed-pad) + 40px);
  }

  .calculator__box {
    padding: 26px 16px;
  }

  .calc-box-val {
    font-size: 26px;
  }

  .calc-box-label {
    font-size: 13px;
  }

  /* Блок 3 */
  .bolhrad-card__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  /* Блок 4 */
  .steps-grid {
    grid-template-columns: 1fr 34px 1fr 34px 1fr;
  }

  .step__num {
    font-size: 54px;
  }

  .step__text {
    font-size: 15px;
  }

  .step-arrow svg {
    width: 28px;
    height: 12px;
  }

  .step-arrow--down svg {
    width: 12px;
    height: 28px;
  }

  /* Блок 5 */
  .why-block__body {
    flex-direction: column;
    gap: 28px;
  }

  .why-block__photo {
    width: 100%;
    min-height: 240px;
  }

  .why-list {
    padding-left: 0;
    border-left: none;
  }

  /* Форма и футер */
  .form-box {
    flex-direction: column;
    gap: 30px;
  }

  .form-box__right {
    width: 100%;
  }

  .footer__contacts-grid {
    gap: 30px;
  }
}

/* ----------------- ТЕЛЕФОН ----------------- */
@media (max-width: 768px) {
  /* на узких экранах поля страницы меньше */
  :root {
    --page-pad: 15px;
  }

  /* --- Блок 1: hero --- */
  .hero-card {
    min-height: auto;
    padding: 26px 20px 24px;
  }

  .logo-codex__img { height: 30px; }
  .logo-ribas__img { height: 30px; }

  .hero-card__content {
    margin: 26px 0 0;
  }

  .hero-card__title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .hero-card__desc {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 18px;
  }

  .hero-card__desc br {
    display: none;
  }

  .hero-card__list {
    gap: 2px;
  }

  .hero-card__list li {
    font-size: 13px;
    gap: 8px;
  }

  .check-icon {
    width: 13px;
    height: 10px;
  }

  /* в макете сначала доходность справа, ниже — кнопка */
  .hero-card__footer {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 22px;
    margin: 30px 0 20px;
  }

  .hero-yield {
    text-align: right;
  }

  .hero-yield__value {
    font-size: 19px;
  }

  .hero-yield__label {
    font-size: 13px;
  }

  .hero-btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 13px;
  }

  .hero-card__slogan {
    font-size: 13px;
  }

  /* --- Блок 2: энергопарк + калькулятор --- */
  .park-calc-group {
    gap: 40px;
    padding: 45px calc(var(--bleed-pad) + 15px);
  }

  .park-calc-group::before {
    opacity: 0.8;
  }

  .features-title {
    font-size: 22px;
    text-transform: uppercase;
    margin-bottom: 14px;
  }

  .features-desc {
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 22px;
  }

  .features-desc br {
    display: none;
  }

  /* на телефоне — две ровные колонки, подписи переносятся в 2 строки */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .feature-pill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7px 14px;
  }

  .feature-pill__value {
    font-size: 15px;
    margin-bottom: 1px;
  }

  .feature-pill__label {
    font-size: 9.5px;
    line-height: 1.25;
  }

  /* Калькулятор */
  .calculator-section .section-title {
    font-size: 22px;
    text-transform: none;
    margin-bottom: 18px;
  }

  .calculator__subtitle {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .calculator__amount-wrap .currency,
  #calc-input {
    font-size: 30px;
  }

  #calc-input {
    width: 130px;
  }

  #calc-slider {
    max-width: 230px;
    margin-bottom: 26px;
  }

  .calc-sun {
    width: 320px;
    height: 320px;
  }

  /* в макете 4 колонки остаются в одну строку */
  .calculator__box {
    flex-direction: row;
    gap: 4px;
    padding: 14px 8px;
    border-radius: 12px;
  }

  .calc-box-val {
    font-size: 14px;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
  }

  .calc-box-label {
    font-size: 8.5px;
    line-height: 1.2;
  }

  .calc-btn {
    width: 100%;
    max-width: 300px;
    margin-top: 26px;
    padding: 12px 20px;
    font-size: 13px;
  }

  /* --- Блок 3: Болград --- */
  .bolhrad-card {
    min-height: 420px;
    padding: 28px 20px 26px;
  }

  .bolhrad-card__title {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .bolhrad-card__desc {
    font-size: 13px;
    line-height: 1.4;
  }

  .bolhrad-card__bottom {
    align-items: center;
    margin-top: 30px;
    gap: 22px;
  }

  .bolhrad-card__stats {
    width: 100%;
  }

  .bolhrad-card__stage {
    font-size: 14px;
  }

  .bolhrad-stats li {
    font-size: 13px;
  }

  .bolhrad-btn {
    width: auto;
    padding: 12px 30px;
    font-size: 11px;
  }

  /* --- Блок 4: як працює інвестиція --- */
  .invest-block {
    padding: 32px 20px 0;
  }

  .invest-block__title {
    font-size: 20px;
    margin-bottom: 26px;
  }

  .invest-block__title--second {
    font-size: 20px;
    margin: 34px 0 18px;
  }

  /* три колонки сохраняем, как в макете */
  .steps-grid {
    grid-template-columns: 1fr 16px 1fr 16px 1fr;
    column-gap: 0;
    row-gap: 8px;
  }

  .step {
    gap: 8px;
  }

  .step__num {
    font-size: 30px;
  }

  .step__text {
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0;
  }

  .step-arrow svg {
    width: 18px;
    height: 8px;
  }

  .step-arrow--down svg {
    width: 8px;
    height: 18px;
  }

  .step-arrow--down {
    padding: 2px 0;
  }

  /* Карточка «Чому саме енергетика?» */
  .energy-card {
    min-height: 300px;
    padding: 22px 18px;
    align-items: flex-start;
  }

  .energy-card::before {
    background: linear-gradient(180deg,
      rgba(8, 14, 26, 0.92) 0%,
      rgba(8, 14, 26, 0.72) 45%,
      rgba(8, 14, 26, 0.4) 100%);
  }

  .energy-stats {
    gap: 14px;
    max-width: none;
  }

  .energy-stats__val {
    font-size: 15px;
  }

  .energy-stats__label {
    font-size: 10px;
    line-height: 1.25;
  }

  .energy-stats__label br {
    display: none;
  }

  /* --- Блок 5: чому Codex Energy --- */
  .why-block {
    padding: 32px 20px 34px;
  }

  .why-block__title {
    font-size: 24px;
    margin-bottom: 22px;
  }

  /* в макете сначала список, фото ниже */
  .why-block__body {
    flex-direction: column-reverse;
    gap: 24px;
  }

  .why-block__photo {
    min-height: 190px;
  }

  .why-list {
    gap: 18px;
  }

  .why-list li {
    padding-left: 14px;
    border-left: 1px solid rgba(255, 255, 255, 0.25);
  }

  .why-list__title {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .why-list__desc {
    font-size: 11.5px;
  }

  .ribas-bar {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding: 16px 18px;
  }

  .ribas-bar__logo {
    padding-right: 16px;
  }

  .ribas-bar__logo img {
    height: 34px;
  }

  .ribas-bar__text {
    font-size: 12px;
  }

  /* --- Форма --- */
  .form-box {
    position: relative;
    gap: 20px;
    padding: 28px 20px 26px;
  }

  .form-box__title {
    font-size: 24px;
    text-transform: uppercase;
  }

  .form-box__desc {
    font-size: 13px;
  }

  .form-box__left .logo--small {
    display: none;
  }

  .btn--submit {
    width: auto;
    min-width: 180px;
    align-self: center;
    padding: 0 28px;
  }

  /* --- Футер --- */
  .footer-cta {
    display: none;
  }

  .footer__questions {
    display: none;
  }

  .footer__contacts-grid {
    flex-direction: column;
    gap: 12px;
  }

  .contact-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    text-align: left;
  }

  .contact-circle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin-bottom: 0;
  }

  .contact-circle svg {
    width: 18px;
    height: 18px;
  }

  .contact-card__title {
    font-size: 13px;
    margin-bottom: 2px;
  }

  .contact-card__text {
    font-size: 14px;
  }

  /* Принудительные переносы строк отключаем на узких экранах */
  .bolhrad-card__desc br,
  .why-list__desc br,
  .ribas-bar__text br {
    display: none;
  }
}

/* ----------------- УЗКИЕ ТЕЛЕФОНЫ ----------------- */
@media (max-width: 380px) {
  .hero-card__title {
    font-size: 21px;
  }

  .calc-box-label {
    font-size: 7.5px;
  }

  .step__text {
    font-size: 8px;
  }

  .feature-pill__label {
    font-size: 9px;
  }
}


/* =========================================
   12. АНИМАЦИИ
   Классы is-visible / anim-on вешает script.js,
   поэтому без JS страница просто статична, ничего не пропадает.
   ========================================= */

/* --- Появление блоков при скролле --- */
/* Прячем только то, что подготовил script.js (атрибут data-reveal).
   Класс scroll-animate сам по себе ничего не скрывает — страховка
   от того, чтобы случайно прописанный в разметке класс убрал блок. */
.scroll-animate[data-reveal] {
  opacity: 0;
  /* --reveal-from задаёт script.js: снизу при движении вниз, сверху при возврате */
  transform: translateY(var(--reveal-from, 46px));
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.scroll-animate[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --- Вступительная анимация первого экрана --- */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes photo-zoom-in {
  from { transform: scale(1.09); }
  to { transform: scale(1); }
}

@keyframes title-sheen {
  0%, 100% { background-position: 140% 0; }
  50% { background-position: -40% 0; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35); }
  50% { box-shadow: 0 6px 30px rgba(47, 111, 221, 0.6); }
}

@keyframes value-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.09); color: #7fb0ff; }
  100% { transform: scale(1); }
}

.hero-card::before {
  animation: photo-zoom-in 2.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  /* точка фона слегка следует за курсором (--px/--py задаёт script.js) */
  background-position: calc(50% + var(--px, 0px)) calc(50% + var(--py, 0px));
  transition: background-position 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-card__header { animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both; }
.hero-card__title { animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
.hero-card__desc { animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both; }
.hero-card__list li:nth-child(1) { animation: rise-in 0.7s ease-out 0.6s both; }
.hero-card__list li:nth-child(2) { animation: rise-in 0.7s ease-out 0.7s both; }
.hero-card__list li:nth-child(3) { animation: rise-in 0.7s ease-out 0.8s both; }
.hero-card__footer { animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both; }
.hero-card__slogan { animation: rise-in 0.9s ease-out 1.15s both; }

/* Живой блик по заголовку */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-card__title {
    background-image: linear-gradient(100deg, #ffffff 32%, #b9d3ff 47%, #ffffff 62%);
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero-card.is-loaded .hero-card__title {
    animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both,
               title-sheen 7s ease-in-out 2s infinite;
  }
}

/* --- Кнопки: световой блик при наведении --- */
.hero-btn,
.calc-btn,
.btn--submit {
  background-image:
    linear-gradient(100deg, transparent 22%, rgba(255, 255, 255, 0.3) 40%, transparent 58%),
    var(--ГРАДИЕНТ_КНОПКА);
  background-size: 260% 100%, 100% 100%;
  background-position: 140% 0, 0 0;
  transition: background-position 0.8s ease, transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.hero-btn:hover,
.calc-btn:hover,
.btn--submit:hover {
  background-position: -40% 0, 0 0;
}

.hero-btn {
  animation: glow-pulse 3.5s ease-in-out 2s infinite;
}

.hero-btn:hover {
  animation-play-state: paused;
}

.bolhrad-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.bolhrad-btn {
  position: relative;
}

.bolhrad-btn:hover::after {
  opacity: 1;
  transform: scale(1.12);
}

/* --- Плашки характеристик --- */
.feature-pill:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20, 40, 90, 0.45);
}

/* --- Схема шагов: цифры выезжают, стрелки прорисовываются --- */
body.anim-on .step-arrow svg path {
  stroke-dasharray: 95;
  stroke-dashoffset: 95;
}

body.anim-on .steps-grid.is-visible .step-arrow svg path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.9s ease 0.5s;
}

.step__num {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), text-shadow 0.4s ease;
}

.step:hover .step__num {
  transform: scale(1.12);
  text-shadow: 0 0 26px rgba(122, 170, 255, 0.75);
}

/* --- Калькулятор --- */
.calc-box-val.is-updating {
  animation: value-pop 0.5s ease;
}

.calculator__box {
  transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

.calculator__box:hover {
  border-color: rgba(126, 170, 255, 0.35);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28), 0 0 40px rgba(47, 111, 221, 0.12);
}

/* --- Карточки контактов и соцсети --- */
.contact-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-card:hover {
  transform: translateY(-6px);
}

/* --- Полоса прогресса чтения --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2f6fdd 0%, #7fb0ff 100%);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* --- Уважение к системной настройке «меньше движения» --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-animate {
    opacity: 1;
    transform: none;
  }

  .scroll-progress {
    display: none;
  }
}

/* =========================================
   13. АНИМАЦИЯ БЛОКА ПРЕИМУЩЕСТВ
   ========================================= */

/* Свет под курсором внутри плашки */
.feature-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(150px circle at var(--mx, 50%) var(--my, 50%),
    rgba(125, 175, 255, 0.25) 0%,
    rgba(125, 175, 255, 0.08) 40%,
    transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.feature-pill:hover::before {
  opacity: 1;
}

/* Блик, пробегающий по плашке */
.feature-pill::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  z-index: 0;
  width: 45%;
  background: linear-gradient(100deg,
    transparent 0%,
    rgba(190, 220, 255, 0.32) 50%,
    transparent 100%);
  transform: skewX(-16deg);
  opacity: 0;
  pointer-events: none;
}

@keyframes pill-sweep {
  0% { left: -60%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 115%; opacity: 0; }
}

/* Волна света при появлении блока — плашка за плашкой */
.feature-pill.is-visible::after {
  animation: pill-sweep 1.1s cubic-bezier(0.4, 0, 0.2, 1) var(--reveal-delay, 0s);
}

/* «Бегущая энергия»: script.js по очереди подсвечивает плашки */
.feature-pill.is-pulsing {
  border-color: rgba(150, 195, 255, 0.9);
  box-shadow:
    0 0 30px rgba(70, 130, 230, 0.35),
    inset 0 0 22px rgba(90, 150, 255, 0.12);
}

.feature-pill.is-pulsing::after {
  animation: pill-sweep 1s ease;
}

.feature-pill.is-pulsing .feature-pill__value {
  color: #cfe2ff;
  text-shadow: 0 0 18px rgba(120, 175, 255, 0.55);
}

.feature-pill__value {
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
  .feature-pill::before,
  .feature-pill::after {
    display: none;
  }
}
