/* Hero Section */
.hero-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #cc0000, #ff4d4d);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* Анимированный фон с "плавающим светом" */
.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 70%);
  animation: rotateBackground 20s linear infinite;
  z-index: 0;
}

@keyframes rotateBackground {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Заголовок */
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1px;
  animation: fadeInDown 1s ease forwards;
  opacity: 0;
}

@keyframes fadeInDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Подзаголовок */
.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Кнопка */
.btn-hero {
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(45deg, #ff4d4d, #cc0000);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: fadeIn 1.5s ease forwards;
  opacity: 0;
}

.btn-hero:hover {
  background: linear-gradient(45deg, #cc0000, #990000);
  transform: scale(1.05);
  box-shadow: 0px 4px 15px rgba(0,0,0,0.3);
}

/* Плавное появление при загрузке */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/*Адаптивность*/
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .btn-hero {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
}

/* Контейнер секции */
#contact {
  font-family: "Segoe UI", sans-serif;
}

/* ===== About Section ===== */
.about-section {
  background: #fff;
  color: #333;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #cc0000;
}

.about-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Блок с картинками */
.about-images {
  position: relative;
  width: 100%;
  height: 350px;
}

.about-img {
  position: absolute;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
}

.about-img:hover {
  transform: scale(1.05);
}

.about-img.img-1 {
  top: 0;
  left: 0;
  width: 60%;
  z-index: 3;
}

.about-img.img-2 {
  bottom: 0;
  right: 0;
  width: 55%;
  z-index: 2;
}

.about-img.img-3 {
  top: 20%;
  right: 15%;
  width: 40%;
  z-index: 1;
  opacity: 0.9;
}

/* Карточки с иконками */
.about-card {
  background: #f8f9fa;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.about-card:hover {
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.about-card h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #cc0000;
}

.about-card p {
  font-size: 0.95rem;
  color: #555;
}



/* ===== Services Section ===== */
.services-section {
  background: #f8f9fa;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #cc0000;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #cc0000;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Карточки */
.service-card {
  background: #fff;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Иконки */
.service-icon {
  font-size: 3rem;
  color: #cc0000;
  margin-bottom: 1rem;
  transition: transform 0.4s ease, color 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(5deg);
  color: #990000;
}

/* Заголовок и текст */
.service-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.service-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}







/* Карточка формы */
.contact-form-wrapper {
  background: #fff;
  padding: 1.8rem;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  animation: fadeInUp 0.8s ease-out;
}

/* Поля */
.contact-form-wrapper .form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.contact-form-wrapper .form-control:focus {
  border-color: #e63946;
  box-shadow: 0 0 6px rgba(230,57,70,0.4);
  outline: none;
}

/* Кнопка */
.btn-submit {
  background: linear-gradient(45deg, #e63946, #ff4d6d);
  color: #fff;
  padding: 10px 30px;
  border: none;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-submit:hover {
  background: linear-gradient(45deg, #d62828, #f94144);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(230,57,70,0.3);
}

/* Анимация появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .contact-form-wrapper {
    padding: 1.2rem;
  }
  
  .btn-submit {
    width: 100%;
    padding: 12px 0;
  }
}

.top-button {
  background: linear-gradient(45deg, #ff4d4d, #cc0000); /* красный перелив */
  border: none;
  color: #fff;
  transition: all 0.3s ease;
}

.top-button:hover {
  background: linear-gradient(45deg, #cc0000, #990000);
  transform: translateY(-3px);
}
.top-button:focus {
  box-shadow: 0 0 8px rgba(255, 77, 77, 0.6);
  outline: none;
}