/* ============================================
   ABOUT.CSS - Стили для страницы "О нас"
   ============================================ */

/* Фон страницы */
.about-page-bg {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  background: url('/static/main/images/Onas.jpg') center center / cover no-repeat;
  z-index: -2;
  pointer-events: none;
}

.about-page-bg::before {
  content: none;
}

html {
  min-height: 100%;
  overflow-x: clip;
  background: #ffffff;
}

body {
  position: relative;
  min-height: 100vh;
  background: #ffffff;
  isolation: isolate;
}

body .about-page-bg {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  z-index: -2;
  background: url('/static/main/images/Onas.jpg') center center / cover no-repeat;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 1;
}

main::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

footer {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  body .about-page-bg {
    background: url('/static/main/images/Mobilka.jpg') 45% center / cover no-repeat;
  }
}

/* Hero Section */
.about-hero {
  width: 100%;
  min-height: 60vh;
  padding: 150px 20px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-hero-container {
  max-width: 1200px;
  text-align: center;
}

.about-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: #000000;
  margin: 0 0 20px 0;
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.about-hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: #000000;
  margin: 0 0 50px 0;
  font-weight: 600;
  line-height: 1.5;
}

.about-hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-hero-stat {
  text-align: center;
}

.about-hero-stat-number {
  font-size: 4rem;
  font-weight: 900;
  color: #2ecc71;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 4px 20px rgba(46, 204, 113, 0.4);
}

.about-hero-stat-label {
  font-size: 1.1rem;
  color: #000000;
  font-weight: 600;
}

/* About Company Section */
.about-company {
  padding: 80px 20px;
  background: transparent;
  text-align: center;
  width: 100%;
}

.about-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: block;
  width: 100%;
  background: #ffffff;
  border-radius: 30px;
  padding: 60px 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(46, 204, 113, 0.2);
}

.about-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: block;
  width: 100%;
  background: #ffffff;
  border-radius: 30px;
  padding: 60px 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(46, 204, 113, 0.2);
}

.about-company-title {
  font-size: 2.5rem;
  color: #000000;
  margin: 0 0 30px 0;
  font-weight: 800;
  position: relative;
  padding-bottom: 20px;
  display: inline-block;
  width: auto;
}

.about-company-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  border-radius: 3px;
}

.about-company-lead {
  font-size: 1.3rem;
  color: #000000;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 30px 0;
}

.about-company-text {
  font-size: 1.05rem;
  color: #333333;
  line-height: 1.8;
  margin: 0 0 20px 0;
}

/* About Features Section */
.about-features {
  padding: 100px 20px;
  background: transparent;
  text-align: center;
  width: 100%;
}

.about-features-title {
  font-size: 2.5rem;
  color: #000000;
  margin: 0 0 60px 0;
  font-weight: 800;
  text-align: center;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  max-width: 1600px;
  margin: 0 auto;
}

.about-feature-card {
  background: #ffffff;
  border-radius: 25px;
  padding: 40px 25px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.about-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.about-feature-card:hover::before {
  transform: scaleX(1);
}

.about-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(46, 204, 113, 0.2);
  border-color: #2ecc71;
}

.about-feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(46, 204, 113, 0.3);
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.about-feature-card:hover .about-feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.about-feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
}

.about-feature-title {
  font-size: 1.3rem;
  color: #000000;
  margin: 0 0 12px 0;
  font-weight: 700;
  line-height: 1.3;
}

.about-feature-text {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Stats Section */
.about-stats-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  position: relative;
  overflow: hidden;
}

.about-stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
      45deg,
      transparent 48%,
      rgba(255, 255, 255, 0.1) 49%,
      rgba(255, 255, 255, 0.1) 51%,
      transparent 52%
    ),
    linear-gradient(
      -45deg,
      transparent 48%,
      rgba(255, 255, 255, 0.1) 49%,
      rgba(255, 255, 255, 0.1) 51%,
      transparent 52%
    );
  background-size: 60px 60px;
  opacity: 0.3;
}

.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-stat-item {
  text-align: center;
  color: #ffffff;
}

.about-stat-number {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 15px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.about-stat-label {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.95;
}

/* CTA Section */
.about-cta {
  padding: 100px 20px;
  background: transparent;
}

.about-cta-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border-radius: 30px;
  padding: 60px 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 3px solid rgba(46, 204, 113, 0.2);
}

.about-cta-title {
  font-size: 2.2rem;
  color: #000000;
  margin: 0 0 20px 0;
  font-weight: 800;
}

.about-cta-text {
  font-size: 1.2rem;
  color: #666666;
  margin: 0 0 40px 0;
  line-height: 1.6;
}

.about-cta-btn {
  display: inline-block;
  background: #000000;
  color: #ffffff;
  padding: 20px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
}

.about-cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  background: #333333;
  border-color: #000000;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .about-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 50vh;
    padding: 120px 15px 60px;
  }

  .about-hero-title {
    font-size: 2rem;
  }

  .about-hero-subtitle {
    font-size: 1rem;
  }

  .about-hero-stats {
    gap: 30px;
  }

  .about-hero-stat-number {
    font-size: 3rem;
  }

  .about-company {
    padding: 60px 15px;
  }

  .about-company-title {
    font-size: 1.8rem;
  }

  .about-company-lead {
    font-size: 1.1rem;
  }

  .about-company-text {
    font-size: 0.95rem;
  }

  .about-features {
    padding: 60px 15px;
  }

  .about-features-title {
    font-size: 2rem;
  }

  .about-features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-feature-card {
    padding: 30px 20px;
    min-height: auto;
  }

  .about-feature-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }

  .about-feature-icon svg {
    width: 24px;
    height: 24px;
  }

  .about-feature-title {
    font-size: 1.1rem;
  }

  .about-feature-text {
    font-size: 0.85rem;
  }

  .about-stats-section {
    padding: 60px 15px;
  }

  .about-stat-number {
    font-size: 3rem;
  }

  .about-cta {
    padding: 60px 15px;
  }

  .about-cta-container {
    padding: 40px 20px;
  }

  .about-cta-title {
    font-size: 1.5rem;
  }

  .about-cta-text {
    font-size: 1rem;
  }

  .about-cta-btn {
    font-size: 1rem;
    padding: 16px 30px;
  }
}

@media (max-width: 480px) {
  .about-hero-stats {
    gap: 20px;
  }

  .about-hero-stat-number {
    font-size: 2.5rem;
  }

  .about-features-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .about-feature-card {
    padding: 25px 20px;
  }
}
