.complex-hero-block {
  margin: 50px 0 80px;
  color: rgba(25, 40, 48, 0.9);
  font-family: Raleway, sans-serif;
}

.complex-hero-block__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 48px;
}

.complex-hero-block *,
.complex-hero-block *::before,
.complex-hero-block *::after,
.complex-scope-block *,
.complex-scope-block *::before,
.complex-scope-block *::after,
.complex-directions-block *,
.complex-directions-block *::before,
.complex-directions-block *::after,
.complex-projects-block *,
.complex-projects-block *::before,
.complex-projects-block *::after,
.complex-tasks-block *,
.complex-tasks-block *::before,
.complex-tasks-block *::after {
  box-sizing: border-box;
}

.complex-hero-block__content {
  width: 100%;
}

.complex-hero-block__title {
  margin: 0;
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
}

.complex-hero-block__text {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.complex-hero-block__text p {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
}

.complex-hero-block__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
}

.complex-hero-block__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 15px;
  line-height: 24px;
  font-weight: 700;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.complex-hero-block__button--primary {
  width: 181px;
  background: #00a6aa;
  color: #fff;
}

.complex-hero-block__button--primary:hover {
  background: #009095;
}

.complex-hero-block__button--secondary {
  width: 227px;
  background: #f6f6f6;
  border-color: transparent;
  color: #00a6aa;
}

.complex-hero-block__button--secondary:hover {
  background: #eee;
}

.complex-hero-block__media {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.complex-hero-block__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
}

.complex-scope-block {
  margin: 0 0 80px;
  color: rgba(25, 40, 48, 0.9);
  font-family: Raleway, sans-serif;
}

.complex-scope-block__title {
  margin: 0 0 30px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}

.complex-scope-block__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.complex-scope-card {
  min-height: 173px;
  padding: 30px;
  background: #f6f6f6;
  border-radius: 20px;
}

.complex-scope-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
  min-height: 113px;
}

.complex-scope-card__inner--compact {
  gap: 10px;
}

.complex-scope-card__inner--short {
  min-height: 81px;
}

.complex-scope-card__icon {
  flex: 0 0 24px;
  width: 24px;
}

.complex-scope-card__icon img,
.complex-scope-card__icon svg {
  display: block;
  width: 24px;
  height: auto;
}

.complex-scope-card__content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 261px;
}

.complex-scope-card__content--wide {
  width: 266px;
}

.complex-scope-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.complex-scope-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.complex-scope-card__list li {
  position: relative;
  margin: 0;
  padding-left: 12px;
  font-size: 14px;
  line-height: 18px;
}

.complex-scope-card__list li::before {
  content: "\2022";
  position: absolute;
  top: 0;
  left: 0;
}

.complex-scope-card__list li + li {
  margin-top: 14px;
}

.complex-directions-block {
  margin: 0 0 80px;
  color: rgba(25, 40, 48, 0.9);
  font-family: Raleway, sans-serif;
}

.complex-directions-block__title {
  margin: 0 0 50px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}

.complex-directions-block__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 50px 20px;
}

.complex-direction-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

.complex-direction-card__image {
  display: block;
  overflow: hidden;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
}

.complex-direction-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 171 / 132;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.complex-direction-card__image:hover img {
  transform: scale(1.03);
}

.complex-direction-card__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.complex-direction-card__title {
  margin: 0;
  font-size: 16px;
  line-height: 19px;
  font-weight: 700;
}

.complex-direction-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.complex-direction-card__title a:hover {
  color: #00a6aa;
}

.complex-direction-card__order {
  display: inline-flex;
  align-self: flex-start;
  font-size: 14px;
  line-height: 20px;
  color: #00a6aa;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.complex-direction-card__order:hover {
  color: #009095;
}

.complex-projects-block {
  margin: 0 0 80px;
  color: rgba(25, 40, 48, 0.9);
  font-family: Raleway, sans-serif;
}

.complex-projects-block__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.complex-projects-block__title,
.complex-projects-block__gallery-title {
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}

.complex-projects-block__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.complex-projects-block__list li {
  position: relative;
  padding-left: 17px;
  font-size: 14px;
  line-height: 20px;
}

.complex-projects-block__list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00a6aa;
}

.complex-projects-block__actions {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.complex-projects-block__button {
  padding: 0 18px;
}

.complex-projects-block__button--primary {
  width: 289px;
}

.complex-projects-block__gallery-title {
  width: 100%;
  margin: 0 0 20px;
  text-align: right;
  color: rgba(25, 40, 48, 0.7);
  line-height: 28px;
  font-weight: 400;
}

.complex-projects-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  overflow: visible;
}

.complex-projects-slider .swiper {
  overflow: hidden;
  border-radius: 20px;
}

.complex-projects-slider .swiper-slide {
  width: 100%;
}

.complex-projects-slider__media {
  overflow: hidden;
}

.complex-projects-slider__media img {
  display: block;
  width: 100%;
  aspect-ratio: 520 / 300;
  object-fit: cover;
}

.complex-projects-slider .swiper-button-next,
.complex-projects-slider .swiper-button-prev {
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #009599;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='8' viewBox='0 0 15 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.12797 3.64644C0.932703 3.84171 0.932703 4.15829 1.12796 4.35355L4.30995 7.53553C4.50521 7.73079 4.82179 7.73079 5.01705 7.53553C5.21231 7.34027 5.21231 7.02369 5.01705 6.82843L2.18863 4L5.01705 1.17157C5.21232 0.976309 5.21232 0.659726 5.01705 0.464464C4.82179 0.269202 4.50521 0.269202 4.30995 0.464464L1.12797 3.64644ZM14.5186 3.5L1.48152 3.5L1.48152 4.5L14.5186 4.5L14.5186 3.5Z' fill='%23009599'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 15px auto;
  cursor: pointer;
  z-index: 2;
}

.complex-projects-slider .swiper-button-prev {
  left: -74px;
}

.complex-projects-slider .swiper-button-next {
  right: -74px;
  transform: rotate(180deg);
}

.complex-projects-slider .swiper-button-next::after,
.complex-projects-slider .swiper-button-prev::after {
  display: none;
}

.complex-projects-slider .swiper-button-disabled {
  opacity: 0.45;
}

.complex-tasks-block {
  margin: 0 0 80px;
  color: rgba(25, 40, 48, 0.9);
  font-family: Raleway, sans-serif;
}

.complex-tasks-block__title {
  margin: 0 0 50px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}

.complex-tasks-block__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.complex-task-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  min-height: 160px;
  text-align: center;
}

.complex-task-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
}

.complex-task-card__icon img {
  display: block;
  width: 70px;
  height: 70px;
}

.complex-task-card__text {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;
}

@media (max-width: 1199px) {
  .complex-hero-block__button--primary,
  .complex-hero-block__button--secondary,
  .complex-scope-card__content,
  .complex-scope-card__content--wide {
    width: auto;
  }

  .complex-directions-block__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .complex-projects-block__layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .complex-projects-block__gallery {
    width: 100%;
  }

  .complex-projects-block__actions {
    flex-wrap: wrap;
  }

  .complex-projects-slider {
    margin-right: 74px;
  }

  .complex-tasks-block__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 20px;
  }
}

@media (max-width: 991px) {
  .complex-hero-block {
    margin: 40px 0 60px;
  }

  .complex-hero-block__body {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 24px;
  }

  .complex-hero-block__text {
    margin-top: 24px;
    gap: 24px;
  }

  .complex-hero-block__actions {
    margin-top: 32px;
  }

  .complex-hero-block__media {
    position: static;
    max-width: none;
    height: auto;
    min-height: auto;
  }

  .complex-scope-block {
    margin-bottom: 60px;
  }

  .complex-scope-block__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .complex-directions-block,
  .complex-projects-block,
  .complex-tasks-block {
    margin-bottom: 60px;
  }

  .complex-directions-block__title {
    margin-bottom: 30px;
  }

  .complex-directions-block__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .complex-projects-block__actions {
    margin-top: 32px;
  }

  .complex-projects-slider {
    max-width: calc(100% - 74px);
  }

  .complex-tasks-block__title {
    margin-bottom: 30px;
  }
}

@media (max-width: 767px) {
  .complex-hero-block__title {
    font-size: 20px;
    line-height: 24px;
  }

  .complex-hero-block__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .complex-hero-block__button {
    width: 100%;
    padding: 12px 20px;
  }

  .complex-hero-block__media {
    width: 100%;
  }

  .complex-hero-block__media img {
    position: static;
    height: auto;
    border-radius: 20px;
  }

  .complex-scope-block__title {
    margin-bottom: 20px;
  }

  .complex-scope-block__grid {
    grid-template-columns: 1fr;
  }

  .complex-scope-card {
    min-height: 0;
    padding: 24px 20px;
  }

  .complex-scope-card__inner,
  .complex-scope-card__inner--short {
    min-height: 0;
  }

  .complex-scope-card__list li + li {
    margin-top: 16px;
  }

  .complex-directions-block__title,
  .complex-projects-block__title,
  .complex-projects-block__gallery-title {
    margin-bottom: 20px;
  }

  .complex-directions-block__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }

  .complex-projects-block__list {
    margin-top: 24px;
    gap: 16px;
  }

  .complex-projects-block__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .complex-projects-block__button {
    width: 100%;
  }

  .complex-projects-slider {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }

  .complex-projects-slider .swiper-button-next,
  .complex-projects-slider .swiper-button-prev {
    top: auto;
    bottom: -60px;
    margin-top: 0;
  }

  .complex-projects-slider .swiper-button-prev {
    left: 0;
  }

  .complex-projects-slider .swiper-button-next {
    right: 0;
  }

  .complex-projects-block {
    padding-bottom: 76px;
  }

  .complex-tasks-block__title {
    margin-bottom: 20px;
  }

  .complex-tasks-block__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .complex-task-card {
    min-height: 0;
    gap: 20px;
  }
}

@media (max-width: 575px) {
  .complex-directions-block__grid {
    grid-template-columns: 1fr;
  }
}

/* CONTACT + FORM BLOCK */
.complex-contact-block {
  display: flex;
  gap: 20px;
  margin: 0 0 80px;
  align-items: stretch;
  font-family: Raleway, sans-serif;
  color: rgba(25, 40, 48, 0.9);
}

.complex-contact-block * {
  box-sizing: border-box;
}

.complex-contact-info {
  flex: 0 0 380px;
  border: 1px solid #e7e7e7;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.complex-contact-office-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  margin: 0 0 8px;
}

.complex-contact-office-desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  margin: 0;
}

.complex-contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.complex-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.complex-contact-icon-btn {
  width: 32px;
  height: 32px;
  background: #00a6aa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.complex-contact-icon-btn img {
  max-width: 18px;
  max-height: 18px;
}

.complex-contact-divider {
  height: 1px;
  background: #e7e7e7;
}

.complex-contact-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.complex-contact-social-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin: 0;
}

.complex-contact-social-buttons {
  display: flex;
  gap: 10px;
}

.complex-social-icon {
  width: 40px;
  height: 40px;
  background: #00a6aa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.complex-social-icon a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.complex-social-icon img {
  max-width: 20px;
  max-height: 20px;
}

.complex-form-wrap {
  flex: 1;
  background: #f6f6f6;
  border-radius: 24px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.complex-form-title {
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  margin: 0;
}

.complex-form-subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin: -10px 0 0;
  color: rgba(25, 40, 48, 0.65);
}

.complex-form-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.complex-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.complex-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.complex-form-label {
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  color: rgba(27, 31, 59, 0.65);
}

.complex-required-mark {
  color: #00a6aa;
}

.complex-form-field input,
.complex-form-field textarea {
  width: 100%;
  height: 44px;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  padding: 0 14px;
  font-family: Raleway, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(25, 40, 48, 0.9);
  outline: none;
}

.complex-form-field input::placeholder,
.complex-form-field textarea::placeholder {
  color: rgba(25, 40, 48, 0.65);
}

.complex-form-field textarea {
  height: 112px;
  padding: 14px;
  resize: none;
}

.complex-form-field input.error,
.complex-form-field textarea.error {
  border-color: #e05252;
}

.complex-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.complex-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #00a6aa;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.complex-checkbox-icon {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.visually-hidden:checked + .complex-checkbox .complex-checkbox-icon {
  opacity: 1;
}

.visually-hidden:not(:checked) + .complex-checkbox {
  background: #fff;
  border: 1px solid #e7e7e7;
}

.visually-hidden:focus-visible + .complex-checkbox {
  outline: 2px solid #00a6aa;
  outline-offset: 2px;
}

.complex-checkbox-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.complex-agreement-link {
  color: #00a6aa;
  text-decoration: none;
}

.complex-agreement-link:hover {
  text-decoration: underline;
}

.complex-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.complex-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 32px;
  background: #00a6aa;
  border: none;
  border-radius: 14px;
  font-family: Raleway, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.complex-submit-button:hover {
  background-color: #008f92;
}

@media (max-width: 1100px) {
  .complex-contact-block {
    flex-direction: column;
  }

  .complex-contact-info {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 540px) {
  .complex-form-row {
    grid-template-columns: 1fr;
  }
}
