:root {
  --paper: #fffaf4;
  --paper-soft: #f7eadf;
  --ink: #302826;
  --muted: #76655e;
  --terracotta: #c85f42;
  --terracotta-dark: #9e432f;
  --sage: #7d956c;
  --gold: #d59a3c;
  --line: rgba(88, 62, 50, 0.16);
  --shadow: 0 22px 70px rgba(89, 45, 30, 0.16);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(200, 95, 66, 0.10), transparent 26%),
    linear-gradient(180deg, #fffaf4 0%, #fbf1e9 42%, #fffaf4 100%);
  font-family: "Segoe UI", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }

button, input { font: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--terracotta);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
}

.brand-word,
.hero h1 {
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0;
}

.brand-word { font-size: clamp(28px, 4vw, 52px); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 15px;
}

.top-actions, .hero-actions, .search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.primary-button,
.ghost-button,
.text-link,
.amounts button,
.round-control {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: white;
  background: var(--terracotta);
  box-shadow: 0 12px 30px rgba(200, 95, 66, 0.24);
}

.primary-button:hover { background: var(--terracotta-dark); }

.ghost-button {
  padding: 0 16px;
  color: var(--terracotta-dark);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(200, 95, 66, 0.28);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--terracotta-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  align-items: center;
  min-height: calc(100vh - 330px);
  padding: clamp(34px, 6vw, 86px) clamp(18px, 6vw, 76px) 38px;
  gap: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--terracotta-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(68px, 15vw, 172px);
  line-height: 0.86;
}

.hero-subtitle {
  max-width: 640px;
  margin: 28px 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(330px, 82vw);
  min-height: 590px;
  padding: 18px;
  color: var(--ink);
  background: #fff;
  border: 10px solid #1f1b1a;
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(5deg);
}

.phone-header,
.phone-grid {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.phone-brand {
  margin: 22px 0;
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  text-align: center;
}

.phone button {
  width: 100%;
  min-height: 42px;
  color: white;
  background: var(--terracotta);
  border: 0;
  border-radius: var(--radius);
}

.phone-grid span {
  display: grid;
  place-items: center;
  width: 31%;
  min-height: 58px;
  margin: 18px 0;
  background: var(--paper-soft);
  border-radius: var(--radius);
  font-size: 12px;
}

.phone-image {
  height: 210px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(200,95,66,0.18), rgba(125,149,108,0.14)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='260' viewBox='0 0 360 260'%3E%3Crect width='360' height='260' fill='%23f5e1d3'/%3E%3Ccircle cx='104' cy='150' r='46' fill='%23fffaf4'/%3E%3Crect x='144' y='92' width='44' height='98' rx='14' fill='%23c85f42' opacity='.78'/%3E%3Crect x='204' y='76' width='62' height='114' rx='18' fill='%237d956c' opacity='.62'/%3E%3Cpath d='M214 66 C218 22 262 14 276 34 C244 36 230 50 214 66Z' fill='%23d59a3c' opacity='.72'/%3E%3C/svg%3E") center / cover;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0 clamp(18px, 6vw, 76px) 34px;
}

.quick-strip div {
  min-height: 112px;
  padding: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.line-icon {
  color: var(--terracotta);
  font-size: 30px;
}

.quick-strip p { margin: 10px 0 0; }

.section {
  padding: 58px clamp(18px, 6vw, 76px);
}

.slots-top {
  padding-top: 26px;
  padding-bottom: 22px;
  background: rgba(255, 250, 244, 0.72);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 28px;
  text-align: center;
}

.section h2,
.gift h2,
.professional h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 500;
}

.carousel-shell {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
}

.round-control {
  align-self: center;
  min-height: 48px;
  color: var(--terracotta-dark);
  background: white;
  border-color: var(--line);
  font-size: 32px;
  z-index: 2;
}

.slot-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 430px);
  gap: 18px;
  overflow-x: auto;
  padding: 10px 6px 20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.slot-card {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  scroll-snap-align: center;
  min-height: 250px;
  opacity: 0.78;
  transform: scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.slot-card.active {
  border-color: rgba(200, 95, 66, 0.44);
  opacity: 1;
  transform: scale(1);
}

.slot-card h3 { margin: 0 0 8px; font-size: 28px; }
.slot-card p { margin: 0; color: var(--muted); line-height: 1.5; }

.slot-time {
  display: grid;
  place-items: center;
  min-width: 100%;
  padding: 18px;
  color: white;
  background: var(--sage);
  border-radius: var(--radius);
  text-align: center;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.tabs button {
  min-height: 44px;
  padding: 0 18px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.tabs button.active {
  color: white;
  background: var(--terracotta);
  border-color: var(--terracotta);
}

.search-panel {
  max-width: 920px;
  margin: 0 auto 26px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-panel label,
.gift-form label,
.pro-form label,
.city-dialog label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-row { margin-top: 10px; }
.search-row input { flex: 1; }
.hint { color: var(--muted); }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.result-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.result-card h3 { margin: 0 0 8px; }
.result-card p { margin: 7px 0; color: var(--muted); }
.result-card .member { color: var(--sage); font-weight: 700; }

.gift,
.professional {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 28px;
  align-items: center;
  margin: 30px clamp(18px, 6vw, 76px);
  padding: clamp(28px, 5vw, 50px);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gift p,
.professional p { color: var(--muted); line-height: 1.6; }

.gift-form,
.pro-form,
.city-dialog {
  display: grid;
  gap: 14px;
}

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

.amounts button {
  background: white;
  border-color: rgba(200, 95, 66, 0.26);
  color: var(--terracotta-dark);
}

.sage { background: var(--sage); }
.gold { background: var(--gold); }
.terracotta { background: var(--terracotta); }

.badge {
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  font-size: 12px;
  text-transform: uppercase;
}

dialog {
  width: min(520px, calc(100vw - 32px));
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

dialog::backdrop { background: rgba(48, 40, 38, 0.35); }

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-head h2 { margin: 0; }
.dialog-head button {
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--paper-soft);
  border-radius: 50%;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .nav { display: none; }
  .hero,
  .gift,
  .professional {
    grid-template-columns: 1fr;
  }
  .phone { transform: none; }
  .quick-strip,
  .results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    gap: 12px;
  }
  .brand-word { font-size: 32px; }
  .top-actions { flex-direction: column; align-items: stretch; }
  .top-actions .primary-button,
  .top-actions .ghost-button { min-height: 38px; padding: 0 12px; }
  .hero { min-height: auto; padding-top: 34px; }
  .hero-actions,
  .search-row {
    align-items: stretch;
    flex-direction: column;
  }
  .quick-strip,
  .results-grid {
    grid-template-columns: 1fr;
  }
  .carousel-shell {
    grid-template-columns: 1fr;
  }
  .round-control { display: none; }
  .slot-track {
    grid-auto-columns: minmax(280px, 86vw);
  }
  .slot-card {
    grid-template-columns: 1fr;
  }
  .amounts { grid-template-columns: 1fr; }
}
