/* Main Sections Styles */

/* How It Works Section */
.how-it-works {
  background: var(--white);
  padding: 120px 0 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: start;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step__icon {
  width: 150px;
  height: 120px;
  background: var(--gray);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.step__icon:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.step__description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  height: 130px;
}

.step__arrow {
  position: absolute;
  top: 60px;
  right: -2rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__arrow img {
  width: 36px;
  height: 36px;
}

.step:last-child .step__arrow {
  display: none;
}

/* About Us Section */
.about {
  background: var(--white);
  padding: 120px 0 0;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  position: relative;
}

.about__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.about__img:hover {
  transform: scale(1.02);
}

.about__text {
  padding-left: 2rem;
}

.about__text .section__title {
  text-align: left;
}

.about__headline {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.about__description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.about__list {
  margin-top: 1.5rem;
}

.about__list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 10px;
  color: var(--text-light);
  line-height: 1.2;
}

.about__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
}

/* Advantages Section */
.advantages {
  background: var(--white);
  padding: 80px 0;
}

.advantages__content {
  background: var(--border-color);
  border-radius: 20px;
  padding: 40px 60px;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.advantages__title {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent-color);
  margin: 0;
  line-height: 1.2;
  flex-shrink: 0;
  min-width: 50%;
}

.advantages__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.advantages__item {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 20px;
  position: relative;
  padding-left: 0;
}

.advantages__item:last-child {
  margin-bottom: 0;
}

.advantages__item::before {
  content: "•";
  color: var(--accent-color);
  font-weight: bold;
  font-size: inherit;
  position: absolute;
  left: -20px;
  top: 0;
}

.advantages__item strong {
  font-weight: 700;
  color: var(--accent-color);
}

/* Contact Section */
.contact {
  background: var(--white);
  padding: 120px 0 0;
}

.contact .section__title {
  text-align: left;
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact__map {
  position: relative;
}

.map {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
}

.contact__address {
  margin-top: 1rem;
  text-align: center;
}

.contact__address p {
  color: var(--text-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.contact__map-link {
  color: var(--accent-color);
  font-size: 0.9rem;
  text-decoration: underline;
}

.contact__info {
  padding-left: 2rem;
}

.contact__buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 4rem;
}

.contact__button {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--accent-color);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 27px;
  font-weight: 700;
  transition: all 0.3s ease;
  width: fit-content;
  border: 1px solid var(--accent-color);
  font-size: 16px;
}

.contact__button.gray {
  background: var(--gray);
  color: var(--accent-color);
}

.contact__button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.contact__details-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.contact__details-text {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.contact hr {
  margin-top: 100px;
  border-color: var(--border-color);
  border-style: solid;
  border-width: 1px;
}

/* FAQ Section */
.faq {
  background: var(--white);
  padding: 120px 0 100px;
}

.faq__content {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  align-items: start;
}

.faq__text .section__title {
  font-size: 42px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  text-align: left;
  width: fit-content;
}

.faq__subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 1rem;
}

.faq__item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq__item:last-child {
  margin-bottom: 0;
}

.faq__question {
  width: 100%;
  padding: 1.5rem;
  background: var(--white);
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--accent-color);
  transition: all 0.3s ease;
}

.faq__item--active .faq__question {
  background: var(--gray);
}

.faq__question:hover {
  background: var(--gray);
}

.faq__icon {
  transition: transform 0.3s ease;
  color: var(--accent-color);
  width: 20px;
  height: 20px;
}

.faq__item--active .faq__icon {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--gray);
}

.faq__item--active .faq__answer {
  max-height: 200px;
}

.faq__answer p {
  padding: 0 1.5rem 1.5rem;
  line-height: 1.6;
  margin: 0;
}

/* Footer */
.footer {
  background: var(--gray);
  color: var(--accent-color);
  padding: 40px 0;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer__copyright {
  color: var(--accent-color);
  font-size: 1rem;
  margin: 0;
}

.footer__nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.footer__nav-link {
  color: var(--accent-color);
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer__nav-link:hover {
  color: var(--accent-color);
}

.footer__nav-link--button {
  background: var(--accent-color);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 27px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: auto;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__nav-link--button:hover {
  background: var(--accent-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.footer__design {
  color: var(--accent-color);
  font-size: 1rem;
  margin: 0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer__design:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .step__arrow {
    display: none;
  }

  .about__content,
  .contact__content,
  .faq__content {
    gap: 3rem;
  }

  .advantages__content {
    padding: 50px 60px;
    gap: 3rem;
  }

  .advantages__title {
    font-size: 36px;
    min-width: 250px;
  }
}

@media (max-width: 768px) {
  .how-it-works,
  .contact,
  .faq {
    padding: 30px 0;
  }

  .about {
    padding: 30px 0 0;
  }

  .advantages {
    padding: 30px 0;
  }

  .advantages__content {
    flex-direction: column;
    padding: 40px 30px;
    gap: 2rem;
    text-align: center;
  }

  .advantages__title {
    font-size: 32px;
    min-width: auto;
    margin-bottom: 1rem;
  }

  .advantages__item {
    font-size: 16px;
    text-align: left;
    padding-left: 20px;
  }

  .advantages__item::before {
    left: 0;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__content,
  .contact__content,
  .faq__content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__text,
  .contact__info,
  .faq__text {
    padding-left: 0;
    padding-right: 0;
  }

  .contact__buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact__button {
    flex: 1;
    min-width: 200px;
  }

  .footer__content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer__nav {
    flex-direction: column;
    gap: 1rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .step__icon {
    width: 60px;
    height: 60px;
  }

  .about__headline {
    font-size: 1.5rem;
  }

  .advantages__content {
    padding: 30px 20px;
  }

  .advantages__title {
    font-size: 28px;
  }

  .advantages__item {
    font-size: 15px;
  }

  .contact__buttons {
    flex-direction: column;
  }

  .contact__button {
    width: 100%;
  }

  .contact hr {
    margin-top: 40px;
  }
}
