/*
Theme Name: Ortodont
Author: Codex
Description: One-page orthodontist landing theme converted from the supplied static site archive.
Version: 1.6.7
Text Domain: ortodont
*/
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "PT Sans Caption", Arial, sans-serif;
  color: #ffffff;
  background: #07021a;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

button:focus {
  outline: none;
}

button:hover {
  transform: scale(1.04);
}

button:active {
  transform: scale(0.98);
}

.container {
  width: min(100% - 32px, 1440px);
  margin: 0 auto;
}

.hero-section {
  position: relative;
  min-height: 891px;
  overflow: hidden;
  background: #07021a;
}

.hero-section__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-section__background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.header,
.hero {
  position: relative;
  z-index: 2;
}

.header {
  padding-top: 60px;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 90px;
}

.nav a {
  height: 67px;

  display: flex;
  align-items: center;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;
}

/* Мобильная версия навигации */
.mobile-header-actions {
  display: none;
}

.mobile-header-phone {
  width: 30px;
  height: 30px;
}

.mobile-header-phone img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Блок хиро */

.hero {
  width: min(100% - 32px, 1440px);
  margin: 0 auto;
  padding-top: 64px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
}

.hero__content {
  max-width: 893px;
  padding-top: 104px;
}

.hero__content h1 {
  margin: 0 0 24px;

  font-family: "Russo One", Arial, sans-serif;
  font-size: 56px;
  line-height: 56px;
  font-weight: 400;
  letter-spacing: -0.86px;
}

.hero__content p {
  margin: 0 0 48px;
  max-width: 893px;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 32px;
  line-height: 50px;
  font-weight: 400;
  letter-spacing: -0.86px;
}

.hero__text--mobile {
  display: none;
}

.hero__button {
  width: 269px;
  height: 64px;

  border: none;
  border-radius: 7px;
  background: #974ec0;
  color: #ffffff;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  text-transform: uppercase;

  cursor: pointer;
}

.hero__button:hover {
  background: #8243a6;
}

.hero__button:active {
  background: #63307f;
}

.hero__photo {
  width: 426px;
  aspect-ratio: 426 / 640;
  border-radius: 32px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__socials {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 48px;
}

.hero__social-link {
  width: 70px;
  height: 70px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero__social-link:hover {
  transform: scale(1.08);
}

.hero__social-link:active {
  transform: scale(0.96);
}

.hero__social-link img {
  width: 70px;
  height: 70px;
  display: block;
}

/* Блок уникальная экспертиза */

.expertise-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #07021a;
  color: #ffffff;
}

.section-heading {
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 24px;
  font-family: "Russo One", Arial, sans-serif;
  font-size: 48px;
  line-height: 56px;
  font-weight: 400;
  letter-spacing: -0.86px;
}

.section-heading p {
  margin: 0;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 28px;
  line-height: 28px;
  font-weight: 400;
}

.expertise-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 39px;
  margin-top: 48px;
}

.expertise-card {
  min-height: 407px;
  padding: 40px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  border-radius: 32px;
  overflow: hidden;

  background-image: url("images/cards/card-bg.png");
  background-image: image-set(
    url("images/cards/card-bg.webp") type("image/webp"),
    url("images/cards/card-bg.png") type("image/png")
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);

  transition: transform 0.3s ease;
}

.expertise-card:hover {
  transform: scale(1.04);
}

.expertise-card__content {
  width: 100%;
  max-width: 398px;
}

.expertise-card__title {
  min-height: 102px;
  margin: 0 0 15px;

  font-family: "Russo One", Arial, sans-serif;
  font-size: 32px;
  line-height: 50.6px;
  font-weight: 400;
}

.expertise-card__text {
  margin: 0;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 20px;
  line-height: 30.8px;
  font-weight: 400;

  color: #8e8d91;
}

.expertise-card__number {
  margin-top: auto;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 56px;
  line-height: 50.6px;
  font-weight: 700;
}

/* Блок услуги */

.services-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #07021a;
  color: #ffffff;
}

/* Кнопка под услугами нужна только на мобильной версии */
.services__button {
  display: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;

  width: 100%;
  max-width: 1393px;
  margin: 64px auto 0;
}

.service-card {
  --spotlight-x: 50%;
  --spotlight-y: 50%;
  --spotlight-shadow-x: 0px;
  --spotlight-shadow-y: 0px;

  position: relative;
  isolation: isolate;
  min-height: 324px;
  padding: 24px 21px 24px 40px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  border-radius: 24px;
  overflow: hidden;

  background-image: url("images/cards/service-card-bg.png");
  background-image: image-set(
    url("images/cards/service-card-bg.webp") type("image/webp"),
    url("images/cards/service-card-bg.png") type("image/png")
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);

  transition:
    transform 0.3s ease,
    box-shadow 0.22s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 2px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;

  background: radial-gradient(
    180px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(244, 218, 255, 1) 0,
    rgba(203, 125, 243, 0.98) 18%,
    rgba(176, 90, 224, 0.88) 40%,
    rgba(86, 200, 255, 0.68) 58%,
    transparent 76%
  );

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  transition: opacity 0.22s ease;
}

.service-card:hover {
  transform: scale(1.03);
}

@media (hover: hover) and (pointer: fine) {
  .service-card:hover,
  .service-card.is-spotlight-active {
    z-index: 2;
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      var(--spotlight-shadow-x) var(--spotlight-shadow-y) 28px -10px rgba(176, 90, 224, 0.22),
      var(--spotlight-shadow-x) var(--spotlight-shadow-y) 44px -20px rgba(86, 200, 255, 0.12);
  }

  .service-card:hover::after,
  .service-card.is-spotlight-active::after {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card::after {
    transition: none;
  }
}

.service-card__image {
  width: 155px;
  height: 155px;

  object-fit: contain;
  display: block;

  margin-bottom: 10px;
}

.service-card__content {
  width: 100%;
  max-width: 392px;
}

.service-card__title {
  min-height: 51px;
  margin: 0 0 15px;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 24px;
  line-height: 25.5px;
  font-weight: 700;

  text-align: left;
}

.service-card__text {
  min-height: 45px;
  margin: 0;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 15.3px;
  line-height: 22.5px;
  font-weight: 400;

  color: #ffffff;
  text-align: left;
}

/* Блок фотогалерея */

.gallery-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #07021a;
  color: #ffffff;
}

/* Мобильная версия первого слайда галереи скрыта на десктопе */

.gallery-mobile-stack {
  display: none;
}

.gallery-mobile-mosaic {
  display: none;
}

.gallery-mobile-video {
  display: none;
}

.gallery-mobile-article {
  display: none;
}

.gallery {
  position: relative;
  margin-top: 64px;
}

/* Общая логика слайдера */

.gallery__slides {
  position: relative;
}

.gallery__slide {
  display: none;
}

.gallery__slide.is-active {
  display: block;
}

/* Слайд 1: мозаика */

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  height: 614px;
}

.gallery__item {
  border-radius: 16px;
  overflow: hidden;
  background: #1a1230;
}

.gallery__item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__item--left {
  height: 100%;
}

.gallery__item--right {
  height: 100%;
  position: relative;
}

.gallery__middle {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

/* Слайд 2: фото слева + текст справа */

.gallery__slide--photo-text .gallery-detail {
  display: grid;
  grid-template-columns: 467px 949px;
  gap: 24px;
  align-items: flex-start;
  height: 614px;
}

.gallery__slide--photo-text .gallery-detail__image {
  width: 467px;
  height: 614px;

  border-radius: 21px;
  overflow: hidden;
}

.gallery__slide--photo-text .gallery-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__slide--photo-text .gallery-detail__content {
  width: 949px;
  padding-top: 24px;
}

.gallery__slide--photo-text .gallery-detail__content h3 {
  margin: 0 0 12px;

  font-family: "Russo One", Arial, sans-serif;
  font-size: 32px;
  line-height: normal;
  font-weight: 400;
}

.gallery__slide--photo-text .gallery-detail__subtitle {
  margin: 0 0 16px;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 20px;
  line-height: 31px;
  font-weight: 400;

  color: #6a6776;
}

.gallery__slide--photo-text .gallery-detail__content p {
  margin: 0;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 20px;
  line-height: 31px;
  font-weight: 400;

  color: #ffffff;
}

/* Слайд 3: видео слева + текст справа */

.gallery__slide--video-text .gallery-detail {
  display: grid;
  grid-template-columns: 818px 598px;
  gap: 24px;
  align-items: flex-start;
  height: 614px;
}

.gallery__slide--video-text .gallery-detail__image {
  position: relative;

  width: 818px;
  height: 614px;

  border-radius: 21px;
  overflow: hidden;

  background: #1a1230;
}

.gallery__slide--video-text .gallery-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__slide--video-text .gallery-detail__content {
  position: relative;

  width: 598px;
  height: 614px;
  padding-top: 24px;
}

.gallery__slide--video-text .gallery-detail__content h3 {
  margin: 0 0 12px;

  font-family: "Russo One", Arial, sans-serif;
  font-size: 32px;
  line-height: normal;
  font-weight: 400;

  color: #ffffff;
}

.gallery__slide--video-text .gallery-detail__subtitle {
  margin: 0 0 16px;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 20px;
  line-height: 31px;
  font-weight: 400;

  color: #6a6776;
}

.gallery__slide--video-text .gallery-detail__content p {
  width: 598px;
  height: 468px;
  margin: 0;
  padding-right: 16px;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 20px;
  line-height: 31px;
  font-weight: 400;

  color: #ffffff;

  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery__slide--video-text .gallery-detail__content p::-webkit-scrollbar {
  display: none;
}

/* Слайд 4: текст сверху + широкое изображение */

.gallery__slide--text-image .gallery-full {
  width: 1440px;
  height: 614px;
}

.gallery__slide--text-image .gallery-full__content {
  width: 100%;
  margin-bottom: 24px;
}

.gallery__slide--text-image .gallery-full__content h3 {
  margin: 0 0 16px;

  font-family: "Russo One", Arial, sans-serif;
  font-size: 32px;
  line-height: normal;
  font-weight: 400;

  color: #ffffff;
}

.gallery__slide--text-image .gallery-full__subtitle {
  width: 1440px;
  margin: 0;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 20px;
  line-height: 31px;
  font-weight: 400;

  color: #6a6776;
}

.gallery__slide--text-image .gallery-full__image {
  width: 1440px;
  height: 477px;

  border-radius: 21px;
  overflow: hidden;

  background: #1a1230;
}

.gallery__slide--text-image .gallery-full__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Общие элементы галереи: play, стрелки */

.gallery__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: 88px;
  height: 64px;

  padding: 0;
  border: none;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 2;

  transition: transform 0.3s ease;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 48px;
  height: 48px;

  padding: 0;
  border: none;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  z-index: 3;

  transition: transform 0.3s ease;
}

.gallery__arrow--prev {
  left: -24px;
}

.gallery__arrow--next {
  right: -24px;
}

.gallery__arrow img {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery__arrow:hover {
  transform: translateY(-50%) scale(1.08);
}

.gallery__arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.gallery__play:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.gallery__play:active {
  transform: translate(-50%, -50%) scale(0.96);
}

.gallery__play img {
  width: 100%;
  height: 100%;
  display: block;
}

/* пагинация */

.gallery__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  margin-top: 64px;
}

.gallery__pagination-item {
  width: 32px;
  height: 32px;

  display: block;
  position: relative;

  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;

  cursor: pointer;

  transition:
    width 0.3s ease;
}

/* Визуальная точка отделена от полноценной области нажатия. */
.gallery__pagination-item::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(176, 90, 224, 0.4);
  transition:
    width 0.3s ease,
    border-radius 0.3s ease,
    background 0.3s ease;
}

.gallery__pagination-item--active {
  width: 100px;
}

.gallery__pagination-item--active::after {
  border-radius: 999px;
  background: #b05ae0;
  width: 100px;
}

.gallery__pagination-item:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Направление анимации активной точки */

.gallery.gallery--next
  + .gallery__pagination
  .gallery__pagination-item--active {
  transform-origin: right center;
  animation: pagination-grow 0.3s ease;
}

.gallery.gallery--prev
  + .gallery__pagination
  .gallery__pagination-item--active {
  transform-origin: left center;
  animation: pagination-grow 0.3s ease;
}

@keyframes pagination-grow {
  from {
    transform: scaleX(0.16);
  }

  to {
    transform: scaleX(1);
  }
}

/* блок обратной связи */

.consultation-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #07021a;
  color: #ffffff;
}

.consultation-card {
  width: min(100%, 1440px);
  min-height: 406px;
  margin: 0 auto;
  padding: 32px;

  display: flex;
  align-items: center;
  gap: 48px;

  border-radius: 12px;
  background: #111111;
}

.consultation-card__content {
  flex: 1 1 0;
  min-width: 0;
}

.consultation-card__title {
  margin: 0 0 16px;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;
}

.consultation-card__text {
  margin: 0 0 16px;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;

  color: #ababab;
}

.consultation-form {
  width: 100%;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 14px;
  line-height: 22px;
  font-weight: 700;
}

.form-status.is-success {
  color: #75d39d;
}

.form-status.is-error {
  color: #ff9b9b;
}

/* Мобильные элементы формы скрыты на десктопе */

.consultation-form__label {
  display: none;
}

.consultation-form__button-text--mobile {
  display: none;
}

.consultation-form__input--mobile {
  display: none;
}

.consultation-form__fields {
  display: flex;
  gap: 8px;

  margin-bottom: 24px;
}

.consultation-form__input {
  width: 100%;
  height: 48px;

  padding: 0 16px;

  border: none;
  border-radius: 8px;
  background: #ffffff;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;

  color: #111111;
}

.consultation-form__input::placeholder {
  color: #838383;
}

.consultation-form__input:focus,
.modal-form__input:focus {
  outline: none;
  box-shadow: none;
}

.consultation-form__button {
  width: 324px;
  height: 54px;
  flex-shrink: 0;

  border: none;
  border-radius: 7px;
  background: #974ec0;
  color: #ffffff;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;

  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.consultation-form__button:hover {
  background: #8243a6;
}

.consultation-form__button:active {
  background: #63307f;
  transform: scale(0.98);
}

.consultation-form__button:disabled,
.modal-form__button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.consultation-form__bottom {
  display: flex;
  align-items: center;
  gap: 16px;
}

.consultation-form__agreement {
  display: flex;
  align-items: flex-start;
  gap: 4px;

  cursor: pointer;
}

.consultation-form__checkbox {
  display: none;
}

.consultation-form__checkbox-icon,
.modal-form__checkbox-icon {
  width: 24px;
  height: 24px;

  display: block;
  flex-shrink: 0;

  background-image: url("icons/radio-empty.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.consultation-form__agreement:hover .consultation-form__checkbox-icon {
  background-image: url("icons/radio-hover.svg");
}

.consultation-form__agreement:active .consultation-form__checkbox-icon {
  background-image: url("icons/radio-active.svg");
}

.consultation-form__checkbox:checked + .consultation-form__checkbox-icon {
  background-image: url("icons/radio-checked.svg");
}

.consultation-form__agreement-text {
  width: 296px;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;

  color: #ababab;
}

.consultation-form__agreement-text a {
  color: #b05ae0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.consultation-card__image {
  position: relative;
  width: 644px;
  height: 342px;

  overflow: visible;
  flex-shrink: 0;
}

.consultation-card__image img {
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: auto;
  max-width: none;
  display: block;
}

/* футер */

.footer {
  width: 100%;
  height: 274px;
  padding-top: 24px;

  background-color: #07021a;
  background-image: url("images/backgrounds/footer-background.png");
  background-image: image-set(
    url("images/backgrounds/footer-background.webp") type("image/webp"),
    url("images/backgrounds/footer-background.png") type("image/png")
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer__copyright {
  margin: 0;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 24px;
  line-height: 64px;
  font-weight: 400;

  color: rgba(255, 255, 255, 0.61);
  text-align: center;
}

.footer__policy-link {
  color: #b05ae0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.footer__policy-link:hover {
  color: #cb7df3;
}

.footer__socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.footer__social-link {
  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.3s ease;
}

.footer__social-link:hover {
  transform: scale(1.08);
}

.footer__social-link:active {
  transform: scale(0.96);
}

.footer__social-link img {
  width: 48px;
  height: 48px;
  display: block;
}

/* Попап */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;

  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: absolute;
  inset: 0;

  background: rgba(17, 17, 17, 0.88);
  backdrop-filter: blur(6px);
}

.modal__content {
  position: relative;
  z-index: 2;

  width: min(100% - 32px, 984px);

  margin: 0 auto;

  top: 50%;
  transform: translateY(-50%);
}

.modal__card {
  width: 100%;
  min-height: 402px;
  padding: 32px;

  display: flex;
  align-items: center;
  gap: 32px;

  border-radius: 12px;
  background: #1b162e;
}

.modal__form-block {
  width: 514px;
  min-height: 338px;
}

.modal__image {
  width: 374px;
  height: 338px;

  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.modal__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__title {
  margin: 0 0 16px;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 28px;
  line-height: 36px;
  font-weight: 700;

  color: #ffffff;
}

.modal__text {
  margin: 0 0 24px;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;

  color: #ffffff;
}

.modal-form {
  width: 100%;
}

.modal-form__label {
  display: none;
}

.modal-form__input--mobile {
  display: none;
}

.modal-form__button-text--mobile {
  display: none;
}

.modal-form__fields {
  display: flex;
  gap: 8px;

  margin-bottom: 24px;
}

.modal-form__input {
  width: 100%;
  height: 48px;

  padding: 13px 16px;

  border: none;
  border-radius: 8px;
  background: #ffffff;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 16px;
  line-height: 18px;
  font-weight: 400;

  color: #111111;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-form__input::placeholder {
  color: #838383;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consultation-form__field,
.modal-form__field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

.form-error {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 10;

  width: 100%;
  min-height: 48px;
  padding: 12px 16px;

  display: none;
  align-items: center;

  border-radius: 8px;
  background: #ffffff;
  color: #111111;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.form-error.is-visible {
  display: flex;
}

.modal__close {
  position: absolute;
  right: 0;
  top: -64px;
  z-index: 3;

  width: 48px;
  height: 48px;

  padding: 0;
  border: none;
  background: transparent;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: transform 0.3s ease;
}

.modal__close:hover {
  transform: scale(1.08);
  content: url("icons/close-hover.svg");
}

.modal__close:active {
  transform: scale(0.96);
  content: url("icons/close-active.svg");
}

.modal__close img {
  width: 48px;
  height: 48px;
  display: block;
}

.modal-form__button {
  width: 514px;
  height: 54px;

  padding: 13px 48px;

  border: none;
  border-radius: 8px;
  background: #974ec0;
  color: #ffffff;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 18px;
  line-height: 18px;
  font-weight: 400;

  cursor: pointer;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.modal-form__button:hover {
  background: #8243a6;
}

.modal-form__button:active {
  background: #63307f;
  transform: scale(0.98);
}

.modal-form__agreement {
  display: flex;
  align-items: flex-start;
  gap: 8px;

  margin-top: 8px;

  cursor: pointer;
}

.modal-form__checkbox {
  display: none;
}

.modal-form__agreement:hover .modal-form__checkbox-icon {
  background-image: url("icons/radio-hover.svg");
}

.modal-form__agreement:active .modal-form__checkbox-icon {
  background-image: url("icons/radio-active.svg");
}

.modal-form__checkbox:checked + .modal-form__checkbox-icon {
  background-image: url("icons/radio-checked.svg");
}

.modal-form__agreement-text {
  max-width: 486px;

  font-family: "PT Sans Caption", Arial, sans-serif;
  font-size: 16px;
  line-height: 20px;
  font-weight: 400;

  color: #ababab;
}

.modal-form__agreement-text a {
  color: #b05ae0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ==========================================================================
   MOBILE / МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================================== */

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
    max-width: none;
  }

  /* Хиро блок мобильная версия */

  .hero-section {
    width: 100%;
    height: 696px;
    min-height: 696px;
    padding-bottom: 0;
    overflow: hidden;

    background: #07021a;
  }

  .header {
    width: 100%;
    height: 64px;
    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .nav {
    display: none;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
  }

  .hero {
    position: relative;

    width: 100%;
    height: calc(696px - 64px);
    margin: 0;
    padding: 24px 16px 0;

    display: block;
  }

  .hero__content {
    position: static;

    width: 100%;
    max-width: none;
    padding-top: 0;

    text-align: center;
  }

  .hero__content h1 {
    position: relative;
    z-index: 3;

    margin: 0;

    font-family: "Russo One", Arial, sans-serif;
    font-size: 32px;
    line-height: 61px;
    font-weight: 400;
    letter-spacing: 0;
  }

  .hero__text--desktop {
    display: none;
  }

  .hero__content .hero__text--mobile {
    position: relative;
    z-index: 3;

    display: block;
    margin: 0 auto;
    max-width: 343px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
    letter-spacing: 0;
  }

  .hero__photo {
    position: absolute;
    left: 50%;
    top: 161px;
    z-index: 1;

    width: 433px;
    height: 575px;
    margin: 0;

    border-radius: 0;
    overflow: visible;

    transform: translateX(-50%);
  }

  .hero__photo picture {
    width: 100%;
    height: 100%;
    display: block;
  }

  .hero__photo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center bottom;

    display: block;
  }

  .hero__button {
    position: absolute;
    left: 16px;
    bottom: 24px;
    z-index: 4;

    width: calc(100% - 32px);
    height: 48px;
    margin: 0;
    padding: 7px 48px;

    border-radius: 7px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
  }

  .hero__socials {
    display: none;
  }

  /* Общие отступы мобильных секций */

  .expertise-section,
  .services-section,
  .gallery-section,
  .consultation-section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  /* Общие заголовки мобильных секций */

  .section-heading h2 {
    margin: 0 0 16px;

    font-family: "Russo One", Arial, sans-serif;
    font-size: 24px;
    line-height: 29px;
    font-weight: 400;
    letter-spacing: 0;
  }

  .section-heading p {
    width: 100%;
    max-width: 343px;
    margin: 0 auto;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 16px;
    line-height: 17px;
    font-weight: 400;
    letter-spacing: -0.86px;
  }

  /* Блок экспертизы — мобильная версия */

  .expertise-section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .expertise-section .section-heading h2 {
    margin: 0 0 16px;

    font-family: "Russo One", Arial, sans-serif;
    font-size: 24px;
    line-height: 29px;
    font-weight: 400;
    letter-spacing: 0;
  }

  .expertise-section .section-heading p {
    max-width: 343px;
    margin: 0 auto;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 16px;
    line-height: 17px;
    font-weight: 400;
    letter-spacing: -0.86px;

    color: #ffffff;
  }

  .expertise-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;

    margin-top: 32px;
  }

  .expertise-card {
    position: relative;

    width: 100%;
    height: 159px;
    min-height: 0;
    padding: 20px 20px 20px 28px;

    border-radius: 24px;
    overflow: hidden;

    background-image: url("images/cards/expertise-card-mobile-bg.png");
    background-image: image-set(
      url("images/cards/expertise-card-mobile-bg.webp") type("image/webp"),
      url("images/cards/expertise-card-mobile-bg.png") type("image/png")
    );
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  .expertise-card:hover {
    transform: none;
  }

  .expertise-card__content {
    width: 100%;
    max-width: min(270px, calc(100% - 52px));
  }

  .expertise-card__title {
    min-height: 0;
    margin: 0 0 9px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 20px;
    line-height: 27px;
    font-weight: 700;

    color: #ffffff;
  }

  .expertise-card__text {
    margin: 0;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 16px;
    line-height: 23px;
    font-weight: 400;

    color: #aca8a8;
  }

  .expertise-card__number {
    position: absolute;
    right: 20px;
    bottom: 20px;

    margin: 0;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 24px;
    line-height: 50.6px;
    font-weight: 700;

    color: #ffffff;
  }

  /* Блок услуги — мобильная версия */

  .services-section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .services-section .section-heading h2 {
    margin: 0 0 16px;

    font-family: "Russo One", Arial, sans-serif;
    font-size: 24px;
    line-height: 29px;
    font-weight: 400;
    letter-spacing: 0;
  }

  .services-section .section-heading p {
    max-width: 343px;
    margin: 0 auto;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 16px;
    line-height: 17px;
    font-weight: 400;
    letter-spacing: -0.86px;

    color: #ffffff;
  }

  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;

    width: 100%;
    max-width: none;
    margin: 32px auto 0;
  }

  .service-card {
    position: relative;

    width: 100%;
    height: 159px;
    min-height: 0;
    padding: 20px 20px 20px 28px;

    border-radius: 24px;
    overflow: hidden;

    background-image: url("images/cards/service-card-mobile-bg.png");
    background-image: image-set(
      url("images/cards/service-card-mobile-bg.webp") type("image/webp"),
      url("images/cards/service-card-mobile-bg.png") type("image/png")
    );
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);

    transition: none;
  }

  .service-card:hover {
    transform: none;
  }

  .service-card__content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 220px;
  }

  .service-card__content h3,
  .service-card__title {
    width: 100%;
    min-height: 54px;
    margin: 0 0 5px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 20px;
    line-height: 27px;
    font-weight: 700;

    color: #ffffff;
    text-align: left;
  }

  .service-card__content p,
  .service-card__text {
    width: 100%;
    max-width: 220px;
    min-height: 0;
    margin: 0;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;

    color: #ffffff;
    text-align: left;
  }

  .service-card__image {
    position: absolute;
    z-index: 1;

    margin: 0;

    object-fit: contain;
    object-position: right bottom;

    pointer-events: none;
  }

  .service-card:nth-child(1) .service-card__image {
    width: 185px;
    height: 185px;
    right: -47px;
    bottom: -54px;
  }

  .service-card:nth-child(2) .service-card__image {
    width: 186px;
    height: 186px;
    right: -42px;
    bottom: -51px;
  }

  .service-card:nth-child(3) .service-card__image {
    width: 144px;
    height: 144px;
    right: -23px;
    bottom: -20px;
  }

  .service-card:nth-child(4) .service-card__image {
    width: 140px;
    height: 140px;
    right: -13px;
    bottom: -20px;

    transform: rotate(5.61deg);
    transform-origin: center;
  }

  .service-card:nth-child(5) .service-card__image {
    width: 146px;
    height: 146px;
    right: -26px;
    bottom: -30px;
  }

  .service-card:nth-child(6) .service-card__image {
    width: 122px;
    height: 122px;
    right: -16px;
    bottom: -11px;
  }

  .services__button {
    width: 100%;
    max-width: none;
    height: 48px;
    margin: 32px auto 0;
    padding: 7px 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 7px;
    background: #974ec0;
    color: #ffffff;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
    text-transform: uppercase;

    cursor: pointer;
  }

  .services__button:hover {
    background: #8243a6;
    transform: none;
  }

  .services__button:active {
    background: #63307f;
    transform: none;
  }

  /* Блок фотогалерея — мобильная версия */

  .gallery-section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .gallery-section .section-heading h2 {
    margin: 0 0 16px;

    font-family: "Russo One", Arial, sans-serif;
    font-size: 24px;
    line-height: 29px;
    font-weight: 400;
    letter-spacing: 0;
  }

  .gallery-section .section-heading p {
    max-width: 343px;
    margin: 0 auto;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 16px;
    line-height: 17px;
    font-weight: 400;
    letter-spacing: -0.86px;

    color: #ffffff;
  }

  .gallery {
    position: relative;
    width: 100%;
    margin-top: 32px;
    overflow: visible;
  }

  .gallery__slides {
    position: relative;
    overflow: visible;
  }

  .gallery .gallery__slide--mosaic .gallery__grid {
    display: none !important;
  }

  .gallery-mobile-stack {
    display: grid !important;
    width: 100%;
    gap: 8px;
  }

  .gallery-mobile-stack__item {
    width: 100%;
    aspect-ratio: 343 / 265.5;

    border-radius: 16px;
    overflow: hidden;

    background: #1a1230;
  }

  .gallery-mobile-stack__item img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
  }

  /* Второй слайд галереи — мобильная версия */

  .gallery__slide--photo-text .gallery-detail {
    display: none;
  }

  .gallery__slide--photo-text .gallery-mobile-mosaic {
    display: grid;
    width: 100%;
    gap: 8px;
  }

  .gallery-mobile-mosaic__item {
    border-radius: 16px;
    overflow: hidden;

    background: #1a1230;
  }

  .gallery-mobile-mosaic__item img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
  }

  .gallery-mobile-mosaic__item--top,
  .gallery-mobile-mosaic__item--bottom {
    width: 100%;
    aspect-ratio: 343 / 142;
  }

  .gallery-mobile-mosaic__middle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .gallery-mobile-mosaic__middle .gallery-mobile-mosaic__item {
    aspect-ratio: 167.5 / 239;
  }

  /* Третий слайд галереи — мобильная версия */

  .gallery__slide--video-text .gallery-detail {
    display: none;
  }

  .gallery__slide--video-text .gallery-mobile-video {
    display: block;
    width: 100%;
  }

  .gallery-mobile-video__image {
    position: relative;

    width: 100%;
    aspect-ratio: 343 / 539;

    border-radius: 16px;
    overflow: hidden;

    background: #1a1230;
  }

  .gallery-mobile-video__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
  }

  .gallery-mobile-video .gallery__play {
    width: 70.83px;
    height: 49.58px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
  }

  .gallery-mobile-video .gallery__play:hover {
    transform: translate(-50%, -50%);
  }

  .gallery-mobile-video .gallery__play:active {
    transform: translate(-50%, -50%);
  }

  /* Четвертый слайд галереи — мобильная версия */

  .gallery__slide--text-image .gallery-full {
    display: none;
  }

  .gallery__slide--text-image .gallery-mobile-article {
    display: block;
    width: 100%;
  }

  .gallery-mobile-article__image {
    position: relative;

    width: 100%;
    aspect-ratio: 343 / 199;

    border-radius: 16px;
    overflow: hidden;

    background: #1a1230;
  }

  .gallery-mobile-article__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
  }

  .gallery-mobile-article .gallery__play {
    width: 70.83px;
    height: 49.58px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);
  }

  .gallery-mobile-article .gallery__play:hover {
    transform: translate(-50%, -50%);
  }

  .gallery-mobile-article .gallery__play:active {
    transform: translate(-50%, -50%);
  }

  .gallery-mobile-article__content {
    margin-top: 16px;
  }

  .gallery-mobile-article__content h3 {
    margin: 0 0 8px;

    font-family: "Russo One", Arial, sans-serif;
    font-size: 24px;
    line-height: normal;
    font-weight: 400;
    letter-spacing: -0.86px;

    color: #ffffff;
  }

  .gallery-mobile-article__subtitle {
    margin: 0 0 16px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 14px;
    line-height: normal;
    font-weight: 400;
    letter-spacing: -0.86px;

    color: #8e8d91;
  }

  .gallery-mobile-article__text {
    width: 100%;
    max-width: none;
    max-height: 216px;
    margin: 0 0 16px;

    overflow: hidden;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 16px;
    line-height: normal;
    font-weight: 400;
    letter-spacing: -0.86px;

    color: #ffffff;
  }

  .gallery-mobile-article__text.is-open {
    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .gallery-mobile-article__text.is-open::-webkit-scrollbar {
    display: none;
  }

  .gallery-mobile-article__text p {
    margin: 0;
  }

  .gallery-mobile-article__more {
    padding: 0;

    border: none;
    background: transparent;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 16px;
    line-height: normal;
    font-weight: 400;
    letter-spacing: -0.86px;

    color: #b05ae0;

    cursor: pointer;
  }

  .gallery-mobile-article__more:hover,
  .gallery-mobile-article__more:active {
    transform: none;
  }

  /* Стрелки и пагинация мобильная версия */

  .gallery__arrow {
    width: 32px;
    height: 32px;

    top: 50%;
    z-index: 5;
  }

  .gallery__arrow--prev {
    left: calc((100vw - 100%) / -2 + 1px);
  }

  .gallery__arrow--next {
    right: calc((100vw - 100%) / -2 + 1px);
  }

  .gallery__arrow:hover {
    transform: translateY(-50%);
  }

  .gallery__arrow:active {
    transform: translateY(-50%);
  }

  .gallery__pagination {
    margin-top: 24px;
  }

  /* Блок консультации — мобильная версия */

  .consultation-card {
    width: 100%;
    min-height: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    border-radius: 0;
    background: transparent;
  }

  .consultation-card__content {
    display: contents;
  }

  .consultation-card__title {
    margin: 0 0 16px;

    font-family: "Russo One", Arial, sans-serif;
    font-size: 24px;
    line-height: 29px;
    font-weight: 400;
    letter-spacing: 0;

    text-align: center;
  }

  .consultation-card__text {
    margin: 0 0 24px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 16px;
    line-height: 17px;
    font-weight: 400;
    letter-spacing: -0.86px;

    color: #ffffff;
    text-align: center;
  }

  .consultation-card__image {
    order: 2;

    width: 100%;
    height: auto;
    margin-bottom: 24px;

    aspect-ratio: 644 / 422;
    overflow: visible;
  }

  .consultation-card__image img {
    position: static;
    width: 100%;
    height: auto;
  }

  .consultation-form {
    order: 3;
  }

  .consultation-form__fields {
    display: flex;
    flex-direction: column;
    gap: 16px;

    margin-bottom: 16px;
  }

  .consultation-form__label {
    display: block;

    margin-bottom: 12px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;

    color: #ffffff;
  }
  .consultation-form__input--desktop {
    display: none;
  }

  .consultation-form__input--mobile {
    display: block;
  }

  .consultation-form__input {
    width: 100%;
    height: 48px;
    padding: 15px 24px;

    border-radius: 8px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 18px;
    line-height: 18px;
    font-weight: 400;
  }

  .consultation-form__input::placeholder {
    color: #838383;
  }

  .consultation-form__button-text--desktop {
    display: none;
  }

  .consultation-form__button-text--mobile {
    display: inline;
  }

  .consultation-form__bottom {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .consultation-form__agreement {
    order: 1;

    display: flex;
    align-items: flex-start;
    gap: 8px;

    width: 100%;
  }

  .consultation-form__agreement-text {
    width: auto;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 14px;
    line-height: 120%;
    font-weight: 400;

    color: #ffffff;
  }

  .consultation-form__button {
    order: 2;

    width: 100%;
    height: 54px;
    padding: 7px 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
  }

  .consultation-form__button:hover,
  .consultation-form__button:active {
    transform: none;
  }

  /* Футер — мобильная версия */

  .footer {
    height: auto;
    min-height: 0;
    padding-top: 24px;
    padding-bottom: 24px;

    background-color: #07021a;
    background-image: url("images/backgrounds/mobile-footer-background.png");
    background-image: image-set(
      url("images/backgrounds/mobile-footer-background.webp") type("image/webp"),
      url("images/backgrounds/mobile-footer-background.png") type("image/png")
    );
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
  }
  .footer__content {
    gap: 85px;
  }

  .footer__copyright {
    width: 100%;
    max-width: 343px;
    margin: 0 auto;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 14px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: -0.86px;

    color: rgba(255, 255, 255, 0.61);
    text-align: center;
  }

  .footer__policy-link {
    display: inline;
    text-underline-offset: 3px;
  }

  .footer__socials {
    gap: 24px;
  }

  .footer__social-link,
  .footer__social-link img {
    width: 48px;
    height: 48px;
  }

  .footer__social-link:hover,
  .footer__social-link:active {
    transform: none;
  }

  /* Попап — мобильная версия */

  .modal {
    overflow-y: auto;
    padding: 27px 0;

    background: rgba(17, 17, 17, 0.88);
    backdrop-filter: blur(6px);
  }

  .modal__overlay {
    position: fixed;
    inset: 0;

    background: transparent;
    backdrop-filter: none;
  }

  .modal__content {
    width: min(100% - 32px, 343px);
    max-width: 343px;
    margin: 0 auto;

    top: auto;
    transform: none;

    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .modal__close {
    position: static;
    align-self: flex-end;

    width: 32px;
    height: 32px;
    margin: 0 0 16px;
    padding: 0;

    flex-shrink: 0;

    border: none;
    background-color: transparent;
    background-image: url("icons/close-modal-mobile.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }

  .modal__close img {
    display: none;
  }

  .modal__card {
    width: 100%;
    min-height: 658px;
    padding: 24px 16px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    border-radius: 16px;
    background: #1b162e;
  }

  .modal__image {
    order: 1;

    width: 100%;
    height: 161px;
    margin: 0 0 24px;

    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
  }

  .modal__image picture {
    width: 100%;
    height: 100%;
    display: block;
  }

  .modal__image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
  }

  .modal__form-block {
    order: 2;

    width: 100%;
    min-height: 0;
  }

  .modal__title {
    margin: 0 0 16px;

    font-family: "Russo One", Arial, sans-serif;
    font-size: 24px;
    line-height: normal;
    font-weight: 400;
    letter-spacing: -0.86px;

    color: #ffffff;
  }

  .modal__text {
    margin: 0 0 24px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 16px;
    line-height: 17px;
    font-weight: 400;
    letter-spacing: -0.86px;

    color: #ffffff;
  }

  .modal-form {
    width: 100%;
  }

  .modal-form__fields {
    display: flex;
    flex-direction: column;
    gap: 8px;

    width: 100%;
    margin-bottom: 16px;
  }

  .modal-form__field {
    width: 100%;
  }

  .modal-form__label {
    display: block;

    margin-bottom: 12px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 16px;
    line-height: 18px;
    font-weight: 400;

    color: #ffffff;
  }

  .modal-form__input--desktop {
    display: none;
  }

  .modal-form__input--mobile {
    display: block;
  }

  .modal-form__input {
    width: 100%;
    height: 48px;
    padding: 15px 24px;

    border-radius: 8px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 18px;
    line-height: 18px;
    font-weight: 400;

    color: #111111;
  }

  .modal-form__input::placeholder {
    color: #838383;
  }

  .modal-form__button {
    width: 100%;
    height: 54px;
    padding: 7px 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
  }

  .modal-form__button-text--desktop {
    display: none;
  }

  .modal-form__button-text--mobile {
    display: inline;
  }

  .modal-form__agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-top: 8px;
  }

  .modal-form__agreement-text {
    max-width: none;

    font-family: "PT Sans Caption", Arial, sans-serif;
    font-size: 14px;
    line-height: 120%;
    font-weight: 400;

    color: #ffffff;
  }

  .modal-form__button:hover,
  .modal-form__button:active,
  .modal__close:hover,
  .modal__close:active {
    transform: none;
  }

  /* Мобильные радио-кнопки */

  .consultation-form__checkbox-icon,
  .modal-form__checkbox-icon {
    width: 16px;
    height: 16px;

    display: block;
    flex: 0 0 16px;
    margin-top: 1px;

    background-image: url("icons/radio-empty-mobile.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
  }

  .consultation-form__checkbox:checked + .consultation-form__checkbox-icon,
  .modal-form__checkbox:checked + .modal-form__checkbox-icon {
    background-image: url("icons/radio-checked-mobile.svg");
  }
}

/* Интерактивные медиа галереи и полноэкранный просмотр */
.gallery-media {
  position: relative;
  cursor: zoom-in;
  outline: none;
}

.gallery-media--video {
  cursor: pointer;
}

.gallery-media:focus-visible {
  box-shadow: 0 0 0 3px #b05ae0;
}

.gallery--single .gallery__arrow,
.gallery--single + .gallery__pagination {
  display: none;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.media-lightbox.is-open {
  display: flex;
}

.media-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 2, 26, 0.94);
  backdrop-filter: blur(8px);
}

.media-lightbox__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1440px, 94vw);
  max-height: 90vh;
}

.media-lightbox__content > img,
.media-lightbox__content > video {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  border-radius: 16px;
  object-fit: contain;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.media-lightbox__video-wrap {
  position: relative;
  width: min(1280px, 94vw);
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.media-lightbox__video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.media-lightbox__close {
  position: fixed;
  z-index: 3;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(17, 10, 38, 0.82);
  color: #fff;
  font: 300 36px/42px Arial, sans-serif;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.media-lightbox__close:hover {
  transform: scale(1.06);
  background: #b05ae0;
}

@media (max-width: 768px) {
  .media-lightbox {
    padding: 16px;
  }

  .media-lightbox__content,
  .media-lightbox__video-wrap {
    width: 100%;
  }

  .media-lightbox__close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 30px;
    line-height: 34px;
  }
}



/* Страница политики конфиденциальности */
.policy-page {
  min-height: 100vh;
  background: #07021a;
  color: #ffffff;
}

.policy-page__intro {
  padding: 48px 0 36px;
}

.policy-page__back {
  display: inline-flex;
  margin-bottom: 36px;
  color: #b05ae0;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy-page__heading h1 {
  margin: 0 0 16px;
  font-family: "Russo One", Arial, sans-serif;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.86px;
}

.policy-page__heading p {
  font-size: 22px;
  line-height: 1.4;
}

.policy-page__section {
  padding: 48px 0 72px;
}

.policy-page__content {
  width: min(100%, 1280px);
  margin: 0 auto;
}

.policy-page__title {
  margin: 0 0 24px;
  font-family: "Russo One", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 400;
}

.policy-page__text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.55;
}

.policy-page__text h2 {
  margin: 26px 0 10px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
}

.policy-page__text h3 {
  margin: 18px 0 8px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.policy-page__text p {
  margin: 0 0 9px;
}

.policy-page__text ul {
  margin: 4px 0 12px;
  padding-left: 24px;
}

.policy-page__text li {
  margin-bottom: 6px;
}

.policy-page__text a {
  color: #b05ae0;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.policy-data-card {
  margin: 12px 0 22px;
  padding: 20px 24px;
  border: 1px solid rgba(176, 90, 224, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 768px) {
  .policy-page__intro {
    padding: 24px 0 28px;
  }

  .policy-page__back {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .policy-page__heading h1 {
    font-size: 24px;
    line-height: 29px;
  }

  .policy-page__heading p {
    font-size: 16px;
    line-height: 22px;
  }

  .policy-page__section {
    padding: 24px 0 40px;
  }

  .policy-page__title {
    margin-bottom: 18px;
    font-size: 20px;
    line-height: 26px;
  }

  .policy-page__text {
    font-size: 13px;
    line-height: 1.55;
  }

  .policy-page__text h2 {
    margin-top: 22px;
    font-size: 15px;
  }

  .policy-page__text h3 {
    font-size: 14px;
  }

  .policy-page__text ul {
    padding-left: 20px;
  }

  .policy-data-card {
    padding: 16px;
    border-radius: 8px;
  }
}

/* ========================================================================== 
   TABLET AND COMPACT DESKTOP
   ========================================================================== */

@media (min-width: 769px) and (max-width: 1500px) {
  .container,
  .hero {
    width: calc(100% - 48px);
  }

  .hero-section {
    min-height: clamp(720px, 72vw, 891px);
  }

  .header {
    padding-top: clamp(28px, 3.5vw, 52px);
  }

  .nav {
    gap: clamp(18px, 3.2vw, 54px);
  }

  .nav a {
    height: 52px;
    font-size: clamp(19px, 2vw, 28px);
    white-space: nowrap;
  }

  .hero {
    gap: clamp(24px, 4vw, 64px);
    padding-top: clamp(32px, 4.5vw, 60px);
  }

  .hero__content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    padding-top: clamp(36px, 6vw, 88px);
  }

  .hero__content h1 {
    font-size: clamp(38px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: 0;
  }

  .hero__content p {
    max-width: none;
    margin-bottom: clamp(28px, 3vw, 44px);
    font-size: clamp(20px, 2.25vw, 30px);
    line-height: 1.5;
    letter-spacing: 0;
  }

  .hero__photo {
    width: clamp(280px, 31vw, 426px);
  }

  .hero__socials {
    margin-top: 36px;
  }

  .hero__social-link,
  .hero__social-link img {
    width: 60px;
    height: 60px;
  }

  .section-heading h2 {
    font-size: clamp(36px, 3.5vw, 46px);
    line-height: 1.2;
    letter-spacing: 0;
  }

  .section-heading p {
    font-size: clamp(22px, 2.2vw, 27px);
    line-height: 1.25;
  }

  .expertise-cards {
    gap: clamp(16px, 2vw, 32px);
  }

  .expertise-card {
    min-height: clamp(330px, 31vw, 407px);
    padding: clamp(24px, 2.5vw, 36px);
    border-radius: 24px;
  }

  .expertise-card__title {
    min-height: 0;
    margin-bottom: 16px;
    font-size: clamp(23px, 2.3vw, 31px);
    line-height: 1.3;
  }

  .expertise-card__text {
    font-size: clamp(16px, 1.55vw, 20px);
    line-height: 1.5;
  }

  .expertise-card__number {
    font-size: clamp(42px, 4vw, 54px);
  }

  .services-grid {
    margin-top: 48px;
  }

  .service-card {
    min-width: 0;
    padding-left: clamp(24px, 2.7vw, 40px);
  }

  .gallery__grid {
    height: clamp(440px, 42vw, 614px);
  }

  .gallery__slide--photo-text .gallery-detail,
  .gallery__slide--video-text .gallery-detail {
    width: 100%;
    height: clamp(440px, 42vw, 614px);
    gap: clamp(16px, 2vw, 24px);
  }

  .gallery__slide--photo-text .gallery-detail {
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.48fr);
  }

  .gallery__slide--video-text .gallery-detail {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  }

  .gallery__slide--photo-text .gallery-detail__image,
  .gallery__slide--photo-text .gallery-detail__content,
  .gallery__slide--video-text .gallery-detail__image,
  .gallery__slide--video-text .gallery-detail__content {
    width: 100%;
    height: 100%;
    min-width: 0;
  }

  .gallery__slide--photo-text .gallery-detail__content,
  .gallery__slide--video-text .gallery-detail__content {
    padding-top: clamp(12px, 1.7vw, 24px);
    overflow: hidden;
  }

  .gallery__slide--photo-text .gallery-detail__content h3,
  .gallery__slide--video-text .gallery-detail__content h3,
  .gallery__slide--text-image .gallery-full__content h3 {
    font-size: clamp(26px, 2.4vw, 32px);
  }

  .gallery__slide--photo-text .gallery-detail__subtitle,
  .gallery__slide--video-text .gallery-detail__subtitle,
  .gallery__slide--text-image .gallery-full__subtitle,
  .gallery__slide--photo-text .gallery-detail__content p,
  .gallery__slide--video-text .gallery-detail__content p {
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.5;
  }

  .gallery__slide--photo-text .gallery-detail__content p,
  .gallery__slide--video-text .gallery-detail__content p {
    width: 100%;
    height: auto;
    max-height: calc(100% - 104px);
    padding-right: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
  }

  .gallery__slide--photo-text .gallery-detail__content p::-webkit-scrollbar {
    display: none;
  }

  .gallery__slide--text-image .gallery-full,
  .gallery__slide--text-image .gallery-full__subtitle,
  .gallery__slide--text-image .gallery-full__image {
    width: 100%;
  }

  .gallery__slide--text-image .gallery-full {
    height: auto;
    min-height: clamp(440px, 42vw, 614px);
  }

  .gallery__slide--text-image .gallery-full__image {
    height: clamp(340px, 33vw, 477px);
  }

  .gallery__arrow--prev {
    left: 4px;
  }

  .gallery__arrow--next {
    right: 4px;
  }

  .consultation-card {
    gap: clamp(24px, 3vw, 48px);
    padding: clamp(24px, 2.3vw, 32px);
  }

  .consultation-card__content,
  .consultation-card__image {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .consultation-card__image {
    height: auto;
    aspect-ratio: 644 / 342;
  }

  .consultation-form__button {
    width: min(48%, 324px);
  }

  .consultation-form__agreement {
    flex: 1 1 auto;
    min-width: 0;
  }

  .consultation-form__agreement-text {
    width: auto;
  }
}

@media (min-width: 769px) and (max-width: 1099px) {
  .expertise-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .consultation-card {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .consultation-card__content,
  .consultation-card__image {
    flex: none;
  }

  .consultation-card__image {
    order: -1;
    width: 100%;
    height: auto;
    margin-top: 12.422%;
    aspect-ratio: 644 / 342;
    max-height: none;
  }

  .modal__content {
    width: min(100% - 48px, 900px);
  }

  .modal__card {
    gap: 24px;
  }

  .modal__form-block,
  .modal__image {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }

  .modal-form__button {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 900px) {
  .hero-section {
    min-height: 700px;
  }

  .hero__content {
    padding-top: 28px;
  }

  .hero__content h1 {
    font-size: 38px;
  }

  .hero__content p {
    font-size: 20px;
    line-height: 1.45;
  }

  .hero__photo {
    width: clamp(280px, 37vw, 320px);
  }

  .expertise-card {
    min-height: 350px;
    padding: 22px;
  }

  .expertise-card__title {
    font-size: 22px;
  }

  .expertise-card__text {
    font-size: 15px;
  }

  .gallery__slide--photo-text .gallery-detail {
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  }

  .gallery__slide--video-text .gallery-detail {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr);
  }
}
