/* Marzhan AI Studio — інжу, маржан, терең теңіз */

:root {
  --pearl: #f2f0f4;
  --nacre: #e5dfea;
  --coral: #d6384f;
  --coral-deep: #b32a40;
  --sea: #10323d;
  --ink: #1e1c24;
  --muted: #625e6c;
  --line: #d5cfdb;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Onest", "Segoe UI", system-ui, sans-serif;

  /* типографиялық шкала */
  --step-0: 1.0625rem;
  --step-1: 1.375rem;
  --step-2: 2rem;
  --step-3: clamp(2.25rem, 4.5vw, 3.5rem);
  --step-4: clamp(4.5rem, 16vw, 12.5rem);

  --space: clamp(4.5rem, 10vw, 8.5rem);
}

@property --sheen {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--pearl);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.05; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; margin-bottom: 2.5rem; max-width: 18ch; }
p { max-width: 62ch; }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

/* Батырмалар */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.75rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: var(--coral-deep); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--pearl); }
.btn-small { min-height: 2.5rem; padding: 0 1.1rem; font-size: .9375rem; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(242, 240, 244, .88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.wordmark {
  font-family: var(--serif); font-size: 1.625rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.wordmark span { font-family: var(--sans); font-size: .8125rem; font-weight: 500; color: var(--muted); margin-left: .2rem; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .9375rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem) var(--space); overflow: hidden; }
.hero-inner { position: relative; display: grid; }

.pearl-stage {
  position: absolute; right: -2%; top: 50%;
  width: min(34rem, 62vw); aspect-ratio: 1;
  transform: translateY(-58%);
}
.pearl {
  width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle at var(--x, 34%) var(--y, 28%), #fff 0 5%, rgba(255,255,255,.75) 11%, rgba(255,255,255,0) 32%),
    radial-gradient(circle at 72% 78%, rgba(214, 56, 79, .16), rgba(214, 56, 79, 0) 46%),
    conic-gradient(from var(--sheen) at 50% 50%, #efe7f4, #e3eff0, #f6e6ec, #ebe5f6, #e9f1ec, #efe7f4);
  box-shadow:
    inset -2.5rem -3rem 5rem rgba(16, 50, 61, .2),
    inset 1.5rem 1.5rem 4rem rgba(255, 255, 255, .85),
    0 3rem 5rem -2.5rem rgba(16, 50, 61, .45);
  animation: sheen 14s linear infinite, rise 1.4s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes sheen { to { --sheen: 360deg; } }
@keyframes rise { from { opacity: 0; transform: scale(.92) translateY(2rem); } }

.hero-title { position: relative; margin-top: clamp(2rem, 7vw, 5rem); }
.hero-name {
  display: block;
  font-size: var(--step-4); font-weight: 500; line-height: .82;
  letter-spacing: -0.035em;
  animation: fade 1s .25s both;
}
.hero-sub {
  display: block; margin-top: 1rem; margin-left: .35em;
  font-family: var(--sans); font-size: var(--step-1); font-weight: 500; letter-spacing: .02em;
  color: var(--sea);
  animation: fade 1s .45s both;
}
.hero-text {
  position: relative; max-width: 34ch; margin-top: 2.25rem;
  font-size: var(--step-1); line-height: 1.45;
  animation: fade 1s .6s both;
}
.hero-actions {
  position: relative; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem;
  animation: fade 1s .75s both;
}
@keyframes fade { from { opacity: 0; transform: translateY(.75rem); } }

/* Services */
.services { padding-block: var(--space); }
.service {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) minmax(0, 3fr);
  gap: 2rem; align-items: baseline;
  padding-block: 2.25rem; border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
.service h3 { font-size: var(--step-2); font-weight: 500; }
.service p { color: var(--muted); }
.service dl { display: grid; gap: .5rem; }
.service dl div { display: flex; justify-content: space-between; gap: 1rem; }
.service dt { color: var(--muted); font-size: .9375rem; }
.service dd { font-weight: 600; white-space: nowrap; }

/* Invitation demo */
.invite-demo { background: var(--nacre); padding-block: var(--space); }
.invite-inner { display: grid; grid-template-columns: 1fr auto; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.invite-copy p { color: var(--muted); margin-bottom: 2rem; }

.phone {
  width: 19rem; padding: .75rem;
  border-radius: 2.75rem; background: var(--ink);
  box-shadow: 0 2.5rem 4rem -1.5rem rgba(16, 50, 61, .5);
}
.phone-screen { border-radius: 2.1rem; overflow: hidden; background: var(--sea); }
.card {
  margin: .75rem; padding: 2rem 1.25rem 1.5rem;
  border-radius: 1.5rem;
  background: var(--pearl);
  text-align: center;
  border: 1px solid rgba(214, 56, 79, .35);
  outline: 1px solid rgba(214, 56, 79, .35); outline-offset: -7px;
}
.card-lead { font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
.card-text { font-size: .8125rem; color: var(--muted); margin: .4rem auto 1rem; max-width: 22ch; }
.card-names { font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--sea); }
.card-names em { font-size: 1.25rem; color: var(--coral); }
.card-date { margin-top: 1.1rem; font-weight: 600; font-size: .9375rem; }
.card-place { font-size: .8125rem; color: var(--muted); margin-inline: auto; }
.countdown { display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.countdown div { min-width: 3.75rem; padding: .5rem .25rem; border-radius: .75rem; background: var(--nacre); }
.countdown b { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .6875rem; color: var(--muted); }
.rsvp { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1.25rem; }
.rsvp button {
  min-height: 2.5rem; border-radius: 999px; cursor: pointer;
  font: 600 .8125rem/1 var(--sans);
  border: 1.5px solid var(--sea); background: transparent; color: var(--sea);
  transition: background-color .2s, color .2s;
}
.rsvp button[aria-pressed="true"] { background: var(--sea); color: var(--pearl); }
.rsvp-result { min-height: 1.4em; margin: .75rem auto 0; font-size: .8125rem; color: var(--coral-deep); }

/* Works */
.works { padding-block: var(--space); }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.work { position: relative; }
.work img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 1rem; background: var(--nacre);
}
.work-tall { grid-row: span 2; }
.work-tall img { aspect-ratio: auto; height: calc(100% - 4.5rem); }
.work-wide { grid-column: span 2; }
.work-wide img { aspect-ratio: 16 / 7; }
.work figcaption { padding-top: .8rem; color: var(--muted); font-size: .9375rem; }
.work figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* Process */
.process { background: var(--sea); color: var(--pearl); padding-block: var(--space); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: 1rem;
  font-family: var(--serif); font-size: 4rem; line-height: 1; color: #f19aa7;
}
.steps h3 { font-size: var(--step-1); margin-bottom: .5rem; }
.steps p { color: #b9c9ce; font-size: 1rem; }

/* Reviews */
.reviews { padding-block: var(--space); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
blockquote p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; }
blockquote footer { margin-top: 1rem; color: var(--muted); font-size: .9375rem; }

/* Contact */
.contact { background: var(--nacre); padding-block: var(--space); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
.contact-copy p { color: var(--muted); }
.links { list-style: none; padding: 0; margin-top: 2rem; display: grid; gap: .75rem; }
.links a { text-decoration-color: var(--coral); text-underline-offset: .25em; }
.links a:hover { color: var(--coral-deep); }

.form { display: grid; gap: 1.25rem; align-content: start; }
.form label { display: grid; gap: .4rem; font-size: .9375rem; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%; padding: .85rem 1rem;
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--pearl); border: 1.5px solid var(--line); border-radius: .75rem;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--sea); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }

/* Footer */
.footer { padding-block: 2rem; color: var(--muted); font-size: .9375rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer .wordmark { font-size: 1.25rem; color: var(--ink); }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .pearl-stage { width: 70vw; right: -18%; top: 38%; opacity: .9; }
  .service { grid-template-columns: 1fr; gap: .75rem; }
  .service dl { grid-template-columns: auto auto; justify-content: start; gap: 2rem; margin-top: .5rem; }
  .service dl div { flex-direction: column; gap: 0; }
  .invite-inner, .contact-inner { grid-template-columns: 1fr; }
  .phone { justify-self: center; }
  .works-grid { grid-template-columns: 1fr 1fr; }
  .work-tall { grid-row: auto; }
  .work-tall img { aspect-ratio: 4 / 3; height: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .works-grid { grid-template-columns: 1fr; }
  .work-wide { grid-column: auto; }
  .work-wide img { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
  .phone { width: min(19rem, 100%); }
  .hero-text { font-size: 1.1875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
