/* base.css — сброс, типографика, сетка. Цвета и размеры только через переменные из tokens.css. */
*, *::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: 17px; line-height: 1.55; color: var(--text); background: var(--bg); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 var(--space); color: var(--text); }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0 0 var(--space); }
ul { margin: 0 0 var(--space); padding-left: 20px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space); }
.container.narrow { max-width: 640px; }
.center { text-align: center; }
.section { padding: var(--section) 0; }
.section--alt { background: var(--surface); }
.section__title { margin-bottom: calc(var(--space) * 1.5); }
.section__note { color: var(--muted); margin-top: var(--space); }
.lead { font-size: 19px; color: var(--muted); }
.or { text-align: center; color: var(--muted); margin: var(--space) 0; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space); min-height: 64px; }
.header__logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.header__logo:hover { text-decoration: none; }
.menu { display: none; align-items: center; gap: calc(var(--space) * 1.25); }
.menu a { color: var(--text); font-weight: 500; }
.menu__phone { white-space: nowrap; }
.menu.open { display: flex; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--space); }
.menu.open a { padding: 12px 0; border-bottom: 1px solid var(--border); }
.menu.open a:last-child { border-bottom: none; margin-top: var(--space); }
.burger { width: var(--tap); height: var(--tap); border: none; background: transparent; display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 12px; }
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
@media (min-width: 900px) {
  .menu { display: flex; }
  .menu.open { position: static; flex-direction: row; border: none; padding: 0; }
  .burger { display: none; }
}

/* Герой */
.hero { padding: calc(var(--section) * 0.75) 0 var(--section); background: linear-gradient(180deg, var(--surface), var(--bg)); }
.hero__inner { display: grid; gap: calc(var(--space) * 2); align-items: center; }
.hero__eyebrow { color: var(--brand); font-weight: 600; margin-bottom: 8px; letter-spacing: 0.02em; }
.hero__title { margin-bottom: var(--space); }
.hero__lead { font-size: 19px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: calc(var(--space) * 1.5) 0 var(--space); }
.hero__actions.center { justify-content: center; }
.hero__note { color: var(--muted); font-size: 15px; }
.hero__media img { border-radius: var(--radius); }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.1fr 0.9fr; } }

/* Услуги, о нас, контакты */
.cards { display: grid; gap: var(--space); }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.about { display: grid; gap: calc(var(--space) * 2); align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; } }
.about__media img { border-radius: var(--radius); }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.contacts { display: grid; gap: calc(var(--space) * 2); }
@media (min-width: 900px) { .contacts { grid-template-columns: 1fr 1fr; align-items: start; } }
.contacts__line { margin-bottom: 8px; }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: var(--space) 0; }
.map { min-height: 120px; border-radius: var(--radius); overflow: hidden; }
.map:empty { display: none; }

/* Подвал */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: calc(var(--section) * 0.6) 0; color: var(--muted); font-size: 15px; }
.footer__inner { display: grid; gap: var(--space); }
@media (min-width: 640px) { .footer__inner { grid-template-columns: repeat(3, 1fr); } }
.footer p { margin-bottom: 6px; }
.footer__name { color: var(--text); font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.footer__copy { margin-top: var(--space); }
