﻿/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Брендбук Alma Valley */
  --wine:        #B13D08;
  --wine-dark:   #8a2f06;
  --wine-light:  #f5e8e1;
  --wine-mid:    #e8c9bb;
  --gold:        #c9a84c;
  --gold-light:  #fdf6e3;
  --text:        #2e1508;
  --text-mid:    #6b3820;
  --text-muted:  #a07060;
  --bg:          #faf7f4;
  --white:       #ffffff;
  --card-bg:     #fff9f6;
  --border:      rgba(177, 61, 8, 0.15);
  --success:     #2d7a4f;
  --success-bg:  #f0fdf4;
  --error:       #dc2626;
  --error-bg:    #fef2f2;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-btn:  10px;
  --radius-pill: 20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06);
  --shadow:      0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:   0 12px 32px rgba(0,0,0,.10);
  --transition:  all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
  --font-body:    'Jost', sans-serif;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ===== LAYOUT ===== */
.booking-container {
  min-height: 100vh;
  padding: 28px 16px 48px;
}

.booking-header {
  max-width: 760px;
  margin: 0 auto 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wine);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.back-link:hover {
  background: var(--wine-light);
  border-color: var(--wine-mid);
}

.booking-content {
  max-width: 760px;
  margin: 0 auto;
}

/* ===== PROGRESS STEPS ===== */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding: 0 8px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--wine-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.progress-step.active .step-circle {
  background: var(--wine);
  border-color: var(--wine);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(177,61,8,.15);
}

.progress-step.completed .step-circle {
  /* background: var(--success);
  border-color: var(--success); */
  background: #c28872;
  border-color: #c46337;
  color: var(--white);
}

.step-label {
  font-size: 0.7rem;
  font-weight: 400;
  color: #c9c9c9;
  text-align: center;
  white-space: nowrap;
}

.progress-step.active .step-label {
    color: var(--wine);
    background: rgba(255,249,246,0.9);
    padding: 5px 9px;
    border-radius: var(--radius-sm);
}

.progress-line {
  flex: 1;
  height: 1px;
  background: var(--wine-mid);
  margin: 0 -30px;
  position: relative;
  top: -13px;
  z-index: 1;
}

/* ===== STEP CARD ===== */
.step-card {
  display: none;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  animation: fadeUp 0.28s ease;
}

.step-card.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--wine);
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ===== FORMAT OPTIONS ===== */
.format-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.format-card { cursor: pointer; display: block; }
.format-card input[type="radio"] { display: none; }

.format-content {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: var(--transition);
}

.format-card:hover .format-content {
  border-color: var(--wine-mid);
  background: var(--wine-light);
}

.format-card input[type="radio"]:checked + .format-content {
  border-color: var(--wine);
  background: var(--wine-light);
  box-shadow: 0 0 0 3px rgba(177,61,8,.1);
}

.format-icon { font-size: 2.2rem; flex-shrink: 0; }

/* .format-icon-img {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
} */

.format-icon-img {
    width: 4.8rem;
    height: 4.8rem;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.format-card:hover .format-icon-img {
  transform: scale(1.1);
}

.quantity-card:hover .format-icon-img {
  transform: scale(1.1);
}


.format-card input[type="radio"]:checked + .format-content .format-icon-img {
  filter: drop-shadow(0 2px 4px rgba(177, 61, 8, 0.35));
}

.format-info { flex: 1; }

.format-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wine-dark);
  margin-bottom: 2px;
}

.format-desc { font-size: 0.85rem; color: var(--text-muted); }
.format-check {
  font-size: 1.3rem;
  color: var(--wine);
  opacity: 0;
  transition: var(--transition);
}

.format-card input[type="radio"]:checked + .format-content .format-check { opacity: 1; }

/* ===== QUANTITY OPTIONS ===== */
.quantity-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

/* Карточка: заголовок и контролы в одну строку */
.quantity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--wine-light);
  border: 1px solid var(--wine-mid);
  border-radius: var(--radius);
  transition: var(--transition);
}

.quantity-card:hover {
  border-color: var(--wine);
  box-shadow: var(--shadow-sm);
}

.quantity-header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.quantity-icon { font-size: 1.8rem; flex-shrink: 0; }

.quantity-info { flex: 1; min-width: 0; }

.quantity-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wine-dark);
  margin-bottom: 2px;
}

.quantity-desc { font-size: 0.8rem; color: var(--text-muted); }

/* Контролы −/число/+ */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--wine-mid);
  border-radius: 50px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--wine);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.qty-btn:hover {
  background: var(--wine);
  color: var(--white);
}

.quantity-controls input {
  width: 52px;
  height: 40px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--wine-dark);
  border: none;
  border-left: 1px solid var(--wine-mid);
  border-right: 1px solid var(--wine-mid);
  background: var(--white);
  outline: none;
  cursor: text;
  -moz-appearance: textfield;
}

.quantity-controls input:focus {
  background: var(--wine-light);
}

.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ===== FORM FIELDS ===== */
.details-form,
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-input,
.form-select,
.form-textarea {
  padding: 11px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: var(--transition);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover { border-color: var(--wine-mid); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(177,61,8,.1);
}

.form-textarea { resize: vertical; min-height: 96px; }

/* ===== CALENDAR ===== */
.calendar-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 8px;
}

.calendar-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.calendar-nav {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--wine);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-nav:hover {
  background: var(--wine-light);
  border-color: var(--wine);
}

.calendar-title {
  font-weight: 600;
  color: var(--wine-dark);
  text-align: center;
  flex: 1;
  font-size: 0.92rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.calendar-day-header {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 0;
  text-transform: uppercase;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  transition: var(--transition);
  color: var(--text);
}

.calendar-day:hover:not(.disabled):not(.empty) {
  border-color: var(--wine);
  background: var(--wine-light);
}

.calendar-day.empty { cursor: default; color: transparent; }

.calendar-day.disabled {
  color: #d1d5db;
  cursor: not-allowed;
}

.calendar-day.available {
  border-color: var(--wine-mid);
  color: var(--wine);
  font-weight: 600;
  background: var(--wine-light);
}

.calendar-day.selected {
  background: var(--wine);
  color: var(--white);
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(123,45,66,.2);
}

.times-container {
  background: var(--wine-light);
  border: 1px solid var(--wine-mid);
  border-radius: var(--radius);
  padding: 16px;
  max-height: 480px;
  overflow-y: auto;
}

.times-container::-webkit-scrollbar { width: 6px; }
.times-container::-webkit-scrollbar-track { background: transparent; }
.times-container::-webkit-scrollbar-thumb { background: var(--wine-mid); border-radius: 3px; }
.times-container::-webkit-scrollbar-thumb:hover { background: var(--wine); }

.times-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wine-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.times-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.time-card {
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--wine-mid);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.time-card:hover {
  border-color: var(--wine);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.time-card.selected {
  background: var(--wine);
  color: var(--white);
  border-color: var(--wine);
  box-shadow: 0 0 0 3px rgba(123, 45, 66, .2);
}

.times-empty {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 20px 0;
}

/* ===== SET GROUPS ===== */
.set-group {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.6);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--wine);
}

.set-header {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--wine-dark);
  font-size: 0.88rem;
}

.set-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.set-times .time-card {
  flex: 0 1 auto;
  padding: 7px 12px;
  font-size: 0.82rem;
}

/* ===== PRICE SUMMARY ===== */
.price-summary {
  padding: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 20px;
  overflow: hidden;
}

.price-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.4rem;
  font-size: 0.88rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.price-row:last-child {
  border-bottom: none;
}

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  background: var(--wine);
}

.price-total span:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

/* ===== BUTTONS ===== */
.step-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  flex: 1;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: var(--radius-btn);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  letter-spacing: 0.04em;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--wine);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(177,61,8,.25);
}

.btn-primary:hover {
  background: var(--wine-dark);
  box-shadow: 0 6px 20px rgba(177,61,8,.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--wine);
  border: 1px solid rgba(177, 61, 8, 0.35);
}

.btn-secondary:hover {
  background: var(--wine-light);
}

/* ===== CONFIRMATION ===== */
.confirmation-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-section {
  padding: 1.2rem 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--wine);
}

.detail-title {
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--wine);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.detail-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

.confirmation-content {
  text-align: center;
  padding: 40px 20px;
}

.confirmation-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  background: var(--success-bg);
  border: 3px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--success);
}

.confirmation-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--wine);
  margin-bottom: 14px;
}

.confirmation-text {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 10px;
}

.booking-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--wine);
}

.confirmation-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== MESSAGES ===== */
.error-message {
  padding: 11px 15px;
  background: var(--error-bg);
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  color: var(--error);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.field-error {
  font-size: 0.82rem;
  color: var(--error);
  margin-top: 3px;
}

.loading-text,
.empty-text {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hidden { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .booking-container { padding: 16px 12px 40px; }

  .step-card { padding: 28px 20px; }

  .step-title { font-size: 1.4rem; margin-bottom: 22px; }

  .progress-steps { padding: 0 4px; }

  .step-circle { width: 36px; height: 36px; font-size: 0.85rem; }

  /* На экранах 450px-640px показываем все надписи, но уменьшаем размер */
  .step-label { font-size: 0.62rem; }

  .format-content { padding: 14px 16px; gap: 12px; }

  .format-icon { font-size: 1.8rem; }

  .quantity-card { 
    flex-direction: column; 
    /* align-items: flex-start;  */
    gap: 12px; }

  .calendar-wrapper { grid-template-columns: 1fr; }

  .step-actions { flex-direction: column-reverse; }

  .btn { width: 100%; }

  .times-container {
    max-height: 100%;
  }
  .quantity-header {

    min-width: auto;
    width: 100%;
}
  .quantity-card {
    padding: 14px 16px;
}

.set-prices {
line-height: 13px;
        font-weight: 100;
}

#set-description-block {
  display: none !important;
  visibility: hidden;
}

.confirm-card-icon-one {
display: none;
}

.confirmation-content {
    text-align: center;
    padding: 20px 20px;
}

.confirmation-title {
    font-size: 1.6rem;
    line-height: normal;
}
.confirmation-desc {
    font-size: 0.85rem;
}
.details-form, .contact-form {
    gap: 4px;
}

.form-input, .form-select, .form-textarea {
    padding: 7px 7px;
}

.step-actions {

    margin-top: 28px;
}

.details-form, .contact-form {

    margin-bottom: 0px;
}

}

/* ===== SUGGESTION BLOCK (нет мест — предлагаем ближайший вариант) ===== */
.suggestion-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
  background: var(--white);
  border: 2px solid var(--wine-mid);
  border-radius: var(--radius);
  text-align: center;
}

.suggestion-icon { font-size: 1.8rem; line-height: 1; }

.suggestion-text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.5;
}

.suggestion-max-info,
.suggestion-nearest,
.suggestion-info-block {
  font-size: 0.85rem;
  color: var(--text);
  padding: 10px 14px;
  background: var(--wine-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--wine-mid);
  width: 100%;
  line-height: 1.7;
  text-align: left;
}

.suggestion-divider {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  width: 100%;
  text-align: center;
  padding: 2px 0;
}
.suggestion-divider::before,
.suggestion-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border);
}
.suggestion-divider::before { left: 0; }
.suggestion-divider::after  { right: 0; }

.suggestion-private {
  font-size: 0.84rem;
  color: var(--text);
  line-height: 1.5;
}

.suggestion-btn {
  padding: 9px 16px;
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
}
.suggestion-btn:hover { background: var(--wine-dark); }

.suggestion-btn-outline {
  background: transparent;
  color: var(--wine);
  border: 2px solid var(--wine-mid);
}
.suggestion-btn-outline:hover {
  background: var(--wine-light);
  border-color: var(--wine);
}

/* ===== CONFIRM CARDS (шаг 5) ===== */
.confirmation-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

/* Базовая карточка */
.confirm-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

/* Карточка "Вы бронируете" — акцентная */
.confirm-card:first-child {
  background: var(--wine-light);
  border-color: var(--wine-mid);
}

.confirm-card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  line-height: 1.3;
  margin-top: 2px;
}

.confirm-card-body {
  flex: 1;
  min-width: 0;
}

.confirm-card-label {
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--wine);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 5px;
}

.confirm-card-value {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
}

/* Название сета под основным текстом */
#confirm-set-name {
    margin-top: 6px;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    padding: 3px 8px;
    background: rgb(177 61 8);
    border-radius: 4px;
    display: inline-block !important;
}

/* Описание сета — отдельный блок с отступом */
#confirm-set-description {
  margin-top: 10px !important;
  padding: 10px 12px !important;
  background: rgba(177,61,8,0.04) !important;
  border-left: 2px solid var(--wine-mid) !important;
  border-radius: 0 6px 6px 0 !important;
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
  font-style: normal !important;
  line-height: 1.6;
}

#confirm-set-description p { margin-bottom: 6px; }
#confirm-set-description p:last-child { margin-bottom: 0; }
#confirm-set-description strong { color: var(--wine); font-weight: 600; }
#confirm-set-description h1,
#confirm-set-description h2,
#confirm-set-description h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--wine);
  margin: 8px 0 4px;
}
#confirm-set-description ul,
#confirm-set-description ol {
  padding-left: 16px;
  margin: 4px 0;
}
#confirm-set-description li { margin-bottom: 2px; }

/* ===== CONSENT CHECKBOX ===== */
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 20px;
  margin-bottom: 4px;
  cursor: pointer;
  padding: 0 0.2rem;
  transition: var(--transition);
}

.consent-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--wine);
  cursor: pointer;
}

.consent-text {
    font-size: 0.77rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ===== MOBILE PROGRESS STEPS (below 450px) ===== */
@media (max-width: 450px) {
  .progress-steps {
    position: relative;
    margin-bottom: 48px;
  }
  
  /* Скрываем все надписи шагов */
  .step-label {
    display: none;
  }
  
  /* Показываем только текущую надпись по центру */
    .progress-step.active .step-label {
        display: block;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 8px;
        margin-left: 10px;
        margin-right: 10px;
        font-size: 0.7rem;
        font-weight: 600;
        color: var(--wine);
        white-space: nowrap;
        background: var(--white);
        padding: 4px 8px;
        border-radius: var(--radius-sm);
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border);
        z-index: 10;
    }
  
  /* Для завершенных шагов также показываем надпись при наведении */
  .progress-step.completed:hover .step-label {
    display: block;
    position: absolute;
    top: 100%;
    left: 22%;
    transform: translateX(-50%);
    margin-top: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--success);
    white-space: nowrap;
    background: var(--white);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    z-index: 10;
  }
  
  /* Уменьшаем размер кружков для очень маленьких экранов */
  .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }
  
  /* Уменьшаем отступы для прогресс-линий */
  .progress-line {
    top: 0px;
  }
  
  /* Уменьшаем отступы в контейнере */
  .booking-container {
    padding: 12px 10px 36px;
  }
  
  .step-card {
    padding: 20px 16px;
  }
  
  .step-title {
    font-size: 1.2rem;
    margin-bottom: 11px;
  }
  
  /* Адаптируем кнопки для очень маленьких экранов */
  .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  
  /* Уменьшаем отступы между шагами прогресса */
  .progress-step {
    gap: 4px;
  }

  .format-icon-img {
    width: 3.8rem;
    height: 3.8rem;
}

.format-title {
    font-size: 0.9rem;
}

.quantity-controls input {
    width: 60px;
    height: 30px;
    font-size: 1rem;
}

.qty-btn {
    width: 30px;
    height: 30px;
}


}

/* ===== MARKDOWN ОПИСАНИЕ СЕТА ===== */
#set-description-block,
#confirm-set-description {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #5a4a42;
}

#set-description-block p,
#confirm-set-description p {
  margin-bottom: 8px;
}

#set-description-block p:last-child,
#confirm-set-description p:last-child {
  margin-bottom: 0;
}

#set-description-block ul,
#set-description-block ol,
#confirm-set-description ul,
#confirm-set-description ol {
  padding-left: 20px;
  margin-bottom: 8px;
}

#set-description-block li,
#confirm-set-description li {
  margin-bottom: 4px;
}

#set-description-block strong,
#confirm-set-description strong {
  color: var(--wine);
  font-weight: 600;
}

#set-description-block em,
#confirm-set-description em {
  font-style: italic;
  color: #7a6a62;
}

#set-description-block h1, #set-description-block h2, #set-description-block h3,
#confirm-set-description h1, #confirm-set-description h2, #confirm-set-description h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--wine-dark);
  margin-bottom: 6px;
}

/* ===== СТРАТЕГИЯ ЗАПОЛНЯЕМОСТИ ===== */
.time-card-time {
  font-size: 1rem;
  font-weight: 600;
}

.time-card-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #B13D08;
  white-space: nowrap;
}

.time-card.selected .time-card-badge {
  color: rgba(255,255,255,0.9);
}

.time-card-fill {
  font-size: 0.65rem;
  color: #9ca3af;
  white-space: nowrap;
}

.time-card.selected .time-card-fill {
  color: rgba(255,255,255,0.7);
}

/* ===== ВИДЕО-ФОН ===== */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Адаптируем контейнер под видео-фон */
body {
  background: transparent;
}

.booking-container {
  position: relative;
  z-index: 1;
}

/* Карточки шагов делаем полупрозрачными */
.step-card {
  background: rgba(255, 249, 246, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Шапка тоже */
.back-link {
  background: rgba(255, 249, 246, 0.9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ===== ВСПЛЫВАЮЩИЙ СОВЕТ (мобильные) ===== */
.strategy-toast {
  display: none;
  position: fixed;
  top: 12vh;
  left: 16px;
  right: 16px;
  z-index: 999;
  background: rgba(30, 20, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 3px solid #c9a84c;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #f0d9a0;
  line-height: 1.6;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastSlideUp 0.35s ease;
}

.strategy-toast.hiding {
  animation: toastSlideDown 0.4s ease forwards;
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastSlideDown {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}

/* На десктопе — обычный блок, тост скрыт */
@media (min-width: 641px) {
  .strategy-toast { display: none !important; }
}

/* На мобильных — обычный совет скрыт, показываем тост */
@media (max-width: 640px) {
  #booking-strategy-tip { display: none !important; }
}

/* ===== КРЕСТИК ЗАКРЫТИЯ ТОСТА ===== */
.strategy-toast {
    position: fixed;
    padding: 26px 30px 31px 26px;
    margin: 10px;
}

.toast-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: #c9a84c;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 0;
}

.toast-close:hover { opacity: 1; }

/* ===== ЗАГОЛОВОК И ЦЕНЫ СЕТА ===== */
.set-title {
  font-weight: 600;
  font-size: 1rem;
  color: #5a4a42;
  margin-bottom: 4px;
}

.set-prices {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 4px;
    line-height: normal;
}


/* ===== STEP 5: BRAND CONFIRMATION DESIGN ===== */

/* Карточка шага 5 */
.step-card--confirm {
  padding: 2rem 1.4rem 1.8rem !important;
}

/* Заголовок страницы */
.bk-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--wine);
  text-align: center;
  margin: 0 0 0.2rem;
  letter-spacing: 0.01em;
}

.bk-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 2rem;
}

/* Секции (карточки информации) */
.bk-section {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.85rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* Иконки в кружках */
.icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wine-light);
  color: var(--wine);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bk-body {
  flex: 1;
  min-width: 0;
}

/* Метки разделов (uppercase) */
.bk-label {
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 0.3rem;
}

/* Основные значения */
.bk-value {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  font-weight: 400;
}

/* Дата, крупные числа */
.display-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

/* Бейдж сета */
.bk-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 3px 12px;
  background: var(--wine);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
}

/* Описание сета */
.bk-desc {
  margin-top: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--wine-light);
  border-left: 2px solid var(--wine);
  border-radius: 0 8px 8px 0;
  font-size: 0.81rem;
  color: var(--text-mid);
  line-height: 1.6;
}

.bk-desc p {
  margin: 0 0 0.45rem;
}

.bk-desc p:last-child {
  margin: 0;
}

/* Блок стоимости */
.bk-price-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.bk-price-rows {
  padding: 0;
}

.bk-price-rows .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.4rem;
  font-size: 0.98rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.bk-price-rows .price-row:last-child {
  border-bottom: none;
}

.bk-price-rows .price-info {
  padding: 0.6rem 1.4rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.bk-price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.4rem;
  background: var(--wine);
}

.bk-price-total span:first-child {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
}

/* Итоговая сумма */
.price-total-amount {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

/* Заметка об оплате */
.bk-pay-note {
  padding: 0.8rem 1.1rem;
  background: #fdf8f0;
  border: 1px solid rgba(177, 61, 8, 0.12);
  border-radius: var(--radius-btn);
  font-size: 0.79rem;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.bk-pay-note i {
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 15px;
  color: var(--wine);
}

/* Согласие */
.bk-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding: 0 0.2rem;
}

.bk-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--wine);
  cursor: pointer;
}

.bk-consent label {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.55;
  cursor: pointer;
}

/* Кнопки шага 5 */
.bk-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-back {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(177, 61, 8, 0.35);
  background: transparent;
  color: var(--wine);
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-back:hover {
  background: var(--wine-light);
}

.btn-pay {
  flex: 2;
  padding: 0.85rem 1.5rem;
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-pay i {
  font-size: 17px;
}

.btn-pay:hover {
  background: var(--wine-dark);
  transform: translateY(-1px);
}

.btn-pay:active {
  transform: scale(0.98);
}

/* ===== STEP 5 RESPONSIVE ===== */
@media (max-width: 640px) {
  .step-card--confirm {
    padding: 1.5rem 1rem 1.4rem !important;
  }

  .bk-title {
    font-size: 1.6rem;
  }

  .bk-section {
    padding: 1rem 1rem;
    gap: 0.75rem;
  }

  .bk-actions {
    flex-direction: column-reverse;
    gap: 0.6rem;
  }

  .btn-back,
  .btn-pay {
    flex: unset;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 450px) {
  .step-card--confirm {
    padding: 1.2rem 0.8rem 1.2rem !important;
  }

  .bk-title {
    font-size: 1.4rem;
  }

  .bk-subtitle {
    margin-bottom: 1.4rem;
  }

  .bk-section {
    padding: 0.9rem 0.8rem;
  }
}


/* ===== SITE FOOTER ===== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 24px 16px;
  background: rgba(46, 21, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.6;
}

.footer-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.footer-info p {
  margin: 2px 0;
}

.footer-company {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px !important;
}

.footer-links {
  margin: 14px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.footer-links a {
  color: var(--wine-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.72rem;
}

.site-footer a {
  color: var(--wine-mid);
}
