/* ============================================================
   USA SILK WAY — Main Stylesheet
   Ported from Next.js + SCSS Modules
   ============================================================ */

/* ── CUSTOM PROPERTIES ──────────────────────────────────── */
:root {
  --color-main:   #1F2740;
  --color-yellow: #F2B90C;
  --color-white:  #FFFFFF;
  --color-dark:   #161616;
  --color-bg:     #fafbfc;

  --bp-mobile:  649px;
  --bp-tablet:  1199px;
  --bp-laptop:  1599px;
}

/* ── RESET / BASE ───────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: 'SF Pro Text', 'SF Pro Icons', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  color-scheme: dark;
  min-height: 100vh;
  background-color: var(--color-main);
  scroll-behavior: smooth;
}

body {
  color: white;
  background-color: var(--color-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

img, video {
  display: block;
  max-width: 100%;
}

/* ── LAYOUT UTILS ───────────────────────────────────────── */
.container-fluid {
  width: 100vw;
  display: flex;
  height: fit-content;
  align-items: center;
  flex-direction: column;
}

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

.whiteBackground {
  background-color: white;
}

/* ── BUTTON ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background-color: var(--color-yellow);
  color: var(--color-main);
  font-weight: 500;
  font-size: 16px;
  border-radius: 4px;
  padding: 16px 24px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-align: center;
}
.btn:hover {
  opacity: 0.88;
}

@media (max-width: 649px) {
  .btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ── HEADER ─────────────────────────────────────────────── */
.header {
  background-color: var(--color-main);
}
@media (max-width: 1199px) {
  .header { display: none; }
}

.header__wrap {
  height: 125px;
  min-height: 125px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.header__contacts {
  display: flex;
  gap: 45px;
}

.header__link {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header__details {
  display: flex;
  flex-direction: column;
}
.header__details span {
  font-weight: 300;
  font-size: 12px;
}
.header__details p {
  font-weight: 400;
  font-size: 13px;
}

/* ── MOBILE MENU BAR ─────────────────────────────────────── */
.menu {
  position: fixed;
  z-index: 1000;
  background-color: var(--color-main);
  display: none;
  padding: 0 20px;
  height: 56px;
  top: 0;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  width: 100%;
}
@media (max-width: 1199px) {
  .menu { display: flex; }
}

.menu__toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

.menu__logo {
  width: 100px;
  height: auto;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 2000;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 500ms ease;
  overflow: hidden;
  box-shadow: -5px 2px 20px rgba(0,0,0,0.06);
}
.sidebar.is-open {
  transform: translateX(0);
}

.sidebar__body {
  background-color: white;
  height: 100%;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar__nav ul {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}
.sidebar__nav li {
  font-weight: 400;
  font-size: 16px;
  color: var(--color-main);
  text-transform: uppercase;
}

.sidebar__btn {
  width: 100%;
  display: block;
}

.sidebar__contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar__link {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sidebar__details span {
  color: var(--color-main);
  font-weight: 300;
  font-size: 12px;
  display: block;
}
.sidebar__details p {
  color: var(--color-main);
  font-weight: 400;
  font-size: 13px;
}

/* ── SUBHEADER / NAV BAR ─────────────────────────────────── */
.subheader {
  z-index: 100;
  background: rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: background 0.3s, position 0.3s;
  width: 100%;
}
.subheader.is-sticky {
  position: fixed;
  top: 0;
  background: var(--color-main);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 101;
}
@media (max-width: 1199px) {
  .subheader { display: none; }
}

.subheader__wrap {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subheader__nav ul {
  display: flex;
  align-items: center;
  column-gap: 80px;
  line-height: 66px;
}
.subheader__nav li {
  border-bottom: 3px solid transparent;
  position: relative;
}
.subheader__nav li a {
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}
.subheader__nav li:not(:last-child)::after {
  content: '';
  height: 30%;
  width: 1px;
  position: absolute;
  right: -40px;
  top: 25px;
  background-color: white;
}
.subheader__nav li:hover,
.subheader__nav li.current-menu-item {
  border-bottom: 3px solid var(--color-yellow);
}

.subheader__right {
  display: flex;
  align-items: center;
  gap: 50px;
}

/* ── HERO SECTION ────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero__video--desktop {
  position: absolute;
  top: 125px;
  left: 0;
  width: 100vw;
  height: calc(100% - 125px);
  object-fit: cover;
  max-height: 710px;
  z-index: 1;
}
.hero__overlay {
  position: absolute;
  width: 100vw;
  top: 125px;
  height: calc(100% - 125px);
  background:
    linear-gradient(0deg, rgba(31,39,64,.75), rgba(31,39,64,.75)),
    linear-gradient(90deg, rgba(31,39,64,.85) 0%, rgba(31,39,64,.67) 53%, rgba(31,39,64,0) 100%);
  z-index: 9;
  max-height: 710px;
}

.hero__content {
  position: relative;
  z-index: 100;
  padding: 120px 0 212px;
}

@media (min-width: 1200px) {
  .hero .hero__content.container {
    width: 50%;
    max-width: 600px;
    margin-left: max(20px, calc(50vw - 600px));
    margin-right: auto;
  }
}

.hero__video--mobile {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0; left: 0;
  object-fit: cover;
  z-index: -1;
}

.hero__mobile-overlay {
  display: none;
  position: absolute;
  width: 100vw;
  top: 0; left: 0;
  height: 100%;
  background:
    linear-gradient(0deg, rgba(31,39,64,.75), rgba(31,39,64,.75)),
    linear-gradient(90deg, rgba(31,39,64,.85) 0%, rgba(31,39,64,.67) 53%, rgba(31,39,64,0) 100%);
  z-index: -1;
}

.hero__tagline {
  font-weight: 400;
  font-size: 14px;
  color: var(--color-yellow);
  display: block;
  margin-bottom: 8px;
}

.hero__heading {
  font-weight: 700;
  font-size: 55px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero__description {
  font-weight: 300;
  font-size: 16px;
  max-width: 600px;
  line-height: 1.525;
  margin-bottom: 20px;
}

@media (min-width: 650px) and (max-width: 1199px) {
  .hero__video--desktop { top: 56px; height: 50%; }
  .hero__overlay { top: 56px; height: 50%; }
  .hero__content { padding: 100px 20px 54px; }
}
@media (max-width: 649px) {
  .hero__video--desktop { display: none; }
  .hero__overlay { display: none; }
  .hero__video--mobile { display: block; }
  .hero__mobile-overlay { display: block; }
  .hero__content { padding: 100px 20px 54px; position: relative; }
  .hero__tagline { font-size: 12px; }
  .hero__heading { font-size: 24px; margin-bottom: 12px; }
  .hero__description { font-size: 12px; }
}

/* ── SERVICES SECTION ────────────────────────────────────── */
.services {
  background-color: white;
  padding: 120px 0;
}
@media (max-width: 1199px) {
  .services { padding: 24px 0; }
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 70px;
  margin-bottom: 112px;
}
@media (min-width: 650px) and (max-width: 1199px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 649px) {
  .services__grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 65px;
  }
}

.services__title h2 {
  color: var(--color-main);
  font-weight: 700;
  font-size: 42px;
  margin-bottom: 8px;
}
.services__title span {
  color: var(--color-main);
  font-weight: 300;
  font-size: 18px;
}
@media (max-width: 649px) {
  .services__title h2 { font-size: 24px; margin-bottom: 0; }
  .services__title span { font-size: 16px; }
}

.services__item {
  display: flex;
  gap: 20px;
}
@media (max-width: 649px) {
  .services__item { gap: 10px; }
}

.services__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border: 1px solid #D8D8D8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services__icon svg {
  width: 42px;
  height: 42px;
  display: block;
}

.services__details {
  max-width: 245px;
  border-left: 1px solid #D8D8D8;
  padding-left: 20px;
}
@media (max-width: 649px) {
  .services__details { padding-left: 10px; }
}

.services__details h4 {
  font-weight: 600;
  font-size: 22px;
  color: var(--color-main);
  margin-bottom: 4px;
}
.services__details p {
  font-weight: 300;
  font-size: 14px;
  color: var(--color-main);
}
@media (max-width: 649px) {
  .services__details h4 { font-size: 16px; }
  .services__details p  { font-size: 12px; }
}

.services__info {
  margin-bottom: 50px;
}
.services__info h2 {
  font-weight: 700;
  font-size: 36px;
  color: var(--color-main);
  max-width: 900px;
  margin-bottom: 22px;
}
.services__info p,
.services__info-text p {
  font-weight: 300;
  font-size: 18px;
  color: var(--color-main);
}
@media (max-width: 649px) {
  .services__info { margin-bottom: 25px; }
  .services__info h2 { font-size: 24px; max-width: 350px; }
  .services__info p,
  .services__info-text p { font-size: 12px; }
}

/* ── TESTIMONIALS SECTION ────────────────────────────────── */
.testimonials {
  padding: 80px 0 0;
}
@media (max-width: 1199px) {
  .testimonials { padding: 24px 20px 0; }
}

.testimonials__slider-wrap {
  overflow: hidden;
  position: relative;
  margin-bottom: 62px;
}
@media (max-width: 649px) {
  .testimonials__slider-wrap { margin-bottom: 16px; }
}

.testimonials__slide {
  display: flex;
  gap: 112px;
  align-items: center;
}
@media (max-width: 649px) {
  .testimonials__slide { flex-direction: column; gap: 50px; }
}
@media (min-width: 650px) and (max-width: 1199px) {
  .testimonials__slide { gap: 50px; }
}

.testimonials__photo {
  width: 100%;
  height: auto;
  max-width: 420px;
  flex-shrink: 0;
}

.testimonials__text-wrap {
  flex: 1;
}

.testimonials__text {
  position: relative;
  margin-bottom: 54px;
}
@media (max-width: 649px) {
  .testimonials__text { margin-bottom: 24px; }
}

.testimonials__text p {
  font-weight: 300;
  font-size: 20px;
  line-height: 1.5;
}
@media (max-width: 649px) {
  .testimonials__text p { font-size: 14px; }
}

.testimonials__quotes {
  position: absolute;
  left: -25px;
  top: -15px;
}
@media (max-width: 649px) {
  .testimonials__quotes { left: 0; }
}

.testimonials__arrows {
  display: flex;
  gap: 10px;
}
.testimonials__prev,
.testimonials__next {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}
.testimonials__prev:hover circle,
.testimonials__next:hover circle {
  fill: var(--color-yellow);
  fill-opacity: 1;
}

.testimonials__side-image {
  max-width: calc(100% - 420px - 112px);
  margin-left: auto;
  margin-bottom: 110px;
}
.testimonials__side-image img {
  width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 650px) and (max-width: 1199px) {
  .testimonials__side-image {
    max-width: calc(100% - 420px - 50px);
  }
}
@media (max-width: 649px) {
  .testimonials__side-image {
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 64px;
  }
}
@media (max-width: 1199px) {
  .testimonials__side-image { margin-bottom: 64px; }
}

/* ── GALLERY SECTION ─────────────────────────────────────── */
.gallery {
  background-color: var(--color-white);
  color: var(--color-main);
  padding: 96px 0 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-yellow) 0%, var(--color-main) 100%);
}

.gallery__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.gallery__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  width: 100%;
}

.gallery__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 12px;
}

.gallery__heading {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--color-main);
}

.gallery__description {
  font-weight: 300;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.6;
  color: rgba(31, 39, 64, 0.75);
}

.gallery__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  margin: 0 auto;
}

.gallery__card {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--color-main);
  box-shadow: 0 4px 16px rgba(31, 39, 64, 0.08);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery__card:hover {
  box-shadow: 0 8px 24px rgba(31, 39, 64, 0.14);
  transform: translateY(-2px);
}

.gallery__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.gallery__lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery__lightbox[hidden] {
  display: none;
}

.gallery__lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 39, 64, 0.88);
}

.gallery__lightbox-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1100px);
  max-height: 90vh;
  padding: 56px 72px;
}

.gallery__lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 112px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.gallery__lightbox-close,
.gallery__lightbox-prev,
.gallery__lightbox-next {
  position: absolute;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

.gallery__lightbox-close {
  top: 16px;
  right: 16px;
}

.gallery__lightbox-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery__lightbox-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.gallery__lightbox-prev:hover circle,
.gallery__lightbox-next:hover circle {
  fill: var(--color-yellow);
  fill-opacity: 1;
}

@media (max-width: 1199px) {
  .gallery {
    padding: 64px 0 72px;
  }

  .gallery__header {
    margin-bottom: 40px;
  }
}

@media (max-width: 649px) {
  .gallery {
    padding: 48px 0 56px;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .gallery__card {
    border-radius: 8px;
    aspect-ratio: 1 / 1;
  }

  .gallery__lightbox-dialog {
    width: 100%;
    padding: 48px 16px;
  }

  .gallery__lightbox-prev {
    left: 4px;
  }

  .gallery__lightbox-next {
    right: 4px;
  }

  .gallery__lightbox-close {
    top: 8px;
    right: 8px;
  }
}

/* ── CONTACTS SECTION ────────────────────────────────────── */
.contacts {
  padding: 125px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: var(--color-white);
}

.contacts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-yellow) 0%, var(--color-main) 100%);
}
@media (max-width: 1199px) {
  .contacts { padding: 65px 20px; }
}

.contacts__map {
  position: absolute;
  top: 0;
  width: 100%;
  max-width: 1430px;
  left: 0;
  opacity: 0.6;
  pointer-events: none;
}

.contacts__wrapper {
  position: relative;
  margin-bottom: 75px;
  width: 100%;
}
@media (max-width: 649px) {
  .contacts__wrapper { margin-bottom: 35px; }
}

.contacts__intro {
  max-width: 720px;
  margin-bottom: 40px;
}

.contacts__title {
  color: var(--color-main);
  font-weight: 700;
  font-size: 42px;
  margin-bottom: 12px;
}

.contacts__description {
  color: var(--color-main);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
}

@media (max-width: 649px) {
  .contacts__title { font-size: 24px; }
  .contacts__description { font-size: 14px; }
  .contacts__intro { margin-bottom: 28px; }
}

.contacts__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contacts__info-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  border-radius: 12px;
  border: 1px solid rgba(31, 39, 64, 0.1);
  background: var(--color-bg);
  color: var(--color-main);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.contacts__info-card:hover {
  border-color: var(--color-yellow);
  box-shadow: 0 8px 32px rgba(31, 39, 64, 0.1);
  transform: translateY(-2px);
}

.contacts__info-icon {
  width: 72px;
  height: 72px;
  border: 1px solid #D8D8D8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--color-white);
}

.contacts__info-icon svg {
  width: 44px;
  height: 44px;
}

.contacts__info-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(31, 39, 64, 0.55);
  margin-bottom: 8px;
}

.contacts__info-value {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-main);
}

@media (max-width: 1199px) {
  .contacts__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 649px) {
  .contacts__info-card {
    padding: 20px;
  }

  .contacts__info-value {
    font-size: 14px;
  }
}

.contacts__card {
  color: var(--color-main);
  background: var(--color-bg);
  border: 2.76px solid #ffffff;
  box-shadow: 0 0 117px rgba(0,0,0,.15);
  border-radius: 9px;
  padding: 25px 50px;
  max-width: 650px;
  width: 100%;
  z-index: 1;
  position: relative;
}
@media (max-width: 649px) {
  .contacts__card { padding: 16px 20px; }
}

.contacts__card h2 {
  font-weight: 700;
  font-size: 42px;
  margin-bottom: 30px;
  color: var(--color-main);
}
@media (max-width: 649px) {
  .contacts__card h2 { font-size: 24px; }
}

/* CF7 form styling */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wpcf7-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

/* CF7 wraps fields in <p> — let inputs participate in the grid */
.wpcf7-form .form-row > p {
  display: contents;
  margin: 0;
}

.wpcf7-form .form-row br {
  display: none;
}

.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}

@media (max-width: 649px) {
  .wpcf7-form {
    gap: 12px;
  }

  .wpcf7-form .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  color: var(--color-main);
  font-weight: 500;
  font-size: 15px;
  width: 100%;
  display: block;
  border-radius: 3px;
  border: 1px solid rgba(31,39,64,.1);
  padding: 12px 16px;
  background: transparent;
  height: 46px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.wpcf7-form textarea {
  height: 120px;
  resize: vertical;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-yellow);
}

.wpcf7-form input[type="submit"] {
  align-self: flex-end;
  background-color: var(--color-yellow);
  color: var(--color-main);
  font-weight: 500;
  font-size: 16px;
  border-radius: 4px;
  padding: 12px 42px;
  border: none;
  cursor: pointer;
  height: auto;
  width: auto;
}
.wpcf7-form input[type="submit"]:hover {
  opacity: 0.88;
}

.wpcf7-form .wpcf7-acceptance {
  margin-top: 4px;
}

.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.wpcf7-form .wpcf7-acceptance label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(31, 39, 64, 0.85);
}

.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-yellow);
}

.wpcf7-form .wpcf7-acceptance a {
  color: var(--color-main);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── FORM PAGE / LEGAL PAGE ──────────────────────────────── */
.form-page,
.legal-page {
  background-color: var(--color-white);
  color: var(--color-main);
  padding: 64px 0 96px;
}

.form-page__card {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px;
  border-radius: 12px;
  background: var(--color-bg);
  border: 1px solid rgba(31, 39, 64, 0.08);
}

.form-page__intro {
  margin-bottom: 28px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(31, 39, 64, 0.8);
}

.form-page__intro p + p {
  margin-top: 12px;
}

.form-page__notice {
  color: rgba(31, 39, 64, 0.65);
  font-size: 14px;
}

.legal-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.legal-page__breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.legal-page__breadcrumb a:hover {
  color: var(--color-yellow);
}

.legal-page__content {
  max-width: 860px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(31, 39, 64, 0.85);
}

.legal-page__content h2,
.legal-page__content h3 {
  color: var(--color-main);
  margin: 32px 0 12px;
}

.legal-page__content p + p,
.legal-page__content ul,
.legal-page__content ol {
  margin-top: 16px;
}

.legal-page__content ul,
.legal-page__content ol {
  padding-left: 1.25rem;
}

@media (max-width: 649px) {
  .form-page,
  .legal-page {
    padding: 40px 0 72px;
  }

  .form-page__card {
    padding: 24px 20px;
  }
}

/* ── PAGE HERO (inner pages) ─────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-main);
  padding: 140px 0 80px;
}

.page-hero.container-fluid {
  align-items: flex-start;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 39, 64, 0.92) 0%, rgba(31, 39, 64, 0.75) 55%, rgba(31, 39, 64, 0.45) 100%),
    var(--page-hero-bg, none) center / cover no-repeat;
  z-index: 0;
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  text-align: left;
}

.page-hero .page-hero__content.container {
  margin-left: max(20px, calc(50vw - 600px));
  margin-right: auto;
}

.page-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 12px;
}

.page-hero__heading {
  font-weight: 700;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.page-hero__description {
  font-weight: 300;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
}

@media (max-width: 649px) {
  .page-hero {
    min-height: 260px;
    padding: 120px 0 56px;
  }
}

/* ── SPLIT CONTENT ───────────────────────────────────────── */
.split-content {
  background-color: var(--color-white);
  color: var(--color-main);
  padding: 96px 0;
}

.split-content__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-content--reverse .split-content__grid {
  direction: rtl;
}

.split-content--reverse .split-content__grid > * {
  direction: ltr;
}

.split-content__media img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(31, 39, 64, 0.12);
}

.split-content__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 12px;
}

.split-content__heading {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--color-main);
}

.split-content__text {
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(31, 39, 64, 0.85);
}

.split-content__text p + p {
  margin-top: 16px;
}

.split-content__cta {
  margin-top: 28px;
}

.services + .split-content {
  background-color: #f5f6f8;
  border-top: 1px solid rgba(31, 39, 64, 0.06);
}

@media (max-width: 1199px) {
  .split-content {
    padding: 64px 0;
  }

  .split-content__grid {
    gap: 40px;
  }
}

@media (max-width: 649px) {
  .split-content {
    padding: 48px 0;
  }

  .split-content__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-content--reverse .split-content__grid {
    direction: ltr;
  }
}

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  background-color: var(--color-main);
  padding: 72px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-bar__title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 40px;
  color: var(--color-white);
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stats-bar__item {
  text-align: center;
  padding: 24px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-bar__number {
  display: block;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-yellow);
  margin-bottom: 8px;
  line-height: 1.1;
}

.stats-bar__label {
  display: block;
  font-weight: 300;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

@media (max-width: 1199px) {
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 649px) {
  .stats-bar {
    padding: 48px 0;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .stats-bar__item {
    padding: 20px 12px;
  }

  .stats-bar__number {
    font-size: 24px;
  }

  .stats-bar__label {
    font-size: 12px;
  }
}

/* ── VALUES ──────────────────────────────────────────────── */
.values {
  background-color: var(--color-white);
  color: var(--color-main);
  padding: 96px 0;
}

.values__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.values__title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
  color: var(--color-main);
}

.values__subtitle {
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(31, 39, 64, 0.75);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.values__card {
  padding: 32px 24px;
  border-radius: 12px;
  border: 1px solid rgba(31, 39, 64, 0.08);
  background: var(--color-bg);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.values__card:hover {
  box-shadow: 0 8px 32px rgba(31, 39, 64, 0.1);
  transform: translateY(-3px);
}

.values__icon {
  width: 72px;
  height: 72px;
  border: 1px solid #D8D8D8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--color-white);
}

.values__icon svg {
  width: 42px;
  height: 42px;
}

.values__card-title {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--color-main);
}

.values__card-text {
  font-weight: 300;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(31, 39, 64, 0.8);
}

@media (max-width: 1199px) {
  .values {
    padding: 64px 0;
  }

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

@media (max-width: 649px) {
  .values {
    padding: 48px 0;
  }

  .values__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .values__card {
    padding: 24px 20px;
  }
}

/* ── TEXT BLOCK ──────────────────────────────────────────── */
.text-block {
  padding: 80px 0;
}
.text-block__inner {
  max-width: 900px;
  margin: 0 auto;
}
.text-block__heading {
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 24px;
}
.text-block__content {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
}
.text-block__btn {
  display: inline-block;
  margin-top: 24px;
}

.text-block--accent .text-block__btn {
  background-color: var(--color-main);
  color: var(--color-white);
}

.text-block--accent .text-block__btn:hover {
  background-color: var(--color-main);
  opacity: 0.88;
}

/* ── OPEN POSITIONS (career listing) ─────────────────────── */
.positions {
  background-color: var(--color-white);
  color: var(--color-main);
  padding: 96px 0;
}

.positions__header {
  max-width: 720px;
  margin-bottom: 48px;
}

.positions__title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
}

.positions__subtitle {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(31, 39, 64, 0.75);
}

.positions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.positions__empty {
  font-size: 18px;
  color: rgba(31, 39, 64, 0.7);
}

.positions__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(31, 39, 64, 0.1);
  background: var(--color-bg);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.positions__card:hover {
  border-color: var(--color-yellow);
  box-shadow: 0 12px 40px rgba(31, 39, 64, 0.1);
  transform: translateY(-2px);
}

.positions__card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9ebf0;
}

.positions__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.positions__card:hover .positions__card-media img {
  transform: scale(1.03);
}

.positions__card-placeholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(31, 39, 64, 0.08), rgba(242, 185, 12, 0.15));
}

.positions__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.positions__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}

.positions__card-title a {
  color: inherit;
  text-decoration: none;
}

.positions__card-title a:hover {
  color: var(--color-yellow);
}

.positions__card-text {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(31, 39, 64, 0.8);
  margin-bottom: 24px;
  flex: 1;
}

.positions__card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.positions__card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-main);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.positions__card-apply {
  margin-left: auto;
}

/* ── SINGLE POSITION ─────────────────────────────────────── */
.position-single-hero {
  background-color: var(--color-main);
  color: var(--color-white);
  padding: 140px 0 48px;
}

.position-single-hero__content {
  max-width: 900px;
}

.position-single-hero__back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.position-single-hero__back:hover {
  color: var(--color-yellow);
}

.position-single-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-yellow);
  margin-bottom: 12px;
}

.position-single-hero__title {
  font-weight: 700;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
}

.position-single {
  background-color: var(--color-white);
  color: var(--color-main);
  padding: 64px 0 96px;
}

.position-single__grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 56px;
  align-items: start;
}

.position-single__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(31, 39, 64, 0.12);
}

.position-single__content {
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(31, 39, 64, 0.85);
}

.position-single__content p + p {
  margin-top: 16px;
}

.position-single__content h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-main);
  margin: 28px 0 12px;
}

.position-single__content ul {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.position-single__content li + li {
  margin-top: 8px;
}

.position-single__contact {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(31, 39, 64, 0.1);
}

.position-single__contact-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(31, 39, 64, 0.55);
  margin-bottom: 8px;
}

.position-single__phone {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-main);
  text-decoration: none;
}

a.position-single__phone:hover {
  color: var(--color-yellow);
}

.position-single__apply {
  margin-top: 28px;
}

@media (max-width: 1199px) {
  .positions__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .position-single__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 649px) {
  .positions {
    padding: 64px 0;
  }

  .positions__grid {
    grid-template-columns: 1fr;
  }

  .positions__card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .positions__card-apply {
    margin-left: 0;
    text-align: center;
  }

  .position-single-hero {
    padding: 120px 0 40px;
  }

  .position-single {
    padding: 40px 0 72px;
  }
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding: 25px 0;
  background-color: var(--color-main);
}
@media (max-width: 1199px) {
  .footer { padding: 25px 20px; }
}

.footer__wrapper {
  display: grid;
  gap: 36px;
}

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

.footer__nav ul {
  display: flex;
  column-gap: 50px;
}
@media (max-width: 649px) {
  .footer__nav { display: none; }
}

.footer__logo-mobile {
  display: none;
}
.footer__logo-mobile img {
  width: 100px;
  height: auto;
}
@media (max-width: 649px) {
  .footer__logo-mobile { display: block; }
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 649px) {
  .footer__bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}

.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
@media (max-width: 649px) {
  .footer__meta {
    align-items: center;
  }
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer__legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer__legal a:hover {
  color: var(--color-yellow);
}

.footer__legal a:not(:last-child) {
  position: relative;
}

.footer__legal a:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -11px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.footer__logo img {
  width: 191px;
  height: auto;
}
@media (max-width: 649px) {
  .footer__logo { display: none; }
}

.footer__bottom span {
  font-size: 13px;
  opacity: 0.7;
}

/* ── AUTOFILL FIX ────────────────────────────────────────── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  background-color: var(--color-bg) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: black !important;
  box-shadow: 0 0 0 30px var(--color-bg) inset !important;
}
