/* Red Service — статическая вёрстка (перенос с Tilda) */

@font-face {
  font-family: 'TildaSans';
  font-style: normal;
  font-weight: 250 1000;
  font-display: swap;
  src: url('../fonts/TildaSans-VF.woff2') format('woff2-variations'),
       url('../fonts/TildaSans-VF.woff2') format('woff2'),
       url('../fonts/TildaSans-VF.woff') format('woff');
}

:root {
  --red: #c30000;
  --red-bright: #e60202;
  --black: #000;
  --font: 'TildaSans', Arial, sans-serif;
  --header-h: 80px;
  --mobile-bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--black);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.nowrap { white-space: nowrap; }
.arial { font-family: Arial, sans-serif; }
.red { color: var(--red); }
.m { display: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.anchor { display: block; position: relative; top: calc(-1 * var(--header-h)); visibility: hidden; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1ch;
  min-height: 60px;
  padding: 0 60px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease-in-out, color .2s ease-in-out, box-shadow .2s ease-in-out;
}
.btn--red { background: var(--red); color: #fff; }
.btn--outline { background: #fff; color: #000; border-color: var(--red); }
.btn--upper { text-transform: uppercase; }

/* ---------- Шапка (десктоп) ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2000;
  height: var(--header-h);
  background: #fff;
}
.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 40px;
}
.logo {
  color: var(--red);
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  padding-right: 30px;
}
.nav { flex: 1; text-align: center; }
.nav__list { display: inline-flex; gap: 30px; }
.nav__link {
  position: relative;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 20%;
  width: 100%; height: 100%;
  opacity: 0;
  box-shadow: inset 0 -1px 0 0 var(--red-bright);
  transition: all .3s ease;
  pointer-events: none;
}
.nav__link:hover::after, .nav__link:focus-visible::after { opacity: 1; bottom: 0; }

.header__right { display: flex; align-items: center; gap: 30px; margin-left: 25px; }
.header__hours {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: right;
  white-space: nowrap;
}
.social { display: flex; align-items: center; gap: 10px; }
.social a { display: block; line-height: 0; }
.social svg { display: block; }
.header__btn {
  min-height: 45px;
  padding: 0 30px;
  font-size: 14px;
  font-weight: 600;
}
.langs { display: flex; gap: 20px; }
.langs a { font-size: 16px; font-weight: 400; text-decoration: none; }

/* ---------- Мобильная шапка ---------- */
.mbar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 2001;
  height: var(--mobile-bar-h);
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.burger {
  position: relative;
  width: 28px; height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.burger span {
  position: absolute;
  left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transition: .25s ease-in-out;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2), .burger span:nth-child(3) { top: 8px; }
.burger span:nth-child(4) { top: 16px; }
.menu-open .burger span:nth-child(1), .menu-open .burger span:nth-child(4) { top: 8px; width: 0; left: 50%; }
.menu-open .burger span:nth-child(2) { transform: rotate(45deg); }
.menu-open .burger span:nth-child(3) { transform: rotate(-45deg); }

.phonebar { display: none; }
.phonebar__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}
.phonebar__phone a { color: var(--red); text-decoration: none; white-space: nowrap; }
.phonebar__addr {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative;
  margin-top: 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: #333 url('../img/hero.jpg') center / cover no-repeat;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding-top: 52px; padding-bottom: 42px; text-align: center; }
.hero__title {
  padding: 24px 0;
  font-size: 72px;
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: 1px;
}
.hero__descr { padding: 15px 0 30px; font-size: 20px; font-weight: 400; line-height: 1.55; }
.hero__buttons { margin-top: 45px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Заголовки секций ---------- */
.section-title {
  padding: 150px 20px 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.23;
  text-align: center;
}
.section-title--arial { font-family: Arial, sans-serif; font-weight: 700; }

/* ---------- О компании ---------- */
.about {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 90px 20px 5px;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
}
.about p { flex: 1; }

/* ---------- Услуги ---------- */
.services {
  display: flex;
  padding: 45px 10px 0;
}
.services__half { width: 50%; display: flex; flex-wrap: wrap; }
.service {
  position: relative;
  flex: 1 1 calc(50% - 20px);
  margin: 10px;
  overflow: hidden;
  color: #fff;
}
.service--wide { flex-basis: calc(100% - 20px); }
.service::before { content: ''; display: block; padding-bottom: 50%; }
.service--box::before { padding-bottom: 100%; }
.services__half--big .service { flex-basis: calc(100% - 20px); }
.service__img {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform .6s ease;
}
.service:hover .service__img { transform: scale(1.05); }
.service__overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(36, 36, 36, .5), rgba(0, 0, 0, .6));
}
.service__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.service__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.service__descr { margin-top: 15px; font-size: 16px; line-height: 1.55; }

/* ---------- Кнопка «Узнать стоимость» ---------- */
.cta { padding-top: 150px; }
.cta__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 1ch;
  width: 100%;
  min-height: 145px;
  padding: 0 80px;
  overflow: hidden;
  background: var(--red);
  color: #fff;
  font-size: 30px;
  font-weight: 600;
  text-decoration: none;
}
.cta__icon {
  width: 1.4em; height: 1.4em;
  background-color: currentColor;
  -webkit-mask: url('../img/arrow-right.svg') center / contain no-repeat;
  mask: url('../img/arrow-right.svg') center / contain no-repeat;
}
.cta__flash {
  position: absolute;
  top: 0; left: 0;
  width: 45px; height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.4));
  transform: skewX(-45deg) translateX(-150px);
  animation: flash 3s linear infinite;
}
@keyframes flash {
  0% { transform: skewX(-45deg) translateX(-150px); }
  40%, 100% { transform: skewX(-45deg) translateX(calc(100vw + 150px)); }
}

/* ---------- Как мы работаем ---------- */
.steps {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 45px;
}
.step { position: relative; width: 25%; padding: 0 20px; }
.step__title {
  position: relative;
  z-index: 2;
  padding-top: 65px;
  padding-bottom: 10px;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
}
.step__num {
  position: absolute;
  z-index: 1;
  top: 0; left: 0; right: 0;
  font-family: sans-serif;
  font-size: 200px;
  font-weight: 700;
  line-height: 150px;
  text-align: center;
  color: rgba(230, 230, 230, .7);
  opacity: .6;
  user-select: none;
}

/* ---------- Бегущая строка ---------- */
.marquee {
  margin: 30px 0 45px;
  height: 80px;
  overflow: hidden;
  background: var(--red);
  display: flex;
  align-items: center;
}
.marquee__track {
  display: flex;
  flex-shrink: 0;
  animation: marquee 40s linear infinite;
}
.marquee__item {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
  color: #fff;
  font-size: 20px;
  line-height: 1.55;
}
.marquee__item span { padding: 0 10px; }
.marquee__item::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Преимущества ---------- */
.pros {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 45px 0 150px;
}
.pro { width: 25%; padding: 0 20px; }
.pro__img {
  display: block;
  width: 100%;
  aspect-ratio: 260 / 300;
  object-fit: cover;
}
.pro__title { margin: 27px 0 12px; font-size: 20px; font-weight: 600; line-height: 1.23; }
.pro__descr { margin: 17px 0 25px; font-size: 18px; font-weight: 300; line-height: 26px; }

/* ---------- Две кнопки ---------- */
.duo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 15px 20px;
}
.duo .btn { box-shadow: 0 0 10px rgba(0, 0, 0, .1); }
.duo .btn:hover { background: #fff; color: #000; }

/* ---------- Способы оплаты ---------- */
.payments {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 45px;
  text-align: center;
}
.payment { width: 25%; padding: 0 20px; display: flex; }
.payment__box { flex: 1; border: 1px solid #000; padding: 35px 0 48px; }
.payment__img { display: block; width: 100px; height: 100px; margin: 0 auto 30px; object-fit: contain; }
.payment__title { margin-bottom: 25px; padding: 0 25px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.payment__descr { padding: 0 25px; font-size: 18px; font-weight: 300; line-height: 26px; }
.payment--small .payment__title { font-size: 24px; }
.payment--small .payment__descr { font-size: 16px; line-height: 25px; }

/* ---------- Отзывы ---------- */
.reviews { padding: 150px 0 135px; }
.reviews .section-title { padding-top: 0; margin-bottom: 90px; }
.reviews__wrap { position: relative; }
.reviews__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-left: calc((100% - 760px) / 2);
  padding-right: calc((100% - 760px) / 2);
  scroll-padding-left: calc((100% - 760px) / 2);
}
.reviews__track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 760px;
  padding-right: 40px;
  scroll-snap-align: start;
}
.review__card {
  min-height: 440px;
  padding: 40px;
  background: #f2f2f2;
  border-radius: 4px;
}
.review__name { font-size: 26px; font-weight: 600; line-height: 1.23; }
.review__date { margin-top: 5px; font-size: 16px; font-weight: 300; line-height: 1.55; color: #777; }
.review__text { margin-top: 40px; font-size: 20px; font-weight: 300; line-height: 1.55; }
.reviews__arrow {
  position: absolute;
  top: 0; bottom: 0;
  width: calc((100% - 760px) / 2);
  border: 0;
  background: transparent;
  cursor: pointer;
}
.reviews__arrow--prev { left: 0; }
.reviews__arrow--next { right: 0; }

/* ---------- Контакты ---------- */
.contacts {
  position: relative;
  padding: 135px 0;
}
.contacts__map {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%; right: 0;
  background: url('../img/map.jpg') center / cover no-repeat;
}
.contacts__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.contacts__text { max-width: 460px; }
.contacts__title { font-size: 42px; font-weight: 600; line-height: 1.23; }
.contacts__descr { margin-top: 20px; max-width: 560px; font-size: 24px; font-weight: 300; line-height: 1.5; }
.contacts__descr strong { font-weight: 700; }
.contacts__descr a { color: var(--red); text-decoration: none; }
.contacts__text { padding-bottom: 180px; }

/* ---------- Подвал ---------- */
.footer { padding: 60px 0; }
.footer .social { justify-content: center; gap: 0; }
.footer .social li { padding: 0 7px; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 3000;
  width: 300px;
  padding: 20px 25px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .2);
  text-align: center;
}
.cookie[hidden] { display: none; }
.cookie__text { font-size: 14px; font-weight: 400; line-height: 1.55; text-align: left; }
.cookie__btn {
  margin-top: 15px;
  min-height: 35px;
  padding: 0 15px;
  font-size: 13px;
  font-weight: 400;
}
.cookie__close {
  position: absolute;
  top: 5px; right: 5px;
  width: 23px; height: 23px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

/* =========== Адаптив =========== */
@media (max-width: 1200px) {
  .header__inner { padding: 0 20px; }
  .header__right { gap: 20px; }
  .logo { padding-right: 15px; }
  .nav__list { gap: 20px; }
  .hero__title { font-size: 68px; }
  .section-title { font-size: 38px; }
  .about { max-width: 960px; }
  .steps, .pros, .payments { max-width: 960px; }
  .btn { padding: 0 45px; }
  .header__btn { padding: 0 25px; }
  .cta__btn { min-height: 100px; font-size: 26px; padding: 0 65px; }
  .contacts__inner { max-width: 960px; }
  .contacts__title { font-size: 30px; }
  .contacts__descr { font-size: 22px; }
  .step__title { font-size: 20px; }
}

@media (max-width: 1100px) {
  .header__hours { display: none; }
}

@media (max-width: 980px) {
  :root { --header-h: var(--mobile-bar-h); }
  body { padding-top: var(--mobile-bar-h); }
  .mbar { display: flex; }
  .hero { margin-top: 0; }
  .contacts__text { padding-bottom: 0; }
  .header {
    top: var(--mobile-bar-h);
    height: auto;
    display: none;
    max-height: calc(100vh - var(--mobile-bar-h));
    overflow-y: auto;
  }
  .menu-open .header { display: block; }
  .header__inner { display: block; height: auto; padding: 0 0 20px; text-align: center; }
  .header .logo { display: none; }
  .nav__list { display: block; padding: 20px 0; }
  .nav__list li { padding: 10px; }
  .header__right { flex-direction: column; margin: 0; gap: 20px; }
  .header__hours { display: block; text-align: center; }

  .phonebar {
    display: block;
    padding: 10px 20px 15px;
    text-align: right;
  }
}

@media (max-width: 960px) {
  .about { display: block; max-width: 640px; }
  .about p { margin-bottom: 20px; }
  .services { display: block; padding: 45px 10px 0; }
  .services__half { width: 100%; }
  .steps { flex-wrap: wrap; max-width: 640px; }
  .step { width: 50%; margin-top: 45px; }
  .step:nth-child(-n+2) { margin-top: 0; }
  .pros { display: block; max-width: 640px; }
  .pro { width: 100%; margin-bottom: 45px; }
  .pro:last-child { margin-bottom: 0; }
  .pro__title { margin-top: 20px; }
  .payments { display: block; max-width: 640px; }
  .payment { width: 100%; margin-bottom: 40px; }
  .payment:last-child { margin-bottom: 0; }
  .cta__btn { min-height: 100px; }
  .contacts { padding: 75px 0 0; }
  .contacts__map { position: relative; left: 0; height: 400px; margin-top: 40px; }
  .contacts__text { max-width: 100%; }
}

@media (max-width: 800px) {
  .review { flex-basis: calc(100vw - 40px); padding-right: 20px; }
  .reviews__track { padding-left: 20px; padding-right: 20px; scroll-padding-left: 20px; }
  .reviews__arrow { display: none; }
}

@media (max-width: 640px) {
  .hero { align-items: center; text-align: left; }
  .hero__inner { padding-top: 42px; text-align: left; }
  .hero__title { padding: 24px 0 38px; font-size: 40px; text-transform: uppercase; }
  .d { display: none; }
  .m { display: inline; }
  .hero__descr { padding: 0 0 30px; color: #afafaf; font-size: 20px; line-height: 1.45; }
  .hero__buttons { margin-top: 60px; justify-content: flex-start; gap: 12px; }
  .hero__buttons .btn { padding: 0 30px; text-transform: none; }
  .hero__buttons .btn--red { order: 2; background: var(--red-bright); }
  .hero__buttons .btn--outline { order: 1; }

  .section-title { font-size: 34px; }
  .services__half .service { flex-basis: calc(100% - 20px); }
  .service::before, .service--box::before { padding-bottom: 100%; }
  .service__descr { font-size: 14px; }
  .btn { padding: 0 30px; white-space: normal; }
  .cta__btn { min-height: 70px; font-size: 18px; padding: 0 50px; }
  .duo { flex-wrap: wrap; }
  .duo .btn { width: 100%; max-width: 320px; }
  .marquee__item { font-size: 16px; }
  .step:nth-child(odd) { padding-left: 40px; }
  .step:nth-child(even) { padding-right: 40px; }
  .contacts__title { font-size: 32px; }
  .contacts__descr { font-size: 20px; line-height: 1.4; }
  .review__card { padding: 30px; }
  .review__name { font-size: 22px; }
  .review__text { margin-top: 30px; font-size: 16px; line-height: 1.45; }
  .cookie { left: 20px; width: auto; }
}

@media (max-width: 480px) {
  .section-title { padding-top: 75px; }
  .cta { padding-top: 75px; }
  .reviews { padding-top: 60px; }
  .reviews .section-title { margin-bottom: 45px; }
  .step { width: 100%; }
  .step:nth-child(odd) { padding-left: 20px; }
  .step:nth-child(even) { padding-right: 20px; }
  .step:nth-child(2) { margin-top: 45px; }
  .steps { padding-top: 30px; padding-bottom: 45px; }
  .payments-title { padding-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .cta__flash { animation: none; }
  html { scroll-behavior: auto; }
}
