:root {
  --gold: #d4af6a;
  --gold-bright: #f2d99a;
  --ink: #07080a;
  --navy: #0f1720;
  --paper: #f4ead9;
  --card-bg: #131c26;
  --rule: rgba(212,175,106,0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Montserrat', sans-serif;
}

a { text-decoration: none; }

/* ---------- hero: кроссфейд между двумя картинами ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg { position: absolute; inset: 0; }

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2.4s ease-in-out;
}

.hero-img.active { opacity: 1; }

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,8,10,0.55) 0%, rgba(7,8,10,0.35) 40%, rgba(7,8,10,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 0 6vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.hero-accent {
  font-family: 'Marck Script', cursive;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--gold-bright);
  text-shadow: 0 0 30px rgba(212,175,106,0.35), 0 2px 20px rgba(0,0,0,0.6);
}

.hero-accent.small { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 6px; }

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: #d8ccb8;
}

.btn-primary {
  margin-top: 10px;
  display: inline-block;
  padding: 13px 32px;
  border: none;
  border-radius: 3px;
  background: var(--gold);
  color: #1c1204;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }

.scroll-hint {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(244,234,217,0.6);
  z-index: 2;
}

.scroll-hint-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(244,234,217,0.6), transparent);
  animation: hint-pulse 1.8s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.8; }
  50% { transform: scaleY(0.6); opacity: 0.3; }
}

/* ---------- карты ---------- */

.cards {
  padding: 100px 6vw 60px;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 500;
}

.section-sub {
  margin-top: 10px;
  color: #8a94a1;
  font-size: 0.95rem;
  font-style: italic;
}

.cards-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  text-align: left;
}

.card-tile {
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-tile.in-view { opacity: 1; transform: translateY(0); }

.card-photo {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1c2733, #0c141c);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-photo img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }

.card-photo.placeholder {
  color: #4a5666;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px dashed #2a3644;
}

.card-name {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
}

.badge-family { color: #8fadd6; }
.badge-biz { color: var(--gold-bright); }
.badge-archived { color: #6a7480; }

.group-title {
  margin-top: 60px;
  margin-bottom: -14px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--gold-bright);
}

.group-sub { margin-top: 6px; margin-bottom: -6px; color: #5a6472; font-size: 0.85rem; font-style: italic; }

.cards-grid-archive .card-tile { opacity: 0.7; }

.card-more {
  margin-top: 4px;
}

.card-more summary {
  cursor: pointer;
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  list-style: none;
}

.card-more summary::-webkit-details-marker { display: none; }
.card-more summary::after { content: " ▾"; }
.card-more[open] summary::after { content: " ▴"; }

.card-more ul {
  margin-top: 10px;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #b7c0cb;
  font-size: 0.85rem;
  line-height: 1.5;
}

.card-perk {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 10px;
  font-size: 0.9rem;
}

.card-perk .fee { color: var(--gold-bright); font-weight: 600; }
.card-perk .tag { color: #7c8794; font-style: italic; }

.card-desc { color: #b7c0cb; font-size: 0.9rem; line-height: 1.5; }

.btn-secondary {
  margin-top: 8px;
  align-self: flex-start;
  padding: 9px 20px;
  border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--paper);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4); }

/* ---------- реестр остальных карт ---------- */

.ledger {
  padding: 30px 6vw 90px;
  max-width: 980px;
  margin: 0 auto;
}

.ledger-intro {
  max-width: 62ch;
  color: #8a94a1;
  font-size: 0.95rem;
  line-height: 1.6;
}

.ledger-intro b { color: var(--paper); font-weight: 600; }

.ledger-group { margin-top: 52px; }

.ledger-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}

.ledger-group-head h3 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--gold-bright);
}

.ledger-count {
  font-size: 0.78rem;
  color: #5a6472;
  white-space: nowrap;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.ledger-row:last-child { border-bottom: none; }

.ledger-name {
  font-family: 'Fraunces', serif;
  font-size: 1.02rem;
  color: var(--paper);
  flex: 0 1 auto;
}

.ledger-perk {
  font-size: 0.84rem;
  color: #8a94a1;
  text-align: right;
  flex: 1 1 auto;
}

@media (max-width: 640px) {
  .ledger-row { flex-direction: column; gap: 4px; }
  .ledger-perk { text-align: left; }
}

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

.apply {
  text-align: center;
  padding: 100px 6vw 120px;
  background: radial-gradient(ellipse at center, rgba(212,175,106,0.10), transparent 70%);
}

.apply .section-title { margin-top: 10px; }
.apply .section-sub { margin: 10px auto 0; max-width: 48ch; }

.apply-form {
  margin: 44px auto 0;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.apply-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: #b7c0cb;
}

.apply-form .optional {
  color: #5a6472;
  font-style: italic;
  font-weight: 400;
}

.apply-form input,
.apply-form select {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  color: var(--paper);
  background: var(--card-bg);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 3px;
  padding: 12px 14px;
}

.apply-form input:focus,
.apply-form select:focus {
  outline: none;
  border-color: var(--gold);
}

.apply-form .btn-primary { align-self: center; margin-top: 10px; min-width: 200px; }

.apply-status {
  min-height: 1.2em;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gold-bright);
}

footer {
  padding: 30px 6vw;
  text-align: center;
  color: #5a6472;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
