/* Дизайн-система сайта: цвет акцента — --accent (или "theme": {"accent": "#..."} в content.json). */
:root {
  --accent: #e4572e;
  --accent-ink: #fff;
  --ink: #14161a;
  --muted: #5d6470;
  --line: #e7e9ee;
  --bg: #ffffff;
  --soft: #f5f6f8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 8px 24px rgba(20, 22, 26, .06);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--muted); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

/* Кнопки */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; cursor: pointer; border: 0; font: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); padding: 15px 28px; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { padding: 14px 26px; border: 1.5px solid currentColor; color: inherit; }
.btn-small { background: var(--ink); color: #fff; padding: 9px 18px; font-size: .9rem; }

/* Первый экран */
.hero { position: relative; padding: clamp(72px, 12vw, 140px) 0 clamp(64px, 10vw, 110px); background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent), linear-gradient(180deg, #fff, var(--soft)); }
.hero-photo { color: #fff; background: linear-gradient(90deg, rgba(10, 12, 16, .82) 0%, rgba(10, 12, 16, .55) 55%, rgba(10, 12, 16, .25) 100%), var(--hero-image) center / cover no-repeat; }
.hero-photo p, .hero-photo .fact span { color: rgba(255, 255, 255, .82); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 14ch; font-weight: 800; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 48px; }
.fact b { display: block; font-size: 1.8rem; letter-spacing: -0.02em; }
.fact span { font-size: .9rem; color: var(--muted); }

/* Блоки */
.block { padding: clamp(56px, 8vw, 96px) 0; }
.alt { background: var(--soft); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 28px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature h3::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 16px; }

/* Каталог */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; margin-top: 28px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20, 22, 26, .06), 0 18px 40px rgba(20, 22, 26, .1); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.price { font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.badge { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, #fff); color: color-mix(in srgb, var(--accent) 80%, #000); margin-bottom: 10px; }

/* Шаги */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.steps li { display: flex; gap: 16px; }
.num { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--accent-ink); background: var(--accent); }

/* Фото */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 24px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
figure { margin: 0; } figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }

/* Вопросы */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); font-weight: 800; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; }

/* Новости */
.news { padding: 14px 0; border-bottom: 1px solid var(--line); } .news:last-child { border-bottom: 0; }
.news a { color: var(--accent); font-weight: 600; text-decoration: none; } .news time { display: block; color: var(--muted); font-size: .8rem; }

/* Контакты и форма */
.cta { background: var(--ink); color: #fff; }
.cta p { color: rgba(255, 255, 255, .75); }
.cta-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: start; }
.contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; font-size: 1.05rem; }
.contacts a { color: #fff; text-decoration: none; font-weight: 600; }
.form-box { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.form-box p { color: var(--muted); }
label { display: block; font-size: .9rem; font-weight: 600; margin: 0 0 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 14px; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
input[type='checkbox'] { width: auto; margin: 0 8px 0 0; }
.check { display: flex; align-items: flex-start; font-weight: 400; font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.form-box .btn { width: 100%; }

/* Подвал */
footer { padding: 36px 0 44px; font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; }
footer .legal { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; }
footer a { color: var(--muted); }

@media (max-width: 720px) {
  .top nav { display: none; }
  .top-inner .btn-small { margin-left: auto; }
  .facts { gap: 24px; }
}
