/* =========================================================
   Zhanna Kiyko — Coach ICF
   Elegant Minimalism: Emerald + Gold
   Fonts: Playfair Display (serif headings) + Inter (body)
   ========================================================= */

:root {
  --emerald-900: #0b2a23;
  --emerald-800: #0f3d33;
  --emerald-700: #145040;
  --emerald-600: #1a6651;
  --gold: #c9a227;
  --gold-soft: #d9b94e;
  --cream: #f7f4ee;
  --cream-200: #efe9df;
  --ink: #1c1c1c;
  --ink-soft: #4a4a4a;
  --line: #e2dccf;
  --white: #ffffff;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(11, 42, 35, 0.06);
  --shadow: 0 12px 40px rgba(11, 42, 35, 0.08);
  --transition: 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  background: var(--emerald-900);
  color: var(--cream);
  padding: 0.8em 1.4em;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: top var(--transition);
}
.skip-link:focus { top: 1rem; }

*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--emerald-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.4rem; }

p { margin-bottom: 1.2em; }

.lead { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.75; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.serif-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--emerald-800);
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }

.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-cream-200 { background: var(--cream-200); }
.bg-emerald { background: var(--emerald-900); color: var(--cream); }
.bg-emerald h1, .bg-emerald h2, .bg-emerald h3 { color: var(--cream); }
.bg-emerald .eyebrow { color: var(--gold-soft); }

.divider {
  width: 48px; height: 1px; background: var(--gold);
  margin: 1.6rem 0;
}
.section-head.center .divider { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.95em 1.9em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn-gold {
  background: var(--gold);
  color: var(--emerald-900);
}
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline {
  background: transparent;
  color: var(--emerald-800);
  border-color: var(--emerald-800);
}
.btn-outline:hover { background: var(--emerald-800); color: var(--cream); }
.btn-ghost-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(247, 244, 238, 0.5);
}
.btn-ghost-light:hover { background: var(--cream); color: var(--emerald-900); }
.btn-lg { padding: 1.1em 2.4em; font-size: 1rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--emerald-900);
  font-weight: 500;
}
.brand-mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--emerald-700), var(--emerald-900));
  background-size: cover;
  background-position: center;
  display: block;
  object-fit: cover;
  object-position: center;
  font-family: var(--font-serif);
  font-size: 0;
  line-height: 0;
  border: 1.5px solid var(--gold);
  box-shadow:
    0 0 0 3px var(--cream),
    0 0 0 4px rgba(201, 162, 39, 0.45),
    0 4px 14px rgba(11, 42, 35, 0.18);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform var(--transition);
}
.brand:hover .brand-mark { transform: scale(1.04); }
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.4);
  pointer-events: none;
}
.brand-name { line-height: 1.1; }
.brand-name small { display: block; font-family: var(--font-sans); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-top: 0.2rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 0.4em 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--emerald-900); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 1.4rem; }
.nav-cta .btn { padding: 0.7em 1.5em; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; display: block;
  width: 24px; height: 1.5px;
  background: var(--emerald-900);
  position: absolute;
  left: 4px;
  transition: var(--transition);
}
.nav-toggle span { top: 15px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--emerald-900);
  color: var(--cream);
  padding: 7rem 0 6rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.16), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(20, 80, 64, 0.55), transparent 50%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}
.hero h1 { color: var(--cream); margin-bottom: 1.4rem; }
.hero h1 em { color: var(--gold-soft); font-style: italic; }
.hero .lead { color: rgba(247, 244, 238, 0.82); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-stats {
  display: flex;
  gap: 2.6rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 244, 238, 0.15);
}
.stat .num {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold-soft);
  display: block;
  line-height: 1;
}
.stat .label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(247, 244, 238, 0.6); margin-top: 0.4rem; }

.hero-portrait {
  position: relative;
}
.hero-portrait .frame {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
.hero-portrait .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 42, 35, 0.4));
}
.hero-portrait .frame img { width: 100%; height: 540px; object-fit: cover; object-position: center top; }
.portrait-badge {
  position: absolute;
  bottom: -22px; left: -22px;
  background: var(--cream);
  color: var(--emerald-900);
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  font-family: var(--font-serif);
}
.portrait-badge .b-eyebrow { font-family: var(--font-sans); font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 600; display: block; margin-bottom: 0.35rem; }
.portrait-badge .b-name { font-size: 1.15rem; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  transition: all var(--transition);
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.card .icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--cream-200);
  color: var(--emerald-800);
  display: grid; place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
  font-family: var(--font-serif);
}
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 0; }
.card .card-link {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.card .card-link:hover { color: var(--emerald-800); }

/* number step cards */
.step-card .icon { font-variant-numeric: tabular-nums; }

/* ---------- Split / Feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.split-img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split-img .frame-deco { position: relative; }
.split-img .frame-deco::before {
  content: ""; position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}

/* ---------- Quote block ---------- */
.quote-block {
  border-left: 2px solid var(--gold);
  padding: 0.4rem 0 0.4rem 1.8rem;
  margin: 2rem 0;
}
.quote-block .serif-quote { font-size: 1.5rem; }
.quote-block cite { display: block; margin-top: 1rem; font-style: normal; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

/* ---------- Case card ---------- */
.case-card {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  align-items: start;
  transition: all var(--transition);
}
.case-card:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.case-meta { width: 100%; }
.case-meta .tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.9rem;
}
.case-meta h3 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.case-meta .sub { font-size: 0.92rem; color: var(--ink-soft); }
.case-body { width: 100%; }
.case-body p { font-size: 0.98rem; }
.case-result {
  margin-top: 1.2rem;
  padding: 1.1rem 1.3rem;
  background: var(--cream-200);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
  font-size: 0.95rem;
  line-height: 1.6;
}
.case-result strong { color: var(--emerald-800); }

/* ---------- Article / Blog ---------- */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  height: 100%;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.post-card .post-thumb {
  height: 180px;
  background: var(--emerald-800);
  display: grid; place-items: center;
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-size: 2.2rem;
}
.post-card .post-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.post-meta { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 0.8rem; }
.post-card h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.post-card p { color: var(--ink-soft); font-size: 0.92rem; flex: 1; }
.post-card .post-link { margin-top: 1.2rem; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--emerald-800); }
.post-card .post-link:hover { color: var(--gold); }

/* article layout */
.article { max-width: 760px; margin: 0 auto; }
.article .back-link { display: inline-block; margin-bottom: 2rem; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.article .back-link:hover { color: var(--gold); }
.article h1 { margin-bottom: 1rem; }
.article h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article h3 { margin-top: 2rem; margin-bottom: 0.9rem; }
.article .article-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2.5rem; }
.article p, .article ul, .article ol, .article blockquote { margin-bottom: 1.3rem; }
.article ul, .article ol { padding-left: 1.3rem; }
.article ul li { list-style: disc; margin-bottom: 0.5rem; }
.article ol li { list-style: decimal; margin-bottom: 0.5rem; }
.article blockquote {
  border-left: 2px solid var(--gold);
  padding: 0.2rem 0 0.2rem 1.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--emerald-800);
}
.article-cta {
  margin-top: 3rem;
  padding: 2.2rem;
  background: var(--cream-200);
  border-radius: var(--radius);
  border-left: 3px solid var(--gold);
}
.article-img {
  margin: 2.5rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-img img { width: 100%; }
.article-img .caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 0.8rem 1rem 0;
  font-style: italic;
}
.article-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.article-img-grid .article-img { margin: 0; }
@media (max-width: 600px) {
  .article-img-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--emerald-800);
  color: var(--cream);
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.15), transparent 55%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--cream); margin-bottom: 1rem; }
.cta-banner p { color: rgba(247, 244, 238, 0.8); max-width: 540px; margin: 0 auto 2rem; }

/* ---------- Package / Timeline ---------- */
.package {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.package-head {
  background: var(--emerald-900);
  color: var(--cream);
  padding: 2.5rem 2.5rem 2rem;
  text-align: center;
}
.package-head .eyebrow { color: var(--gold-soft); }
.package-head h2 { color: var(--cream); margin-bottom: 0.5rem; }
.package-head .price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold-soft);
  margin-top: 0.8rem;
}
.package-head .price strong { font-size: 2rem; font-weight: 500; }
.package-head .price-note { font-size: 0.85rem; color: rgba(247,244,238,0.6); margin-top: 0.4rem; }
.package-body { padding: 0; }
.timeline { position: relative; padding: 2rem 0; }
.timeline::before {
  content: "";
  position: absolute;
  left: 2.5rem;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
.tl-item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0;
  padding: 0.5rem 2.5rem 2rem 0;
  position: relative;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  text-align: center;
  padding-top: 0.3rem;
  position: relative;
  z-index: 1;
}
.tl-num::after {
  content: "";
  position: absolute;
  left: 50%; top: 2.6rem;
  transform: translateX(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--gold);
}
.tl-content { padding-left: 1.5rem; padding-top: 0.2rem; }
.tl-content h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.tl-content p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }
.package-cta {
  padding: 2rem 2.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--cream-200);
}
.package-cta p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1.2rem; }

/* ---------- Lead magnet ---------- */
.lead-magnet {
  background: var(--emerald-900);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.lead-magnet::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(201,162,39,0.15), transparent 50%);
  pointer-events: none;
}
.lead-magnet > * { position: relative; z-index: 1; }
.lead-magnet .lm-text h2 { color: var(--cream); margin-bottom: 1rem; }
.lead-magnet .lm-text p { color: rgba(247,244,238,0.8); margin-bottom: 1.5rem; }
.lead-magnet .lm-list { list-style: none; }
.lead-magnet .lm-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(247,244,238,0.12);
  color: rgba(247,244,238,0.85);
  font-size: 0.95rem;
}
.lead-magnet .lm-list li:last-child { border: none; }
.lead-magnet .lm-list li::before { content: "✓ "; color: var(--gold-soft); font-weight: 600; }
.lead-magnet .lm-visual {
  background: rgba(247,244,238,0.05);
  border: 1px solid rgba(201,162,39,0.25);
  border-radius: var(--radius);
  padding: 2rem;
}
.lead-magnet .lm-visual .letter-preview {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(247,244,238,0.75);
}
.lead-magnet .lm-visual .letter-preview::before {
  content: "✉️";
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  font-style: normal;
}

@media (max-width: 760px) {
  .lead-magnet { grid-template-columns: 1fr; padding: 2rem; }
  .tl-item { grid-template-columns: 3.5rem 1fr; padding-right: 1.5rem; }
  .timeline::before { left: 1.75rem; }
  .package-head, .package-cta { padding: 2rem 1.5rem; }
}

/* ---------- Reviews ---------- */
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.review-card:hover { box-shadow: var(--shadow); border-color: var(--gold); }
.review-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.review-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--emerald-900);
  color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-style: italic;
  border: 1px solid var(--gold);
  flex-shrink: 0;
  line-height: 1;
}
.review-name { font-weight: 600; font-size: 1.05rem; color: var(--emerald-900); }
.review-role { font-size: 0.85rem; color: var(--ink-soft); }
.review-date { font-size: 0.78rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-left: auto; }
.review-text { font-size: 1rem; line-height: 1.75; color: var(--ink); flex: 1; font-style: italic; }
.review-text::before { display: none; }
.review-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-top: 1.2rem;
}

/* video review */
.review-video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--emerald-900);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  margin: 0 auto;
}
.review-video video,
.review-video img { width: 100%; height: 100%; object-fit: cover; }
.review-video .play-overlay {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  background: rgba(11,42,35,0.3);
  transition: background var(--transition);
}
.review-video:hover .play-overlay { background: rgba(11,42,35,0.15); }
.review-video .play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(247,244,238,0.9);
  display: grid; place-items: center;
  font-size: 1.5rem;
  color: var(--emerald-900);
}

/* screenshot gallery */
.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.screenshot-gallery img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
}
.screenshot-gallery img:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
@media (max-width: 760px) {
  .screenshot-gallery { grid-template-columns: 1fr 1fr; }
}

/* ---------- Certificates ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}
.cert-card .cert-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream-200);
  overflow: hidden;
}
.cert-card .cert-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.cert-card:hover .cert-img img { transform: scale(1.04); }
.cert-card .cert-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(11, 42, 35, 0.25));
  pointer-events: none;
}
.cert-card .cert-body { padding: 1.5rem 1.6rem; flex: 1; }
.cert-card .cert-body .cert-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.cert-card .cert-body h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.cert-card .cert-body p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0; }

@media (max-width: 760px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 42, 35, 0.92);
  backdrop-filter: blur(6px);
  padding: 3rem 2rem;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.5);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(247, 244, 238, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--cream);
  font-size: 1.4rem;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background var(--transition);
}
.lightbox-close:hover { background: rgba(247, 244, 238, 0.2); }
.lightbox-caption {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1rem;
  text-align: center;
  max-width: 600px;
  padding: 0 1rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-list { margin-top: 2rem; }
.contact-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-list .ic {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--cream-200);
  color: var(--emerald-800);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-list .lbl { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact-list .val { font-size: 1rem; color: var(--ink); }
.contact-list .val a:hover { color: var(--gold); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 1.3rem; }
.form-row label { display: block; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 0.5rem; }
.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  transition: border var(--transition);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus { outline: none; border-color: var(--gold); background: var(--white); }
.form-row textarea { min-height: 130px; resize: vertical; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--emerald-900);
  color: var(--gold);
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 500;
  box-shadow: var(--shadow);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--emerald-800); transform: translateY(-3px); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}
.breadcrumbs a { color: var(--gold); font-weight: 600; }
.breadcrumbs a:hover { color: var(--emerald-800); }
.breadcrumbs span.sep { margin: 0 0.6rem; color: var(--line); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--emerald-900);
  color: rgba(247, 244, 238, 0.7);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-grid h4 { color: var(--cream); font-size: 1.05rem; margin-bottom: 1.2rem; }
.footer-grid p { font-size: 0.92rem; line-height: 1.7; }
.footer-grid ul li { margin-bottom: 0.7rem; }
.footer-grid ul a { font-size: 0.92rem; color: rgba(247, 244, 238, 0.7); }
.footer-grid ul a:hover { color: var(--gold-soft); }
.footer-brand { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; font-family: var(--font-serif); font-size: 1.2rem; color: var(--cream); }
.footer-bottom {
  border-top: 1px solid rgba(247, 244, 238, 0.12);
  padding-top: 1.8rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem;
  color: rgba(247, 244, 238, 0.5);
}
.footer-bottom a { color: rgba(247, 244, 238, 0.6); }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ---------- Page header (interior) ---------- */
.page-header {
  background: var(--emerald-900);
  color: var(--cream);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(201, 162, 39, 0.14), transparent 55%);
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: var(--cream); margin-bottom: 0.8rem; }
.page-header p { color: rgba(247, 244, 238, 0.78); max-width: 600px; margin: 0 auto; }
.page-header-img {
  max-width: 420px;
  margin: 2.5rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, 0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.page-header-img img { width: 100%; }

.breadcrumb { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; font-weight: 600; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 2rem; } .mt-4 { margin-top: 4rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 2rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.35em 0.9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--white);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-portrait .frame img { height: 440px; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 4rem 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 28px 2rem;
    gap: 1.2rem;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.8rem; text-align: center; }
  .hero-portrait .frame img { height: 380px; }
  .portrait-badge { left: 0; }
}

/* ---------- Tooltip / hint badge ---------- */
.tip {
  position: relative;
  border-bottom: 1px dotted currentColor;
  cursor: help;
  white-space: nowrap;
}
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--emerald-900);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.7em 0.95em;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.4);
  box-shadow: var(--shadow);
  white-space: normal;
  width: max-content;
  max-width: 280px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
  text-align: center;
}
.tip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--emerald-900);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
  z-index: 1000;
}
.tip:hover::after,
.tip:focus::after,
.tip.force-open::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.tip:hover::before,
.tip:focus::before,
.tip.force-open::before {
  opacity: 1;
  visibility: visible;
}

/* dark contexts (header brand small, footer) */
.tip.on-dark { border-bottom-color: rgba(201, 162, 39, 0.6); }
.tip.on-dark::after { background: var(--cream); color: var(--emerald-900); border-color: var(--gold); }
.tip.on-dark::before { border-top-color: var(--cream); }

/* brand small tooltip: position below because top is clipped by header */
.brand .tip::after {
  bottom: auto;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(-4px);
}
.brand .tip::before {
  bottom: auto;
  top: calc(100% + 4px);
  border-top-color: transparent;
  border-bottom-color: var(--cream);
}
.brand .tip:hover::after { transform: translateX(-50%) translateY(0); }

@media (hover: none) {
  /* touch devices: show a small (?) indicator and toggle on tap handled by JS */
  .tip::after { max-width: 240px; }
}

/* === Лид-магнит === */
.lead-magnet-section{padding:4rem 0;background:var(--cream-200)}
.lead-magnet-card{display:grid;grid-template-columns:1fr auto;gap:3rem;align-items:center;background:var(--emerald-900);color:var(--cream);border-radius:1.5rem;overflow:hidden;box-shadow:0 20px 60px rgba(11,42,35,.15)}
.lead-magnet-content{padding:3rem}
.lead-magnet-content h2{color:var(--cream);margin:.5rem 0 1rem}
.lead-magnet-content p{color:rgba(247,244,238,.85);margin-bottom:1rem;line-height:1.7}
.lead-magnet-note{font-size:.9rem;opacity:.7}
.lead-magnet-visual{padding:2rem 3rem 2rem 0}
.lead-magnet-visual img{width:200px;height:auto;border-radius:.75rem;box-shadow:0 12px 40px rgba(0,0,0,.4)}
@media(max-width:768px){
  .lead-magnet-card{grid-template-columns:1fr;text-align:center}
  .lead-magnet-visual{padding:0 0 2rem}
  .lead-magnet-visual img{width:160px}
}