/* obedvofis.kz — один файл стилей. Мобильная версия первична, точки: 640px (планшет), 960px (десктоп). */
:root {
  --bg: #fffaf3; --paper: #fff; --ink: #1f1a17; --muted: #6b625b; --line: #eadfd3;
  --accent: #d9481c; --accent-dark: #b63a14; --accent-soft: #fdeee6; --green: #2f7d4f; --wa: #1faa59; --wa-dark: #178a48;
  --radius: 14px; --shadow: 0 6px 24px rgba(80, 40, 10, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* атрибут hidden сильнее display: grid/flex у .week, .lead-form и др. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7.5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.section { padding: 48px 0; scroll-margin-top: 64px; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 20px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1.2; transition: background .15s, border-color .15s, transform .05s; font-family: inherit; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-sm { padding: 9px 14px; font-size: .92rem; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 250, 243, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; left: 7px; right: 7px; top: 9px; height: 4px; border-radius: 2px; background: #fff; box-shadow: 0 7px 0 rgba(255, 255, 255, .7); }
.logo-text { font-weight: 800; line-height: 1; font-size: 1.05rem; }
.logo-text small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; margin-top: 3px; letter-spacing: .04em; text-transform: uppercase; }
.nav { display: none; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--accent-dark); }
.header-cta { display: flex; gap: 8px; }
.header-cta .btn-wa { display: none; }

/* Первый экран: текст, под ним бегущая лента блюд во всю ширину */
.hero { padding: 28px 0 0; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 600; color: var(--accent-dark); margin-bottom: 10px; }
.lead { font-size: 1.12rem; color: #3b332e; max-width: 34em; }
.lead-sm { font-size: 1.05rem; color: #3b332e; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 10px; }
.hero-actions .btn { width: 100%; }
.hero-note { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin: 0 0 18px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(47, 125, 79, .45); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 125, 79, .45); } 70% { box-shadow: 0 0 0 8px rgba(47, 125, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 125, 79, 0); } }
/* Три цифры: порция, минимум, цена */
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stats li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 12px 12px; border-left: 1px solid var(--line); min-width: 0; }
.stats li:first-child { border-left: 0; }
.stat-icon { color: var(--accent-dark); display: inline-flex; margin-bottom: 2px; }
.stats strong { font-size: 1.25rem; line-height: 1.05; letter-spacing: -.02em; white-space: nowrap; }
.stat-label { font-size: .78rem; color: var(--muted); line-height: 1.2; }

/* Бегущая лента: дорожка из двух копий набора едет влево на 50 % своей ширины и начинается заново — шва не видно */
.marquee { --card: 150px; --gap: 12px; overflow: hidden; margin: 26px 0 34px; padding: 4px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: var(--gap); width: max-content; animation: marquee 45s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: none; width: var(--card); margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.marquee-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.marquee-item figcaption { font-size: .78rem; font-weight: 600; padding: 8px 10px 10px; line-height: 1.25; min-height: 3.2em; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .marquee { overflow-x: auto; } }

/* Полоса «как это работает»: три факта с иконками */
.how { padding: 0 0 40px; }
.how-strip { display: grid; gap: 10px; }
.how-item { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.how-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; }
.how-item strong { display: block; font-size: 1.2rem; letter-spacing: -.01em; line-height: 1.1; }
.how-item span:not(.how-icon) { color: var(--muted); font-size: .92rem; }

/* Блюда */
.dish { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dish img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.dish h4 { font-size: .95rem; margin: 10px 12px 2px; font-weight: 600; }
.dish p { margin: 0 12px 12px; font-size: .82rem; }
.share { margin-top: 20px; }

/* Галерея блюд */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery .dish { text-decoration: none; color: inherit; display: block; }
.gallery .dish:hover img { opacity: .92; }

/* Цена */
.price-grid { display: grid; gap: 20px; }
.price-big { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; }
.price-card strong { display: block; font-size: clamp(1.6rem, 6vw, 2.3rem); letter-spacing: -.02em; line-height: 1; margin-bottom: 6px; }
.price-card span { color: var(--muted); font-size: .9rem; }
.price-card-accent { background: var(--accent-soft); border-color: #f4cdbd; }
.price-card-accent strong { color: var(--accent-dark); }
.price-single { display: inline-block; min-width: 260px; margin-bottom: 8px; }
.price-single strong { font-size: clamp(2.2rem, 9vw, 3.4rem); }
.price-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.price-table th, .price-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: #f7efe6; font-weight: 600; font-size: .85rem; color: var(--muted); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:not(:first-child) { font-weight: 600; white-space: nowrap; }
.terms { list-style: none; padding: 0; margin: 20px 0 10px; display: grid; gap: 8px; }
.terms li { padding-left: 26px; position: relative; }
.terms li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.2-4.4 4.4a.8.8 0 0 1-1.1 0L4.3 8.7a.8.8 0 1 1 1.1-1.1l1.4 1.4 3.8-3.8a.8.8 0 1 1 1.1 1z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm3.7 6.2-4.4 4.4a.8.8 0 0 1-1.1 0L4.3 8.7a.8.8 0 1 1 1.1-1.1l1.4 1.4 3.8-3.8a.8.8 0 1 1 1.1 1z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Карточки «для кого» */
.cards { display: grid; gap: 14px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: #3b332e; }

/* Цех и упаковка */
.kitchen-grid { display: grid; gap: 24px; }
.kitchen-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.kitchen-items li { border-left: 3px solid var(--accent); padding-left: 14px; }
.kitchen-items h3 { font-size: 1rem; margin-bottom: 4px; }
.kitchen-items p { margin: 0; color: #3b332e; }
.kitchen-photo { margin: 0; }
.kitchen-photo img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* Вопросы */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--accent-dark); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: #3b332e; }

/* Форма */
.section-form { background: var(--paper); border-top: 1px solid var(--line); }
.lead-form { display: grid; gap: 14px; margin-top: 10px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #d8cdc1; border-radius: 10px; background: var(--bg); color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input.invalid { border-color: var(--accent); background: var(--accent-soft); }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.consent-note { margin: -4px 0 0; }
.form-error { color: var(--accent-dark); background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; margin: 0; }
.form-success { background: #e9f5ee; border: 1px solid #bfe0cc; border-radius: var(--radius); padding: 24px; margin-top: 10px; }
.form-success h3 { color: var(--green); }
.lead-form .btn { justify-self: start; width: 100%; }

/* Подвал */
.site-footer { padding: 36px 0 90px; border-top: 1px solid var(--line); font-size: .92rem; }
.footer-grid { display: grid; gap: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.copyright { margin-top: 20px; font-size: .85rem; }

/* Плавающая кнопка на телефоне */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 250, 243, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.sticky-cta .btn-primary { flex: 1; }

/* Короче заголовок таблицы на телефоне */
.price-table th { line-height: 1.25; }

/* Текстовые страницы */
.prose h2 { font-size: 1.25rem; margin-top: 1.6em; }

@media (min-width: 640px) {
  .section { padding: 64px 0; }
  .marquee { --card: 180px; --gap: 14px; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { width: auto; }
  .how-strip { grid-template-columns: repeat(3, 1fr); }
  .how { padding-bottom: 56px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: 1fr 1.3fr; align-items: start; }
  .price-big { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .lead-form .btn { width: auto; }
  .kitchen-grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .site-footer { padding-bottom: 36px; }
}
@media (min-width: 960px) {
  .nav { display: flex; }
  .header-cta .btn-wa { display: inline-flex; }
  .hero { padding: 56px 0 0; }
  .hero-text { text-align: center; max-width: 780px; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .stats { max-width: 640px; margin: 0 auto; }
  .stats li { align-items: center; text-align: center; padding: 18px 16px; }
  .stats strong { font-size: 1.7rem; }
  .stat-label { font-size: .88rem; }
  .marquee { --card: 220px; --gap: 16px; margin: 40px 0 48px; }
  .marquee-track { animation-duration: 60s; }
  .gallery { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .sticky-cta { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } .dot { animation: none; } }
