/* About Page Styles - Matching alpikids.ru/about/ */

/* Hero Section */
.about-hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: visible;
}

.about-hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.about-hero-decor {
  position: absolute;
  top: -50px;
  left: -100px;
  width: 120%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  display: block;
}

.about-hero-photos {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  margin-bottom: 50px;
  z-index: 2;
  padding: 0 20px;
}

.about-hero-photo {
  position: relative;
  display: block;
}

.about-hero-photo-left {
  max-width: 200px;
  width: 200px;
  flex-shrink: 0;
  margin-top: 100px;
  align-self: flex-end;
}

.about-hero-photo-center {
  max-width: 500px;
  width: 500px;
  flex-shrink: 0;
  align-self: center;
  position: relative;
}

.about-hero-photo-right {
  max-width: 200px;
  width: 200px;
  flex-shrink: 0;
  margin-top: 40px;
  align-self: flex-start;
}

.about-hero-photo::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  background: linear-gradient(0deg, #ffcce0 0%, #ffffff 100%);
  border-radius: 5px;
  z-index: 1;
}

.about-hero-photo-left::before {
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
}

.about-hero-photo-center::before {
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
}

.about-hero-photo-right::before {
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
}

.about-hero-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  z-index: 2;
}

.about-hero-title {
  position: relative;
  color: #3E407E;
  font-family: 'Montserrat', sans-serif;
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  line-height: 1.4;
  z-index: 10;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 50px;
  padding: 0 20px;
}

.about-hero-bottom {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 2;
}

.about-hero-description {
  flex: 1;
  max-width: 600px;
}

.about-hero-description p {
  color: #3E407E;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 500;
  text-align: left;
  line-height: 1.5;
  margin: 0;
}

.about-hero-threads {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 20px;
}

.about-hero-threads-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #3E407E;
  text-align: right;
  line-height: 1.4;
  margin: 0;
}

.about-hero-logo {
  display: block;
}

.about-hero-logo-img {
  width: 120px;
  height: auto;
  display: block;
}

/* Mission Section */
.about-mission {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.about-mission-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  z-index: 2;
}

.about-decor-mission {
  position: absolute;
  top: 40px;
  left: -50px;
  width: 700px;
  height: auto;
  transform: rotate(-5deg);
  z-index: 1;
  pointer-events: none;
}

.about-mission-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  z-index: 2;
}

.about-mission-text {
  flex: 1;
  max-width: 500px;
}

.about-mission-text p {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  color: #3E407E;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

.about-mission-photos {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.about-mission-photo {
  max-width: 300px;
  width: 100%;
  position: relative;
}

.about-mission-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 40px);
  height: calc(100% + 20px);
  background: linear-gradient(0deg, #ffcce0 0%, #ffffff 100%);
  border-radius: 5px;
  z-index: 1;
}

.about-mission-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  z-index: 2;
}

/* Values Section */
.about-values {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.about-values-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  z-index: 2;
}

.about-decor-values {
  position: absolute;
  bottom: -140px;
  right: -50px;
  width: 960px;
  height: auto;
  transform: rotate(3deg);
  z-index: 1;
  pointer-events: none;
}

.about-values-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  z-index: 2;
}

.about-values-photos {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.about-values-photo {
  max-width: 300px;
  width: 100%;
  position: relative;
}

.about-values-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 40px);
  height: calc(100% + 20px);
  background: linear-gradient(0deg, #ffcce0 0%, #ffffff 100%);
  border-radius: 5px;
  z-index: 1;
}

.about-values-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  z-index: 2;
}

.about-values-text {
  flex: 1;
  max-width: 500px;
}

.about-values-text p {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  color: #3E407E;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

/* Craftsmanship Section */
.about-craftsmanship {
  position: relative;
  padding: 80px 0 120px;
  overflow: visible;
}

.about-craftsmanship-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 60px;
  z-index: 2;
  overflow: visible;
}

.about-decor-craftsmanship {
  position: absolute;
  top: 350px;
  left: -20px;
  width: 400px;
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.about-craftsmanship-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.about-craftsmanship-left {
  flex: 1;
}

.about-craftsmanship-main-photo {
  max-width: 100%;
  position: relative;
}

.about-craftsmanship-main-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 40px);
  height: calc(100% + 20px);
  background: linear-gradient(0deg, #ffcce0 0%, #ffffff 100%);
  border-radius: 5px;
  z-index: 1;
}

.about-craftsmanship-main-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  z-index: 2;
}

.about-craftsmanship-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-craftsmanship-text-top {
  max-width: 100%;
}

.about-craftsmanship-text-top p {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  color: #3E407E;
  line-height: 1.4;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

.about-craftsmanship-tags {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.about-craftsmanship-tag {
  max-width: 150px;
  width: 100%;
  position: relative;
}

.about-craftsmanship-tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 40px);
  height: calc(100% + 20px);
  background: linear-gradient(0deg, #ffcce0 0%, #ffffff 100%);
  border-radius: 5px;
  z-index: 1;
}

.about-craftsmanship-tag-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  z-index: 2;
}

.about-craftsmanship-knitting {
  max-width: 200px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.about-craftsmanship-knitting::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 40px);
  height: calc(100% + 20px);
  background: linear-gradient(0deg, #ffcce0 0%, #ffffff 100%);
  border-radius: 5px;
  z-index: 1;
}

.about-craftsmanship-knitting-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  z-index: 2;
}

.about-craftsmanship-text-bottom {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 0 40px;
  width: 100%;
  position: relative;
  z-index: 10;
  margin-top: 40px;
}

.about-craftsmanship-text-bottom p {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  color: #3E407E;
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
}

/* Final Section */
.about-final {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.about-final-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  z-index: 2;
}

.about-decor-final {
  position: absolute;
  top: -300px;
  left: 45%;
  transform: translateX(-50%);
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
}

.about-final-logo {
  position: absolute;
  top: -80px;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.about-final-logo-img {
  width: 240px;
  height: auto;
  opacity: 0.9;
  display: block;
}

.about-final-items {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-top: 100px;
  position: relative;
  z-index: 5;
}

.about-final-item {
  flex: 1;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-final-item-1 {
  order: 1;
}

.about-final-item-2 {
  order: 2;
}

.about-final-item-3 {
  order: 3;
}

.about-final-item-photo {
  max-width: 280px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.about-final-item-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% + 40px);
  height: calc(100% + 20px);
  background: linear-gradient(0deg, #ffcce0 0%, #ffffff 100%);
  border-radius: 5px;
  z-index: 1;
}

.about-final-item-img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
  z-index: 2;
}

.about-final-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  color: #3E407E;
  font-weight: 400;
  margin: 0;
  display: block;
  position: relative;
}

.about-final-item-1 h3 {
  margin-top: 20px;
  margin-bottom: 0;
}

.about-final-item-2 h3 {
  margin-bottom: 20px;
  margin-top: 0;
}

.about-final-item-3 h3 {
  margin-bottom: 20px;
  margin-top: 0;
}

.about-final-item p {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  color: #3E407E;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 25px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .about-hero {
    padding: 40px 0;
  }

  .about-hero-container {
    padding: 0 20px;
  }

  .about-hero-decor {
    display: none;
  }

  .about-hero-photos {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    padding: 0;
  }

  .about-hero-photo-left,
  .about-hero-photo-right,
  .about-hero-photo-center {
    max-width: 100%;
    width: 100%;
    margin-top: 0 !important;
    align-self: center !important;
  }

  .about-hero-title {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    font-size: 24px !important;
    margin: 20px 0 !important;
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .about-hero-bottom {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .about-hero-description {
    font-size: 18px !important;
    text-align: center !important;
    max-width: 100% !important;
  }

  .about-hero-threads {
    align-items: center;
    gap: 15px;
    margin-top: 0;
  }

  .about-hero-threads-text {
    text-align: center !important;
  }

  .about-mission,
  .about-values,
  .about-craftsmanship,
  .about-final {
    padding: 40px 0;
  }

  .about-mission-container,
  .about-values-container,
  .about-craftsmanship-container,
  .about-final-container {
    padding: 0 20px;
  }

  .about-mission-content,
  .about-values-content {
    flex-direction: column;
    gap: 30px;
  }

  .about-values-content {
    flex-direction: column-reverse;
  }

  .about-craftsmanship-content {
    flex-direction: column;
    gap: 30px;
  }

  .about-craftsmanship-tags {
    flex-direction: column;
    align-items: center;
  }

  .about-final-items {
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
  }

  .about-final-item-photo {
    max-width: 100%;
  }

  .about-final-logo {
    position: relative;
    top: auto;
    left: auto;
    text-align: center;
    margin-bottom: 30px;
  }

  .about-final-logo-img {
    width: 150px;
    margin: 0 auto;
  }

  .about-decor {
    display: none;
  }
}

@media (max-width: 480px) {
  .about-hero-title {
    font-size: 20px !important;
  }

  .about-hero-description,
  .about-mission-text p,
  .about-values-text p,
  .about-craftsmanship-text-top p,
  .about-craftsmanship-text-bottom p {
    font-size: 16px !important;
  }

  .about-final-item h3 {
    font-size: 28px !important;
  }

  .about-final-item p {
    font-size: 18px !important;
  }
}
