/* Основные переменные */
:root {
  --primary: #e74c3c;
  --primary-dark: #c0392b;
  --secondary: #34495e;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --gray: #7f8c8d;
  --success: #27ae60;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  padding: 15px 0;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  margin-left: 10px;
}

.logo h1 {
  color: var(--dark);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.logo span {
  color: var(--primary);
}

.logo p {
  color: var(--gray);
  font-size: 0.8rem;
  margin: 0;
}

.phone-top {
  display: flex;
  align-items: center;
  color: var(--dark);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
}

.phone-top:hover {
  color: var(--primary);
}

.phone-top svg {
  fill: var(--primary);
  margin-right: 8px;
}

nav {
  background-color: var(--dark);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  padding: 18px 20px;
  display: block;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.cta-btn {
  background-color: var(--primary);
  color: white;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
  display: inline-block;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.cta-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 10px;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('XXXL.jpg') center/cover no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: white;
  margin-top: 130px;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  min-width: 180px;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: white;
}

.btn-outline:hover {
  background-color: var(--primary);
}

/* Advantages */
.advantages {
  background-color: var(--primary);
  color: white;
  padding: 20px 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.advantage-icon {
  background-color: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advantage-text {
  font-size: 0.95rem;
}

.advantage-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-img {
  height: 200px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img img {
  transform: scale(1.05);
}

.service-content {
  padding: 25px;
}

.service-content h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.service-content p {
  color: var(--gray);
  margin-bottom: 20px;
}

/* Why Us Section */
.why-us {
  background-color: var(--light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.feature-icon svg {
  fill: var(--primary);
  width: 35px;
  height: 35px;
}

.feature-title {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.feature-text {
  color: var(--gray);
}

/* Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray);
  margin-bottom: 20px;
  position: relative;
  padding-top: 30px;
}

.testimonial-text::before {
  content: '"';
  font-size: 5rem;
  font-family: serif;
  color: rgba(231, 76, 60, 0.2);
  position: absolute;
  top: -20px;
  left: -15px;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  margin-right: 15px;
}

.author-info h5 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.author-info small {
  color: var(--gray);
}

.testimonial-rating {
  color: #f1c40f;
  margin-top: 10px;
  font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(231, 76, 60, 0.9), rgba(192, 57, 43, 0.9)), url('/api/placeholder/1920/1080') center/cover;
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
}

.cta-section h3 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.cta-section p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-light {
  background-color: white;
  color: var(--primary);
}

.btn-light:hover {
  background-color: var(--light);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: var(--dark);
  margin-bottom: 30px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-icon {
  min-width: 40px;
  height: 40px;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.contact-icon svg {
  fill: var(--primary);
  width: 20px;
  height: 20px;
}

.contact-text h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 5px;
}

.contact-text a, .contact-text p {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
}

.contact-text a:hover {
  color: var(--primary);
}

.work-hours {
  margin-top: 30px;
}

.work-hours h4 {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.work-hours p {
  color: var(--gray);
  margin-bottom: 5px;
}

.contact-form {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
}

textarea.form-control {
  height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--primary-dark);
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.pricing-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.pricing-card.featured {
  transform: scale(1.05);
  z-index: 1;
  border-top: 3px solid var(--primary);
}

.pricing-card.featured::before {
  content: 'Популярный';
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 10px;
  border-bottom-left-radius: 8px;
}

.pricing-card:hover:not(.featured) {
  transform: translateY(-10px);
}

.pricing-header {
  padding: 30px 25px;
  text-align: center;
  background-color: var(--dark);
  color: white;
}

.pricing-title {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

.pricing-period {
  font-size: 0.9rem;
  opacity: 0.7;
}

.pricing-features {
  padding: 30px 25px;
  list-style: none;
}

.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  display: inline-block;
  color: var(--success);
  margin-right: 10px;
  font-weight: bold;
}

.pricing-footer {
  padding: 20px 25px 30px;
  text-align: center;
}

/* Footer */
footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.footer-about p {
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary);
}

.social-link svg {
  fill: white;
  width: 18px;
  height: 18px;
}

.footer-links h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate {
  animation: fadeIn 0.6s ease forwards;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-2 {
  margin-bottom: 10px;
}

.mb-3 {
  margin-bottom: 15px;
}

.mb-4 {
  margin-bottom: 20px;
}

.mb-5 {
  margin-bottom: 30px;
}

.mt-2 {
  margin-top: 10px;
}

.mt-3 {
  margin-top: 15px;
}

.mt-4 {
  margin-top: 20px;
}

.mt-5 {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero h2 {
    font-size: 2.3rem;
  }
  
  .nav-links a {
    padding: 15px 15px;
  }
  
  .cta-btn {
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 10px 0;
  }
  
  .header-container {
    padding: 0 15px;
  }
  
  .phone-top span {
    display: none;
  }
  
  .nav-container {
    padding: 10px 15px;
  }
  
  .nav-links {
    position: fixed;
    top: 79px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--dark);
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
  }
  
  .nav-links.active {
    height: auto;
    padding: 20px 0;
    opacity: 1;
    visibility: visible;
  }
  
  .nav-links a {
    padding: 12px 20px;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .cta-phone {
    display: block;
  }
  
  .cta-desktop {
    display: none;
  }
  
  .testimonials-grid, 
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: 70vh;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.7rem;
  }
  
  .section-title {
    font-size: 1.7rem;
  }
  
  .cta-section h3 {
    font-size: 1.7rem;
  }
  
  .advantage-item {
    flex-direction: column;
    text-align: center;
  }
  
  .advantage-icon {
    margin-bottom: 10px;
  }
  
  .pricing-card, 
  .feature-card, 
  .testimonial-card {
    padding: 20px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
}

/* Стили для SEO-секции красного сайта */
.seo-text {
    padding: 70px 0;
    background-color: #f9f9f9;
}

.seo-text .section-title {
    font-size: 2.2rem;
    color: #222;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.seo-text .section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #e74c3c;
}

.seo-content {
    max-width: 1000px;
    margin: 0 auto;
    color: #444;
    line-height: 1.7;
}

.seo-content h3 {
    color: #222;
    margin: 30px 0 15px;
    font-size: 1.4rem;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid #e74c3c;
}

.seo-content p {
    margin-bottom: 15px;
}

.seo-content strong {
    color: #e74c3c;
}

.seo-content ul, 
.seo-content ol {
    margin-bottom: 20px;
    margin-left: 20px;
}

.seo-content li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.seo-content ul li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: #e74c3c;
    border-radius: 50%;
}

.seo-content ol {
    counter-reset: item;
}

.seo-content ol li {
    counter-increment: item;
}

.seo-content ol li:before {
    content: counter(item) ". ";
    position: absolute;
    left: 0;
    top: 0;
    color: #e74c3c;
    font-weight: 600;
}

.seo-content a {
    color: #e74c3c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.seo-content a:hover {
    color: #c0392b;
    text-decoration: underline;
}

.seo-content .note {
    background-color: rgba(231, 76, 60, 0.05);
    padding: 15px;
    border-left: 3px solid #e74c3c;
    margin: 20px 0;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .seo-text {
        padding: 50px 0;
    }
    
    .seo-text .section-title {
        font-size: 1.8rem;
    }
    
    .seo-content h3 {
        font-size: 1.3rem;
    }
}