/* ============================================================
   Лендинг: свадебные приглашения с NFC
   Направление: «тихая роскошь» — бумага, олива, терракота
   ============================================================ */

:root {
  --paper: #f7f2e9;
  --paper-2: #efe8db;
  --white: #fffdf8;
  --ink: #1e211d;
  --body: #3a3f38;
  --muted: #6e7268;
  --olive: #3b4a3e;
  --olive-2: #2e3a31;
  --clay: #a8562f;
  --line: #d8cfc0;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;

  --container: 1160px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; }

h1 { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.06; letter-spacing: -.01em; }

.h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin-bottom: var(--s5); }

p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: var(--olive); text-underline-offset: 3px; text-decoration-color: var(--line); }
a:hover { color: var(--clay); }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
  margin-bottom: var(--s3);
}

/* ---------- шапка ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding: var(--s4) clamp(var(--s4), 4vw, var(--s7));
  background: rgba(247,242,233,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.bar__logo {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: .06em;
  color: var(--olive);
  text-decoration: none;
  white-space: nowrap;
}
.bar__logo span { color: var(--clay); }

.bar__nav { display: flex; align-items: center; gap: var(--s5); }

.bar__nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8;
}
.bar__nav a:hover { opacity: 1; color: var(--clay); }

.bar__cta {
  padding: var(--s2) var(--s4);
  border: 1px solid var(--olive);
  color: var(--olive) !important;
  opacity: 1 !important;
  transition: background .2s, color .2s;
}
.bar__cta:hover { background: var(--olive); color: var(--white) !important; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(var(--s5), 6vw, var(--s8));
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(var(--s6), 7vw, var(--s9)) var(--s5);
}

.hero__lead { font-size: 18px; line-height: 1.75; color: var(--body); max-width: 56ch; }

.hero__actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s6); }

.hero__note { margin-top: var(--s4); font-size: 13.5px; color: var(--muted); }

.hero__media { margin: 0; }

.hero__media img { width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }

.hero__media figcaption {
  margin-top: var(--s3);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--muted);
}

/* мокап приглашения в hero */

.mock {
  position: relative;
  aspect-ratio: 4 / 3.2;
  overflow: hidden;
  background: var(--paper-2);
}

.mock__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.75) brightness(.92);
}

.mock__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-2.5deg);
  width: min(64%, 340px);
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #fffdf8, #f3ece0);
  border: 1px solid #e5dccb;
  box-shadow: 0 26px 60px -24px rgba(20,24,20,.55);
  padding: var(--s6) var(--s5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mock__kicker {
  font-size: 9.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: var(--s4);
}

.mock__names {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--s4);
}
.mock__names span { font-size: .62em; font-style: italic; color: var(--clay); }

.mock__date {
  font-size: 10.5px;
  letter-spacing: .26em;
  color: var(--olive);
  margin-bottom: var(--s1);
}

.mock__place {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.mock__seal {
  position: absolute;
  right: 12%;
  bottom: 10%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c06a3e, #8d4322 70%);
  color: #f7e6d3;
  font-family: var(--font-display);
  font-size: 13px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -4px rgba(80,35,15,.6), inset 0 0 0 3px rgba(255,255,255,.08);
}
.mock__seal span { font-size: .8em; }

.mock__nfc {
  position: absolute;
  left: 8%;
  bottom: 12%;
  font-size: 8.5px;
  letter-spacing: .2em;
  color: #b9a893;
  border: 1px solid #d9cdb9;
  padding: 3px 6px;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-block;
  padding: var(--s3) var(--s5);
  border: 1px solid var(--olive);
  color: var(--olive);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s;
}
.btn:hover { background: var(--olive); color: var(--white); }

.btn--solid { background: var(--olive); color: var(--white); }
.btn--solid:hover { background: var(--clay); border-color: var(--clay); color: var(--white); }

/* ---------- полоса цифр ---------- */

.strip {
  background: var(--olive);
  color: var(--white);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
  padding: var(--s6) clamp(var(--s4), 5vw, var(--s8));
}

.strip__item { text-align: center; }
.strip__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
}
.strip__item span {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,253,248,.7);
  margin-top: var(--s1);
}

/* ---------- как работает ---------- */

.how { max-width: var(--container); margin: 0 auto; padding: var(--s9) var(--s5); }

.steps {
  list-style: none;
  margin: var(--s6) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
}

.steps li { border-top: 1px solid var(--line); padding-top: var(--s5); }

.steps__num {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: .12em;
  color: var(--clay);
}

.steps h3 { font-size: 26px; margin: var(--s2) 0 var(--s3); }
.steps p { font-size: 15.5px; color: var(--body); }

/* ---------- две колонки ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s5), 6vw, var(--s8));
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s8) var(--s5);
}

.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.split--reverse .split__media { order: 2; }

.checklist { list-style: none; padding: 0; margin: var(--s5) 0 0; }

.checklist li {
  position: relative;
  padding: var(--s3) 0 var(--s3) var(--s6);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  color: var(--body);
}
.checklist li:last-child { border-bottom: 0; }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 18px;
  height: 1px;
  background: var(--clay);
}

/* ---------- пакеты ---------- */

.prices {
  background: var(--white);
  padding: var(--s9) var(--s5);
}

.prices > .eyebrow, .prices > .h2, .prices__note { max-width: var(--container); margin-left: auto; margin-right: auto; }

.plans {
  max-width: var(--container);
  margin: var(--s6) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
  align-items: stretch;
}

/* гибкие условия */

.flex-pay {
  max-width: var(--container);
  margin: var(--s8) auto 0;
  padding-top: var(--s7);
  border-top: 1px solid var(--line);
}

.flex-pay__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: var(--s5);
}

.flex-pay__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}

.flex-pay__item {
  border-left: 2px solid var(--clay);
  padding-left: var(--s4);
}

.flex-pay__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--olive);
  margin-bottom: var(--s2);
}

.flex-pay__item p { font-size: 15px; color: var(--body); margin: 0; }

.flex-pay__note {
  margin-top: var(--s6);
  font-size: 15px;
  color: var(--muted);
  max-width: 720px;
}

.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: var(--s6);
  position: relative;
}

.plan--featured {
  border-color: var(--olive);
  background: var(--white);
  box-shadow: 0 18px 40px -30px rgba(30,33,29,.5);
}

.plan__badge {
  position: absolute;
  top: -13px;
  left: var(--s6);
  background: var(--clay);
  color: var(--white);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: var(--s1) var(--s3);
}

.plan h3 { font-size: 30px; }

.plan__price {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--olive);
  margin: var(--s2) 0 0;
  line-height: 1.1;
}

.plan__meta {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: var(--s5);
}

.plan ul { list-style: none; padding: 0; margin: 0 0 var(--s6); }

.plan li {
  font-size: 15px;
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--line);
  color: var(--body);
}
.plan li:last-child { border-bottom: 0; }

.plan .btn { margin-top: auto; text-align: center; }

.prices__note {
  margin-top: var(--s6);
  font-size: 14px;
  color: var(--muted);
  max-width: 760px;
}

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 0 auto; padding: var(--s9) var(--s5); }

.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--s4) 0;
}

.faq summary {
  cursor: pointer;
  font-size: 17.5px;
  font-weight: 400;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  color: var(--ink);
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--clay);
  line-height: 1;
  transition: transform .2s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { margin-top: var(--s3); font-size: 15.5px; color: var(--body); max-width: 66ch; }

/* ---------- заявка ---------- */

.order {
  background: var(--olive);
  color: var(--white);
  padding: var(--s9) var(--s5);
}

.order__inner { max-width: 620px; margin: 0 auto; }

.order .eyebrow { color: #e8c9a8; }
.order .h2 { color: var(--white); }
.order__lead { color: rgba(255,253,248,.82); margin-bottom: var(--s6); }

.form .field { margin-bottom: var(--s4); }

.form label {
  display: block;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,253,248,.72);
  margin-bottom: var(--s2);
}

.form input, .form select, .form textarea {
  width: 100%;
  padding: var(--s3);
  background: rgba(255,253,248,.07);
  border: 1px solid rgba(255,253,248,.28);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  border-radius: 0;
}

.form input::placeholder, .form textarea::placeholder { color: rgba(255,253,248,.42); }

.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: #e8c9a8;
  background: rgba(255,253,248,.12);
}

.form select option { color: var(--ink); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }

.form button { margin-top: var(--s3); }

.form__status { margin-top: var(--s4); color: #e8c9a8; min-height: 22px; font-size: 15px; }

.order__direct { margin-top: var(--s5); font-size: 14px; color: rgba(255,253,248,.78); }
.order__direct a { color: #e8c9a8; }

/* ---------- подвал ---------- */

.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  text-align: center;
  padding: var(--s7) var(--s5);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--olive);
  margin-bottom: var(--s2);
}

.footer__meta { font-size: 13px; color: var(--muted); margin-bottom: var(--s2); }

/* ---------- адаптив ---------- */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .steps { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .flex-pay__grid { grid-template-columns: 1fr 1fr; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .strip { grid-template-columns: 1fr 1fr; }
  .plan--featured { box-shadow: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .bar__nav a:not(.bar__cta) { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .hero, .how, .prices, .faq, .order, .split { padding-left: var(--s4); padding-right: var(--s4); }
  .plans, .flex-pay__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
