/* ============================================================
   Lumira landing — editorial / gallery design system.
   Warm paper palette, serif display, real photos as the heroes.
   System fonts only (no web-font fetch = faster + private).
   Shared across index.html and the four feature pages.
   ============================================================ */

:root {
  /* Warm paper palette */
  --paper:      #f7f2ea;
  --paper-2:    #efe6d8;   /* alternating band */
  --paper-3:    #e7dccb;
  --ink:        #221a13;   /* near-black, warm */
  --ink-soft:   #5f5445;   /* muted brown-grey body */
  --ink-faint:  #8a7d6b;
  --line:       rgba(34, 26, 19, 0.14);
  --line-soft:  rgba(34, 26, 19, 0.08);

  /* Accents — sienna / amber, not the old cyan-violet */
  --accent:      #b4530a;
  --accent-deep: #8a3d06;
  --gold:        #c2892f;

  /* Dark tone for photo frames / footer */
  --dark:      #1c1610;
  --dark-2:    #2a2118;

  --frame-shadow: 0 24px 60px -18px rgba(40, 24, 8, 0.45);
  --maxw: 1120px;
  --radius: 6px;   /* editorial = tighter corners than SaaS pills */

  --serif: "Iowan Old Style", "Palatino Linotype", "Palatino", "Georgia",
    "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;

  font-family: var(--sans);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(180, 83, 10, 0.22); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }

/* ---------- Typographic primitives ---------- */
.kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--accent);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; }
.serif { font-family: var(--serif); }
.muted { color: var(--ink-soft); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 650; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  background: var(--accent); color: #fff5ec;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 10px 24px -10px rgba(138, 61, 6, 0.7);
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(138, 61, 6, 0.75); }
.btn .arw { font-size: 1.05em; transform: translateY(1px); }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line); box-shadow: none;
}
.btn-ghost:hover { background: rgba(34,26,19,.05); border-color: var(--ink-soft); transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  font-family: var(--serif); font-weight: 700; font-size: 1.35rem;
  width: 36px; height: 36px; display: grid; place-items: center;
  color: var(--paper); background: var(--dark); border-radius: 8px;
  position: relative;
}
.brand-mark .spark { position: absolute; top: 3px; right: 4px; font-size: .5rem; color: var(--gold); }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: .2px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: .95rem; color: var(--ink-soft); }
.nav a { position: relative; padding: 4px 0; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  font-family: var(--sans); font-size: .85rem; color: var(--ink);
  background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 12px; cursor: pointer;
}
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 6px; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(44px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero-kicker { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.12; letter-spacing: -0.015em;
  max-width: 15ch; text-wrap: balance;
}
.hero .lede {
  color: var(--ink-soft); font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.6; margin: 20px 0 28px; max-width: 34ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { color: var(--ink-faint); font-size: .88rem; margin-top: 18px; }
.hero-note b { color: var(--ink-soft); font-weight: 650; }

/* Small trust row under hero actions */
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; font-size: .85rem; color: var(--ink-soft); }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- Before / After slider ---------- */
.ba {
  position: relative; width: 100%; aspect-ratio: 5 / 4;
  border-radius: var(--radius); overflow: hidden;
  background: var(--dark); user-select: none;
  box-shadow: var(--frame-shadow);
  border: 1px solid rgba(34,26,19,.18);
}
.ba.portrait { aspect-ratio: 4 / 5; }
.ba-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 0 0 50%); will-change: clip-path; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 4; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); z-index: 2; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 42px; height: 42px; transform: translate(-50%,-50%);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23221a13' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 3 12l6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/22px no-repeat;
  border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.4);
}
.ba-tags { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.ba-tag {
  position: absolute; bottom: 14px; font-family: var(--serif); font-style: italic;
  font-size: .8rem; padding: 5px 13px; border-radius: 999px;
  background: rgba(20,16,11,.62); color: #fff; backdrop-filter: blur(3px);
}
.ba-tag-before { right: 14px; }
.ba-tag-after { left: 14px; }
.ba-cap { margin-top: 12px; font-family: var(--serif); font-style: italic; color: var(--ink-faint); font-size: .9rem; text-align: center; }

/* ---------- Section scaffolding ---------- */
section { scroll-margin-top: 84px; }
.band { background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(34px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.9rem); margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 16px; }

/* ---------- Feature gallery (no emoji — real photos) ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 34px); }
.ftile {
  display: block; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ftile:hover { transform: translateY(-4px); box-shadow: 0 22px 46px -24px rgba(40,24,8,.5); border-color: rgba(180,83,10,.4); }
.ftile-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark); }
.ftile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ftile:hover .ftile-media img { transform: scale(1.04); }
.ftile-badge {
  position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--dark);
  background: rgba(247,242,234,.92); padding: 5px 11px; border-radius: 999px;
}
.ftile-body { padding: 22px 24px 26px; }
.ftile-body h3 { font-size: 1.4rem; }
.ftile-body p { color: var(--ink-soft); margin: 9px 0 14px; font-size: .98rem; }
.ftile-link { color: var(--accent); font-weight: 650; font-size: .95rem; display: inline-flex; align-items: center; gap: 6px; }
.ftile:hover .ftile-link .arw { transform: translateX(3px); }
.ftile-link .arw { transition: transform .2s ease; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 4vw, 44px); counter-reset: s; }
.step { position: relative; }
.step-n { font-family: var(--serif); font-size: 3rem; color: var(--gold); line-height: 1; opacity: .55; }
.step h3 { font-size: 1.28rem; margin: 8px 0 8px; }
.step p { color: var(--ink-soft); }

/* ---------- Stylize gallery grid ---------- */
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 20px); }
.style-card { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/5; background: var(--dark); box-shadow: var(--frame-shadow); }
.style-card img { width: 100%; height: 100%; object-fit: cover; }
.style-card figcaption {
  position: absolute; left: 10px; bottom: 10px; font-family: var(--serif); font-style: italic;
  font-size: .85rem; color: #fff; background: rgba(20,16,11,.6); padding: 4px 11px; border-radius: 999px; backdrop-filter: blur(3px);
}

/* ---------- Pricing teaser ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px; text-align: left; }
.plan.featured { border-color: var(--accent); box-shadow: 0 18px 40px -24px rgba(180,83,10,.6); position: relative; }
.plan.featured::before {
  content: "Популярный"; position: absolute; top: -11px; left: 22px;
  font-size: .68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 999px;
}
.plan-name { font-family: var(--serif); font-size: 1.3rem; }
.plan-price { font-size: 2rem; font-family: var(--serif); margin: 6px 0 2px; }
.plan-price small { font-size: .95rem; color: var(--ink-faint); font-family: var(--sans); }
.plan-note { color: var(--ink-soft); font-size: .92rem; margin-top: 6px; }
.pricing-foot { text-align: center; color: var(--ink-faint); font-size: .9rem; margin-top: 22px; }

/* ---------- Privacy ---------- */
.privacy-box {
  background: var(--dark); color: #efe7db; border-radius: 14px;
  padding: clamp(30px, 5vw, 56px); max-width: 820px; margin: 0 auto; text-align: center;
}
.privacy-box .kicker { color: var(--gold); }
.privacy-box h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 12px 0 14px; }
.privacy-box p { color: #cec2b0; max-width: 52ch; margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 1.18rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 1.5rem; color: var(--accent); font-family: var(--sans); transition: transform .2s ease; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--ink-soft); padding-bottom: 22px; max-width: 68ch; }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18ch; margin: 0 auto 12px; }
.cta-final p { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #b8ab97; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: flex-start; padding: 46px clamp(18px,4vw,40px) 40px; }
.site-footer .brand-name { color: #f4ede0; }
.footer-col h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.footer-col a { display: block; color: #c4b7a3; font-size: .92rem; padding: 3px 0; }
.footer-col a:hover { color: #fff; }
.footer-brandcol { max-width: 260px; margin-right: auto; }
.footer-brandcol p { color: #94886f; font-size: .88rem; margin-top: 10px; }
.footer-legal { width: 100%; border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; padding-top: 18px; font-size: .82rem; color: #8a7d68; display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- Feature-page hero variant ---------- */
.fhero { padding: clamp(40px, 6vw, 84px) 0 clamp(30px, 4vw, 56px); }
.fhero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; }
.fhero h1 { font-size: clamp(1.95rem, 4vw, 3.1rem); line-height: 1.13; letter-spacing: -0.015em; max-width: 15ch; text-wrap: balance; }
.fhero .lede { color: var(--ink-soft); font-size: clamp(1rem,1.4vw,1.18rem); line-height: 1.6; margin: 20px 0 26px; max-width: 36ch; }
.checklist { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: rgba(180,83,10,.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23b4530a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center no-repeat;
}

/* Cross-link strip to other features on feature pages */
.morefeatures { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mf { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: border-color .2s, transform .2s; }
.mf:hover { border-color: var(--accent); transform: translateY(-3px); }
.mf img { width: 66px; height: 66px; object-fit: cover; border-radius: 8px; flex: none; }
.mf h4 { font-family: var(--serif); font-size: 1.08rem; }
.mf span { color: var(--ink-soft); font-size: .86rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap, .fhero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero .lede, .fhero .lede { max-width: none; }
  .ba { max-width: 460px; margin: 6px 0; }
  .fhero .ba { margin-inline: 0; }
  .gallery { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .styles { grid-template-columns: repeat(2, 1fr); }
  .morefeatures { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 0;
  }
  .nav.open a { padding: 13px clamp(18px,4vw,40px); border-top: 1px solid var(--line-soft); }
  .menu-btn { display: inline-flex; margin-left: auto; }
  .header-actions .btn { display: none; }
  .plans { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
