/* =============================================
   ПЕРЕМЕННЫЕ
   ============================================= */
:root {
  --orange: #FF6B00;
  --orange-light: #FF9A3C;
  --orange-pale: #FFF3E8;
  --white: #FFFFFF;
  --gray-light: #F7F7F7;
  --gray: #E5E5E5;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --gradient: linear-gradient(135deg, #FF6B00 0%, #FF9A3C 100%);
  --gradient-hero: linear-gradient(160deg, #fff8f2 0%, #fff3e8 50%, #ffe8cc 100%);
  --shadow: 0 4px 24px rgba(255, 107, 0, 0.12);
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

.section-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 48px;
  line-height: 1.2;
}

.section-title span { color: var(--orange); }
.section-title--left { text-align: left; }

/* =============================================
   SCROLL OFFSET (sticky header compensation)
   ============================================= */
section[id] {
  scroll-margin-top: 210px;
}

@media (max-width: 768px) {
  section[id] { scroll-margin-top: 115px; }
}

.text-orange { color: var(--orange); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  white-space: nowrap;
}

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

.btn--orange {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
}
.btn--orange:hover { box-shadow: 0 8px 28px rgba(255, 107, 0, 0.45); }

.btn--outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn--outline:hover { background: var(--orange-pale); }

/* =============================================
   HEADER
   ============================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--transition);
}

.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.1); }

/* --- Основная строка хедера --- */
.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 160px;
}

/* Логотип + название */
.header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none;
}

.header__logo-img { height: 150px; width: auto; object-fit: contain; }
.header__logo-name-img { height: 80px; width: auto; object-fit: contain; }


/* Столбец: телефон + кнопка */
.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex-shrink: 0;
}

.header__phone {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  transition: color var(--transition);
  white-space: nowrap;
}
.header__phone:hover { color: var(--orange); }

.header__cta { padding: 12px 24px; font-size: 14px; width: 100%; text-align: center; }

/* Столбец: часы работы */
.header__hours {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.header__hours-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.header__hours-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  min-width: 46px;
}

.header__hours-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.header__hours-day-off { color: #c05000; font-weight: 600; }

/* --- Узкая полоска навигации --- */
.header__nav {
  background: var(--gradient);
  border-bottom: none;
  position: sticky;
  top: 160px;
  z-index: 99;
  display: flex;
  gap: 0;
  height: 42px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 max(20px, calc((100% - 1160px) / 2 + 20px));
}

.header__nav-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  transition: color var(--transition), opacity var(--transition);
  letter-spacing: 0.02em;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.header__nav-link:hover { opacity: 0.8; color: var(--white); }
.header__nav-link:hover::after { transform: scaleX(1); }

/* Иконка телефона (мобильная) */
.header__phone-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  color: #1a1a1a;
  flex-shrink: 0;
}
.header__phone-btn svg { width: 19px; height: 19px; }

/* Бургер */
.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
  border-radius: 2px;
}
.header__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  background: #000;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/servicerepair.png') center/cover no-repeat;
  opacity: 1;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "title image"
    "body  image";
  column-gap: 40px;
  row-gap: 20px;
  align-items: start;
}

.hero__title  { grid-area: title; align-self: end; }
.hero__image  { grid-area: image; display: flex; align-items: center; justify-content: flex-end; }
.hero__body   { grid-area: body; }

.hero__title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 28px;
  color: #fff;
  text-align: left;
}

.hero__list {
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px 0;
}

.hero__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  padding: 10px 18px;
}

.hero__item strong {
  font-weight: 700;
}

.hero__item::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__image {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero__phone {
  width: 100%;
  max-width: 420px;
  height: auto;
  animation: heroFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

@keyframes heroFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-18px); }
  100% { transform: translateY(0); }
}

/* =============================================
   BENEFITS
   ============================================= */
.benefits {
  padding: 80px 0;
  background: var(--white);
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.benefit-card:hover::before { transform: scaleX(1); }

.benefit-card__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.benefit-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.benefit-card__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: 80px 0;
  background: var(--orange-pale);
}

.services__table {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.services__row {
  display: grid;
  grid-template-columns: 1fr 140px 110px 40px;
  gap: 16px;
  padding: 18px 28px;
  align-items: center;
  border-bottom: 1px solid var(--gray);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.services__row:last-child { border-bottom: none; }

.services__row:hover {
  background: var(--orange-pale);
}

.services__row:hover .services__arrow {
  transform: translateX(5px);
  color: var(--orange);
}

.services__name {
  font-size: 15px;
  color: var(--text);
}

.services__price {
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
  text-align: left;
}

.services__time {
  color: var(--text-muted);
  font-size: 14px;
  white-space: nowrap;
  text-align: left;
}

.services__arrow {
  font-size: 22px;
  color: var(--text-muted);
  transition: transform var(--transition), color var(--transition);
  text-align: center;
  line-height: 1;
}

.services__cta {
  text-align: center;
  margin-top: 36px;
}

/* =============================================
   PROBLEMS
   ============================================= */
.problems {
  padding: 80px 0;
  background: var(--white);
}

/* Баннер */
.problems__banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f2f2f2;
  border: 1.5px solid #cccccc;
  border-radius: 16px;
  overflow: visible;
  margin-bottom: 36px;
  min-height: 100px;
  position: relative;
}

.problems__banner-text {
  padding: 28px 40px;
  flex: 1;
}

.problems__banner-title {
  font-size: 42px;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 12px;
}

.problems__banner-desc {
  font-size: 15px;
  line-height: 1.55;
  color: #1a1a1a;
  max-width: 100%;
}

/* обёртка задаёт ровный горизонтальный обрез снизу */
.problems__banner-img-wrap {
  flex-shrink: 0;
  height: 250px;
  overflow: hidden;
  align-self: flex-end;
  margin-top: -55px;
  margin-right: 24px;
}

.problems__banner-img {
  height: 460px;
  width: auto;
  object-fit: contain;
  display: block;
}

.problems__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tag {
  background: var(--gray-light);
  border: 1px solid var(--gray);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 14px;
  color: var(--text);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  cursor: pointer;
}

.tag:hover {
  background: var(--orange-pale);
  border-color: var(--orange-light);
  color: var(--orange);
  transform: translateY(-2px);
}

/* =============================================
   PROCESS
   ============================================= */
.process {
  padding: 80px 0;
  background: var(--gray-light);
}

.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.process__step {
  flex: 1;
  text-align: center;
}

.process__step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow);
}

.process__step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.process__step-text {
  font-size: 13px;
  color: var(--text-muted);
}

.process__arrow {
  font-size: 24px;
  color: var(--orange-light);
  padding-top: 16px;
  flex-shrink: 0;
}

/* =============================================
   CASES
   ============================================= */
.cases {
  padding: 80px 0;
  background: var(--white);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.case-card__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.case-card__img--contain {
  object-fit: contain;
  background: #f5f5f5;
}

.case-card__body {
  padding: 20px;
}

.case-card__problem {
  font-weight: 700;
  margin-bottom: 6px;
}

.case-card__solution {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.case-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.case-card__price {
  font-weight: 700;
  color: var(--orange);
  font-size: 17px;
}

.case-card__time {
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   STATS
   ============================================= */
.stats {
  position: relative;
  padding: 80px 0;
  background: #152540;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/stats_fon.png') center / cover no-repeat;
  opacity: 0.35;
}

.stats__inner {
  position: relative;
  z-index: 1;
}

.stats__title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
}

.stats__subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 44px;
}

.stats__grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  text-align: center;
}

.stat-item__num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item__label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  line-height: 1.4;
}

.stats__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn--outline-white {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn--outline-white:hover {
  background: var(--white);
  color: var(--text);
}

/* =============================================
   REVIEWS
   ============================================= */
.reviews {
  padding: 80px 0;
  background: var(--gray-light);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.review-card__source {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 28px;
  width: auto;
  max-width: 60px;
  object-fit: contain;
}

.review-card__name {
  font-size: 16px;
  font-weight: 700;
  color: #1a3a6b;
  padding-right: 52px;
}

.review-card__text {
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  flex: 1;
}

.review-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.review-card__stars {
  color: #ffb800;
  font-size: 20px;
  letter-spacing: 1px;
}

.review-card__date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* =============================================
   TEAM
   ============================================= */
.team {
  padding: 80px 0;
  background: var(--white);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}

.team-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.team-card__photo {
  width: 90px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

.team-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-card__name {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.team-card__role {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.team-card__exp {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

.team-card__count {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
}

/* =============================================
   FAQ
   ============================================= */
.faq {
  padding: 80px 0;
  background: #fff;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray);
  padding: 24px 32px;
  display: flex;
  gap: 40px;
  align-items: baseline;
}

.faq__question {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  flex: 0 0 320px;
}

.faq__answer {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.contact {
  padding: 80px 0;
  background: var(--white);
}

.contact__subtitle {
  text-align: left;
  color: var(--text-muted);
  margin-top: -32px;
  margin-bottom: 40px;
  font-size: 16px;
}

.contact__body {
  display: flex;
  gap: 32px;
  align-items: stretch;
}

/* Карточка (левая колонка) */
.contact__card {
  flex: 0 0 400px;
  background: var(--white);
  border: 1.5px solid #d0d8e4;
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__info-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px;
  align-items: baseline;
}

.contact__info-label {
  font-size: 14px;
  color: var(--text-muted);
}

.contact__info-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.contact__hours-mobile { display: none; }

.contact__info-link {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.contact__info-link:hover { color: var(--orange); }

/* Форма внутри карточки */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__form-row {
  display: flex;
  gap: 10px;
}

.contact__input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 2px solid var(--gray);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--gray-light);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.contact__input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
  background: var(--white);
}

.contact__submit {
  flex-shrink: 0;
  padding: 12px 22px;
  font-size: 15px;
  white-space: nowrap;
}

.contact__privacy {
  font-size: 12px;
  color: var(--text-muted);
}

.contact__privacy a {
  color: var(--orange);
  text-decoration: underline;
}

.contact__success {
  padding: 12px 16px;
  background: #e8f8e8;
  border-radius: var(--radius-sm);
  color: #2d7a2d;
  font-weight: 600;
  font-size: 14px;
}

.contact__error {
  padding: 12px 16px;
  background: #fde8e8;
  border-radius: var(--radius-sm);
  color: #c0392b;
  font-size: 14px;
}

.contact__error a { color: inherit; text-decoration: underline; font-weight: 600; }

/* Карта (правая колонка) */
.contact__map {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
}

.contact__map-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #1A1A1A;
  color: var(--white);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.footer__logo {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer__heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer__link {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer__link:hover { color: var(--orange-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 26px 0;
}

.footer__bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-align: left;
  line-height: 1.6;
}

/* =============================================
   SCROLL TO TOP
   ============================================= */
.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,107,0,0.4);
  cursor: pointer;
  border: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover { box-shadow: 0 6px 20px rgba(255,107,0,0.55); }

/* =============================================
   АНИМАЦИИ при скролле
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   АДАПТИВ
   ============================================= */
@media (max-width: 1024px) {
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  /* Header */
  .header__contacts,
  .header__hours { display: none; }

  .header__inner { height: 70px; gap: 0; }

  .header__logo-img { height: 50px; }
  .header__logo-name-img { height: 36px; }

  .header__logo-name { font-size: 18px; }
  .header__logo-sub  { font-size: 9px; letter-spacing: 0.15em; }

  /* Меню — слайд справа */
  .header__nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 70px;
    right: 0;
    height: auto;
    width: fit-content;
    min-width: 160px;
    background: var(--white);
    padding: 16px 32px 20px;
    gap: 4px;
    border-left: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    border-radius: 0 0 0 12px;
    box-shadow: -4px 4px 20px rgba(0,0,0,0.12);
    transform: translateX(110%);
    transition: transform 0.3s ease;
    z-index: 9998;
  }

  .header__nav.open { transform: translateX(0); }

  .header__nav-link { color: var(--text); height: auto; padding: 12px 0; font-size: 15px; white-space: nowrap; }
  .header__nav-link:hover { opacity: 1; color: var(--orange); }

  .header__phone-btn { display: flex; }
  .header__burger { display: flex; margin-left: 5px; }

  /* Hero */
  .hero { padding: 28px 0 20px; overflow: visible; }
  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .hero__title {
    grid-area: unset;
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 16px;
    padding: 0;
    align-self: unset;
  }
  .hero__image {
    grid-area: unset;
    justify-content: center;
    width: 100%;
  }
  .hero__body {
    grid-area: unset;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 24px 16px 32px;
    margin-top: 0;
    width: 100%;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    box-shadow: 0 -6px 24px rgba(0,0,0,0.15);
  }
  .hero__item {
    padding: 8px 4px;
    font-size: 14px;
    align-items: flex-start;
  }
  .hero__item strong { white-space: nowrap; }
  .hero__item-extra { display: none; }
  .hero__phone {
    animation: none;
    max-width: 85%;
    margin: 0 auto;
    filter: drop-shadow(0 10px 24px rgba(0,0,0,0.45));
  }
  .hero__list {
    background: none;
    padding: 0;
    margin-bottom: 20px;
  }
  .hero__item { color: var(--text); }
  .hero__item::before { background: var(--orange); }
  .hero__buttons { flex-direction: column; gap: 12px; }
  .hero__buttons .btn { width: 100%; border-radius: 10px; justify-content: center; }
  .hero__buttons .btn--outline-white {
    background: var(--gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(255,107,0,0.35);
  }

  /* Grids */
  .benefits__grid { grid-template-columns: 1fr; gap: 16px; }
  .cases__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .team-card { padding: 16px; gap: 16px; }
  .team-card__photo { width: 70px; height: 86px; }
  .team-card__name { font-size: 16px; }
  .team-card__role { font-size: 13px; }
  .team-card__exp, .team-card__count { font-size: 13px; }
  .stats__grid { flex-wrap: wrap; justify-content: center; gap: 24px; }
  .stat-item { flex: 0 0 40%; text-align: center; }
  .stats__title { font-size: 26px; }
  .stats__buttons { flex-direction: column; }
  .stats__buttons .btn { text-align: center; justify-content: center; }

  /* Расписание в контактах — только мобильное */
  .contact__hours-mobile { display: grid; }

  /* Process */
  .process__steps { flex-direction: column; align-items: center; }
  .process__arrow { transform: rotate(90deg); }

  /* Services table */
  .services__row { grid-template-columns: 1fr auto auto; gap: 8px; padding: 14px 16px; }
  .services__name { font-size: 13px; }
  .services__arrow { display: none; }

  /* Problems banner */
  .problems__banner { flex-direction: column; align-items: flex-start; }
  .problems__banner-text { padding: 24px 20px 0; }
  .problems__banner-title { font-size: 26px; }
  .problems__banner-img-wrap { align-self: flex-end; height: 160px; margin-top: 0; margin-right: 0; }
  .problems__banner-img { height: 300px; }

  /* Reviews — 2 колонки */
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }

  /* Stats — все 3 элемента в ряд, одинаковые */
  .stats__grid { flex-wrap: nowrap; justify-content: space-between; gap: 16px; }
  .stat-item { flex: 1; }

  /* FAQ */
  .faq__item { flex-direction: column; gap: 8px; padding: 20px; }
  .faq__question { flex: none; }

  /* Contact */
  .contact__body { flex-direction: column; }
  .contact__card { flex: none; }
  .contact__map { min-height: 220px; }
  .contact__info-row { grid-template-columns: 1fr; gap: 2px; }
  .contact__form-row { flex-direction: column; }
  .contact__form-row .btn { width: 100%; }

  /* Footer */
  .footer__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 36px; }
}

/* =============================================
   RUNNING LINE (бегущая строка брендов)
   ============================================= */
.brands {
  background: var(--white);
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--gray);
  padding: 18px 0;
  overflow: hidden;
}

.brands__track-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Анимация управляется через JS (requestAnimationFrame) */
.brands__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.brands__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.brands__item {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  padding: 0 24px;
  white-space: nowrap;
  cursor: default;
  transition: color var(--transition);
}

.brands__item:hover { color: var(--orange); }

.brands__dot {
  color: var(--orange);
  font-size: 9px;
  opacity: 0.4;
  flex-shrink: 0;
  line-height: 1;
}


/* =============================================
   MODAL
   ============================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

.modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.modal.is-open .modal__overlay { opacity: 1; }

.modal__window {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 440px;
  margin: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.modal.is-open .modal__window {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}

.modal__close:hover {
  background: var(--orange-pale);
  color: var(--orange);
}

.modal__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}

.modal__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.modal__form { display: flex; flex-direction: column; gap: 12px; }

.modal__input,
.modal__textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
  box-sizing: border-box;
  resize: none;
}

.modal__input:focus,
.modal__textarea:focus { border-color: var(--orange); }

.modal__submit { width: 100%; margin-top: 4px; }

.modal__privacy {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.modal__privacy a { color: var(--orange); }

/* Экран успеха */
.modal__success {
  text-align: center;
  padding: 16px 0 8px;
}

.modal__success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin: 0 auto 20px;
}

.modal__success p {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .hero__title { font-size: 26px; }
  .section-title { font-size: 24px; margin-bottom: 32px; }
  .btn { padding: 13px 24px; font-size: 14px; }
  .modal__window { padding: 32px 20px 24px; }
  .modal__title { font-size: 20px; }

  /* Team cards — keep horizontal on small screens */

  /* Stats — вертикально на самых маленьких */
  .stats__grid { flex-direction: column; align-items: center; gap: 24px; }
  .stat-item { flex: 0 0 auto; width: 100%; }

  /* Reviews — 1 колонка */
  .reviews__grid { grid-template-columns: 1fr; }
}
