@font-face {
  font-family: "Craftwork Grotesk";
  src: url(../fonts/CraftworkGrotesk-Bold.woff2);
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Craftwork Grotesk";
  src: url(../fonts/CraftworkGrotesk-SemiBold.woff2);
  font-weight: 600;
  font-display: swap;
}

:root {
  --font-family: "Roboto Mono", sans-serif;
  --second-family: "Inter", sans-serif;
  --third-family: "Craftwork Grotesk", sans-serif;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  color: #ffffff;
}

.body-lock {
  overflow: hidden;
}


.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

input,
textarea,
button {
  outline: none;
  border: none;
  /* без этого браузер подставляет системный Arial вместо шрифта сайта */
  font-family: inherit;
  font-size: inherit;
}

img,
svg {
  user-select: none;
  -webkit-user-drag: none;
}

/* В разметке у картинок проставлены настоящие width/height — по ним браузер
   заранее резервирует место и вёрстка не прыгает при загрузке (CLS).
   Но там, где ширину задаёт CSS, атрибут height иначе стал бы фактической
   высотой и картинка растянулась бы. height: auto возвращает пропорцию;
   специфичность у правила минимальная, поэтому любое правило с классом,
   задающее высоту явно, по-прежнему выигрывает. */
img {
  height: auto;
}

a,
button {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* ----------------BUTTONS start------------------- */

/* базовый стиль */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e6f355;
  border-radius: 32px;
  padding: 16px 32px;
  font-family: var(--second-family);
  font-weight: 600;
  line-height: 150%;
  letter-spacing: -0.04em;
  color: #232332;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  white-space: nowrap;
}

/* только текст */
.btn--primary {
  transition: opacity .3s ease-in 0s;
}

.btn--primary:hover {
  opacity: 0.9;
}

/* только текст + инверсия цвета */
.btn--inver {
  color: #fff;
  background-color: #000;
  border: 1px solid #e6f355;
  padding-top: 15px;
  padding-bottom: 15px;
  transition: background-color 0.3s ease-in, color 0.3s ease-in;
}

.btn--inver:hover {
  background-color: #e6f355;
  color: #232332;
}

/* текст и стрелка в круге */
.btn--secondary {
  height: 60px;
  padding-right: 72px;
  position: relative;
}

.btn--secondary::before {
  content: '';
  position: absolute;
  right: 4px;
  top: 3px;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid #232332;
  background-color: #232332;
  transition: background-color 0.3s ease-in;
}

.btn--secondary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 3px;
  z-index: 2;
  width: 52px;
  height: 52px;
  background-color: #fff;
  transition: background-color .3s ease-in 0s;
  mask: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.25 3.75L10.3562 4.62063L15.0937 9.375H2.5V10.625H15.0937L10.3562 15.3581L11.25 16.25L17.5 10L11.25 3.75Z" fill="currentColor"/></svg>') no-repeat center center / 20px 20px;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.25 3.75L10.3562 4.62063L15.0937 9.375H2.5V10.625H15.0937L10.3562 15.3581L11.25 16.25L17.5 10L11.25 3.75Z" fill="currentColor"/></svg>') no-repeat center center / 20px 20px;
}

.btn--secondary:hover::after {
  background-color: #232332;
}

.btn--secondary:hover::before {
  background-color: #e6f355;
}

/* текст и треугольник */
.btn--play::after {
  mask: url('data:image/svg+xml;utf8,<svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.133789 3.01631V10.9913C0.133789 12.6246 1.90879 13.6496 3.32546 12.833L6.78379 10.8413L10.2421 8.84131C11.6588 8.02464 11.6588 5.98298 10.2421 5.16631L6.78379 3.16631L3.32546 1.17464C1.90879 0.357975 0.133789 1.37464 0.133789 3.01631Z" fill="currentColor" /></svg>') no-repeat center center / 14px 15px;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg width="12" height="14" viewBox="0 0 12 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0.133789 3.01631V10.9913C0.133789 12.6246 1.90879 13.6496 3.32546 12.833L6.78379 10.8413L10.2421 8.84131C11.6588 8.02464 11.6588 5.98298 10.2421 5.16631L6.78379 3.16631L3.32546 1.17464C1.90879 0.357975 0.133789 1.37464 0.133789 3.01631Z" fill="currentColor" /></svg>') no-repeat center center / 14px 15px;
}


.small-border__btn {
  border-radius: 12px;
}

.transparent-btn {
  background-color: transparent;
}

/* ----------------BUTTONS end------------------- */

/* ----------------HEADER start------------------- */

header {
  width: 100%;
  position: fixed;
  top: 10px;
  z-index: 10;
  transition: top 0.3s ease-in;
}

header .nav {
  position: relative;
}

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

:is(header .logo) img {
  display: block;
}

header .nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 10px;
  border-radius: 200px;
  backdrop-filter: blur(56px);
  -webkit-backdrop-filter: blur(56px);
  border: 1px solid #6e6e84;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0 8px;

  transition: background-color 0.3s ease-in;
}

:is(header .nav__inner):hover {
  background-color: #000;
}

header .nav__inner.mobile {
  display: none;
}

header .menu-items {
  display: flex;
  align-items: center;
  /* Промежуток «дышит» вместе с шириной экрана: русские пункты меню длиннее
     английских, и при фиксированных 32px строка меню вылезала за пределы
     шапки. Верхняя граница — прежние 32px, так что на широких экранах
     ничего не изменилось. */
  column-gap: clamp(12px, 2.2vw, 28px);
}

header .nav__inner.desk .menu-items>li {
  position: relative;
  padding: 20px 0;

}

header .submenu__wrapp {
  padding-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  position: absolute;
  top: 64px;
  left: 50%;
  transition: all 0.2s ease-in;
}

header .submenu {
  min-width: 200px;
  border: 1px solid #6e6e84;
  border-radius: 8px;
  padding: 12px;
  background: #000;
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

header .submenu .submenu__link {
  position: relative;
  display: block;
}

:is(header .submenu .submenu__link)::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background-image: url(../img/arrow-slider.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

:is(header .submenu .submenu__link.active)::after {
  background-image: none;
  top: 7px;
  right: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #e6f355;
}

header .submenu__wrapp>.socials {
  min-width: 200px;
  border: 1px solid #6e6e84;
  border-radius: 8px;
  padding: 12px;
  background: #000;
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

header .menu-items li:hover>.submenu__wrapp {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0px);
  transition: all 0.2s ease-in;
}

header .menu-items li a {
  font-family: var(--second-family);
  font-weight: 600;
  line-height: 150%;
  letter-spacing: -0.04em;
  color: #fff;
  transition: opacity 0.3s ease-in;
}

:is(header .menu-items li a):hover {
  opacity: 0.7;
}

header .menu-items li a.active {
  color: #e6f355;
}

header .header__link {
  height: 48px;
}

header .header__link--mobile {
  display: none;
}

header .header__link--desktop {
  background-color: transparent;
  color: #fff;
  border: 1px solid #e6f355;
  transition: color 0.3s ease-in, background-color 0.3s ease-in;
}

:is(header .header__link--desktop):hover {
  color: #000;
  background-color: #e6f355;
}

/* Правило скрытия шапки убрано вместе с логикой в main.js: шапка закреплена
   сверху на всех страницах, включая статьи. */

@media (max-width:1232px) {
  header {
    padding: 0 16px;
  }

  /* На узких десктопах строка меню перестаёт помещаться в шапку — сильнее
     всего на русском, где подписи длиннее. Уменьшаем кегль, чтобы меню
     не выезжало за пределы контейнера вплоть до мобильной раскладки. */
  header .menu-items li a {
    font-size: 14px;
  }
}

/* Последний десктопный шаг перед бургер-меню (оно включается на 992px).
   Здесь строка меню самая тесная — особенно на русском. */
@media (max-width: 1100px) {
  header .menu-items {
    column-gap: 10px;
  }

  header .menu-items li a {
    font-size: 13px;
  }
}

@media (max-width: 992px) {

  header .nav__inner.desk {
    padding: 8px;
  }

  :is(header .nav__inner.desk) .menu-items {
    display: none;
  }

  header .nav__inner.mobile {
    display: flex;
    border: none;
  }

  header .header__link--desktop {
    display: none;
  }

  header .header__link--mobile {
    display: inline-flex;
    background-color: transparent;
    color: #eee;
    border: 1px solid #e6f355;
  }

  header .nav__inner.mobile {
    overflow-y: scroll;
    padding-bottom: 70px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
    position: absolute;
    left: 0;
    top: -10px;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    backdrop-filter: none;
    background: #000;
    display: block;
  }

  :is(header .nav__inner.mobile) .nav__inner-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 12px;
    margin-bottom: 60px;
    border: 1px solid #6E6E84;
    border-radius: 200px; 
    padding: 8px;
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 12px;
  }

  :is(header .nav__inner.mobile) .btn-close-menu {
    padding: 0;
    border: 1px solid #e6f355;
    border-radius: 32px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
  }

  :is(header .nav__inner.mobile) .menu-items {
    text-align: center;
    flex-direction: column;

  }

  :is(:is(header .nav__inner.mobile) .menu-items)>li {
    width: calc(100% + 16px);
    padding: 32px 0;
  }

  :is(:is(:is(header .nav__inner.mobile) .menu-items) > li):not(:last-child) {
    border-bottom: 1px solid #6e6e84;
  }

  :is(:is(header .nav__inner.mobile) .menu-items) .submenu__wrapp {
    position: relative;
    padding-top: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    top: auto;
    left: auto;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in;
  }

  :is(:is(header .nav__inner.mobile) .menu-items) .submenu__wrapp.open {
    max-height: 500px;
  }


  :is(:is(header .nav__inner.mobile) .menu-items) .submenu {
    min-width: auto;
    border: none;
    border-radius: 0;
    padding: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 32px;
    margin-top: 32px;
  }

  :is(:is(:is(:is(header .nav__inner.mobile) .menu-items) .submenu) li a)::after {
    display: none;
  }

  :is(:is(header .nav__inner.mobile) .menu-items) .socials {
    min-width: auto;
    border: none;
    border-radius: 0;
    padding: 0;
    row-gap: 32px;
    margin-top: 32px;
  }

  :is(:is(:is(header .nav__inner.mobile) .menu-items) .socials) li a {
    font-family: var(--third-family);
    display: flex;
    align-items: center;
    justify-content: center;
  }


  :is(:is(header .nav__inner.mobile) .menu-items) li a {
    font-family: var(--third-family);
    font-size: 40px;
    line-height: 120%;
  }

  :is(:is(header .nav__inner.mobile) .menu-items)>li>a.accord-title {
    position: relative;
    color: #ffffff;
  }

  :is(:is(:is(header .nav__inner.mobile) .menu-items) > li > a.accord-title)::after {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    right: -52px;
    top: 2px;
    background-image: url(../img/Chevron-down.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform 0.3s ease-in;
  }

  :is(:is(:is(header .nav__inner.mobile) .menu-items) > li > a.accord-title.active)::after {
    transform: rotate(180deg);
  }

  header .nav__inner.mobile.active {
    transform: translateX(-16px);
  }
}


/* ----------------HEADER end------------------- */

.socials {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.socials li a {
  display: flex;
  align-items: center;
  column-gap: 4px;
  font-weight: 600;
  line-height: 150%;
  letter-spacing: -0.04em;
  color: #fff;
}

:is(.socials li a) span {
  font-weight: 400;
  color: #e6f355;
  transition: opacity 0.3s ease-in 0s;
}

:is(.socials li a):hover span {
  opacity: 0.7;
}

/* ----------------FOOTER start------------------- */

footer {
  padding: 32px 0;
  background-color: #000;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  left: 0;
  top: -96px;
  width: 100%;
  height: 96px;
  background-color: currentColor;
  border-radius: 96px 96px 0 0;
  background: #000;
  border-top: 1px solid #6e6e84;
  z-index: 3;
}

footer .footer__inner {
  display: flex;
  flex-direction: column;
  row-gap: 40px;
}

footer .footer__top {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

footer .footer__menu {
  grid-column: span 8;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 24px;
}

footer .footer__menu-partition {
  grid-column: span 2;
}

footer .footer__partition-title {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 24px;
  line-height: 133%;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 12px;
}

footer .footer__partition-items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 8px;
}

footer .footer__partition-link {
  font-family: var(--second-family);
  line-height: 150%;
  letter-spacing: -0.04em;
  color: #fff;
  transition: color 0.3s ease-in;
}

:is(footer .footer__partition-link):hover {
  color: #e6f355;
}

footer .footer__top-info {
  grid-column: span 4;
  border-radius: 16px;
  padding: 24px;
  background: #15151f;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 16px;
}

footer .footer__info-logo {
  width: 120px;
  height: 48px;
}

:is(footer .footer__info-logo) img {
  width: 100%;
  object-fit: cover;
}

footer .footer__info-text {
  font-family: var(--second-family);
  line-height: 150%;
  letter-spacing: -0.02em;
  color: #cacddc;
}

footer .footer__info-link a {
  background-color: transparent;
  border: 1px solid #e6f355;
  height: 48px;
  color: #fff;
  transition: color 0.3s ease-in, background-color 0.3s ease-in;
}

:is(footer .footer__info-link a):hover {
  background-color: #e6f355;
  color: #232332;
}

footer .footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

footer .footer__bottom-copy {
  font-family: var(--second-family);
  font-weight: 600;
  line-height: 150%;
  letter-spacing: -0.04em;
  color: #6e6e84;
}

footer .footer__bottom-links {
  display: flex;
  align-items: center;
  column-gap: 12px;
}

footer .footer__bottom-link {
  font-family: var(--second-family);
  font-weight: 600;
  line-height: 150%;
  letter-spacing: -0.04em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #6e6e84;
}

:is(footer .footer__bottom-link):hover {
  text-decoration: none;
}

@media (max-width: 1200px) {
  footer::before {
    height: 72px;
    top: -72px;
  }

  footer .footer__inner {
    padding: 0 16px;
  }
}

@media (max-width: 992px) {
  footer::before {
    height: 48px;
    top: -48px;
  }

  footer .footer__menu {
    grid-column: span 7;
  }

  footer .footer__menu-partition {
    grid-column: span 4;
  }

  footer .footer__top-info {
    grid-column: span 5;
  }

  footer .footer__bottom {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  footer .footer__bottom-links {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #15151f;
    width: 100%;
  }
}

@media (max-width: 650px) {
  footer .footer__menu {
    grid-column: span 12;
    order: 2;
  }

  footer .footer__top-info {
    grid-column: span 12;
    order: 1;
  }
}

/* ----------------FOOTER end------------------- */

.section {
  padding: 32px 0 160px;
  position: relative;
}

.sm--title {
  font-family: var(--third-family);
  font-size: 56px;
  line-height: 114%;
  letter-spacing: -0.04em;
  color: #fff;
}

/* ----------------TOGGLE start------------------- */

.toggle {
  cursor: pointer;
  display: inline-block;
  transform: translateY(-1px);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.toggle__switch {
  display: inline-block;
  background: #ebecf6;
  border-radius: 16px;
  width: 32px;
  height: 20px;
  position: relative;
  vertical-align: middle;
  transition: background 0.25s;
}

.toggle__switch:before,
.toggle__switch:after {
  content: '';
}

.toggle__switch:before {
  display: block;
  background: linear-gradient(to bottom, #fff 0%, #eee 100%);
  border-radius: 50%;
  box-shadow: 0 4px 4px 0 rgba(35, 35, 50, 0.1);
  width: 16px;
  height: 16px;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.25s;
}

.toggle:hover .toggle__switch:before {
  background: linear-gradient(to bottom, #fff 0%, #fff 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.toggle__checkbox:checked+.toggle__switch {
  background: #22CD48;
}

:is(.toggle__checkbox:checked + .toggle__switch):before {
  left: 13px;
}

.toggle__checkbox {
  position: absolute;
  visibility: hidden;
}

/* ----------------TOGGLE end------------------- */

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

/* --------------------modals start----------------------- */

.cookie-modal {
  position: fixed;
  z-index: 100;
  left: 50%;
  transform: translateX(56%);
  bottom: 5%;
  width: 384px;
  border: 1px solid #6e6e84;
  border-radius: 32px;
  padding: 24px;
  backdrop-filter: blur(56px);
  -webkit-backdrop-filter: blur(56px);
  background: rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 16px;
}

.cookie-modal .cookie-modal__image {
  height: 180px;
  border: 1px solid #6e6e84;
  border-radius: 16px;
  background: #000;
  overflow: hidden;
  width: 100%;
}

:is(.cookie-modal .cookie-modal__image) img {
  width: 100%;
}

.cookie-modal .btn {
  height: 48px;
}

.cookie-modal .btn--inver {
  background-color: transparent;
}

:is(.cookie-modal .btn--inver):hover {
  background-color: #e6f355;
}

.cookie-modal.active {
  display: flex;
}

@media (max-width: 1234px) {
  .cookie-modal {
    left: auto;
    transform: none;
    right: 16px;
  }
}

@media (max-width: 417px) {
  .cookie-modal {
    width: 92%;
  }
}

.overlay {
  display: none;
  position: fixed;
  z-index: 500;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  background: rgba(49, 63, 254, 0.6);
}

.overlay.active {
  display: block;
}

.modal {
  position: fixed;
  z-index: 600;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal.active {
  display: flex;
}

.modal.modal-demo .modal__inner {
  border-radius: 32px;
  width: 100%;
  max-width: min(100%, 608px);
  background: #000;
  padding: 32px;
  text-align: center;
  position: relative;
  margin: auto;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.modal.modal-demo .btn-close {
  position: absolute;
  top: 32px;
  right: 32px;
  padding: 0;
  border: 1px solid #e6f355;
  border-radius: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #fff;
  transition: background-color 0.3s ease-in, color 0.3s ease-in;
}

:is(.modal.modal-demo .btn-close) svg {
  width: 20px;
  height: 20px;
}

:is(.modal.modal-demo .btn-close):hover {
  background-color: #e6f355;
  color: #000;
}

.modal.modal-demo .modal-demo__image {
  width: 544px;
  height: 332px;
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 32px;
}

:is(.modal.modal-demo .modal-demo__image) img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.modal.modal-demo .modal-demo__title {
  font-family: var(--third-family);
  font-weight: 700;
  font-size: 40px;
  line-height: 100%;
  letter-spacing: -0.04em;
  text-align: center;
  color: #fff;
  margin-bottom: 8px;
}

.modal.modal-demo .modal-demo__suptitle {
  font-family: var(--second-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.04em;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
}

.modal.modal-demo .modal-demo__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 12px;
}

.modal.modal-demo .modal-demo__button {
  min-height: 56px;
  font-family: var(--second-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}

.modal.modal-demo .btn--inver {
  background-color: transparent;
}

:is(.modal.modal-demo .btn--inver):hover {
  background-color: #e6f355;
}

.modal.modal-demo .modal-demo__buttons--center {
  justify-content: center;
}

.modal.modal-demo.modal-demo-form .modal__inner {
  width: 100%;
  max-width: 990px;
}

.modal.modal-demo.modal-demo-form .modal-demo__image {
  width: 100%;
  height: 264px;
}

:is(.modal.modal-demo.modal-demo-form .modal-demo__image) img {
  object-fit: contain;
}

.modal.modal-demo.modal-demo-success .modal-demo__image {
  height: auto;
}

:is(.modal.modal-demo.modal-demo-success .modal-demo__image) img {
  height: auto;
  object-fit: contain;
}

.modal.modal-demo.modal-demo-success .btn-close {
  position: absolute;
  top: 35px;
  right: 13px;
  padding: 0;
  border: 1px solid #e6f355;
  border-radius: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  color: #fff;
  transition: background-color 0.3s ease-in, color 0.3s ease-in;
}

.modal.modal-demo .modal-demo-form__form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.modal.modal-demo .modal-demo-form__fields {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.modal.modal-demo .modal-demo-form__field {
  width: calc(50% - 6px);
}

.modal.modal-demo .modal-demo-form__field input {
  width: 100%;
  min-height: 56px;
  border: 1px solid #6e6e84;
  border-radius: 32px;
  background-color: transparent;
  padding: 16px 32px;
  font-family: var(--second-family);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.64px;
  color: #fff;
  outline: none;
}

.modal.modal-demo .modal-demo-form__field input::placeholder {
  color: #fff;
}

.modal.modal-demo .modal-demo-form__field input.input-error {
  border: 2px solid red !important;
}

.modal.modal-demo .modal-demo-form__checkbox-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 28px;
  margin-bottom: 38px;
}

.modal.modal-demo .modal-demo-form__checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  font-size: 14px;
  line-height: 1.4;
  color: #fff;
  font-family: var(--second-family);
}

.modal.modal-demo .modal-demo-form__checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.modal.modal-demo .modal-demo-form__checkmark {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid #6e6e84;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  background: transparent;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.modal.modal-demo .modal-demo-form__checkmark::after {
  content: '';
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.modal.modal-demo .modal-demo-form__checkbox:checked ~ .modal-demo-form__checkmark {
  background-color: #6e6e84;
  border-color: #6e6e84;
}

.modal.modal-demo .modal-demo-form__checkbox.input-error + .modal-demo-form__checkmark {
  border-color: red !important;
}

.modal.modal-demo .modal-demo-form__checkbox:checked ~ .modal-demo-form__checkmark::after {
  display: block;
}

.modal.modal-demo .modal-demo-form__checkbox-text {
  font-family: var(--second-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.28px;
  color: #cacddc;
  margin-left: 12px;
  user-select: none;
}

.modal.modal-demo .modal-demo-form__submit {
  min-width: 180px;
}

.modal.modal-demo .modal-demo-form__legal {
  margin-top: 16px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: -0.28px;
  color: #6E6E84;
  font-family: var(--second-family);
  text-align: center;
}

@media (max-width: 650px) {
  .modal {
    align-items: flex-start;
    padding: 20px 12px;
  }

  .modal.modal-demo .modal__inner {
    width: 100%;
    max-width: 358px;
    padding: 24px;
    max-height: calc(100vh - 40px);
  }

  .modal.modal-demo .btn-close {
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
  }

  .modal.modal-demo .modal-demo__image {
    width: 100%;
    height: auto;
    aspect-ratio: 544 / 332;
    margin-bottom: 24px;
  }

  .modal.modal-demo .modal-demo__title {
    font-size: 32px;
  }

  .modal.modal-demo .modal-demo__buttons {
    flex-direction: column;
    row-gap: 12px;
  }

  .modal.modal-demo .modal-demo__button {
    width: 100%;
  }

  .modal.modal-demo.modal-demo-form .modal__inner {
    max-width: 95%;
  }

  .modal.modal-demo.modal-demo-form .modal-demo__image {
    height: 157px;
  }

  .modal.modal-demo .modal-demo-form__field input {
    min-height: 56px;
    padding: 16px 32px;
  }

  .modal.modal-demo .modal-demo-form__field {
    width: 100%;
  }

  .modal.modal-demo .modal-demo-form__checkbox-text {
    font-size: 13px;
  }
}

/* --------------------modals end----------------------- */

.fancybox__container:not(.is-compact) .fancybox__slide.has-close-btn {
  padding-top: 0;
}

.fancybox__content>.f-button.is-close-btn {
  top: 0;
}


/* -----------------section-affilliates start-------------------- */


.section-affilliates {
  background: #000;
  color: #000;
}


.section-affilliates::before {
  content: '';
  position: absolute;
  left: 0;
  top: -96px;
  width: 100%;
  height: 96px;
  border-radius: 96px 96px 0 0;
  background: #000;
}


.section-affilliates .section-affilliates__inner {
  position: relative;
}


.section-affilliates .section-affilliates__title {
  font-family: var(--third-family);
  font-weight: 600;
  font-size: 56px;
  line-height: 114%;
  color: #fff;
  margin-bottom: 16px;
  padding: 0 16px;
}


.section-affilliates .section-affilliates__suptitle {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 20px;
  line-height: 140%;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 40px;
  padding: 0 16px;
}


.section-affilliates .section-affilliates__list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  margin-bottom: 32px;
}


.section-affilliates .section-affilliates__link-wrapp {
  text-align: center;
}


.section-affilliates .section-affilliates__link {
  transform: rotate(-8deg);
  position: absolute;
  top: 21px;
  right: 16px;
  z-index: 5;
}


.section-affilliates .section-affilliates__item {
  grid-column: span 4;
  min-height: 354px;
  border: 1px solid #6e6e84;
  overflow: hidden;
  border-radius: 32px;
}


.section-affilliates .section-affilliates__item-inner {
  height: 100%;
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}


.section-affilliates .section-affilliates__item-text {
  font-family: var(--third-family);
  font-weight: 700;
  font-size: 32px;
  line-height: 125%;
  letter-spacing: -0.04em;
  color: #fff;
  position: relative;
  z-index: 2;
}


:is(.section-affilliates .section-affilliates__personal) .section-affilliates__item-image {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-33%) translateY(-40%);
  z-index: 1;
  width: 621px;
}


:is(:is(.section-affilliates .section-affilliates__personal) .section-affilliates__item-image) img {
  width: 100%;
}


:is(.section-affilliates .section-affilliates__feedback) .section-affilliates__item-image {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-41%) translateY(-20%);
  z-index: 1;
  width: 584px;
}


:is(:is(.section-affilliates .section-affilliates__feedback) .section-affilliates__item-image) img {
  width: 100%;
}


:is(.section-affilliates .section-affilliates__teamwork) .section-affilliates__item-image {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-37%) translateY(-9%);
  z-index: 1;
  width: 684px;
}


:is(:is(.section-affilliates .section-affilliates__teamwork) .section-affilliates__item-image) img {
  width: 100%;
}

@media (max-width: 1200px) {
  .section-affilliates::before {
    height: 72px;
    top: -72px;
  }
}

@media (max-width: 992px) {
  .section-affilliates::before {
    height: 48px;
    top: -48px;
  }

  .section-affilliates .section-affilliates__list {
    gap: 16px;
  }

  .section-affilliates .section-affilliates__item {
    grid-column: span 6;
  }

  .section-affilliates .section-affilliates__item:first-child {
    grid-column: span 12;
  }
}

@media (max-width: 768px) {
  .section-affilliates .section-affilliates__link {
    position: static;
  }
}

@media (max-width: 650px) {
  .section-affilliates .section-affilliates__item {
    grid-column: span 12;
  }
}

@media (max-width: 500px) {
  .section-affilliates .section-affilliates__title {
    font-size: 48px;
    line-height: 117%;
  }

  .section-affilliates .section-affilliates__suptitle {
    font-size: 16px;
    line-height: 150%;
    margin-bottom: 24px;
  }
}

.section-title {
  text-align: center;
  font-family: var(--third-family);
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: -1.6px;
}

@media(max-width: 992px) {

  .section-title {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.96px;

  }
}

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

  &::before {
    content: '';
    position: absolute;
    left: 0;
    top: -96px;
    width: 100%;
    height: 96px;
    border-radius: 96px 96px 0 0;
    background-color: currentColor;
  }
}



@media (max-width: 1200px) {
  .section::before {
    height: 72px;
    top: -72px;
    /* Радиус равен высоте колпака: если оставить макетные 96px, дуга
       растягивается по горизонтали и кромка выглядит прямой. */
    border-radius: 72px 72px 0 0;
  }
}

@media (max-width: 992px) {
  .section::before {
    height: 48px;
    top: -48px;
    border-radius: 48px 48px 0 0;
  }
}

/* -----------------section-affilliates end-------------------- */

/* -----------------lang-switch-------------------- */
/* Переключатель EN · RU в шапке. Активный язык — акцентным цветом,
   второй приглушён; между ними тонкий разделитель. */

.lang-switch {
  display: flex;
  align-items: center;
  column-gap: 8px;
  flex-shrink: 0;
}

.lang-switch__link {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.3s ease-in;
}

.lang-switch__link:hover {
  color: #fff;
}

.lang-switch__link.is-active {
  color: #e6f355;
  cursor: default;
}

/* Разделитель рисуется псевдоэлементом, чтобы не плодить пустую разметку */
.lang-switch__link:not(:last-child)::after {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 1px;
  height: 12px;
  margin-left: 8px;
  background-color: #6e6e84;
}

@media (max-width: 992px) {
  /* В десктопной панели переключатель прячется вместе с меню —
     на мобильных он живёт внизу выехавшего меню. */
  header .nav__inner.desk .lang-switch {
    display: none;
  }

  .lang-switch--mobile {
    justify-content: center;
    column-gap: 16px;
    padding: 32px 0;
  }

  .lang-switch--mobile .lang-switch__link {
    font-size: 18px;
    line-height: 24px;
  }

  .lang-switch--mobile .lang-switch__link:not(:last-child)::after {
    margin-left: 16px;
    height: 16px;
  }
}

/* -----------------lang-switch end-------------------- */

/* ----------------404 start------------------- */

.nf {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 180px 16px 140px;
  /* затемнение поверх фоновой картинки: без него белый текст тонет
     в светлых пятнах иллюстрации */
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 45%, rgba(0, 0, 0, 0.35) 100%),
    #000 url(../img/404-bg.webp) no-repeat center / cover;
}

.nf__inner {
  max-width: 720px;
}

.nf__code {
  font-family: var(--third-family);
  font-weight: 700;
  font-size: clamp(72px, 12vw, 160px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #e6f355;
}

.nf__title {
  font-family: var(--third-family);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #fff;
  margin: 16px 0 0;
}

.nf__text {
  font-family: var(--second-family);
  font-size: 18px;
  line-height: 1.5;
  color: #9a9aa4;
  margin: 20px 0 0;
  max-width: 520px;
}

.nf__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

@media (max-width: 600px) {
  .nf {
    padding: 140px 16px 100px;
  }

  .nf__links {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ----------------404 end------------------- */

/* ------------- заголовки секций ------------- */
/* Заголовки секций были свёрстаны как <div class="...__title"> — выглядели
   заголовками, но структуры документа не давали: поисковик не мог разбить
   страницу на смысловые куски, а скринридер — построить оглавление.
   Теги заменены на h2/h3, классы оставлены прежними.

   Отступы не поехали: в начале файла есть общий сброс `* { margin: 0 }`.
   А вот жирность браузер заголовкам ставит свою, и там, где класс её не
   задаёт, текст стал бы жирнее прежнего. Возвращаем наследование. */
h2.section-permissions__title,
h2.section-freestyle__title,
h2.section-volume__title,
h3.text-content__title {
  font-weight: inherit;
}

/* FAQ: заголовок аккордеона лежит внутри <button>, а класть туда h2/h3
   нельзя — кнопка принимает только phrasing content. Поэтому обёрнута сама
   кнопка. Обёртка должна быть прозрачной по типографике: размер и жирность
   задают классы внутренних span'ов. */
.faq-category__heading,
.faq-question__heading {
  font: inherit;
}
