/* В начало site.css */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/roboto-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('./fonts/roboto-medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('./fonts/roboto-bold.woff2') format('woff2');
}


/* ========== БАЗОВЫЕ СТИЛИ ========== */
:root {
  --red: #e30613;
  --dark-red: #c00511;
  --black: #1a1a1a;
  --dark-gray: #333;
  --gray: #666;
  --light-gray: #f5f5f5;
  --white: #fff;
}

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

body {
  font-family: 'Roboto', sans-serif;
  color: var(--black);
  line-height: 1.6;
  background-color: var(--white);
}

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

.btn {
  display: inline-block;
  background-color: var(--red);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s;
  border: 2px solid var(--red);
}

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

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 36px;
  font-weight: 700;
  color: var(--black);
  position: relative;
}

.section-title:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--red);
  margin: 20px auto 0;
}

/* ========== ШАПКА ========== */
header {
  background-color: var(--black);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
}

.logo span {
  color: var(--red);
}

nav {
  display: flex;
  gap: 25px;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--red);
}

.phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  font-size: 18px;
  white-space: nowrap;
  transition: color 0.3s;
}

.phone:hover {
  color: var(--red);
}

.phone-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ========== МОБИЛЬНОЕ МЕНЮ ========== */
.mobile-header {
  display: none;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background-color: var(--black);
  padding: 0 20px 15px;
}

.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav.active {
  display: flex;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========== ГЕРОЙ-БАННЕР ========== */
.hero {
  background:
          linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
          url('images/atermal_mazda.jpg') no-repeat center/cover;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out;
}

.hero p {
  font-size: 24px;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.btn-hero {
  animation: fadeInUp 0.8s ease-out 0.4s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== ПРЕИМУЩЕСТВА ========== */
.advantages {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.advantage-card {
  position: relative;
  padding: 40px 25px;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  opacity: 0.08;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40%;
  z-index: 0;
  transition: all 0.3s ease;
}

.advantage-card h3,
.advantage-card p {
  position: relative;
  z-index: 1;
  text-align: center;
}

.advantage-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--black);
}

.advantage-card:hover .advantage-icon {
  opacity: 0.12;
  background-size: 42%;
}

/* ========== БЛОК ЦЕН ========== */
.pricing {
  padding: 80px 0;
  background-color: var(--white);
}

.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.pricing-table thead th {
  background-color: var(--red);
  color: var(--white);
  font-weight: 700;
  padding: 20px;
  text-align: center;
  font-size: 18px;
  border: none;
}

.pricing-table tbody td {
  padding: 25px 20px;
  text-align: center;
  background-color: var(--white);
  border-bottom: 1px solid var(--light-gray);
  font-size: 16px;
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table tbody tr:nth-child(even) td {
  background-color: #fafafa;
}

.pricing-table tbody tr:hover td {
  background-color: #fff8f8;
}

.price-label {
  font-weight: 700;
  color: var(--red);
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.price-description {
  color: var(--gray);
  font-size: 14px;
}

.price-value {
  font-weight: 700;
  font-size: 22px;
  color: var(--black);
}

/* ========== ФОРМА ЗАХВАТА ========== */
.lead-form {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
  color: var(--white);
  text-align: center;
}

.lead-form h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.lead-form p {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.form-group {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group input {
  padding: 15px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
}

/* ========== УСЛУГИ ========== */
.services {
  padding: 80px 0;
  background-color: var(--light-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-img {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.service-content {
  padding: 25px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--red);
}

.service-features {
  margin: 15px 0;
  padding-left: 20px;
}

.service-features li {
  margin-bottom: 8px;
  position: relative;
}

.service-features li:before {
  content: "•";
  color: var(--red);
  position: absolute;
  left: -15px;
}

.service-price {
  font-weight: 700;
  margin-top: 15px;
  color: var(--black);
}

.service-warranty {
  background-color: var(--red);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 14px;
  margin-left: 10px;
}

/* ========== ОТЗЫВЫ ========== */
.reviews {
  padding: 80px 0;
  background-color: var(--white);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: var(--light-gray);
  padding: 30px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.review-img {
  height: 150px;
  background-size: cover;
  background-position: center;
  margin: -30px -30px 20px -30px;
  border-radius: 8px 8px 0 0;
}

.review-card:before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 60px;
  color: var(--red);
  opacity: 0.2;
  font-family: serif;
  line-height: 1;
  z-index: 0;
}

.review-card p {
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.review-author {
  font-weight: 700;
  color: var(--black);
}

.review-car {
  color: var(--gray);
  font-size: 14px;
}

/* ========== ПОДВАЛ ========== */
footer {
  background-color: var(--black);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--red);
  margin-bottom: 20px;
  font-size: 20px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: var(--red);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  color: var(--gray);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 992px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-header {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .hero p {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 10px 0;
  }

  .logo {
    font-size: 24px;
  }

  .phone-text {
    display: none;
  }

  .phone-icon {
    width: 24px;
    height: 24px;
  }

  .pricing-table {
    display: block;
    overflow-x: auto;
  }

  .section-title {
    font-size: 28px;
  }

  .hero {
    height: 70vh;
    min-height: 500px;
    padding: 100px 0;
  }

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

  .hero p {
    font-size: 18px;
  }

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

  .service-img {
    height: 200px;
  }

  .review-img {
    height: 120px;
  }
}

/* Все стили из предыдущего ответа */
/* Добавьте дополнительные стили для страниц услуг: */

.service-page {
  padding: 60px 0;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}

.service-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-info h2 {
  font-size: 32px;
  color: var(--red);
  margin-bottom: 20px;
}

.service-info h3 {
  font-size: 24px;
  margin: 25px 0 15px;
  color: var(--dark-gray);
}

@media (max-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-info {
    order: -1;
  }
}

/* Делаем всю карточку услуги кликабельной */
.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Стили для блока цен на шумоизоляцию */
.pricing-content {
  background-color: var(--white);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-description {
  text-align: center;
  font-size: 18px;
  line-height: 1.6;
  color: var(--dark-gray);
}

.pricing-features {
  list-style: none;
  margin: 25px 0;
  padding: 0;
  text-align: left;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-features li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.pricing-features li:before {
  content: "•";
  color: var(--red);
  position: absolute;
  left: 10px;
  font-size: 20px;
}

.pricing-cta {
  font-size: 20px;
  font-weight: 500;
  color: var(--black);
  margin-top: 30px;
}

@media (max-width: 768px) {
  .pricing-content {
    padding: 25px;
  }

  .pricing-description {
    font-size: 16px;
  }
}

/* Стили для шапки с контактами */
.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--white);
}

.header-contacts {
  display: flex;
  gap: 30px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  color: var(--red);
}

.contact-phone {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.contact-address {
  font-size: 16px;
  white-space: nowrap;
}

/* Адаптация для мобильных */
@media (max-width: 1200px) {
  .header-contacts {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

@media (max-width: 992px) {
  .header-contacts {
    display: none;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-header {
    display: flex;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 10px 0;
  }

  .logo {
    font-size: 24px;
  }
}

/* Стили для модальных окон */
.custom-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-icon {
  margin-bottom: 20px;
}

.modal-icon svg {
  width: 60px;
  height: 60px;
}

.modal-icon.success svg {
  color: #4CAF50;
}

.modal-icon.error svg {
  color: #F44336;
}

.modal-message {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

.modal-close-btn {
  background: #e30613;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.modal-close-btn:hover {
  background: #c00511;
}