/* ============================================================
   Diatlov — front-page v1.5
   Hero: display:grid 2 col у 1200px контенті.
   Портрет 440px fixed. Коло 420px fixed — дочірній елемент
   .hero__portrait-wrap, ЗА портретом на рівні торсу/спини,
   виглядає з обох боків крізь прозорість PNG.
   ============================================================ */

/* ============================================================ HERO */
.hero {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  z-index: 2;                    /* hero (зі stats-баром) над секцією About */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* контент зверху — без великого відступу до меню */
  background: var(--bg);
}

/* 2-column grid, 1200px content (1440px outer − 120px×2 padding) */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(20px, 2.5vh, 36px) var(--pad-x) 0;
  display: grid;
  /* Left: flexible text  |  Right: photo column */
  grid-template-columns: 1fr 640px;
  gap: clamp(22px, 2.2vw, 32px);
  align-items: center;   /* текст вертикально по центру відносно фото */
}

/* ---- LEFT COLUMN: text ---- */
.hero__text { /* inherits grid cell */ }

.hero__h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--text);
  margin: 0 0 14px;
}
/* Імʼя — кікер над заголовком (замість плашки-бейджа) */
.hero__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 23px);
  color: var(--gold);
  margin: 0 0 16px;
}
.hero__name-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: 0 0 auto;
}
.hero__lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 460px;
  margin: 0 0 24px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(197,163,91,.13);
  color: #9c7c34;
  border: 1px solid rgba(197,163,91,.28);
  margin-bottom: 24px;
  white-space: nowrap;
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--white); border: 1px solid var(--card-line);
  padding: 7px 14px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}
.tag svg { color: var(--gold); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 8px; }

/* ---- RIGHT COLUMN: photo ---- */
.hero__photo-col {
  /* Fixed 540px column — portrait and circle are NOT responsive/stretchy */
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

/* Portrait wrapper: 440px fixed, position:relative so circle anchors to it */
.hero__portrait-wrap {
  position: relative;
  width: 640px;   /* user spec */
  flex-shrink: 0;
}
.hero__portrait-wrap--ph {
  height: 440px;
  background: var(--bg-soft);
  border-radius: var(--r-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

/* Portrait image — no shadow, clean transparent PNG */
.hero__img {
  position: relative;
  z-index: 1;        /* above circle (z-index 0) */
  width: 100%;       /* = 440px */
  height: auto;
  display: block;
}

/*
  Gold circle:
  — ЗА портретом (z-index 0 < portrait z-index 1)
  — top: 54% = рівень торсу/спини на погрудному фото 440×440
  — width: 420px = ширше за силует (~65% × 440 ≈ 286px)
    → виглядає (420−286)/2 ≈ 67px з кожного боку
  — FIXED pixel size, не vw/vh
*/
.hero__bg-circle {
  position: absolute;
  z-index: 0;
  left: 70%;
  top: 60%;
  transform: translate(-50%, -50%);
  width: 600px;     /* user spec */
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gold);
  opacity: .85;
  pointer-events: none;
}

/* Hero stats bar — overlaps portrait bottom cut, graphite style */
.hero-stats {
  position: relative;
  z-index: 5;          /* above portrait (z-index 1) → covers its bottom edge */
  width: 100%;
  max-width: var(--maxw);
  margin: -44px auto -64px;  /* pull up into the portrait's bottom, and pull next section up */
  padding: 0 var(--pad-x);  /* keeps the bar within the 1200px content zone */
}
.hero-stats__bar {
  background: var(--graphite);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.hero-stats__cell {
  position: relative;
  padding: clamp(24px,3vw,34px) clamp(20px,3vw,40px);
}
.hero-stats__cell:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 24px; bottom: 24px;
  width: 1px;
  background: linear-gradient(rgba(237,234,227,0), rgba(237,234,227,.18) 18%, rgba(237,234,227,.18) 82%, rgba(237,234,227,0));
}
.hero-stats__num {
  font-family: var(--serif);
  font-size: clamp(34px,3.6vw,48px);
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}
.hero-stats__lbl {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-top: 10px;
}

/* ============================================================ ABOUT */
/* About заходить під stats-бар (~половина бару) — бар візуально ріже секції */
.about { position: relative; z-index: 1; margin-top: 0; padding-top: calc(var(--section-y) + 64px); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.about__grid .h2 { margin-bottom: 16px; }   /* відступ заголовка від тексту */
.about__body { margin: 0 0 26px; max-width: 560px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--text); }
.checklist__ic { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: rgba(197,163,91,.12); color: var(--gold); border: 1px solid rgba(197,163,91,.32); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.about__media { position: relative; order: -1; }   /* фото ліворуч */
/* About photo (replaces the timeline column) */
.about__photo { position: relative; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--bg-gradient); }
.about__photo .about__img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.timeline { position: relative; background: var(--white); border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: clamp(28px,3.5vw,42px); }
.timeline__eyebrow { margin-bottom: 26px; }
.timeline__list { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; }
.timeline__list::before { content: ""; position: absolute; left: 5px; top: 7px; bottom: 9px; width: 1px; background: linear-gradient(var(--gold),rgba(197,163,91,.15)); }
.timeline__item { position: relative; padding: 0 0 26px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; left: -26px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(197,163,91,.16); }
.timeline__year { display: block; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--text); line-height: 1; }
.timeline__label { display: block; font-size: 14px; color: var(--text-2); margin-top: 6px; line-height: 1.5; }
.about__est { position: absolute; right: -18px; bottom: -18px; display: flex; align-items: center; gap: 12px; background: var(--graphite); color: var(--on-dark); padding: 14px 22px; border-radius: 14px; box-shadow: var(--shadow); font-family: var(--serif); font-size: 18px; letter-spacing: .05em; }
.about__est-line { width: 26px; height: 1px; background: var(--gold); }

/* ============================================================ SERVICES */
.services {
  background: var(--bg);   /* cream — між двома sand-секціями */
  padding: var(--section-y) var(--pad-x);
  position: relative;
}
.services::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../img/services-bg.png');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.services__head, .services__grid {
  position: relative;
  z-index: 1;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 22px;
  max-width: var(--content);
  margin: 0 auto;
}
.services__head {
  max-width: var(--content);
  margin: 0 auto clamp(40px,5vw,64px);
  text-align: center;
}
.services__head .eyebrow { justify-content: center; }
.svc { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: 0 4px 24px -8px rgba(43,45,51,.18); padding: 28px 24px 24px; display: flex; flex-direction: column; text-align: left; transition: transform .28s var(--ease),box-shadow .28s var(--ease),border-color .28s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(197,163,91,.35); }
.svc__bignum { position: absolute; top: 4px; right: 16px; font-family: var(--serif); font-size: 64px; font-weight: 600; line-height: 1; color: var(--text); opacity: .06; pointer-events: none; user-select: none; }
.svc__ic { width: 48px; height: 48px; border: 1.5px solid rgba(197,163,91,.45); border-radius: 50%; background: rgba(197,163,91,.08); display: flex; align-items: center; justify-content: center; color: var(--gold); margin-bottom: 18px; transition: all .28s var(--ease); }
.svc:hover .svc__ic { border-color: var(--gold); background: rgba(197,163,91,.18); transform: translateY(-2px); }
.svc__title { font-family: var(--serif); font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--text); margin: 0 0 8px; }
.svc__desc { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }
.svc__more { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--text-2); transition: color .2s var(--ease),gap .2s var(--ease); }
.svc__more svg { color: var(--gold); }
.svc:hover .svc__more { color: #9c7c34; gap: 10px; }
.svc__more::after { content: ""; position: absolute; inset: 0; }
.services__grid.js-stagger .svc { opacity: 0; }
.services__grid.js-stagger.is-visible .svc { opacity: 1; animation: svcIn .5s var(--ease) backwards; animation-delay: calc(var(--svc-i,0) * 65ms); }
@keyframes svcIn { from { opacity:0;transform:translateY(22px); } to { opacity:1;transform:none; } }
@media (prefers-reduced-motion:reduce) { .services__grid.js-stagger .svc { opacity:1; } .services__grid.js-stagger.is-visible .svc { animation:none; } }

/* ============================================================ UKR */
.ukr__sub { font-family: var(--serif); font-size: clamp(18px,2vw,22px); color: var(--gold); margin: 8px 0 14px; }
.ukr__lead { max-width: 620px; margin: 0; }
.ukr__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 42px; }
.ukr__col { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 32px 30px; }
.ukr__col::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--gold); }
.ukr__col-head { display: flex; align-items: center; gap: 15px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ukr__col-ic { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px; background: rgba(197,163,91,.1); border: 1px solid rgba(197,163,91,.3); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.ukr__col-meta { display: flex; flex-direction: column; gap: 6px; }
.ukr__tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--graphite-deep); background: var(--gold); padding: 3px 9px; border-radius: 6px; }
.ukr__col-title { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0; line-height: 1.1; }
.note { display: flex; gap: 16px; align-items: flex-start; margin-top: 30px; background: var(--graphite); color: var(--on-dark); border-radius: var(--r-card); padding: 24px 28px; box-shadow: var(--shadow); }
.note__ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; background: rgba(197,163,91,.18); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.note p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--on-dark); }
.note strong { color: var(--gold-soft); font-weight: 600; }

/* ============================================================ REVIEWS */
.reviews .section__head { max-width: 680px; }
.reviews__slider-wrap {
  position: relative; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
}
.reviews__slider {
  display: flex; gap: 26px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -ms-overflow-style: none; scrollbar-width: none; flex: 1;
}
.reviews__slider::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 calc(33.3333% - 17.33px); scroll-snap-align: start;
  position: relative; overflow: hidden; margin: 0;
  background: var(--white); border: 1px solid var(--card-line);
  border-radius: var(--r-card); box-shadow: var(--shadow);
  padding: 32px 34px 28px;
}
.review__stars { position: relative; color: var(--gold); margin-bottom: 18px; display: flex; gap: 2px; }
.review__stars svg { width: 18px; height: 18px; }
.review__quote { position: relative; font-size: 17px; line-height: 1.75; color: var(--text-2); margin: 0 0 24px; }
.review__author { display: flex; align-items: center; gap: 14px; }
.review__avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg,#cbb98f,#9a958c);
  flex: 0 0 auto; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 600; font-family: var(--serif);
}
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__name { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
.review__role { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.reviews__nav {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--card-line); background: var(--white);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s var(--ease);
}
.reviews__nav:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); box-shadow: var(--shadow-sm); }
.reviews__nav:disabled { opacity: 0.3; cursor: default; }

/* ============================================================ CTA */
.ctabanner { padding: 0 var(--pad-x); max-width: var(--maxw); margin: 0 auto; }
.ctabanner__inner { background: linear-gradient(135deg, rgba(43,45,51,0.92) 0%, rgba(43,45,51,0.5) 100%), url('../img/cta_bg.png') center/cover no-repeat; border-radius: 24px; padding: clamp(44px,6vw,76px) clamp(28px,5vw,72px); text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.ctabanner__inner::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; right: -90px; top: -120px; background: radial-gradient(circle,rgba(197,163,91,.35),transparent 68%); }
.ctabanner__h2 { font-family: var(--serif); font-size: clamp(26px,3.4vw,42px); font-weight: 600; color: var(--on-dark); margin: 0 0 16px; line-height: 1.15; position: relative; }
.ctabanner__text { font-size: 16px; line-height: 1.65; color: var(--muted-dark); max-width: 560px; margin: 0 auto 30px; position: relative; }
.ctabanner__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; }

/* ============================================================ CONTACTS */
.contacts.section { margin-top: calc(var(--section-y) * 1.5); padding-bottom: calc(var(--section-y) * 1.5); }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.contacts .h2 { margin-bottom: 16px; }
.contacts__text { margin: 0 0 48px; max-width: 420px; }
.contacts__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contacts__list li { display: flex; gap: 14px; align-items: center; font-size: 15px; color: var(--text); }
.contacts__ic { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; background: var(--graphite); border: none; color: var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.contacts__card { background: transparent; border: none; box-shadow: none; padding: 0; }

/* ============================================================ RESPONSIVE */
@media (max-width: 980px) {
  /* Hero: стек колонок, портрет не розтягується */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero__photo-col {
    justify-content: center;
    order: 0; /* фото під текстом, над блоком цифр */
  }
  /* більші фото та коло на мобайлі (збільшено та вирівняно по центру) */
  .hero__portrait-wrap { width: min(560px, 115vw); transform: translateX(-20px); margin-top: -24px; }
  .hero__bg-circle     { width: min(483px, 96vw); }

  /* Stats наїжджають на низ фото — ховають зріз фото та кола (як на десктопі) */
  .hero-stats { position: relative; z-index: 5; margin-top: -44px; margin-bottom: -96px; padding: 0 8px; }
  .hero-stats__bar { grid-template-columns: repeat(2, 1fr); }
  .hero-stats__cell { padding: 20px 10px; }
  .hero-stats__cell:nth-child(2)::after { display: none; }
  .hero-stats__cell:nth-child(1),
  .hero-stats__cell:nth-child(2) { border-bottom: 1px solid rgba(237,234,227,.12); }

  /* About заходить під більший (2×2) бар ~на половину */
  .about { margin-top: 0; padding-top: calc(var(--section-y) + 96px); }
  .about__grid, .contacts__grid { grid-template-columns: 1fr; }
  .about__media { order: 1; }            /* фото — ВНИЗУ, текст зверху */
  .services__grid { grid-template-columns: repeat(2,1fr); }
  .ukr__cols { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; gap: 40px; }
  .reviews__nav { display: none; }
  .review { flex: 0 0 85%; padding: 32px 28px; }
  .reviews__slider-wrap { gap: 0; }
}
@media (max-width: 560px) {
  .hero__portrait-wrap { width: min(380px, 92vw); }
  .hero__bg-circle     { width: min(360px, 88vw); }
  .hero__h1 { font-size: clamp(32px, 9vw, 50px); overflow-wrap: break-word; }
  .services__grid { grid-template-columns: 1fr; }
  .review { padding: 32px 28px 28px; }
  .review__mark { font-size: 110px; right: 16px; }
}
