/* ===== Variables ===== */
:root {
  --navy-900: #0a1220;
  --navy-800: #0f1b2d;
  --navy-700: #1a2744;
  --navy-600: #243656;
  --slate-100: #f4f6f9;
  --slate-200: #e8ecf2;
  --slate-400: #94a3b8;
  --slate-600: #64748b;
  --white: #ffffff;
  --orange: #e8941a;
  --orange-hover: #d4830f;
  --orange-light: #f5a623;
  --gold: #fbbf24;
  --success: #22c55e;
  --wa: #25d366;
  --max: #296aed;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(10, 18, 32, 0.12);
  --shadow-lg: 0 12px 48px rgba(10, 18, 32, 0.2);
  --transition: 0.25s ease;
  --header-h: 80px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; font-size: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 800px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(232, 148, 26, 0.35);
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--orange), var(--orange-hover));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 148, 26, 0.45);
}
.btn--outline {
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--white);
  background: transparent;
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: var(--orange-light); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 18px 36px; font-size: 16px; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__img { height: 40px; width: auto; }
.nav { display: flex; gap: 24px; }
.nav__link {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav__link:hover { color: var(--orange-light); }
.header__contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header__messengers {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__messenger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
}
.header__messenger:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,0.4);
}
.header__messenger--wa { color: var(--wa); background: rgba(37,211,102,0.12); }
.header__messenger--wa:hover { background: rgba(37,211,102,0.22); }
.header__messenger--max { color: #5b9fff; background: rgba(41,106,237,0.15); }
.header__messenger--max:hover { background: rgba(41,106,237,0.25); }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  transition: color var(--transition);
}
.header__phone svg { color: var(--orange-light); flex-shrink: 0; }
.header__phone:hover { color: var(--orange-light); }
.header__phone--alt {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.header__phone--alt svg { display: none; }
.header__phone--alt:hover { color: var(--orange-light); }
.nav__mobile-contacts { display: none; }
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10,18,32,0.92) 0%, rgba(10,18,32,0.75) 45%, rgba(10,18,32,0.35) 100%),
    url('../images/hero-bg.jpg') center/cover no-repeat;
}
@supports (background-image: url('../images/hero-bg.webp')) {
  .hero__bg {
    background:
      linear-gradient(105deg, rgba(10,18,32,0.92) 0%, rgba(10,18,32,0.75) 45%, rgba(10,18,32,0.35) 100%),
      url('../images/hero-bg.webp') center/cover no-repeat;
  }
}
.hero__inner { position: relative; z-index: 1; padding: 80px 20px; }
.hero__content { max-width: 760px; }
.hero__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: clamp(17px, 2.5vw, 22px);
  color: rgba(255,255,255,0.88);
  margin-bottom: 16px;
  line-height: 1.45;
  font-weight: 600;
}
.hero__text {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.72);
  margin-bottom: 24px;
  line-height: 1.55;
}
.hero__price {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--white);
  margin-bottom: 32px;
}
.hero__price strong { color: var(--orange-light); font-weight: 800; }
.hero__price-alt {
  display: block;
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  font-weight: 400;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section--light { background: var(--white); }
.section--gray { background: var(--slate-100); }
.section--dark { background: var(--navy-800); color: var(--white); }

.section--bg {
  position: relative;
  background: var(--navy-800);
  color: var(--white);
  overflow: hidden;
}
.section--bg .section__title { color: var(--white); }
.section--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10,18,32,0.92) 0%, rgba(15,27,45,0.88) 100%),
    var(--section-bg) center/cover no-repeat;
  z-index: 0;
}
.section--bg > .container { position: relative; z-index: 1; }

.section__title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--navy-800);
}
.section__title--light { color: var(--white); }
.section__title--left { text-align: left; }
.section__lead {
  text-align: center;
  color: var(--slate-600);
  font-size: 18px;
  max-width: 720px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.section__lead--left { text-align: left; margin-left: 0; }
.section__lead--light { color: rgba(255,255,255,0.75); }

/* ===== Split layout ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split--reverse .split__visual { order: 2; }
.split--reverse .split__content { order: 1; }
.split__img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ===== Check list ===== */
.check-list { display: grid; gap: 14px; margin-top: 24px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  color: var(--navy-800);
  font-weight: 500;
  line-height: 1.5;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  border-radius: 4px;
}
.check-list li::after {
  content: '✓';
  position: absolute;
  left: 4px; top: 2px;
  font-size: 12px;
  color: var(--white);
  font-weight: 700;
}

/* ===== Service cards ===== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); margin-top: 40px; }
.service-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.service-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.service-card__photo {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.service-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card__photo img { transform: scale(1.05); }
.service-card__body { padding: 24px; border-top: 3px solid var(--orange); }
.service-card--wide .service-card__photo { aspect-ratio: auto; min-height: 100%; }
.service-card--wide .service-card__photo img { height: 100%; min-height: 220px; }
.service-card__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--white); }
.service-card__text { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ===== Steps list ===== */
.steps-list { display: grid; gap: 16px; margin-top: 24px; counter-reset: steps; }
.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy-800);
  line-height: 1.5;
}
.steps-list__num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  border-radius: 50%;
}
.note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--slate-600);
  font-style: italic;
}

/* ===== Stats ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0 32px;
}
.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  transition: transform var(--transition);
}
.stat-card:hover { transform: translateY(-4px); }
.stat-card__num {
  display: block;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--orange-light);
  margin-bottom: 8px;
  line-height: 1;
}
.stat-card__label {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  line-height: 1.4;
}

.perks-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
  margin-top: 16px;
}
.perks-list li {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  padding-left: 24px;
  position: relative;
}
.perks-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange-light);
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq { margin-top: 40px; }
.faq__item { border-bottom: 1px solid var(--slate-200); padding: 4px 0; }
.faq__question {
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--navy-800);
}
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--orange);
  font-weight: 400;
}
.faq__item[open] .faq__question::after { content: '−'; }
.faq__answer {
  padding: 0 0 20px;
  color: var(--slate-600);
  font-size: 15px;
  line-height: 1.7;
}

/* ===== Contacts ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contacts-phone {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--orange-light);
  margin: 24px 0 4px;
  transition: color var(--transition);
}
.contacts-phone:hover { color: var(--gold); }
.contacts-phone-hint { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.contacts-address {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.contacts-free {
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 20px;
}
.contacts-text {
  color: rgba(255,255,255,0.72);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 480px;
}
.contacts-messengers { display: flex; gap: 12px; flex-wrap: wrap; }
.messenger-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), border-color var(--transition);
}
.messenger-link:hover { background: rgba(255,255,255,0.1); border-color: var(--orange); }
.messenger-link--wa:hover { border-color: var(--wa); }
.messenger-link--max:hover { border-color: var(--max); }

/* ===== Form ===== */
.form {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 32px;
}
.form__title { font-size: 20px; font-weight: 700; margin-bottom: 24px; color: var(--white); }
.field { display: block; margin-bottom: 16px; }
.field__label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: rgba(255,255,255,0.8); }
.required { color: var(--orange-light); }
.field__input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  transition: border-color var(--transition);
  resize: vertical;
}
.field__textarea { min-height: 88px; }
.field__input:focus { outline: none; border-color: var(--orange); }
.field__input::placeholder { color: rgba(255,255,255,0.35); }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  cursor: pointer;
}
.checkbox input { margin-top: 3px; accent-color: var(--orange); }
.checkbox a { color: var(--orange-light); text-decoration: underline; }
.form__success {
  text-align: center;
  padding: 16px;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-weight: 500;
  margin-top: 16px;
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ===== Footer ===== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.65);
  padding: 40px 0;
  font-size: 14px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.footer__brand p { margin-top: 8px; line-height: 1.5; }
.footer__logo { height: 36px; width: auto; margin-bottom: 8px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.footer__links a { transition: color var(--transition); }
.footer__links a:hover { color: var(--orange-light); }
.footer__call { font-weight: 600; color: var(--orange-light); }
.footer__license { text-align: right; }
.license-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  transition: border-color var(--transition), color var(--transition);
}
.license-link:hover { border-color: var(--orange); color: var(--orange-light); }
.license-link svg { width: 18px; height: 18px; color: var(--orange-light); }
.footer__copy { font-size: 12px; }

/* ===== Floating messengers ===== */
.messengers-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.messengers-float__panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 240px;
  padding: 8px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), visibility 0s linear 0.25s;
}
.messengers-float.open .messengers-float__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition: opacity var(--transition), transform var(--transition), visibility 0s linear 0s;
}
.messengers-float__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--navy-800);
  transition: background var(--transition);
}
.messengers-float__link:hover { background: var(--slate-100); }
.messengers-float__icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
}
.messengers-float__icon svg { width: 22px; height: 22px; }
.messengers-float__link--call .messengers-float__icon { background: rgba(232,148,26,0.15); color: var(--orange); }
.messengers-float__link--wa .messengers-float__icon { background: rgba(37,211,102,0.12); color: var(--wa); }
.messengers-float__link--max .messengers-float__icon { background: rgba(41,106,237,0.12); color: var(--max); }
.messengers-float__title { display: block; font-size: 14px; font-weight: 600; }
.messengers-float__sub { display: block; font-size: 12px; color: var(--slate-600); }
.messengers-float__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  border-radius: 50%;
  color: var(--white);
  box-shadow: 0 6px 24px rgba(232,148,26,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.messengers-float__btn:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 28px rgba(232,148,26,0.55);
}
.messengers-float__btn svg { width: 26px; height: 26px; }
.messengers-float__icon-close { display: none; }
.messengers-float.open .messengers-float__icon-open { display: none; }
.messengers-float.open .messengers-float__icon-close { display: block; }
.messengers-float.open .messengers-float__btn { transform: rotate(0deg); }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .header__phone--alt { display: none; }
  .nav { gap: 18px; }
}

@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .service-card--wide { grid-column: span 1; display: block; }
  .service-card--wide .service-card__photo { aspect-ratio: 3 / 2; }
  .service-card--wide .service-card__photo img { min-height: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__visual { order: 0; }
  .split--reverse .split__content { order: 0; }
  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer__license { text-align: center; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--navy-900);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav.open { transform: translateY(0); opacity: 1; }
  .header__contacts { display: none; }
  .nav__mobile-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav__phone {
    font-size: 16px;
    font-weight: 600;
    color: var(--orange-light);
  }
  .nav__messengers {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }
  .nav__messengers .header__messenger {
    width: auto;
    height: auto;
    border-radius: var(--radius-sm);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    gap: 8px;
  }
  .burger { display: flex; }
  .grid--3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero__inner { padding: 60px 20px; }
  .perks-list { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__badges { flex-direction: column; }
  .messengers-float__panel { min-width: 210px; }
}
