:root {
  --bg: #071113;
  --bg-soft: #101615;
  --panel: #202221;
  --panel-2: #efefed;
  --text: #f6f6f2;
  --muted: #a6aaa7;
  --ink: #202020;
  --gold: #caa126;
  --accent: #32b9a6;
  --border: rgba(255,255,255,.13);
  --radius-xl: 58px;
  --radius-lg: 34px;
  --radius-md: 18px;
  --shadow: 0 28px 90px rgba(0,0,0,.34);
  --container: min(1120px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Onest, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.container { width: var(--container); margin: 0 auto; }
.section-dark { position: relative; background: var(--bg); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px max(40px, calc((100vw - 1120px) / 2));
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(4,12,13,.78), rgba(4,12,13,.28));
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; min-width: max-content; }
.brand__mark { width: 184px; height: auto; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: clamp(28px, 7vw, 105px); font-size: 12px; text-transform: uppercase; }
.main-nav a { opacity: .92; }
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.language-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 42px;
  height: 34px;
  padding: 0 8px;
  color: rgba(255,255,255,.72);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
}
.lang-btn.is-active { color: #fff; border-color: var(--accent); background: rgba(50,185,166,.16); }
.flag { width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.28); }
.flag-en {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0h60v30H0z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath fill='%23012169' d='M0 0h60v30H0z'/%3E%3Cpath stroke='%23fff' stroke-width='6' d='m0 0 60 30M60 0 0 30'/%3E%3Cpath stroke='%23C8102E' stroke-width='4' d='m0 0 60 30M60 0 0 30'/%3E%3Cpath stroke='%23fff' stroke-width='10' d='M30 0v30M0 15h60'/%3E%3Cpath stroke='%23C8102E' stroke-width='6' d='M30 0v30M0 15h60'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
}
.flag-ru { background: linear-gradient(to bottom, #fff 0 33.33%, #1f57a4 33.33% 66.66%, #d52b1e 66.66%); }
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 46px;
  padding: 0 28px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}
.outline-btn:hover { background: rgba(50,185,166,.13); }

.hero {
  min-height: 760px;
  padding: 122px 0 54px;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4,15,16,.98) 0%, rgba(4,15,16,.92) 34%, rgba(4,15,16,.42) 68%, rgba(4,15,16,.68) 100%),
    linear-gradient(180deg, rgba(4,15,16,0) 58%, var(--bg) 100%),
    url("./hero.jpg") center / cover no-repeat;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.hero__copy { max-width: 820px; }
.hero__lead {
  max-width: 680px;
  margin: 0 0 26px;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.15;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(40px, 5.1vw, 64px);
  line-height: 1.05;
  font-weight: 300;
  text-transform: uppercase;
}
.hero h1 span { color: var(--gold); font-weight: 700; }
.lead-form {
  width: min(660px, 100%);
  margin-top: 22px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.lead-form label { display: block; }
.lead-form label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}
.lead-form input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  color: var(--ink);
  border: 1px solid rgba(50,185,166,.28);
  border-radius: 5px;
  background: rgba(255,255,255,.98);
  outline: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.13);
}
.lead-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(50,185,166,.17);
}
.lead-form input::placeholder { color: #7d7d7d; opacity: .9; }
.form-note {
  margin: 14px 0 10px;
  color: #f3f3f1;
  font-size: 15px;
}
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 62px;
  margin-top: 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 22px 48px rgba(50,185,166,.22);
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: .01em;
}
.submit-btn:hover { background: #289f8f; }
.submit-btn[disabled] { opacity: .72; cursor: progress; }
.consent {
  max-width: 340px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.43);
  font-size: 12px;
  line-height: 1.35;
}
.consent a { color: var(--gold); }
.form-status { min-height: 20px; margin: 10px 0 0; color: #ffdedc; font-size: 14px; }

.section-heading { margin-bottom: 34px; }
.section-heading.split {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}
.section-heading h2,
.proof h2,
.cta h2 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: 300;
}
.section-heading p:not(.slash-label) {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.55;
}
.slash-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 17px;
  text-transform: uppercase;
}
.slash-label::first-letter { color: var(--gold); }

.why {
  padding: 92px 0 86px;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  background: linear-gradient(180deg, #222423 0%, #121313 100%);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature-card {
  position: relative;
  min-height: 330px;
  padding: 42px 28px 34px;
  color: var(--ink);
  background: var(--panel-2);
  border-radius: 46px 46px 46px 46px;
  overflow: hidden;
}
.feature-card__icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ff3e4e;
  border-radius: 50%;
  background: #2c2d2d;
  font-size: 25px;
}
.feature-card h3 {
  width: min(156px, calc(100% - 74px));
  min-height: 76px;
  margin: 0 0 20px;
  font-size: clamp(22px, 1.75vw, 25px);
  line-height: 1.04;
  text-transform: uppercase;
  font-weight: 400;
  overflow-wrap: normal;
}
.feature-card p { margin: 0; color: #333; font-size: 15.5px; line-height: 1.42; }
.feature-card strong { color: var(--gold); }
.feature-card small {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #989898;
  font-size: 12.5px;
  line-height: 1.35;
}

.cases { padding: 82px 0; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.case-grid article {
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
}
.case-grid h3 { margin: 0 0 52px; color: var(--gold); font-size: 24px; text-transform: uppercase; }
.case-grid p { margin: 0; color: var(--muted); line-height: 1.55; }

.process { padding: 70px 0 92px; }
.process__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.process-card {
  min-height: 420px;
  border-radius: 42px;
  overflow: hidden;
  background: #0d0e0e;
  box-shadow: var(--shadow);
}
.process-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.process-card > div,
.process-card--dark,
.process-card--accent {
  padding: 38px;
}
.process-card span { color: var(--gold); font-size: 24px; }
.process-card h3 {
  margin: 24px 0 22px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: 300;
}
.process-card p { margin: 0; color: var(--muted); font-size: 20px; line-height: 1.42; }
.process-card--accent { background: #1d1e1d; border: 1px solid rgba(50,185,166,.34); }

.proof { padding: 92px 0; background: #202221; }
.proof__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stats div {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(0,0,0,.18);
}
.stats strong { display: block; color: var(--gold); font-size: 44px; margin-bottom: 16px; }
.stats span { color: var(--muted); line-height: 1.35; }
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.review-grid article {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255,255,255,.06);
}
.review-grid p { min-height: 100px; margin: 0 0 22px; color: #d8d8d6; line-height: 1.5; }
.review-grid strong { color: var(--accent); }

.faq { padding: 92px 0; }
.faq-list {
  display: grid;
  gap: 18px;
}
.faq-list details {
  border-radius: 34px;
  background: #222423;
  overflow: hidden;
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 100px;
  padding: 26px 34px;
  cursor: pointer;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.2;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #fff;
  font-size: 58px;
  font-weight: 300;
  line-height: .7;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p {
  max-width: 820px;
  margin: -4px 34px 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.cta { padding: 54px 0; background: #0f1111; }
.cta__grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: center;
  padding: 48px;
  border: 1px solid rgba(50,185,166,.25);
  border-radius: 38px;
  background: linear-gradient(135deg, rgba(50,185,166,.12), rgba(255,255,255,.035));
}
.cta p { max-width: 550px; color: var(--muted); font-size: 20px; line-height: 1.45; }
.cta-link { margin: 0; }

.footer {
  position: relative;
  padding: 90px 0 38px;
  isolation: isolate;
}
.footer__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,17,19,.86), rgba(7,17,19,.95)),
    url("./footer.jpg") center / cover no-repeat;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}
.footer p,
.footer h3 { margin: 28px 0 0; font-size: 28px; line-height: 1.18; font-weight: 300; }
.footer a:hover { color: var(--accent); }
.footer-brand .brand__mark { width: 260px; }
.footer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.footer-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  color: var(--accent);
  font-size: 24px;
  font-weight: 600;
}
.footer-links {
  display: flex;
  gap: 34px;
  margin-top: 60px;
  color: rgba(255,255,255,.54);
  text-transform: uppercase;
  text-decoration: underline;
}

.cookie-modal {
  position: fixed;
  right: 28px;
  bottom: 24px;
  z-index: 80;
  width: min(560px, calc(100vw - 40px));
  padding: 24px;
  color: #202020;
  border-radius: 5px;
  background: rgba(245,245,243,.97);
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
}
.cookie-modal strong { display: block; margin-bottom: 10px; font-size: 18px; }
.cookie-modal p { margin: 0 0 18px; color: #777; line-height: 1.4; }
.cookie-modal div { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-modal button {
  height: 42px;
  padding: 0 20px;
  border: 1px solid #1d1d1d;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.cookie-modal button:first-child { color: #fff; border-color: var(--accent); background: var(--accent); }
.cookie-modal.is-hidden { display: none; }

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0,0,0,.68);
}
.success-modal[hidden] { display: none; }
.success-modal__box {
  position: relative;
  width: min(540px, 100%);
  padding: 42px;
  color: #232323;
  text-align: center;
  border-radius: 10px;
  background: #f4f3ef;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}
.success-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}
.success-modal__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  color: var(--accent);
  border: 1px solid rgba(50,185,166,.4);
  border-radius: 50%;
  background: rgba(50,185,166,.1);
  font-size: 28px;
}
.success-modal__label {
  color: #777;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}
.success-modal h2 { margin: 8px 0 16px; font-size: 28px; }
.success-modal__box > p { color: #686868; line-height: 1.55; }
.success-modal__rows {
  margin: 28px 0;
  padding: 6px 24px;
  border: 1px solid #d8d3ca;
  border-radius: 10px;
  text-align: left;
  background: rgba(255,255,255,.38);
}
.success-modal__rows div { padding: 18px 0; border-bottom: 1px solid #ded9d0; }
.success-modal__rows div:last-child { border-bottom: 0; }
.success-modal__rows span { display: block; margin-bottom: 5px; color: #7b7b7b; font-size: 13px; }
.success-modal__rows strong { font-size: 15px; }
.success-modal__note { padding-top: 16px; border-top: 1px solid #ddd8d0; font-size: 13px; }

@media (max-width: 980px) {
  .site-header { padding: 20px; }
  .main-nav { display: none; }
  .hero { min-height: auto; padding-top: 110px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__grid,
  .process__grid,
  .footer__grid { grid-template-columns: 1fr; }
  .stats,
  .review-grid,
  .case-grid { grid-template-columns: 1fr; }
  .cta__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --container: min(100vw - 32px, 560px); }
  .site-header {
    gap: 12px;
    padding: 16px;
    align-items: flex-start;
  }
  .brand__mark { width: 110px; height: auto; }
  .footer-brand .brand__mark { width: 170px; }
  .header-actions { gap: 8px; }
  .outline-btn { min-width: 118px; height: 42px; padding: 0 14px; font-size: 11px; }
  .lang-btn { min-width: 38px; height: 32px; padding: 0 7px; }
  .hero { padding: 104px 0 42px; }
  .hero__media {
    background:
      linear-gradient(90deg, rgba(4,15,16,.93), rgba(4,15,16,.5)),
      linear-gradient(180deg, rgba(4,15,16,0) 64%, var(--bg) 100%),
      url("./process.jpg") center top / cover no-repeat;
  }
  .hero__lead {
    max-width: 330px;
    margin-bottom: 42px;
    font-size: 15px;
  }
  .hero h1 {
    max-width: 360px;
    font-size: clamp(32px, 10vw, 42px);
  }
  .lead-form { margin-top: 120px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .lead-form input { height: 50px; padding: 0 18px; }
  .form-note { font-size: 13px; }
  .submit-btn { min-height: 56px; }
  .why { padding: 64px 0; border-top-left-radius: 34px; border-top-right-radius: 34px; }
  .section-heading.split { display: block; }
  .section-heading h2,
  .proof h2,
  .cta h2 { font-size: 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card {
    min-height: 260px;
    padding: 34px 26px 28px;
    border-radius: 32px;
  }
  .feature-card h3 { min-height: auto; margin-bottom: 20px; font-size: 28px; }
  .feature-card small { position: static; display: block; margin-top: 34px; }
  .process-card { min-height: auto; border-radius: 30px; }
  .process-card > div,
  .process-card--dark,
  .process-card--accent { padding: 28px; }
  .process-card h3 { font-size: 34px; }
  .process-card p { font-size: 17px; }
  .stats { grid-template-columns: 1fr; }
  .faq-list summary { min-height: 82px; padding: 24px; font-size: 25px; }
  .faq-list summary::after { font-size: 46px; }
  .faq-list details p { margin: -2px 24px 24px; }
  .cta__grid { padding: 30px 24px; border-radius: 28px; }
  .footer p,
  .footer h3 { font-size: 25px; }
  .footer-actions { grid-template-columns: 1fr; }
  .footer-links { flex-direction: column; gap: 18px; }
  .cookie-modal {
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 44vh;
    overflow: auto;
    border-radius: 10px 10px 0 0;
  }
  .success-modal__box { padding: 34px 22px; }
}
