:root {
  --red: #e31d1a;
  --red-d: #b81412;
  --ink: #0d0d0d;
  --mute: #5a5a5a;
  --line: #e8e6e3;
  --paper: #f4f1ec;
  --card: #ffffff;
  --dark: #141414;
  --gold: #c4a574;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Golos Text", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  position: relative;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; letter-spacing: -.02em;
}
.mark {
  width: 28px; height: 28px;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; border-radius: 4px;
}
.nav { margin-left: auto; display: flex; gap: 20px; }
.nav a { font-size: 14px; color: #333; }
.nav a:hover, .nav a.on { color: var(--red); }
.nav .mobile-cta { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 20px; border: 0; cursor: pointer;
  border-radius: 8px; font-weight: 600; font-size: 14px;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-line { background: #fff; border: 1px solid #ccc; }
.menu-btn { display: none; border: 0; background: 0; font-size: 22px; margin-left: auto; }

.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  background: #1a1a1a center/cover no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.45) 55%, rgba(10,10,10,.25) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 48px 0; display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero.compact .wrap { grid-template-columns: 1fr 440px; }
.hero h1 {
  font-family: Unbounded, "Golos Text", sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 600;
}
.hero p.lead { font-size: 18px; color: #ddd; max-width: 38ch; margin: 0 0 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip {
  font-size: 12px; padding: 6px 10px; border-radius: 100px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
}

.panel {
  background: #fff; color: var(--ink);
  border-radius: 16px; padding: 22px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.panel h2 { margin: 0 0 14px; font-size: 20px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab {
  border: 1px solid var(--line); background: #f7f7f7; border-radius: 100px;
  padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.field { margin-bottom: 12px; }
.field label { display: flex; justify-content: space-between; font-size: 13px; color: var(--mute); margin-bottom: 6px; }
.field input[type=range] {
  width: 100%;
  min-height: 36px;
  margin: 0;
  accent-color: var(--red);
}
.panel .sum {
  font-family: Unbounded, sans-serif; font-size: 28px; margin: 8px 0 4px;
}
.panel .hint { font-size: 12px; color: var(--mute); margin: 0 0 12px; }
.panel input[type=text], .panel input[type=tel], .panel input[type=number], form.lead input, form.lead select, form.lead textarea {
  width: 100%; height: 44px; border: 1px solid #d9d6d1; border-radius: 8px;
  padding: 0 12px; background: #fff;
}
form.lead textarea { height: 96px; padding: 10px 12px; }
form.lead { display: grid; gap: 10px; }
form.lead label, .field-t { font-size: 13px; color: var(--mute); }

.sec { padding: 72px 0; }
.sec.paper { background: var(--paper); }
.sec h2 {
  font-family: Unbounded, sans-serif;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -.03em; margin: 0 0 10px; font-weight: 600;
}
.sub { color: var(--mute); max-width: 50ch; margin: 0 0 32px; }

.prods { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 280px 280px; gap: 14px; }
.prod {
  position: relative; overflow: hidden; border-radius: 16px; color: #fff;
  display: flex; align-items: flex-end; padding: 22px;
  background: #333 center/cover no-repeat;
}
.prod:first-child { grid-row: span 2; }
.prod::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,.78));
}
.prod > * { position: relative; }
.prod h3 { margin: 0 0 6px; font-size: 26px; font-family: Unbounded, sans-serif; font-weight: 500; }
.prod p { margin: 0; color: #ddd; font-size: 14px; }

.steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.step { background: #fff; border-radius: 16px; padding: 24px; }
.step b {
  display: block; font-family: Unbounded, sans-serif; font-size: 32px;
  color: var(--red); margin-bottom: 10px;
}
.partners {
  display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  color: #777; font-weight: 700; letter-spacing: .04em; font-size: 14px;
}
.partners span { padding: 10px 14px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }

.cases { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.case { background: #fff; border-radius: 16px; padding: 22px; border: 1px solid var(--line); }
.case small { color: var(--red); font-weight: 700; font-size: 12px; letter-spacing: .04em; }
.case h3 { margin: 8px 0; font-size: 20px; }

.offices { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.office { background: #fff; border-radius: 16px; padding: 22px; }
.office h3 { margin: 0 0 8px; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq p { color: var(--mute); margin: 8px 0 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ok { color: #1a7a3a; }
.err { color: var(--red); }

footer { background: var(--dark); color: #cfcfcf; padding: 48px 0 24px; font-size: 14px; }
footer a { color: #fff; }
.foot { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; margin-bottom: 28px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px; align-content: start; }
.foot-links a {
  flex: 1 1 auto;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  text-align: center;
  line-height: 1.25;
}
.foot-links a:hover { background: rgba(255,255,255,.12); }
.legal { color: #8a8a8a; font-size: 12px; line-height: 1.55; }

.page-hero {
  min-height: 420px; display: flex; align-items: flex-end;
  background: #222 center/cover no-repeat; color: #fff; padding: 40px 0 48px;
  position: relative;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.72));
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  font-family: Unbounded, sans-serif; font-size: clamp(32px, 5vw, 52px);
  margin: 0 0 10px; font-weight: 600;
}

@media (max-width: 900px) {
  .hero .wrap, .hero.compact .wrap, .prods, .steps, .cases, .offices, .split, .foot { grid-template-columns: 1fr; }
  .prods { grid-template-rows: 240px 200px 200px 200px 200px; }
  .prod:first-child { grid-row: auto; min-height: 260px; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    left: 0; right: 0; top: 68px; background: #fff; padding: 16px 20px 20px;
    border-bottom: 1px solid var(--line);
  }
  .menu-btn { display: block; }
  .header-in .btn { display: none; }
  .hero { min-height: auto; }
}

@media (max-width: 600px) {
  body.menu-open { overflow: hidden; }
  .wrap {
    width: min(var(--max), calc(100% - 32px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  }
  .header { padding-top: env(safe-area-inset-top); }
  .header-in { height: 60px; gap: 12px; }
  .header .logo { min-height: 44px; }
  .logo { font-size: 14px; }
  .nav.open {
    top: calc(60px + env(safe-area-inset-top));
    padding: 8px 16px max(16px, env(safe-area-inset-bottom));
    max-height: calc(100dvh - 60px - env(safe-area-inset-top));
    overflow-y: auto;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .nav.open a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-bottom: 1px solid var(--line);
  }
  .nav.open .mobile-cta {
    display: inline-flex;
    color: #fff;
    margin-top: 12px;
    border-bottom: 0;
  }
  .menu-btn {
    width: 44px;
    height: 44px;
    margin-right: -8px;
  }
  .hero { background-position: 58% center; }
  .hero::before { background: rgba(10,10,10,.68); }
  .hero .wrap { padding: 34px 0 40px; gap: 28px; }
  .hero h1 {
    font-size: clamp(26px, 8vw, 38px);
    line-height: 1.12;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }
  .hero p.lead { font-size: 16px; }
  .panel { width: 100%; padding: 18px 16px; border-radius: 12px; }
  .panel input,
  form.lead input,
  form.lead select,
  form.lead textarea { font-size: 16px; }
  .panel .sum { font-size: 24px; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .tab { min-height: 42px; padding: 8px 10px; }
  .btn { min-height: 46px; height: auto; padding-top: 11px; padding-bottom: 11px; }
  .sec { padding: 48px 0; }
  .sec h2 { font-size: clamp(25px, 8vw, 32px); line-height: 1.18; }
  .sub { margin-bottom: 24px; }
  .prods { grid-template-rows: repeat(5, minmax(180px, auto)); }
  .prod:first-child { min-height: 220px; }
  .prod { min-height: 180px; padding: 18px; border-radius: 12px; }
  .prod h3 { font-size: 21px; }
  .step, .case, .office { padding: 20px 18px; border-radius: 12px; }
  .steps, .cases, .offices { gap: 12px; }
  .partners { gap: 8px; }
  .partners span { flex: 1 1 calc(50% - 8px); text-align: center; }
  .faq summary { min-height: 44px; display: flex; align-items: center; font-size: 16px; }
  .page-hero { min-height: 330px; padding: 32px 0 36px; }
  .page-hero h1 { font-size: clamp(29px, 9vw, 38px); line-height: 1.12; }
  .split { gap: 28px; }
  form.lead[style] { padding: 20px 16px !important; }
  footer { padding: 38px 0 max(24px, env(safe-area-inset-bottom)); }
  .foot { gap: 22px; }
  .foot p { margin: 0; }
  .foot-links { gap: 8px; }
  .foot-links a { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; }
}
