/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* ===== HEADER ===== */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 1rem 0;
}

.header__container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    font-weight: 600;
    font-size: 1.5rem;
    color: #334155;
}

.header__nav ul {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.header__menu-item a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: color 0.3s ease;
}

.header__menu-item a:hover {
    color: #0ea5e9;
}

/* ===== FOOTER ===== */
.footer {
    background-color: #1e293b;
    color: #f1f5f9;
    padding: 3rem 0;
}

.footer__container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.footer__logo {
    font-weight: 600;
    font-size: 1.3rem;
}

.footer__col h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer__col ul {
    list-style: none;
}

.footer__col ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer__col ul li a {
    color: #f1f5f9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__col ul li a:hover {
    color: #0ea5e9;
}

/* Іконки */
.footer__col i {
    width: 18px;
    height: 18px;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    .header__nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(180deg, #f8f9fb 0%, #eef2ff 100%);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero__container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero__content {
  order: 2;
}

.hero__media {
  position: relative;
  order: 1;
}

.hero__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero__title-line--accent {
  color: #0ea5e9;
  display: inline-block;
  min-height: 1.2em;
}

.hero__subtitle {
  color: #475569;
  max-width: 56ch;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 500;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  will-change: transform;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: #0ea5e9;
  color: #fff;
  box-shadow: 0 6px 18px rgba(14,165,233,.25);
}
.btn--primary:hover { box-shadow: 0 10px 24px rgba(14,165,233,.35); }

.btn--ghost {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}
.btn--ghost:hover { background: #f8fafc; border-color: #94a3b8; }

.hero__cta { display: flex; gap: 0.8rem; margin-bottom: 1.5rem; flex-wrap: wrap; }

.hero__badges {
  list-style: none;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: #334155;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 4px 14px rgba(2,6,23,.04);
}

.hero__badge i { width: 18px; height: 18px; }

.hero__media {
  display: grid;
  place-items: center;
}

.hero__image {
  width: min(520px, 88vw);
  height: auto;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 60px rgba(2,6,23,.08);
  position: relative;
  z-index: 2;
}

/* Декоративні фігури */
.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: .65;
  filter: blur(6px);
  z-index: 1;
}
.hero__shape--a {
  width: 220px; height: 220px;
  background: radial-gradient(circle at 30% 30%, #38bdf8, transparent 60%);
  top: -20px; right: -20px;
  animation: float-a 8s ease-in-out infinite;
}
.hero__shape--b {
  width: 160px; height: 160px;
  background: radial-gradient(circle at 70% 70%, #a78bfa, transparent 60%);
  bottom: -30px; left: -20px;
  animation: float-b 7s ease-in-out infinite;
}
.hero__shape--c {
  width: 260px; height: 260px;
  background: radial-gradient(circle at 50% 50%, #60a5fa, transparent 60%);
  top: 40%; left: 50%;
  transform: translate(-50%, -50%);
  animation: float-c 10s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(16px) translateX(-8px); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-12px) translateX(10px); }
}
@keyframes float-c {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(calc(-50% + 6px), calc(-50% - 6px)) scale(1.04); }
}

/* ===== АДАПТИВ для HERO ===== */
@media (min-width: 900px) {
  .hero__container {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
  .hero__content { order: 1; }
  .hero__media { order: 2; }
  .hero__title { font-size: 2.6rem; }
}

/* ===== Стилі для сторінок політик (Етап 5.2 підготовлено) ===== */
.pages .container {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.pages h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #0f172a;
}
.pages h2 {
  font-weight: 600;
  font-size: 1.3rem;
  margin: 1.5rem 0 .75rem;
  color: #0f172a;
}
.pages p {
  color: #334155;
  margin-bottom: 1rem;
}
.pages ul {
  padding-left: 1.2rem;
  color: #334155;
}
.pages li { margin-bottom: .5rem; }
.pages a { color: #0ea5e9; text-decoration: underline; }
.pages strong { font-weight: 600; }

/* ===== ANALYTICS ===== */
.section-analytics {
  padding: 3.2rem 0 2.6rem;
  background: #fff;
}
.section-analytics__container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section-analytics__head {
  margin-bottom: 1.6rem;
}
.section-analytics__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #0f172a;
  margin-bottom: .5rem;
}
.section-analytics__descr {
  color: #475569;
  max-width: 64ch;
}

.section-analytics__grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.metric-card {
  position: relative;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(2,6,23,.04);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(2,6,23,.07);
  border-color: #cbd5e1;
  background: #ffffff;
}
.metric-card--primary {
  background: radial-gradient(120% 120% at 0% 0%, #e0f2fe 0%, #f8fafc 52%);
}

.metric-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
}
.metric-card__icon i { width: 20px; height: 20px; color: #0ea5e9; }
.metric-card__tag {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  color: #0f172a;
  background: #e2e8f0;
  border-radius: 999px;
  padding: .2rem .6rem;
}

.metric-card__value {
  font-size: 1.8rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: .25rem;
}
.metric-card__note {
  color: #475569;
  font-size: .95rem;
  margin-bottom: .6rem;
}

.metric-card__spark {
  width: 100%;
  height: 80px;
  display: block;
  background: #fff;
  border: 1px dashed #e2e8f0;
  border-radius: 10px;
  margin-bottom: .8rem;
}

.metric-card__cta { width: fit-content; }

/* Grid на десктопі */
@media (min-width: 900px) {
  .section-analytics__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }
  .section-analytics__title { font-size: 2rem; }
}

/* Легкі анімації появи карток */
.metric-card {
  opacity: 0;
  transform: translateY(12px);
}
.metric-card.is-inview {
  opacity: 1;
  transform: translateY(0);
  transition: transform .35s ease, opacity .35s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

/* ===== STRATEGY (TABS) ===== */
.section-strategy {
  padding: 3rem 0 2.6rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}
.section-strategy__container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section-strategy__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #0f172a;
  margin-bottom: .4rem;
}
.section-strategy__descr {
  color: #475569;
  max-width: 64ch;
  margin-bottom: 1.2rem;
}

/* Tabs header */
.tabs__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-bottom: 1rem;
}
.tabs__tab {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease, transform .12s ease, background-color .2s ease;
}
.tabs__tab:hover { border-color: #cbd5e1; box-shadow: 0 6px 20px rgba(2,6,23,.06); }
.tabs__tab:active { transform: translateY(1px); }
.tabs__tab i { width: 18px; height: 18px; color: #0ea5e9; }

.tabs__tab--active {
  border-color: #0ea5e9;
  background: linear-gradient(180deg, #e0f2fe 0%, #fff 100%);
  box-shadow: 0 8px 26px rgba(14,165,233,.18);
}

/* Panels */
.tabs__panel {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 1rem;
  transition: opacity .25s ease, transform .25s ease;
}
.tabs__panel[hidden] { display: block; opacity: 0; height: 0; padding: 0; overflow: hidden; border-width: 0; }
.tabs__panel--active { opacity: 1; transform: translateY(0); }

.tabs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  margin-bottom: .8rem;
}

.strategy-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: .9rem;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.strategy-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 34px rgba(2,6,23,.06);
  background: #ffffff;
}
.strategy-card__title {
  font-weight: 600;
  margin-bottom: .35rem;
  color: #0f172a;
}
.strategy-card__text {
  color: #334155;
  font-size: .98rem;
}

.tabs__cta { margin-top: .2rem; }

/* Desktop */
@media (min-width: 900px) {
  .tabs__list { grid-template-columns: repeat(4, 1fr); }
  .section-strategy__title { font-size: 2rem; }
  .tabs__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

/* ===== CASES ===== */
.section-cases {
  padding: 3rem 0 2.6rem;
  background: #ffffff;
}
.section-cases__container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section-cases__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #0f172a;
  margin-bottom: .4rem;
}
.section-cases__descr {
  color: #475569;
  max-width: 64ch;
  margin-bottom: 1.2rem;
}

.section-cases__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.case-card {
  display: grid;
  grid-template-columns: 1fr;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2,6,23,.04);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
  opacity: 0;
  transform: translateY(12px);
}
.case-card.is-inview {
  opacity: 1;
  transform: translateY(0);
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(2,6,23,.07);
}

.case-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #e2e8f0;
}
.case-card__body {
  padding: 1rem;
}
.case-card__title {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: .5rem;
}
.case-card__facts {
  list-style: none;
  color: #334155;
  display: grid;
  gap: .35rem;
  margin-bottom: .8rem;
}
.case-card__facts strong { color: #0f172a; }

.case-card__cta { width: fit-content; }

@media (min-width: 900px) {
  .section-cases__title { font-size: 2rem; }
  .section-cases__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }
  .case-card__image { height: 160px; }
}

/* ===== INSIGHTS ===== */
.section-insights {
  padding: 3rem 0 2.6rem;
  background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 100%);
}
.section-insights__container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section-insights__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #0f172a;
  margin-bottom: .4rem;
}
.section-insights__descr {
  color: #475569;
  max-width: 64ch;
  margin-bottom: 1.2rem;
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.insight {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: .9rem;
  box-shadow: 0 10px 30px rgba(2,6,23,.04);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
  opacity: 0;
  transform: translateY(12px);
}
.insight.is-inview {
  opacity: 1;
  transform: translateY(0);
}
.insight:hover {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 18px 44px rgba(2,6,23,.07);
}

.insight__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .8rem;
}
.insight__icon i { width: 20px; height: 20px; color: #0ea5e9; }
.insight__title {
  font-weight: 600;
  color: #0f172a;
}

.insight__toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .7rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  color: #0f172a;
  transition: background-color .2s ease, border-color .2s ease, transform .12s ease;
}
.insight__toggle:hover { background: #fff; border-color: #cbd5e1; }
.insight__toggle:active { transform: translateY(1px); }
.insight__toggle i { width: 18px; height: 18px; }

.insight__panel {
  padding-top: .8rem;
}
.insight__list {
  list-style: none;
  display: grid;
  gap: .45rem;
  color: #334155;
  margin-bottom: .8rem;
}
.insight__check {
  accent-color: #0ea5e9;
  margin-right: .4rem;
}
.insight__cta { width: fit-content; }

@media (min-width: 900px) {
  .section-insights__title { font-size: 2rem; }
  .insights-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
}

/* ===== CONTACT ===== */
.section-contact {
  padding: 3rem 0 3rem;
  background: radial-gradient(120% 120% at 0% 0%, #eef2ff 0%, #ffffff 60%);
}
.section-contact__container {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
}
.section-contact__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  color: #0f172a;
  margin-bottom: .4rem;
}
.section-contact__descr {
  color: #475569;
  max-width: 64ch;
  margin-bottom: 1.2rem;
}

.contact-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 14px 40px rgba(2,6,23,.06);
}
.contact-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .9rem;
}

.form-field__label {
  display: inline-block;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: .35rem;
}
.form-field__control {
  position: relative;
}
.form-field__icon {
  position: absolute;
  left: .8rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #64748b;
}
.form-field__input {
  width: 100%;
  padding: .75rem .9rem .75rem 2.2rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  outline: none;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.form-field__input:focus {
  border-color: #0ea5e9;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}
.form-field__error {
  display: block;
  min-height: 1.1em;
  margin-top: .3rem;
  color: #b91c1c;
  font-size: .9rem;
}

.form-field--captcha .form-field__label { display: block; }
.form-field__captcha-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .5rem;
  align-items: center;
}
.form-field__captcha-task {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0f172a;
  font-weight: 600;
  border: 1px solid #bae6fd;
}
.form-field__captcha-refresh i { width: 18px; height: 18px; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  color: #334155;
}
.form-check__input {
  margin-top: .2rem;
  width: 18px; height: 18px;
  accent-color: #0ea5e9;
}
.form-check__text a { color: #0ea5e9; text-decoration: underline; }

.contact-form__actions {
  display: flex; gap: .6rem; margin-top: .6rem; flex-wrap: wrap;
}

.form-status {
  margin-top: .8rem;
  padding: .75rem .9rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
}
.form-status--success {
  border-color: #bbf7d0;
  background: #ecfdf5;
}
.form-status--error {
  border-color: #fecaca;
  background: #fef2f2;
}

/* Desktop layout */
@media (min-width: 900px) {
  .section-contact__title { font-size: 2rem; }
  .contact-form__grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-field--captcha,
  .form-check {
    grid-column: 1 / -1;
  }
}
/* ===== COOKIE POPUP ===== */
.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  padding: .8rem;
  backdrop-filter: blur(4px);
  pointer-events: none; /* вмикаємо для внутрішнього блоку */
}
.cookie__inner {
  width: min(100% - 1.2rem, 1040px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  align-items: center;
  background: #0b1220;
  color: #e5e7eb;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: .8rem .9rem;
  box-shadow: 0 18px 44px rgba(2,6,23,.45);
  pointer-events: auto;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.cookie--show .cookie__inner {
  transform: translateY(0);
  opacity: 1;
}

.cookie__text {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .6rem;
  align-items: center;
}
.cookie__icon {
  width: 20px; height: 20px;
  color: #fde68a;
}
.cookie__message {
  font-size: .95rem;
  color: #e5e7eb;
}
.cookie__link {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie__actions .btn {
  white-space: nowrap;
  padding: .6rem .9rem;
}

/* Mobile */
@media (max-width: 520px) {
  .cookie__inner {
    grid-template-columns: 1fr;
    gap: .6rem;
  }
}
