/* ===== DK — студия массажа Дианы Коноплёвой ===== */

:root {
  --mauve: #A0805F;
  --mauve-dark: #6B5540;
  --mauve-tint: #F2EAE0;
  --ink: #2B2B2B;
  --ink-soft: #6B6560;
  --cream: #FAF8F6;
  --white: #FFFFFF;
  --border: #E7E1DD;
  --sage: #7C8C6E;
  --sage-tint: #E9EEE3;
  --radius: 14px;
  --font-script: 'Marck Script', cursive;
  --font-display: 'Playfair Display', serif;
  --font-sans: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

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

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

a { color: inherit; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 248, 246, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.nav-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.2s;
}

.nav-link-btn:hover { color: var(--mauve-dark); }

.main-nav a:hover { color: var(--mauve-dark); }

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s;
}

.btn-primary {
  background: var(--mauve);
  color: var(--white);
}

.btn-primary:hover { background: var(--mauve-dark); }
.btn-primary:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--mauve);
  color: var(--mauve-dark);
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 64px;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(242,234,224,0.75) 0%, rgba(242,234,224,0.75) 54%, rgba(233,238,227,0.75) 54%, rgba(233,238,227,0.75) 100%),
    url('assets/bg-hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-logo {
  margin: 0 auto 24px;
  width: 162px;
  height: 162px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--border);
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(255,255,255,0.9), 0 1px 2px rgba(255,255,255,0.7);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 20px;
  font-style: italic;
  color: var(--mauve-dark);
  margin: 0 0 28px;
  text-shadow: 0 1px 6px rgba(255,255,255,0.85);
}

.hero-description {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 16px;
  color: var(--ink-soft);
}

/* ---------- About ---------- */

.about {
  padding: 64px 0;
  background:
    linear-gradient(rgba(250,248,246,0.75), rgba(250,248,246,0.75)),
    url('assets/bg-services.jpg');
  background-size: cover;
  background-position: center;
}

.about .container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 var(--border);
}

.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mauve);
  margin: 0 0 10px;
  text-shadow: 0 1px 6px rgba(255,255,255,0.85);
}

.about h2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 40px;
  margin: 0 0 20px;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(255,255,255,0.9), 0 1px 2px rgba(255,255,255,0.7);
}

.about-text {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 520px;
  text-shadow: 0 1px 6px rgba(255,255,255,0.85);
}

/* ---------- Индивидуальные программы ---------- */

.program {
  padding: 64px 0;
  background:
    linear-gradient(rgba(233,238,227,0.75), rgba(233,238,227,0.75)),
    url('assets/bg-about.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
}

.program h2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 20px;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(255,255,255,0.9), 0 1px 2px rgba(255,255,255,0.7);
}

.program-lead {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 15px;
  color: var(--ink-soft);
  text-shadow: 0 1px 6px rgba(255,255,255,0.85);
}

.program-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 780px;
  margin: 0 auto 36px;
}

.program-feature-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--mauve-dark);
  margin: 0 0 6px;
  text-shadow: 0 1px 6px rgba(255,255,255,0.85);
}

.program-feature-text {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  text-shadow: 0 1px 6px rgba(255,255,255,0.85);
}

.program-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  max-width: 480px;
  margin: 0 auto 24px;
  text-shadow: 0 1px 6px rgba(255,255,255,0.85);
}

.services-locked-note {
  display: none;
  max-width: 480px;
  margin: 0 auto 24px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--mauve-tint);
  color: var(--mauve-dark);
  font-size: 13px;
  text-align: center;
}

.services-locked .services-locked-note { display: block; }
.services-locked .services-hint { display: none; }

.services-hint {
  max-width: 480px;
  margin: 0 auto 24px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

.variant-pick::before {
  content: '+ ';
  font-weight: 700;
}

.variant-pick.picked::before {
  content: '\2713 ';
}

.services-locked .variant-pick {
  pointer-events: none;
  opacity: 0.55;
}

.services-locked .tabs-nav { opacity: 0.7; }

/* ---------- Services ---------- */

.services {
  padding: 64px 0 88px;
  background:
    linear-gradient(rgba(250,248,246,0.75), rgba(250,248,246,0.75)),
    url('assets/bg-program.jpg');
  background-size: cover;
  background-position: center;
}

.services-header {
  text-align: center;
  margin-bottom: 36px;
}

.services h2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 40px;
  margin: 0;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(255,255,255,0.9), 0 1px 2px rgba(255,255,255,0.7);
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 40px;
}

.tab-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover { border-color: var(--mauve); color: var(--mauve-dark); }

.tab-btn.active {
  background: var(--mauve);
  border-color: var(--mauve);
  color: var(--white);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade-in 0.25s ease; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.subcategory-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--mauve-dark);
  text-align: left;
  margin: 32px 0 14px;
}

.subcategory-title:first-child { margin-top: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}

.service-name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink);
}

.service-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--mauve-dark);
}

.service-note {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.service-expandable summary {
  display: block;
  position: relative;
  padding-right: 18px;
  cursor: pointer;
  list-style: none;
}

.service-expandable summary::-webkit-details-marker { display: none; }
.service-expandable summary::marker { display: none; content: ''; }

.service-expandable summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--mauve);
  font-size: 15px;
}

.service-expandable[open] summary::after { content: '\2212'; }

.service-expandable .service-note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.service-photo {
  margin-top: 10px;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 220px;
}

/* ---------- SPA cards (accordion) ---------- */

.spa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: start;
}

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

.spa-card summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 30px 16px 0;
  position: relative;
  display: block;
}

.spa-card summary::-webkit-details-marker { display: none; }
.spa-card summary::marker { display: none; content: ''; }

.spa-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.spa-meta {
  font-size: 12px;
  color: var(--mauve-dark);
  display: block;
}

.variant-pick {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--mauve-dark);
  background: var(--mauve-tint);
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.variant-pick:hover { border-color: var(--mauve); }

.variant-pick.picked {
  background: var(--mauve);
  color: var(--white);
  font-weight: 600;
}

button.variant-pick.spa-meta {
  display: inline-block;
  margin-top: 2px;
}

.service-card.has-picked,
.service-expandable.has-picked,
.spa-card.has-picked {
  border-color: var(--mauve);
  box-shadow: 0 0 0 1.5px var(--mauve);
}

.spa-card summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 18px;
  color: var(--mauve);
}

.spa-card[open] summary::after { content: '\2212'; }

.spa-composition {
  margin: 0 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-soft);
}

ul.spa-composition {
  list-style: none;
  padding-left: 0;
}

ul.spa-composition li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
}

ul.spa-composition li:last-child { margin-bottom: 0; }

ul.spa-composition li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mauve);
}

.spa-procedure-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.spa-procedure-card .spa-name { font-size: 16px; margin-bottom: 6px; display: block; }
.spa-procedure-card .spa-meta { display: block; margin-bottom: 10px; }
.spa-procedure-card p { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* ---------- Консультация ---------- */

.consult-modal {
  border: none;
  border-radius: var(--radius);
  padding: 40px 32px;
  max-width: 460px;
  width: 90%;
  background: var(--cream);
  text-align: center;
  position: relative;
}

.consult-modal::backdrop {
  background: rgba(43,43,43,0.55);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.modal-close:hover { color: var(--ink); }

.consult h2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 14px;
  color: var(--ink);
  text-shadow: 0 1px 8px rgba(255,255,255,0.9), 0 1px 2px rgba(255,255,255,0.7);
}

.consult-lead {
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 14px;
  color: var(--ink-soft);
  text-shadow: 0 1px 6px rgba(255,255,255,0.85);
}

.consult-form-fields {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

.form-field em { font-style: normal; opacity: 0.75; }

.form-field input,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--mauve);
}

.consult-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.choice-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-soft);
  transition: all 0.2s;
}

.choice-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice-chip:has(input:checked) {
  border-color: var(--mauve);
  background: var(--mauve-tint);
  color: var(--mauve-dark);
  font-weight: 600;
}

.chip-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.method-telegram { color: #229ED9; }
.method-whatsapp { color: #25D366; }
.method-max { color: #471AFF; }
.method-call { color: var(--ink-soft); }

.method-telegram:has(input:checked) { background: #229ED91A; border-color: #229ED9; color: #0C5A80; }
.method-whatsapp:has(input:checked) { background: #25D3661A; border-color: #25D366; color: #157A42; }
.method-max:has(input:checked) { background: #471AFF1A; border-color: #471AFF; color: #471AFF; }
.method-call:has(input:checked) { background: var(--mauve-tint); border-color: var(--mauve); color: var(--mauve-dark); }

.consult-error {
  font-size: 12px;
  color: #B4463C;
  margin: 0 0 16px;
}

.consult-form-fields .btn {
  width: 100%;
  border: none;
}

.consult-success {
  max-width: 440px;
  margin: 0 auto;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--sage-tint);
  color: var(--ink);
  font-size: 15px;
}

/* ---------- Мои записи ---------- */

.mybookings-modal { max-width: 480px; }

.mybookings-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  text-align: left;
}

.mybooking-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.mybooking-card p { margin: 0 0 4px; font-size: 13px; color: var(--ink); }
.mybooking-card p.mybooking-service { font-weight: 600; }
.mybooking-card p:last-of-type { margin-bottom: 0; }

.mybooking-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.mybooking-actions .btn {
  padding: 7px 14px;
  font-size: 12px;
}

.mybooking-reschedule-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.mybooking-reschedule-panel .time-picker {
  margin-bottom: 10px;
}

.mybooking-status {
  font-size: 13px;
  margin-top: 8px;
  font-weight: 700;
}

.mybooking-status.error { color: #B4463C; }
.mybooking-status.success { color: #157A42; }

/* Отменённая бронь — приглушаем карточку и перечёркиваем текст, чтобы
   статус "отменено" читался однозначно, а не терялся среди обычных
   на вид карточек со скрытыми кнопками. */
.mybooking-card.is-cancelled {
  opacity: 0.55;
}

.mybooking-card.is-cancelled p:not(.mybooking-status) {
  text-decoration: line-through;
}

/* ---------- Липкая панель выбора услуг ---------- */

.booking-bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}

.booking-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.booking-bar-summary {
  font-size: 13px;
  line-height: 1.4;
}

.booking-bar .btn-primary {
  background: var(--mauve);
  flex-shrink: 0;
}

/* ---------- Секция записи (шаги 2-4) ---------- */

.booking {
  padding: 64px 0 88px;
  text-align: center;
  scroll-margin-top: 90px;
}

.booking h2 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 36px;
  margin: 0 0 24px;
  color: var(--ink);
}

.booking-progress {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 36px;
  font-size: 12px;
  color: var(--ink-soft);
}

.progress-step.active {
  color: var(--mauve-dark);
  font-weight: 600;
}

.booking-step {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.booking-step-hint {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.booking-step-placeholder {
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  padding: 20px 0;
}

.booking-step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.booking-step-actions .btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Календарь дат ---------- */

.date-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 20px;
}

.date-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-soft);
}

.date-chip .date-chip-day { font-size: 16px; font-weight: 600; color: var(--ink); }

.date-chip.picked {
  border-color: var(--mauve);
  background: var(--mauve-tint);
}

.date-chip.picked .date-chip-day { color: var(--mauve-dark); }

.date-chip:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ---------- Слоты времени ---------- */

.time-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-slot {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.time-slot.picked {
  border-color: var(--mauve);
  background: var(--mauve);
  color: var(--white);
  font-weight: 600;
}

.time-slot:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ---------- Согласие 152-ФЗ ---------- */

.form-field-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- Итоговая карточка подтверждения ---------- */

.booking-summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--ink);
}

.booking-summary-card p { margin: 0 0 8px; }
.booking-summary-card p:last-child { margin-bottom: 0; }
.booking-summary-card .summary-total { font-weight: 700; color: var(--mauve-dark); }

/* ---------- Успех записи ---------- */

.booking-success {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.booking-success .btn { margin-top: 16px; }

.booking-success-title {
  font-family: var(--font-script);
  font-size: 28px;
  margin: 0 0 12px;
  color: var(--ink);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .hero h1 { font-size: 40px; }
  .about .container { grid-template-columns: 1fr; }
  .about-photo { max-width: 280px; margin: 0 auto; }

  .site-header .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand img { width: 66px; height: 66px; }

  .main-nav { gap: 10px; }

  .main-nav a:not(.btn) {
    font-size: 12px;
  }

  .main-nav .btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .main-nav a:not(.btn) { display: none; }
}
