/* Базовые стили для всех контейнеров */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Основной контейнер страницы */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

.content {
  padding: var(--spacing-xl) 0;
}

.content p {
  font-size: var(--font-size-lg);
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.theme-icon {
  width: 32px;
  height: auto;
  aspect-ratio: 1;
  color: #00c2f3;
}

.hero:not(.hero-home) {
  height: 480px;
}

/* стили для ссылочной стрелки */
.link-arrow {
  flex: none;
  width: 24px;
  height: auto;
  aspect-ratio: 1;
  color: var(--main-blue);
  /* стили для браузеров, не поддерживающих mask-image */
  background-image: url(../assets/icons/link-arrow.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

@supports (mask-image: url()) or (-webkit-mask-image: url()) {
  .link-arrow {
    background-image: none;
    background-color: currentColor;
    -webkit-mask-image: url(../assets/icons/link-arrow.svg);
    mask-image: url(../assets/icons/link-arrow.svg);

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: center;
    mask-position: center;

    -webkit-mask-size: contain;
    mask-size: contain;
  }
}
/* \стили для ссылочной стрелки */

/* пагинация */

.gp-pagination {
  margin: 0 auto;
  padding-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  line-height: 1.3;
  font-size: var(--font-size-sm);
  letter-spacing: -1%;
  color: var(--40);
}

@media (max-width: 1024px) {
  .gp-pagination {
    padding-top: 5rem;
  }
}

.gp-pagination__btn {
  width: 1.625rem;
  height: auto;
  aspect-ratio: 1;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .3s ease;
}

.gp-pagination__btn:disabled,
.gp-pagination__btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(100%);
}

.gp-pagination__btn:active {
  opacity: .7;
  background: var(--main-blue);
  color: var(--00);
}

@media (hover: hover) {
  .gp-pagination__btn:hover {
    opacity: .5;
    background: var(--main-blue);
    color: var(--00);
  }
}

.gp-pagination__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.gp-pagination__btn.current {
  color: var(--00);
  background: var(--main-blue);
}

.gp-pagination__dots {
  font-size: var(--font-size-base);
}

.gp-pagination__btn_prev::before,
.gp-pagination__btn_next::before {
  content: '';
  display: block;
  width: .428em;
  height: auto;
  aspect-ratio: .5;

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.gp-pagination__btn_prev::before {
  background-image: url(../assets/icons/arrow-left.svg);
}

.gp-pagination__btn_next::before {
  background-image: url(../assets/icons/arrow-right.svg);
}

@supports (mask-image: url()) or (-webkit-mask-image: url()) {
  .gp-pagination__btn_prev::before,
  .gp-pagination__btn_next::before {
    background-image: none;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  .gp-pagination__btn_prev::before {
    -webkit-mask-image: url(../assets/icons/arrow-left.svg);
    mask-image: url(../assets/icons/arrow-left.svg);
  }

  .gp-pagination__btn_next::before {
    -webkit-mask-image: url(../assets/icons/arrow-right.svg);
    mask-image: url(../assets/icons/arrow-right.svg);
  }
}

/* \пагинация */

@media (min-width: 1024px) {
  .hero:not(.hero-home) .hero__subtitle,
  .hero:not(.hero-home) .hero__description {
    display: none;
  }
}

/* sub-hero section */
.sub-hero {
  background-color: var(--dark-blue);
  color: var(--00);
  padding: 130px 0;
  width: 100vw;
  margin-inline: calc(-50vw + 50%);
}

.sub-hero__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

@media (max-width: 1024px) {
  .sub-hero {
    padding: var(--spacing-xl) 0;
  }
}

@media (max-width: 768px) {
  .sub-hero {
    padding-block: 80px;
  }

  .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
  }
}

/* Общие стили для секций */
.section {
  width: 100vw;
  margin-inline: calc(-50vw + 50%);
  padding-top: var(--section-padding-top);
}

/* Заголовки секций */
.section-title {
  font-weight: var(--font-weight-bold);
  font-size: 3rem;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 48px 0;
}

.section-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: 48px;
}

.section-header__label {
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  color: var(--05);
  white-space: nowrap;
}

.section-header .section-title {
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  :root {
    --container-padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: var(--spacing-md);
  }

  .section {
    padding-top: var(--section-padding-top-mobile);
  }

  .section-title {
    margin-bottom: var(--spacing-xl);
    font-size: 28px;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    text-align: center;
  }
}
