/* Скидання */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', sans-serif;
  color: #222;
  background: #fafafa;
  font-size: 16px;
  line-height: 1.6;
}

/* Контейнер */
.header__container, 
.footer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* ===== HEADER (mobile-first) ===== */
.header{
  position: sticky; top: 0; z-index: 999;
  backdrop-filter: blur(10px);
  background: color-mix(in oklab, #0f1221 86%, transparent);
  border-bottom: 1px solid var(--line);
}
.header__container{
  max-width: 1200px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

/* Лого */
.header__logo{
  font-family:'Source Serif Pro', serif;
  font-weight: 700; letter-spacing:.2px;
  color: var(--text); text-decoration: none;
  font-size: 1.25rem;
}

/* Бургер */
.header__toggle{
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.header__toggle i{ width: 20px; height: 20px; }
.header__toggle:hover{ transform: translateY(-1px); border-color: rgba(107,230,117,.45); }

/* Навігація: мобайл (закрита за замовчуванням) */
.header__nav{
  position: absolute; left: 0; right: 0; top: 100%;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, #0f1221 96%, transparent);
  transform-origin: top center;
  transform: scaleY(0.96);
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.header__menu{
  list-style: none; display: grid; gap: 4px;
  padding: 10px; margin: 0;
}
.header__item{ }
.header__link{
  display: block; padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--text);
  border: 1px solid transparent;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.header__link:hover,
.header__link:focus-visible{
  background: #121535; border-color: var(--line);
}
.header__link--cta{
  background: linear-gradient(180deg, var(--brand) 0%, #46d65b 100%);
  color: var(--brand-ink); font-weight: 700;
}
.header__link--cta:hover{ transform: translateY(-1px); }

/* Стан "відкрито" для мобайлу */
.header__nav--open{
  opacity: 1; visibility: visible; transform: scaleY(1);
}

/* ===== DESKTOP ≥ 900px ===== */
@media (min-width: 900px){
  .header__toggle{ display: none; }
  .header__nav{
    position: static; opacity: 1; visibility: visible; transform: none;
    border-bottom: none; background: transparent;
  }
  .header__menu{
    display: flex; gap: 10px; padding: 0;
  }
  .header__link{
    padding: 10px 12px;
  }
}

/* Доступність і фокуси */
.header__link:focus-visible,
.header__toggle:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(107,230,117,.18);
  border-color: rgba(107,230,117,.45);
}

/* Режим зменшення анімації */
@media (prefers-reduced-motion: reduce){
  .header__toggle,
  .header__link,
  .header__nav{
    transition: none !important;
  }
}


/* Футер */
.footer {
  background: #1e1e1e;
  color: #ddd;
  padding: 40px 20px;
}

.footer__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer__logo {
  font-family: 'Source Serif Pro', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.footer__title {
  font-weight: 600;
  margin-bottom: 10px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
}

.footer ul a:hover {
  color: #fff;
}

/* ===== Палитра и утилиты ===== */
:root{
  --bg: #0f1221;
  --bg-soft:#151736;
  --text:#e6e7f2;
  --muted:#aeb1c9;
  --brand:#6be675;         /* свежий лаймово-мятный акцент */
  --brand-ink:#0b2811;
  --line: rgba(230,231,242,0.08);
  --card: #11142a;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

body{
  background: radial-gradient(1200px 800px at 20% -10%, #1b1e3e 0%, var(--bg) 60%) fixed;
  color: var(--text);
}

/* ===== Кнопки ===== */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 18px; border-radius:12px; text-decoration:none;
  font-weight:600; transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn i{ width:18px; height:18px; }
.btn--primary{
  background: linear-gradient(180deg, var(--brand) 0%, #46d65b 100%);
  color:#0d1b12; box-shadow: 0 8px 20px rgba(107,230,117,.25);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 12px 24px rgba(107,230,117,.35);}
.btn--ghost{
  border:1px solid var(--line); color: var(--text); background: transparent;
}
.btn--ghost:hover{ border-color: var(--text); transform: translateY(-2px); }

/* ===== HERO ===== */
.hero{
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 80px;
  overflow: clip;
}
.hero__container{
  max-width:1200px; margin:0 auto; padding:0 20px;
  display:grid; grid-template-columns: 1.15fr .85fr; gap:40px; align-items:center;
}
@media (max-width: 900px){
  .hero__container{ grid-template-columns: 1fr; }
}

.hero__eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.9rem; color:var(--muted); background: rgba(255,255,255,.03);
  border:1px solid var(--line); padding:8px 12px; border-radius:999px;
  backdrop-filter: blur(6px);
}
.hero__eyebrow-icon{ width:16px; height:16px; }

.hero__title{
  margin-top:18px;
  font-family:'Source Serif Pro', serif;
  font-size: clamp(28px, 5vw, 56px);
  line-height:1.1;
  letter-spacing:0.2px;
}
.hero__focus{
  display:inline-block; position:relative; padding:0 .25ch;
  background: linear-gradient(90deg, rgba(107,230,117,.15), rgba(255,255,255,0));
  border-radius:8px;
}
.hero__rotator{ white-space:nowrap; }

.hero__subtitle{
  margin-top:16px; color:var(--muted); max-width:56ch;
}

.hero__actions{ margin-top:24px; display:flex; gap:14px; flex-wrap:wrap; }

.hero__badges{ margin-top:22px; display:flex; gap:12px; flex-wrap:wrap; }
.hero__badge{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--bg-soft); border:1px solid var(--line); color:#cfd2e8;
  padding:8px 12px; border-radius:12px;
}
.hero__badge i{ width:16px; height:16px; }

.hero__media{
  position:relative;
  display:grid; place-items:center;
}
.hero__image{
  width:100%; max-width:520px; aspect-ratio: 4/3; object-fit:cover;
  border-radius:20px; border:1px solid var(--line);
  background:#0b0d1f url('img/some_bg.jpg') center/cover no-repeat;
  box-shadow: var(--shadow);
  transform: translate3d(0,0,0);
  transition: transform .3s ease;
}
.hero__media:hover .hero__image{ transform: translateY(-4px); }

.hero__card{
  position:absolute; bottom:-14px; right:-14px;
  display:flex; align-items:center; gap:8px;
  background: #121535; color:#dfe2fb; border:1px solid var(--line);
  padding:10px 12px; border-radius:14px; box-shadow: var(--shadow);
  font-size:.9rem;
}
.hero__card i{ width:16px; height:16px; color: var(--brand); }

/* Scroll hint */
.hero__scroll{
  position:absolute; left:50%; transform:translateX(-50%);
  bottom:12px; display:flex; align-items:center; gap:8px;
  border:1px solid var(--line); background: rgba(255,255,255,.02);
  color:var(--muted); padding:8px 12px; border-radius:999px; cursor:pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.hero__scroll:hover{ border-color: var(--text); transform: translate(-50%, -2px); }
.hero__scroll i{ width:16px; height:16px; }

/* ===== INSIGHTS ===== */
.insights{
  padding: clamp(56px, 8vw, 96px) 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.insights__container{
  max-width:1200px; margin:0 auto; padding:0 20px;
}
.insights__header{
  max-width:800px; margin-bottom:24px;
}
.insights__title{
  font-family:'Source Serif Pro', serif;
  font-size: clamp(24px, 3.8vw, 40px);
}
.insights__lead{
  color:var(--muted);
  margin-top:10px;
}
.insights__grid{
  margin-top:22px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
@media (max-width: 960px){
  .insights__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .insights__grid{ grid-template-columns: 1fr; }
}

.insights-card{
  list-style:none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius:16px;
  padding:18px;
  display:flex; flex-direction:column; gap:10px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  will-change: transform;
}
.insights-card:hover{
  transform: translateY(-4px);
  border-color: rgba(107,230,117,.45);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.insights-card__icon i{ width:20px; height:20px; color: var(--brand); }
.insights-card__title{
  font-weight:700; letter-spacing:.2px;
}
.insights-card__text{
  color:#cfd2e8;
}
.insights-card__cta{
  margin-top:auto;
  align-self:flex-start;
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:10px;
  border:1px dashed rgba(107,230,117,.35);
  color:var(--text); text-decoration:none;
  transition: border-color .18s ease, transform .18s ease;
}
.insights-card__cta i{ width:16px; height:16px; }
.insights-card__cta:hover{
  transform: translateY(-2px);
  border-color: rgba(107,230,117,.8);
}

/* ===== STORIES ===== */
.stories{
  padding: clamp(56px, 8vw, 96px) 0;
}
.stories__container{ max-width:1200px; margin:0 auto; padding:0 20px; }
.stories__title{
  font-family:'Source Serif Pro', serif;
  font-size: clamp(24px, 3.8vw, 40px);
}
.stories__lead{ color: var(--muted); margin-top:10px; }

.stories-tabs{
  margin-top:18px; display:flex; gap:10px; flex-wrap:wrap;
}
.stories-tabs__btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 14px; border-radius:12px;
  border:1px solid var(--line); background: var(--card); color: var(--text);
  cursor:pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.stories-tabs__btn i{ width:18px; height:18px; }
.stories-tabs__btn:hover{ transform: translateY(-2px); border-color: rgba(107,230,117,.45); }
.stories-tabs__btn--active{
  background: linear-gradient(180deg, var(--brand) 0%, #46d65b 100%);
  color: var(--brand-ink);
  border-color: transparent;
}

.stories__panes{ margin-top:18px; }
.stories-pane{ display:none; }
.stories-pane--active{ display:block; }

.story-card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  display:flex; flex-direction:column; gap:14px;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .18s ease, border-color .18s ease;
}
.story-card:hover{ transform: translateY(-2px); border-color: rgba(107,230,117,.35); }

.story-card__header{ display:flex; flex-direction:column; gap:10px; }
.story-card__title{ font-weight:700; letter-spacing:.2px; }

.story-card__badges{ display:flex; gap:8px; flex-wrap:wrap; }
.story-card__badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:10px; font-size:.9rem;
  background:#0f142e; color:#dfe2fb; border:1px dashed rgba(107,230,117,.35);
}
.story-card__badge i{ width:16px; height:16px; color: var(--brand); }

.story-card__body{
  display:grid; grid-template-columns: 1fr auto 1fr; gap:12px; align-items:start;
}
@media (max-width: 720px){
  .story-card__body{ grid-template-columns: 1fr; }
  .story-card__arrow{ display:none; }
}
.story-card__label{ font-size:.95rem; color:#cfd2e8; margin-bottom:6px; }
.story-card__arrow i{ width:20px; height:20px; color: var(--brand); }

.story-card__footer{ margin-top:6px; display:flex; gap:10px; }

/* ===== GUIDES ===== */
.guides{
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.guides__container{ max-width:1200px; margin:0 auto; padding:0 20px; }
.guides__title{
  font-family:'Source Serif Pro', serif;
  font-size: clamp(24px, 3.8vw, 40px);
}
.guides__lead{ color: var(--muted); margin-top:10px; }

.guides__grid{
  margin-top:20px;
  display:grid; gap:16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px){
  .guides__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .guides__grid{ grid-template-columns: 1fr; }
}

.guide-card{
  background: var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  display:flex; flex-direction:column; gap:14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.guide-card:hover{
  transform: translateY(-2px);
  border-color: rgba(107,230,117,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.guide-card__header{ display:flex; gap:12px; align-items:flex-start; }
.guide-card__icon i{ width:22px; height:22px; color: var(--brand); }

.guide-card__progress{
  position: relative;
  height: 10px; background: #0f142f; border:1px solid var(--line);
  border-radius: 999px; overflow: hidden;
}
.guide-card__progress-bar{
  position:absolute; left:0; top:0; bottom:0; width: var(--p, 0%);
  background: linear-gradient(90deg, var(--brand), #46d65b);
  transition: width .25s ease;
}
.guide-card__progress-label{
  display:block; margin-top:8px; font-size:.9rem; color:#cfd2e8;
}

.guide-card__list{ display:flex; flex-direction:column; gap:8px; }
.guide-check__row{ display:flex; gap:10px; align-items:flex-start; cursor:pointer; }
.guide-check__box{
  width:18px; height:18px; accent-color: #46d65b; margin-top:2px;
}
.guide-check__txt{ color:#dfe2fb; }

.guide-card__footer{ display:flex; gap:10px; }

/* ===== TRENDS ===== */
.trends{
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.trends__container{ max-width:1200px; margin:0 auto; padding:0 20px; }
.trends__title{
  font-family:'Source Serif Pro', serif;
  font-size: clamp(24px, 3.8vw, 40px);
}
.trends__lead{ color: var(--muted); margin-top:10px; }

/* Chips */
.trends-filters{
  margin-top:14px; display:flex; gap:8px; flex-wrap:wrap;
}
.trends-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 12px; border-radius:999px; cursor:pointer;
  border:1px solid var(--line); background: var(--card); color: var(--text);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.trends-chip i{ width:16px; height:16px; }
.trends-chip:hover{ transform: translateY(-2px); border-color: rgba(107,230,117,.45); }
.trends-chip--active{
  background: linear-gradient(180deg, var(--brand) 0%, #46d65b 100%);
  color: var(--brand-ink);
  border-color: transparent;
}

/* Grid */
.trends__grid{
  margin-top:18px;
  display:grid; gap:16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 960px){
  .trends__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .trends__grid{ grid-template-columns: 1fr; }
}

/* Card */
.trend-card{
  list-style:none;
  background: var(--card); border:1px solid var(--line);
  border-radius:16px; padding:18px;
  display:flex; flex-direction:column; gap:12px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.trend-card:hover{
  transform: translateY(-2px);
  border-color: rgba(107,230,117,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}
.trend-card__header{ display:flex; justify-content:space-between; gap:10px; align-items:flex-start; }
.trend-card__title{ font-weight:700; letter-spacing:.2px; }
.trend-card__date{ color:#cfd2e8; font-size:.92rem; white-space:nowrap; }

.trend-card__text{ color:#dfe2fb; }

.trend-card__meta{
  display:flex; gap:8px; flex-wrap:wrap; align-items:center;
}
.trend-tag{
  display:inline-flex; align-items:center;
  padding:6px 10px; border-radius:999px; font-size:.9rem;
  background:#0f142e; color:#dfe2fb; border:1px dashed rgba(107,230,117,.35);
}
.trend-metric{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:999px; font-size:.9rem;
  background: rgba(107,230,117,.12); color:#c9f5cf; border:1px solid rgba(107,230,117,.35);
  animation: metricPulse 2.8s ease-in-out infinite;
}
.trend-metric i{ width:16px; height:16px; }

@keyframes metricPulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(107,230,117,.28); }
  50%{ box-shadow: 0 0 0 6px rgba(107,230,117,0); }
}

.trend-card__footer{ display:flex; gap:10px; margin-top:4px; }

/* ===== CONTACT ===== */
.contact{
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.contact__container{ max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.contact__title{
  font-family:'Source Serif Pro', serif;
  font-size: clamp(24px, 3.8vw, 40px);
}
.contact__lead{ color: var(--muted); margin-top: 10px; }

.contact__grid{
  margin-top: 18px;
  display: grid; gap: 18px;
  grid-template-columns: 1.1fr .9fr;
}
@media (max-width: 900px){
  .contact__grid{ grid-template-columns: 1fr; }
}

.contact-form{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.contact-form__row{ display: flex; flex-direction: column; gap: 6px; }
.contact-form__label{ font-weight: 600; }
.contact-form__label--sr{ position:absolute; left:-9999px; }
.contact-form__input{
  background: #0f142f; color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form__input:focus{
  border-color: rgba(107,230,117,.55);
  box-shadow: 0 0 0 4px rgba(107,230,117,.15);
}
.contact-form__error{
  min-height: 18px;
  font-size: .9rem;
  color: #ffb4b4;
}

.contact-form__captcha{
  display: grid; gap: 10px;
}
.contact-form__captcha-task{
  display: inline-flex; gap: 8px; align-items: center;
  color: #dfe2fb;
}
.contact-form__captcha-task i{ width: 18px; height: 18px; color: var(--brand); }
.contact-form__captcha-input{
  display: flex; gap: 8px; align-items: center;
}
.contact-form__captcha-refresh i{ width: 16px; height: 16px; }

.contact-form__agree{
  display: flex; gap: 10px; align-items: flex-start;
  color: #cfd2e8;
}
.contact-form__agree input{ width: 18px; height: 18px; margin-top: 2px; accent-color: #46d65b; }

.contact-form__submit{
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
}

.contact-form__status{
  margin-top: 4px;
  min-height: 22px;
  color: #cfd2e8;
}

/* Aside */
.contact-aside__card{
  background: linear-gradient(180deg, #121535, #0f132b);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.contact-aside__image{
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line);
  background: #0b0d1f url('img/some_bg.jpg') center/cover no-repeat;
  margin-bottom: 12px;
}
.contact-aside__list{ display: grid; gap: 8px; }
.contact-aside__list i{ width: 16px; height: 16px; color: var(--brand); margin-right: 6px; }
.contact-aside__list li{ display: flex; align-items: center; color: #dfe2fb; }

/* ===== COOKIE POPUP ===== */
.cookie{
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 12px; z-index: 1000;
  pointer-events: none; /* вмикаємо на контейнері */
}
.cookie__container{
  pointer-events: all;
  max-width: 1200px; margin: 0 auto;
  background: rgba(15,20,47,.96);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.cookie__text{
  display: flex; gap: 10px; align-items: center; color: #e6e7f2;
}
.cookie__text i{ width: 18px; height: 18px; color: var(--brand); flex: 0 0 auto; }
.cookie__text a{ color: #bfeac5; text-decoration: underline; }
.cookie__btn{ flex: 0 0 auto; }

/* ===== POLICY PAGES (єдина верстка для всіх *.html) ===== */
.pages{
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.pages .container{
  max-width: 900px; margin: 0 auto; padding: 0 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.pages .container > *{
  padding-left: 18px; padding-right: 18px;
}
.pages h1{
  font-family: 'Source Serif Pro', serif;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.2;
  margin: 18px 0 6px;
}
.pages p{
  color: #dfe2fb;
  margin: 12px 0;
}
.pages h2{
  font-size: clamp(18px, 2.6vw, 26px);
  margin: 20px 0 8px;
}
.pages ul{
  margin: 10px 0 16px 20px;
}
.pages li{ margin: 6px 0; color: #cfd2e8; }
.pages strong{ color: #ffffff; font-weight: 700; }
.pages a{
  color: #bfeac5; text-decoration: underline; text-underline-offset: 2px;
}
.pages code, .pages pre{
  background: #0f142f; border: 1px solid var(--line);
  border-radius: 10px; padding: 2px 6px; color: #e6e7f2;
}
.pages hr{
  border: none; border-top: 1px solid var(--line); margin: 18px 0;
}

/* Дрібні адаптивні покращення для політик */
@media (max-width: 560px){
  .pages .container{ border-radius: 12px; }
  .pages .container > *{ padding-left: 14px; padding-right: 14px; }
}
