/* DAFNA — Landing layout CSS (uses design-system tokens) */

/* ============ AUDIENCE / PALETTE SWITCH ============ */
/* The accent tweak repaints --brand (and the rose-tinted CTA shadow) so the
   whole page shifts feel without touching markup. Default = rose. */
:root[data-accent="green"] {
  --brand: var(--green-600);
  --eyebrow: var(--green-700);
  --rose-300: var(--green-300);
  --shadow-rose: 0 18px 44px rgba(47, 126, 73, 0.20);
}
:root[data-accent="ink"] {
  --brand: var(--ink);
  --eyebrow: var(--ink-soft);
  --rose-300: var(--ink-soft);
  --shadow-rose: 0 16px 40px rgba(33, 27, 25, 0.20);
}
/* Neutral audience also calms the bold-pink "special occasion" card accent. */
:root[data-audience="all"] { --accent: var(--green-600); }

/* ============ MOOD ============ */
/* Maximalist (default) = bold serif, saturated tints, soft shadows, rounded.
   Minimalist = more air, desaturated tints, hairline detail, tighter corners,
   emphasis in ink rather than colour. One switch, whole-page feel change. */
:root[data-mood="min"] {
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --rose-50: #F5EFE8;
  --green-50: #F0F1E8;
  --pink-soft: #EFE7E4;
  --shadow-sm: 0 1px 2px rgba(33, 27, 25, .04);
  --shadow-md: 0 3px 12px rgba(33, 27, 25, .06);
  --shadow-lg: 0 10px 28px rgba(33, 27, 25, .08);
  --shadow-rose: 0 8px 20px rgba(33, 27, 25, .09);
}
:root[data-mood="min"] .headline { font-weight: 400; }
:root[data-mood="min"] .em { color: var(--ink-2); }
:root[data-mood="min"] .hero h1 { font-size: clamp(40px, 6.2vw, 74px); }
:root[data-mood="min"] .section { padding: clamp(76px, 10vw, 160px) 0; }
:root[data-mood="min"] .section-head { margin-bottom: clamp(44px, 6vw, 76px); }
:root[data-mood="min"] .pains { background: var(--paper); }
:root[data-mood="min"] .hero-tag {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink); box-shadow: none; transform: none;
}
:root[data-mood="min"] .hero-name { box-shadow: var(--shadow-sm); }
:root[data-mood="min"] .logo .dot { color: var(--ink-faint); }

.page { overflow-x: hidden; }
/* <picture> shouldn't affect layout — let the inner <img> be the flex/grid item */
picture { display: contents; }

/* sticky mobile CTA — only on small screens */
.mobile-cta { display: none; }
@media (max-width: 820px) {
  .mobile-cta {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--brand); color: #fff;
    font: 600 15px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
    padding: 17px 24px; border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px rgba(33,27,25,.28);
    transition: opacity .25s var(--ease-soft), transform .25s var(--ease-soft);
  }
  .mobile-cta.hidden { opacity: 0; transform: translateY(140%); pointer-events: none; }
  .mobile-cta span { font-size: 1.1em; }
  .ftr { padding-bottom: 96px; }
}
.wrap { max-width: var(--content-max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---- emphasis (italic serif inside headlines) ---- */
.em { font-style: italic; font-weight: 400; color: var(--brand); }
.headline { font-family: var(--font-display); font-weight: 500; letter-spacing: var(--ls-display); line-height: var(--lh-tight); color: var(--text-heading); margin: 0; }

/* ============ HEADER ============ */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 28px; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.logo .dot { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font: 600 13px/1 var(--font-sans); letter-spacing: .04em; color: var(--ink-soft); transition: color var(--dur-base) var(--ease-soft); }
.nav a:hover { color: var(--ink); }
.hdr-right { display: flex; align-items: center; gap: 20px; }
.lang { font: 600 12px/1 var(--font-sans); letter-spacing: .12em; color: var(--ink-faint); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 14px; transition: all var(--dur-base) var(--ease-soft); }
.lang:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 880px) { .nav { display: none; } }

/* ============ HERO ============ */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(46px, 7.2vw, 88px); margin: 18px 0 0; }
.hero .lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; color: var(--text-muted); margin: 28px 0 0; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-figure { position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.hero-name { position: absolute; left: 22px; bottom: 22px; background: var(--paper); border-radius: var(--radius-pill); padding: 11px 20px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px; }
.hero-name b { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.hero-name span { font: 600 11px/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.hero-tag { position: absolute; top: 20px; right: -10px; background: var(--green-600); color: #fff; font: 600 11px/1.3 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; padding: 10px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-md); transform: rotate(3deg); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; max-width: 460px; }
}

/* ============ SECTIONS ============ */
.section { padding: clamp(56px, 8vw, 128px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 56px); margin: 16px 0 0; }
.section-head .sub { font-size: var(--fs-lead); color: var(--text-muted); margin-top: 18px; line-height: 1.55; }

/* pains */
.pains { background: var(--paper-2); }
.pains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 820px) { .pains-grid { grid-template-columns: 1fr; } }

/* about */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-figure { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-figure img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.about-figure .tall { aspect-ratio: 3/4; }
.about-figure .tall:nth-child(2) { margin-top: 36px; }
.about-body p { font-size: var(--fs-body); line-height: var(--lh-relaxed); color: var(--text-muted); margin-top: 18px; }
.about-body p:first-of-type { margin-top: 28px; }
.stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.stat .n { font-family: var(--font-display); font-weight: 600; font-size: 38px; color: var(--brand); line-height: 1; }
.stat .l { font: 500 13px/1.4 var(--font-sans); color: var(--ink-soft); margin-top: 8px; max-width: 14ch; }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } .about-figure { max-width: 480px; } }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc-combos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
@media (max-width: 860px) { .svc-grid, .svc-combos { grid-template-columns: 1fr; } }
/* equal-height cards: stretch the article to fill its grid cell so neighbours match */
.svc-grid > .reveal, .svc-combos > .reveal, .pains-grid > .reveal { display: flex; }
.svc-grid > .reveal > *, .svc-combos > .reveal > *, .pains-grid > .reveal > * { width: 100%; }
/* a lone last card (odd count) spans full width instead of leaving an empty cell */
.svc-grid > .reveal:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* how */
.how { background: var(--ink); color: var(--paper); }
.how .headline { color: var(--paper); }
.how-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.how-figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-xl); }
.how .steps { margin-top: 8px; }
/* override StepItem colors on dark bg */
.how .steps h3 { color: var(--paper) !important; }
.how .steps p { color: rgba(251,245,238,.72) !important; }
.how .steps span[aria-hidden] { background: rgba(251,245,238,.2); }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } .how-figure { display: none; } }

/* reviews */
.reviews-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }

/* booking */
.booking { background: var(--paper-2); }
.booking-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.booking h2 { font-size: clamp(34px, 4.6vw, 60px); margin: 16px 0 0; }
.booking .lead { font-size: var(--fs-lead); color: var(--text-muted); margin-top: 20px; line-height: 1.55; max-width: 38ch; }
.contacts { margin-top: 40px; display: flex; flex-direction: column; gap: 4px; }
.contacts .cl { font: 600 12px/1 var(--font-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.contacts a { display: flex; align-items: center; gap: 12px; font: 500 17px/1.6 var(--font-sans); color: var(--ink-2); transition: color var(--dur-base); }
.contacts a:hover { color: var(--brand); }
.contacts a .ic { width: 20px; color: var(--brand); flex: none; }
.form { background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font: 600 12px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 9px; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/1.4 var(--font-sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; transition: border-color var(--dur-base), box-shadow var(--dur-base); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--rose-100); }
.field textarea { resize: vertical; min-height: 84px; }
.privacy { font: 400 12px/1.5 var(--font-sans); color: var(--ink-faint); margin-top: 14px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; cursor: pointer; font: 400 13px/1.45 var(--font-sans); color: var(--ink-soft); }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--brand); cursor: pointer; }
.form-error { font: 500 13px/1.5 var(--font-sans); color: var(--red, #c0392b); margin-top: 14px; }
.form-thanks { text-align: center; padding: 40px 10px; }
.form-thanks .mk { font-family: var(--font-display); font-style: italic; font-size: 44px; color: var(--brand); }
.form-thanks p { font: 500 19px/1.5 var(--font-sans); color: var(--ink-2); margin-top: 12px; }
@media (max-width: 860px) { .booking-grid { grid-template-columns: 1fr; } }

/* footer */
.ftr { background: var(--ink); color: var(--paper); padding: 56px 0; }
.ftr-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.ftr .logo { color: var(--paper); }
.ftr .tagline { font: 500 13px/1.5 var(--font-sans); letter-spacing: .06em; color: rgba(251,245,238,.6); }
.ftr-social { display: flex; gap: 14px; }
.ftr-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(251,245,238,.25); display: flex; align-items: center; justify-content: center; color: var(--paper); transition: all var(--dur-base); }
.ftr-social a:hover { background: var(--brand); border-color: var(--brand); }
.ftr-rights { width: 100%; font: 400 12px/1.5 var(--font-sans); color: rgba(251,245,238,.4); border-top: 1px solid rgba(251,245,238,.12); padding-top: 22px; margin-top: 8px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============ LANGUAGE NOTICE + SEAM ============ */
.lang-notice { position: relative; z-index: 60; display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--brand); color: #fff; padding: 10px 16px; font: 600 12px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; text-align: center; transition: background var(--dur-base) var(--ease-soft); }
.lang-notice:hover { background: var(--rose-600); }
.lang-notice .ln-dot { opacity: .55; }
.lang-notice .ln-arrow { font-size: 14px; transform: translateY(1px); }
@media (max-width: 560px) { .lang-notice .ln-ru { display: none; } .lang-notice .ln-dot { display: none; } }

.lang-seam { display: flex; align-items: center; justify-content: center; gap: 18px; background: var(--ink); padding: 30px 16px; }
.lang-seam::before, .lang-seam::after { content: ""; height: 1px; width: min(120px, 18vw); background: rgba(251,245,238,.28); }
.lang-seam span { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--rose-300); letter-spacing: .01em; }
