/* ============================================
   APULEIUS — Page Layout & Section Styles
   ============================================ */

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0;
}

/* --- Page Background --- */
.page {
  min-height: 100vh;
  background: var(--c-bg);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid #EAECF0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header.is-scrolled {
  background: var(--c-white);
  border-bottom-color: #EAECF0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.header__left {
  position: relative;
}

.header__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.header__logo svg {
  display: block;
  width: 225px;
  height: 50px;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__cta {
  height: 56px;
}

.mobile-nav__close {
    display: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  background: var(--c-bg);
  overflow: hidden;
}

/* Vertical grid lines */
.hero__lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 54px;
  pointer-events: none;
  z-index: 0;
}

.hero__line {
  width: 1px;
  height: 100%;
  background: var(--c-border-light);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 130px; /* compensate for fixed header height */
  gap: 90px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Avatars cluster */
.hero__avatars {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__avatar-group {
  display: flex;
  align-items: flex-start;
}

.hero__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #F9FAFB;
  object-fit: cover;
}

.hero__avatar + .hero__avatar {
  margin-left: -4px;
}

.hero__avatar-count {
  font-family: var(--ff-body);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: var(--lh-h4);
  color: var(--c-heading);
}

.hero__avatar-text {
  max-width: 198px;
  font-family: var(--ff-body);
  font-size: var(--fs-body3);
  line-height: var(--lh-body3);
  color: var(--c-text);
  text-align: center;
}

.hero__title {
  text-align: center;
}

.hero__title .text-accent {
  color: var(--c-primary);
}

.hero__desc {
  max-width: 800px;
  text-align: center;
  font-size: var(--fs-body2);
  line-height: var(--lh-body2);
  color: var(--c-text);
}

/* Dashboard placeholder */
.hero__dashboard {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__dashboard-placeholder {
  text-align: center;
  font-size: 36px;
  color: var(--c-primary);
  opacity: 0.2;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats {
  background: var(--c-white);
}

.stats .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 48px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat__number {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-h2);
  color: var(--c-primary);
}

.stat__number--sub {
  font-family: var(--ff-heading);
  font-size: 48px;
  font-weight: 500;
  line-height: var(--lh-h2);
  color: var(--c-text);
}

.stat__label {
  width: 170px;
  font-size: var(--fs-body3);
  line-height: var(--lh-body3);
  color: var(--c-text);
}

/* ============================================
   WHO WE ARE
   ============================================ */
.who-we-are .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.who-we-are__title {
  width: 517px;
  flex-shrink: 0;
}

.who-we-are__text {
  max-width: 923px;
  font-size: var(--fs-body1);
  line-height: var(--lh-body1);
  color: var(--c-text);
}

.who-we-are__text strong {
  font-weight: 600;
}

.who-we-are__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 923px;
}

.who-we-are__pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.who-we-are__pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--c-white);
}

.who-we-are__pill-text {
  color: var(--c-heading);
  font-family: 'Wix Madefor Display', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 140%;
  white-space: nowrap;
}

/* ============================================
   OUR SERVICES
   ============================================ */
.services {
  background: var(--c-white);
}

.services .container {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.services__header {
  display: flex;
  justify-content: space-between;
}

.services__desc {
  max-width: 923px;
  flex-shrink: 1;
  font-size: var(--fs-body2);
  line-height: var(--lh-body2);
  color: var(--c-text);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.services__grid .service-card {
  justify-content: space-between;
}

/* ============================================
   WHY APULEIUS
   ============================================ */
.why .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.why__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.why__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--c-white);
  overflow: hidden;
  width: 100%;
}

.why__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  gap: 48px;
  padding: var(--card-p);
}

.why__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.why__text h3 {
  font-size: 48px;
}

.why__text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.why__text-intro {
  width: 100%;
  font-size: var(--fs-body2);
  line-height: var(--lh-body2);
  color: var(--c-text);
}

.why__list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  align-self: stretch;
}

.why__list-item svg {
  flex-shrink: 0;
  width: 20px;
  height: 21px;
}

.why__list-item p {
  font-size: var(--fs-body2);
  line-height: var(--lh-body2);
  color: var(--c-text);
}

.why__text-outro {
  width: 100%;
  font-size: var(--fs-body2);
  line-height: var(--lh-body2);
  color: var(--c-text);
}

.why__divider {
  width: 90%;
  height: 1px;
  background: var(--c-border-light);
}

.why__cta {
  width: 259px;
}

/* ============================================
   OUR APPROACH
   ============================================ */
.approach .container {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-bottom: var(--section-py);
}

.approach__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.approach__heading h2 {
  text-align: center;
}

.approach__subtitle {
  font-family: var(--ff-heading);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: var(--lh-h4);
  color: var(--c-heading);
  text-align: center;
}

.approach__desc {
  max-width: 923px;
  text-align: center;
  font-size: var(--fs-body2);
  line-height: var(--lh-body2);
  color: var(--c-text);
}

.approach__items {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}

.approach__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--c-white);
  min-width: 265px;
}

.approach__item svg {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

.approach__item h4 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
}

/* ============================================
   SCROLL-TO-TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--c-primary);
  cursor: pointer;
  z-index: 40;
  transition: background var(--transition);
}

.scroll-top:hover {
  background: var(--c-primary-bg-hover);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  background: var(--c-white);
  overflow: hidden;
}

.footer .container {
  padding-top: 90px;
  padding-bottom: 90px;
}

.footer__watermark {
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0.1;
  pointer-events: none;
}

/* 5-column layout */
.footer__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: var(--section-gap);
}

/* Col 1: Brand */
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

.footer__brand-logo svg {
  display: block;
  width: 382px;
  height: 80px;
}

.footer__brand-desc {
  max-width: 382px;
  font-size: var(--fs-body4);
  line-height: 120%;
  letter-spacing: -0.14px;
  color: var(--c-gray);
}

/* Col 2 & 3: Nav columns */
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer__nav a {
  font-size: var(--fs-body3);
  line-height: var(--lh-body3);
  color: var(--c-gray);
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--c-primary);
}

.footer__nav a.is-active {
  color: #00464B;
}

/* Col 4: Contact + Social */
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__contact-link {
  font-size: var(--fs-body3);
  line-height: var(--lh-body3);
  color: var(--c-heading);
  transition: color var(--transition);
}

.footer__contact-link:hover {
  color: var(--c-primary);
}

.footer__social {
  display: flex;
  gap: 8px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  transition: background var(--transition);
}

.footer__social-link:hover {
  background: var(--c-primary-hover);
}

.footer__social-link svg {
  width: 24px;
  height: 24px;
}

/* Col 5: CTA + Legal */
.footer__right {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fs-body4);
  line-height: var(--lh-body4);
  color: var(--c-gray);
}

.footer__legal a {
  color: var(--c-gray);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--c-primary);
}
/* ============================================
   HOW WE WORK (Swiper Slider)
   ============================================ */
.how-we-work {
  background: var(--c-primary-bg-hover); /* #EFF5FF */
}

.how-we-work .container {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
  overflow: hidden;
}

.how-we-work__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.how-we-work__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

/* Swiper overrides */
.how-we-work .swiper {
  width: 100%;
  overflow: visible;
}

.how-we-work .swiper-wrapper {
  align-items: flex-start;
}

/* Step Card */
.step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--card-gap);
}

.step-card__text {
  display: flex;
  flex-direction: column;
  gap: var(--gap-inner);
}

.step-card__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: var(--lh-h4);
  color: var(--c-heading);
}

.step-card__desc {
  font-family: var(--ff-body);
  font-size: var(--fs-body2);
  font-weight: 400;
  line-height: var(--lh-body2);
  color: var(--c-text);
}

/* ============================================
   CONTACT (Let's Talk)
   ============================================ */
.contact {
  background: var(--c-bg);
}

.contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--section-py);
  padding-bottom: var(--section-py);
}

.contact__card {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding: var(--card-p);
  border-radius: var(--radius-lg);
  background: var(--c-primary-bg-hover) url('../img/bg-form.png') center center no-repeat;
  background-size: cover;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.contact__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact__supporting {
  font-size: var(--fs-body2);
  line-height: var(--lh-body2);
  color: var(--c-text);
}

.contact__body {
  display: flex;
  align-items: flex-start;
  gap: var(--card-p);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 300px;
  flex: 1;
}

.contact__info h2 {
  margin-bottom: 20px;
}

.contact__phone,
.contact__email {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-h3);
  color: var(--c-heading);
  transition: color var(--transition);
}

.contact__phone:hover,
.contact__email:hover {
  color: var(--c-primary);
}

.contact__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
}

.contact__meta-label {
  font-family: var(--ff-body);
  font-size: var(--fs-body2);
  font-weight: 600;
  line-height: var(--lh-body2);
  color: var(--c-heading);
}

.contact__meta-value {
  font-family: var(--ff-body);
  font-size: var(--fs-body2);
  font-weight: 400;
  line-height: var(--lh-body2);
  color: var(--c-text);
}

.contact__payment {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1.5;
  min-width: 300px;
}

.contact__payment-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__payment-title {
  font-family: var(--ff-body);
  font-size: var(--fs-body2);
  font-weight: 600;
  line-height: var(--lh-body2);
  color: var(--c-heading);
}

.contact__payment-text {
  font-family: var(--ff-body);
  font-size: var(--fs-body3);
  font-weight: 400;
  line-height: var(--lh-body3);
  color: var(--c-text);
}

.contact__payment-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact__payment-step {
  font-family: var(--ff-body);
  font-size: var(--fs-body3);
  font-weight: 400;
  line-height: var(--lh-body3);
  color: var(--c-text);
}

.contact__payment-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
}

.contact__payment-methods {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contact__payment-method {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact__payment-method span {
  font-family: var(--ff-body);
  font-size: var(--fs-body3);
  font-weight: 400;
  line-height: var(--lh-body3);
  color: var(--c-text);
}

/* Contact Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  padding: var(--card-gap);
  border-radius: var(--radius-md);
  background: var(--c-bg);
  position: relative;
  z-index: 1;
}

.contact__form-fields {
  display: flex;
  gap: var(--card-gap);
  align-items: flex-start;
}

.contact__form-fields .form-group {
  flex: 1;
}

.contact__form-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: var(--card-gap);
}

.contact__form-btn {
  flex-shrink: 0;
  min-width: 280px;
}

.contact__disclaimer {
  font-family: var(--ff-body);
  font-size: var(--fs-body4);
  font-weight: 400;
  line-height: var(--lh-body4);
  letter-spacing: var(--ls-body4);
  color: var(--c-placeholder);
  max-width: 400px;
}

/* ============================================
   UTILITY CLASSES (replacing inline styles)
   ============================================ */

/* Stats: label width variants */
.stat__label--narrow {
  width: 139px;
}

.stat__label--wide {
  width: 175px;
}

/* Why section: reversed row (text left, image right) */
.why__text--wide {
  width: 728px;
  flex-shrink: 0;
}

/* Contact payment: Deutsche Bank icon wrapper */
.payment-icon-wrap {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.payment-icon-wrap__bg {
  position: absolute;
  top: 0;
  left: 0;
}

.payment-icon-wrap__logo {
  position: absolute;
  top: 7px;
  left: 7px;
}

/* Mobile nav: hidden by default everywhere, shown only on mobile via media query */

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate-stagger].is-visible > *:nth-child(1) { transition-delay: 0s;    opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(2) { transition-delay: 0.08s; opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(4) { transition-delay: 0.24s; opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(5) { transition-delay: 0.32s; opacity: 1; transform: none; }
[data-animate-stagger].is-visible > *:nth-child(6) { transition-delay: 0.40s; opacity: 1; transform: none; }

/* Mobile nav slide-in from right */
.mobile-nav {
  display: none;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Mobile nav items appear with stagger when open */
.mobile-nav.is-open .mobile-nav__body > * {
  animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.mobile-nav.is-open .mobile-nav__body > *:nth-child(1) { animation-delay: 0.05s; }
.mobile-nav.is-open .mobile-nav__body > *:nth-child(2) { animation-delay: 0.10s; }
.mobile-nav.is-open .mobile-nav__body > *:nth-child(3) { animation-delay: 0.15s; }
.mobile-nav.is-open .mobile-nav__body > *:nth-child(4) { animation-delay: 0.20s; }
.mobile-nav.is-open .mobile-nav__body > *:nth-child(5) { animation-delay: 0.25s; }
.mobile-nav.is-open .mobile-nav__body > *:nth-child(6) { animation-delay: 0.30s; }
.mobile-nav.is-open .mobile-nav__body > *:nth-child(7) { animation-delay: 0.35s; }
.mobile-nav.is-open .mobile-nav__body > *:nth-child(8) { animation-delay: 0.40s; }

/* ============================================
   ADAPTIVE — MOBILE (≤ 992px)
   ============================================ */

/* ============================================
   DESKTOP-ONLY: burger hidden
   ============================================ */
.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

/* ============================================
   ADAPTIVE — MOBILE (≤ 992px)
   ============================================ */
@media (max-width: 992px) {

  .container {
    padding: 0 20px;
  }

  /* ============================================
     HEADER
     ============================================ */

  /* Tighter header on mobile */
  .header__inner {
    height: 62px;
    padding: 0 14px;
  }

  /* Hero must compensate for smaller header on mobile */
  .hero__content {
    padding-top: 62px;
  }

  /* Hide desktop Services nav-pill */
  .header__left {
    display: none;
  }

  /* Burger visible by default, close hidden */
  .header__burger {
    display: flex;
  }

  .mobile-nav__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
  }

  /* When menu open: swap burger ↔ close */
  body.nav-open .header__burger {
    display: none;
  }

  body.nav-open .mobile-nav__close {
    display: flex;
  }

  /* Shrink gap in right cluster */
  .header__right {
    gap: 8px;
  }

  /* Hide lang dropdown arrow on mobile */
  .lang-selector__arrow {
    display: none;
  }

  /* Lang selector — compact pill without arrow */
  .lang-selector {
    padding: 6px 18px;
  }

  /* CTA button — compact (Figma: 84x32px, font 8px) */
  .header__cta {
    width: 84px;
    height: 32px;
    padding: 6px;
    font-size: 8px;
    border-radius: 4px;
    white-space: nowrap;
  }

  /* On mobile: logo back in normal flow (left side) */
  .header__logo {
    position: static;
    transform: none;
    order: -1; /* logo → left, before header__right */
  }

  /* Smaller logo */
  .header__logo svg {
    width: 134px;
    height: 30px;
  }

  /* ============================================
     HERO
     ============================================ */

  /* Hero lines: 6 вертикальных линий на мобайл */
  .hero__lines {
    display: flex;
    padding: 0 14px;
    justify-content: space-between;
  }

  /* Скрываем лишние линии, оставляем 6 */
  .hero__line:nth-child(n+7) {
    display: none;
  }

  .hero__content {
    gap: 40px;
    align-items: center;
    text-align: center;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero__text {
    align-items: center;
    gap: 24px;
  }

  .hero__avatars {
    justify-content: center;
  }

  .hero__title {
    text-align: center;
  }

  .hero__desc {
    text-align: center;
    font-size: var(--fs-body2);
  }

  .hero__dashboard {
    width: 100%;
    height: auto;
  }

  /* ============================================
     STATS
     ============================================ */
  .stats .container {
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .stat {
    width: calc(50% - 7px);
    flex-shrink: 0;
  }

  .stat__number {
    font-size: var(--fs-h2);
  }

  .stat__label--narrow,
  .stat__label--wide {
    width: auto;
  }

 /* ============================================
     WHO WE ARE
     ============================================ */
  .who-we-are .container {
    flex-direction: column;
    gap: 24px;
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
  }

  .who-we-are__title {
    width: auto;
    font-size: var(--fs-h2);
  }

  .who-we-are__text {
    max-width: 100%;
    font-size: var(--fs-body2);
  }

  .who-we-are__body {
    max-width: 100%;
  }

  .who-we-are__pills {
    gap: 10px;
  }

  .who-we-are__pill-text {
    white-space: normal;
    font-size: 14px;
  }

  /* ============================================
     SERVICES
     ============================================ */
  .services .container {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
  }

  .services__header {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }

  .services__desc {
    max-width: 100%;
  }

  /* 1 column grid on mobile */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Mobile service card matches Figma: 14px padding, stacked layout */
  .services__grid .service-card {
    padding: 14px;
    gap: 24px;
  }

  .service-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .service-card__name {
    align-items: center;
    gap: 18px;
  }

  .service-card__icon {
    width: 40px;
    height: 40px;
    padding: 8px;
  }

  .service-card__icon svg {
    width: 24px;
    height: 24px;
  }

  .service-card__title {
    font-size: var(--fs-h4);
  }

  .service-card__desc {
    font-size: 20px; /* Figma mobile: 20px */
  }

  /* Full-width "Learn more" button on mobile */
  .service-card__btn {
    width: 100%;
    padding: 18px;
    text-align: center;
    font-size: var(--fs-body4);
  }

  /* ============================================
     WHY APULEIUS
     ============================================ */
  /* ============================================
     WHY APULEIUS — мобайл (Figma 375px)
     ============================================ */
  .why .container {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
    gap: var(--section-gap);
  }

  .why__heading {
    align-items: center;
  }

  .why__heading h2 {
    font-size: var(--fs-h2);
    text-align: center;
  }

  /* Карточка — только скруглённый контейнер, без паддинга */
  .why__card {
    border-radius: 14px;
    padding: 0;
  }

  /* Каждый ряд — колонка. Фото всегда первое */
  .why__row {
    display: flex;
    flex-direction: column;
    gap: var(--section-gap);
    padding: 24px;
  }

  /* Row reversed — column-reverse: фото (последнее в DOM) идёт наверх */
  .why__row--reversed {
    flex-direction: column-reverse;
  }

  /* Фото: фиксированный размер из Figma 300×164px, центрируется */
  .why__image {
    width: 300px;
    height: 164px;
    flex-shrink: 0;
    align-self: center;
    border-radius: 8px;
    aspect-ratio: auto;
  }

  .why__text--wide,
  .why__text {
    width: 100%;
    flex-shrink: 1;
  }

  .why__text h3 {
    font-size: var(--fs-h3); /* 24px */
  }

  /* Кнопка на всю ширину */
  .why__cta {
    width: 100%;
    align-self: stretch;
    text-align: center;
  }

  /* ============================================
     OUR APPROACH — мобайл (Figma 375px)
     ============================================ */
  .approach .container {
    padding-bottom: var(--section-py);
    gap: var(--section-gap);
  }

  /* Заголовочная часть — текст по центру */
  .approach__heading h2 {
    font-size: var(--fs-h2); /* 28px */
    text-align: center;
  }

  .approach__subtitle {
    font-size: var(--fs-h4); /* 20px */
    text-align: center;
  }

  .approach__desc {
    max-width: 100%;
    font-size: var(--fs-body2);
    text-align: center;
  }

  /* Items — вертикальный список */
  .approach__items {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  /* Каждый item — белый блок 8px padding, icon 20px, текст 20px */
  .approach__item {
    padding: 8px;
    gap: 8px;
    border-radius: 8px;
    min-width: auto;
    width: 100%;
  }

  .approach__item svg {
    width: 20px;
    height: 20px;
  }

  .approach__item h4 {
    font-size: 20px; /* Figma: 20px */
    line-height: 120%;
  }

  /* ============================================
     HOW WE WORK
     ============================================ */
  /* ============================================
     HOW WE WORK — мобайл (Figma 375px)
     ============================================ */
  .how-we-work .container {
    padding-top: 80px;
    padding-bottom: 80px;
    gap: var(--section-gap);
  }

  /* Header: заголовок слева, nav справа — на одной строке */
  .how-we-work__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
  }

  .how-we-work__heading {
    font-size: var(--fs-h2); /* 28px */
  }

  /* Step card — вертикальный layout */
  .step-card__badge {
    padding: 11px 13px;
    border-radius: 4px;
    background: var(--c-white);
    font-size: 20px;
  }

  .step-card__title {
    font-size: 20px;
    line-height: 120%;
  }

  .step-card__desc {
    font-size: var(--fs-body2);
  }

  /* Show 1 slide on mobile */
  .how-we-work .swiper {
    overflow: visible;
  }

  /* ============================================
     CONTACT (Let's Talk)
     ============================================ */

  .contact {
    padding: 40px 0;
  }
  .contact .container {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* Карточка: 24px padding, border-radius 14px, #EFF5FF */
  .contact__card {
    background: var(--c-primary-bg-hover) url('../img/bg-form-mobile.png') center center no-repeat;
    background-size: cover;
    flex-direction: column;
    padding: 24px;
    border-radius: 14px;
    gap: 24px;
  }

  /* Headline: h2 + supporting text — column, gap 14px */
  .contact__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 28px;
  }

  .contact__header h2 {
    font-size: 28px;
    line-height: 110%;
  }

  .contact__supporting {
    width: 100%;
    font-size: var(--fs-body2);
  }

  /* Body: info + payment + form в колонку */
  .contact__body {
    flex-direction: column;
    gap: 14px;
  }

  /* Info block: gap 8px */
  .contact__info {
    gap: 8px;
    min-width: auto;
    width: 100%;
  }

  /* Phone/Email: 24px */
  .contact__phone,
  .contact__email {
    font-size: 24px;
    line-height: 110%;
  }

  /* Meta labels: 18px/600 */
  .contact__meta-label {
    font-size: 18px;
    font-weight: 600;
    line-height: 140%;
  }

  .contact__meta-value {
    font-size: var(--fs-body2);
    line-height: 140%;
  }

  .contact__meta {
    flex-direction: column;
    gap: 2px;
  }

  /* Payment block */
  .contact__payment {
    flex-direction: column;
    gap: 8px;
    min-width: auto;
    width: 100%;
  }

  .contact__payment-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 140%;
  }

  .contact__payment-text {
    font-size: 14px;
    line-height: 140%;
  }

  .contact__payment-steps {
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .contact__payment-step {
    font-size: 14px;
    line-height: 140%;
  }

  .contact__payment-methods {
    flex-wrap: wrap;
    gap: 2px 8px;
    align-items: flex-start;
    align-content: flex-start;
  }

  /* Form: padding 14px, bg #F5F5F5 */
  .contact__form {
    padding: 14px;
    border-radius: 8px;
    gap: 14px;
    background: #F5F5F5;
  }

  /* Fields: column, each field full width */
  .contact__form-fields {
    flex-direction: column;
    gap: 8px;
  }

  .contact__form-fields .form-group {
    width: 100%;
  }

  /* Footer: column, button full width */
  .contact__form-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .contact__form-btn {
    width: 100%;
    text-align: center;
    min-width: auto;
  }

  .contact__disclaimer {
    max-width: 100%;
    font-size: 12px;
    line-height: 120%;
    letter-spacing: -0.12px;
  }

  /* ============================================
     FOOTER — мобайл (Figma 375px)
     ============================================ */
  .footer .container {
    padding-top: 32px;
    padding-bottom: 32px;
    padding-left: 14px;
    padding-right: 14px;
  }

  /* flex-wrap: allows 2-column nav + full-width rows */
  .footer__inner {
    flex-wrap: wrap;
    gap: 14px;
  }

  /* Row 1: Logo + описание — full width */
  .footer__brand {
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
  }

  .footer__brand-logo svg {
    width: 227px;
    height: 48px;
  }

  .footer__brand-desc {
    max-width: 100%;
  }

  /* Row 2: Две nav-колонки рядом (~167px + 166px) */
  .footer__nav {
    flex: 1;
    min-width: 0;
  }

  /* Row 3: Contacts — full width */
  .footer__contact {
    width: 100%;
    flex-shrink: 0;
  }

  .footer__social-link {
    width: 30px;
    height: 30px;
  }

  .footer__social-link svg {
    width: 18px;
    height: 18px;
  }

  /* Row 4: CTA + legal — full width, centered */
  .footer__right {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
  }

  .footer__right .btn-primary {
    width: 100%;
    text-align: center;
  }

  .footer__watermark {
    display: none;
  }

  .footer__legal {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }


  /* ============================================
     MOBILE NAV OVERLAY
     ============================================ */
  .mobile-nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;  /* header stays on top at 999 */
    background: var(--c-white);
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-nav.is-open {
    display: flex;
    transform: translateX(0);
  }



  /* Body: lang + items */
  .mobile-nav__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
  }

  /* Language selector row */
  .mobile-nav__lang {
    display: flex;
    padding: 8px;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    border: 1px solid var(--c-border-light);
    background: var(--c-white);
  }

  .mobile-nav__lang-btn {
    display: flex;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    border-radius: 2px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--ff-body);
    font-size: var(--fs-body3);
    font-weight: 400;
    line-height: 140%;
    color: var(--c-dark);
  }

  .mobile-nav__lang-btn.is-active {
    background: var(--c-primary-bg);
  }

  /* Nav item */
  .mobile-nav__item {
    display: flex;
    padding: 8px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-radius: 8px;
    background: var(--c-primary-bg);
    gap: 8px;
  }

  .mobile-nav__item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    min-width: 0;
  }

  .mobile-nav__item-icon {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 10px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    background: var(--c-primary);
    flex-shrink: 0;
  }

  .mobile-nav__item-title {
    font-family: var(--ff-heading);
    font-size: 20px;
    font-weight: 500;
    line-height: 120%;
    color: var(--c-heading);
  }

  .mobile-nav__item-arrow {
    display: flex;
    width: 30px;
    height: 30px;
    padding: 6px;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border: 1px solid var(--c-primary);
    background: var(--c-white);
    flex-shrink: 0;
  }

  /* ============================================
     NAV DROPDOWN — hidden on mobile
     ============================================ */
  .nav-services__dropdown,
  .nav-services__dropdown.is-open {
    display: none;
  }
}