/* =====================================================================
   ОФОРМЛЕНИЕ САЙТА (цвета, шрифты, расположение)
   ---------------------------------------------------------------------
   Главные цвета собраны ниже в :root — поменяйте их здесь,
   и они изменятся на всём сайте.
   ===================================================================== */

:root {
  --cream:       #FBF4E6;  /* основной фон */
  --cream-dark:  #F3E6CD;  /* фон блоков */
  --paper:       #FFFBF3;  /* фон карточек */
  --saffron:     #E3A33B;  /* шафрановый */
  --saffron-dk:  #C98419;
  --terracotta:  #BE5A32;  /* терракотовый — кнопки */
  --terracotta-dk:#9E4423;
  --burgundy:    #6E1E2B;  /* глубокий бордовый */
  --burgundy-dk: #4F1520;
  --green:       #2F4F3E;  /* глубокий зелёный */
  --ink:         #3B2A20;  /* цвет текста */
  --muted:       #7A6656;  /* второстепенный текст */
  --line:        #E6D5B8;  /* линии и рамки */
  --wa:          #1FAF55;  /* зелёный WhatsApp */
  --wa-dk:       #178C43;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  /* Marcellus не содержит русских букв — для них браузер возьмёт Cormorant Garamond */
  --font-deco:    "Marcellus", "Cormorant Garamond", Georgia, serif;
  --font-body:    "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 6px 24px rgba(79, 21, 32, .08);
  --shadow-lg: 0 14px 40px rgba(79, 21, 32, .16);
}

/* ---------- Базовые настройки ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--terracotta-dk); }
a:hover { color: var(--burgundy); }
h1, h2, h3 { font-family: var(--font-display); color: var(--burgundy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
/* Длинные слова (особенно русские) переносятся, а не вылезают за край экрана */
h1, h2, h3, p, li, label, .btn, .chip, .product-name, .cart-info h3 { overflow-wrap: break-word; hyphens: auto; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.mt { margin-top: 32px; }
.section { padding: 48px 0; }
.section-title { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.section-sub { color: var(--muted); margin-bottom: 28px; }
.lead { font-size: 1.12rem; }
.eyebrow {
  font-family: var(--font-deco);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--terracotta);
  margin-bottom: .6em;
}

/* ---------- Иконки ---------- */
[data-icon] { display: inline-flex; }
[data-icon] svg { width: 1.25em; height: 1.25em; }

/* ---------- Декоративные элементы ---------- */
/* Фестон (полукруги, как гирлянда-торан) */
.scallop {
  height: 14px;
  background:
    radial-gradient(circle at 12px 0, var(--burgundy) 10px, transparent 11px) 0 0 / 24px 14px repeat-x;
  position: relative;
  z-index: 1;
}
.scallop::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 10px; height: 6px;
  background: radial-gradient(circle, var(--saffron) 2px, transparent 2.5px) 6px 0 / 24px 6px repeat-x;
}
/* Разделитель: линия — мандала — линия */
.divider {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--saffron-dk); margin: 0 auto 18px; max-width: 260px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--saffron), transparent);
}
.divider svg { width: 30px; height: 30px; flex: none; }
.divider-left { margin-left: 0; justify-content: flex-start; max-width: 200px; }
.divider-left::before { display: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  min-height: 48px;
  text-align: center;
  line-height: 1.25;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: 0 4px 14px rgba(190, 90, 50, .3); }
.btn-primary:hover { background: var(--terracotta-dk); color: #fff; }
.btn-outline { border-color: var(--burgundy); color: var(--burgundy); background: transparent; }
.btn-outline:hover { background: var(--burgundy); color: var(--cream); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 4px 14px rgba(31, 175, 85, .3); }
.btn-whatsapp:hover { background: var(--wa-dk); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { font-size: 1.1rem; padding: .95em 1.5em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Верхняя полоска и шапка ---------- */
.topbar {
  background: var(--burgundy-dk);
  color: #F5DDB0;
  font-family: var(--font-deco);
  font-size: .74rem;
  letter-spacing: .12em;
  text-align: center;
  padding: 7px 16px;
  text-transform: uppercase;
}
@media (max-width: 419px) { .topbar { font-size: .64rem; letter-spacing: .05em; padding: 6px 10px; } }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 230, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--burgundy); }
.logo-mark { width: 40px; height: 40px; color: var(--saffron-dk); flex: none; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.logo-name { font-family: var(--font-deco); font-size: 1.15rem; letter-spacing: .04em; }
.logo-tag { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--terracotta); margin-top: 4px; }
/* Узкие телефоны: шапка с тремя кнопками языка должна поместиться в одну строку */
@media (max-width: 419px) {
  .header-inner { gap: 6px; }
  .logo { gap: 6px; }
  .logo-mark { width: 30px; height: 30px; }
  .header-actions { gap: 2px; }
  .icon-btn { width: 38px; height: 38px; }
  .icon-btn svg { width: 22px; height: 22px; }
}
@media (max-width: 349px) { .logo-name { font-size: 1rem; } .logo-tag { letter-spacing: .12em; } }
@media (min-width: 480px) { .logo-name { font-size: 1.35rem; letter-spacing: .06em; } .logo-tag { font-size: .62rem; letter-spacing: .3em; } }

.header-actions { display: flex; align-items: center; gap: 6px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--paper); }
.lang-switch button {
  border: 0; background: transparent; color: var(--muted);
  font-weight: 700; font-size: .74rem; padding: 7px 7px; letter-spacing: .03em;
}
@media (min-width: 400px) { .lang-switch button { padding: 7px 9px; font-size: .78rem; } }
.lang-switch button.active { background: var(--burgundy); color: #fff; }

.icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--burgundy); text-decoration: none;
}
.icon-btn:hover { background: var(--cream-dark); color: var(--burgundy); }
.icon-btn svg { width: 24px; height: 24px; }
.cart-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--terracotta); color: #fff;
  font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center;
  border: 2px solid var(--cream);
  transition: transform .2s;
}
.cart-badge.empty { background: var(--muted); opacity: .6; }
.cart-badge.bump { animation: bump .45s ease; }
@keyframes bump { 0%,100% { transform: scale(1); } 40% { transform: scale(1.35); } }

/* Меню: на телефоне — выпадающее, на компьютере — в строку */
.main-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  padding: 8px 16px 16px;
}
.main-nav.open { display: flex; }
.main-nav a {
  font-family: var(--font-deco);
  text-decoration: none; color: var(--ink);
  padding: 12px 4px; border-bottom: 1px dashed var(--line);
  letter-spacing: .06em; font-size: 1.05rem;
}
.main-nav a:last-child { border-bottom: 0; }
.main-nav a.active { color: var(--terracotta); }

@media (min-width: 860px) {
  .menu-toggle { display: none; }
  .main-nav {
    position: static; display: flex; flex-direction: row; gap: 4px;
    background: none; border: 0; box-shadow: none; padding: 0;
  }
  .main-nav a { border: 0; padding: 8px 14px; font-size: .98rem; position: relative; }
  .main-nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
    background: var(--saffron); transform: scaleX(0); transition: transform .25s;
  }
  .main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
}

/* ---------- Баннер на главной ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(227, 163, 59, .22), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(190, 90, 50, .14), transparent 50%),
    var(--cream);
  padding: 32px 0 44px;
}
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, rgba(110, 30, 43, .12) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
  mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.hero-inner { position: relative; display: grid; gap: 28px; align-items: center; }
.hero-text { text-align: center; }
.hero-title {
  font-family: var(--font-deco);
  font-weight: 400;
  font-size: clamp(2.8rem, 12vw, 5rem);
  letter-spacing: .04em;
  color: var(--burgundy);
  margin-bottom: .2em;
}
.hero-tagline {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 4.6vw, 1.6rem); color: var(--terracotta-dk);
  margin: -.1em 0 .7em;
}
.hero-text .divider-left { margin: 0 auto 18px; justify-content: center; max-width: 260px; }
.hero-text .divider-left::before { display: block; }
.hero-sub { font-size: 1.08rem; color: var(--ink); max-width: 520px; margin: 0 auto 26px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-media { position: relative; display: flex; justify-content: center; order: -1; }
.arch-frame {
  position: relative; z-index: 1;
  width: min(64vw, 340px);
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: 0 0 0 2px var(--saffron), var(--shadow-lg);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-mandala {
  position: absolute; z-index: 0;
  width: min(110vw, 520px); top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: var(--saffron); opacity: .35;
  animation: spin 120s linear infinite;
}
.hero-mandala svg { width: 100%; height: auto; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero-mandala { animation: none; } }

@media (min-width: 860px) {
  .hero { padding: 64px 0 80px; }
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .hero-text { text-align: left; }
  .hero-text .divider-left { margin: 0 0 22px; justify-content: flex-start; max-width: 200px; }
  .hero-text .divider-left::before { display: none; }
  .hero-sub { margin-left: 0; }
  .hero-buttons { justify-content: flex-start; }
  .hero-media { order: 0; }
  .arch-frame { width: 380px; }
}

/* ---------- О магазине и преимущества ---------- */
.about { padding-top: 56px; }
.about p { color: var(--ink); }
.features-section { padding-top: 0; }
.features { display: grid; gap: 16px; }
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  position: relative;
}
.feature::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px dashed rgba(227, 163, 59, .45); border-radius: 10px; pointer-events: none;
}
.feature h3 { font-size: 1.5rem; margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; }
.feature-icon {
  width: 56px; height: 56px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--burgundy); color: #F5DDB0; margin-bottom: 12px;
}
.feature-icon svg { width: 28px; height: 28px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Полоса «Приходите к нам» ---------- */
.visit-band {
  background-color: var(--green);
  background-image:
    radial-gradient(circle, rgba(227, 163, 59, .22) 1.4px, transparent 2px),
    radial-gradient(circle, rgba(227, 163, 59, .12) 1.4px, transparent 2px);
  background-size: 26px 26px; background-position: 0 0, 13px 13px;
  color: #F3EAD6;
  padding: 44px 0;
  margin-top: 24px;
}
.visit-inner { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; }
.visit-band h2 { color: #F5DDB0; font-size: 2.1rem; }
.visit-band p { margin: 0; max-width: 560px; }
@media (min-width: 760px) {
  .visit-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Заголовок внутренних страниц ---------- */
.page-head {
  background-color: var(--burgundy);
  background-image:
    radial-gradient(circle, rgba(227, 163, 59, .25) 1.3px, transparent 1.8px),
    radial-gradient(circle, rgba(227, 163, 59, .12) 1.3px, transparent 1.8px);
  background-size: 22px 22px; background-position: 0 0, 11px 11px;
  color: #F3E3C7;
  padding: 36px 0 30px;
  text-align: center;
}
.page-head h1 { color: #F8DDA6; font-size: clamp(2.2rem, 7vw, 3.2rem); margin-bottom: .2em; }
.page-head p { margin: 0 auto; max-width: 600px; opacity: .92; }
.page-head + .scallop { background: radial-gradient(circle at 12px 0, var(--burgundy) 10px, transparent 11px) 0 0 / 24px 14px repeat-x; }

/* ---------- Каталог: фильтры ---------- */
.filters {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; margin-bottom: 14px;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600; font-size: .92rem;
  white-space: nowrap;
  transition: all .2s;
  min-height: 40px;
}
.chip:hover { border-color: var(--saffron); }
.chip.active { background: var(--burgundy); border-color: var(--burgundy); color: #fff; }
.chip .count { opacity: .6; font-weight: 400; margin-left: 4px; }
@media (min-width: 700px) { .filters { flex-wrap: wrap; justify-content: center; overflow: visible; } }

/* ---------- Карточки товаров ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1000px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 8px 12px;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
  animation: fadeUp .45s ease both;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px 10px 10px;
  overflow: hidden;
  background: var(--cream-dark);
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-media img { transform: scale(1.05); }
.product-tag {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  background: rgba(251, 244, 230, .92); color: var(--burgundy);
  font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 479px) {
  /* длинные названия категорий переносятся на 2 строки вместо обрезки */
  .product-tag { white-space: normal; text-align: center; line-height: 1.25; width: max-content; font-size: .6rem; letter-spacing: .05em; }
}
.product-body { padding: 10px 4px 0; display: flex; flex-direction: column; flex: 1; }
.product-name { font-size: 1.15rem; margin-bottom: .25em; color: var(--ink); font-weight: 700; }
.product-desc {
  font-size: .82rem; color: var(--muted); line-height: 1.45; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--terracotta-dk); }
.btn-add {
  background: var(--burgundy); color: #fff; border: 0;
  border-radius: 999px; padding: 10px 12px; font-weight: 700; font-size: .92rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; transition: background .2s;
}
.btn-add:hover { background: var(--burgundy-dk); }
.btn-add.added { background: var(--green); }
.btn-add svg { width: 18px; height: 18px; }
@media (min-width: 480px) {
  .product-card { padding: 10px 10px 14px; }
  .product-name { font-size: 1.3rem; }
  .product-desc { font-size: .88rem; }
}
@media (min-width: 1000px) {
  .product-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .btn-add { padding: 10px 18px; }
}
.empty-note { text-align: center; color: var(--muted); padding: 30px 0; }

/* ---------- Общие карточки ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
}
@media (min-width: 600px) { .card { padding: 28px; } }

/* ---------- Корзина ---------- */
.cart-layout, .checkout-layout { display: grid; gap: 20px; align-items: start; }
.checkout-layout .summary-card { order: -1; } /* на телефоне итог заказа — над формой */
@media (min-width: 900px) { .checkout-layout .summary-card { order: 0; } }
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1fr 340px; gap: 28px; }
  .checkout-layout { grid-template-columns: 1fr 360px; gap: 28px; }
  .summary-card { position: sticky; top: 90px; }
}
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px 14px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-item:first-child { padding-top: 0; }
.cart-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-thumb { width: 76px; height: 92px; border-radius: 999px 999px 8px 8px; object-fit: cover; background: var(--cream-dark); }
.cart-info h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.cart-unit { font-size: .85rem; color: var(--muted); }
.cart-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button {
  width: 38px; height: 38px; border: 0; background: transparent; color: var(--burgundy);
  font-size: 1.2rem; font-weight: 700; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.qty button:hover { background: var(--cream-dark); }
.qty span { min-width: 30px; text-align: center; font-weight: 700; }
.line-total { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--terracotta-dk); }
.remove-btn {
  border: 0; background: none; color: var(--muted); font-size: .82rem;
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; margin-top: 4px;
  text-decoration: underline; text-underline-offset: 3px;
}
.remove-btn:hover { color: var(--terracotta-dk); }
.remove-btn svg { width: 15px; height: 15px; }

.summary-card h2 { font-size: 1.7rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
.sum-row.total {
  border-top: 2px solid var(--burgundy); margin-top: 8px; padding-top: 14px;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--burgundy);
}
.sum-note { font-size: .86rem; color: var(--muted); margin: 10px 0 18px; }
.sum-items { list-style: none; margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px dashed var(--line); }
.sum-items li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: .92rem; }
.sum-items li span:first-child { color: var(--ink); }
.sum-items li span:last-child { white-space: nowrap; font-weight: 700; }
.summary-card .btn + .btn { margin-top: 10px; }

.empty-box {
  max-width: 520px; margin: 0 auto; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 20px; box-shadow: var(--shadow);
}
.empty-mandala { display: block; width: 90px; margin: 0 auto 14px; color: var(--saffron); }
.empty-mandala svg { width: 100%; height: auto; }
.empty-box p { color: var(--muted); font-size: 1.05rem; }
.success-icon {
  width: 70px; height: 70px; border-radius: 50%; background: var(--wa); color: #fff;
  align-items: center; justify-content: center; margin-bottom: 14px;
}
.success-icon svg { width: 36px; height: 36px; }

/* ---------- Форма заказа ---------- */
.pay-note {
  display: flex; gap: 12px;
  background: #FDF0D5;
  border: 1px solid #F0D49B;
  border-left: 5px solid var(--saffron);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
}
.pay-note h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin: 0 0 4px; color: var(--burgundy); }
.pay-note p { margin: 0; font-size: .93rem; }
.pay-note-icon { color: var(--saffron-dk); flex: none; }
.pay-note-icon svg { width: 24px; height: 24px; }

.form-title { font-size: 1.5rem; margin: 22px 0 12px; }
.form-card > .form-title:first-of-type { margin-top: 0; }
.field { margin-bottom: 14px; flex: 1; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; /* 16px — чтобы iPhone не увеличивал страницу */
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(227, 163, 59, .25); }
.field input:user-invalid { border-color: #C0392B; }
.field-row { display: flex; flex-direction: column; gap: 0 14px; }
@media (min-width: 560px) { .field-row { flex-direction: row; } .field-row .field:first-child { max-width: 170px; } }

.delivery-options { display: grid; gap: 10px; margin-bottom: 8px; }
.delivery-option input { position: absolute; opacity: 0; pointer-events: none; }
.delivery-box {
  display: flex; align-items: center; gap: 12px;
  border: 2px solid var(--line); border-radius: 12px;
  padding: 14px; background: #fff; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.delivery-box > [data-icon] { color: var(--burgundy); }
.delivery-box > [data-icon] svg { width: 26px; height: 26px; }
.delivery-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.delivery-text small { color: var(--muted); }
.delivery-price { font-weight: 700; color: var(--terracotta-dk); white-space: nowrap; }
.delivery-option input:checked + .delivery-box { border-color: var(--terracotta); background: #FFF6EA; box-shadow: 0 0 0 3px rgba(190, 90, 50, .12); }
.delivery-option input:focus-visible + .delivery-box { outline: 3px solid var(--saffron); outline-offset: 2px; }
@media (min-width: 600px) { .delivery-options { grid-template-columns: 1fr 1fr; } }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 20px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--terracotta); flex: none; }
.form-hint { text-align: center; color: var(--muted); font-size: .85rem; margin: 10px 0 0; }

/* ---------- Контакты ---------- */
.contact-layout { display: grid; gap: 20px; }
@media (min-width: 860px) { .contact-layout { grid-template-columns: 380px 1fr; gap: 28px; } }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); margin: 0 0 4px; font-weight: 700; }
.contact-item p { margin: 0; font-size: 1.05rem; }
.contact-item a { color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream-dark); color: var(--burgundy);
  align-items: center; justify-content: center;
}
.contact-item-body { flex: 1; min-width: 0; }
/* Часы работы: дни слева, время справа */
.hours { margin: 0; }
.hours-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.hours-row:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours-row.is-closed dd { color: var(--muted); font-style: italic; }
.phone-link { font-size: 1.15rem; color: var(--terracotta-dk) !important; }
.map-box { border-radius: 12px; overflow: hidden; min-height: 300px; background: var(--cream-dark); position: relative; border: 1px solid var(--line); }
.map-box iframe { width: 100%; height: 320px; border: 0; display: block; }
@media (min-width: 860px) { .map-box iframe { height: 400px; } }
.map-address { color: var(--muted); font-size: .92rem; margin: 12px 0 14px; text-align: center; }
.map-placeholder {
  min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--muted); text-align: center; padding: 24px;
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(110, 30, 43, .04) 18px 36px),
    var(--cream-dark);
}
.map-consent { min-height: 320px; }
.map-consent strong { color: var(--ink); max-width: 260px; }
.map-consent .btn { background: var(--paper); }
.map-consent .btn:hover { background: var(--burgundy); }
.map-consent small { max-width: 300px; font-size: .8rem; line-height: 1.45; }
@media (min-width: 860px) { .map-consent { min-height: 400px; } }
.map-placeholder .pin { width: 52px; height: 52px; color: var(--terracotta); }
.map-placeholder .pin svg { width: 100%; height: 100%; }

/* ---------- Юридические страницы ---------- */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.6rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.2rem; margin-top: 1.2em; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .4em; }
.draft-warning {
  background: #FFF4D6; border: 1px solid #EBC66A; border-left: 5px solid var(--saffron);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 26px; font-size: .92rem;
}
.fill-mark { background: #FFE37A; color: #5a3b00; padding: 0 4px; border-radius: 4px; font-weight: 700; }
.legal-form { background: var(--paper); border: 1px dashed var(--line); border-radius: 10px; padding: 16px; }
.legal-lang-note { display: none; }
html:not([lang="es"]) .legal-lang-note { display: block; background: var(--cream-dark); padding: 10px 14px; border-radius: 8px; }

/* ---------- Подвал ---------- */
.site-footer {
  background: var(--burgundy-dk);
  color: #E9D6B8;
  padding: 0 0 90px; /* место под плавающую кнопку WhatsApp */
  margin-top: 40px;
  font-size: .94rem;
}
.site-footer .scallop-top {
  height: 14px;
  background: radial-gradient(circle at 12px 14px, var(--burgundy-dk) 10px, transparent 11px) 0 0 / 24px 14px repeat-x;
  transform: translateY(-13px);
}
.footer-grid { display: grid; gap: 28px; padding-top: 22px; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr .8fr 1.1fr 1fr; gap: 36px; } }
.footer-tagline { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: #F8DDA6; margin: -4px 0 8px; opacity: 1 !important; }
.site-footer h4 {
  font-family: var(--font-deco); font-weight: 400;
  color: var(--saffron); letter-spacing: .14em; text-transform: uppercase; font-size: .85rem;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #F3E3C7; text-decoration: none; }
.site-footer a:hover { color: var(--saffron); text-decoration: underline; }
.footer-brand .logo { color: #F8DDA6; margin-bottom: 12px; }
.footer-brand .logo-tag { color: var(--saffron); }
.footer-brand p { opacity: .85; }
.footer-bottom {
  border-top: 1px solid rgba(233, 214, 184, .2);
  margin-top: 28px; padding-top: 18px;
  display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
  font-size: .82rem; opacity: .8;
}
@media (min-width: 760px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- Плавающая кнопка WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: transform .2s, background .2s;
}
.wa-float:hover { transform: scale(1.08); background: var(--wa-dk); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* ---------- Всплывающее уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 70;
  transform: translate(-50%, 20px);
  background: var(--ink); color: #fff;
  padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--saffron); font-weight: 700; }
