:root {
  --ink: #2b2521;
  --ink-soft: #6b6058;
  --paper: #fbf7f2;
  --paper-alt: #f3ece2;
  --accent: #b98a5e;
  --accent-dark: #8a6440;
  --line: #e7dcd0;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(43, 37, 33, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0 0 0.5em;
  color: var(--ink);
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1em; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}

.logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.5px;
}

.logo span { color: var(--accent-dark); }

.nav-cta {
  background: var(--accent-dark);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none !important;
}
.nav-cta:hover { background: var(--ink); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 0 48px;
}

/* Тонкий botanical-мотив по углам hero — декоративный, ничего не грузит извне */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.14;
  pointer-events: none;
  color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M10 190 C 40 150, 30 100, 60 60 C 80 35, 110 25, 140 15' fill='none' stroke='currentColor' stroke-width='2'/%3E%3Cpath d='M45 130 C 55 120, 70 122, 75 110' fill='none' stroke='currentColor' stroke-width='1.5'/%3E%3Cellipse cx='78' cy='102' rx='10' ry='5' transform='rotate(-40 78 102)' fill='currentColor'/%3E%3Cpath d='M65 95 C 72 88, 85 90, 90 80' fill='none' stroke='currentColor' stroke-width='1.5'/%3E%3Cellipse cx='93' cy='74' rx='9' ry='4.5' transform='rotate(-35 93 74)' fill='currentColor'/%3E%3Cpath d='M100 60 C 108 52, 120 54, 126 44' fill='none' stroke='currentColor' stroke-width='1.5'/%3E%3Cellipse cx='129' cy='39' rx='8' ry='4' transform='rotate(-30 129 39)' fill='currentColor'/%3E%3Ccircle cx='143' cy='16' r='3' fill='currentColor'/%3E%3Ccircle cx='150' cy='24' r='2' fill='currentColor'/%3E%3C/svg%3E");
}
.hero::before { top: -10px; left: -10px; }
.hero::after { bottom: -10px; right: -10px; transform: rotate(180deg); }

@media (max-width: 600px) {
  .hero::before, .hero::after { width: 120px; height: 120px; }
}

.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--paper-alt);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero p.lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 20px auto 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  padding: 15px 32px;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent-dark);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink); text-decoration: none; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--accent-dark); text-decoration: none; }

.btn-block { width: 100%; justify-content: center; }

.free-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* Sections */
.section { padding: 56px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 36px; }
.section-title p { color: var(--ink-soft); font-size: 17px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: left;
}

.card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper-alt);
  color: var(--accent-dark);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}

.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* Theme preview cards */
.theme-preview {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.theme-swatch {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
}

.theme-swatch.classic { background: linear-gradient(160deg, #f6efe4, #e9d9c2); color: #6b4a2b; }
.theme-swatch.boho { background: linear-gradient(160deg, #f3e3df, #e6c9be); color: #8a4a3a; }
.theme-swatch.minimal { background: linear-gradient(160deg, #ffffff, #eeeeee); color: #222; }

.theme-preview .theme-label {
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  margin-top: 40px;
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

/* Forms (constructor) */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.progress-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.progress-bar span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
}
.progress-bar span.active { background: var(--accent-dark); }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}
.field .hint { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

.field input[type=text],
.field input[type=date],
.field input[type=time],
.field input[type=tel],
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: var(--sans);
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-dark);
}
.field textarea { min-height: 110px; resize: vertical; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.theme-choice {
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid transparent;
}
.theme-choice input { display: none; }
.theme-choice input:checked + .theme-swatch-wrap { border-color: var(--accent-dark); }
.theme-swatch-wrap {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 10px; margin-bottom: 10px; align-items: center; }
.schedule-row input { padding: 10px 12px; border-radius: 8px; border: 1.5px solid var(--line); font-family: var(--sans); }
.remove-row { background: none; border: none; color: var(--ink-soft); cursor: pointer; font-size: 20px; line-height: 1; }

/* Палитра дресс-кода: готовые пресеты + кастомные свотчи */
.palette-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.palette-preset {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-family: var(--sans);
}
.palette-preset:hover { border-color: var(--accent-dark); }
.palette-preset.active { border-color: var(--accent-dark); background: var(--paper-alt); }
.palette-preset-name { font-size: 13px; color: var(--ink); margin-left: 4px; }
.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.1);
}
.custom-swatches {
  display: flex;
  gap: 10px;
}
.custom-swatches input[type=color] {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  background: none;
}

/* Подсказки адреса (DaData) */
.address-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  margin-top: 4px;
  box-shadow: var(--shadow);
  max-height: 220px;
  overflow-y: auto;
}
.address-suggestion-item {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}
.address-suggestion-item:hover { background: var(--paper-alt); }

.form-actions { display: flex; justify-content: space-between; margin-top: 32px; }

.result-links {
  background: var(--paper-alt);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 24px;
}
.result-links .link-row {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--white);
  border-radius: 10px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 14px;
  word-break: break-all;
}
.result-links .link-row a { flex: 1; }

.badge-warning {
  display: inline-block;
  background: #fff3cd;
  color: #7a5b00;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-top: 16px;
}

/* Dashboard table */
.table-wrap { overflow-x: auto; }
table.rsvp-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.rsvp-table th, table.rsvp-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.rsvp-table th { background: var(--paper-alt); font-weight: 600; }

.stat-row { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.stat-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 26px; min-width: 140px; }
.stat-box .num { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--accent-dark); }
.stat-box .label { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 720px) {
  .hero h1 { font-size: 36px; }
  .grid-3, .theme-choice-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
}
