/* ============================================================
   ATMOSFERA — landing v3
   Premium brand: navy #172635 - gold #E0BE88 - bronze #967E59
   Fonts: Jost (заголовки) + Raleway (текст)
   ============================================================ */

/* ---------- Фірмові шрифти (variable, локально) ---------- */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/jost-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/raleway-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/raleway-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --navy:          #172635;   /* бренд: темний синій */
  --navy-deep:     #0E1A26;
  --gold:          #E0BE88;   /* бренд: акцент 1 */
  --bronze:        #967E59;   /* бренд: акцент 2 */
  --sand:          #F4EFE6;   /* світлий тон від золота */
  --ink:           #1B2430;
  --muted:         #67707C;
  --bg:            #FFFFFF;
  --bg-2:          #F7F5F1;
  --line:          rgba(23, 38, 53, 0.12);
  --white:         #ffffff;

  --font-head:     "Jost", system-ui, sans-serif;
  --font-body:     "Raleway", system-ui, sans-serif;

  --container:     1240px;
  --radius:        20px;
  --radius-sm:     12px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --shadow:        0 30px 60px -30px rgba(23, 38, 53, 0.35);
  --shadow-sm:     0 14px 34px -18px rgba(23, 38, 53, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: 0.01em; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: inherit;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
  border-radius: 100px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s var(--ease),
              color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 17px 38px; font-size: 1.05rem; }
.btn--primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-deep); box-shadow: 0 18px 40px -16px rgba(14,26,38,.5); }
/* без backdrop-filter: blur під reveal-анімацією вмикається стрибком після transition opacity */
.btn--glass {
  background: rgba(255,255,255,.2); color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--glass:hover { background: rgba(255,255,255,.32); border-color: var(--white); }
.btn--phone { background: transparent; color: inherit; border-color: currentColor; padding: 10px 18px; font-size: .92rem; opacity: .92; }
.btn--phone:hover { opacity: 1; }
.btn svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   HEADER — прозорий над hero, темно-синій після скролу
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--white);
  padding: 16px 0;
  transition: background .4s var(--ease), box-shadow .4s var(--ease),
              padding .4s var(--ease), color .4s var(--ease);
}
.header.is-scrolled {
  /* без backdrop-filter: він робить хедер containing block для fixed-нащадків,
     і фон висувного мобільного меню стискався до висоти хедера */
  background: rgba(23, 38, 53, 0.97);
  box-shadow: 0 10px 30px -18px rgba(14,26,38,.5);
  padding: 8px 0;
}
.header__inner { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 28px; }

/* Лого: біле лого на CSS-плашці бренд-синього кольору, що звисає з верхнього краю;
   при скролі плашка стискається до висоти бару і зливається з темним хедером */
.header__logo {
  /* top компенсує padding хедера — плашка починається від краю в'юпорта */
  position: absolute; left: 28px; top: -16px; z-index: 2;
  display: grid; place-items: center;
  width: 140px; height: 122px;
  background: var(--navy);
  box-shadow: 0 12px 26px -8px rgba(10,18,28,.45);
  transition: top .4s var(--ease), width .4s var(--ease), height .4s var(--ease),
              background .4s var(--ease), box-shadow .4s var(--ease);
}
.header__logo img { width: 100px; height: auto; transition: width .4s var(--ease); }
.header.is-scrolled .header__logo {
  top: -8px;
  width: 120px; height: calc(100% + 16px); /* точно висота бару */
  background: transparent;
  box-shadow: none;
}
.header.is-scrolled .header__logo img { width: 72px; }

.nav { display: flex; gap: 28px; }
.nav__link {
  position: relative; font-size: .95rem; font-weight: 600; opacity: .88;
  transition: opacity .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: currentColor; transition: width .3s var(--ease);
}
.nav__link:hover { opacity: 1; color: var(--gold); }
.nav__link:hover::after { width: 100%; background: var(--gold); }

.header__actions { display: flex; align-items: center; gap: 14px; }

.social { display: flex; gap: 10px; }
.social__link {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid; border-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: all .3s var(--ease);
}
.social__link svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social__link:hover { background: var(--gold); color: var(--navy) !important; border-color: var(--gold); transform: translateY(-2px); }

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  background: none; border: 1px solid; border-color: color-mix(in srgb, currentColor 35%, transparent);
  border-radius: 10px; cursor: pointer; padding: 0; color: inherit;
  align-items: center; justify-content: center; }
.burger span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO — реальний рендер, центрована композиція, велике лого
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); overflow: hidden; isolation: isolate;
  text-align: center;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  /* лише кросфейд по opacity — композитна анімація, плавна на будь-якому залізі */
  transition: opacity 2.5s ease-in-out;
  will-change: opacity;
}
.hero__slide.is-active { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  /* як на svidomy.com.ua (.hero-bg), але з базовою прозорістю .15 для читабельності
     тексту на світлих рендерах; затемнення наростає при скролі — opacity керує JS */
  background: #000;
  opacity: 0.15;
  pointer-events: none;
}
.hero__inner { padding-top: 110px; padding-bottom: 110px; display: flex; flex-direction: column; align-items: center; }

/* Входження hero — чистий CSS без .reveal:
   h1 (LCP-елемент) НЕ ховаємо через opacity — лише transform, текст видно з першого кадру */
@keyframes heroRise { from { transform: translateY(26px); } }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(26px); } }

.hero__title {
  font-size: clamp(2.8rem, 9vw, 7rem); font-weight: 500; letter-spacing: 0.14em;
  margin: 0; line-height: .95;
  /* сильніші тіні компенсують відсутність оверлея на світлих рендерах */
  text-shadow: 0 2px 12px rgba(0,0,0,.5), 0 8px 44px rgba(0,0,0,.4);
  animation: heroRise .8s var(--ease) both;
}
.hero__subtitle {
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.35rem); font-weight: 400; letter-spacing: .24em;
  text-transform: uppercase; margin: 26px 0 0; opacity: .95;
  text-shadow: 0 1px 8px rgba(0,0,0,.65), 0 3px 26px rgba(0,0,0,.5);
  animation: heroFadeUp .9s var(--ease) .15s both;
}
.hero__subtitle span {
  text-transform: none; letter-spacing: .01em; font-weight: 300;
  font-size: clamp(1rem, 1.8vw, 1.25rem); opacity: .9;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 44px;
  animation: heroFadeUp .9s var(--ease) .3s both;
}
.hero .btn--primary { background: var(--gold); color: var(--navy-deep); }
.hero .btn--primary:hover { background: #d3ac72; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 34px; translate: -50% 0;
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; translate: -50% 0; width: 4px; height: 8px;
  background: #fff; border-radius: 4px; animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translate(-50%, 14px); } 100% { opacity: 0; } }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section { padding: clamp(70px, 10vw, 130px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(42px, 6vw, 72px); }
.section__num {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .25em;
  color: var(--bronze); margin-bottom: 18px;
}
.section__title { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 20px; }
.section__lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--muted); font-weight: 300; margin: 0; }
.section__head--light .section__num { color: var(--gold); }

/* ---------- Ecosystem ---------- */
.ecosystem { position: relative; background: var(--bg-2); overflow: hidden; }
.ecosystem .container { position: relative; z-index: 1; }

/* рендер праворуч; розчиняється у фон секції з усіх боків, окрім правого краю.
   Дві маски перетинаються: довге згасання ліворуч + м'які краї згори й знизу */
.eco__media {
  position: absolute; top: 0; right: 0; z-index: 0;
  width: 52%; height: 100%; object-fit: cover; object-position: 62% center;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, rgba(0,0,0,.4) 34%, #000 68%),
    linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, rgba(0,0,0,.4) 34%, #000 68%),
    linear-gradient(180deg, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}

/* текст не заходить під рендер + золота риска під заголовком */
.ecosystem .section__head { max-width: 54%; }
.ecosystem .section__title::after {
  content: ""; display: block; width: 64px; height: 2px;
  background: var(--gold); margin-top: 24px;
}

.eco-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  margin-top: clamp(40px, 6vw, 70px);
}
.eco-card {
  display: flex; flex-direction: column;
  padding: 30px 26px 26px; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.eco-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.eco-card__num {
  font-family: var(--font-head); font-weight: 600; line-height: 1;
  font-size: clamp(2.6rem, 4.2vw, 3.5rem); color: var(--navy); letter-spacing: -.02em;
}
/* слово замість числа: менший кегль, але та сама висота рядка — підписи лишаються в один ряд */
.eco-card__num--word {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: clamp(2.6rem, 4.2vw, 3.5rem);
  letter-spacing: 0;
}
.eco-card__num i { font-style: normal; font-weight: 500; font-size: .4em; margin-left: 3px; }
.eco-card__label { margin: 16px 0 0; font-size: .97rem; font-weight: 500; color: var(--ink); }
.eco-card__art {
  width: 100%; height: auto; margin-top: auto; padding-top: 28px;
  stroke: var(--bronze); fill: none; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Complexes / cards з рендерами ---------- */
.complexes { background: var(--bg-2); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: 30px 28px 32px; display: flex; flex-direction: column; flex: 1; }
.card__tag {
  align-self: flex-start; font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bronze); background: var(--sand); padding: 6px 12px; border-radius: 100px; margin-bottom: 18px;
}
.card--premium .card__tag { color: var(--navy); background: rgba(224,190,136,.35); }
.card__title { font-size: 1.65rem; letter-spacing: .04em; margin-bottom: 8px; }
.card__title em { font-style: normal; font-weight: 400; color: var(--muted); }
.card--premium .card__title em { color: var(--bronze); font-weight: 600; }
.card__place { color: var(--bronze); font-weight: 600; font-size: .95rem; margin: 0 0 12px; }
.card__desc { color: var(--muted); margin: 0 0 26px; flex: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink);
  align-self: flex-start; transition: gap .3s var(--ease), color .3s;
}
.card__link svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card__link:hover { color: var(--bronze); gap: 12px; }
.card--premium .card__link:hover { color: var(--bronze); }

/* ---------- Advantages / features ---------- */
.advantages { background: var(--bg); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature {
  background: var(--white); padding: 34px 28px; border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { border-color: transparent; transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.feature__icon {
  width: 46px; height: 46px; padding: 10px; border-radius: 12px; background: var(--sand);
  stroke: var(--bronze); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px;
}
.feature__title { font-size: 1.14rem; margin-bottom: 10px; }
.feature__text { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Infrastructure (district) ---------- */
.infrastructure { background: var(--bg-2); }
.infra { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.infra__map { width: 100%; }
.map { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.map-google {
  width: 100%; aspect-ratio: 5 / 4;
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; /* заокруглення для iframe-канви Google */
}
.map-google[hidden] { display: none; }
.map__road { fill: none; stroke: #E7E1D4; stroke-width: 10; stroke-linecap: round; }
.map__core { fill: var(--bronze); }
.map__core-ring { fill: none; stroke: var(--bronze); stroke-width: 2; opacity: .4;
  transform-origin: 200px 150px; animation: pulse 2.6s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.7); opacity: .55; } 70% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }
.map__poi circle { fill: var(--white); stroke: var(--bronze); stroke-width: 2.5; }
.map__label { fill: var(--navy-deep); font: 500 13px "Jost", sans-serif; letter-spacing: .12em; }

.infra__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.infra__item {
  display: flex; align-items: center; gap: 16px; background: var(--white); padding: 20px 22px;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease);
  font-weight: 600;
}
.infra__item:hover { transform: translateY(-4px); }
.infra__item svg { width: 28px; height: 28px; flex: none; stroke: var(--bronze); fill: none; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Inside complex ---------- */
.inside { background: var(--bg); }
.inside__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.inside__item {
  display: flex; flex-direction: column; gap: 18px; padding: 40px 32px;
  background: var(--sand); border-radius: var(--radius); font-size: 1.15rem; font-weight: 600;
  transition: background .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.inside__item:hover { background: var(--white); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.inside__item svg { width: 36px; height: 36px; stroke: var(--bronze); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Security — рендер із м'яким індиговим оверлеєм ---------- */
.security { position: relative; color: var(--white); overflow: hidden; isolation: isolate; }
.security__bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("../assets/img/security-bg.webp") center / cover no-repeat;
}
.security__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(23,38,53,.93) 0%, rgba(23,38,53,.82) 55%, rgba(14,26,38,.9) 100%);
}
.security .section__title { color: var(--white); }
.security .section__lead { color: rgba(255,255,255,.78); }
.security__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.security__item {
  padding: 34px 28px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  background: rgba(14,26,38,.45); /* без backdrop-filter — див. коментар біля .btn--glass */
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.security__item:hover { background: rgba(14,26,38,.65); transform: translateY(-6px); }
.security__item svg { width: 42px; height: 42px; stroke: var(--gold); fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.security__item h3 { font-size: 1.2rem; margin-bottom: 10px; }
.security__item p { color: rgba(255,255,255,.75); font-size: .95rem; margin: 0; }

/* ---------- CTA / form ---------- */
.cta { background: var(--bg-2); }
.cta__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.cta__phone {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 1.3rem; font-weight: 700;
  color: var(--navy); transition: color .25s;
}
.cta__phone svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cta__phone:hover { color: var(--bronze); }

.form { background: var(--white); padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__field { margin-bottom: 20px; }
.form__field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.form__field input, .form__field select {
  width: 100%; font: inherit; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-2); color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.form__field input:focus, .form__field select:focus {
  outline: none; border-color: var(--bronze); box-shadow: 0 0 0 3px rgba(150,126,89,.2);
}
.form__field.has-error input, .form__field.has-error select { border-color: #d23b4e; }
.form__error { display: block; min-height: 16px; color: #d23b4e; font-size: .8rem; margin-top: 6px; }
.form__submit { width: 100%; margin-top: 6px; }
.form__note { font-size: .8rem; color: var(--muted); text-align: center; margin: 16px 0 0; }
.form__success {
  margin: 18px 0 0; padding: 14px 18px; border-radius: var(--radius-sm); text-align: center;
  background: var(--sand); color: var(--navy-deep); font-weight: 600;
}

/* ============================================================
   FOOTER — світлий
   ============================================================ */
.footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 70px 0 28px; }
.footer__inner { display: grid; grid-template-columns: 1.1fr 1.2fr 0.9fr; gap: 40px; padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.12); }
.footer__logo { display: inline-block; }
.footer__logo img { width: 150px; height: auto; margin-bottom: 16px; transition: transform .35s var(--ease); }
.footer__logo:hover img { transform: translateY(-3px); }
.footer__tagline { letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; color: rgba(255,255,255,.55); margin: 0; }
.footer__col h3 { font-size: 1rem; letter-spacing: .1em; margin-bottom: 18px; color: var(--gold); }
.footer__col p { margin: 0 0 10px; font-size: .94rem; color: rgba(255,255,255,.6); }
.footer__col a { color: var(--white); font-weight: 600; }
.footer__col a:hover { color: var(--gold); }
.footer .social { margin-top: 18px; }
.footer .social__link { color: rgba(255,255,255,.85); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px;
  font-size: .85rem; color: rgba(255,255,255,.5); }
.footer__top:hover { color: var(--gold); }

/* ============================================================
   STICKY CTA (mobile)
   ============================================================ */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 45;
  display: none; text-align: center; padding: 16px; border-radius: 100px; font-weight: 700;
  background: var(--gold); color: var(--navy-deep); box-shadow: 0 16px 36px -12px rgba(14,26,38,.55);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .map__core-ring, .hero__scroll span { animation: none; }
  .hero__slide { transition: none; }
  .hero__title, .hero__subtitle, .hero__cta { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .eco-cards { grid-template-columns: repeat(2, 1fr); }
  .ecosystem .section__head { max-width: 62%; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .security__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px); flex-direction: column; gap: 8px;
    background: var(--navy); color: var(--white); padding: 100px 32px 40px;
    box-shadow: -20px 0 60px -20px rgba(0,0,0,.25);
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 49;
  }
  .nav.is-open { transform: translateX(0); }
  /* кнопки хедера — НАД висувною панеллю; панель темна, тож колір лишається білим */
  .header__actions { position: relative; z-index: 50; }
  .nav.is-open ~ .header__actions { color: var(--white); }
  .nav__link { font-size: 1.15rem; padding: 10px 0; }
  .nav__link::after { display: none; }
  .burger { display: flex; }
  .social--header, .btn--phone span { display: none; }
  .btn--phone { padding: 10px; }
  .header__logo { left: 20px; width: 104px; height: 92px; }
  .header__logo img { width: 76px; }
  .header.is-scrolled .header__logo { width: 84px; }
  .header.is-scrolled .header__logo img { width: 58px; }
  /* на вузьких екранах лишаємо самі картки — рендер прибираємо
     (display:none на lazy-картинці ще й не дає її завантажувати) */
  .eco__media { display: none; }
  .ecosystem .section__head { max-width: none; }
  .cards { grid-template-columns: 1fr; max-width: 500px; margin-inline: auto; }
  .infra { grid-template-columns: 1fr; }
  .cta__inner { grid-template-columns: 1fr; }
  .inside__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .container { padding-inline: 20px; }
  .sticky-cta { display: block; }
  .eco-cards { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .security__grid { grid-template-columns: 1fr; }
  .inside__grid { grid-template-columns: 1fr; }
  .infra__list { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 10px; }
  .hero__inner { padding-top: 100px; }
  .hero__cta .btn { width: 100%; }
}
