/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
  --red: #d32f2f;
  --red-dark: #b71c1c;
  --red-light: #ff5252;
  --dark: #1a1a1a;
  --dark-light: #2d2d2d;
  --gray: #616161;
  --light: #f5f5f5;
  --white: #ffffff;
  --text-dark: #212121;
  --text-light: #757575;
  --border-color: #e0e0e0;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
  background: var(--white);
}

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

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

ul {
  list-style: none;
}

/* ===== ШАПКА САЙТА ===== */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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



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

.logo-icon {
  /*font-size: 2.5rem;*/
}
.logo img{
  display: block;
}

.logo-text h1 {
  font-size: 1.5rem;
  color: var(--red);
  font-weight: 700;
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.8rem;
  color: var(--text-light);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav-link {
  padding: 8px 15px;
  border-radius: 5px;
  transition: var(--transition);
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* Базовые стили для навигации */
.nav-link {
  position: relative;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-link.highlighted::after {
  width: 80%;
}

/* Стили для hover */
.nav-link:hover {
  color: var(--red);
  background: rgba(211, 47, 47, 0.1);
}

/* Стили для active */
.nav-link.active {
  color: var(--red);
  background: rgba(211, 47, 47, 0.1);
  font-weight: 600;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.15);
}

/* Стили для highlighted (подсветка при скролле) */
.nav-link.highlighted {
  color: var(--red) !important;
  background: rgba(211, 47, 47, 0.1) !important;
  font-weight: 600;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.15);
}

.nav-link.highlighted::after {
  width: 80% !important;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 8px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  overflow: hidden;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-icon.telegram {
  width: 28px;
  height: 28px;
}

/* Скрываем иконку телефона на десктопе */
.social-icon.phone-icon {
  display: none;
}

.header-phone {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
}

/* ===== ГЛАВНЫЙ БАННЕР ===== */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
  color: var(--white);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M32 8l24 14v28L32 64 8 50V22z' fill='none' stroke='%23d32f2f' stroke-width='1.5' stroke-opacity='0.1'/%3E%3Cpath d='M32 8l24 14-24 14L8 22z' fill='%23d32f2f' fill-opacity='0.04'/%3E%3Cpath d='M32 36v20M32 36l24-14M32 36L8 22' stroke='%23d32f2f' stroke-width='1' stroke-opacity='0.08'/%3E%3C/svg%3E");
  opacity: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
}

/* ===== КНОПКИ ===== */
.btn {
  padding: 15px 30px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

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

.btn-red:hover {
  background: var(--red-dark);
}

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

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

.btn-hero {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: 5px;
  text-align: center;
}

.btn-call {
  padding: 10px 25px;
  font-size: 0.95rem;
}

/* ===== СТАТИСТИКА ===== */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 60px;
}

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

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--red-light);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== СЕКЦИИ ===== */
.services, .services-extra, .about, .contacts {
  padding: 80px 0;
}

.services {
  background: var(--light);
}

.about {
  background: var(--white);
}

.reviews {
  padding: 80px 0 40px 0;
  background: var(--light);
}

.contacts {
  background: var(--white);
}

.contacts .section-title {
  margin-bottom: 30px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* ===== СЕТКА УСЛУГ ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* ===== КАРТОЧКИ УСЛУГ ===== */
.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border-color);
}

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

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--dark);
  font-size: 1.2rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== ОСНОВНЫЕ УСЛУГИ ===== */
.main-services {
  background: var(--white);
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ УСЛУГИ ===== */
.services-extra {
  background: var(--light);
}

/* ===== О НАС ===== */
.about-content {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about-list {
  margin: 30px 0;
}

.about-list li {
  padding: 10px 0;
  color: var(--text-dark);
  font-size: 1.05rem;
}

.about-image {
  width: 100%;
}

.about-image-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  color: var(--white);
  overflow: hidden;
}

.about-image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===== ОТЗЫВЫ ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

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

.review-stars {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.review-author {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ===== БОЛЬШЕ ОТЗЫВОВ НА AVITO ===== */
.avito-reviews {
  padding: 0 0 80px 0;
  background: var(--light);
  text-align: center;
}

.avito-link {
  color: var(--red);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.avito-link:hover {
  color: var(--red-dark);
  text-decoration: underline;
}

/* ===== КОНТАКТЫ ===== */
.contacts-content {
  display: flex;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  width: 100%;
}

.contact-info .contact-item {
  flex: 1 1 calc(25% - 30px);
  min-width: 200px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  background: var(--light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(211, 47, 47, 0.15);
}

.contact-item .contact-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.contact-item p {
  color: var(--text-light);
}

.contact-item a {
  color: var(--red);
  font-weight: 500;
  transition: var(--transition);
}

.contact-item a:hover {
  color: var(--red-dark);
}

.contact-hint {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 5px;
}

.instagram-disclaimer {
  font-size: 0.7rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 20px;
  width: 100%;
  text-align: center;
  opacity: 0.8;
}

/* ===== ФУТЕР ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 15px;
  color: var(--red);
}

.footer-section p,
.footer-section li {
  margin-bottom: 10px;
  color: var(--text-light);
}

.footer-section a {
  color: var(--white);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--red);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom-content span {
  text-align: left;
}

/* Мобильная версия нижнего блока футера */
@media (max-width: 768px) {
  .footer-bottom-content {
    justify-content: center;
    text-align: center;
  }

  .footer-bottom-content span {
    text-align: center;
  }
}

.footer-bottom-content a {
  color: var(--red);
  text-decoration: none;
}

.footer-bottom-content a:hover {
  text-decoration: underline;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 768px) {
  /* Скрываем блоки Услуги и Информация в подвале на мобильных */
  .footer-section:nth-child(2),
  .footer-section:nth-child(3) {
    display: none;
  }
  /* Скрываем навигацию на мобильных */
  .nav {
    display: none;
  }

  /* Показываем иконки справа на мобильных */
  .header-right {
    display: flex !important;
    align-items: center;
    gap: 10px;
  }

  /* Скрываем текст телефона и оставляем только иконки */
  .header-phone {
    display: none;
  }

  /* Логотип на мобильных (с текстом, уменьшенный) */
  .logo-text {
    display: block;
    line-height: 1;
  }

  .logo-icon img {
    width: 40px;
    height: auto;
  }

  .logo-text h1 {
    font-size: 1.1rem;
  }

  .logo-text span {
    font-size: 0.7rem;
  }

  /* Стили для иконок соцетей на мобильных */
  .header-socials {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  .social-icon:hover {
    transform: scale(1.1);
  }

  .social-icon img {
    width: 20px;
    height: 20px;
  }

  /* Показываем иконку телефона на мобильных */
  .social-icon.phone-icon {
    display: flex;
  }

  /* Стили для SVG иконки телефона */
  .social-icon.phone-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--red);
  }

  .social-icon.phone-icon:hover svg {
    fill: var(--red-dark);
  }

  /* Иконка телефона */
  .mobile-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .mobile-phone-icon:hover {
    background: var(--red-dark);
    transform: scale(1.1);
  }

  .mobile-phone-icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  /* Адаптивный заголовок */
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }

  /* Адаптивная сетка услуг */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Адаптивные отзывы */
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  /* Адаптивные контакты */
  .contacts-content {
    flex-direction: column;
    gap: 30px;
  }

  .contact-info .contact-item {
    flex: 1 1 100%;
  }

  /* Адаптивный "О нас" */
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-image-placeholder {
    height: 250px;
  }

  /* Футер в столбец */
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===== БОЛЬшие экраны ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav {
    gap: 20px;
  }
}

.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 20px;
}

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

.footer-section h3 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--red-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-stats {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    gap: 10px;
    z-index: 999;
  }

  .nav.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .header-content {
    flex-direction: row;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-item {
    font-size: 1.5rem;
  }

  .about-content,
  .contacts-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-form-wrapper {
    padding: 30px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-item {
    flex-direction: column;
    gap: 5px;
  }

  .contact-icon {
    font-size: 1.5rem;
  }

  .header-phone {
    display: none;
  }

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

  .services-extra {
    padding: 60px 0;
  }

  .services-extra .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .btn-hero {
    padding: 15px 30px;
    font-size: 0.95rem;
  }
}