/* Общие стили */
:root {
  --primary-color: #0a2a4d;
  --secondary-color: #28a745;
  --accent-color: #007bff;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --white-color: #ffffff;
  --gray-color: #6c757d;
  --light-gray: #e9ecef;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: var(--white-color);
}

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

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.3;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

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

.btn-primary:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

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

.btn-secondary:hover {
  background-color: #081c33;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Header */
.header {
  background-color: var(--white-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

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

.logo img {
  height: 50px;
}

.nav ul {
  display: flex;
  gap: 20px;
}

.nav ul li a {
  color: var(--primary-color);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--border-radius);
}

.nav ul li a:hover {
  background-color: var(--light-gray);
}

.phone-header {
  font-weight: 600;
  color: var(--secondary-color);
}

.phone-header a {
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5d 100%);
  color: var(--white-color);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Section Common Styles */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

section h2:after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 10px auto;
  border-radius: 2px;
}

/* About Section */
.about {
  background-color: var(--light-color);
}

.about p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

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

.feature {
  background-color: var(--white-color);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
}

.feature h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

/* Services Section */
.services {
  background-color: var(--white-color);
}

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

.service-card {
  background-color: var(--light-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  padding: 25px;
  text-align: center;
}

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

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 1rem;
}

.service-card ul {
  margin: 20px 0;
  text-align: left;
}

.service-card ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.service-card ul li:before {
  content: '✓';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Advantages Section */
.advantages {
  background-color: var(--light-color);
}

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

.advantage {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.advantage:hover {
  transform: translateY(-5px);
}

.advantage-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Steps Section */
.steps {
  background-color: var(--white-color);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  position: relative;
}

.steps-container:before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: var(--secondary-color);
  z-index: 1;
}

.step {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 20px 10px;
}

.step-number {
  width: 80px;
  height: 80px;
  background-color: var(--secondary-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 15px;
}

/* FAQ Section */
.faq {
  background-color: var(--light-color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background-color: var(--primary-color);
  color: var(--white-color);
  cursor: pointer;
  position: relative;
  font-weight: 600;
}

.faq-question:after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: var(--transition);
}

.faq-item.active .faq-question:after {
  content: '−';
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
}

/* Contacts Section */
.contacts {
  background-color: var(--white-color);
}

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

.contact-info h3, .contact-form h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.contact-info p strong {
  margin-right: 10px;
  color: var(--primary-color);
}

.social-links {
  margin-top: 20px;
}

.social-link {
  display: inline-block;
  margin-right: 15px;
  padding: 8px 15px;
  background-color: var(--light-gray);
  border-radius: var(--border-radius);
  color: var(--primary-color);
}

.social-link:hover {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.25);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  margin-right: 10px;
  margin-top: 5px;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 60px 0 30px;
}

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

.footer-logo img {
  height: 60px;
  margin-bottom: 15px;
}

.footer-logo p {
  color: #adb5bd;
}

.footer-links h3,
.footer-contact h3 {
  color: var(--white-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-links h3:after,
.footer-contact h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

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

.footer-links ul li a {
  color: #adb5bd;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--white-color);
  padding-left: 5px;
}

.footer-contact p {
  margin-bottom: 10px;
  color: #adb5bd;
}

.footer-contact a {
  color: #adb5bd;
}

.footer-contact a:hover {
  color: var(--white-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  color: #adb5bd;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-documents {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-documents a {
  color: #adb5bd;
  transition: var(--transition);
}

.footer-documents a:hover {
  color: var(--white-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .steps-container {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .steps-container:before {
    display: none;
  }
  .header .container {
    flex-direction: column;
    gap: 15px;
  }
  
  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cookie-banner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-bottom {
    align-items: center;
  }
  
  .footer-documents {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  section {
    padding: 50px 0;
  }
  
  .hero {
    padding: 60px 0;
  }
  
  .features,
  .advantages-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .step {
    padding: 5px;
  }
  
  .step-number {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .step h3 {
    font-size: 0.85rem;
  }
  
  .step p {
    font-size: 0.8rem;
  }
}