/* Подключаем современный шрифт */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --primary-color: #2c3e50; 
  --accent-color: #e67e22;  
  --accent-hover: #d35400;  
  --bg-color: #f8f9fa;      
  --text-color: #333333;    
  --card-bg: #ffffff;       
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* --- Header --- */
header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 15px 0;
  position: sticky; 
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.logo:hover {
  color: var(--accent-color);
}

nav {
  display: flex;
  align-items: center;
}

.nav-links {
  list-style: none;
  display: flex;
}

.nav-links li {
  margin-left: 25px;
}

.nav-links li a {
  color: #ecf0f1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  padding-bottom: 5px;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
}

/* Переключатель языков */
.lang-switch {
  margin-left: 20px;
  padding: 5px 10px;
  border-radius: 5px;
  border: 1px solid #ecf0f1;
  background-color: transparent;
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  outline: none;
}
.lang-switch option {
  color: #333; 
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  background: url('images/hero.jpg') no-repeat center 45%/cover;
  height: 650px;
  position: relative;
  background-color: var(--primary-color);
}

.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(20, 30, 40, 0.75) 0%,
    rgba(20, 30, 40, 0.45) 50%,
    rgba(20, 30, 40, 0.75) 100%
  );
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  backdrop-filter: brightness(0.95);
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #ecf0f1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 126, 34, 0.6);
}

/* --- Services, About, Gallery --- */
.services, .about, .gallery {
  padding: 60px 0;
}

.services h2, .about h2, .gallery h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
  color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 4px solid transparent;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-bottom: 4px solid var(--accent-color);
}

.service-item h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.4rem;
}

/* About Section */
.about p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.about h3 {
  margin: 30px 0 15px;
  color: var(--primary-color);
}

.about ul {
  list-style: none;
}

.about ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.about ul li::before {
  content: '✓';
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.timeline {
  border-left: 3px solid var(--accent-color);
  padding-left: 20px;
  margin-top: 20px;
}

.timeline-item {
  margin-bottom: 25px;
  position: relative;
}

.timeline-item::before {
  content: '';
  width: 15px;
  height: 15px;
  background: var(--accent-color);
  border-radius: 50%;
  position: absolute;
  left: -29px;
  top: 4px;
}

.timeline-year {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.2rem;
  display: block;
  margin-bottom: 5px;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: #000; 
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item img:hover {
  opacity: 0.8;
  transform: scale(1.05); 
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000; 
  padding-top: 80px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 5px;
}

#caption {
  margin: auto;
  display: block;
  width: 80%;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  font-size: 1.2rem;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--accent-color);
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #f1f1f1;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  padding: 16px 20px;
  user-select: none;
  transition: color 0.3s ease, background 0.3s ease;
  border-radius: 4px;
}

.modal-prev { left: 20px; }
.modal-next { right: 20px; }

.modal-prev:hover,
.modal-next:hover {
  color: var(--accent-color);
  background: rgba(255,255,255,0.1);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #ecf0f1;
  padding: 30px 0;
  text-align: center;
}

/* WhatsApp Плавающая Кнопка */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366; 
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 2000;
  transition: all 0.3s ease;
  animation: pulse-animation 2s infinite;
}

.floating-btn:hover {
  background-color: #128C7E;
  transform: translateY(-5px) scale(1.05);
}

@keyframes pulse-animation {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Адаптация */
@media (max-width: 768px) {
  .hero h2 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  
  .hamburger {
    display: flex;
  }
  
  .lang-switch {
    margin: 15px 0;
  }

  .nav-links {
    position: absolute;
    right: 0px;
    top: 65px; 
    background-color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transform: translateY(-150%); 
    transition: transform 0.3s ease-in-out;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 999;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .nav-active {
    transform: translateY(0%);
  }
}