/* =========================================================
   СПС Прокат — основной стиль
   Палитра: апельсиновый + белый. Все цвета и размеры — в :root.
   ========================================================= */
:root {
  --orange:      #FF7A00;
  --orange-600:  #EE6A00;
  --orange-700:  #C95300;
  --orange-100:  #FFE7CF;
  --orange-50:   #FFF5EA;
  --ink:         #1F1913;
  --ink-2:       #6B6158;
  --line:        #F1E5D8;
  --bg:          #FFFFFF;
  --bg-warm:     #FFFAF4;
  --ok:          #1F9D55;
  --ok-bg:       #E6F6EC;
  --warn-bg:     #FFF1D6;
  --warn:        #A15C00;
  --err:         #D23B1F;
  --err-bg:      #FDECE8;
  --info-bg:     #EAF2FF;
  --info:        #2457C5;

  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --shadow:    0 1px 2px rgba(60, 30, 0, .06), 0 6px 20px rgba(60, 30, 0, .06);
  --shadow-lg: 0 12px 40px rgba(140, 60, 0, .16);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --wrap: 1280px;
  --chip-bg:     #F4F2EF;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 500 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(20px, 2vw, 24px); }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding-block: 32px 0; }
.section-sm { padding-block: 16px 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.link-more { color: var(--orange-700); font-weight: 700; white-space: nowrap; }
.link-more:hover { color: var(--orange); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border: 0; border-radius: var(--r-sm);
  font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { min-height: 48px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 2px 8px rgba(255, 122, 0, .28); }
.btn-primary:hover { background: var(--orange-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--orange-700); }
.btn-light:hover { background: var(--orange-50); }
.btn-soft { background: var(--orange-50); color: var(--orange-700); }
.btn-soft:hover { background: var(--orange-100); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--orange-50); box-shadow: inset 0 0 0 1.5px var(--orange-100); }
.btn-danger { background: var(--err-bg); color: var(--err); }
.btn-danger:hover { background: #fbd9d1; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 17px; flex-shrink: 0; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFB24D, var(--orange) 60%, var(--orange-600));
  color: #fff; font-size: 18px; box-shadow: 0 3px 10px rgba(255, 122, 0, .4);
}
.search { flex: 1; display: flex; gap: 6px; padding: 3px; background: #fff; border: 2px solid var(--orange); border-radius: 12px; max-width: 640px; }
.search:focus-within { box-shadow: 0 0 0 3px var(--orange-100); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 12px; outline: none; }
.nav { display: flex; gap: 8px; margin-left: auto; }

/* Служебная строка под шапкой: о компании, условия, контакты */
.infobar { border-top: 1px solid var(--line); font-size: 13px; }
.infobar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.infobar-links { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.infobar-links::-webkit-scrollbar { display: none; }
.infobar-links a { flex-shrink: 0; padding: 8px 10px; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; }
.infobar-links a:first-child { padding-left: 0; }
.infobar-links a:hover { color: var(--orange-700); }
.infobar-links a.is-on { color: var(--orange-700); border-bottom-color: var(--orange); }
.infobar-hours { flex-shrink: 0; color: var(--ink-2); }

/* ---------- Сообщения ---------- */
.flash { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; }
.flash-ok    { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--err-bg); color: var(--err); }
.flash-info  { background: var(--orange-50); color: var(--orange-700); }
.flash-cart  { background: var(--ok-bg); color: var(--ok); }

/* ---------- Главный экран ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 85% -10%, #FFB04A 0%, transparent 60%),
    linear-gradient(160deg, #FF8F1F 0%, var(--orange) 45%, #F25F00 100%);
}
.hero-inner { position: relative; padding: 40px 20px 44px; }
.hero h1 { font-family: var(--font-head); font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; line-height: 1.08; text-shadow: 0 2px 0 rgba(160, 60, 0, .18); }
.hero-lead { max-width: 560px; margin: 12px 0 20px; font-size: 16px; opacity: .95; }
.hero-search { display: flex; gap: 6px; max-width: 560px; padding: 5px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; font-size: 16px; color: var(--ink); outline: none; background: transparent; }
.hero-search .btn { min-height: 44px; padding: 0 22px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; font-size: 14px; opacity: .95; }
.hero-facts b { font-weight: 800; }

/* «Пузырьки» — фирменный акцент */
.bubbles i {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.55), rgba(255,255,255,.12) 60%, rgba(255,255,255,.04));
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35);
  animation: rise 14s linear infinite;
}
.bubbles i:nth-child(1) { width: 130px; height: 130px; right: 6%;  bottom: -60px; animation-duration: 22s; }
.bubbles i:nth-child(2) { width: 70px;  height: 70px;  right: 24%; bottom: -40px; animation-duration: 16s; animation-delay: -6s; }
.bubbles i:nth-child(3) { width: 34px;  height: 34px;  right: 14%; bottom: -20px; animation-duration: 11s; animation-delay: -3s; }
.bubbles i:nth-child(4) { width: 80px; height: 80px; right: 36%; bottom: -80px; animation-duration: 19s; animation-delay: -11s; }
.bubbles i:nth-child(5) { width: 22px;  height: 22px;  right: 4%;  bottom: -20px; animation-duration: 9s;  animation-delay: -5s; }
.bubbles i:nth-child(6) { width: 48px;  height: 48px;  right: 46%; bottom: -30px; animation-duration: 13s; animation-delay: -8s; }
@keyframes rise { from { transform: translateY(0); } to { transform: translateY(-460px); } }
@media (prefers-reduced-motion: reduce) { .bubbles i { animation: none; bottom: 20%; } }

/* ---------- Категории ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cat {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--r); background: var(--chip-bg); transition: background .15s;
}
.cat:hover { background: var(--orange-50); }
.cat-icon { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; font-size: 22px; }
.cat-name { min-width: 0; font-weight: 700; line-height: 1.25; font-size: 14px; overflow-wrap: anywhere; hyphens: auto; }
.cat-cnt { color: var(--ink-2); font-size: 12px; }

/* Кнопка «Больше категорий» — выглядит как плашка категории */
.cat-more { width: 100%; border: 0; text-align: left; font: inherit; color: var(--orange-700); cursor: pointer; background: var(--orange-50); }
.cat-more:hover { background: var(--orange-100); }
.cat-more .cat-icon { color: var(--orange); font-size: 18px; transition: transform .2s; }
.cat-more[aria-expanded="true"] .cat-icon { transform: rotate(180deg); }
.cat.is-new { animation: cats-down .22s ease-out; }
@keyframes cats-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cat.is-new { animation: none; } }

/* ---------- Карточки товаров ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: #fff;
  border: 1px solid var(--line); transition: box-shadow .15s, border-color .15s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--orange-100); }
.card-img { position: relative; aspect-ratio: 4 / 3; margin: 8px 8px 0; border-radius: 10px; overflow: hidden; background: var(--bg-warm); display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-ph { font-size: 44px; }
.chip-hit { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 6px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; padding: 10px 12px 12px; }
.card-cat { color: var(--ink-2); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-title { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-foot { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { font-weight: 800; font-size: 16px; white-space: nowrap; }
.price small { font-weight: 500; font-size: 12px; color: var(--ink-2); }
.price-lg { font-size: 28px; }
.price-lg small { font-size: 15px; }

/* ---------- Шаги и призыв ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; padding: 16px 18px; border-radius: var(--r); background: var(--bg-warm); }
.steps h3 { font-size: 16px; margin: 6px 0 4px; }
.steps p { grid-column: 2; color: var(--ink-2); margin: 0; font-size: 14px; }
.step-n { display: grid; place-items: center; grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; font: 800 15px var(--font-head); }
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 22px 28px; border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(135deg, #FF8F1F, var(--orange) 50%, #F25F00);
}
.cta p { margin: 4px 0 0; opacity: .95; }

/* ---------- Каталог ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; color: var(--ink-2); font-size: 13px; }
.crumbs a:hover { color: var(--orange-700); }
.page-title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 10px; background: var(--chip-bg); border: 0; font-weight: 600; font-size: 14px; cursor: pointer;
}
.chip:hover { background: var(--orange-50); }
.chip.is-on { background: var(--orange); color: #fff; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 14px; }
.sort { display: flex; align-items: center; gap: 8px; }
.sort select { width: auto; min-height: 34px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; }
.empty { text-align: center; padding: 40px 20px; border-radius: var(--r-lg); background: var(--bg-warm); }
.empty-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.empty p { color: var(--ink-2); max-width: 420px; margin: 0 auto 20px; }

/* ---------- Товар ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: start; }
.gallery { position: sticky; top: 120px; max-width: 600px; }
.gallery-main { aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--orange-50); display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-ph { font-size: 96px; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumb { flex-shrink: 0; width: 72px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on { border-color: var(--orange); }
.product-title { font-size: clamp(22px, 2.4vw, 28px); margin: 4px 0 10px; }
.price-row { margin-bottom: 12px; }
.terms { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.terms li { padding: 5px 10px; border-radius: 8px; background: var(--chip-bg); font-size: 13px; color: var(--ink-2); }
.terms b { color: var(--ink); }

.booking { padding: 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.booking-title { font-size: 16px; margin-bottom: 10px; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.dates label, .form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
input[type=date], input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input:not([type]), select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px; border-radius: var(--r-sm); border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 600; outline: none; transition: border-color .15s;
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); }
input:disabled { background: var(--bg-warm); color: var(--ink-2); }

.qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-weight: 700; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper input { width: 64px; min-height: 38px; text-align: center; padding: 0 4px; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper .btn { width: 38px; padding: 0; font-size: 20px; }

.summary { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--orange-50); }
.summary > div { display: flex; justify-content: space-between; gap: 10px; }
.summary b { font-size: 20px; color: var(--orange-700); }
.summary .muted { margin-top: 4px; font-size: 14px; }
.booking-msg { min-height: 0; margin: 10px 0 0; color: var(--err); font-weight: 700; font-size: 14px; }
.booking-msg:empty { display: none; }
.comment { margin: 14px 0; }
.comment summary { cursor: pointer; font-weight: 700; color: var(--orange-700); font-size: 14px; list-style: none; }
.comment summary::before { content: '+ '; }
.comment[open] summary::before { content: '− '; }
.comment textarea, .comment label { margin-top: 10px; }
.booking-note { margin: 12px 0 0; color: var(--ink-2); font-size: 13px; text-align: center; }

/* Календарь */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head b { font-size: 16px; text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink-2); padding: 4px 0; }
.cal-day {
  position: relative; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px;
  background: transparent; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .1s;
}
.cal-day:hover:not(:disabled) { background: var(--orange-50); }
.cal-day:disabled { color: #CFC5BC; cursor: default; }
.cal-day.is-busy { text-decoration: line-through; }
.cal-day.is-few::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.cal-day.is-range { background: var(--orange-100); border-radius: 0; }
.cal-day.is-start, .cal-day.is-end { background: var(--orange); color: #fff; border-radius: 10px; }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--line); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

.details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; margin-top: 32px; }
.details h2 { font-size: 18px; margin-bottom: 14px; }
.prose p { color: #3D352E; }
.specs { margin: 0; border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 14px; font-size: 14px; }
.specs div:nth-child(odd) { background: var(--bg-warm); }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- Корзина ---------- */
.nav-cart { gap: 6px; }
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: #fff; font-size: 11px; }
.buy-btns { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.page-count { font-size: .6em; vertical-align: middle; }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.cart-lines { display: flex; flex-direction: column; gap: 10px; }
.all-dates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--r); background: var(--chip-bg); }
.all-dates-title { font-weight: 700; font-size: 14px; margin-right: 4px; }
.all-dates input { width: auto; min-height: 36px; padding: 4px 10px; }
.cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 16px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.cart-line.has-error { border-color: #F5C2B6; background: #FFFBFA; }
.cart-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg-warm); font-size: 32px; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-title { font-weight: 700; }
.cart-title:hover { color: var(--orange-700); }
.cart-info > .muted { font-size: 13px; }
.cart-fields { display: grid; grid-template-columns: 1fr 1fr 80px; gap: 8px; margin-top: 6px; max-width: 460px; }
.cart-fields label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.cart-fields input { min-height: 36px; padding: 4px 10px; }
.cart-error { margin: 4px 0 0; color: var(--err); font-size: 13px; font-weight: 700; }
.cart-ok { margin: 4px 0 0; color: var(--ok); font-size: 13px; font-weight: 600; }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: 13px; }
.cart-side .btn { margin-top: auto; }
.cart-sum { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.cart-sum h2 { font-size: 18px; margin-bottom: 4px; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; }
.sum-row b { font-size: 22px; }
.cart-sum .btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------- Служебная страница ---------- */
.page { max-width: 760px; }
.page-body h2 { font-size: 18px; margin: 22px 0 8px; }
.page-body p { color: #3D352E; }
.page-body ul { margin: 0 0 12px; padding-left: 20px; color: #3D352E; }
.page-body li { margin-bottom: 4px; }
.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 20px; }
.contact { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r); background: var(--chip-bg); }
.contact span { color: var(--ink-2); font-size: 13px; }
.contact b { font-size: 16px; }
.contact a:hover { color: var(--orange-700); }

/* ---------- Вход / кабинет ---------- */
.auth { display: grid; place-items: center; padding: 32px 20px 48px; }
.auth-card { width: 100%; max-width: 420px; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card-left { max-width: 520px; }
.form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.auth-card-left .form { margin-top: 0; }
.auth-switch { margin: 20px 0 0; text-align: center; color: var(--ink-2); }
.auth-switch a { color: var(--orange-700); font-weight: 800; }

.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.account-head .page-title { margin: 0; }
.account-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.account-tabs form { margin: 0; }
.bookings { display: flex; flex-direction: column; gap: 12px; }
.booking-row { display: grid; grid-template-columns: 80px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; }
.booking-row.is-past { opacity: .6; }
.booking-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--orange-50); font-size: 32px; }
.booking-img img { width: 100%; height: 100%; object-fit: cover; }
.booking-info h3 { font-size: 15px; margin: 4px 0; }
.booking-info p { margin: 0; font-size: 14px; }
.booking-top { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.booking-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; font-size: 14px; }
.booking-side form { margin: 4px 0 0; }

.badge { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge-warn  { background: var(--warn-bg); color: var(--warn); }
.badge-ok    { background: var(--ok-bg); color: var(--ok); }
.badge-info  { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #F1EEEB; color: var(--ink-2); }

/* ---------- Подвал ---------- */
.footer { margin-top: 48px; padding: 36px 0 20px; background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: #FFB46B; margin-bottom: 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a:hover, .footer-phone:hover { color: #FFB46B; }
.footer-phone { font: 800 18px var(--font); }
.logo-light { margin-bottom: 12px; }
.muted-light { color: #B7ACA2; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid #3A322B; color: #8E837A; font-size: 14px; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .product, .details { grid-template-columns: 1fr; gap: 28px; }
  .nav-phone { display: none; }
  .gallery { position: static; }
}
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .logo-text { font-size: 15px; }
  .section { padding-block-start: 24px; }
  .hero-inner { padding: 26px 16px 30px; }
  .hero-lead { font-size: 14px; }
  .hero-search .btn { padding: 0 16px; }
  .steps { grid-template-columns: 1fr; }
  .cta { padding: 20px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .cat { grid-template-columns: 36px 1fr; padding: 10px; column-gap: 10px; }
  .cat-icon { width: 36px; height: 36px; font-size: 18px; }
  .cat-name { font-size: 12.5px; hyphens: auto; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card-foot .btn { display: none; }
  .booking-row { grid-template-columns: 64px 1fr; }
  .booking-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .infobar-hours { display: none; }
  .cart { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); gap: 10px; }
  .cart-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .cart-side .btn { margin: 0; }
  .cart-fields { grid-template-columns: 1fr 1fr; }
  .cart-fields label:last-child { grid-column: span 2; }
  .cart-sum { position: static; }

  .auth-card { padding: 20px; }
}
@media (max-width: 340px) {
  .nav .btn { padding: 0 8px; }
  .grid { grid-template-columns: 1fr; }
}
