/* ============================================================
   Пекарня — одностраничник
   Стиль: светло-синие тона в духе Windows 11 (Fluent)
   ============================================================ */

:root {
  --accent: #0067c0;
  --accent-hover: #0f74cd;
  --accent-active: #005a9e;
  --accent-soft: #eaf3fb;
  --accent-soft-2: #dcebf8;

  --bg: #f3f8fd;
  --surface: #ffffff;
  --stroke: #e2ecf6;
  --stroke-strong: #cfe0ef;

  --text: #1a2530;
  --text-muted: #5b6c7d;
  --text-faint: #64798c;

  --footer-bg: #10314e;
  --footer-text: #c6d8e9;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;

  --shadow-card: 0 1px 2px rgba(16, 60, 110, 0.05), 0 6px 20px rgba(16, 60, 110, 0.07);
  --shadow-pop: 0 4px 8px rgba(16, 60, 110, 0.10), 0 16px 40px rgba(16, 60, 110, 0.16);

  --font: "Segoe UI Variable Text", "Segoe UI", "Inter", system-ui, -apple-system, sans-serif;

  --header-h: 68px;
}

/* ---------- Сброс и база ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

/* Фото занимают место по aspect-ratio ещё до загрузки файла;
   фон-заглушка, чтобы пустая рамка не выглядела дырой */
.hero__media > img,
.menu__gallery img,
.about__media img,
.contacts__media img {
  background: var(--accent-soft-2);
  color: var(--text-muted); /* цвет alt-текста, если файл недоступен */
}

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  overflow-wrap: break-word;
  hyphens: manual;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.container--narrow { max-width: 860px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--surface);
  padding: 10px 16px;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-pop);
}
.skip-link:focus { left: 8px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              box-shadow 0.15s ease, transform 0.1s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn--lg { padding: 14px 28px; font-size: 16px; }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 103, 192, 0.35);
}
.btn--primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 4px 12px rgba(0, 103, 192, 0.4); }
.btn--primary:active { background: var(--accent-active); transform: translateY(1px); box-shadow: 0 1px 3px rgba(0, 103, 192, 0.35); }

.btn--ghost {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--stroke-strong);
}
.btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
.btn--ghost:active { background: var(--accent-soft-2); transform: translateY(1px); }

/* ---------- Шапка ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 251, 254, 0.85);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--stroke);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.header__logo { flex-shrink: 0; display: inline-flex; }
.header__logo img {
  width: auto;
  height: 40px;
  border-radius: 6px;
}

.header__nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
  min-width: 0;
}

.header__nav a {
  padding: 8px 13px;
  border-radius: var(--radius-s);
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.header__nav a:hover { background: var(--accent-soft); color: var(--accent); }
.header__nav a:active { background: var(--accent-soft-2); }

.header__contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.header__phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.25;
}

.header__phone {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }

.header__hours {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--accent);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cart-button:hover { background: var(--accent-soft); border-color: var(--accent); }
.cart-button:active { background: var(--accent-soft-2); }

.cart-button__count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

/* Бургер */

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(0, 103, 192, 0.14), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(76, 164, 224, 0.12), transparent 60%),
    linear-gradient(180deg, #eaf3fb 0%, var(--bg) 100%);
  padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--stroke-strong);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}

.hero__subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.hero__badges svg { color: var(--accent); flex-shrink: 0; }

.hero__media { position: relative; min-width: 0; }

.hero__media > img {
  width: 100%;
  aspect-ratio: 640 / 520;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-pop);
}

.hero__card {
  position: absolute;
  left: clamp(-24px, -2vw, -18px);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  max-width: min(88%, 320px);
}

.hero__card-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.hero__card-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

/* ---------- Преимущества ---------- */

.features { padding: clamp(36px, 5vw, 64px) 0 0; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-m);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-s);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---------- Секции ---------- */

.section { padding: clamp(48px, 7vw, 96px) 0 0; }

.section__head { max-width: 720px; margin-bottom: clamp(24px, 3.5vw, 40px); }

.section__title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.section__lead {
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Меню ---------- */

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.menu-tab {
  padding: 9px 18px;
  border: 1px solid var(--stroke-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.menu-tab:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.menu-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.menu-panel[hidden] { display: none; }

.menu-panel__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.menu-panel__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-m);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.menu-item:hover { border-color: var(--stroke-strong); box-shadow: var(--shadow-card); }

.menu-item__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-right: auto;
}

.menu-item__name { font-weight: 600; font-size: 15px; }
.menu-item__note { font-size: 13px; color: var(--text-faint); }

.menu-item__price {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}

.menu-item__add {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--stroke-strong);
  border-radius: var(--radius-s);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.menu-item__add:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.menu-item__add:active { transform: scale(0.92); }

.menu__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(28px, 4vw, 44px);
}

.menu__gallery figure { margin: 0; }
.menu__gallery img {
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

/* ---------- Доставка ---------- */

.delivery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.delivery-card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.delivery-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-s);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.delivery-card h3 { font-size: 20px; margin-bottom: 12px; }

.delivery-card__list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: 15px;
  color: var(--text-muted);
}
.delivery-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.75;
}

.steps {
  margin-top: clamp(28px, 4vw, 44px);
  background: linear-gradient(135deg, #e7f1fa 0%, #f0f7fd 100%);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3.5vw, 40px);
}

.steps__title { font-size: 22px; margin-bottom: 22px; }

.steps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ---------- О пекарне ---------- */

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.about__media {
  display: grid;
  gap: 16px;
}

.about__media img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}

.about__media img:first-child { aspect-ratio: 56 / 64; }
.about__img-secondary { aspect-ratio: 56 / 42; }

.about__text p { color: var(--text-muted); font-size: 16px; }

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 0;
}

.about__stats > div {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-m);
  padding: 18px 16px;
  text-align: center;
}

.about__stats dt {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
}

.about__stats dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---------- FAQ ---------- */

.faq__list { display: grid; gap: 10px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.faq-item:hover { border-color: var(--stroke-strong); }
.faq-item[open] { border-color: var(--accent); box-shadow: var(--shadow-card); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }

.faq-item p {
  padding: 0 20px 18px;
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Заказ ---------- */

.order__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}

.order__cart,
.order__form {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: clamp(22px, 3vw, 32px);
}

.order__subtitle { font-size: 20px; margin-bottom: 18px; }

.cart-list { display: grid; gap: 10px; }

.cart-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-m);
  background: var(--bg);
}

.cart-row__name {
  margin-right: auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.cart-row__price {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.cart-row__qty {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.cart-row__qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--stroke-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.cart-row__qty button:hover { background: var(--accent-soft); }
.cart-row__qty button:active { background: var(--accent-soft-2); }

.cart-row__qty span {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.cart-empty {
  color: var(--text-muted);
  font-size: 15px;
  margin: 0;
}
.cart-empty.is-hidden { display: none; }

.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke);
  font-size: 16px;
}
.cart-total strong { font-size: 24px; font-weight: 800; color: var(--accent); }

.cart-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--text-faint);
}

/* Форма */

.field { margin-bottom: 16px; }

.field label,
.field legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--stroke-strong);
  border-bottom: 2px solid var(--stroke-strong);
  border-radius: var(--radius-s);
  background: #fbfdff;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.field input:hover,
.field textarea:hover { background: #f5faff; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  background: var(--surface);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field input.is-invalid { border-color: #c22e2e; border-bottom-color: #c22e2e; }

.field textarea { resize: vertical; min-height: 74px; }

.field--radios { border: 0; padding: 0; margin: 0 0 16px; }

.field--radios .radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 18px;
  font-size: 15px;
  cursor: pointer;
}

.radio input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid var(--stroke-strong);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.radio input:checked {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 5px var(--accent);
}
.radio input:hover { border-color: var(--accent); }

.js-address-field.is-hidden { display: none; }

.order__submit { width: 100%; margin-top: 4px; }

.order__alt {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}
.order__alt-link { font-weight: 600; }

.order__policy {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
}

.order__success {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #bfe0c2;
  border-radius: var(--radius-m);
  background: #f0f9f1;
  color: #1d6b2a;
}
.order__success svg { flex-shrink: 0; color: #2e9e3f; }
.order__success p { margin: 4px 0 0; font-size: 14px; color: #2f5c37; }

/* ---------- Контакты ---------- */

.contacts { padding-bottom: clamp(48px, 7vw, 96px); }

.contacts__card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 48px);
}

.contacts__lead { color: var(--text-muted); }

.contacts__phone {
  display: inline-block;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
  margin: 6px 0 20px;
  white-space: nowrap;
}
.contacts__phone:hover { color: var(--accent); }

.contacts__messengers {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.msg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.msg-btn:hover { filter: brightness(1.08); color: #fff; }
.msg-btn:active { transform: translateY(1px); }

.msg-btn--wa { background: #23a455; }
.msg-btn--tg { background: #2496cc; }
.msg-btn--max { background: #5546cf; }

.contacts__note { font-size: 14px; color: var(--text-muted); margin: 0; }

.contacts__media { margin: 0; min-width: 0; }
.contacts__media img {
  width: 100%;
  aspect-ratio: 52 / 42;
  object-fit: cover;
  border-radius: var(--radius-m);
}

/* ---------- Подвал ---------- */

.footer {
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: clamp(36px, 5vw, 64px) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }

.footer__col h3 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 6px;
}

.footer__col a {
  color: var(--footer-text);
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer__col a:hover { color: #fff; }

.footer__col p { font-size: 14px; margin: 0; }

.footer__logo { display: inline-flex; margin-bottom: 10px; }
.footer__logo img {
  width: auto;
  height: 44px;
  border-radius: 6px;
}

.footer__phone {
  font-size: 18px !important;
  font-weight: 700;
  color: #fff !important;
  white-space: nowrap;
}

.footer__hours { color: var(--footer-text); }

.footer__messengers { display: flex; gap: 14px; }
.footer__messengers a { font-weight: 600; }

.footer__requisites {
  font-size: 12px !important;
  color: #8fa9c2;
  line-height: 1.6;
  margin-top: 6px !important;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
}

.footer__bottom p {
  margin: 0;
  font-size: 12px;
  color: #8fa9c2;
}

/* ---------- Плавающие кнопки (мобильные) ---------- */

.fab {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(247, 251, 254, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--stroke);
}

.fab__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.fab__btn:active { transform: translateY(1px); }

.fab__btn--call {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 103, 192, 0.35);
}
.fab__btn--call:hover { color: #fff; filter: brightness(1.08); }

.fab__btn--order {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--stroke-strong);
}

/* ---------- Тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 150;
  transform: translateX(-50%) translateY(8px);
  max-width: min(92vw, 420px);
  padding: 12px 20px;
  background: #1d2b3a;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius-s);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.is-shown {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Анимация появления ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Юридические страницы ---------- */

.legal { padding-top: 8px; }

.legal .section__lead { margin-bottom: 28px; }

.legal h2 {
  font-size: 20px;
  margin: 34px 0 12px;
}

.legal p { color: var(--text-muted); font-size: 15px; }
.legal p strong { color: var(--text); }

.legal ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1em;
}

.legal li {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 6px;
}

.legal .btn { margin-top: 24px; }

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1100px) {
  .header__nav { display: none; }
  .burger { display: flex; }

  .header__nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 10px 16px 16px;
    background: rgba(247, 251, 254, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--stroke);
    box-shadow: var(--shadow-pop);
  }
  .header__nav.is-open a { padding: 12px 14px; font-size: 16px; }

  .features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 620px; }
  .hero__card { left: 12px; }

  .menu-list { grid-template-columns: 1fr; }

  .about__inner { grid-template-columns: 1fr; }
  .about__media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
  }
  .about__media img:first-child { aspect-ratio: 4 / 3; }
  .about__img-secondary { aspect-ratio: 4 / 3; }

  .order__grid { grid-template-columns: 1fr; }

  .contacts__card { grid-template-columns: 1fr; }
  .contacts__media { order: -1; }
  .contacts__media img { aspect-ratio: 16 / 8; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  body { padding-bottom: 76px; } /* место под плавающие кнопки */
  .fab { display: flex; }

  .delivery__grid { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }

  .about__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .about__stats dt { font-size: 21px; }
  .about__stats dd { font-size: 11px; }

  .toast { bottom: 88px; }
}

@media (max-width: 560px) {
  .header__inner { gap: 10px; }
  .header__logo img { height: 32px; }
  .header__hours { display: none; }
  .header__phone { font-size: 14.5px; }
  .cart-button { display: none; } /* корзина дублируется плавающей кнопкой «Заказать» */

  .hero__card { padding: 10px 14px; bottom: 14px; }
  .hero__card-num { font-size: 21px; }

  .menu__gallery { grid-template-columns: 1fr; }

  .about__media { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .header__phone { font-size: 13.5px; }
  .header__logo img { height: 28px; }
}
