/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding: 0 var(--container-padding-mobile);
}
.container--lg {
  max-width: var(--container-width-lg);
}

@media (min-width: 1024px) {
  .container {
    padding-inline: var(--container-padding-desktop);
  }
}

body {
  position: relative;
  background: var(--color-bg-0);
  color: var(--color-primary);
  font-family: var(--font-main);
  font-size: var(--fs-body);
}

section {
  padding: var(--space-5) 0;
}

@media (min-width: 1024px) {
  section {
    padding: var(--space-12) 0;
  }
}

/* ==========================================================================
   Section title (shared)
   ========================================================================== */

.section-title {
  font-size: var(--fs-h3);
  line-height: var(--lh-h2);
  font-weight: 500;
  text-align: center;
  margin-bottom: var(--space-6);
}

@media (min-width: 1024px) {
  .section-title {
    font-size: var(--fs-h3-desktop);
    line-height: var(--lh-h2-desktop);
    margin-bottom: var(--space-8);
  }
}

/* ==========================================================================
   Button (shared)
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: var(--fs-small);
  white-space: nowrap;
}

.button--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.button--primary:hover {
  background-color: var(--color-accent-hover);
}

.button--primary:active {
  background-color: var(--color-accent-active);
}

.button--primary:focus-visible {
  outline: none;
  border: 2px solid var(--color-focus-ring);
}

.button--primary:disabled,
.button--primary[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .button {
    height: 48px;
    padding: 12px 12px;
    font-size: var(--fs-body);
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  padding-block: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.header__logo img {
  height: 46px;
  width: auto;
}

@media (min-width: 1024px) {
  .header {
    padding-block: var(--space-6);
    flex-direction: row;
    justify-content: space-between;
  }

  .header__top {
    width: auto;
  }

  .header__logo img {
    height: 49px;
  }
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav__list {
  display: flex;
  gap: var(--space-4);
}

.nav__item--lang {
  display: none;
}

.nav__link {
  font-size: var(--fs-body);
  line-height: 24px;
}

@media (min-width: 1024px) {
  .nav__list {
    gap: var(--space-2);
    background: var(--color-bg-1);
    backdrop-filter: blur(var(--blur-card));
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-1);
  }

  .nav__link {
    display: flex;
    align-items: center;
    height: 40px;
    padding-inline: var(--space-2);
  }

  .nav__item--lang {
    display: list-item;
  }
}

/* ==========================================================================
   Language switch
   ========================================================================== */

.lang-switch {
  position: relative;
}

.lang-switch--desktop {
  display: none;
}

@media (min-width: 1024px) {
  .lang-switch--mobile {
    display: none;
  }

  .lang-switch--desktop {
    display: block;
  }
}

.lang-switch__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 40px;
  padding: 8px 4px 8px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  background-color: var(--color-bg-1);
  color: var(--color-primary);
  font-family: inherit;
  font-size: var(--fs-body);
  line-height: 24px;
  cursor: pointer;
}

.lang-switch__toggle:focus-visible {
  outline: none;
  border: 2px solid var(--color-focus-ring);
}

.lang-switch__toggle:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.lang-switch.is-open .lang-switch__toggle {
  border: 1px solid var(--color-primary);
}

.lang-switch__icon {
  display: flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.lang-switch__icon img {
  width: 100%;
  height: 100%;
}

.lang-switch__menu {
  position: absolute;
  top: calc(100% + var(--space-1));
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 120px;
  background: var(--color-white);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 2px;
  box-shadow: var(--shadow-dropdown);
}

.lang-switch__menu[hidden] {
  display: none;
}

.lang-switch__option-link {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  padding: 0 12px 0 16px;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 24px;
  text-decoration: none;
  cursor: pointer;
}

.lang-switch__option-link:hover {
  background-color: var(--color-overlay-8);
}

.lang-switch__dot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0;
}

.lang-switch__option-link[aria-current="true"] .lang-switch__dot {
  opacity: 1;
}

@media (min-width: 1024px) {
  .lang-switch__toggle {
    background: none;
  }

  .lang-switch__menu {
    right: auto;
    left: 0;
  }
}

/* Temporarily hidden: no real /en/ /kk/ translations exist yet.
   Remove this rule once EN/KZ pages ship. */
.lang-switch--mobile,
.lang-switch--desktop {
  display: none !important;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image:
    linear-gradient(180deg, rgba(239, 238, 246, 0) 80%, var(--color-bg-0) 100%),
    url("../img/photos/hero-bg-full.webp");
  background-repeat: no-repeat, no-repeat;
  background-size:
    100% 100%,
    cover;
  background-position:
    top,
    top center;
  pointer-events: none;
  z-index: 0;
}

.hero__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  max-width: 312px;
  margin: 40px auto;
  text-align: center;
}

.hero__title {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 600;
}

.hero__subtitle {
  font-size: var(--fs-body);
  line-height: 24px;
}

.hero__cta {
  margin-top: var(--space-2);
}

@media (min-width: 576px) {
  .hero__intro {
    max-width: 720px;
  }
}

@media (min-width: 1024px) {
  .hero__intro {
    gap: var(--space-5);
  }

  .hero__title {
    font-size: var(--fs-h1-desktop);
    line-height: var(--lh-h1-desktop);
  }

  .hero__subtitle {
    font-size: 20px;
    line-height: 28px;
  }

  .hero__cta {
    margin-top: var(--space-1);
  }
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  margin: var(--space-6) auto;
  max-width: 986px;
}

.stats__item:nth-child(3) {
  grid-column: 1 / -1;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-bg-1);
  backdrop-filter: blur(var(--blur-card));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0;
}

.stat-card__title {
  font-size: var(--fs-card-title);
  line-height: 22px;
  font-weight: 500;
  padding: var(--space-3);
}

.stat-card__img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.stat-card__img--fly {
  height: 138px;
}

@media (min-width: 376px) {
  .stat-card__img--fly {
    transform: translateX(37px);
  }
}

@media (min-width: 1024px) {
  .stats {
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: var(--space-4);
    margin-top: calc(var(--space-6) + var(--space-8));
  }

  .stats__item:nth-child(3) {
    grid-column: auto;
  }

  .stat-card__title {
    font-size: var(--fs-card-title-desktop);
    line-height: 32px;
    padding: var(--space-5);
  }

  .stat-card--featured {
    transform: translateY(calc(var(--space-8) * -1));
  }
}

/* Badges */

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin: var(--space-6) auto;
  max-width: 1080px;
}

.badges__item {
  background: var(--color-bg-1);
  backdrop-filter: blur(var(--blur-card));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .badges__item {
    padding: var(--space-3) var(--space-4);
    font-size: var(--fs-body);
  }
}

/* ==========================================================================
   Clients
   ========================================================================== */

.clients__item img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .clients__item img {
    height: 34px;
  }
}

@media (min-width: 1200px) {
  .clients__item img {
    height: 52px;
  }
}

/* Desktop: one flex list, wrapped into a compact, centered row of 5 and a
   second centered row with the rest. The zero-size ".clients__break" item
   forces the line break at a fixed point without splitting the markup into
   separate lists. */
.clients__list {
  display: none;
}

@media (min-width: 1024px) {
  .clients__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-4) var(--space-8);
  }

  /* Items after the break (the second row) are smaller and packed tighter
     so all 11 of them fit on a single line, matching the top row's width */
  .clients__break ~ .clients__item {
    margin-top: var(--space-2);
  }

  .clients__break ~ .clients__item img {
    height: 24px;
  }
}

@media (min-width: 1200px) {
  .clients__break ~ .clients__item img {
    height: 42px;
  }
}

.clients__break {
  flex-basis: 100%;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

/* Mobile: two auto-scrolling marquee lanes instead of a manual scroll strip */
.clients__marquee-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  .clients__marquee-group {
    display: none;
  }
}

.clients__marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
  gap: var(--space-8);
  mask-image: linear-gradient(
    to right,
    transparent,
    black 8%,
    black 92%,
    transparent
  );
}

.clients__marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  width: max-content;
  gap: var(--space-8);
  animation: clients-marquee 24s linear infinite;
}

.clients__marquee--reverse .clients__marquee-track {
  animation-direction: reverse;
}

@keyframes clients-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--space-8)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients__marquee-track {
    animation: none;
  }
}

/* ==========================================================================
   Advantage cards
   ========================================================================== */

.advantages {
  position: relative;
}
.advantages::before {
  content: "";
  position: absolute;
  top: -90px;
  left: 0;
  right: 0;
  height: 100%;
  max-height: 367px;
  background-image: url("../img/photos/section-bg-advantages.webp");
  background-repeat: no-repeat, no-repeat;
  background-size:
    100% 100%,
    cover;
  background-position:
    top,
    top center;
  pointer-events: none;
  z-index: 0;
}

.advantage-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-1);
}

.advantage-card {
  display: flex;
  flex-direction: column;
}

.advantage-cards__item-inner {
  background: var(--color-bg-1);
  backdrop-filter: blur(var(--blur-card));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  height: 100%;
  min-height: 200px;
  justify-content: space-between;
}

.advantage-card__img {
  object-fit: cover;
}

.advantage-card__title {
  font-size: var(--fs-card-title);
  font-weight: 500;
  line-height: 22px;
}

.advantage-card__text {
  font-size: var(--fs-small);
  color: var(--color-secondary);
  line-height: 20px;
}

.advantage-card--iata {
  justify-content: space-between;
}

.advantage-card__badge {
  align-self: center;
  max-width: 100%;
  height: auto;
}

@media (min-width: 1024px) {
  .advantages::before {
    min-height: 730px;
    top: -200px;
  }

  .advantage-cards {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2);
  }

  .advantage-cards__item-inner {
    padding: var(--space-5);
    min-height: 320px;
  }

  .advantage-card__title {
    font-size: 24px;
    line-height: 32px;
  }

  .advantage-card__text {
    font-size: 20px;
    line-height: 28px;
  }
}

/* ==========================================================================
   Service cards
   ========================================================================== */

.services {
  position: relative;
}
.services::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 0;
  right: 0;
  height: 300px;
  background-image: url("../img/photos/hero-bg-plane.webp");
  background-repeat: no-repeat, no-repeat;
  background-size: cover;
  background-position:
    top,
    top center;
  pointer-events: none;
  z-index: 0;
}

.service-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.service-card {
  background: var(--color-bg-1);
  backdrop-filter: blur(var(--blur-card));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  overflow: hidden;
  position: relative;
}

.service-card__title {
  font-size: var(--fs-card-title);
  font-weight: 500;
  line-height: 22px;
}

.service-card__text {
  font-size: var(--fs-small);
  color: var(--color-secondary);
  line-height: 20px;
}

.service-card__img {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100px;
  width: auto;
  object-fit: contain;
}

@media (min-width: 576px) {
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services::before {
    height: 960px;
    top: -20px;
  }

  .service-card {
    justify-content: space-between;
    padding: var(--space-5);
    min-height: 320px;
  }

  .service-card__title {
    font-size: 24px;
    line-height: 32px;
  }

  .service-card__text {
    font-size: var(--fs-body);
    line-height: 24px;
    max-width: calc(100% - 280px);
  }

  .service-card__img {
    height: auto;
    width: 280px;
  }
}

/* ==========================================================================
   Tourism type cards
   ========================================================================== */

.tourism-types {
  position: relative;
}
.tourism-types::before {
  content: "";
  position: absolute;
  top: -136px;
  left: 0;
  right: 0;
  height: 300px;
  background-image: url("../img/photos/hero-bg-mountains.webp");
  background-repeat: no-repeat, no-repeat;
  background-size:
    100% 100%,
    cover;
  background-position:
    top,
    top center;
  pointer-events: none;
  z-index: 0;
}

.tourism-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px var(--space-2);
  margin-top: 56px;
}

.tourism-card {
  position: relative;
  background: var(--color-bg-1);
  backdrop-filter: blur(var(--blur-card));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
  padding-top: 126px;
  display: flex;
  justify-content: flex-end;
  flex-direction: column;
}

.tourism-card:nth-child(3),
.tourism-card:nth-child(4) {
  grid-column: span 2;
}

.tourism-card__backdrop {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background-color: #fff;
  width: 100%;
  height: 110px;
}

.tourism-card__title {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 24px;
  position: relative;
  z-index: 1;
}

.tourism-card__img {
  position: absolute;
  left: 0;
  right: 0;
  top: -56px;
  width: 170px;
  height: auto;
  object-fit: cover;
  margin: 0 auto;
}

@media (min-width: 576px) {
  .tourism-card:nth-child(3),
  .tourism-card:nth-child(4) {
    grid-column: span 1;
  }
}

@media (min-width: 1024px) {
  .tourism-types::before {
    height: 800px;
    top: -200px;
  }

  .tourism-cards {
    gap: var(--space-6) var(--space-2);
    max-width: 730px;
    margin: 0 auto;
  }

  .tourism-card {
    min-height: 360px;
    padding: var(--space-5);
    justify-content: flex-start;
  }

  .tourism-card__title {
    font-size: 24px;
    line-height: 32px;
  }

  .tourism-card__backdrop {
    display: none;
  }

  .tourism-card__img {
    bottom: 0;
    top: auto;
    width: auto;
    height: 256px;
    margin-right: 0;
  }
}

/* ==========================================================================
   Extra services cards
   ========================================================================== */

.extra-services {
  position: relative;
}
.extra-services::before {
  content: "";
  position: absolute;
  top: -192px;
  left: 0;
  right: 0;
  height: 464px;
  background-image: url("../img/photos/section-bg-extra.webp");
  background-repeat: no-repeat, no-repeat;
  background-size:
    100% 100%,
    cover;
  background-position:
    top,
    top center;
  pointer-events: none;
  z-index: 0;
}

.extra-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.extra-card {
  overflow: hidden;
}

.extra-card__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--color-bg-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.extra-card__title {
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
  font-size: var(--fs-card-title);
  font-weight: 500;
  line-height: 26px;
}

.extra-card__text {
  font-size: var(--fs-small);
  color: var(--color-secondary);
  line-height: 20px;
}

@media (min-width: 576px) {
  .extra-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .extra-services::before {
    height: 804px;
    top: -350px;
  }

  .extra-cards {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-8) var(--space-2);
  }

  .extra-card {
    grid-column: span 2;
  }

  .extra-card:first-child,
  .extra-card:nth-child(2) {
    grid-column: span 3;
  }

  .extra-card__img {
    height: 240px;
  }

  .extra-card__title {
    font-size: 24px;
    line-height: 32px;
  }

  .service-card__text {
    font-size: var(--fs-body);
    line-height: 24px;
  }
}

/* ==========================================================================
   Cooperate CTA banner
   ========================================================================== */

.cooperate {
  background-image: url("../img/photos/cta-banner-bg.webp");
  background-size: cover;
  background-position: center;
  border-radius: 0;
  margin: var(--space-5) auto;
  padding: 0;
  max-width: 100%;
}

@media (min-width: 576px) {
  .cooperate {
    border-radius: var(--radius-md);
    margin: var(--space-5) var(--container-padding-mobile);
  }
}

@media (min-width: 1024px) {
  .cooperate {
    max-width: 1312px;
    margin: var(--space-12) var(--container-padding-mobile);
  }
}

@media (min-width: 1312px) {
  .cooperate {
    margin: var(--space-12) auto;
  }
}

.cooperate__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--space-10);
  min-height: 300px;
}

.cooperate__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  font-weight: 500;
}

.cooperate__text {
  font-size: var(--fs-small);
  max-width: 440px;
  margin-top: var(--space-4);
  margin-bottom: var(--space-6);
}

@media (min-width: 1024px) {
  .cooperate__inner {
    min-height: 360px;
  }

  .cooperate__title {
    font-size: 36px;
    line-height: 44px;
  }

  .cooperate__text {
    font-size: var(--fs-body);
    line-height: 24px;
  }
}

/* ==========================================================================
   Contacts
   ========================================================================== */

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

.contact-card {
  display: flex;
  background: var(--color-bg-1);
  backdrop-filter: blur(var(--blur-card));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.contact-card__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  flex: 1;
}

.contact-card__city {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.contact-card__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  font-size: var(--fs-small);
  line-height: 22px;
}

.contact-card__label {
  color: var(--color-secondary);
  font-weight: 500;
}

.contact-card__map-link {
  display: contents;
}

.contact-card__map {
  display: none;
  border-radius: var(--radius-sm);
}

@media (min-width: 768px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .contact-card__info {
    gap: var(--space-4);
    padding: var(--space-5);
  }

  .contact-card__city {
    font-size: 24px;
    line-height: 32px;
  }

  .contact-card__row {
    font-size: var(--fs-body);
    line-height: 24px;
  }

  .contact-card__map {
    display: block;
    width: 294px;
    height: 100%;
    min-height: 348px;
    object-fit: cover;
    padding: var(--space-2);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  padding-block: var(--space-8);
}

.footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 820px;
  background-image: url("../img/photos/footer-bg.webp");
  background-repeat: no-repeat, no-repeat;
  background-size:
    100% 100%,
    cover;
  background-position:
    bottom,
    bottom center;
  pointer-events: none;
  z-index: 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

.footer__logo {
  height: 49px;
  width: auto;
}

.footer__cookie {
  font-size: var(--fs-small);
  line-height: 20px;
  color: var(--color-secondary);
  max-width: 620px;
}

.footer__cookie a {
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .footer {
    padding: 64px 0;
  }

  .footer::before {
    height: 1085px;
  }

  .footer__inner {
    gap: var(--space-8);
  }

  .footer__cookie {
    font-size: var(--fs-body);
    line-height: 20px;
    max-width: 974px;
  }
}

/* ==========================================================================
   404 page
   ========================================================================== */

.page-404 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-404::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, var(--color-bg-0) 0%, rgba(239, 238, 246, 0) 45%),
    url("../img/photos/404-bg-full.webp");
  background-repeat: no-repeat, no-repeat;
  background-size:
    100% 100%,
    cover;
  background-position:
    top,
    bottom center;
  pointer-events: none;
  z-index: 0;
}

.page-404__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  max-width: 628px;
  text-align: center;
}

.page-404__code {
  font-size: 56px;
  line-height: 64px;
  font-weight: 600;
}

.page-404__text {
  font-size: var(--fs-body);
  line-height: 24px;
}

.page-404__cta {
  margin-top: var(--space-3);
}

@media (min-width: 1024px) {
  .page-404__inner {
    gap: var(--space-8);
  }

  .page-404__code {
    font-size: 80px;
    line-height: 88px;
  }

  .page-404__text {
    font-size: 20px;
    line-height: 28px;
  }
}

/* ==========================================================================
   Policy page
   ========================================================================== */

.policy {
  position: relative;
}

.policy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 460px;
  background-image: url("../img/photos/section-bg-advantages.webp");
  background-repeat: no-repeat, no-repeat;
  background-size:
    100% 100%,
    cover;
  background-position:
    top,
    top center;
  pointer-events: none;
  z-index: 0;
}

.policy__title {
  position: relative;
  z-index: 1;
  margin-top: var(--space-10);
  margin-bottom: var(--space-6);
  max-width: 320px;
  font-size: var(--fs-h2);
  line-height: var(--lh-h1);
  font-weight: 600;
}

@media (min-width: 1024px) {
  .policy::before {
    height: 730px;
  }

  .policy__title {
    margin-top: var(--space-12);
    margin-bottom: var(--space-8);
    max-width: none;
    font-size: var(--fs-h2-desktop);
    line-height: var(--lh-h1-desktop);
  }
}

.policy__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  max-width: 790px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  background: var(--color-bg-1);
  backdrop-filter: blur(var(--blur-card));
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.policy__address p {
  font-size: var(--fs-small);
  line-height: 24px;
  margin-bottom: var(--space-4);
}

.policy__address p:last-child {
  margin-bottom: 0;
}

.policy__block {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.policy__block-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}

.policy__block p {
  font-size: var(--fs-small);
  line-height: 24px;
}

@media (min-width: 1024px) {
  .policy__card {
    gap: var(--space-10);
    padding: var(--space-8);
  }

  .policy__address p,
  .policy__block p {
    font-size: var(--fs-body);
    line-height: 26px;
  }

  .policy__block-title {
    font-size: 24px;
    line-height: 32px;
  }
}
