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

/* ============================================================ HERO */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  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(40px, 5vh, 72px) var(--pad-x) 0;
  display: grid;
  /* Left: flexible text  |  Right: fixed photo column */
  grid-template-columns: 1fr 700px;
  gap: clamp(32px, 4vw, 60px);
  align-items: start;   /* текст зверху → кнопки вище за stats-бар */
}

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

.hero__h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.8vw, 82px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--text);
  margin: 0 0 14px;
}
.hero__name {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--gold);
  margin-bottom: 20px;
}
.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 0;  /* pull up into the portrait's bottom (more top spacing) */
  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__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px,5vw,72px); align-items: center; }
.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,.16); color: #9c7c34; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.about__media { position: relative; }
.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; left: -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-soft);
  padding: var(--section-y) var(--pad-x);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 22px;
  max-width: var(--maxw);
  margin: 0 auto clamp(40px,5vw,64px);
}
.services__foot {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
.services__foot .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 { background: var(--white); border: 1px solid var(--card-line); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 30px 30px 32px; }
.ukr__col-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.ukr__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--graphite-deep); background: var(--gold); padding: 5px 11px; border-radius: 7px; }
.ukr__col-title { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0; }
.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__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 940px; margin-left: auto; margin-right: auto; }
.review { 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: 40px 42px 34px; }
.review__mark { position: absolute; top: 2px; right: 28px; font-family: var(--serif); font-size: 150px; line-height: 1; color: var(--gold); opacity: .13; pointer-events: none; user-select: none; }
.review__stars { position: relative; color: var(--gold); font-size: 16px; letter-spacing: 3px; margin-bottom: 18px; }
.review__quote { position: relative; font-size: 17px; line-height: 1.75; color: var(--text-2); margin: 0 0 24px; }
.review__who { display: flex; align-items: center; gap: 14px; }
.review__av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg,#cbb98f,#9a958c); flex: 0 0 auto; }
.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; }

/* ============================================================ CTA */
.ctabanner { padding: 0 var(--pad-x); max-width: var(--maxw); margin: 0 auto; }
.ctabanner__inner { background: var(--graphite); 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__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,64px); align-items: start; }
.contacts__text { margin: 0 0 28px; 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(--white); border: 1px solid var(--card-line); 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: -1; /* фото над текстом на мобайлі */
  }
  /* Portrait and circle keep their fixed sizes but scale a bit at tablet */
  .hero__portrait-wrap { width: min(340px, 80vw); }
  .hero__bg-circle     { width: min(320px, 75vw); }

  /* Stats: no overlap on mobile, 2×2 grid */
  .hero-stats { margin-top: clamp(28px, 5vw, 44px); }
  .hero-stats__bar { grid-template-columns: repeat(2, 1fr); }
  .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__grid, .contacts__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: repeat(2,1fr); }
  .ukr__cols, .reviews__grid { grid-template-columns: 1fr; }
  .about__est { left: 0; }
}
@media (max-width: 560px) {
  .hero__portrait-wrap { width: min(280px, 85vw); }
  .hero__bg-circle     { width: min(260px, 80vw); }
  .hero__h1 { font-size: clamp(30px, 8vw, 46px); }
  .services__grid { grid-template-columns: 1fr; }
  .review { padding: 32px 28px 28px; }
  .review__mark { font-size: 110px; right: 16px; }
}
