@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/Unbounded-Bold.woff2') format('woff2'),
        url('../fonts/Unbounded-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Unbounded';
    src: url('../fonts/Unbounded-Medium.woff2') format('woff2'),
        url('../fonts/Unbounded-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}



@font-face {
    font-family: 'Ubuntu Sans';
    src: url('../fonts/UbuntuSans-Medium.woff2') format('woff2'),
        url('../fonts/UbuntuSans-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ubuntu Sans';
    src: url('../fonts/UbuntuSans-Bold.woff2') format('woff2'),
        url('../fonts/UbuntuSans-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Шрифты блога: TT Norms Pro Serif (Regular 400 / Demibold 600 / Bold 700)
   и TT Norms Std Trial Condensed (Bold 700). Применяются только в blog.css. */
@font-face {
    font-family: 'Charter';
    src: url('../fonts/charter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Graphik";
    src: url('../fonts/Graphik-Regular-Converted.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Graphik";
    src: url('../fonts/Graphik-Semibold-Converted.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Norms Pro Serif';
    src: url('../fonts/tt-norms-pro-serif-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Norms Pro Serif';
    src: url('../fonts/tt-norms-pro-serif-medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Norms Pro Serif';
    src: url('../fonts/tt-norms-pro-serif-demibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Norms Pro Serif';
    src: url('../fonts/tt-norms-pro-serif-bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TT Norms Std Trial Condensed';
    src: url('../fonts/TT-Norms-Std-Trial-Condensed-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
  --bg: #4a4a4a;
  --bg-deep: #454545;
  --red: #D83B3B;
  --red-dark: #d92d2d;
  --text: #737373;
  --heading: #4c4c4c;
  --muted: #8b8b8b;
  --white: #fff;
  --soft: #f7f7f7;
  --border: #e8e8e8;
  --radius-xl: 42px;
  --radius-lg: 20px;
  --radius-modal: 50px;
  --modal-note: #a8a8a8;
  --field-muted: #c8c8c8;
  --shadow: 0 8px 28px rgba(0,0,0,.05);
  --container: 1700px;
  --grid-cols: 12;
  --grid-gap: 20px;
  --overlap: var(--radius-xl);
  --section-padding-y: 100px;
}

@media (max-width: 480px) {
  :root { --radius-lg: 15px; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Ubuntu Sans';
  color: var(--text);
  background: #fff;
  font-size: 18px;
  line-height: 26px;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red); text-decoration: underline; }
button, a { -webkit-tap-highlight-color: transparent; }

/* Глобальные состояния ссылок: нейтрализация дефолтных синих/фиолетовых
   цветов Underscores (style.css) и браузера. Hover — 75% прозрачности
   текущего цвета, visited — цвет родителя (как у обычной ссылки).
   Компонентные цвета, объявленные ниже, перекрывают эти правила. */
a:visited { color: inherit; }
a:hover,
a:focus,
a:active { color: inherit; opacity: .75; }
.btn:hover,
.btn:focus,
.btn:active { opacity: 1; }
.container { width: min(var(--container), calc(100% - 64px)); margin: 0 auto; }
.container-small {
  width: min(calc((var(--container) - (var(--grid-cols) - 1) * var(--grid-gap)) / var(--grid-cols) * (var(--grid-cols) - 2) + (var(--grid-cols) - 3) * var(--grid-gap)), 100%);
  margin: 0 auto;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  color: #fff;
  transition: background-color .3s, filter .3s;
}
.header-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
}
.site-header:not(.is-scrolled) .header-inner { padding-top: 50px; }
.logo-brand { display: inline-flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.brand { display: inline-flex; color: inherit; text-decoration: none; }
.brand svg { display: block; width: 126px; height: 46px; }
.logo-tagline {
  font-family: 'Unbounded';
  font-size: 13px;
  line-height: 15px;
  color: inherit;
}
.main-nav { display: flex; align-items: center; gap: 80px; }
.main-nav a { color: rgba(255,255,255,.75); font-size: 18px; line-height: 26px; text-decoration: none; transition: color .2s; }
.main-nav a:hover { color: #fff; }
.header-contacts { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.header-location { font-size: 12px; line-height: 24px; color: rgba(255,255,255,.5); }
.header-contact-row { display: flex; align-items: center; gap: 16px; }
.header-messenger, .header-messenger:visited { display: inline-flex; color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.header-messenger svg { display: block; }
.header-messenger:hover { color: #fff; }
.header-phone {
  font-family: 'Unbounded';
  font-size: 18px;
  line-height: 26px;
  color: #fff;
  margin-left: auto;
  white-space: nowrap;
  text-decoration: none;
}
.header-phone-code { color: rgba(255,255,255,.5); }
.burger { display: none; }

.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  top: 100%;
  width: var(--overlap);
  height: var(--overlap);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.site-header::before {
  right: 0;
  background: radial-gradient(circle at top left, transparent calc(var(--overlap) - 1px), var(--white) var(--overlap));
  transform: rotate(270deg);
}
.site-header::after {
  left: 0;
  background: radial-gradient(circle at top right, transparent calc(var(--overlap) - 1px), var(--white) var(--overlap));
  transform: rotate(90deg);
}
.site-header.is-scrolled {
  position: fixed;
  background-color: var(--white);
  color: var(--heading);
  filter: drop-shadow(var(--shadow));
}
.site-header.is-scrolled::before,
.site-header.is-scrolled::after {
  opacity: 1;
}
.site-header.is-scrolled .main-nav a,
.site-header.is-scrolled .header-phone {
  color: var(--heading);
}
.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .header-messenger:hover {
  color: var(--red);
}
.site-header.is-scrolled .header-location,
.site-header.is-scrolled .header-phone-code,
.site-header.is-scrolled .header-messenger {
  color: color-mix(in srgb, var(--heading) 50%, transparent);
}
.site-header.is-scrolled .burger span {
  background: var(--heading);
}

.dark-section { background: var(--bg); color: #fff; position: relative; }
.hero {
  min-height: 570px;
  overflow: hidden;
  position: relative;
  background-size: contain;
  background-position: 70%;
  background-repeat: no-repeat;
}
.hero--ipr {
  background-image: url('../images/hero/2-ipr.png');
}

.hero--dty {
  background-image: url('../images/hero/1-dty.png');
}

.hero-grid {
  min-height: 570px;
  display: grid;
  align-items: start;
}
.hero-copy { position: relative; z-index: 2; padding-top: calc(50px + 46px + 160px); padding-bottom: 50px; max-width: 650px; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 32px;
  color: #fff;
  font-weight: 600;
}

@media (max-width: 1200px) {
  .eyebrow {
    font-size: clamp(21px, calc(21px + (100vw - 960px) * 3 / 240), 24px);
    line-height: clamp(28px, calc(28px + (100vw - 960px) * 4 / 240), 32px);
  }
}

@media (max-width: 960px) {
  .eyebrow {
    font-size: clamp(18px, calc(18px + (100vw - 640px) * 3 / 320), 21px);
    line-height: clamp(26px, calc(26px + (100vw - 640px) * 2 / 320), 28px);
  }
}

@media (max-width: 640px) {
  .eyebrow {
    font-size: clamp(14px, calc(14px + (100vw - 480px) * 4 / 160), 18px);
    line-height: clamp(18px, calc(18px + (100vw - 480px) * 8 / 160), 26px);
  }
}

@media (max-width: 480px) {
  .eyebrow {
    font-size: 14px;
    line-height: clamp(17px, calc(17px + (100vw - 320px) * 1 / 160), 18px);
  }
}
h1 {
  margin: 0;
  font-family: 'Unbounded';
  font-size: clamp(32px, calc(32px + (100vw - 1200px) * 4 / 700), 36px);
  line-height: clamp(42px, calc(42px + (100vw - 1200px) * 4 / 700), 46px);
  letter-spacing: -.055em;
  font-weight: bold;
}
h1 span { color: var(--red); }

@media (max-width: 1200px) {
  h1 {
    font-size: clamp(28px, calc(28px + (100vw - 960px) * 4 / 240), 32px);
    line-height: clamp(38px, calc(38px + (100vw - 960px) * 4 / 240), 42px);
  }
}

@media (max-width: 960px) {
  h1 {
    font-size: clamp(21px, calc(21px + (100vw - 640px) * 7 / 320), 28px);
    line-height: clamp(31px, calc(31px + (100vw - 640px) * 7 / 320), 38px);
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: clamp(18px, calc(18px + (100vw - 480px) * 3 / 160), 21px);
    line-height: clamp(26px, calc(26px + (100vw - 480px) * 5 / 160), 31px);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(16px, calc(16px + (100vw - 320px) * 2 / 160), 18px);
    line-height: clamp(24px, calc(24px + (100vw - 320px) * 2 / 160), 26px);
  }
}
.lead {
  max-width: 610px;
  margin: 22px 0 24px;
  color: rgba(255,255,255,.78);
  font-size: 24px;
  line-height: 32px;
}

@media (max-width: 1200px) {
  .lead {
    font-size: clamp(21px, calc(21px + (100vw - 960px) * 3 / 240), 24px);
    line-height: clamp(28px, calc(28px + (100vw - 960px) * 4 / 240), 32px);
  }
}

@media (max-width: 960px) {
  .lead {
    font-size: clamp(18px, calc(18px + (100vw - 640px) * 3 / 320), 21px);
    line-height: clamp(26px, calc(26px + (100vw - 640px) * 2 / 320), 28px);
  }
}

@media (max-width: 640px) {
  .lead {
    font-size: clamp(14px, calc(14px + (100vw - 480px) * 4 / 160), 18px);
    line-height: clamp(18px, calc(18px + (100vw - 480px) * 8 / 160), 26px);
  }
}
h3 {
  margin: 0;
  color: var(--heading);
  font-weight: bold;
  font-size: 21px;
  line-height: 28px;
}

@media (max-width: 1200px) {
  body {
    font-size: clamp(16px, calc(16px + (100vw - 960px) * 2 / 240), 18px);
    line-height: clamp(24px, calc(24px + (100vw - 960px) * 2 / 240), 26px);
  }
  h3 {
    font-size: clamp(16px, calc(16px + (100vw - 960px) * 5 / 240), 21px);
    line-height: clamp(24px, calc(24px + (100vw - 960px) * 4 / 240), 28px);
  }
}

@media (max-width: 960px) {
  body {
    font-size: 16px;
    line-height: 24px;
  }
  h3 {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: clamp(12px, calc(12px + (100vw - 320px) * 4 / 160), 16px);
    line-height: clamp(15px, calc(15px + (100vw - 320px) * 9 / 160), 24px);
  }
  h3 {
    font-size: clamp(12px, calc(12px + (100vw - 320px) * 4 / 160), 16px);
    line-height: clamp(15px, calc(15px + (100vw - 320px) * 9 / 160), 24px);
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 25px;
  border: 0;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.16); }
.btn-red, .btn-red:visited { color: #fff; background: var(--red); }
.btn-red:hover,
.btn-red:focus,
.btn-red:active { color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-trigger {
  border-radius: 50px;
  font-size: 18px;
  line-height: 26px;
  padding: 20px 30px;
}

@media (max-width: 640px) {
  .btn-trigger {
    font-size: clamp(12px, calc(12px + (100vw - 480px) * 6 / 160), 18px);
    line-height: clamp(16px, calc(16px + (100vw - 480px) * 10 / 160), 26px);
    padding: clamp(10px, calc(10px + (100vw - 480px) * 10 / 160), 20px) 30px;
  }
}
.micro {
  margin: 10px 0 0 8px;
  max-width: 320px;
  color: #AAAAAA;
  font-size: 12px;
}
.micro a { color: #D5D5D5; }

@media (max-width: 640px) {
  .micro {
    font-size: clamp(9px, calc(9px + (100vw - 480px) * 3 / 160), 12px);
  }
}
.section { padding: var(--section-padding-y) 0; }
.white-section { background: #fff; border-radius: var(--radius-xl); position: relative; }
.white-section + .white-section { margin-top: -1px; }
.section-overlap-top {
  position: relative;
  z-index: 1;
  border-radius: var(--overlap) var(--overlap) 0 0;
}
.section-overlap-bottom {
  position: relative;
  z-index: 1;
  border-radius: 0 0 var(--overlap) var(--overlap);
}
.section-overlap-top.section-overlap-bottom {
  border-radius: var(--overlap);
}
.hero-overlap-bottom {
  position: relative;
  z-index: 2;
  border-radius: 0 0 var(--overlap) var(--overlap);
}
.section-overlap-bottom + *::before,
.hero-overlap-bottom + *::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: var(--overlap);
  background: inherit;
}
*:has(+ .section-overlap-top)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: var(--overlap);
  background: inherit;
}
.section h2 {
  text-align: center;
  margin: 0 0 40px;
  font-family: 'Unbounded';
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: -.04em;
  font-weight: bold;
  color: var(--heading);
}
.dark-section h2 { color: #fff; }
.title-accent { color: var(--red); }
.section-subtitle, .section-heading > p {
  text-align: center;
  color: #a2a2a2;
  margin: -15px auto 40px;
}

@media (max-width: 960px) {
  .section h2 { margin-bottom: 25px; }
  .section-subtitle, .section-heading > p { margin: -10px auto 25px; }
}

@media (max-width: 480px) {
  .section h2 { margin-bottom: 20px; }
  .section-subtitle, .section-heading > p { margin: -10px auto 20px; }
}
.cards { display: grid; gap: 50px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.narrow { width: min(1050px,100%); margin: 0 auto; }
.card {
  border-radius: var(--radius-lg);
  padding: 40px 29px;
  min-height: 108px;
  text-align: center;
}
.card h3 { margin: 0; }
.red-card {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 40px 34px;
}
.red-card h3 { color: #fff; }

@media (max-width: 1200px) {
  .red-card { padding: 40px 23px; }
}

@media (max-width: 960px) {
  .red-card { padding: 25px 23px; }
  .card,
  .red-card,
  .step-card { padding-top: 25px; padding-bottom: 25px; }
}

@media (max-width: 480px) {
  .card,
  .red-card,
  .step-card { padding-top: 20px; padding-bottom: 20px; }
}
.light-card {
  background: #fff;
  color: #4b4b4b;
  box-shadow: var(--shadow);
  min-height: 122px;
}
.light-card h3 { margin-bottom: 16px; }
.light-card a {
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  line-height: 21px;
  text-decoration: none;
}
.section-note a { color: var(--red); font-weight: 700; }

@media (max-width: 480px) {
  .light-card a {
    font-size: clamp(12px, calc(12px + (100vw - 320px) * 2 / 160), 14px);
    line-height: clamp(15px, calc(15px + (100vw - 320px) * 6 / 160), 21px);
  }
}

.dark-section .cards.cards-2.container-small {
  grid-template-columns: repeat(2, minmax(0, 450px));
  justify-content: center;
  gap: 50px;
}
.dark-section .cards.cards-2.container-small .light-card h3 { margin-bottom: 15px; }

@media (max-width: 1200px) {
  .dark-section .cards.cards-2.container-small { gap: 40px; }
  .dark-section .cards.cards-2.container-small .light-card h3 { margin-bottom: 25px; }
}

@media (max-width: 960px) {
  .dark-section .cards.cards-2.container-small { grid-template-columns: repeat(2, minmax(0, 338px)); }
  .dark-section .cards.cards-2.container-small .light-card h3 { margin-bottom: 15px; }
}

@media (max-width: 700px) {
  .dark-section .cards.cards-2.container-small { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
  .dark-section .cards.cards-2.container-small .light-card h3 { margin-bottom: 10px; }
}

.dark-section .cards.cards-2.container-small .light-card .card-note { margin-bottom: 25px; }

@media (max-width: 640px) {
  .dark-section .cards.cards-2.container-small .light-card .card-note { margin-bottom: 15px; }
}

@media (max-width: 480px) {
  .dark-section .cards.cards-2.container-small .light-card .card-note { margin-bottom: 20px; }
}

#what-is .cards.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 539px));
  justify-content: center;
  gap: 50px;
}

@media (max-width: 1200px) {
  #what-is .cards.cards-2 {
    grid-template-columns: repeat(2, minmax(0, 490px));
    gap: 20px;
  }
}

@media (max-width: 960px) {
  #what-is .cards.cards-2 {
    grid-template-columns: repeat(2, minmax(0, 400px));
    gap: 40px;
  }
}

@media (max-width: 700px) {
  #what-is .cards.cards-2 { grid-template-columns: 1fr; gap: 20px; }
}

.outcomes .cards.cards-2 {
  grid-template-columns: repeat(2, minmax(0, 410px));
  justify-content: center;
  gap: 50px;
}

@media (max-width: 1200px) {
  .outcomes .cards.cards-2 {
    grid-template-columns: repeat(2, minmax(0, 328px));
    gap: 40px;
  }
}

@media (max-width: 960px) {
  .outcomes .cards.cards-2 {
    grid-template-columns: repeat(2, minmax(0, 400px));
    gap: 40px;
  }
}

@media (max-width: 700px) {
  .outcomes .cards.cards-2 { grid-template-columns: 1fr; gap: 20px; }
}
.soft-card {
  background: #fafafa;
  min-height: 125px;
}
.soft-card h3 { margin-bottom: 11px; }
.soft-card p, .step-card p, .next-block p, .card-note {
  margin: 0;
  color: var(--text);
}
.price-box p { margin: 0; }
.section-note {
  max-width: 800px;
  margin: 28px auto 0;
  text-align: center;
  color: #9a9a9a;
}
.section-subtitle, .section-heading > p, .section-note {
  font-size: 18px;
  line-height: 26px;
}

@media (max-width: 1200px) {
  .section-subtitle, .section-heading > p, .section-note {
    font-size: clamp(16px, calc(16px + (100vw - 960px) * 2 / 240), 18px);
    line-height: clamp(24px, calc(24px + (100vw - 960px) * 2 / 240), 26px);
  }
}

@media (max-width: 960px) {
  .section-subtitle, .section-heading > p, .section-note {
    font-size: 16px;
    line-height: 24px;
  }
}

@media (max-width: 480px) {
  .section-subtitle, .section-heading > p, .section-note {
    font-size: clamp(12px, calc(12px + (100vw - 320px) * 4 / 160), 16px);
    line-height: clamp(18px, calc(18px + (100vw - 320px) * 6 / 160), 24px);
  }
}
.outcomes { padding-top: 64px; background: var(--soft); }
.outcomes .soft-card { background: var(--white); }

.process {
  padding-bottom: 82px;
}
.process .section-heading h2 { color: #fff; }
.process .section-heading p { color: rgba(255,255,255,.45); }
.process-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 50px; }
.step-card {
  background: #fff;
  color: #444;
  border-radius: var(--radius-lg);
  padding: 40px 25px;
  min-height: 108px;
  text-align: center;
}
.step-num {
  display: block;
  margin-bottom: 7px;
  color: #8e8e8e;
  font-size: 8px;
  font-weight: 700;
}
.step-card h3 { margin: 0 0 7px; }
.step-label { color: color-mix(in srgb, var(--heading) 40%, transparent); }
.process-note {
  text-align: center;
  color: var(--soft);
  font-size: 18px;
  line-height: 26px;
  margin: 18px 0 35px;
}

@media (max-width: 640px) {
  .process-note {
    font-size: clamp(16px, calc(16px + (100vw - 480px) * 2 / 160), 18px);
    line-height: clamp(24px, calc(24px + (100vw - 480px) * 2 / 160), 26px);
  }
}

@media (max-width: 480px) {
  .process-note {
    font-size: clamp(12px, calc(12px + (100vw - 320px) * 4 / 160), 16px);
    line-height: clamp(18px, calc(18px + (100vw - 320px) * 6 / 160), 24px);
  }
}
.price-box {
  width: 868px;
  margin: 100px auto 200px;
  padding: 50px 32px 40px 90px;
  border-radius: var(--radius-lg);
  background: var(--red);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 160px;
  position: relative;
}

@media (max-width: 960px) {
  .price-box {
    margin: 100px auto;
    padding: 50px 32px 50px 60px;
  }
}

@media (max-width: 640px) {
  .price-box {
    padding: 50px 25px 25px 25px;
  }
}

@media (max-width: 480px) {
  .price-box {
    margin: 70px auto;
    padding: 35px 25px 20px 25px;
  }
}
.price-box h2 {
  margin: 0 0 40px;
  color: #fff;
  font-family: 'Unbounded';
  font-weight: bold;
  font-size: 24px;
  line-height: 36px;
  max-width: 557px;
  text-align: left;
}

@media (max-width: 960px) {
  .price-box h2 {
    margin-bottom: 25px;
    font-size: clamp(18px, calc(18px + (100vw - 640px) * 6 / 320), 24px);
    line-height: clamp(24px, calc(24px + (100vw - 640px) * 12 / 320), 36px);
  }
}

@media (max-width: 640px) {
  .price-box h2 {
    font-size: clamp(12px, calc(12px + (100vw - 320px) * 6 / 160), 18px);
    line-height: clamp(18px, calc(18px + (100vw - 320px) * 6 / 160), 24px);
  }
}

@media (max-width: 480px) {
  .price-box h2 { margin-bottom: 20px; }
}

.price-value {
  display: block;
  width: fit-content;
  background: #FFFFFF;
  padding: 20px 40px;
  border-radius: 999px;
  color: var(--red);
  font-family: 'Unbounded';
  font-weight: bold;
  font-size: 38px;
  line-height: 36px;
  margin-bottom: 40px;
}

@media (max-width: 960px) {
  .price-value {
    font-size: clamp(21px, calc(21px + (100vw - 640px) * 11 / 320), 32px);
    line-height: clamp(24px, calc(24px + (100vw - 640px) * 4 / 320), 28px);
  }
}

@media (max-width: 640px) {
  .price-value {
    font-size: clamp(18px, calc(18px + (100vw - 480px) * 3 / 160), 21px);
    line-height: 24px;
  }
}

@media (max-width: 480px) {
  .price-value {
    font-size: clamp(16px, calc(16px + (100vw - 320px) * 2 / 160), 18px);
    line-height: clamp(16px, calc(16px + (100vw - 320px) * 8 / 160), 24px);
  }
}

.price-note {
  color: rgba(255,255,255,.75);
  font-size: 18px;
  line-height: 24px;
}
.price-note a { color: rgba(255,255,255,.75); }

@media (max-width: 960px) {
  .price-note { font-size: 16px; line-height: 24px; }
}

@media (max-width: 640px) {
  .price-note { font-size: 10px; line-height: 15px; }
}

@media (max-width: 480px) {
  .price-note {
    font-size: clamp(8px, calc(8px + (100vw - 320px) * 2 / 160), 10px);
    line-height: clamp(12px, calc(12px + (100vw - 320px) * 3 / 160), 15px);
  }
}
.price-knight {
  position: absolute;
  right: var(--image-right, 0);
  bottom: var(--image-bottom, 0);
  transform: rotate(var(--image-rotate, 0deg));
}
.price-knight img {
  display: block;
  height: var(--image-height, 400px);
  width: auto;
}
.price-knight--horse {
  --image-height: 400px;
  --image-right: -128px;
  --image-bottom: -20px;
  --image-rotate: 0deg;
}
.next-block { margin-top: 75px; text-align: center; }
.next-block h2 { margin-bottom: 8px; }
.next-block > p { color: rgba(255,255,255,.45); margin-bottom: 28px; }
.next-block .cards { text-align: left; }

.cta-section {
  background: var(--red);
  color: #fff;
  padding: 100px 0;
  position: relative;
}

@media (max-width: 960px) {
  .cta-section { padding: 50px 0; }
}

@media (max-width: 480px) {
  .cta-section { padding: 35px 0; }
}
.cta-inner { display: grid; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 40px; }
.cta-inner h2 {
  margin: 0 0 6px;
  font-family: 'Unbounded';
  font-size: clamp(28px, calc(28px + (100vw - 1200px) * 10 / 700), 38px);
  line-height: clamp(42px, calc(42px + (100vw - 1200px) * 10 / 700), 52px);
  letter-spacing: -.04em;
}
.cta-inner p { margin: 0; color: rgba(255,255,255,.75); }
.cta-action { text-align: center; }
.btn-white { background: #fff; color: var(--red); }
.cta-note { font-size: 18px; line-height: 26px; }
.cta-action .cta-note { margin-top: 9px; }
.cta-note a { color: rgba(255,255,255,.75); }
.cta-note a:hover { color: rgba(255,255,255,.9); }
.cta-inner h2 + p { font-size: 21px; line-height: 28px; }

@media (max-width: 640px) {
  .cta-inner h2 {
    font-size: clamp(21px, calc(21px + (100vw - 480px) * 7 / 160), 28px);
    line-height: clamp(31px, calc(31px + (100vw - 480px) * 11 / 160), 42px);
  }
  .cta-note {
    font-size: clamp(16px, calc(16px + (100vw - 480px) * 2 / 160), 18px);
    line-height: clamp(24px, calc(24px + (100vw - 480px) * 2 / 160), 26px);
  }
  .cta-inner h2 + p {
    font-size: clamp(16px, calc(16px + (100vw - 480px) * 5 / 160), 21px);
    line-height: clamp(24px, calc(24px + (100vw - 480px) * 4 / 160), 28px);
  }
}

@media (max-width: 480px) {
  .cta-inner h2 {
    font-size: clamp(16px, calc(16px + (100vw - 320px) * 5 / 160), 21px);
    line-height: clamp(24px, calc(24px + (100vw - 320px) * 7 / 160), 31px);
  }
  .cta-note {
    font-size: clamp(12px, calc(12px + (100vw - 320px) * 4 / 160), 16px);
    line-height: clamp(18px, calc(18px + (100vw - 320px) * 6 / 160), 24px);
  }
  .cta-inner h2 + p {
    font-size: clamp(14px, calc(14px + (100vw - 320px) * 2 / 160), 16px);
    line-height: clamp(21px, calc(21px + (100vw - 320px) * 3 / 160), 24px);
  }
}

.site-footer {
  background: var(--bg);
  color: #fff;
  padding: 64px 0 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), 1fr);
  gap: var(--grid-gap);
  align-items: start;
}
.footer-brand {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.footer-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.footer-contacts .header-phone { margin-left: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  width: 22px; height: 22px; border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.55);
  text-decoration: none; transition: color .2s, border-color .2s;
}
.socials a:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.socials a svg { display: block; }
.footer-info {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.footer-info > p {
  margin: 0;
  max-width: 640px;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  line-height: 21px;
}
.legal { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.legal a {
  color: #fff;
  font-size: 14px;
  line-height: 21px;
  text-decoration: none;
  transition: color .2s;
}
.legal a:hover { color: var(--red); }
.legal-note {
  margin: 0;
  max-width: 640px;
  color: rgba(255,255,255,.35);
  font-size: 12px;
  line-height: 18px;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .container { width: min(var(--container), calc(100% - 40px)); }
  .main-nav { gap: 18px; }
  .header-inner { gap: 20px; }
  .hero-copy { padding: 110px 0 60px; }
  .hero { min-height: 510px; }
  .hero-grid { min-height: 510px; align-items: center; }
  .cards-3 { grid-template-columns: 1fr; gap: 20px; }
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand, .footer-info { grid-column: auto; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 520px); }
  .header-inner { min-height: 70px; }
  .site-header:not(.is-scrolled) .header-inner { padding-top: 0; }
  .header-contacts { display: none; }
  .burger {
    display: flex; margin-left: auto; width: 38px; height: 38px;
    border: 0; background: transparent; flex-direction: column; justify-content: center; gap: 5px;
  }
  .burger span { display:block; width: 22px; height: 2px; background: #fff; margin-left: auto; transition: .2s; }
  .main-nav {
    position: absolute; top: 63px; left: 14px; right: 14px;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px; background: rgba(52,52,52,.97); border-radius: 10px; box-shadow: 0 15px 40px rgba(0,0,0,.25);
  }
  .main-nav.is-open { display: flex; }
  .site-header.is-scrolled .main-nav { background: var(--white); }
  .main-nav a { padding: 12px; font-size: 12px; }
  .hero { min-height: 570px; }
  .hero-grid { min-height: 570px; }
  .hero-copy { padding: 105px 0 45px; }
  :root { --overlap: 26px; --section-padding-y: 58px; }
  .cards-2 { grid-template-columns: 1fr; gap: 20px; }
  .process-grid { grid-template-columns: 1fr; }
  .red-card { min-height: 95px; }
  .price-knight { display: none; }
  .site-footer { padding: 48px 0 40px; }
}

/* ============ Modal обратной связи ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.modal.is-open { display: flex; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: 1000px;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  overflow: auto;
}
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--heading);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color .2s, background .2s;
}
.modal__close:hover { color: var(--red); }
.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  background: currentColor;
}
.modal__close::before { transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }

body.modal-open { overflow: hidden; }

.feedback { display: flex; }
.feedback__side {
  width: 440px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
}
.feedback__promo {
  width: 440px;
  height: 530px;
  border-radius: var(--radius-modal) 0 0 var(--radius-modal);
  background-color: var(--bg);
  background-image: url('../images/hero/2-ipr.png');
  background-size: cover;
  background-position: center;
}
.feedback__offer {
  width: 275px;
  height: 300px;
  margin-left: auto;
  padding: 55px 50px;
  background: var(--red);
  border-radius: 0 0 0 var(--radius-modal);
}
.feedback__offer p {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 26px;
}
.feedback__form {
  flex: 1;
  min-width: 0;
  padding: 55px;
  background: #fff;
  border-radius: 0 var(--radius-modal) var(--radius-modal) var(--radius-modal);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
}
.feedback__title {
  margin: 0;
  font-family: 'Unbounded';
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -.04em;
  font-weight: bold;
  color: var(--heading);
}
.feedback__subtitle {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 24px;
}
.feedback__fields {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
  color: var(--field-muted);
}
.field__input {
  width: 100%;
  height: 56px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--field-muted);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  outline: none;
  transition: border-color .2s;
}
.field__input:focus { border-bottom-color: var(--red); }
.field textarea.field__input {
  height: 104px;
  padding: 16px 0;
  resize: none;
}
.feedback__note {
  padding: 10px 15px;
  background: var(--soft);
  border-radius: 10px;
  font-size: 12px;
  line-height: 18px;
  color: var(--modal-note);
}
.feedback__note p { margin: 0; }
.feedback__note a { color: inherit; text-decoration: underline; }
.feedback__note a:hover { color: var(--red); }

/* Мобильный модал обратной связи: левая часть скрыта,
   форма становится самостоятельным контейнером. */
@media (max-width: 700px) {
  .modal { padding: 16px; }
  .feedback__side { display: none; }
  .feedback__form { border-radius: var(--radius-modal); }
}

/* ============ Coming soon (template-coming-soon.php) ============ */
.cs-hero {
  padding-top: calc(50px + 46px + 140px);
  padding-bottom: 110px;
}
.cs-title {
  margin: 0 0 40px;
  line-height: clamp(52px, calc(52px + (100vw - 1200px) * 6 / 700), 58px);
}
.cs-title a {
  color: var(--red);
  text-decoration-thickness: 10%;
  text-underline-offset: 10%;
}
.cs-title a:hover {
  text-decoration: none;
}
.cs-for {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 18px;
  line-height: 26px;
}
.cs-blocks {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 100px;
  margin: 0 0 48px;
}
.cs-block {
  margin: 0;
  color: #9B9B9B;
  font-size: 21px;
  line-height: 28px;
}
.cs-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.cs-post {
  text-align: left;
  padding: 20px;
}
.cs-post__thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.cs-post__thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.cs-post h3 {
  margin: 16px 0 8px;
}
.cs-post__title a {
  color: var(--heading);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: none;
  transition: color .2s;
}
.cs-post__title a:hover { color: var(--red); }
.cs-post__date {
  color: var(--muted);
  font-size: 12px;
}
.cs-post__summary {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  line-height: 21px;
}
.cs-post__read { display: none; }
.cs-public-menu { display: none; }
.cs-blog .section-heading > p { color: rgba(255,255,255,.45); }

/* Точечные правки заглушки: только на главной странице-заглушке (body.cs-page)
   убираем нижний отступ у body и верхние скругления footer.
   На /blog/ и отдельных статьях класс cs-page отсутствует — там всё без изменений. */
body.cs-page { margin-bottom: 0; }
body.cs-page .site-footer.section-overlap-top { border-radius: 0; }
body.cs-page .cs-blog::after { display: none; }

@media (max-width: 1200px) {
  .cs-title {
    line-height: clamp(45px, calc(45px + (100vw - 960px) * 7 / 240), 52px);
  }
  .cs-blocks { gap: 50px; }
}
@media (max-width: 960px) {
  .cs-title {
    line-height: clamp(34px, calc(34px + (100vw - 640px) * 11 / 320), 45px);
  }
}
@media (max-width: 900px) {
  .cs-hero {
    padding-top: 110px;
    padding-bottom: 60px;
  }
}
@media (max-width: 700px) {
  .cs-hero {
    padding-top: 105px;
    padding-bottom: 50px;
  }
  .cs-blocks {
    flex-direction: column;
    gap: 24px;
  }
}
@media (max-width: 640px) {
  .cs-title {
    line-height: clamp(29px, calc(29px + (100vw - 480px) * 5 / 160), 34px);
  }
}
@media (max-width: 480px) {
  .cs-title {
    line-height: clamp(26px, calc(26px + (100vw - 320px) * 3 / 160), 29px);
  }
}

/* ============ Мобильная версия публичной заглушки и блока статей ============ */
@media (max-width: 700px) {
  /* Header: логотип и слоган компактнее (заглушка). Для блога — см. blog.css. */
  .cs-header .brand svg {
    width: 96px;
    height: auto;
  }
  .cs-header .logo-tagline {
    font-size: 11px;
    line-height: 13px;
  }

  /* Публичное мобильное меню (телефон + мессенджеры), открывается бургером.
     Скрыто на desktop; на мобильном наследует выпадающие стили .main-nav. */
  .cs-public-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 16px;
  }
  .cs-public-menu .header-phone {
    margin-left: 0;
    font-size: 16px;
    line-height: 22px;
  }
  .cs-public-menu .cs-public-menu__socials {
    display: flex;
    gap: 14px;
  }

  /* Первый экран: центрирование */
  .cs-title {
    text-align: center;
    font-size: clamp(22px, calc(22px + (100vw - 480px) * 6 / 220), 28px);
    line-height: clamp(30px, calc(30px + (100vw - 480px) * 8 / 220), 38px);
  }
  .cs-for {
    text-align: center;
  }
  .cs-blocks {
    align-items: center;
  }
  .cs-block {
    text-align: center;
    font-size: 16px;
    line-height: 22px;
  }
  .cs-action {
    align-items: center;
  }
  .cs-action .micro {
    margin-left: 0;
    max-width: 260px;
    text-align: center;
    font-size: 11px;
    line-height: 16px;
  }

  /* Секция блога: заголовок и подзаголовок */
  .cs-blog .section-heading h2 {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 16px;
  }
  .cs-blog .section-heading > p {
    font-size: 14px;
    line-height: 20px;
  }

  /* Карточки статей */
  .cs-post__title {
    font-size: 18px;
    line-height: 24px;
  }
  .cs-post__summary {
    font-size: 15px;
    line-height: 21px;
  }
  .cs-post__read {
    display: inline-flex;
    margin: 4px 0 12px;
    font-size: 14px;
    line-height: 20px;
    padding: 10px 24px;
    border-radius: 50px;
  }
}

@media (max-width: 480px) {
  .cs-title {
    font-size: clamp(20px, calc(20px + (100vw - 320px) * 2 / 160), 22px);
    line-height: clamp(28px, calc(28px + (100vw - 320px) * 2 / 160), 30px);
  }
  .cs-block {
    font-size: 15px;
    line-height: 21px;
  }
  .cs-blog .section-heading h2 {
    font-size: 18px;
  }
}
