:root {
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B7280;
  --color-accent: #2D3748;
  --color-accent-hover: #1A202C;
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
  --header-height: 72px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--color-surface);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

.section__subtitle {
  margin-top: 16px;
  font-size: 18px;
  color: var(--color-text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__logo-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-name {
  font-size: 18px;
  font-weight: 700;
}

.header__logo-tagline {
  font-size: 11px;
  color: var(--color-text-secondary);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.header__nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

.header__nav-link:hover {
  color: var(--color-text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color var(--transition);
}

.header__phone:hover {
  color: var(--color-accent);
}

.header__phone-mobile {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  border-radius: var(--radius);
  transition: background var(--transition);
}

.header__phone-mobile:hover {
  background: var(--color-bg);
}

.header__phone-mobile svg {
  width: 22px;
  height: 22px;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
}

.header__burger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger--open span:nth-child(2) {
  opacity: 0;
}

.header__burger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

/* Тонкий геометрический паттерн вместо стокового фото — держит монохромную,
   лаконичную стилистику и не зависит от внешних изображений. */
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 45%, rgba(45, 55, 72, 0.06) 0%, rgba(45, 55, 72, 0) 55%),
    repeating-linear-gradient(135deg, rgba(45, 55, 72, 0.035) 0px, rgba(45, 55, 72, 0.035) 1px, transparent 1px, transparent 64px),
    var(--color-bg);
  z-index: 0;
}

/* padding-top/bottom (не общий shorthand padding) — .hero__content сидит на
   том же элементе, что и .container (class="container hero__content"), и
   3-значный shorthand задал бы left/right: 0, затирая горизонтальный отступ
   контейнера. Из-за этого на мобильных весь контент hero стоял впритык к
   краям экрана. */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding-top: 56px;
  padding-bottom: 64px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  box-shadow: var(--shadow-sm);
}

.hero__badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--color-text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Декоративная линейная иллюстрация "дом + ключ" — заполняет пустое
   пространство справа на широких экранах намеренной минималистичной
   графикой, а не случайным фото. Скрыта на планшетах/мобильных. */
.hero__illustration {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  width: clamp(280px, 26vw, 380px);
  z-index: 1;
  color: var(--color-accent);
  opacity: 0.9;
}

.hero__illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--color-border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-accent);
}

.service-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.service-card__link:hover {
  gap: 8px;
}

/* Advantages */
.advantages__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.advantage-item {
  text-align: center;
  padding: 32px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.advantage-item__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--color-border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-item__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--color-accent);
}

.advantage-item__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.advantage-item__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Comparison table */
.comparison {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.comparison__header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--color-accent);
  color: #fff;
}

.comparison__header-cell {
  padding: 16px 24px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.comparison__header-cell:first-child {
  text-align: left;
}

.comparison__row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-top: 1px solid var(--color-border);
}

.comparison__row:nth-child(even) {
  background: var(--color-bg);
}

.comparison__cell {
  padding: 14px 24px;
  font-size: 14px;
  text-align: center;
}

.comparison__cell:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.comparison__cell--highlight {
  font-weight: 600;
  color: var(--color-accent);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.step__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__desc {
  font-size: 14px;
  color: var(--color-text-secondary);
}

/* Calculator */
.calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.calculator__controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calculator__field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-text-secondary);
}

.calculator__field label span {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text);
}

.calculator__field input[type="range"] {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--color-border);
  border-radius: 3px;
  outline: none;
}

.calculator__field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.calculator__field input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  background: var(--color-accent);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.calculator__result {
  text-align: center;
  padding: 40px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
}

.calculator__result-label {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.calculator__result-value {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.calculator__result-note {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* FAQ */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--color-text);
  transition: background var(--transition);
}

.faq__question:hover {
  background: var(--color-bg);
}

.faq__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq__item--open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__item--open .faq__answer {
  max-height: 300px;
}

.faq__answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Contacts */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  background: var(--color-border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
}

.contact-item__label {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.contact-item__value {
  font-size: 16px;
  font-weight: 600;
}

.contact-item__value a:hover {
  color: var(--color-accent);
}

.contacts__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: 28px;
  height: 280px;
}

.contacts__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Form */
.form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form__subtitle {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 28px;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form__input {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form__input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(45, 55, 72, 0.1);
}

.form__input--error {
  border-color: #DC2626;
}

.form__checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}

.form__checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}

.form__checkbox-label {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  cursor: pointer;
}

.form__checkbox-label a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__checkbox-label a:hover {
  color: var(--color-accent-hover);
}

.form__message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}

.form__message--success {
  display: block;
  background: #F0FDF4;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.form__message--error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.form__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Footer */
.footer {
  background: var(--color-accent);
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer__brand-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__legal {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer__heading {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  transition: color var(--transition);
}

.footer__link:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer__disclaimer {
  max-width: 700px;
  line-height: 1.6;
}

.footer__legal-links {
  width: 100%;
  margin-bottom: 4px;
}

.footer__legal-links .footer__link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav--open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--color-surface);
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.mobile-nav--open .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 80px;
}

.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.mobile-nav__link:hover {
  background: var(--color-bg);
}

.mobile-nav__phone {
  display: block;
  margin-top: 24px;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  background: var(--color-bg);
  border-radius: var(--radius);
}

.mobile-nav__cta {
  margin-top: 16px;
}

/* Popup */
.popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.popup--open {
  opacity: 1;
  visibility: visible;
}

.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.popup__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}

.popup--open .popup__dialog {
  transform: translateY(0) scale(1);
}

.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: background var(--transition), color var(--transition);
}

.popup__close:hover {
  background: var(--color-border);
  color: var(--color-text);
}

.popup__close svg {
  width: 18px;
  height: 18px;
}

/* Mobile sticky CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  gap: 10px;
}

.mobile-cta__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-height: 48px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.mobile-cta__phone svg {
  width: 18px;
  height: 18px;
}

.mobile-cta__btn {
  flex: 1.4;
  min-height: 48px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

/* Legal pages */
.legal-page {
  padding-top: var(--header-height);
}

.legal-page__back {
  font-size: 14px;
  padding: 10px 20px;
}

.legal-page__content {
  padding: 48px 0 80px;
}

.legal-page__content h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 12px;
}

.legal-page__updated {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.legal-page__content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px;
}

.legal-page__content p,
.legal-page__content li {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-page__content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page__content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.legal-page__table td,
.legal-page__table th {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.legal-page__table th {
  background: var(--color-bg);
  font-weight: 600;
  color: var(--color-text);
}

.legal-page__consent-box {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
}

.footer--compact {
  padding: 32px 0;
}

.footer--compact .footer__bottom {
  border-top: none;
  padding-top: 0;
}

.footer__link-inline {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
}

.comparison__wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Partners */
.partners__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px 40px;
}

.partners__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-width: 160px;
  height: 80px;
  transition: box-shadow var(--transition), transform var(--transition);
}

.partners__item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.partners__item img {
  max-width: 140px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter var(--transition), opacity var(--transition);
}

.partners__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Reviews */
/* Flex вместо grid — при нечётном количестве карточек (сейчас 5) последняя
   неполная строка центрируется, а не "провисает" пустым местом справа,
   как было бы с grid-template-columns: repeat(3, 1fr). */
.reviews__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.review-card {
  flex: 1 1 320px;
  max-width: calc((100% - 48px) / 3);
}

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-card__name {
  font-size: 16px;
  font-weight: 600;
}

.review-card__meta {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.review-card__stars {
  color: #9CA3AF;
  font-size: 14px;
  letter-spacing: 2px;
}

.review-card__text {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

/* Bank licenses */
.licenses__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.licenses__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition);
}

.licenses__item:hover {
  box-shadow: var(--shadow-md);
}

.licenses__item img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 4px;
}

/* Messengers */
.messengers {
  padding-top: 8px;
}

.messengers__label {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.messengers__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.messengers__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.messengers__btn:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.messengers__btn img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

/* Floating Telegram */
.float-telegram {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 850;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #37aee2;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-telegram:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(55, 174, 226, 0.4);
}

.float-telegram img {
  width: 28px;
  height: 28px;
}

/* Float call — базовое (десктопное) правило объявлено ДО responsive-блоков
   ниже намеренно: там на мобильных используется .float-call{display:none},
   и порядок исходников важен, потому что у обоих правил одинаковая
   специфичность. Если этот блок оказывается ПОСЛЕ мобильного оверрайда —
   правило display:flex снова "побеждает" на мобильных и кнопки звонка и
   телеграма перекрывают друг друга (это и была причина бага на скрине). */
.float-call {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 850;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}

.float-call:hover {
  transform: scale(1.08);
}

.float-call svg {
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero__illustration {
    display: none;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .steps::before {
    display: none;
  }

  .calculator {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .review-card {
    max-width: calc((100% - 24px) / 2);
  }

  .licenses__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 20px;
  }

  .section {
    padding: 48px 0;
  }

  .section__header {
    margin-bottom: 32px;
  }

  .header__nav,
  .header__actions .btn,
  .header__phone {
    display: none;
  }

  .header__logo-name {
    font-size: 16px;
  }

  .header__phone-mobile {
    display: flex;
  }

  .header__burger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-cta {
    display: flex;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .hero {
    min-height: auto;
  }

  .hero__content {
    padding-top: 40px;
    padding-bottom: 48px;
  }

  .hero__title {
    font-size: 28px;
  }

  .hero__subtitle {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .advantages__grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .comparison {
    min-width: 480px;
  }

  .comparison__header,
  .comparison__row {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .comparison__header-cell,
  .comparison__cell {
    padding: 12px 14px;
    font-size: 13px;
  }

  .calculator {
    padding: 24px 20px;
    gap: 32px;
  }

  .calculator__result {
    padding: 28px 20px;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form {
    padding: 24px 20px;
  }

  .footer {
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
  }

  .hero__badges {
    gap: 8px;
  }

  .hero__badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .popup__dialog {
    padding: 28px 20px 20px;
    max-height: 85vh;
  }

  .legal-page__table {
    display: block;
    overflow-x: auto;
  }

  .btn {
    min-height: 48px;
  }

  .review-card {
    max-width: 100%;
  }

  .licenses__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .partners__item {
    min-width: 140px;
    height: 72px;
    padding: 12px 16px;
  }

  .partners__item img {
    max-width: 120px;
    max-height: 40px;
  }

  /* На мобильных нижняя sticky-панель (.mobile-cta) уже даёт кнопку
     "Позвонить" — отдельная плавающая кнопка звонка была бы дублирующим
     элементом, поэтому скрываем именно её. Telegram-кнопку оставляем — это
     единственный быстрый доступ к этому каналу связи на телефоне. */
  .float-call {
    display: none;
  }

  .float-telegram {
    right: 18px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }

  .messengers__list {
    flex-direction: column;
  }

  .messengers__btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .licenses__grid {
    grid-template-columns: 1fr;
  }
}

.service-card__details {
  display: block;
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-card__details:hover {
  color: var(--color-accent);
}

/* Stats */
.stats {
  background: var(--color-accent);
  color: #fff;
  padding: 40px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats__value {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 8px;
}

.stats__label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.about__text {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about__list {
  list-style: none;
  margin-top: 20px;
}

.about__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--color-text-secondary);
}

.about__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.about__card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.about__avatar {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

/* Небольшой "верифицированный" бейдж на аватаре основателя — минималистичный
   штрих, подчёркивающий экспертность, без использования фотографий. */
.about__avatar-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 26px;
  height: 26px;
  background: var(--color-surface);
  border: 2px solid var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.about__avatar-badge svg {
  width: 13px;
  height: 13px;
}

.about__name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.about__role {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.about__quote {
  position: relative;
  z-index: 1;
  font-size: 14px;
  color: var(--color-text-secondary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 24px;
  text-align: left;
}

/* Декоративный знак цитаты — тонкий акцент вместо фото, держит монохромную
   лаконичную стилистику. z-index: 1 на .about__quote создаёт локальный
   контекст наложения, поэтому z-index: -1 здесь гарантированно кладёт
   значок ПОД текст цитаты, а не поверх него. */
.about__quote-mark {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  opacity: 0.1;
  z-index: -1;
}

/* Cases */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.case-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.case-card__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.case-card__flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-card__step {
  padding: 16px;
  background: var(--color-bg);
  border-radius: var(--radius);
}

.case-card__step--result {
  background: var(--color-border-light);
  border: 1px solid var(--color-border);
}

.case-card__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.case-card__step p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3000;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 16px 0;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-size: 14px;
  color: var(--color-text-secondary);
  max-width: 720px;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn--sm {
  padding: 10px 20px;
  font-size: 14px;
  min-height: auto;
}

/* Thank you modal */
.thank-you {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.thank-you--open {
  opacity: 1;
  visibility: visible;
}

.thank-you__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.thank-you__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.thank-you__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.thank-you__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: #F0FDF4;
  color: #166534;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
}

.thank-you__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.thank-you__text {
  font-size: 15px;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.thank-you__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Landing pages */
.landing-page {
  padding-top: var(--header-height);
}

.landing-hero__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 16px 0 20px;
  line-height: 1.2;
}

.landing-hero__subtitle {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  max-width: 640px;
}

.landing-hero__list {
  list-style: none;
  margin-bottom: 32px;
}

.landing-hero__list li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--color-text-secondary);
}

.landing-hero__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

.landing-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.landing-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 24px 0 12px;
}

.landing-content h2:first-child {
  margin-top: 0;
}

.landing-content p,
.landing-content li {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.landing-content ul,
.landing-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.landing-form {
  max-width: 480px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.breadcrumbs a {
  color: var(--color-accent);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* Error page */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.error-page__content {
  text-align: center;
  max-width: 400px;
}

.error-page__code {
  font-size: 72px;
  font-weight: 800;
  color: var(--color-border);
  line-height: 1;
}

.error-page__title {
  font-size: 24px;
  margin: 16px 0 12px;
}

.error-page__text {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.error-page .btn {
  margin: 6px;
}

.faq__item--open .faq__answer {
  max-height: 500px;
}

@media (max-width: 1024px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
  }

  .cases__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stats {
    padding: 32px 0;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }

  .thank-you__actions {
    flex-direction: column;
  }

  .thank-you__actions .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .hero__badge {
    font-size: 11px;
  }

  .mobile-cta__phone span,
  .mobile-cta__phone {
    font-size: 14px;
  }
}
