/* styles.css */

/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #1A1A2E;
  background: #F5F7FA;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Определение цветовой палитры */
:root {
  --primary-blue: #003D5B;
  --steel-blue: #456268;
  --bright-orange: #FF6B35;
  --light-bg: #F5F7FA;
  --white: #FFFFFF;
  --text-dark: #1A1A2E;
  --text-medium: #4A5568;
  --gradient-primary: linear-gradient(135deg, #003D5B 0%, #456268 100%);
  --gradient-orange: linear-gradient(135deg, #FF6B35 0%, #FF8B61 100%);
}

/* Контейнер */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--gradient-primary);
  padding: 18px 0;
  z-index: 1000;
  box-shadow: 0 4px 25px rgba(0, 61, 91, 0.3);
  backdrop-filter: blur(10px);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #FF6B35, #FFD93D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.logo:hover {
  filter: brightness(1.2);
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

/* Навигация */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-orange);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--bright-orange);
  transform: translateY(-2px);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Кнопки */
.btn {
  padding: 16px 35px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--gradient-orange);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF8B61 0%, #FF6B35 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

/* Выпадающее меню */
.contact-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  width: 240px;
  font-size: 1.1rem;
  text-align: center;
  padding: 16px 35px;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 240px;
  background: var(--primary-blue);
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 10;
  margin-top: 5px;
}

.contact-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--white) !important;
  padding: 14px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  border-radius: 8px;
  gap: 10px;
  transition: background 0.3s ease;
  background: var(--primary-blue);
  font-weight: 600;
}

.dropdown-content a:hover {
  background: var(--bright-orange);
  transform: translateX(5px);
}

/* HERO */
.hero {
  height: 100vh;
  min-height: 700px;
  background: url('img/remont.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 61, 91, 0.9) 0%, rgba(69, 98, 104, 0.7) 50%, rgba(255, 107, 53, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: 3.8rem;
  line-height: 1.2;
  margin-bottom: 25px;
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: titleZoom 1s ease-out;
  letter-spacing: -1px;
}

@keyframes titleZoom {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.8;
}

.hero-text {
  font-size: 1.4rem;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto 35px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

/* Услуги */
.services {
  background: var(--white);
  padding: 120px 0;
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(180deg, var(--light-bg) 0%, transparent 100%);
  pointer-events: none;
}

.services h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -1px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-medium);
  font-size: 1.2rem;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 61, 91, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  border: 2px solid transparent;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0, 61, 91, 0.2);
  border-color: var(--bright-orange);
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.5rem;
  margin: 25px 25px 15px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.service-card p {
  margin: 0 25px 25px;
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.7;
}

.services-btn {
  text-align: center;
  margin-top: 50px;
}

/* Преимущества */
.advantages {
  background: var(--gradient-primary);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.advantages::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

.advantages h2 {
  font-size: 3rem;
  margin-bottom: 60px;
  color: var(--white);
  position: relative;
  z-index: 1;
  font-weight: 800;
  letter-spacing: -1px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

.advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 35px 25px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.advantage-item:hover {
  background: rgba(255, 107, 53, 0.15);
  border-color: var(--bright-orange);
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

.advantage-item i {
  font-size: 3rem;
  color: var(--bright-orange);
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.advantage-item p {
  font-size: 1.15rem;
  color: var(--white);
  font-weight: 600;
}

/* Контакты */
.contact {
  background: var(--white);
  padding: 100px 0;
  text-align: center;
}

.contact h2 {
  font-size: 3rem;
  margin-bottom: 30px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -1px;
}

.contact p {
  font-size: 1.15rem;
  color: var(--text-medium);
  margin-bottom: 15px;
}

.contact a {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.contact a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Футер */
.footer {
  background: var(--gradient-primary);
  color: var(--white);
  text-align: center;
  padding: 30px 0;
  font-size: 1rem;
  box-shadow: 0 -4px 20px rgba(0, 61, 91, 0.2);
}

.footer a {
  background: linear-gradient(135deg, #FF6B35, #FFD93D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
}

.footer a:hover {
  opacity: 0.8;
}

/* Кнопка "Наверх" */
.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: var(--gradient-orange);
  color: var(--white);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.5rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
  transition: all 0.3s ease;
}

.scroll-to-top:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 15px;
    padding: 15px 20px;
  }

  .nav-menu {
    width: 100%;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
  }

  .nav-menu a {
    font-size: 0.95rem;
  }

  .logo {
    font-size: 1.6rem;
  }

  .header .contact-dropdown {
    display: none;
  }

  .hero {
    padding-top: 140px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .services,
  .advantages,
  .contact {
    padding: 70px 0;
  }

  .services h2,
  .advantages h2,
  .contact h2 {
    font-size: 2.2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .service-card {
    margin: 0 auto;
    max-width: 400px;
  }

  .service-card img {
    height: 220px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .dropdown-btn {
    width: 200px;
    font-size: 1rem;
    padding: 14px 25px;
  }

  .dropdown-content {
    width: 200px;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
    bottom: 25px;
    right: 25px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }

  .nav-menu a {
    font-size: 0.85rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }

  .dropdown-btn {
    width: 180px;
    font-size: 0.9rem;
    padding: 12px 20px;
  }

  .dropdown-content {
    width: 180px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-text {
    font-size: 0.9rem;
  }

  .service-card img {
    height: 200px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }
}
