/* Общие стили */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  scroll-behavior: smooth;
}

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

/* Шапка */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 4px 0;
  background-color: transparent;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 50px;
  height: 65px;
  object-fit: cover;
}

.logo-title {
  font-weight: 700;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.2;
}

.logo-subtitle {
  font-weight: 500;
  color: #ffffff;
  font-size: 10px;
  letter-spacing: 0.6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 57px;
}

.nav-item {
  color: #d6d6d6;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-item:hover {
  color: #f34c43;
}

.nav-item.active {
  color: #ffffff;
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #ffffff;
}

.nav-item.phone {
  font-weight: 600;
  color: #d6d6d6;
}

.search {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Главный блок с изображением */
.main {
  position: relative;
  margin-top: 0;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease;
}

.main-content {
  position: absolute;
  top: 50%;
  left: 17.9%;
  transform: translateY(-50%);
  width: 80%;
  max-width: 64%;
  text-align: left;
  color: #fff;
  z-index: 3;
}

.feature-card {
  max-width: 500px;
  padding: 30px;
  color: #ffffff;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card.left-aligned {
  animation-delay: 0.2s;
}

.feature-card.right-aligned {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.left-aligned {
  margin-right: auto;
  text-align: left;
}

.right-aligned {
  margin-left: auto;
  text-align: right;
}

.feature-title {
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 15px;
}

.feature-divider {
  width: 100px;
  height: 2px;
  background-color: #f34c43;
  margin: 20px 0;
}

.left-aligned .feature-divider {
  margin-left: 0;
}

.right-aligned .feature-divider {
  margin-right: 0;
  margin-left: auto;
}

.feature-text {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Хлебные крошки */
.breadcrumbs {
  padding: 90px 20px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 400;
}

.breadcrumbs span {
  color: rgba(255, 255, 255, 0.8);
  margin: 0 5px;
}

/* Блок о компании */
.about-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.mission {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.mission-content {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

.mission-image img {
  transition: all 0.3s ease;
}

.mission-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.mission-text p {
  transition: color 0.3s ease;
}

.mission-text:hover p {
  color: #f34c43;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.about-item {
  text-align: center;
  padding: 40px;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.about-item h2 {
  font-weight: 700;
  font-size: 28px;
  color: #f34c43;
  margin-bottom: 20px;
}

.divider {
  width: 100px;
  height: 2px;
  background-color: #f34c43;
  margin: 20px auto;
}

.about-item p {
  font-weight: 500;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}

/* Блок миссии */
.mission {
  padding: 100px 0;
  background-color: #ffffff;
}

/* Заголовки секций — как на главной */
.section-title {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #333;
  margin-bottom: 80px;
  text-align: center;
  position: relative;
  letter-spacing: -0.5px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #f34c43;
  border-radius: 2px;
}

.mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.mission-text p {
  font-weight: 500;
  font-size: 16px;
  color: #333;
  line-height: 1.8;
}

.mission-image {
  text-align: center;
}

.mission-image img {
  border-radius: 50%;
  width: 320px;
  height: 320px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Блок партнеров — как на главной */
.partners {
  padding: 100px 0;
  background-color: #fff;
}

.partners-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 150px;
  margin: 40px auto 0;
  max-width: 1200px;
  padding: 0 20px;
}

.partners-row {
  display: flex;
  justify-content: center;
  gap: 150px;
}

/* Контейнер для каждого партнера */
.partner-item {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partners-logos img {
  height: 80px;   /* крупнее логотипы на десктопе */
  width: auto;
  object-fit: contain;
  opacity: 1;
  position: relative;
  z-index: 2;
}

/* Размытые круги под логотипами */
.blurred-circle1,
.blurred-circle2,
.blurred-circle3,
.blurred-circle4,
.blurred-circle5 {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  filter: blur(15px);
  opacity: 0.1;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.blurred-circle1 { background-color: #3498db; }
.blurred-circle2 { background-color: #389d; }
.blurred-circle3 { background-color: #3db; }
.blurred-circle4 { background-color: #f3f3; }
.blurred-circle5 { background-color: #e00984; }

@media (max-width: 768px) {
  .partners-row {
    flex-direction: column;
    gap: 70px;
  }

  .partner-item {
    transform: none !important;
  }

  .partners-logos {
    flex-direction: column;  /* как на мобилке: один логотип в строке */
    gap: 70px;
    align-items: center;
  }

  .partners-logos img {
    height: 50px; /* слегка увеличили логотипы в мобильной версии */
  }

  /* Убираем цветную подсветку под логотипами на мобильной версии */
  .blurred-circle1,
  .blurred-circle2,
  .blurred-circle3,
  .blurred-circle4,
  .blurred-circle5 {
    display: none;
  }
}

/* Футер */
.footer {
  background-color: #fff;
  padding: 60px 20px 30px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.contacts-row {
  display: flex;
  justify-content: center;
  gap: 100px;
  margin-bottom: 20px;
}

.contact-item {
  gap: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-item span {
  font-weight: 400;
  font-size: 14px;
  color: #000;
}

.contact-item a {
  font-weight: 600;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.62);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #f34c43;
}

.divider {
  width: 100%;
  height: 1px;
  background-color: #d9d9d9;
  margin: 20px 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.footer-logo img {
  width: 40px;
  height: 50px;
  object-fit: cover;
}

.logo-text {
  text-align: left;
}

.footer-logo-title {
  font-weight: 700;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

.footer-logo-subtitle {
  font-weight: 500;
  font-size: 10px;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 0.6px;
}

.footer-copyright {
  font-weight: 500;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.52);
}

/* Адаптивность */
@media (max-width: 1024px) {
  .main-title {
    font-size: 32px;
  }

  .main-subtitle {
    font-size: 16px;
  }

  .about-item h2 {
    font-size: 24px;
  }

  .contacts-row {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgb(255, 255, 255);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  .nav.active {
    display: flex;
  }


  .mobile-menu-btn {
    display: flex;
  }

  .main-title {
    font-size: 28px;
  }

  .main-subtitle {
    font-size: 14px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .mission-content {
    grid-template-columns: 1fr;
  }

  .mission-image {
    display: none;
  }

  .contacts-row {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .contact-item {
    align-items: center;
  }

  .feature-card {
    margin-top: 10%;
    max-width: 80%;
    margin-bottom: 20px;
    text-align: center !important;
  }

  .feature-text {
    display: none;
  }

  .left-aligned, .right-aligned {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-divider {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .mission-content {
    flex-direction: column;
  }

  .mission-image {
    order: -1;
  }

  .partners-logos {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .logo-title {
    font-size: 16px;
  }

  .logo-subtitle {
    font-size: 8px;
  }

  .main-title {
    font-size: 24px;
  }

  .main-subtitle {
    font-size: 13px;
  }

  .feature-title {
    font-size: 24px;
  }

  .feature-text {
    display: none;
  }

  .section-title {
    font-size: 20px;
  }

  .footer-logo {
    flex-direction: column;
    text-align: center;
  }

  .logo-text {
    text-align: center;
  }
}