/* ============================================================
   Photozhab — Production Stylesheet
   Implements the Photozhab Design System tokens verbatim.
   Source of truth: photozhab-design-system/project/
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap");

/* ── Design System Tokens ─────────────────────────────────── */
:root {
  color-scheme: dark;

  /* ── Base palette ─────────────────────────────────────────── */
  --pz-paper:        #111312; /* page background (warm near-black) */
  --pz-paper-2:      #171a18; /* alt section background */
  --pz-surface:      #151816; /* card / row surface */
  --pz-surface-2:    #1b211d; /* raised / highlighted row */
  --pz-surface-3:    #1f2622; /* hover / pressed surface */
  --pz-void:         #0d0f0e; /* footer / deepest background */

  --pz-ink:          #f4f1e8; /* primary text — warm cream */
  --pz-muted:        #b7b4aa; /* secondary text */
  --pz-faint:        #6f6e67; /* tertiary / disabled text */

  /* ── Accents (neon) ───────────────────────────────────────── */
  --pz-lime:         #c8f25f; /* primary — eyebrows, prices, CTAs */
  --pz-lime-ink:     #101210; /* text on lime */
  --pz-cyan:         #54d7d6; /* secondary — links, focus, AI */
  --pz-cyan-ink:     #06201f;
  --pz-coral:        #ff7b6d; /* tertiary — kickers, video, alerts */
  --pz-coral-ink:    #2a0d09;

  /* Brand gradients */
  --pz-grad-brand:   linear-gradient(135deg, var(--pz-lime), var(--pz-cyan));
  --pz-grad-neon:    linear-gradient(120deg, var(--pz-cyan), var(--pz-lime) 55%, var(--pz-coral));

  /* ── Lines & strokes ──────────────────────────────────────── */
  --pz-line:         rgba(244, 241, 232, 0.15);
  --pz-line-strong:  rgba(244, 241, 232, 0.28);
  --pz-line-faint:   rgba(244, 241, 232, 0.08);

  /* ── Translucent fills (blur panels) ─────────────────────── */
  --pz-panel:        rgba(18, 21, 20, 0.78);
  --pz-panel-soft:   rgba(17, 19, 18, 0.52);
  --pz-glass:        rgba(17, 19, 18, 0.70);

  /* ── Semantic status ──────────────────────────────────────── */
  --pz-success:      #c8f25f;
  --pz-info:         #54d7d6;
  --pz-warn:         #ffc24b;
  --pz-danger:       #ff7b6d;

  /* ── Typography ───────────────────────────────────────────── */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-extra:    800;
  --fw-black:    900;

  --fs-display:  clamp(56px, 11vw, 144px);
  --fs-h1:       clamp(40px, 6vw, 72px);
  --fs-h2:       clamp(30px, 4vw, 54px);
  --fs-h3:       clamp(22px, 2.5vw, 32px);
  --fs-xl:       24px;
  --fs-lg:       20px;
  --fs-md:       17px;
  --fs-base:     16px;
  --fs-sm:       15px;
  --fs-xs:       13px;
  --fs-2xs:      11px;

  --lh-display:  0.92;
  --lh-tight:    1.05;
  --lh-snug:     1.2;
  --lh-normal:   1.5;
  --lh-relaxed:  1.65;

  --ls-eyebrow:  0.04em;
  --ls-tight:    -0.01em;

  /* ── Spacing & layout ─────────────────────────────────────── */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-16:  64px;
  --sp-20:  80px;
  --sp-24:  96px;

  --pad-section: clamp(48px, 7vw, 92px);
  --pad-gutter:  clamp(18px, 6vw, 76px);

  --w-content: 1120px;
  --w-prose:   700px;
  --w-hero:    860px;

  /* ── Radii ────────────────────────────────────────────────── */
  --r-xs:     4px;
  --r-sm:     6px;
  --r-md:     8px;   /* default — buttons, cards, inputs */
  --r-lg:     12px;
  --r-xl:     18px;
  --r-bubble: 20px;  /* chat bubbles */
  --r-pill:   999px;

  --hairline:  1px;

  /* ── Shadows ──────────────────────────────────────────────── */
  --shadow-sm:  0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-md:  0 16px 40px rgba(0, 0, 0, 0.48);
  --shadow-lg:  0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-cta: 0 20px 46px rgba(244, 241, 232, 0.18);

  /* ── Neon glows ───────────────────────────────────────────── */
  --glow-lime:  0 0 0 1px rgba(200, 242, 95, 0.5),  0 0 28px rgba(200, 242, 95, 0.35);
  --glow-cyan:  0 0 0 1px rgba(84, 215, 214, 0.5),  0 0 28px rgba(84, 215, 214, 0.35);
  --glow-coral: 0 0 0 1px rgba(255, 123, 109, 0.5), 0 0 28px rgba(255, 123, 109, 0.35);

  /* ── Blur ─────────────────────────────────────────────────── */
  --blur-chrome: blur(18px);
  --blur-glass:  blur(14px);

  /* ── Motion ───────────────────────────────────────────────── */
  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-std:    cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:    120ms;
  --dur-base:    160ms;
  --dur-slow:    260ms;
  --hover-lift:  -2px;
  --press-scale: 0.97;

  /* ── Focus ring ───────────────────────────────────────────── */
  --focus-ring:   3px solid var(--pz-cyan);
  --focus-offset: 3px;

  /* ── Legacy aliases (backward compat) ────────────────────── */
  --ink:    var(--pz-ink);
  --muted:  var(--pz-muted);
  --paper:  var(--pz-paper);
  --line:   var(--pz-line);
  --panel:  var(--pz-panel);
  --cyan:   var(--pz-cyan);
  --lime:   var(--pz-lime);
  --coral:  var(--pz-coral);
  --shadow: rgba(0, 0, 0, 0.48);
}

/* ── Reset & base ─────────────────────────────────────────── */
* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--pz-paper);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--pz-ink);
  background: var(--pz-paper);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  position: sticky;
  z-index: var(--z-sticky, 10);
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 18px clamp(18px, 5vw, 56px);
  background: linear-gradient(180deg, rgba(17, 19, 18, 0.82), rgba(17, 19, 18, 0));
}

.brand,
.topbar-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--pz-line);
  background: var(--pz-panel-soft);
  backdrop-filter: var(--blur-chrome);
  box-shadow: var(--shadow-md);
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: var(--r-md);
  font-weight: var(--fw-extra);
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--pz-lime-ink);
  background: var(--pz-grad-brand);
  font-weight: var(--fw-black);
}

.topbar-link {
  justify-content: center;
  padding: 0 16px;
  border-radius: var(--r-md);
  color: var(--pz-ink);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 120px var(--pad-gutter) 72px;
  margin-top: -78px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  filter: saturate(1.05) contrast(1.04);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(17, 19, 18, 0.96) 0%, rgba(17, 19, 18, 0.76) 43%, rgba(17, 19, 18, 0.24) 100%),
    linear-gradient(0deg, #111312 0%, rgba(17, 19, 18, 0.15) 38%, rgba(17, 19, 18, 0.2) 100%);
}

.hero-content {
  width: min(var(--w-hero), 100%);
}

/* ── Typography ───────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 14px;
  color: var(--pz-lime);
  font-size: var(--fs-xs);
  font-weight: var(--fw-extra);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}

.eyebrow--coral { color: var(--pz-coral); }
.eyebrow--cyan  { color: var(--pz-cyan); }

h1 {
  margin: 0;
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: 0;
}

.lead {
  max-width: 610px;
  margin: var(--sp-6) 0 0;
  color: rgba(244, 241, 232, 0.88);
  font-size: clamp(20px, 3vw, 31px);
  line-height: var(--lh-snug);
}

/* ── Hero actions ─────────────────────────────────────────── */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: 34px;
}

.primary-action {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--sp-6);
  border-radius: var(--r-md);
  background: var(--pz-ink);
  color: #111312;
  font-family: var(--font-sans);
  font-weight: 820;
  box-shadow: var(--shadow-cta);
  transition:
    transform var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out);
}

.primary-action:hover {
  transform: translateY(var(--hover-lift));
  background: #ffffff;
}

.primary-action:focus-visible,
.topbar-link:focus-visible,
.brand:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

.microcopy {
  color: var(--pz-muted);
  font-size: var(--fs-sm);
}

/* ── Hero proof tiles ─────────────────────────────────────── */
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hairline);
  width: min(var(--w-hero), 100%);
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--pz-line);
  border-radius: var(--r-md);
  background: var(--pz-line);
}

.hero-proof div {
  min-height: 116px;
  padding: 18px;
  background: var(--pz-glass);
  backdrop-filter: var(--blur-glass);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  font-size: 18px;
}

.hero-proof span {
  margin-top: var(--sp-2);
  color: var(--pz-muted);
  font-size: var(--fs-sm);
  line-height: 1.35;
}

/* ── Quick grid (3-up cards) ──────────────────────────────── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--hairline);
  background: var(--pz-line);
  border-top: 1px solid var(--pz-line);
  border-bottom: 1px solid var(--pz-line);
}

.quick-card {
  min-height: 210px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--pz-paper);
}

.quick-kicker {
  color: var(--pz-coral);
  font-size: var(--fs-xs);
  font-weight: var(--fw-extra);
  letter-spacing: var(--ls-eyebrow);
}

.quick-card h2 {
  margin: 34px 0 12px;
  font-size: var(--fs-h3);
  line-height: var(--lh-tight);
  letter-spacing: 0;
}

.quick-card p {
  max-width: 360px;
  margin: 0;
  color: var(--pz-muted);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

/* ── Info sections ────────────────────────────────────────── */
.info-section {
  padding: var(--pad-section) var(--pad-gutter);
  background: var(--pz-paper);
  border-bottom: 1px solid var(--pz-line);
}

.info-section.alt {
  background: var(--pz-paper-2);
}

.section-inner {
  width: min(var(--w-content), 100%);
  margin: 0 auto;
}

.section-inner h2 {
  margin: 0;
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: 0;
}

.section-lead {
  max-width: var(--w-prose);
  margin: 18px 0 0;
  color: var(--pz-muted);
  font-size: 18px;
  line-height: var(--lh-normal);
}

.section-note {
  max-width: 780px;
  margin: 22px 0 0;
  color: rgba(244, 241, 232, 0.82);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.text-block {
  color: rgba(244, 241, 232, 0.86);
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  overflow-wrap: anywhere;
}

.text-block p {
  margin: 0 0 14px;
}

.text-block h2 {
  margin: 28px 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.text-block a {
  color: var(--pz-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.requisites strong {
  color: var(--pz-ink);
}

/* ── Price list (hairline grid) ───────────────────────────── */
.price-list {
  display: grid;
  gap: var(--hairline);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--pz-line);
  border-radius: var(--r-md);
  background: var(--pz-line);
}

.price-row {
  display: grid;
  grid-template-columns: 0.65fr 0.55fr 1fr;
  gap: 18px;
  align-items: center;
  min-height: 72px;
  padding: 18px 22px;
  background: var(--pz-surface);
}

.price-row.highlighted {
  background: var(--pz-surface-2);
}

.price-row span,
.price-row strong {
  font-size: 19px;
}

.price-row strong {
  color: var(--pz-lime);
  font-family: var(--font-mono);
}

.price-row em {
  color: var(--pz-muted);
  font-style: normal;
  line-height: 1.35;
}

/* ── Badges ───────────────────────────────────────────────── */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: var(--fw-bold);
  line-height: 1;
}

.badge--lime  { color: var(--pz-lime);  background: rgba(200, 242, 95, 0.12);  border: 1px solid rgba(200, 242, 95, 0.35); }
.badge--cyan  { color: var(--pz-cyan);  background: rgba(84, 215, 214, 0.12);  border: 1px solid rgba(84, 215, 214, 0.35); }
.badge--coral { color: var(--pz-coral); background: rgba(255, 123, 109, 0.12); border: 1px solid rgba(255, 123, 109, 0.35); }

/* ── Legal page ───────────────────────────────────────────── */
.legal-page {
  padding-top: var(--sp-6);
}

.legal-page .two-col {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
}

.legal-page .section-inner h1 {
  max-width: 520px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: var(--lh-tight);
  overflow-wrap: anywhere;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 26px;
  padding: 28px var(--pad-gutter);
  color: var(--pz-muted);
  background: var(--pz-void);
  border-top: 1px solid var(--pz-line);
  font-size: var(--fs-xs);
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 820px) {
  .topbar {
    padding: 14px;
  }

  .hero {
    min-height: 84svh;
    padding: 104px 18px 48px;
    margin-top: -62px;
  }

  .hero-image {
    object-position: 66% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(17, 19, 18, 0.96) 0%, rgba(17, 19, 18, 0.72) 70%, rgba(17, 19, 18, 0.38) 100%),
      linear-gradient(0deg, #111312 0%, rgba(17, 19, 18, 0.18) 45%, rgba(17, 19, 18, 0.22) 100%);
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .quick-card {
    min-height: auto;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .legal-page .two-col {
    grid-template-columns: 1fr;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .topbar {
    justify-content: flex-start;
  }

  .topbar-link {
    display: none;
  }

  .brand span:last-child {
    max-width: 126px;
    overflow-wrap: anywhere;
  }

  .lead {
    max-width: 304px;
    font-size: 18px;
  }

  .primary-action {
    width: min(100%, 320px);
  }
}
