/* Inter */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter/Inter-Regular.eot');
  src:
    url('/fonts/Inter/Inter-Regular.eot?#iefix') format('embedded-opentype'),
    url('/fonts/Inter/Inter-Regular.woff2') format('woff2'),
    url('/fonts/Inter/Inter-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter/Inter-Bold.eot');
  src:
    url('/fonts/Inter/Inter-Bold.eot?#iefix') format('embedded-opentype'),
    url('/fonts/Inter/Inter-Bold.woff2') format('woff2'),
    url('/fonts/Inter/Inter-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* -------------------- */

/* Inter Tight */
@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/InterTight/InterTight-Light.eot');
  src:
    url('/fonts/InterTight/InterTight-Light.eot?#iefix') format('embedded-opentype'),
    url('/fonts/InterTight/InterTight-Light.woff2') format('woff2'),
    url('/fonts/InterTight/InterTight-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/InterTight/InterTight-Regular.eot');
  src:
    url('/fonts/InterTight/InterTight-Regular.eot?#iefix') format('embedded-opentype'),
    url('/fonts/InterTight/InterTight-Regular.woff2') format('woff2'),
    url('/fonts/InterTight/InterTight-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/InterTight/InterTight-Medium.eot');
  src:
    url('/fonts/InterTight/InterTight-Medium.eot?#iefix') format('embedded-opentype'),
    url('/fonts/InterTight/InterTight-Medium.woff2') format('woff2'),
    url('/fonts/InterTight/InterTight-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('/fonts/InterTight/InterTight-SemiBold.eot');
  src:
    url('/fonts/InterTight/InterTight-SemiBold.eot?#iefix') format('embedded-opentype'),
    url('/fonts/InterTight/InterTight-SemiBold.woff2') format('woff2'),
    url('/fonts/InterTight/InterTight-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* -------------------- */

/* Montserrat */
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat/Montserrat-Medium.eot');
  src:
    url('/fonts/Montserrat/Montserrat-Medium.eot?#iefix') format('embedded-opentype'),
    url('/fonts/Montserrat/Montserrat-Medium.woff2') format('woff2'),
    url('/fonts/Montserrat/Montserrat-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/Montserrat/Montserrat-ExtraBold.eot');
  src:
    url('/fonts/Montserrat/Montserrat-ExtraBold.eot?#iefix') format('embedded-opentype'),
    url('/fonts/Montserrat/Montserrat-ExtraBold.woff2') format('woff2'),
    url('/fonts/Montserrat/Montserrat-ExtraBold.woff') format('woff'),
    url('/fonts/Montserrat/Montserrat-ExtraBold.ttf') format('truetype'),
    url('/fonts/Montserrat/Montserrat-ExtraBold.svg#Montserrat-ExtraBold') format('svg');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* -------------------- */

/* NAMU */
@font-face {
  font-family: 'NAMU';
  src: url('/fonts/NAMU/NAMU-1850.eot');
  src:
    url('/fonts/NAMU/NAMU-1850.eot?#iefix') format('embedded-opentype'),
    url('/fonts/NAMU/NAMU-1850.woff2') format('woff2'),
    url('/fonts/NAMU/NAMU-1850.woff') format('woff'),
    url('/fonts/NAMU/NAMU-1850.ttf') format('truetype'),
    url('/fonts/NAMU/NAMU-1850.svg#NAMU-1850') format('svg');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NAMU';
  src: url('/fonts/NAMU/NAMU-1990.eot');
  src:
    url('/fonts/NAMU/NAMU-1990.eot?#iefix') format('embedded-opentype'),
    url('/fonts/NAMU/NAMU-1990.woff2') format('woff2'),
    url('/fonts/NAMU/NAMU-1990.woff') format('woff'),
    url('/fonts/NAMU/NAMU-1990.ttf') format('truetype'),
    url('/fonts/NAMU/NAMU-1990.svg#NAMU-1990') format('svg');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* -------------------- */

::-webkit-scrollbar {
  width: 6px;
  height: 2px;
}
::-webkit-scrollbar-track {
  background-color: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #d3d0ca;
  border-radius: 20px;
}
:focus-visible {
  outline: 0;
}

:root {
  --layout-max: 1920px; /* ширина макету */

  --container-pad: 15px; /* padding контейнера (desktop) */
  --container-pad-mobile: 10px;

  --gutter-1600: 50px; /* відступ від краю екрану ДО КОНТЕНТУ при 1600 */
  --gutter-1920: 160px; /* відступ від краю екрану ДО КОНТЕНТУ при 1920 */

  --bp-md: 992px;
  --bp-lg: 1200px;
  --bp-1600: 1600px;

  --main-font: 'Inter Tight', sans-serif;
  --second-font: 'Inter', sans-serif;
  --third-font: 'Montserrat', sans-serif;
  --fourth-font: 'NAMU', sans-serif;
}

:focus {
  outline: none;
  outline-offset: 0;
}

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

.container {
  --padding: var(--container-pad);

  margin-left: auto;
  margin-right: auto;
  padding-left: var(--padding);
  padding-right: var(--padding);
  width: 100%;
  box-sizing: border-box;
}

.mobile .container {
  --padding: var(--container-pad-mobile);
}

/* bootstrap-like (970 контент + 30 padding) */
@media (min-width: 992px) {
  .container {
    max-width: 1000px;
  }
}

@media (min-width: 1200px) {
  .container {
    /* “додаткове поле” (зовнішній відступ до бордера контейнера) */
    --outer-1600: calc(var(--gutter-1600) - var(--padding)); /* 50-15 = 35 */
    --outer-1920: calc(var(--gutter-1920) - var(--padding)); /* 160-15 = 145 */

    /* максимальна ширина контейнера (по бордеру) під макет 1920 */
    --container-max: calc(var(--layout-max) - (2 * var(--outer-1920))); /* 1920 - 290 = 1630 */

    /* 1200..1600: outer 0 -> outer-1600 */
    --outer: clamp(0px, calc(8.75vw - 105px), var(--outer-1600));

    max-width: min(var(--container-max), calc(100% - (2 * var(--outer))));
  }
}

/* 1600..1920: outer outer-1600 -> outer-1920 */
@media (min-width: 1600px) {
  .container {
    --outer: clamp(var(--outer-1600), calc(34.375vw - 555px), var(--outer-1920));
  }
}

body {
  font-family: var(--main-font);
  font-weight: 400;
  color: #000;
  font-size: 14px;
  line-height: 1.3;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font: inherit;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}

button,
a,
[role='button'] {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

button,
a {
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

button:focus,
button:focus-visible,
button:active,
a:focus,
a:focus-visible,
a:active,
[role='button']:focus,
[role='button']:focus-visible,
[role='button']:active {
  outline: none;
  box-shadow: none;
}

input,
textarea {
  border: 0;
}

#content {
  min-height: 100px;
}

/* Top Button */
#toTop {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom)); /* для iOS */
  right: calc(20px + env(safe-area-inset-right));
  width: 40px;
  height: 40px;
  padding: 12px;
  background: linear-gradient(151deg, #0b0b12 1.13%, #26263b 60.3%, #0b0b12 109.92%, #390d51 151.79%);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 5px;
  overflow: hidden;
  z-index: 995;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease-in;
  -o-transition: all 0.4s ease-in;
  -webkit-transition: all 0.4s ease-in;
  -moz-transition: all 0.4s ease-in;
}

#toTop svg {
  width: 20px;
  height: 22px;
}
/*
@media (max-width: 1023.98px) {
  #toTop {
    bottom: calc(110px + env(safe-area-inset-bottom));
  }
}
*/

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  background-color: transparent;
  transition:
    transform 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
  pointer-events: none;
  z-index: 1000;
}

.site-header__row {
  min-height: 90px;
  padding-top: 76px;
  padding-bottom: 25px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* gap: clamp(20px, 5vw, 77px); */
  gap: 40px;
  transition:
    min-height 0.35s ease,
    padding 0.35s ease;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

.site-header.is-scrolled .site-header__row {
  padding-block: 15px;
}

.site-header__logo,
.site-header__burger {
  pointer-events: auto;
}

.site-header__logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.site-header__logo-link {
  display: inline-flex;
  align-items: center;
}

.site-header__logo-image {
  display: block;
  max-width: 190px;
  height: auto;
}

.site-header__logo-svg {
  display: block;
  width: 190px;
  height: 54px;
  background-color: #ffffff;
  transition: background-color 0.35s ease;
  -webkit-mask: var(--logo-image) center / contain no-repeat;
  mask: var(--logo-image) center / contain no-repeat;
}

.site-header.is-scrolled .site-header__logo-svg {
  background-color: #250b38;
}

.site-header__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-start;
}

.site-header__nav-list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  white-space: nowrap;
  list-style: none;
  pointer-events: auto;
}

.site-header__nav-link {
  border: 0;
  background: none;
  padding: 0;
  color: #ffffff;
  font-family: var(--main-font);
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
  transition: color 0.35s ease;
}

.site-header.is-scrolled .site-header__nav-link {
  color: #250b38;
}

.site-header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 0;
  color: #ffffff;
  cursor: pointer;
  transition:
    color 0.35s ease,
    opacity 0.35s ease;
}

.site-header.is-scrolled .site-header__burger {
  color: #250b38;
}

.site-header__burger svg,
.site-header__drawer-close svg {
  display: block;
}

.site-header__overlay {
  position: fixed;
  inset: 0;
  background: rgba(37, 11, 56, 0.42);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
  z-index: 1001;
}

.site-header__drawer {
  position: fixed;
  top: 90px;
  right: 16px;
  width: min(320px, calc(100% - 24px));
  max-height: calc(100vh - 32px);
  height: auto;
  border-radius: 30px;
  background-color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
  transform: translateX(110%);
  transition: transform 0.35s ease;
  padding: 24px 20px 28px;
  overflow-y: auto;
  z-index: 1002;
}

.site-header__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 16px);
  margin-bottom: clamp(20px, 3vw, 28px);
}

.site-header__logo-svg--drawer {
  width: 160px;
  height: 46px;
  background-color: #250b38;
}

.site-header__logo-image--drawer {
  max-width: 160px;
}

.site-header__drawer-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f4f4f4;
  color: #250b38;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.site-header__drawer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__drawer-item + .site-header__drawer-item {
  margin-top: clamp(14px, 2vw, 18px);
}

.site-header__drawer-link {
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 0;
  color: #250b38;
  font-family: var(--main-font);
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}

body.burger-open {
  overflow: hidden;
}

body.burger-open .site-header__overlay {
  opacity: 1;
  visibility: visible;
}

body.burger-open .site-header__drawer {
  transform: translateX(0);
}

.site-header__callback {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    max-width 0.7s ease,
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease,
    margin 0.35s ease;
}

/* Language */
.site-header__language--mobile {
  display: none;
  position: relative;
  margin-right: 45px;
}

.site-header__language--desktop {
  margin-left: 45px;
}

.site-language {
  position: relative;
  display: inline-block;
}

.site-language__form {
  position: relative;
  margin: 0;
}

.site-language__toggle {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.site-language__current {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.site-language__flag {
  display: block;
  width: 20px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

.site-language__label {
  color: #fff;
  font-family: var(--main-font);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
}

.site-header.is-scrolled .site-language__label {
  color: #250b38;
}

.site-language__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 5px;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  color: #fff;
}

.site-header.is-scrolled .site-language__arrow {
  color: #250b38;
}

.site-language.is-open .site-language__arrow {
  transform: rotate(180deg);
}

.site-language__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 85px;
  padding: 8px 0;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  opacity: 0;
  border-radius: 15px;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
  z-index: 30;
}

.site-language.is-open .site-language__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.site-language__option {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  background: transparent;
  text-align: left;
  color: #363732;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    padding-left 0.25s ease;
}

.site-language__option:hover {
  color: #151515;
  background: rgba(255, 255, 255, 0.45);
  padding-left: 24px;
}

.site-language__option.is-current {
  color: #ccc;
  pointer-events: none;
}

.site-header.is-scrolled .site-header__callback {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-header__callback-btn {
  min-width: clamp(120px, 9vw, 154px);
  min-height: 60px;
  padding: 10px 24px;
  border: 1px solid #511d8c;
  border-radius: 999px;
  background-color: #511d8c;
  color: #fff;
  font-family: var(--main-font);
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.site-header__callback-btn:hover {
  background-color: #fff;
  color: #511d8c;
}

/* Якщо блок соцмереж і телефону знаходиться в окремому модулі */
.hero-socials,
.hero-socials a,
.hero-socials svg,
.hero-phone,
.hero-phone a,
.hero-phone svg {
  color: #464646;
  fill: currentColor;
  stroke: currentColor;
}

@media (max-width: 1399.98px) {
  .site-header__row {
    padding-top: 45px;
    padding-left: 75px;
  }

  .site-header__nav-list {
    gap: 25px;
  }
}

@media (max-width: 1199.98px) {
  .site-header__row {
    padding-left: 30px;
    padding-right: 30px;
    gap: 10px;
  }

  .site-header.is-scrolled .site-header__row {
    padding-block: 0;
  }

  .site-header__logo-link {
    max-width: 140px;
  }

  .site-header__nav {
    justify-content: center;
  }

  .site-header__language-burger {
    display: flex;
    align-items: center;
  }

  .site-header.is-scrolled .site-header__language--desktop {
    display: block;
  }
/*
  .site-header.is-scrolled .site-header__language--mobile {
    display: block;
    margin-inline: 20px;
  }
*/
  .site-header__callback,
  .site-header__nav {
    display: none;
  }

  .site-header.is-hidden {
    transform: translateY(-100%);
  }

  .site-header.is-scrolled .site-header__row {
    min-height: 60px;
    box-sizing: border-box;
  }

  .site-header.is-scrolled .site-header__row {
    padding: 0;
  }

  .site-header__burger {
    display: inline-flex;
  }

  .site-header__logo-image {
    max-width: 170px;
  }

  .site-header__logo-svg {
    width: 170px;
    height: 48px;
  }

  .site-language__dropdown {
    min-width: 96px;
    top: calc(100% + 10px);
  }

  .site-language__option {
    padding: 10px 16px;
  }

  .site-language__option:hover {
    padding-left: 20px;
  }
}

/* Footer */
footer {
  padding-top: 40px;
  background-color: #0b0b12;
  color: #a9a9a9;
}

footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__pages-list,
.contact__phones,
.contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
  padding: 0;
}

footer a,
.footer__pages-link {
  padding: 14px 40px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background-color: #3d3d3d;
  color: #fff;
  font-family: var(--main-font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  text-decoration: none;
  border: 0;
  border-radius: 134px;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

footer a:hover,
.footer__pages-link:hover {
  color: #141414;
  background-color: #fff;
}

.footer-logo {
  margin-top: 120px;
  margin-bottom: 35px;
}

.footer__row {
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 2px solid #525252;
}

.footer__columns {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer__columns .footer__column:first-child {
  width: 160px;
  flex: 0 0 160px;
}

.footer__column.information {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer__column-title {
  margin: 0;
  color: #a9a9a9;
  font-family: var(--main-font);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
}

.contact__phones {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex: 0 0 auto;
}

.contact__socials {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: space-between;
}

.contact__socials li,
.contact__phones li {
  flex: 0 0 auto;
}

.contact__socials a {
  display: inline-flex;
  align-items: center;
  gap: 15px;
}

.contact__social-icon {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: block;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  -webkit-mask: var(--social-icon) center / contain no-repeat;
  mask: var(--social-icon) center / contain no-repeat;
}

.contact__socials a:hover .contact__social-icon,
.contact__socials a:focus-visible .contact__social-icon {
  background-color: #141414;
}

@media (max-width: 767.98px) {
  footer {
    padding-inline: 20px;
    padding-bottom: 58px;
  }

  .footer-logo {
    margin-top: 72px;
    margin-bottom: 15px;
  }

  .footer__row {
    padding-top: 15px;
    padding-bottom: 15px;
    border: 0;
  }

  .footer__columns {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .footer__columns .footer__column:first-child {
    width: 100%;
    flex: 0 0 auto;
  }

  .footer__column-title {
    margin-left: 15px;
    font-size: 18px;
    line-height: 1.3;
  }

  .footer__column.information {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .contact__phones,
  .contact__socials {
    align-items: baseline;
    gap: 20px;
  }

  .contact__phones a,
  .contact__socials a {
    width: fit-content;
    max-width: 100%;
    padding: 16px 32px;
  }
}

/* GSAP = START */
.js-text-animate .char {
  display: inline;
  color: inherit;
  opacity: 0.4;
  will-change: opacity;
}

.js-text-animate-line-mask {
  display: block;
  overflow: hidden;
  line-height: inherit;
}

.js-text-animate-line {
  display: block;
  will-change: transform, opacity;
}

.js-text-animate-line-block + .js-text-animate-line-block {
  margin-top: 8px;
}
/* GSAP = END */