:root {
  --ink: #111114;
  --ink-2: #3d3d45;
  --muted: #7a7a86;
  --line: #e6e6ea;
  --bg: #ffffff;
  --bg-2: #f6f6f8;
  --accent: #ff5a1f;
  --accent-ink: #111114;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(17, 17, 20, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 6vw, 68px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: 19px; }
p { margin: 0 0 12px; color: var(--ink-2); }

.muted { color: var(--muted); }

/* ---------- шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo { display: flex; flex-direction: column; line-height: 1.1; }
.logo-mark { font-weight: 800; letter-spacing: 0.14em; font-size: 17px; }
.logo-mark em { color: var(--accent); font-style: normal; }
.logo-sub { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--ink-2); transition: color 0.15s; }
.nav a:hover { color: var(--ink); }

.header-cta { padding: 11px 20px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 12px 26px -14px rgba(255, 90, 31, 0.9); }
.btn-accent:hover { box-shadow: 0 16px 30px -12px rgba(255, 90, 31, 0.95); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- герой ---------- */
.hero {
  padding: 70px 40px 40px;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(255, 90, 31, 0.14), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 56px; align-items: center; }
.pill {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .dot { color: var(--accent); }
.lead { font-size: 18px; max-width: 560px; color: var(--ink-2); }
.hero-actions { display: flex; gap: 12px; margin: 30px 0 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; }
.hero-stats b { display: block; font-size: 28px; letter-spacing: -0.02em; }
.hero-stats span { font-size: 13px; color: var(--muted); }

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.hero-card-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 16px; }
.hero-card-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.hero-card-row span { color: var(--muted); }
.hero-card-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 16px; }
.hero-card-split div { background: var(--bg-2); border-radius: 14px; padding: 14px; text-align: center; }
.hero-card-split em { font-style: normal; font-size: 18px; }
.hero-card-split b { display: block; font-size: 19px; margin: 6px 0 2px; }
.hero-card-split span { font-size: 12px; color: var(--muted); }
.hero-card-link { font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---------- секции ---------- */
.section { padding: 76px 40px; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 1240px; margin: 0 auto 34px; }
.section-head p { max-width: 720px; font-size: 16px; }
.center { text-align: center; margin-top: 36px; }

/* ---------- направления ---------- */
.directions { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.direction {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 190px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.direction:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8d8de; }
.direction-meta { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.direction h3 { margin-bottom: 8px; }
.direction p { font-size: 14px; }
.direction-link { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--accent); }
.direction-accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.direction-accent h3, .direction-accent p, .direction-accent .direction-link { color: #fff; }
.direction-accent p { color: rgba(255, 255, 255, 0.72); }
.direction-accent .direction-meta { color: rgba(255, 255, 255, 0.55); }

/* ---------- шаги ---------- */
.steps { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-n { font-size: 12px; letter-spacing: 0.16em; color: var(--accent); font-weight: 700; }
.step h3 { margin: 10px 0 8px; }
.step p { font-size: 14px; margin: 0; }

/* ---------- лоты ---------- */
.lots { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lot { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform 0.18s, box-shadow 0.18s; }
.lot:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lot-photo { display: block; aspect-ratio: 1; background: var(--bg-2); overflow: hidden; }
.lot-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lot-brand { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lot h3 { font-size: 16px; margin: 0; }
.lot-desc { font-size: 13px; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lot-prices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.price em { font-style: normal; margin-right: 4px; }
.price-ground { color: var(--muted); font-weight: 500; }

/* ---------- тарифы ---------- */
.tariffs { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tariff { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tariff-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tariff-head em { font-style: normal; font-size: 22px; }
.tariff-head h3 { margin: 0; }
.tariff-time { margin-left: auto; font-size: 13px; color: var(--muted); }
.tariff ul { margin: 0 0 14px; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.tariff li { margin-bottom: 6px; }
.formula { font-size: 13px; color: var(--muted); background: var(--bg-2); padding: 12px 14px; border-radius: 12px; }

/* ---------- каталог ---------- */
.catalog-page { max-width: 1400px; margin: 0 auto; padding: 40px 40px 80px; }
.catalog-head { margin-bottom: 26px; }
.catalog-head h1 { font-size: clamp(30px, 4vw, 44px); }
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.filter-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.filters input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; }
.filters input:focus { outline: 2px solid rgba(255, 90, 31, 0.35); border-color: var(--accent); }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-scroll { max-height: 260px; overflow-y: auto; padding-right: 4px; }
.filter-item { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; border: 1px solid transparent; background: none; text-align: left; color: var(--ink-2); width: 100%; }
.filter-item:hover { background: var(--bg-2); }
.filter-item.is-active { background: var(--ink); color: #fff; }
.filter-item span { color: var(--muted); font-size: 12px; }
.filter-item.is-active span { color: rgba(255, 255, 255, 0.6); }
.filter-row { display: flex; gap: 8px; }
.catalog-bar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-size: 14px; }
.catalog-main .lots { grid-template-columns: repeat(3, 1fr); }

/* ---------- карточка лота ---------- */
.lot-page { max-width: 1180px; margin: 0 auto; padding: 40px 40px 90px; }
.lot-view { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.lot-gallery { display: grid; gap: 12px; }
.lot-gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); display: block; background: var(--bg-2); }
.lot-info h1 { font-size: clamp(26px, 3.4vw, 40px); }
.lot-cat { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.lot-specs { margin: 22px 0; border-top: 1px solid var(--line); }
.lot-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lot-specs span { color: var(--muted); }
.lot-price-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.lot-price-box div { background: var(--bg-2); border-radius: 14px; padding: 16px; }
.lot-price-box em { font-style: normal; }
.lot-price-box b { display: block; font-size: 22px; margin: 6px 0 2px; }
.lot-price-box span { font-size: 12px; color: var(--muted); }

/* ---------- калькулятор ---------- */
.calc { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.calc-fields label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.calc-fields input { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 17px; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--bg-2); }
.calc-card em { font-style: normal; font-size: 18px; }
.calc-card span { display: block; font-size: 13px; color: var(--muted); margin: 6px 0 4px; }
.calc-card b { font-size: 24px; }

/* ---------- контакты / FAQ ---------- */
.contacts { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.contact-card em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--accent); }
.contact-card b { font-size: 18px; }
.contact-card span { font-size: 13px; color: var(--muted); }
.contacts-note { max-width: 1240px; margin: 40px auto 0; }
.contacts-note ol { color: var(--ink-2); padding-left: 20px; }
.contacts-note li { margin-bottom: 8px; }

.faq { max-width: 900px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--ink-2); font-size: 15px; }

/* ---------- призыв / подвал ---------- */
.cta-band { margin: 0 40px 70px; padding: 44px; border-radius: 28px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, 0.7); margin: 0; }

.footer { border-top: 1px solid var(--line); padding: 56px 40px 30px; background: #fff; }
.footer-grid { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; }
.footer a { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.footer a:hover { color: var(--ink); }
.footer p { font-size: 14px; max-width: 320px; }
.footer-bottom { max-width: 1240px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; font-size: 12px; color: var(--muted); }

/* ---------- мобильная версия ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .directions { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .lots { grid-template-columns: repeat(2, 1fr); }
  .catalog-main .lots { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .lots, .tariffs, .contacts, .lot-view { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .header { padding: 14px 20px; }
  .hero, .section, .catalog-page, .lot-page { padding-left: 20px; padding-right: 20px; }
  .cta-band { margin: 0 20px 50px; flex-direction: column; align-items: flex-start; }
  .footer { padding: 40px 20px 24px; }
  .footer-bottom { flex-direction: column; }
  .calc-fields, .calc-result, .lot-price-box { grid-template-columns: 1fr; }
}
