/* Некритичная часть стилей — грузится асинхронно после первой отрисовки. */

.sec-alt { background: #fff; }

/* ---------- направления ---------- */
.offer-card { display: flex; flex-direction: column; }
.offer-icon {
  width: 52px; height: 52px; border-radius: 14px; background: #fff1f0;
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.offer-text { color: #5f5a57; margin-bottom: 14px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.chips li {
  font-size: .87rem; font-weight: 600; color: #6c3a34;
  background: #fdf2ee; border: 1px solid #f3ddd4; border-radius: 999px; padding: 6px 12px;
}
.offer-link { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-block; padding: 6px 0; }
.offer-link:hover { text-decoration: underline; }

/* ---------- меню ---------- */
.menu-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.menu-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px;
  border-radius: 999px; background: #fff; border: 1px solid #f0ddd2;
  color: #4a4441; text-decoration: none; font-weight: 600; font-size: .92rem;
  transition: background-color .18s ease, color .18s ease;
}
.menu-nav a:hover { background: #d62828; border-color: #d62828; color: #fff; }
.menu-note {
  background: #fff8e6; border: 1px solid #f2e0b5; border-left: 4px solid #e8ae2e;
  border-radius: 12px; padding: 12px 16px; font-size: .95rem; color: #5c4a24; margin: 0 0 28px;
}
.menu-cats { display: grid; gap: 30px; }
.menu-cat { scroll-margin-top: 84px; break-inside: avoid; }
.menu-cat-title {
  font-size: 1.28rem; margin: 0 0 12px; padding-bottom: 10px;
  border-bottom: 2px solid #f4dcd2; color: #a81e22;
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item {
  display: flex; gap: 14px; align-items: baseline; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px dashed #eee0d8; break-inside: avoid;
}
.menu-item:last-child { border-bottom: 0; }
.mi-main { min-width: 0; }
.mi-name { display: block; font-weight: 700; }
.mi-desc { display: block; font-size: .88rem; color: #6f6864; line-height: 1.45; }
.mi-side { display: flex; align-items: baseline; gap: 10px; flex: 0 0 auto; white-space: nowrap; }
.mi-weight { font-size: .85rem; color: #8b827d; }
.mi-price { font-weight: 800; color: #22201f; }
.mi-price-tbd { font-weight: 600; font-size: .85rem; color: #8b827d; font-style: italic; }

/* ---------- на вынос ---------- */
.takeaway-box {
  background: linear-gradient(135deg, #d62828 0%, #a81e22 100%);
  color: #fff; border-radius: 22px; padding: 28px; display: grid; gap: 24px;
}
.takeaway-box .kicker { background: rgba(255, 255, 255, .18); color: #fff; }
.takeaway-box h2 { color: #fff; }
.takeaway-main p { color: #ffe3e0; }
.takeaway-box .btn-primary { background: #fff; color: #b81f20; }
.takeaway-box .btn-primary:hover { background: #ffe9e6; }
.takeaway-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.takeaway-list li {
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px; padding: 13px 16px;
}
.takeaway-list strong { display: block; font-size: 1.02rem; }
.takeaway-list span { display: block; font-size: .87rem; color: #ffd7d3; }

/* ---------- о нас ---------- */
.about-text { max-width: 62ch; color: #4a4441; margin-bottom: 26px; }
.adv-grid { display: grid; gap: 16px; }
.adv-card p { color: #5f5a57; margin: 0; font-size: .95rem; }

/* ---------- галерея ---------- */
.photo-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: 14px; display: block; object-fit: cover; }
.photo figcaption { font-size: .87rem; color: #6f6864; padding-top: 6px; }
.gallery-empty { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.gallery-empty p { margin: 0; color: #5f5a57; max-width: 56ch; }
.tg-row { display: grid; gap: 14px; margin-top: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tg-card {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: #22201f;
  background: #fff; border: 1px solid #f2e2da; border-radius: 16px; padding: 16px;
  transition: transform .18s ease;
}
a.tg-card:hover { transform: translateY(-2px); }
.tg-card strong { display: block; }
.tg-card em { display: block; font-style: normal; color: #2ba0da; font-size: .9rem; font-weight: 600; }
.tg-card small { display: block; color: #6f6864; font-size: .82rem; line-height: 1.4; }
.tg-qr img { width: 96px; height: 96px; }

/* ---------- контакты ---------- */
.contacts-grid { display: grid; gap: 18px; align-items: start; }
.contact-list { margin: 0 0 20px; display: grid; grid-template-columns: 1fr; gap: 2px; }
.contact-list dt { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: #8b827d; font-weight: 700; }
.contact-list dd { margin: 0 0 14px; }
.contact-strong { font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.map-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.map-face { line-height: 0; background: #eaf3e6; }
.map-face svg { width: 100%; height: auto; display: block; }
.map-body { padding: 20px; }
.map-addr { margin: 0 0 6px; }
.map-note { margin: 0 0 16px; color: #6f6864; font-size: .92rem; }

/* ---------- форма ---------- */
.form-box {
  background: #fff; border: 1px solid #f2e2da; border-radius: 22px; padding: 24px;
  display: grid; gap: 24px;
}
.form-intro p { color: #5f5a57; }
.form-phone a { font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.lead-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  font: inherit; font-size: 16px; width: 100%; padding: 12px 14px; min-height: 48px;
  border: 1.5px solid #e6d6cc; border-radius: 12px; background: #fffdfb; color: #22201f;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: #d62828; outline: none; box-shadow: 0 0 0 3px rgba(214, 40, 40, .16); }
.field.invalid input, .field.invalid textarea { border-color: #c1272d; background: #fff6f5; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: #d62828; }
.field-check label { font-weight: 400; font-size: .92rem; color: #4a4441; line-height: 1.5; }
.field-check .err { grid-column: 1 / -1; }
.err { margin: 0; font-size: .85rem; color: #c1272d; min-height: 0; }
.err:empty { display: none; }
.form-submit { justify-self: start; min-width: 180px; }
.form-status { margin: 0; font-weight: 600; }
.form-status.ok { color: #1c7a3e; }
.form-status.bad { color: #c1272d; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- знаки программы ---------- */
.gov-mark-text { display: block; line-height: 1.3; }
.gov-mark-text strong { display: block; font-size: .92rem; font-weight: 800; color: #1b1b1b; max-width: 15ch; }
.gov-mark-text em { display: block; font-style: normal; font-size: .78rem; color: #5f5a57; max-width: 20ch; }

/* ---------- юридические страницы ---------- */
.legal { max-width: 78ch; }
.legal h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.legal h3 { font-size: 1.1rem; margin-top: 1.8em; }
.legal ul, .legal ol { padding-left: 1.2em; }
.legal li { margin-bottom: .45em; }
.legal-meta { color: #6f6864; font-size: .92rem; }
.legal-box { background: #fff; border: 1px solid #f2e2da; border-radius: 16px; padding: 20px; margin-bottom: 24px; }

@media (min-width: 720px) {
  .takeaway-box { grid-template-columns: 1.1fr .9fr; padding: 36px; align-items: center; }
  .form-box { grid-template-columns: .9fr 1.1fr; padding: 32px; gap: 34px; align-items: start; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-list { grid-template-columns: 8.5rem 1fr; align-items: baseline; }
  .contact-list dt { padding-top: 2px; }
}

@media (min-width: 1000px) {
  /* раздел на всю ширину, блюда внутри — в две колонки: так нет пустот */
  .menu-list { column-count: 2; column-gap: 52px; }
  .adv-grid { grid-template-columns: repeat(3, 1fr); }
  .contacts-grid { grid-template-columns: 1fr 1.1fr; }
}

/* знаки государственных программ */
.progbadges{margin-top:28px}
.progbadges__title{font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.65;margin:0 0 12px}
.progbadges__row{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}
.progbadge{display:inline-flex;align-items:center;justify-content:center;background:#fff;border-radius:12px;padding:14px 20px;box-sizing:border-box}
.progbadge img{display:block;height:66px;width:auto}
@media (max-width:420px){.progbadge img{height:58px}}
.progbadges__note{margin:12px 0 0;font-size:12px;opacity:.7;max-width:56ch}
@media (max-width:420px){.progbadge{width:100%}}

/* ---------- Аттракционы ---------- */
.attr-grid{display:grid;gap:16px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
.attr-card{background:#fff;border:1px solid #f0d9d8;border-radius:16px;overflow:hidden;
display:flex;flex-direction:column}
.attr-photo{width:100%;height:200px;object-fit:cover;display:block;background:#f7efee}
.attr-body{padding:14px 16px 16px}
.attr-body h3{margin:0 0 6px;font-size:1.05rem}
.attr-body p{margin:0;color:#5a504e;font-size:.95rem;line-height:1.5}
.attr-meta{margin-top:8px !important;font-weight:600;color:#c1272d !important;font-size:.9rem !important}
.zoo-strip{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));margin-top:16px}
.zoo-strip img{width:100%;height:190px;object-fit:cover;border-radius:12px;display:block}
.attr-note{margin-top:14px;color:#6b615f;font-size:.92rem}

/* Шапка липкая: без отступа якорь уводил заголовок раздела под неё —
   заметно на новом пункте «Аттракционы». У .menu-cat такой отступ уже был,
   а у самих секций — нет. */
section[id]{scroll-margin-top:88px}
