@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/golos-text-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/golos-text-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('../fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #fff;
  --paper: #f6f7f9;

  --ink: #0b0b0c;
  --ink-2: #55575d;
  --ink-3: #6f7279;

  --line: #e7e9ed;
  --inv: #0b0b0c;
  --inv-ink-2: #a3a6ad;
  --inv-line: #24262b;

  --accent: #1d4ed8;

  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 40px);
  --r: 10px;

  --display: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--ink);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

h3,
h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
}

p {
  text-wrap: pretty;
}

.mark {
  color: var(--accent);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 110px 0;
}

.section--line {
  border-top: 1px solid var(--line);
}

.section--paper {
  background: var(--paper);
}

.section--inv {
  background: var(--inv);
  color: var(--inv-ink-2);
}

.section--inv h1,
.section--inv h2,
.section--inv h3,
.section--inv h4 {
  color: #fff;
}

.section--inv .mono {
  color: var(--inv-ink-2);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-title {
  margin-bottom: 14px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.16s ease-out, color 0.16s ease-out,
    border-color 0.16s ease-out, transform 0.16s ease-out;
}

.btn--ink {
  background: var(--ink);
  color: #fff;
}

.btn--ink:hover {
  background: var(--accent);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  background: #eef0f3;
  color: var(--ink);
}

.btn--line {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--line:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--inv {
  background: transparent;
  border-color: var(--inv-line);
  color: #fff;
}

.btn--inv:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn .i {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.link-more:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-more .i {
  width: 15px;
  height: 15px;
  transition: transform 0.16s ease-out;
}

.link-more:hover .i {
  transform: translateX(4px);
}

.section--inv .link-more,
.site-footer .link-more {
  color: #fff;
}

.section--inv .link-more:hover,
.site-footer .link-more:hover {
  color: #fff;
  text-decoration-color: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: block;
  width: auto;
  height: 32px;
  flex-shrink: 0;
  border-radius: 7px;
}

.brand-name {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.nav a {
  font-size: 15px;
  color: var(--ink-2);
  padding: 6px 0;
}

.nav a:hover {
  color: var(--ink);
}

.nav a.is-active {
  color: var(--ink);
  font-weight: 500;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-phone {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent);
}

.mobile-contacts {
  display: grid;
  gap: 10px;
  padding: 18px 0 24px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.mobile-contacts span {
  color: var(--ink-3);
}

.mobile-contacts a {
  color: var(--ink);
  text-decoration: none;
}

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

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.burger span {
  display: block;
  position: relative;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
}

.burger span::before,
.burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--ink);
}

.burger span::before {
  top: -5px;
}

.burger span::after {
  top: 5px;
}

.mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid var(--line);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
  border-bottom: 0;
}

.mobile-menu a::after {
  content: '→';
  font-family: var(--mono);
  color: var(--ink-3);
  transition: color 0.16s ease, transform 0.16s ease;
}

.mobile-menu a.is-active {
  color: var(--accent);
}

.mobile-menu a.is-active::after {
  color: var(--accent);
  transform: translateX(4px);
}

.page-head {
  padding: clamp(48px, 6vw, 72px) 0 clamp(36px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin: 16px 0 18px;
}

.hero {
  padding: clamp(72px, 9vw, 110px) 0 clamp(64px, 7vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: end;
}

.hero h1 {
  margin: 18px 0 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 28px);
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
}

.panel-list {
  list-style: none;
  display: grid;
}

.panel-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}

.panel-list .n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.panel-list .t {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}

.stats-strip {
  position: relative;
  background: transparent;
}.stats {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: clamp(30px, 4vw, 46px) clamp(16px, 2vw, 26px);
}

.stats-strip {
  background: var(--inv);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--inv-line);
  border-top: 1px solid var(--inv-line);
  border-bottom: 1px solid var(--inv-line);
}

.stat {
  background: var(--inv);
  padding: clamp(24px, 3vw, 34px) clamp(16px, 2vw, 26px);
}

.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}

.stat span {
  font-size: 14px;
  line-height: 1.4;
  color: var(--inv-ink-2);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  transition: background-color 0.16s ease-out, border-color 0.16s ease-out,
    transform 0.16s ease-out;
}

.card:hover {
  background: #fafbfc;
  border-color: #d7dae0;
  transform: translateY(-2px);
}

.card-idx {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--ink-2);
}

.card-foot {
  margin-top: auto;
  padding-top: 20px;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 16px;
}

.card--paper {
  background: var(--paper);
}

.card--paper:hover {
  background: #fff;
}

.card--inv {
  background: var(--inv);
  border-color: var(--inv-line);
  color: var(--inv-ink-2);
}

.card--inv:hover {
  background: var(--inv);
  border-color: #3a3d44;
}

.card--inv h3,
.card--inv .price {
  color: #fff;
}

.card--inv p,
.card--inv li,
.card--inv .card-idx {
  color: var(--inv-ink-2);
}

.card--inv .list li::before {
  color: #fff;
}

.price {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-2);
}

.list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-2);
  background: transparent;
}

.tag--accent {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
}

.rows {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 26px 10px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background-color 0.16s ease-out;
}

.row:hover {
  background: var(--paper);
}
.row-main h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.row-main p {
  margin-top: 6px;
  max-width: 62ch;
  font-size: 15px;
  color: var(--ink-2);
}

.row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

.row-price {
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink);
}

.row-arrow {
  width: 20px;
  height: 20px;
  color: var(--ink-3);
  transition: color 0.16s ease-out, transform 0.16s ease-out;
}

.row:hover .row-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 24px;
}

.step {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.step .n,
.principle .n {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #8b9099;
  margin-bottom: 14px;
}

.step h3,
.principle h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step p,
.principle p {
  font-size: 15px;
  color: var(--ink-2);
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.principle {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.case {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 3vw, 44px);
  padding: clamp(24px, 4vw, 40px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.case + .case {
  margin-top: 20px;
}

.case-side .mono {
  display: block;
  margin-bottom: 14px;
}

.case-side .tags {
  margin-top: 4px;
}

.case h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}

.case p {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.facts {
  list-style: none;
  display: grid;
}

.facts li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}

.facts li b {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-3);
  white-space: nowrap;
}

.facts li span {
  color: var(--ink);
}

details {
  border-top: 1px solid var(--line);
}

details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

details > summary::-webkit-details-marker {
  display: none;
}

details > summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: var(--accent);
}

details[open] > summary::after {
  content: '−';
}

details > .details-body {
  padding: 0 0 20px;
  max-width: 78ch;
  font-size: 15px;
  color: var(--ink-2);
}

details:last-of-type {
  border-bottom: 1px solid var(--line);
}

.quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.quote p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.quote-author b {
  display: block;
  font-size: 15px;
  color: var(--ink);
}

.quote-author span {
  font-size: 13px;
  color: var(--ink-3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.contact-list {
  display: grid;
}

.contact-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.contact-item .mono {
  display: block;
  margin-bottom: 10px;
}

.contact-item a,
.contact-item strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  word-break: break-word;
}

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

.contact-item p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 32px);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.16s ease-out;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field input.error,
.field select.error,
.field textarea.error {
  border-color: var(--accent);
}

.field .error {
  color: var(--accent);
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-note {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.cta {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.cta h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta p {
  color: var(--inv-ink-2);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.site-footer {
  background: var(--inv);
  color: var(--inv-ink-2);
  padding: clamp(48px, 5vw, 64px) 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 3vw, 44px);
  padding-bottom: 36px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 16px;
}

.footer-brand .brand-name {
  color: #fff;
}

.site-footer p {
  font-size: 15px;
  max-width: 42ch;
  color: var(--inv-ink-2);
}

.footer-title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--inv-ink-2);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 11px;
}

.footer-links a {
  font-size: 15px;
  color: #fff;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--inv-line);
  font-size: 14px;
  color: var(--inv-ink-2);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: var(--r);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s,
    background-color 0.16s ease-out;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--accent);
}

.back-to-top .i {
  width: 16px;
  height: 16px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js .reveal:nth-child(2) {
  transition-delay: 0.05s;
}

.js .reveal:nth-child(3) {
  transition-delay: 0.1s;
}

.js .reveal:nth-child(4) {
  transition-delay: 0.15s;
}

.js .reveal:nth-child(5) {
  transition-delay: 0.2s;
}

.js .reveal:nth-child(6) {
  transition-delay: 0.25s;
}

.error-code {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

@media (max-width: 1000px) {
  .grid--4,
  .steps,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav,
  .header-actions .btn {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .case {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .row {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
    padding: 22px 4px;
  }

  .row-main {
    grid-column: 1 / -1;
    order: 1;
  }

  .row-price {
    order: 2;
    justify-self: start;
  }

  .row-arrow {
    order: 3;
    justify-self: end;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(2.1rem, 9vw, 2.75rem);
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .principles,
  .form-actions,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn {
    width: 100%;
  }

  .cta-actions .btn {
    width: auto;
    flex: 1 1 200px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .principles {
    gap: 28px;
  }

  .facts li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

.request {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.request-info .list {
  margin-top: 22px;
}

.request-info .lead {
  margin-bottom: 0;
}

.request-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.request-contacts a {
  font-weight: 500;
}

.field-error {
  font-size: 13px;
  color: var(--accent);
}

.field.is-error input,
.field.is-error textarea,
.field.is-error select {
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .request {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-phone {
    display: none;
  }
}

