/* ==========================================================================
   Crystal Cleaning — landing page styles
   ========================================================================== */

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

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/manrope-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;
}

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

html {
  scroll-behavior: smooth;
}

/* Якорные секции не прячутся под всплывающим фиксированным хедером */
[id] {
  scroll-margin-top: 88px;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ---------- Variables ---------- */
:root {
  --font-main: "Manrope", -apple-system, "Segoe UI", sans-serif;

  --color-dark: #0a2744;
  --color-primary: #0f4c81;
  --color-accent: #2daae1;
  --color-accent-light: #38bdf8;
  --color-white: #ffffff;
  --color-text: #0a2744;

  --container-width: 1320px;
  --container-padding: 32px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ---------- Links ---------- */
a:not(.btn, .header__logo, .footer__logo, .header__social, .footer__socials a):hover,
a:not(.btn, .header__logo, .footer__logo, .header__social, .footer__socials a):active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-align: center;
  overflow: hidden;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/* Пробегающий блик */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

.btn:hover::after {
  animation: btn-shine 0.7s ease;
}

@keyframes btn-shine {
  from {
    left: -80%;
  }
  to {
    left: 130%;
  }
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn--primary {
  padding: 13px 26px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-white);
  background-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: #0d4372;
  box-shadow: 0 6px 18px rgba(15, 76, 129, 0.45);
}

.btn--accent {
  padding: 14px 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-white);
  background-color: var(--color-accent);
}

.btn--accent:hover {
  background-color: #1f9bd2;
  box-shadow: 0 8px 24px rgba(45, 170, 225, 0.45);
}

.btn--outline {
  padding: 14px 28px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  border: 0.8px solid rgba(255, 255, 255, 0.25);
}

.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo-color {
  display: none;
}

.header.is-menu-open .header__logo-white {
  display: none;
}

.header.is-menu-open .header__logo-color {
  display: block;
}

.header__logo img {
  width: 184px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--color-white);
}

.nav__extra {
  display: none;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.header__phone {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-white);
  white-space: nowrap;
}

.header__email {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header__email:hover {
  color: var(--color-white);
}

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

.header__social {
  display: block;
  width: 24px;
  height: 24px;
  transition: opacity 0.2s ease;
}

.header__social:hover {
  opacity: 0.8;
}

.header__phone-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.header.is-menu-open .header__phone-btn {
  background-color: #f1f5f9;
}

.header__phone-icon-blue {
  display: none;
}

.header.is-menu-open .header__phone-icon-white {
  display: none;
}

.header.is-menu-open .header__phone-icon-blue {
  display: block;
}

/* Фиксированный хедер: всплывает при прокрутке вверх */
.header.is-fixed {
  position: fixed;
  background-color: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.header.is-fixed.is-visible {
  transform: translateY(0);
}

.header.is-fixed .header__logo-white {
  display: none;
}

.header.is-fixed .header__logo-color {
  display: block;
}

.header.is-fixed .nav__link {
  color: #64748b;
}

.header.is-fixed .nav__link:hover {
  color: #0f172a;
}

.header.is-fixed .header__phone {
  color: #0f172a;
}

.header.is-fixed .header__email {
  color: #64748b;
}

.header.is-fixed .header__email:hover {
  color: #0f172a;
}

.header.is-fixed .burger span {
  background-color: #0f172a;
}

.header.is-fixed .header__phone-btn {
  background-color: #f1f5f9;
}

.header.is-fixed .header__phone-icon-white {
  display: none;
}

.header.is-fixed .header__phone-icon-blue {
  display: block;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background-color: rgba(10, 39, 68, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.burger {
  display: none;
  position: relative;
  z-index: 110;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
  opacity: 0;
}

.burger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 874px;
  background-color: var(--color-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg-img {
  position: absolute;
  top: -15.89%;
  left: 0;
  width: 100%;
  height: 115.93%;
  object-fit: cover;
  opacity: 0.75;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 39, 68, 0.9) 0%,
    rgba(15, 76, 129, 0.5) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  padding-top: 185px;
  padding-bottom: 100px;
}

.hero__content {
  width: 792px;
  max-width: 792px;
  min-width: 0;
}

.hero__title {
  max-width: 650px;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.8px;
  color: var(--color-white);
}

.hero__text {
  max-width: 540px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.7);
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(2, 224px);
  column-gap: 32px;
  row-gap: 10px;
  margin-top: 32px;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.hero__feature img {
  flex-shrink: 0;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

/* Hero stats card */
.hero__card {
  flex-shrink: 0;
  width: 400px;
  margin-top: 80px;
  padding: 28px;
  background-color: rgba(15, 76, 129, 0.9);
  border: 0.8px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.08);
}

.hero__stat-value {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-white);
}

.hero__stat-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.hero__regions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.hero__region {
  flex: 1;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 17px;
  border-top: 0.8px solid rgba(255, 255, 255, 0.15);
}

.hero__trust-avatars {
  height: 28px;
  width: auto;
}

.hero__trust-text {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.hero__scroll-line {
  position: absolute;
  bottom: 38px;
  left: 50%;
  z-index: 1;
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(255, 255, 255, 0.4));
}

/* ==========================================================================
   Section heading pattern
   ========================================================================== */
.section-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-title {
  margin-top: 12px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

/* ==========================================================================
   Clients
   ========================================================================== */
.clients {
  padding: 40px 0;
  background-color: var(--color-white);
  border-top: 0.8px solid #e5e7eb;
  border-bottom: 0.8px solid #e5e7eb;
}

.clients__title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1.44px;
  text-transform: uppercase;
  text-align: center;
  color: #94a3b8;
}

.clients__carousel {
  margin-top: 32px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.clients__track {
  display: flex;
  width: max-content;
  animation: clients-marquee 40s linear infinite;
}

.clients__track:hover {
  animation-play-state: paused;
}

@keyframes clients-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.clients__list {
  display: flex;
  align-items: center;
  gap: 33px;
  padding-right: 33px;
}

.clients__logo {
  flex-shrink: 0;
  height: auto;
}

.clients__logo--crop {
  object-fit: cover;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  padding: 128px 0;
  background-color: #f8fafc;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  background-color: var(--color-white);
  border: 0.8px solid #e5e7eb;
  border-radius: var(--radius-lg);
}

.service-card--featured {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.service-card__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.service-card__badge--light {
  color: var(--color-primary);
  background-color: #eff6ff;
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #f1f5f9;
  border-radius: var(--radius-md);
}

.service-card--featured .service-card__icon {
  background-color: rgba(255, 255, 255, 0.15);
}

.service-card__title {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.375;
  color: #0f172a;
}

.service-card--featured .service-card__title {
  color: var(--color-white);
}

.service-card__text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.625;
  color: #64748b;
}

.service-card--featured .service-card__text {
  color: rgba(255, 255, 255, 0.75);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-primary);
  transition: opacity 0.2s ease;
}

.service-card__link:hover {
  opacity: 0.75;
}

.service-card--featured .service-card__link {
  color: rgba(255, 255, 255, 0.8);
}

/* Широкая карточка «И многое другое» с кнопкой заявки */
.service-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.service-card--wide .service-card__title {
  margin-top: 0;
}

.service-card--wide .service-card__text {
  max-width: 640px;
}

.service-card__btn {
  flex-shrink: 0;
}

/* ==========================================================================
   Why us
   ========================================================================== */
.why {
  padding: 128px 0;
  background-color: #f8fafc;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.why-card {
  padding: 28px;
  background-color: var(--color-white);
  border: 0.8px solid #e5e7eb;
  border-radius: var(--radius-lg);
}

.why-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #eff6ff;
  border-radius: var(--radius-md);
}

.why-card__value {
  margin-top: 24px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

.why-card__label {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.325px;
  text-transform: uppercase;
  color: #64748b;
}

.why-card__text {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.625;
  color: #64748b;
}

/* ==========================================================================
   Steps
   ========================================================================== */
.steps {
  padding: 128px 0;
  background-color: var(--color-white);
}

.steps__list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 64px;
}

.steps__line {
  position: absolute;
  top: 42px;
  left: 165px;
  right: 165px;
  height: 1px;
  background-color: #e5e7eb;
}

.steps__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  text-align: center;
}

.steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 1.6px solid #e5e7eb;
  border-radius: 50%;
}

.steps__title {
  margin-top: 24px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: #0f172a;
}

.steps__text {
  max-width: 274px;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.625;
  color: #64748b;
}

/* ==========================================================================
   Cost CTA
   ========================================================================== */
.cost {
  padding: 128px 0;
  background-color: #f8fafc;
}

.cost__banner {
  position: relative;
  min-height: 514px;
  border-radius: 24px;
  background: linear-gradient(158deg, #0f4c81 0%, #0d3a64 100%);
  overflow: hidden;
}

.cost__circle {
  position: absolute;
  border-radius: 50%;
}

.cost__circle--big {
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background-color: rgba(255, 255, 255, 0.05);
}

.cost__circle--small {
  bottom: -40px;
  right: 160px;
  width: 160px;
  height: 160px;
  background-color: rgba(45, 170, 225, 0.2);
}

.cost__img {
  position: absolute;
  top: -24px;
  left: 647px;
  width: 790px;
  height: 527px;
  object-fit: cover;
  transform: scaleX(-1);
}

.cost__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: 64px 0 64px 64px;
}

.cost__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.cost__title {
  margin-top: 24px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-white);
}

.cost__text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.7);
}

.cost__actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.btn--rounded {
  border-radius: var(--radius-md);
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  padding: 128px 0;
  background-color: var(--color-white);
}

.about__inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.about__media {
  position: relative;
  flex-shrink: 0;
  width: 596px;
}

.about__photo {
  width: 100%;
  height: 745px;
  object-fit: cover;
  background-color: #e2e8f0;
  border-radius: var(--radius-lg);
}

.about__year {
  position: absolute;
  right: -24px;
  bottom: -24px;
  padding: 20px;
  background-color: var(--color-white);
  border: 0.8px solid #e5e7eb;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 12.5px rgba(0, 0, 0, 0.1)) drop-shadow(0 8px 5px rgba(0, 0, 0, 0.1));
}

.about__year-value {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
}

.about__year-label {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #64748b;
}

.about__content {
  flex: 1;
  min-width: 0;
  padding-top: 72px;
}

.about__title {
  margin-top: 12px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.about__text {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.625;
  color: #64748b;
}

.about__regions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 40px;
}

.about__region {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: #0f172a;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 596px;
  margin-top: 32px;
}

.about__stat {
  padding: 16px;
  text-align: center;
  border: 0.8px solid #e5e7eb;
  border-radius: var(--radius-md);
}

.about__stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-primary);
}

.about__stat-label {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

/* ==========================================================================
   Works
   ========================================================================== */
.works {
  padding: 112px 0;
  background-color: var(--color-white);
}

.section-title--md {
  font-size: 48px;
  line-height: 1.25;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.works__item {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews {
  padding: 128px 0;
  background-color: #f8fafc;
}

.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.reviews__nav {
  display: flex;
  gap: 12px;
}

.reviews__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  color: var(--color-white);
  background-color: var(--color-primary);
  border-radius: 50%;
  transition: background-color 0.25s ease, opacity 0.25s ease;
}

.reviews__arrow:hover:not(:disabled) {
  background-color: #0d4372;
}

.reviews__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.reviews__slider {
  display: flex;
  gap: 24px;
  margin-top: 56px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reviews__slider::-webkit-scrollbar {
  display: none;
}

.review-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 48px) / 3);
  scroll-snap-align: start;
  padding: 28px;
  background-color: var(--color-white);
  border: 0.8px solid #e5e7eb;
  border-radius: var(--radius-lg);
}

.review-card__stars {
  display: flex;
  gap: 2px;
}

.review-card__quote {
  flex-grow: 1;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.625;
  color: #0f172a;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 21px;
  border-top: 0.8px solid #e5e7eb;
}

.review-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  border-radius: 50%;
}

.review-card__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: #0f172a;
}

.review-card__role {
  font-size: 12px;
  line-height: 1.5;
  color: #64748b;
}

/* ==========================================================================
   Regions
   ========================================================================== */
.regions {
  padding: 112px 0 100px;
  background-color: var(--color-white);
  border-top: 0.8px solid #e5e7eb;
  border-bottom: 0.8px solid #e5e7eb;
}

.regions__inner {
  display: flex;
  align-items: flex-start;
  gap: 50px;
}

.regions__info {
  flex-shrink: 0;
  width: 398px;
  padding-top: 14px;
}

.regions__title {
  margin-top: 12px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.regions__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.regions__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.regions__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.regions__city {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #0f172a;
}

.regions__note {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

.regions__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-primary);
  transition: opacity 0.2s ease;
}

.regions__link:hover {
  opacity: 0.75;
}

.regions__map-scroll {
  flex-grow: 1;
  min-width: 0;
}

.regions__map {
  position: relative;
  aspect-ratio: 858 / 392;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.regions__card {
  position: absolute;
  top: 5.87%;
  height: 88.27%;
}

.regions__card--msk {
  left: 0;
  width: 33.45%;
}

.regions__card--mo {
  left: 26.11%;
  width: 40.33%;
}

.regions__card--spb {
  left: 59.32%;
  width: 40.02%;
}

.regions__card-img {
  width: 100%;
  height: 100%;
}

.regions__num {
  position: absolute;
  top: 5.5%;
  left: 6.6%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--color-white);
  border-radius: 50%;
}

.regions__card--mo .regions__num {
  left: 25.1%;
}

.regions__card--spb .regions__num {
  left: 25.8%;
}

.regions__card-name {
  position: absolute;
  bottom: 5.5%;
  left: 6.6%;
  max-width: 194px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.02;
  color: var(--color-white);
}

.regions__card--mo .regions__card-name {
  left: 11.6%;
}

.regions__card--spb .regions__card-name {
  left: 15.2%;
}

/* ==========================================================================
   Guarantee CTA
   ========================================================================== */
.guarantee {
  position: relative;
  min-height: 681px;
  background-color: var(--color-dark);
  overflow: hidden;
}

.guarantee__bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.guarantee__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guarantee__bg-overlay {
  position: absolute;
  inset: 0;
}

.guarantee__bg-overlay--side {
  background: linear-gradient(
    to right,
    rgba(10, 39, 68, 0.9) 0%,
    rgba(15, 76, 129, 0.5) 50%,
    rgba(0, 0, 0, 0) 100%
  );
}

.guarantee__bg-overlay--bottom {
  background: linear-gradient(to top, rgba(10, 39, 68, 0.6) 0%, rgba(0, 0, 0, 0) 50%);
}

.guarantee__glow {
  position: absolute;
  border-radius: 50%;
}

.guarantee__glow--cyan {
  top: 0;
  left: 25%;
  width: 384px;
  height: 384px;
  background-color: rgba(45, 170, 225, 0.15);
  filter: blur(100px);
}

.guarantee__glow--blue {
  top: 361px;
  left: 54%;
  width: 320px;
  height: 320px;
  background-color: rgba(15, 76, 129, 0.3);
  filter: blur(80px);
}

.guarantee__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 128px;
  padding-bottom: 128px;
  text-align: center;
}

.guarantee__badge {
  padding: 7px 17px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(255, 255, 255, 0.1);
  border: 0.8px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}

.guarantee__title {
  max-width: 720px;
  margin-top: 33px;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-white);
}

.guarantee__text {
  max-width: 520px;
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.65);
}

.guarantee__actions {
  display: flex;
  gap: 10px;
  margin-top: 48px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 15px;
  line-height: 1.5;
}

.btn--max {
  padding: 16px 28px;
  color: var(--color-white);
  background: url("/images/btn-max.png") center / cover no-repeat #425efd;
}

.btn--max:hover {
  box-shadow: 0 8px 24px rgba(66, 94, 253, 0.45);
}

.btn--whatsapp {
  padding: 16px 28px;
  color: var(--color-white);
  background-color: #25d366;
}

.btn--whatsapp:hover {
  background-color: #1fbd59;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.btn--telegram {
  padding: 16px 28px;
  color: var(--color-white);
  background-color: #2ca5e0;
}

.btn--telegram:hover {
  background-color: #2494cb;
  box-shadow: 0 8px 24px rgba(44, 165, 224, 0.4);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  padding: 128px 0;
  background-color: #f8fafc;
}

.faq__inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.faq__info {
  flex-shrink: 0;
  width: 400px;
}

.faq__text {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.625;
  color: #64748b;
}

.faq__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-primary);
}

.faq__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 40px;
}

.faq__input {
  width: 100%;
  padding: 15px 19px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.625;
  color: #0f172a;
  background-color: #eff6ff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease;
}

.faq__input::placeholder {
  color: #64748b;
}

.faq__input:focus {
  border-color: var(--color-accent);
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  /* Отключаем scroll anchoring: при закрытии верхнего вопроса
     браузер не должен подстраивать прокрутку — это выглядит как рывок */
  overflow-anchor: none;
}

.faq__item {
  background-color: var(--color-white);
  border: 0.8px solid #e5e7eb;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  padding: 0 24px 24px;
  font-size: 14px;
  line-height: 1.625;
  color: #64748b;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: #0f172a;
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 604px) minmax(0, 278px) minmax(0, 278px);
  justify-content: space-between;
  column-gap: 24px;
  padding: 64px 0;
}

.footer__logo {
  display: inline-block;
}

.footer__logo img {
  width: 150px;
  height: auto;
}

.footer__desc {
  max-width: 280px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.7);
}

.footer__heading {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  color: var(--color-white);
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

.footer__contact a:hover {
  color: var(--color-white);
}

.footer__contact--top {
  align-items: flex-start;
}

.footer__contact--top span {
  max-width: 247px;
}

.footer__socials {
  display: flex;
  gap: 11px;
  margin-top: 22px;
}

.footer__socials a {
  transition: opacity 0.2s ease;
}

.footer__socials a:hover {
  opacity: 0.8;
}

.footer__menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.footer__menu a {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer__menu a:hover {
  color: var(--color-white);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 0.8px solid rgba(255, 255, 255, 0.1);
}

.footer__copy {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   Responsive — tablet (≤1200px)
   ========================================================================== */
@media (max-width: 1200px) {
  .section-title {
    font-size: 44px;
  }

  .section-title--md {
    font-size: 38px;
  }

  /* Header */
  .nav {
    display: none;
  }

  .header__contacts .btn {
    display: none;
  }

  .burger {
    display: flex;
  }

  .header.is-menu-open {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
  }

  .header.is-menu-open .burger span {
    background-color: #0f172a;
  }

  @keyframes menu-drop {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav.is-open {
    animation: menu-drop 0.25s ease;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100vh - 80px);
    padding: 25px 32px 24px;
    overflow-y: auto;
    background-color: var(--color-white);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  }

  .nav.is-open .nav__link {
    font-size: 14px;
    line-height: 1.5;
    color: #64748b;
  }

  .nav.is-open .nav__link:hover {
    color: #0f172a;
  }

  .nav.is-open .nav__extra {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 2px;
    padding-top: 17px;
    border-top: 1px solid #e5e7eb;
  }

  .nav__contacts {
    display: flex;
    flex-direction: column;
  }

  .nav__contact {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #0f172a;
  }

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

  .nav__socials img {
    width: 42px;
    height: 42px;
  }

  .nav__btn {
    padding: 12px 20px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-white);
    background-color: var(--color-primary);
  }

  .nav__btn:hover {
    background-color: #0d4372;
  }

  /* Hero */
  .hero__inner {
    flex-direction: column;
    gap: 56px;
    padding-top: 160px;
  }

  .hero__title {
    font-size: 56px;
  }

  .hero__content {
    width: 100%;
    max-width: 650px;
  }

  .hero__card {
    margin-top: 0;
  }

  /* Services / why */
  .services,
  .why,
  .cost,
  .about,
  .reviews,
  .faq {
    padding-top: 88px;
  }

  .services,
  .why,
  .cost,
  .about,
  .reviews,
  .faq {
    padding-bottom: 88px;
  }

  .steps {
    padding: 88px 0;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }

  .why__grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }

  /* Steps */
  .steps__list {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px;
  }

  .steps__line {
    display: none;
  }

  /* Cost CTA */
  .cost__img {
    left: auto;
    right: -220px;
    opacity: 0.45;
  }

  /* About */
  .about__inner {
    flex-direction: column;
    gap: 56px;
  }

  .about__media {
    width: 100%;
    max-width: 596px;
  }

  .about__year {
    right: 24px;
    bottom: 24px;
  }

  .about__content {
    padding-top: 0;
  }

  /* Works */
  .works {
    padding: 88px 0;
  }

  .works__grid {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }

  /* Reviews */
  .reviews__slider {
    margin-top: 48px;
  }

  .review-card {
    flex-basis: calc((100% - 24px) / 2);
  }

  /* Regions */
  .regions {
    padding: 88px 0;
  }

  .regions__inner {
    flex-direction: column;
  }

  .regions__info {
    width: 100%;
  }

  .regions__map {
    width: 100%;
    max-width: 858px;
  }

  /* Guarantee */
  .guarantee__title {
    font-size: 56px;
  }

  /* FAQ */
  .faq__inner {
    flex-direction: column;
    gap: 56px;
  }

  .faq__info {
    width: 100%;
    max-width: 480px;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer__col--main {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Responsive — mobile (≤767px)
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --container-padding: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-title--md {
    font-size: 28px;
  }

  /* Header: сплошная синяя плашка, всегда закреплена, без кнопки телефона */
  .header__contact-info,
  .header__socials,
  .header__phone-btn {
    display: none;
  }

  .header__inner .burger {
    flex-shrink: 0;
  }

  .header {
    position: fixed;
  }

  .header:not(.is-menu-open) {
    background-color: rgba(15, 76, 129, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
  }

  /* Плавающее поведение отключаем: шапка видна всегда */
  .header.is-fixed {
    transform: none;
    transition: none;
  }

  .header.is-fixed:not(.is-menu-open) .header__logo-white {
    display: block;
  }

  .header.is-fixed:not(.is-menu-open) .header__logo-color {
    display: none;
  }

  .header.is-fixed:not(.is-menu-open) .burger span {
    background-color: var(--color-white);
  }

  /* Hero */
  .hero {
    min-height: 0;
  }

  .hero__inner {
    padding-top: 128px;
    padding-bottom: 64px;
  }

  .hero__title {
    font-size: 38px;
    letter-spacing: -1px;
  }

  .hero__text {
    font-size: 15px;
  }

  .hero__features {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero__card {
    width: 100%;
    padding: 20px;
  }

  .hero__region {
    white-space: normal;
  }

  .hero__scroll-line {
    display: none;
  }

  /* Sections */
  .services,
  .why,
  .cost,
  .about,
  .reviews,
  .faq {
    padding-top: 64px;
  }

  .services,
  .why,
  .cost,
  .about,
  .reviews,
  .faq {
    padding-bottom: 64px;
  }

  .steps,
  .works,
  .regions {
    padding: 64px 0;
  }

  .services__grid,
  .why__grid,
  .steps__list {
    grid-template-columns: 1fr;
  }

  .service-card--wide {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-card--wide .btn {
    width: 100%;
  }

  /* Reviews */
  .review-card {
    flex-basis: 100%;
  }

  .reviews__arrow {
    width: 44px;
    height: 44px;
  }

  /* Наши работы — свайп-слайдер */
  .works__grid {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-right: calc(-1 * var(--container-padding));
    padding-right: var(--container-padding);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .works__grid::-webkit-scrollbar {
    display: none;
  }

  .works__item {
    flex: 0 0 78%;
    min-width: 0;
    scroll-snap-align: center;
  }

  .services__grid,
  .why__grid,
  .works__grid {
    margin-top: 40px;
  }

  .steps__list {
    margin-top: 40px;
    row-gap: 40px;
  }

  /* Cost CTA */
  .cost__banner {
    min-height: 0;
  }

  .cost__img {
    display: none;
  }

  .cost__content {
    padding: 40px 24px;
  }

  .cost__title {
    font-size: 32px;
  }

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

  /* About */
  .about__photo {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .about__title {
    font-size: 32px;
  }

  .about__stats {
    grid-template-columns: 1fr;
  }

  /* Regions */
  .regions__title {
    font-size: 32px;
  }

  /* Карта регионов — горизонтальный скролл, карточки крупные */
  .regions__map-scroll {
    width: 100%;
    margin-right: calc(-1 * var(--container-padding));
    padding-right: var(--container-padding);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .regions__map-scroll::-webkit-scrollbar {
    display: none;
  }

  .regions__map {
    min-width: 560px;
  }

  .regions__num {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .regions__card-name {
    font-size: 15px;
    max-width: 150px;
  }

  /* Guarantee */
  .guarantee {
    min-height: 0;
  }

  .guarantee__inner {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .guarantee__title {
    font-size: 36px;
  }

  .guarantee__text {
    font-size: 15px;
  }

  .guarantee__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  /* Footer */
  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 0;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__links {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.works__item {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.works__item:hover {
  opacity: 0.9;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: rgba(10, 39, 68, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.lightbox__close:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 767px) {
  .lightbox {
    padding: 16px;
  }
}

/* ==========================================================================
   Модальное окно «Оставьте заявку»
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: rgba(10, 39, 68, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__card {
  position: relative;
  width: 100%;
  max-width: 758px;
  max-height: calc(100vh - 40px);
  padding: 44px 32px 40px;
  overflow-y: auto;
  background-color: #cae6ff;
  border-radius: var(--radius-md);
  transform: translateY(16px);
  transition: transform 0.3s ease;
}

.modal.is-open .modal__card {
  transform: translateY(0);
}

.modal__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.11;
  pointer-events: none;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 26px;
  line-height: 1;
  color: #0f172a;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.modal__close:hover {
  background-color: rgba(15, 76, 129, 0.1);
}

.modal__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal__title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.8px;
  text-align: center;
  color: #0f172a;
}

.modal__text {
  max-width: 480px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  text-align: center;
  color: #0f172a;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  margin-top: 36px;
}

.modal__submit {
  margin-top: 26px;
}

.modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(28, 28, 40, 0.6);
  cursor: pointer;
}

.modal__consent a {
  color: var(--color-accent);
}

.modal__checkbox {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 23px;
  height: 23px;
  margin: 0;
  background-color: #eff6ff;
  border: 1px solid #e6e9e8;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.modal__checkbox:checked {
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13'%3E%3Cpath d='M2 6.5l3 3L11 3.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  border-color: var(--color-accent);
}

@media (max-width: 767px) {
  .modal {
    padding: 12px;
  }

  .modal__card {
    padding: 40px 20px 32px;
  }

  .modal__title {
    font-size: 30px;
    letter-spacing: -1px;
  }
}

/* ==========================================================================
   Кнопка «Наверх»
   ========================================================================== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background-color: #0d4372;
}

@media (max-width: 767px) {
  .to-top {
    right: 16px;
    bottom: 72px; /* над мобильной плашкой контактов */
  }
}

/* ==========================================================================
   Мобильная плашка контактов
   ========================================================================== */
.mobile-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 89;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 12px;
    padding: 10px 12px;
    background-color: var(--color-white);
    box-shadow: 0 -2px 12px rgba(10, 39, 68, 0.12);
  }

  .mobile-bar__socials {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  .mobile-bar__socials a {
    transition: opacity 0.2s ease;
  }

  .mobile-bar__socials a:hover {
    opacity: 0.8;
  }

  .mobile-bar__contacts {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .mobile-bar__contact {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    color: var(--color-primary);
  }

  /* Контент не прячется за плашкой */
  body {
    padding-bottom: 56px;
  }
}

/* ==========================================================================
   Анимация CTA при открытии сайта
   ========================================================================== */
@keyframes btn-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 170, 225, 0.55);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(45, 170, 225, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(45, 170, 225, 0);
  }
}

.hero__actions .btn--accent {
  animation: btn-pulse 1.6s ease-out 0.9s 3;
}

.hero__actions .btn--accent::after {
  animation: btn-shine 0.8s ease 1.1s 2;
}

@media (prefers-reduced-motion: reduce) {
  .hero__actions .btn--accent,
  .hero__actions .btn--accent::after {
    animation: none;
  }
}

/* ==========================================================================
   Cookie-бар
   ========================================================================== */
.cookies {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 62px;
  width: calc(100% - 40px);
  max-width: 1256px;
  padding: 12px 20px 12px 35px;
  background-color: rgba(14, 70, 120, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  transform: translateX(-50%);
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookies[hidden] {
  display: none;
}

.cookies.is-hiding {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
}

.cookies__text {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-white);
}

.cookies__link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookies__btn {
  flex-shrink: 0;
  padding: 8px 29px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-white);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.cookies__btn:hover {
  background-color: rgba(45, 170, 225, 0.2);
}

@media (max-width: 767px) {
  .cookies {
    bottom: 68px; /* над мобильной плашкой контактов */
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: calc(100% - 24px);
    padding: 18px 20px;
    text-align: left;
  }

  .cookies__btn {
    width: 100%;
  }
}

.form-sending, .form-thanks, .form-error {
  font-weight: bold;
  text-align: center;
  font-size: 24px;
  display: none;
}

body:not(.body_101) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body:not(.body_101) .header {
  background: rgba(15, 76, 129, 0.9);
}

body:not(.body_101) main {
  padding: 110px 0 40px;
}

body:not(.body_101) .footer {
  margin: auto 0 0;
}