/* ============================================================
   Тверезість — вибір сильних · Premium light theme
   ============================================================ */
:root {
  --cream: #faf7f1;
  --cream-2: #f3eee4;
  --ink: #1b2a24;
  --ink-soft: #4a5b53;
  --emerald: #1e5c45;
  --emerald-deep: #143d2e;
  --emerald-soft: #e6efe9;
  --gold: #b8935a;
  --line: rgba(27, 42, 36, 0.1);
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow: 0 20px 60px -20px rgba(20, 61, 46, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--emerald); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
em { font-style: italic; }

/* ---------------- loader ---------------- */
.page-loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--emerald-deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-word {
  font-family: var(--serif); font-size: clamp(28px, 5vw, 48px);
  color: var(--cream); letter-spacing: 0.14em;
  animation: loaderPulse 1.4s var(--ease) infinite alternate;
}
@keyframes loaderPulse { from { opacity: 0.35; } to { opacity: 1; } }

/* ---------------- header ---------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, transform 0.4s var(--ease);
}
.header.scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header.hidden-up { transform: translateY(-100%); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  --logo-bg: var(--emerald); --logo-fg: var(--cream);
  width: 46px; height: 46px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s var(--spring);
}
.logo-emblem { width: 46px; height: 46px; display: block; overflow: visible; }
.logo-emblem .lg-figure, .logo-emblem .lg-head {
  transition: transform 0.55s var(--spring); transform-box: fill-box; transform-origin: center;
}
.logo-emblem .lg-ring { transition: opacity 0.4s var(--ease), transform 0.6s var(--ease); transform-box: fill-box; transform-origin: center; opacity: 0.85; }
.logo:hover .logo-mark { transform: rotate(-4deg); }
.logo:hover .logo-emblem .lg-figure, .logo:hover .logo-emblem .lg-head { transform: translateY(-1.5px) scale(1.08); }
.logo:hover .logo-emblem .lg-ring { opacity: 1; transform: rotate(90deg); }
.logo-text {
  font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.1;
  display: flex; flex-direction: column;
}
.logo-text em { font-size: 12px; font-family: var(--sans); font-style: normal; color: var(--ink-soft); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 3px; font-weight: 400; }
.logo-light { color: var(--cream); }
.logo-light .logo-text em { color: rgba(250, 247, 241, 0.6); }
.logo-light .logo-mark { --logo-bg: var(--cream); --logo-fg: var(--emerald-deep); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  position: relative; padding: 6px 0;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--emerald);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link.is-active { color: var(--emerald); }
.nav-link.is-active::after { transform: scaleX(1); }
.drop-menu a.is-active { background: var(--emerald-soft); color: var(--emerald-deep); }

.nav-drop { position: relative; }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: -16px; min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.3s var(--ease);
}
.nav-drop:hover .drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.drop-menu a {
  display: block; padding: 10px 14px; border-radius: 9px;
  font-size: 14px; color: var(--ink-soft);
  transition: background 0.25s, color 0.25s, padding-left 0.25s;
}
.drop-menu a:hover { background: var(--emerald-soft); color: var(--emerald-deep); padding-left: 20px; }

.header-right { display: flex; align-items: center; gap: 18px; }
.header-phone { font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.header-phone:hover { color: var(--emerald); }

.burger { display: none; background: none; border: 0; cursor: pointer; width: 30px; height: 24px; position: relative; z-index: 120; }
.burger span {
  display: block; height: 2px; background: var(--ink); margin: 5px 0;
  transition: all 0.35s var(--ease); border-radius: 2px;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 110;
  background: var(--cream);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 104px 28px 34px;
  opacity: 0; visibility: hidden;
  clip-path: circle(0% at calc(100% - 44px) 46px);
  transition: clip-path 0.55s var(--ease), opacity 0.4s var(--ease), visibility 0.55s;
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 200px;
  background: radial-gradient(120% 100% at 100% 0%, var(--emerald-soft) 0%, transparent 70%);
  pointer-events: none; opacity: 0.7;
}
.mobile-menu.open {
  opacity: 1; visibility: visible;
  clip-path: circle(150% at calc(100% - 44px) 46px);
}
.mobile-close {
  position: absolute; top: 26px; right: 24px; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -12px rgba(20, 61, 46, 0.4);
  opacity: 0; transform: scale(0.6) rotate(-30deg);
  transition: opacity 0.4s var(--ease) 0.15s, transform 0.5s var(--spring) 0.15s, background 0.25s;
}
.mobile-menu.open .mobile-close { opacity: 1; transform: scale(1) rotate(0); }
.mobile-close:hover { background: var(--emerald-soft); }
.mobile-close span {
  position: absolute; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
}
.mobile-close span:nth-child(1) { transform: rotate(45deg); }
.mobile-close span:nth-child(2) { transform: rotate(-45deg); }

.mobile-nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.mobile-nav a {
  font-family: var(--serif); font-size: 30px; font-weight: 600; padding: 9px 0;
  color: var(--ink);
  transform: translateY(20px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color 0.25s;
}
.mobile-nav a.sub::before {
  content: ''; position: absolute; left: 2px; top: 50%; width: 9px; height: 1.5px;
  background: var(--gold); transform: translateY(-50%);
}
.mobile-nav a.is-active { color: var(--emerald); }
.mobile-nav a.is-active.sub { color: var(--emerald); }
.mobile-menu.open .mobile-nav a { transform: translateY(0); opacity: 1; }
.mobile-menu.open .mobile-nav a:nth-child(1) { transition-delay: 0.10s; }
.mobile-menu.open .mobile-nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-nav a:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.open .mobile-nav a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-nav a:nth-child(5) { transition-delay: 0.29s; }
.mobile-menu.open .mobile-nav a:nth-child(6) { transition-delay: 0.33s; }
.mobile-menu.open .mobile-nav a:nth-child(7) { transition-delay: 0.37s; }
.mobile-menu.open .mobile-nav a:nth-child(8) { transition-delay: 0.41s; }
.mobile-menu.open .mobile-nav a:nth-child(n+9) { transition-delay: 0.45s; }
.mobile-menu-footer {
  display: flex; flex-direction: column; gap: 12px; padding-top: 26px;
  margin-top: 20px; border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.5s var(--ease) 0.4s, transform 0.5s var(--ease) 0.4s;
}
.mobile-menu.open .mobile-menu-footer { opacity: 1; transform: translateY(0); }
.mobile-menu-footer a { font-weight: 600; font-size: 18px; }
.mobile-menu-footer a:hover { color: var(--emerald); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid transparent; border-radius: 100px;
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  padding: 14px 30px; cursor: pointer; white-space: nowrap;
  transition: all 0.35s var(--ease); position: relative; overflow: hidden;
}
.btn-sm { padding: 10px 22px; font-size: 13.5px; }
.btn-lg { padding: 17px 38px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: var(--emerald-deep); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(20, 61, 46, 0.5); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--emerald-deep); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.35); }
.btn-outline-light { border-color: rgba(250, 247, 241, 0.4); color: var(--cream); background: transparent; }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(250, 247, 241, 0.08); transform: translateY(-2px); }

/* ---------------- hero ---------------- */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  position: relative; padding: 140px 0 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; contain: strict; }
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.45;
  will-change: transform; transform: translateZ(0); backface-visibility: hidden;
}
.orb-1 {
  width: 560px; height: 560px; top: -170px; right: -130px;
  background: radial-gradient(circle, #cfe3d6 0%, transparent 70%);
  animation: drift 16s ease-in-out infinite alternate;
}
.orb-2 {
  width: 440px; height: 440px; bottom: -150px; left: -110px;
  background: radial-gradient(circle, #e9dcc3 0%, transparent 70%);
  animation: drift 20s ease-in-out infinite alternate-reverse;
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(50px, 30px) scale(1.08); } }
.hero-grain {
  position: absolute; inset: 0; opacity: 0.35;
  background-image: radial-gradient(rgba(27, 42, 36, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 60px; align-items: center; width: 100%;
}
.hero-content { max-width: 620px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--emerald); font-weight: 600; margin-bottom: 26px;
}
.pin-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--emerald);
  position: relative; flex-shrink: 0;
}
.pin-dot::after {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--emerald); opacity: 0.5;
  animation: pinPulse 2.2s var(--ease) infinite;
}
@keyframes pinPulse { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }

/* hero photo */
.hero-visual { position: relative; }
.hero-photo {
  position: relative; border-radius: 26px; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--emerald-soft);
  box-shadow: 0 40px 80px -34px rgba(20, 61, 46, 0.55);
  transform: translateZ(0);
}
.hero-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 36, 28, 0.4) 100%);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 1.2s var(--ease);
  animation: heroPhotoIn 1.3s var(--ease) 0.2s both;
  backface-visibility: hidden;
}
@keyframes heroPhotoIn { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.04); } }
.hero-visual:hover .hero-photo img { transform: scale(1); }
.hero-photo-tag {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: rgba(250, 247, 241, 0.92); backdrop-filter: blur(8px);
  border-radius: 100px; padding: 10px 20px 10px 12px;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,0.4);
  animation: floatIn 0.9s var(--ease) 0.9s both;
}
.tag-pin { width: 36px; height: 36px; border-radius: 50%; background: var(--emerald); color: var(--cream); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tag-txt { display: flex; flex-direction: column; line-height: 1.2; }
.tag-txt strong { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.tag-txt em { font-size: 11px; font-style: normal; color: var(--ink-soft); letter-spacing: 0.02em; }
.hero-stat-float {
  position: absolute; top: 26px; right: -14px; z-index: 2;
  display: flex; flex-direction: column; text-align: center;
  background: var(--emerald-deep); color: var(--cream);
  border-radius: 18px; padding: 16px 22px;
  box-shadow: 0 20px 40px -18px rgba(20, 61, 46, 0.7);
  animation: floatIn 0.9s var(--ease) 1.1s both;
}
.hero-stat-num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--gold); line-height: 1; }
.hero-stat-num span { font-size: 26px; }
.hero-stat-lbl { font-size: 11px; letter-spacing: 0.04em; color: rgba(250,247,241,0.72); margin-top: 4px; }
@keyframes floatIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 5.2vw, 66px); line-height: 1.05; letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-title em { color: var(--emerald); }
.hero-title .line { display: block; overflow: hidden; }
.anim-line {
  display: inline-block; transform: translateY(110%);
  animation: lineUp 1s var(--ease) forwards; animation-delay: 0.25s;
}
.anim-line.d1 { animation-delay: 0.4s; }
@keyframes lineUp { to { transform: translateY(0); } }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--ink-soft); max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-badges { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; flex-wrap: wrap; }
.hero-badges .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }

.anim-up { opacity: 0; transform: translateY(26px); animation: fadeUp 0.9s var(--ease) forwards; }
.anim-up.d1 { animation-delay: 0.15s; }
.anim-up.d2 { animation-delay: 0.35s; }
.anim-up.d3 { animation-delay: 0.5s; }
.anim-up.d4 { animation-delay: 0.65s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.hero-scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1.5px solid var(--line); border-radius: 14px;
}
.hero-scroll span {
  position: absolute; top: 7px; left: 50%; width: 3px; height: 8px;
  margin-left: -1.5px; background: var(--emerald); border-radius: 3px;
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------------- page hero (inner pages) ---------------- */
.page-hero {
  padding: 150px 0 58px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
}
/* pull the first content section up so the hero doesn't leave a big gap */
.page-hero + .section { padding-top: 66px; }
.page-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 6vw, 68px); line-height: 1.06; margin-bottom: 22px; max-width: 850px;
}
.page-title em { color: var(--emerald); }
.page-sub { font-size: 17.5px; color: var(--ink-soft); max-width: 640px; }
.page-hero .hero-actions { margin-top: 40px; margin-bottom: 0; }
.crumb { border-bottom: 1px solid currentColor; }

/* ---------------- sections ---------------- */
.section { padding: 110px 0; }
.section-tint { background: var(--cream-2); }
.section-dark { background: var(--emerald-deep); color: var(--cream); }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .lead { color: rgba(250, 247, 241, 0.72); }
.section-head { max-width: 700px; margin-bottom: 60px; }
.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--emerald); font-weight: 600; margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; margin-bottom: 18px;
}
.section-title em { color: var(--emerald); }
.section-dark .section-title em { color: var(--gold); }
.lead { font-size: 17.5px; color: var(--ink-soft); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------------- stats ---------------- */
.stats-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 56px 0; background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat { text-align: center; }
.stat-value {
  font-family: var(--serif); font-size: clamp(42px, 5vw, 64px); font-weight: 700;
  color: var(--emerald); line-height: 1; margin-bottom: 10px;
}
.stat-label { font-size: 13.5px; color: var(--ink-soft); max-width: 220px; margin: 0 auto; }

/* ---------------- cards ---------------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 30px; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--emerald-soft); color: var(--emerald);
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--spring);
  will-change: transform;
}
.card:hover .card-icon { background: var(--emerald); color: #fff; transform: translateY(-4px) scale(1.05) rotate(-5deg); }
.card-icon svg { width: 28px; height: 28px; overflow: visible; }
/* draw-in: strokes trace themselves when the card reveals */
.card-icon svg .ico,
.card-icon svg path,
.card-icon svg circle {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.9s var(--ease);
}
.card-icon svg .ico-dot { stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0; transition: opacity 0.4s ease 0.7s; }
.card.visible .card-icon svg path,
.card.visible .card-icon svg circle { stroke-dashoffset: 0; }
.card.visible .card-icon svg .ico-dot { opacity: 1; }
.card:nth-child(2).visible .card-icon svg path,
.card:nth-child(2).visible .card-icon svg circle { transition-delay: 0.08s; }
.card:nth-child(3).visible .card-icon svg path,
.card:nth-child(3).visible .card-icon svg circle { transition-delay: 0.16s; }
/* springy hover redraw pulse */
.card:hover .card-icon svg path,
.card:hover .card-icon svg circle {
  animation: iconTrace 0.8s var(--ease);
}
@keyframes iconTrace { 0% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
.card h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------------- split / services rows ---------------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: start; }
.split-text .section-title { margin-bottom: 22px; }
.split-text p { margin-bottom: 16px; color: var(--ink-soft); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--emerald); font-weight: 600; font-size: 15px; margin-top: 8px;
}
.link-arrow span { transition: transform 0.3s var(--ease); }
.link-arrow:hover span { transform: translateX(6px); }

.services-list { display: flex; flex-direction: column; }
.service-row {
  display: flex; align-items: center; gap: 26px;
  padding: 30px 8px; border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease), background 0.4s;
}
.service-row:first-child { border-top: 1px solid var(--line); }
.service-row:hover { padding-left: 22px; background: rgba(255, 255, 255, 0.6); }
.service-num { font-family: var(--serif); font-size: 15px; color: var(--gold); font-weight: 600; }
.service-name { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; flex: 1; }
.service-arrow { font-size: 22px; color: var(--emerald); opacity: 0; transform: translateX(-10px); transition: all 0.35s var(--ease); }
.service-row:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ---------------- why ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-check {
  color: var(--emerald); flex-shrink: 0; margin-top: 2px;
  width: 30px; height: 30px; border-radius: 9px; background: var(--emerald-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--spring);
}
.why-item:hover .why-check { background: var(--emerald); color: #fff; transform: scale(1.1) rotate(-6deg); }
.why-check svg path { stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 0.7s var(--ease); }
.why-item.visible .why-check svg path { stroke-dashoffset: 0; }
.why-item p { font-size: 15px; font-weight: 500; }

/* ---------------- team ---------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px; }
.team-card {
  background: rgba(250, 247, 241, 0.05); border: 1px solid rgba(250, 247, 241, 0.14);
  border-radius: 18px; padding: 30px 24px;
  transition: transform 0.45s var(--ease), background 0.45s, border-color 0.45s;
}
.team-card:hover { transform: translateY(-6px); background: rgba(250, 247, 241, 0.09); border-color: rgba(250, 247, 241, 0.3); }
.team-avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--gold); color: var(--emerald-deep);
  font-family: var(--serif); font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.team-card h3 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin-bottom: 4px; }
.team-role { font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 500; }
.team-text { font-size: 13.5px; color: rgba(250, 247, 241, 0.7); }
.team-light .team-card { background: #fff; border-color: var(--line); }
.team-light .team-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.team-light .team-role { color: var(--emerald); }
.team-light .team-text { color: var(--ink-soft); }
.team-light .team-avatar { background: var(--emerald-soft); color: var(--emerald); }

/* ---------------- quote ---------------- */
.quote-card {
  background: var(--emerald-deep); color: var(--cream); border-radius: 22px;
  padding: 50px 44px; position: relative; overflow: hidden;
}
.quote-card::after {
  content: ''; position: absolute; right: -60px; bottom: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 147, 90, 0.35), transparent 70%);
}
.quote-mark { font-family: var(--serif); font-size: 90px; line-height: 0.6; color: var(--gold); margin-bottom: 24px; }
.quote-card p { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 27px); font-style: italic; line-height: 1.4; margin-bottom: 26px; }
.quote-src { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(250, 247, 241, 0.55); }

/* ---------------- location band ---------------- */
.location {
  position: relative; color: var(--cream); overflow: hidden;
  padding: 120px 0; display: flex; align-items: center; min-height: 520px;
}
.location-media { position: absolute; inset: 0; z-index: 0; background: var(--emerald-deep); }
.location-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 1.4s var(--ease);
}
.location.visible .location-media img { transform: scale(1); }
.location-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16, 36, 28, 0.9) 0%, rgba(16, 36, 28, 0.72) 42%, rgba(16, 36, 28, 0.25) 100%);
}
.location-inner { position: relative; z-index: 1; max-width: 620px; }
.eyebrow-light { color: var(--gold); }
.location .section-title { color: var(--cream); }
.location .section-title em { color: var(--gold); }
.location-lead { font-size: 17px; color: rgba(250, 247, 241, 0.82); margin: 4px 0 34px; }
.location-facts { display: flex; gap: 40px; flex-wrap: wrap; }
.loc-fact { display: flex; flex-direction: column; gap: 4px; }
.loc-num { font-family: var(--serif); font-size: 38px; font-weight: 700; color: var(--gold); line-height: 1; }
.loc-lbl { font-size: 13px; color: rgba(250, 247, 241, 0.7); max-width: 150px; }

/* ---------------- about visual ---------------- */
.about-visual { display: flex; flex-direction: column; gap: 22px; }
.about-photo {
  border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10;
  background: var(--emerald-soft); box-shadow: var(--shadow);
}
.about-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.05); transition: transform 1.1s var(--ease);
}
.about-visual:hover .about-photo img { transform: scale(1); }
/* desktop: photo fills the leftover height so both columns always match */
@media (min-width: 1021px) {
  .split:has(.about-visual) { align-items: stretch; }
  .about-visual { height: 100%; }
  .about-photo { aspect-ratio: auto; flex: 1 1 auto; min-height: 240px; }
  .about-visual .quote-card { flex: 0 0 auto; }
}

/* ---------------- stages / features ---------------- */
.stages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stage-card {
  border: 1px solid rgba(250, 247, 241, 0.16); border-radius: 18px; padding: 34px 26px;
  transition: transform 0.45s var(--ease), background 0.45s;
}
.stage-card:hover { transform: translateY(-6px); background: rgba(250, 247, 241, 0.06); }
.stage-num { font-family: var(--serif); font-size: 44px; font-weight: 700; color: var(--gold); display: block; margin-bottom: 16px; line-height: 1; }
.stage-card h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin-bottom: 10px; }
.stage-card p { font-size: 14px; color: rgba(250, 247, 241, 0.72); }

.feature-list { display: flex; flex-direction: column; gap: 14px; }
.feature-item {
  display: flex; gap: 20px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature-item:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.feature-num { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--gold); line-height: 1.3; }
.feature-item p { font-size: 15px; font-weight: 500; }

/* ---------------- services big grid ---------------- */
.services-big-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 46px 40px; position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card-num {
  position: absolute; top: 24px; right: 32px;
  font-family: var(--serif); font-size: 72px; font-weight: 700;
  color: var(--emerald-soft); line-height: 1;
  transition: color 0.45s;
}
.service-card:hover .service-card-num { color: var(--gold); }
.service-card h2 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 31px); font-weight: 600; margin-bottom: 14px; max-width: 78%; }
.service-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }

/* ---------------- prose ---------------- */
.prose-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; align-items: start; }
.prose h2 {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 34px);
  font-weight: 600; margin: 42px 0 16px;
}
.prose > div:first-child h2, .prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); margin-bottom: 16px; font-size: 16px; }
.prose-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.aside-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px;
}
.aside-card h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin-bottom: 12px; }
.aside-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; }
.aside-card ul { list-style: none; margin-bottom: 22px; }
.aside-card li { padding: 9px 0 9px 26px; position: relative; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.aside-card li:last-child { border-bottom: 0; }
.aside-card li::before { content: '—'; position: absolute; left: 0; color: var(--gold); }
.aside-phone { display: block; font-weight: 600; font-size: 18px; margin-bottom: 10px; color: var(--emerald); }
.aside-link { display: block; padding: 10px 0; font-size: 14.5px; font-weight: 500; border-bottom: 1px solid var(--line); transition: color 0.25s, padding-left 0.25s; }
.aside-link:last-child { border-bottom: 0; }
.aside-link:hover { color: var(--emerald); padding-left: 6px; }

/* ---------------- contacts ---------------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.contacts-info { display: flex; flex-direction: column; gap: 26px; }
.contact-block h3 {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--emerald); font-weight: 600; margin-bottom: 8px;
}
.contact-block a { display: block; font-family: var(--serif); font-size: 23px; font-weight: 600; padding: 2px 0; transition: color 0.25s; }
.contact-block a:hover { color: var(--emerald); }
.contact-block p { font-family: var(--serif); font-size: 23px; font-weight: 600; }
.contacts-map { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.contacts-map iframe { width: 100%; height: 560px; border: 0; display: block; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--emerald-deep); color: var(--cream);
  padding: 90px 0; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: -140px; right: 10%;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 147, 90, 0.28), transparent 70%);
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; position: relative; }
.cta-eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.cta-title { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 50px); font-weight: 600; margin-bottom: 14px; }
.cta-title em { color: var(--gold); }
.cta-text { color: rgba(250, 247, 241, 0.7); max-width: 460px; }
.cta-actions { display: flex; flex-direction: column; gap: 14px; flex-shrink: 0; }

/* ---------------- footer ---------------- */
.footer { background: #10241c; color: rgba(250, 247, 241, 0.75); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 46px; padding-bottom: 56px; }
.footer-brand p { font-size: 14px; margin-top: 18px; max-width: 300px; }
.footer-col h4 {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 600;
}
.footer-col a, .footer-col p { display: block; font-size: 14px; padding: 5px 0; transition: color 0.25s, padding-left 0.25s; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(250, 247, 241, 0.1);
  padding: 24px; text-align: center; font-size: 13px; color: rgba(250, 247, 241, 0.45);
}

/* ---------------- modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(16, 36, 28, 0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.4s;
}
.modal.open .modal-backdrop { opacity: 1; }
.modal-card {
  position: relative; background: var(--cream); border-radius: 24px;
  max-width: 460px; width: 100%; padding: 46px 42px; max-height: 92vh; overflow-y: auto;
  transform: translateY(30px) scale(0.97); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s;
}
.modal.open .modal-card { transform: translateY(0) scale(1); opacity: 1; }
.modal-close {
  position: absolute; top: 16px; right: 20px; background: none; border: 0;
  font-size: 30px; cursor: pointer; color: var(--ink-soft); line-height: 1;
  transition: transform 0.3s var(--ease), color 0.3s;
}
.modal-close:hover { color: var(--ink); }
.modal-eyebrow { font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--emerald); font-weight: 600; margin-bottom: 10px; }
.modal-title { font-family: var(--serif); font-size: 32px; font-weight: 600; margin-bottom: 8px; }
.modal-text { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 26px; }

.field { position: relative; margin-bottom: 16px; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; padding: 22px 16px 10px; font-family: var(--sans); font-size: 15px;
  color: var(--ink); outline: none; transition: border-color 0.3s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--emerald); }
.field label {
  position: absolute; left: 17px; top: 16px; font-size: 14.5px; color: var(--ink-soft);
  pointer-events: none; transition: all 0.25s var(--ease);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  top: 7px; font-size: 11px; color: var(--emerald); letter-spacing: 0.04em;
}
.form-error { color: #b3261e; font-size: 13.5px; min-height: 20px; margin-bottom: 6px; }
.form-note { font-size: 11.5px; color: var(--ink-soft); text-align: center; margin-top: 14px; }

.modal-success { text-align: center; }
.success-mark { width: 74px; margin: 0 auto 22px; color: var(--emerald); }
.success-mark svg { width: 74px; height: 74px; stroke: currentColor; stroke-width: 2.5; }
.success-mark circle { stroke-dasharray: 166; stroke-dashoffset: 166; animation: draw 0.7s var(--ease) forwards; }
.success-mark path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.5s var(--ease) 0.5s forwards; stroke-linecap: round; stroke-linejoin: round; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------------- admin ---------------- */
.admin-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  text-align: left; padding: 16px 18px; font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--emerald-soft); }
.admin-table a { color: var(--emerald); font-weight: 600; }

/* ---------------- responsive ---------------- */
@media (max-width: 1020px) {
  .cards-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .stages-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .prose-grid, .contacts-grid { grid-template-columns: 1fr; gap: 46px; }
  .prose-aside { position: static; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-content { max-width: 640px; }
  .hero-photo { aspect-ratio: 16 / 10; max-height: 420px; }
  .hero-stat-float { right: 18px; top: 18px; }
}
@media (max-width: 820px) {
  .nav, .header-phone { display: none; }
  .burger { display: block; }
  .header-inner { height: 72px; }
  .section { padding: 74px 0; }
  .page-hero { padding: 124px 0 48px; }
  .page-hero + .section { padding-top: 52px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .services-big-grid { grid-template-columns: 1fr; }
  .contacts-map iframe { height: 380px; }
  .location { padding: 84px 0; min-height: 0; }
  .location-overlay { background: linear-gradient(180deg, rgba(16,36,28,0.82) 0%, rgba(16,36,28,0.7) 100%); }
  .location-facts { gap: 26px; }
}
@media (max-width: 560px) {
  .cards-grid, .why-grid, .team-grid, .stages-grid { grid-template-columns: 1fr; }
  .btn-lg { padding: 15px 28px; font-size: 15px; }
  .modal-card { padding: 38px 26px; }
  .hero-actions .btn { width: 100%; }
  .header-right .btn { display: none; }
  .hero { padding: 120px 0 70px; }
  .hero-photo { aspect-ratio: 3 / 2; }
  .hero-stat-float { padding: 12px 16px; }
  .hero-stat-num { font-size: 32px; }
  .loc-num { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal, .anim-up, .anim-line { opacity: 1 !important; transform: none !important; }
  .card-icon svg path, .card-icon svg circle, .why-check svg path { stroke-dashoffset: 0 !important; }
  .card-icon svg .ico-dot { opacity: 1 !important; }
  .hero-photo img, .about-photo img, .location-media img { transform: none !important; opacity: 1 !important; }
}
