/* Müştəri səhifəsi — "split stage": sabit foto + sakit oxu sütunu */

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/intertight-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/intertight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #dfdedb;
  --surface: #d3d2ce;
  --surface-2: #c7c6c1;
  --paper: #f1f0ec;
  --ink: #26251e;
  --muted: #5f5d55;
  --accent: #2456d6;
  --accent-ink: #ffffff;
  --danger: #a3311f;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.5rem + 1.4vw, 2.75rem);
  --step-display: clamp(2.5rem, 1.4rem + 3.4vw, 4.25rem);

  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 999px; /* tək düymə forması: tam yumru */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 450; letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-size: var(--step-head); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.hidden { display: none !important; }

/* ---------- Düymələr ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.5rem; border-radius: var(--r);
  border: 0; cursor: pointer; text-decoration: none; font-weight: 500;
  transition: transform .18s var(--ease), background-color .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-fill { background: var(--accent); color: var(--accent-ink); }
.btn-fill:hover { background: #1b47b8; }
.btn-fill:disabled { background: var(--surface-2); color: var(--ink); cursor: not-allowed; transform: none; }
.btn-line { background: var(--surface); color: var(--ink); }
.btn-line:hover { background: var(--surface-2); }
.btn-small { min-height: 40px; padding: 0 1.1rem; }
.btn-wide { width: 100%; min-height: 56px; font-size: var(--step-body); }

/* ---------- Səhifə skeleti ---------- */
.page { display: grid; grid-template-columns: 45fr 55fr; }

.stage { position: sticky; top: 0; height: 100svh; padding: 20px 0 20px 20px; }
.stage-frame { position: relative; height: 100%; overflow: hidden; background: var(--surface); }
.stage-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.1s var(--ease);
  animation: drift 40s ease-in-out infinite alternate;
}
.stage-img.is-on { opacity: 1; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.07) translateY(-1.5%); } }

.col { padding: 0 var(--pad) 0; min-width: 0; }

/* ---------- Üst zolaq ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 28px 0; position: sticky; top: 0; z-index: 5; background: var(--bg);
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.logo { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.mono {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--ink); color: var(--paper);
  font-weight: 500; font-size: 1.05rem; letter-spacing: 0;
}
.brand-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; color: var(--muted); transition: color .18s var(--ease); }
.nav a:not(.btn):hover { color: var(--ink); }

/* ---------- Giriş ---------- */
.intro { padding: clamp(48px, 9vh, 120px) 0 clamp(56px, 8vh, 96px); max-width: 34em; }
.name { font-size: var(--step-display); letter-spacing: -0.04em; line-height: 1; }
.lead { font-size: var(--step-lead); line-height: 1.35; margin-top: 1.4rem; max-width: 26em; }
.facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin: 2.4rem 0 0; }
.facts div { display: grid; gap: .15rem; }
.facts dt { color: var(--muted); font-size: var(--step-small); }
.facts dd { margin: 0; font-weight: 500; }

/* ---------- Təqvim ---------- */
.booking { background: var(--paper); margin: 0 calc(var(--pad) * -1); padding: clamp(40px, 6vw, 72px) var(--pad); }
.cal-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.cal-nav { display: flex; align-items: center; gap: .5rem; }
.cal-month { font-size: var(--step-lead); margin-right: .75rem; text-transform: capitalize; }
.round {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--surface); color: var(--ink);
  transition: background-color .18s var(--ease), transform .18s var(--ease), opacity .18s;
}
.round:hover:not(:disabled) { background: var(--surface-2); }
.round:active:not(:disabled) { transform: scale(.92); }
.round:disabled { opacity: .35; cursor: not-allowed; }

.cal { width: 100%; border-collapse: separate; border-spacing: 6px; margin: 0 -6px; table-layout: fixed; width: calc(100% + 12px); }
.cal th { font-size: var(--step-small); font-weight: 400; color: var(--muted); text-align: left; padding: 0 0 2px 12px; }
.cal td { padding: 0; vertical-align: top; }

.day {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  width: 100%; height: clamp(76px, 7.4vw, 112px); padding: 10px 12px; text-align: left;
  border: 0; background: var(--bg); cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.day .num { font-size: var(--step-lead); line-height: 1; letter-spacing: -0.03em; }
.day .meta { font-size: var(--step-small); color: var(--muted); line-height: 1.2; }
.day .dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 5px; }
.day .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.day:hover:not(:disabled):not(.on) { background: var(--surface); }
.day:active:not(:disabled) { transform: scale(.96); }
.day.today .num { color: var(--accent); }
.day.full .dots i { background: var(--surface-2); }
.day:disabled { background: transparent; cursor: default; }
.day:disabled .num, .day:disabled .meta { color: #6e6c64; }
.day.on { background: var(--ink); color: var(--paper); }
.day.on .meta { color: #c9c7bf; }
.day.on .dots i { background: var(--paper); }
.day.on.today .num { color: var(--paper); }
.day.blank { visibility: hidden; }

/* ---------- Saatlar ---------- */
.times { margin-top: 2.25rem; min-height: 5rem; }
.times-note { color: var(--muted); }
.tgroup { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem 1rem; align-items: start; padding: .6rem 0; }
.tgroup h3 { font-size: var(--step-body); font-weight: 450; color: var(--muted); padding-top: .55rem; }
.tlist { display: flex; flex-wrap: wrap; gap: 8px; }
.time {
  min-width: 5.25rem; min-height: 44px; padding: 0 1rem; border-radius: var(--r); border: 0;
  background: var(--surface); cursor: pointer; font-weight: 500;
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.time:hover:not(:disabled):not(.on) { background: var(--surface-2); }
.time:active:not(:disabled) { transform: scale(.95); }
.time:disabled { background: transparent; color: #6e6c64; text-decoration: line-through; cursor: not-allowed; }
.time.on { background: var(--accent); color: #fff; }

/* ---------- Forma ---------- */
.form { margin-top: 2.5rem; display: grid; gap: 1.1rem; }
.chosen { font-size: var(--step-lead); line-height: 1.3; color: var(--muted); }
.chosen.set { color: var(--ink); }
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .4rem; }
.field span { font-size: var(--step-small); color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 2px solid var(--surface-2); background: var(--bg);
  padding: .8rem .9rem; border-radius: 0; outline: none;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--accent); background: #fff; }
.field textarea { resize: vertical; min-height: 92px; }
.error { color: var(--danger); min-height: 1.4em; font-size: var(--step-small); }

.done { display: grid; gap: 1.25rem; justify-items: start; padding: 1rem 0; outline: none; }
.done-when { font-size: var(--step-lead); color: var(--accent); }

/* ---------- Xatırlatma cədvəli (slip) ---------- */
.how {
  background: var(--ink); color: var(--paper);
  margin: 0 calc(var(--pad) * -1); padding: clamp(64px, 9vw, 120px) var(--pad);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2.5rem; align-items: start;
}
.how-text p { margin-top: 1.25rem; color: #cfcdc5; max-width: 30ch; }
.slip {
  background: var(--paper); color: var(--ink); padding: 28px 28px 44px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), 96% 100%, 92% calc(100% - 12px), 88% 100%, 84% calc(100% - 12px), 80% 100%, 76% calc(100% - 12px), 72% 100%, 68% calc(100% - 12px), 64% 100%, 60% calc(100% - 12px), 56% 100%, 52% calc(100% - 12px), 48% 100%, 44% calc(100% - 12px), 40% 100%, 36% calc(100% - 12px), 32% 100%, 28% calc(100% - 12px), 24% 100%, 20% calc(100% - 12px), 16% 100%, 12% calc(100% - 12px), 8% 100%, 4% calc(100% - 12px), 0 100%);
}
.slip-title { font-weight: 500; margin-bottom: .25rem; }
.slip-sub { color: var(--muted); font-size: var(--step-small); }
.slip h3 { font-size: var(--step-body); font-weight: 600; margin-top: 24px; }
.slip h3:first-of-type { margin-top: 18px; }
.row { display: flex; align-items: baseline; gap: .5rem; margin-top: .35rem; }
.row .lead-dots { flex: 1 1 0; width: 0; min-width: 1.5rem; overflow: hidden; white-space: nowrap; color: #9a988f; letter-spacing: .25em; }
.row .lead-dots::after { content: "··································································································"; }
.row .v { white-space: nowrap; }
.slip .end {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
  background: var(--ink); color: var(--paper); min-height: 44px; padding: .5rem 1rem;
  margin: 24px -28px 0; font-weight: 500;
}
.slip.flash { animation: flash .6s var(--ease); }
@keyframes flash { from { transform: translateY(6px); opacity: .5; } to { transform: none; opacity: 1; } }

/* ---------- Məktub ---------- */
.letter { padding: clamp(96px, 14vh, 168px) 0; max-width: 33em; }
.portrait { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.mono-lg { display: grid; place-items: center; background: var(--surface); font-weight: 500; }
.letter-body { margin-top: 28px; display: grid; gap: 1.1em; line-height: 1.6; }
.sign { margin-top: 2rem; display: grid; }
.sign span { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; }
.sign small { font-size: var(--step-small); color: var(--muted); }

/* ---------- Suallar ---------- */
.faq { background: var(--surface); margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) clamp(72px, 10vw, 120px); }
.faq-pics { position: relative; margin: 0 0 clamp(56px, 7vw, 88px) auto; width: 78%; padding-bottom: 44px; }
.faq-tall { height: auto; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.faq-small { height: auto; position: absolute; left: -22%; bottom: 0; width: 36%; aspect-ratio: 1; object-fit: cover; border: 0; }
.faq-facts { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .3rem; }
.faq-facts b { font-weight: 500; }
.faq-list { display: grid; gap: 4px; margin-bottom: 2.5rem; }
.faq-list details { background: var(--bg); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; min-height: 44px; transition: background-color .18s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--paper); }
.chev { width: 12px; height: 12px; flex: none; position: relative; transition: transform .25s var(--ease); }
.chev::before, .chev::after { content: ""; position: absolute; top: 5px; width: 8px; height: 2px; background: currentColor; }
.chev::before { left: 0; transform: rotate(45deg); }
.chev::after { right: 0; transform: rotate(-45deg); }
details[open] .chev { transform: rotate(180deg); }
.faq-list .ans { padding: 0 1.25rem 1.25rem; color: var(--muted); max-width: 40em; }

/* ---------- Footer: son foto ---------- */
.foot { position: relative; height: 100svh; min-height: 560px; color: var(--paper); overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.foot-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.62); z-index: -1; }
.foot { isolation: isolate; }
.foot-top { display: flex; justify-content: space-between; gap: 2rem; padding: 32px var(--pad); flex-wrap: wrap; }
.foot-top nav { display: grid; gap: .3rem; }
.foot-top a { text-decoration: none; opacity: .9; transition: opacity .18s; }
.foot-top a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot-contact { display: grid; gap: .3rem; text-align: right; max-width: 22em; }
.foot-bottom { padding: 0 var(--pad) 32px; }
.wordmark {
  font-size: clamp(3rem, 11vw, 12rem); line-height: .9; letter-spacing: -0.05em; font-weight: 450;
  white-space: nowrap; transform-origin: left bottom;
}
.credit { font-size: var(--step-small); opacity: .8; margin-top: 1.25rem; }

/* ---------- Hərəkət ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

@supports (animation-timeline: view()) {
  .wordmark { animation: grow linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
  @keyframes grow { from { transform: scale(.93); } to { transform: scale(1); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-img, .wordmark, .slip.flash { animation: none !important; }
  .js .rv { transform: none; transition: opacity .3s linear; }
  .btn, .day, .time, .round { transition: none; }
}

/* ---------- Telefon / planşet ---------- */
@media (max-width: 960px) {
  .page { grid-template-columns: 1fr; }
  .stage { position: relative; height: 56svh; padding: 12px 12px 0; }
  .bar { position: absolute; top: 0; left: 0; right: 0; padding: 22px 24px; background: transparent; color: #fff; }
  .bar .nav a:not(.btn) { display: none; }
  .brand { background: var(--paper); color: var(--ink); padding: 5px 16px 5px 5px; border-radius: 999px; }
  .logo { height: 36px; }
  .mono { width: 36px; height: 36px; }
  .intro { padding-top: 40px; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .faq-pics { width: 100%; }
  .faq-small { left: auto; right: 0; bottom: 0; width: 38%; }
  .faq-tall { aspect-ratio: 4 / 5; width: 88%; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .cal { border-spacing: 3px; margin: 0 -3px; width: calc(100% + 6px); }
  .cal th { padding-left: 6px; }
  .day { padding: 7px 6px; height: 68px; }
  .day .num { font-size: 1.25rem; }
  .day .dots { gap: 2px; }
  .day .dots i { width: 5px; height: 5px; }
  .tgroup { grid-template-columns: 1fr; gap: .35rem; }
  .tgroup h3 { padding-top: 0; }
  .slip { padding: 22px 20px 40px; }
  .slip .end { margin: 20px -20px 0; }
  .foot { height: 88svh; }
  .foot-contact { text-align: left; }
  .brand-name { display: none; }
  .brand { padding: 5px; }
  .wordmark { white-space: normal; font-size: 13vw; line-height: .95; }
}
