/* Manifique Bridal — minimal landing */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --ink: #111111;
  --muted: #5c5c59;
  --faint: #8a8a86;
  --line: #e6e6e2;
  --line-strong: #111111;
  --accent: #7a7166;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, iframe { max-width: 100%; }
img { height: auto; display: block; }
body { overflow-x: hidden; }
.contacts-grid, .contact-list, .map-wrap, .about-grid, .catalog-grid, .wrap { min-width: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }

.wrap { width: min(var(--max), calc(100% - var(--pad) * 2)); margin-inline: auto; }

/* typography helpers */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; color: var(--muted); max-width: 38rem; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.logo img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.logo-text span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.15rem;
}
.nav { display: none; align-items: center; gap: 1.75rem; }
.nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}
.nav a:hover { color: var(--ink); }
.header-cta { display: none; }
.menu-toggle {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-toggle span { display: block; width: 20px; height: 1px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }
.header.is-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
.header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 39;
  padding: 2rem var(--pad);
  flex-direction: column;
  gap: 1.25rem;
}
.header.is-open .mobile-nav { display: flex; }
.mobile-nav a {
  font-family: var(--serif);
  font-size: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.75rem;
}
.mobile-nav .btn { margin-top: 1rem; }

@media (min-width: 980px) {
  .nav { display: flex; }
  .header-cta { display: inline-flex; min-height: 2.6rem; padding: 0.55rem 1.1rem; font-size: 0.7rem; }
  .menu-toggle { display: none; }
}

/* hero */
.hero {
  display: grid;
  min-height: calc(100svh - var(--header-h));
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 6rem) var(--pad);
  background: var(--bg);
}
.hero-copy .eyebrow { margin-bottom: 1.25rem; }
.hero h1 {
  font-size: clamp(3.4rem, 10vw, 7.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.92;
}
.hero h1 em { font-style: italic; font-weight: 400; display: block; }
.hero-lead {
  margin: 1.75rem 0 2.25rem;
  max-width: 26rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero-meta {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-photo { min-height: 70vw; background: var(--bg-soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 70vw; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 0.92fr 1.08fr; min-height: calc(100svh - var(--header-h)); }
  .hero-photo { min-height: 100%; }
  .hero-photo img { min-height: calc(100svh - var(--header-h)); }
}

/* sections */
.section { padding: clamp(4.5rem, 10vw, 8.5rem) 0; }
.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  max-width: 40rem;
}
.section-head h2 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
.section-soft { background: var(--bg-soft); }

/* about */
.about-grid {
  display: grid;
  gap: 3rem;
}
.about-text p { color: var(--muted); margin: 0 0 1.1rem; max-width: 38rem; }
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.5rem;
}
.fact { background: var(--bg); padding: 1.35rem 1.2rem; }
.fact strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.fact span { color: var(--muted); font-size: 0.92rem; }
.about-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.about-mosaic figure { margin: 0; overflow: hidden; background: #eee; }
.about-mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }
.about-mosaic figure:first-child { grid-row: span 2; }
.about-mosaic figure:first-child img { aspect-ratio: auto; height: 100%; min-height: 100%; }

@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; }
  .facts { grid-template-columns: 1fr 1fr; }
}

/* catalog */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.25rem 1.5rem;
}
@media (min-width: 680px) {
  .catalog-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem 1.75rem; }
}
.card {
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  background: none;
  padding: 0;
  width: 100%;
}
.card-photo {
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 3/4;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card-photo img { transform: scale(1.03); }
.card-count {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(17,17,17,.55);
  padding: 0.28rem 0.5rem;
  backdrop-filter: blur(6px);
}
.card-body { padding: 1.1rem 0.1rem 0; }
.card-body h3 {
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  margin-bottom: 0.25rem;
}
.card-tag { color: var(--muted); font-size: 0.92rem; margin-bottom: 0.85rem; }
.card-prices { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: baseline; }
.price-block { display: flex; flex-direction: column; gap: 0.1rem; }
.price-label { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.price-line { display: flex; align-items: baseline; gap: 0.55rem; flex-wrap: wrap; }
.price-now { font-family: var(--serif); font-size: 1.4rem; }
.price-old {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: #6a6a66;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.card-size { margin-top: 0.65rem; font-size: 0.85rem; color: var(--muted); }

/* process */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.step-n {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  width: 2.2rem;
}
.step h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.step p { margin: 0; color: var(--muted); max-width: 36rem; }
@media (min-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; border-top: 0; column-gap: 4rem; }
  .step { border-top: 1px solid var(--line); }
  .steps .step:nth-child(1), .steps .step:nth-child(2) { border-top: 1px solid var(--line); }
}

/* terms */
.terms {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.term {
  display: grid;
  gap: 0.35rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}
.term h3 { font-size: 1.5rem; }
.term p { margin: 0; color: var(--muted); }
@media (min-width: 800px) {
  .term { grid-template-columns: 14rem 1fr; gap: 2rem; align-items: baseline; }
}

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1.35rem 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
}
.faq-item button::after {
  content: "";
  width: 12px; height: 12px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
  margin-top: -6px;
}
.faq-item.is-open button::after { transform: rotate(225deg); margin-top: 4px; }
.faq-panel { display: none; padding: 0 0 1.4rem; color: var(--muted); max-width: 40rem; }
.faq-item.is-open .faq-panel { display: block; }

/* contacts */
.contacts-grid {
  display: grid;
  gap: 2.5rem;
}
.contact-list { display: grid; gap: 1.5rem; }
.contact-list h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; color: var(--accent); margin-bottom: 0.4rem; }
.contact-list p, .contact-list a { font-family: var(--serif); font-size: 1.55rem; line-height: 1.3; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin-top: 0.5rem; }
.channels .btn { padding-inline: 0.65rem; letter-spacing: 0.08em; }
.map-wrap {
  background: var(--bg-soft);
  min-height: 320px;
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 360px; border: 0; filter: grayscale(1) contrast(1.05); }
.map-note { margin-top: 0.75rem; font-size: 0.9rem; color: var(--muted); }
.map-note a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .contacts-grid { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
  .map-wrap, .map-wrap iframe { min-height: 480px; }
}

/* footer */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }

/* dialogs */
.dialog-backdrop { border: 0; padding: 0; background: transparent; }
.dialog-backdrop::backdrop { background: rgba(17,17,17,.55); }
.sheet {
  width: min(420px, calc(100vw - 2rem));
  margin: auto;
  background: #fff;
  padding: 2rem 1.6rem 1.6rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.sheet h2 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.sheet p { color: var(--muted); margin: 0 0 1.5rem; }
.sheet-close {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 40px; height: 40px;
  font-size: 1.4rem;
  color: var(--muted);
}
.sheet { position: relative; }
.sheet-channels { display: grid; gap: 0.55rem; }

/* lightbox */
.lightbox {
  border: 0;
  padding: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: rgba(10,10,10,.96);
  color: #fff;
}
.lightbox::backdrop { background: #000; }
.lb-inner {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0.75rem 0.75rem 1.1rem;
}
.lb-top, .lb-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0.5rem;
}
.lb-title { font-family: var(--serif); font-size: 1.6rem; }
.lb-prices { font-size: 0.9rem; color: #cfcfcf; }
.lb-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.lb-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: 0.5rem; }
.lb-next { right: 0.5rem; }
.lb-close { color: #fff; font-size: 1.6rem; width: 44px; height: 44px; }
.lb-counter { color: #aaa; font-size: 0.8rem; letter-spacing: 0.12em; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* a11y */
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: 0.5rem 1rem; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card-photo img { transition: none; }
}

/* hero: visible SEO subtitle inside h1 */
.hero h1 .hero-subtitle {
  display: block;
  margin-top: 1.1rem;
  max-width: 17em;
  text-wrap: balance;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 400;
  font-style: normal;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--accent);
}
/* cross-link to manifique.ru: shown in the desktop header only where it fits */
.nav .nav-ext { display: none; }
@media (min-width: 1240px) { .nav .nav-ext { display: inline; } }
/* fix: backdrop-filter made the header the containing block of the fixed mobile menu (menu rendered transparent) */
.header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
