* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --dark: #0f1923;
  --dark-2: #1a2734;
  --accent: #e63946;
  --accent-hover: #c1272d;
  --accent-light: #ff6b6b;
  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #eef0f4;
  --gray-200: #dce1e8;
  --text: #1a1a2e;
  --text-light: #5a6577;
  --text-muted: #8a95a5;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* === Section Headers === */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-tag--light {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-align: center;
  font-family: inherit;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(230, 57, 70, 0.35);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 24px rgba(230, 57, 70, 0.45);
  transform: translateY(-2px);
}

.btn--glass {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.btn--glass:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* === Header === */
.header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
}

.header__logo span {
  color: var(--accent);
}

.logo__icon {
  display: flex;
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__nav a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--accent);
}

.header__cta {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent);
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.header__cta:hover {
  background: var(--accent-hover);
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

.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;
  background: var(--dark);
  padding: 80px 0 100px;
  overflow: hidden;
}

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

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
  filter: brightness(0.6);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--dark) 0%, transparent 30%, transparent 60%, var(--dark) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(230, 57, 70, 0.2) 0%, transparent 60%);
}

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

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(230, 57, 70, 0.15);
  border: 1px solid rgba(230, 57, 70, 0.3);
  border-radius: 100px;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 700px;
}

.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}

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

.hero__stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat__number {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.stat__label {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
}

/* === Services === */
.services {
  padding: 100px 0;
}

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

.service-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.3s;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.service-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

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

.service-card--featured .service-card__icon { color: var(--accent); }
.service-card--featured h3 { color: var(--white); }
.service-card--featured p { color: rgba(255,255,255,0.6); }
.service-card--featured .service-card__price { color: var(--accent-light); }

.service-card--featured:hover {
  background: var(--dark-2);
  border-color: rgba(230,57,70,0.3);
}

.service-card__icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

/* === Process === */
.process {
  padding: 100px 0;
  background: var(--dark);
  color: var(--white);
}

.process .section-header h2 {
  color: var(--white);
}

.process__steps {
  display: flex;
  gap: 0;
  position: relative;
}

.process__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(230,57,70,0.2));
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 12px;
}

.step__number {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 8px var(--dark), 0 0 0 10px rgba(230,57,70,0.3);
}

.step__content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* === Portfolio === */
.portfolio {
  padding: 100px 0;
  background: var(--gray-50);
}

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

.portfolio__item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid var(--gray-100);
}

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

.portfolio__image {
  height: 240px;
  position: relative;
  overflow: hidden;
}

.portfolio__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio__item:hover .portfolio__image img {
  transform: scale(1.05);
}

.portfolio__info {
  padding: 24px;
}

.portfolio__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(230,57,70,0.1);
  color: var(--accent);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.portfolio__info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.portfolio__info p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* === Guarantees === */
.guarantees {
  padding: 100px 0;
  background: var(--dark);
  color: var(--white);
}

.guarantees__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: center;
}

.guarantees__text h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 28px;
}

.guarantees__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guarantees__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: rgba(255,255,255,0.8);
}

.guarantees__list svg {
  flex-shrink: 0;
}

.guarantees__visual {
  display: flex;
  justify-content: center;
}

.guarantee-card {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  width: 260px;
  box-shadow: 0 16px 48px rgba(230,57,70,0.3);
}

.guarantee-card__icon {
  margin-bottom: 16px;
  color: var(--white);
}

.guarantee-card__value {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 4px;
}

.guarantee-card__label {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
}

/* === Reviews === */
.reviews {
  padding: 100px 0;
}

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

.review-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-100);
  transition: all 0.3s;
}

.review-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  border-color: var(--gray-200);
}

.review-card__stars {
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.review-card__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 20px;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.review-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

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

/* === Contact Form === */
.contact-form {
  padding: 100px 0;
  background: var(--gray-50);
}

.contact-form__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-form__text h2 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-form__text p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.7;
}

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

.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.form input,
.form textarea,
.form select {
  padding: 16px 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--gray-50);
  color: var(--text);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.1);
  background: var(--white);
}

.form textarea {
  resize: vertical;
}

.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a6577' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

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

/* === Contacts === */
.contacts {
  padding: 100px 0;
}

.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: start;
}

.contacts__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contacts__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contacts__icon {
  width: 48px;
  height: 48px;
  background: rgba(230,57,70,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contacts__item strong {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contacts__item a {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  transition: color 0.2s;
}

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

.contacts__item p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
}

.contacts__map iframe {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}

/* === Footer === */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__logo span {
  color: var(--accent);
}

.footer__brand p {
  font-size: 14px;
  line-height: 1.6;
}

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

.footer__contacts a,
.footer__contacts span {
  font-size: 14px;
  transition: color 0.2s;
}

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

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

.footer__nav a {
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer__bottom {
  padding-top: 20px;
  text-align: center;
}

.footer__bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* === Mobile === */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process__steps {
    flex-wrap: wrap;
    gap: 24px;
  }

  .process__steps::before {
    display: none;
  }

  .step {
    flex: 0 0 calc(50% - 12px);
  }

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

  .guarantees__visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  }

  .header__nav.open {
    display: flex;
  }

  .header__actions {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .hero {
    padding: 50px 0 60px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  .stat__number {
    font-size: 24px;
  }

  .section-header h2 {
    font-size: 28px;
  }

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

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

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

  .contact-form__inner {
    grid-template-columns: 1fr;
  }

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

  .step {
    flex: 0 0 100%;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guarantees__text h2,
  .contact-form__text h2 {
    font-size: 28px;
  }

  .form {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 26px;
  }

  .hero__buttons {
    flex-direction: column;
  }

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

  .guarantee-card {
    width: 100%;
  }
}
