* { box-sizing: border-box; }
body { font-family: 'Segoe UI', 'Arial', sans-serif; margin: 0; color: #222; background: #f9f7f2; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Шапка */
.topbar { background: #0c0c1d; text-align: center; padding: 14px 16px 12px; }
.topbar img { width: 170px; margin: 0 auto; }
.nav { display: flex; justify-content: center; gap: 10px; padding: 10px 12px; background: #1a1a2e; position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.nav a { color: #ccc; text-decoration: none; font-size: 15px; padding: 6px 16px; border: 1px solid #c9a84c; border-radius: 20px; }
.nav a.active { background: #c9a84c; color: #1a1a2e; font-weight: 600; }
.nav a:hover { color: #fff; }
.nav a.active:hover { color: #1a1a2e; }

/* Герой */
.hero { background: #1a1a2e; color: #f9f7f2; text-align: center; padding: 36px 18px 30px; }
.hero h1 { font-size: 32px; margin: 0 0 6px; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.hero .slogan { font-size: 18px; color: #c9a84c; font-weight: 600; font-style: italic; margin: 0 0 10px; }
.hero .sub { font-size: 15px; color: #bbb; max-width: 640px; margin: 0 auto; }
.hero .cta-btn { display: inline-block; margin-top: 18px; background: #c9a84c; color: #1a1a2e; font-weight: 700; font-size: 17px; text-decoration: none; padding: 12px 30px; border-radius: 26px; }
.hero .cta-btn:hover { background: #dcb95e; }

/* Контент */
.wrap { max-width: 1080px; margin: 0 auto; padding: 26px 16px 10px; }
h2 { color: #1a1a2e; font-size: 20px; margin: 30px 0 12px; border-bottom: 2px solid #c9a84c; padding-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
h2:first-child { margin-top: 6px; }

/* Фотоплитка */
.photos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 4px; }
.photos .ph { border-radius: 8px; overflow: hidden; height: 120px; border: 1px solid #e5ddc8; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.ph-label { font-size: 13px; color: #666; text-align: center; margin: 6px 0 4px; }

/* Карточки меню */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0; }
.card { background: #fff; border: 1px solid #e5ddc8; border-radius: 10px; padding: 14px 16px; }
.card .mc-title { font-weight: 700; color: #1a1a2e; font-size: 15px; margin-bottom: 6px; border-bottom: 1px solid #c9a84c; padding-bottom: 4px; }
.card ul { margin: 0; padding-left: 18px; }
.card li { margin: 3px 0; font-size: 14px; }
.note { font-size: 13px; color: #555; margin-top: 10px; padding: 8px 12px; background: #fff; border-left: 3px solid #c9a84c; border-radius: 0 6px 6px 0; }

/* Цены */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0; }
.prices.two { grid-template-columns: repeat(2, 1fr); }
.prices.four { grid-template-columns: repeat(4, 1fr); }
.price-card { text-align: center; padding: 16px 12px; background: #1a1a2e; color: #f9f7f2; border: 2px solid #c9a84c; border-radius: 10px; font-size: 14px; }
.price-card .sum { display: block; font-size: 30px; font-weight: 700; color: #c9a84c; }
.price-card .pname { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #ccc; margin: 4px 0 6px; }

/* Условия */
.conds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0; }
.cond { text-align: center; padding: 12px 10px; background: #fff; border: 1px solid #c9a84c; border-radius: 10px; font-size: 13px; }
.cond .big { display: block; font-size: 16px; font-weight: 700; color: #1a1a2e; margin-bottom: 3px; }

/* Списки */
.why { padding-left: 20px; margin: 6px 0; }
.why li { margin: 6px 0; font-size: 15px; }

/* Таблица меню (школа) */
.menu-scroll { overflow-x: auto; }
table.menu-table { border-collapse: collapse; width: 100%; min-width: 720px; margin: 8px 0; background: #fff; }
.menu-table th { background: #1a1a2e; color: #c9a84c; text-align: left; padding: 7px 8px; font-size: 13px; }
.menu-table td { border: 1px solid #e5ddc8; padding: 7px 8px; font-size: 12.5px; vertical-align: top; line-height: 1.4; }
.menu-table tr:nth-child(even) td { background: #f9f7f2; }
.menu-table .menu-label { font-weight: 700; color: #1a1a2e; white-space: nowrap; }

/* Галочки соответствия */
.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0; }
.check { background: #fff; border: 1px solid #e5ddc8; border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.check::before { content: "\2713"; color: #2e7d32; font-weight: 700; margin-right: 7px; }

/* Шаги */
.steps { counter-reset: step; padding: 0; margin: 6px 0; list-style: none; }
.steps li { counter-increment: step; margin: 8px 0; font-size: 15px; padding-left: 36px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; background: #c9a84c; color: #1a1a2e; font-weight: 700; border-radius: 50%; text-align: center; line-height: 24px; font-size: 14px; }

/* Финальный CTA и контакты */
.final { background: #0c0c1d; color: #f9f7f2; text-align: center; padding: 34px 18px 28px; margin-top: 36px; border-top: 3px solid #c9a84c; }
.final .big-slogan { font-size: 24px; font-weight: 700; font-style: italic; color: #c9a84c; margin: 0 0 14px; }
.final .call { font-size: 15px; color: #ddd; margin: 0 0 16px; }
.final .phones { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.final .person { color: #ccc; font-size: 14px; }
.final .person .num { display: block; font-size: 24px; font-weight: 700; color: #c9a84c; text-decoration: none; }
.final .mess { color: #999; font-size: 13px; margin-top: 14px; }

@media (max-width: 820px) {
  .photos { grid-template-columns: repeat(3, 1fr); }
  .cards, .prices, .prices.two, .conds, .checks { grid-template-columns: 1fr; }
  .hero h1 { font-size: 24px; }
}
