:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --text: #1a2230;
  --muted: #5b6676;
  --line: #dde2ea;
  --accent: #1f3a5f;
  --accent-hover: #162b47;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 16px; font-weight: 600; }
h1 { font-size: clamp(28px, 4.2vw, 42px); letter-spacing: -0.01em; max-width: 880px; }
h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 24px; }
h3 { font-size: 19px; }
p { margin: 0 0 16px; }

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

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.brand img { display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--accent); }

/* Первый экран */
.hero { padding: 88px 0 80px; border-bottom: 1px solid var(--line); }
.lead { font-size: 19px; color: var(--muted); max-width: 720px; margin-bottom: 32px; }
.button {
  display: inline-block;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}
.button:hover { background: var(--accent-hover); color: #fff; }

/* Разделы */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subhead { margin-top: 40px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.product { border-left: 3px solid var(--accent); padding-left: 20px; }
.product p:last-child { margin-bottom: 0; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--line); border-radius: 4px; padding: 4px 12px; font-size: 15px; background: var(--bg-alt); }

/* Стоимость */
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
.price { width: 100%; border-collapse: collapse; background: var(--bg); border: 1px solid var(--line); }
.price th, .price td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price th { font-size: 14px; font-weight: 600; color: var(--muted); }
.price tr:last-child td { border-bottom: 0; }
.price td:last-child { font-weight: 600; }

/* Контакты и реквизиты */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; }
.details { margin: 0; }
.details dt { font-size: 14px; color: var(--muted); margin-top: 14px; }
.details dt:first-child { margin-top: 0; }
.details dd { margin: 2px 0 0; overflow-wrap: anywhere; }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0; font-size: 15px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

/* Страница политики */
.doc { padding: 56px 0 72px; }
.doc h1 { font-size: clamp(26px, 3.4vw, 34px); }
.doc h2 { font-size: 21px; margin: 36px 0 12px; }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 52px; }
  .section { padding: 48px 0; }
  .site-header { position: static; }
}
