/* ===================== TOKENS ===================== */
:root{
  --black: #15171B;
  --graphite: #2B2E34;
  --graphite-2: #3D414A;
  --white: #FFFFFF;
  --offwhite: #F4F3F1;
  --line: #E5E3DF;
  --text: #1D1F23;
  --text-muted: #6B6F76;
  --red: #C8102E;
  --red-dark: #A00D26;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1440px;
  --radius: 14px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.grid > *{ min-width: 0; }
h1,h2,h3{
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; color: var(--text-muted); }
a{ color: inherit; text-decoration: none; }
ul, ol{ margin:0; padding:0; list-style:none; }
img{ max-width:100%; display:block; }
button{ font-family: inherit; cursor:pointer; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow--light{ color: #FF6B7E; }

.section{ padding: 88px 0; }
.section--white{ background: var(--white); }
.section--offwhite{ background: var(--offwhite); }
.section--dark{ background: var(--black); }
.section--dark p{ color: #B7B9BE; }

.section__title{
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  max-width: 780px;
  margin-bottom: 40px;
}
.section__title--light{ color: var(--white); }

/* ===================== BUTTONS ===================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active{ transform: scale(.97); }
.btn--red{ background: var(--red); color: var(--white); }
.btn--red:hover{ background: var(--red-dark); }
.btn--outline{ border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--outline:hover{ border-color: var(--white); }
.btn--lg{ padding: 16px 30px; font-size: 16px; }
.btn--sm{ padding: 9px 16px; font-size: 13px; }
.btn--block{ width: 100%; }

/* ===================== HEADER ===================== */
.site-header{
  position: sticky; top:0; z-index: 100;
  background: rgba(21,23,27,.92);
  backdrop-filter: blur(6px);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 76px;
}
.logo{
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  color: var(--white);
  letter-spacing: .02em;
}
.logo span{ color: var(--red); margin-left: 6px; }
.nav{ display:flex; gap: 28px; }
.nav__link{
  color: #D8D9DC;
  font-size: 14.5px;
  font-weight: 600;
}
.nav__link:hover{ color: var(--white); }
.header__contacts{ display:flex; align-items:center; gap: 18px; }
.header__phone{ color: var(--white); font-weight: 700; font-size: 14.5px; white-space: nowrap; }

.burger{
  display:none;
  width: 40px; height: 40px;
  background:none; border:none;
  flex-direction: column; justify-content:center; gap:5px;
}
.burger span{ display:block; height:2px; width:24px; background:var(--white); }

/* ===================== HERO ===================== */
.hero{
  position: relative;
  background: linear-gradient(160deg, var(--black) 0%, var(--graphite) 100%);
  color: var(--white);
  padding: 110px 0 90px;
  overflow: hidden;
}
.hero__collage{
  position: absolute;
  inset: 0;
  background-image: url("../img/hero-collage.svg");
  background-size: cover;
  background-position: center;
}
.hero__scrim{
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(21,23,27,.93) 0%, rgba(21,23,27,.82) 38%, rgba(21,23,27,.5) 68%, rgba(21,23,27,.28) 100%);
}
.hero__bg-text{
  position:absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: min(28vw, 340px);
  color: rgba(255,255,255,.03);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.hero__inner{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero__content{ max-width: 700px; min-width: 0; }
.hero__media{
  position: relative;
  background: linear-gradient(160deg, var(--graphite) 0%, var(--graphite-2) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__media-img{ width: 100%; height: 100%; object-fit: cover; }
.hero__media-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(21,23,27,0);
  color: transparent;
  font-weight: 700;
  font-size: 14.5px;
  border-radius: var(--radius);
  transition: background .2s ease, color .2s ease;
}
.hero__media:hover .hero__media-overlay,
.hero__media:focus-visible .hero__media-overlay{
  background: rgba(21,23,27,.72);
  color: var(--white);
}
.hero__media-input{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.hero__title{
  font-size: clamp(15px, 4.3vw, 44px);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero__subtitle{
  font-size: 17.5px;
  color: #C7C9CE;
  max-width: 620px;
  margin-bottom: 36px;
}
.hero__cta{ display:flex; gap: 16px; flex-wrap: wrap; margin-bottom: 48px; }
.hero__badges{
  display:flex; flex-direction: column; gap: 10px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero__badges li{ font-size: 14.5px; color: #B7B9BE; line-height: 1.5; }
.hero__badges strong{ color: var(--white); font-family: var(--font-head); font-size: 15.5px; }

/* ===================== GRIDS / CARDS ===================== */
.grid{ display:grid; gap: 22px; }
.grid--2{ grid-template-columns: 1fr 1fr; }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }

.card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.card--bordered{ border: 1px solid var(--line); }
.section--offwhite .card{ background: var(--white); }
.card h3{ font-size: 18px; margin-bottom: 10px; }
.card p{ font-size: 14.5px; margin-bottom: 0; }
.card__num{
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 26px;
  color: var(--red);
  margin-bottom: 10px;
}
.tag{
  display:inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--red);
  background: rgba(200,16,46,.08);
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}
.card--bordered h3{ font-size: 20px; }
.card--bordered p{ font-size: 15px; }

.audience__note{
  margin-top: 28px;
  font-size: 15px;
  max-width: 820px;
}

/* ===================== STEPS ===================== */
.steps{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.steps__item{
  padding: 26px 20px;
  border-radius: var(--radius);
  background: var(--offwhite);
}
.steps__num{
  display:inline-flex; align-items:center; justify-content:center;
  width: 34px; height:34px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 14px;
}
.steps__item h3{ font-size: 16px; margin-bottom: 8px; }
.steps__item p{ font-size: 13.5px; margin-bottom: 0; }

/* ===================== PAY TABS ===================== */
.paytabs-row{ display:flex; gap: 40px; align-items: flex-start; }
.paytabs{ max-width: 640px; flex: 1 1 auto; min-width: 0; }
.paytabs-collage{ display: none; }
@media (min-width: 1024px){
  .paytabs-collage{
    display: block;
    position: relative;
    flex: 1 1 auto;
    min-height: 400px;
    align-self: stretch;
  }
  .paytabs-collage img{
    position: absolute;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
  }
  .paytabs-collage .pc-2{
    width: 54%;
    aspect-ratio: 4/5;
    top: 0;
    left: 0;
    transform: rotate(-3deg);
    z-index: 2;
  }
  .paytabs-collage .pc-3{
    width: 54%;
    aspect-ratio: 4/5;
    bottom: 0;
    right: 0;
    transform: rotate(4deg);
    z-index: 1;
  }
}
.paytabs__title{ font-size: 20px; margin-bottom: 18px; }
.paytabs__switch{ display:flex; gap: 10px; margin-bottom: 22px; }
.paytabs__btn{
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
}
.paytabs__btn.is-active{ background: var(--black); color: var(--white); border-color: var(--black); }
.paytabs__list{ display:none; }
.paytabs__list.is-active{ display:block; }
.paytabs__list li{
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text);
}
.paytabs__list li:last-child{ border-bottom:none; }
.paytabs__list li::before{
  content:"";
  position:absolute; left:0; top:19px;
  width:8px; height:8px; border-radius: 50%;
  background: var(--red);
}

/* ===================== PRICE ===================== */
.price-grid{ margin-bottom: 26px; }
.price-card{
  background: var(--graphite);
  border-radius: var(--radius);
  padding: 30px;
}
.price-card h3{ color: var(--white); font-size: 20px; }
.price-card__hint{ font-size: 13px; font-weight: 500; color: #9C9EA3; }
.price-table{ width:100%; border-collapse: collapse; margin: 14px 0; }
.price-table td{
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #D8D9DC;
  font-size: 14.5px;
}
.price-table td:last-child{ text-align:right; font-weight: 700; color: var(--white); }
.price-card__note{ font-size: 13px; color: #9C9EA3; margin: 0; }
.price-flat{ display:flex; align-items:baseline; gap: 12px; margin: 20px 0; }
.price-flat__num{ font-family: var(--font-head); font-weight: 900; font-size: 48px; color: var(--red); }
.price-flat__label{ color: #D8D9DC; font-size: 14.5px; }
.price-disclaimer{ font-size: 13.5px; color: #9C9EA3; max-width: 760px; }
.price-cta{ margin-top: 30px; }
.trust-cta{ margin-top: 36px; }
.trust-cta .btn{ white-space: normal; width: 100%; text-align: center; }

/* ===================== TRUST ===================== */
.link-arrow{ font-weight: 700; color: var(--red); font-size: 14px; }
.trust-2gis-link{ margin: 0 0 20px; }

.gallery{ position: relative; display:flex; align-items:center; gap: 12px; }
.gallery__track{
  flex: 1;
  display:flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}
.gallery__track::-webkit-scrollbar{ height: 6px; }
.gallery__track::-webkit-scrollbar-thumb{ background: var(--line); border-radius: 3px; }

.gallery__item{
  position: relative;
  flex: 0 0 calc(25% - 12px);
  scroll-snap-align: start;
  aspect-ratio: 4/3;
  border-radius: 10px;
  background: var(--offwhite);
  border: 1px dashed var(--line);
  display:flex; align-items:center; justify-content:center;
  color: var(--text-muted);
  font-size: 13px;
  overflow: hidden;
}
.gallery__item--review{
  border-style: solid;
  background: var(--offwhite);
  padding: 8px;
  height: 420px;
  aspect-ratio: auto;
}
.gallery__item--review img{
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.gallery__item--video{ background: var(--graphite); }
.gallery__item--video video{
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 6px;
}
.gallery__nav{
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.gallery__nav:hover{ background: var(--offwhite); }
.step-break{ display: none; }

@media (max-width: 1024px){
  .gallery__item{ flex-basis: calc(50% - 8px); }
}
@media (max-width: 640px){
  .gallery__item{ flex-basis: calc(85% - 8px); }
  .gallery__item--review{ height: 380px; }
  .badge-part{ display:block; }
  .badge-sep{ display:none; }
  .hero__badges li{ padding-top: 2px; }
  .step-break{ display: block; }
}

/* ===================== FAQ ===================== */
.faq{ max-width: 780px; }
.faq__item{ border-bottom: 1px solid var(--line); }
.faq__question{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px;
  background:none; border:none;
  padding: 22px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  text-align:left;
  color: var(--text);
}
.faq__icon{
  position: relative;
  flex-shrink: 0;
  width: 18px; height: 18px;
}
.faq__icon::before, .faq__icon::after{
  content:"";
  position:absolute; top:50%; left:50%;
  background: var(--red);
  transform: translate(-50%,-50%);
}
.faq__icon::before{ width: 14px; height: 2px; }
.faq__icon::after{ width: 2px; height: 14px; transition: transform .2s ease; }
.faq__item.is-open .faq__icon::after{ transform: translate(-50%,-50%) rotate(90deg) scale(0); }
.faq__answer{
  max-height:0; overflow:hidden;
  opacity: 0;
  transition: max-height .45s cubic-bezier(.4,0,.2,1), opacity .35s ease;
}
.faq__answer p{ padding-bottom: 22px; margin:0; font-size: 15px; }
.faq__item.is-open .faq__answer{ opacity: 1; }

/* ===================== CONTACT ===================== */
#contacts{ padding-bottom: 40px; }
.contact__inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:stretch;
}
.contact__inner > *{ min-width: 0; }
.contact__text{ font-size: 15.5px; max-width: 440px; margin-bottom: 32px; }
.contact__direct{ display:flex; flex-direction:column; gap: 14px; }
.contact__row{ display:flex; align-items:center; gap: 12px; color: var(--white); font-weight: 700; font-size: 15.5px; }
.contact__row, .footer__contacts a, .footer__contacts span{ white-space: nowrap; }
.contact__icon{ color: var(--red); }
.contact__photo{ display: none; }
@media (min-width: 881px){
  .contact__intro{ display:flex; flex-direction:column; }
  .contact__photo{
    display: block;
    flex: 1 1 auto;
    min-height: 220px;
    margin-top: 36px;
    border-radius: var(--radius);
    overflow: hidden;
  }
  .contact__photo img{ width: 100%; height: 100%; object-fit: cover; display: block; }
}

.contact-form{
  background: var(--graphite);
  border-radius: var(--radius);
  padding: 32px;
}
#leadFormFields{ display:flex; flex-direction:column; gap: 16px; }
#leadFormFields[hidden]{ display: none; }
.contact-form__success{
  margin: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding: 20px 0;
}
.field{ display:flex; flex-direction:column; gap: 8px; font-size: 13.5px; color: #B7B9BE; }
.field input, .field select, .field textarea{
  font-family: var(--font-body);
  background: var(--black);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 14.5px;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--red);
}
.contact-form__hint{ font-size: 12px; color: #8D8F94; margin: 0; }
.field--checkbox{
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
}
.field--checkbox input{ width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--red); }
.field--checkbox a{ color: var(--white); text-decoration: underline; }
.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.nowrap{ white-space: nowrap; }

/* ===================== FOOTER ===================== */
.footer{ background: var(--black); color: #B7B9BE; padding: 50px 0 0; }
.footer__inner{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap: 30px;
  padding-bottom: 36px;
}
.logo--footer{ margin-bottom: 10px; display:inline-block; }
.footer__tagline{ font-size: 13.5px; margin:0; max-width: 260px; }
.footer__nav{ display:flex; flex-direction:column; gap: 10px; font-size: 14px; }
.footer__nav a:hover{ color: var(--white); }
.footer__contacts{ display:flex; flex-direction:column; gap: 10px; font-size: 14px; font-weight: 600; }
.footer__contacts a:hover{ color: var(--white); }
.footer__legal{
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  font-size: 12.5px;
  color: #8D8F94;
}
.footer__legal a{ color: #8D8F94; text-decoration: underline; }
.footer__legal a:hover{ color: var(--white); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px){
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
  .steps{ grid-template-columns: repeat(3, 1fr); }
  .hero__inner{ grid-template-columns: 1fr; }
  .hero__content{ max-width: 100%; }
  .hero__media{ max-width: 460px; margin: 0 auto; aspect-ratio: 4/3; }
}

@media (max-width: 880px){
  .header__inner{ flex-wrap: wrap; }
  .site-header.is-open .header__inner{ height:auto; padding-bottom: 4px; }
  .nav, .header__contacts{ display:none; width:100%; }
  .burger{ display:flex; }
  .nav{ order: 10; }
  .header__contacts{ order: 11; }
  .site-header.is-open .nav{
    display:flex; flex-direction:column;
    padding: 20px 0 4px;
    gap: 18px;
  }
  .site-header.is-open .header__contacts{
    display:flex; flex-direction:column; align-items:flex-start; gap: 14px;
    padding: 0 0 28px;
  }
  .grid--2, .grid--3, .grid--4{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; }
  .contact__inner{ grid-template-columns: 1fr; }
  .section{ padding: 64px 0; }
}

@media (max-width: 520px){
  .steps{ grid-template-columns: 1fr; }
  .hero{ padding: 90px 0 60px; }
  .hero__cta{ flex-direction:column; }
  .hero__cta .btn{ width:100%; white-space: normal; text-align: center; }
  .price-flat__num{ font-size: 38px; }
}
