* {
  box-sizing: border-box;
}

:root {
  --bg-gradient: radial-gradient(
    120% 120% at 50% 0%,
    #c8d8ff 0%,
    #e5edff 60%,
    #f6f9ff 100%
  );
  --bg-soft: #f2f6ff;
  --text-main: #0f172a;
  --text-muted: #4b5563;
  --accent: #3b82f6;
  --card-border: #e5e7eb;
  --card-shadow: 0 10px 35px rgba(28, 78, 180, 0.08);
  --radius: 18px;
  --container: 1200px;
}

body {
  margin: 0;
  font-family:
    "Manrope",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text-main);
  background: #fff;
  line-height: 1.6;
  padding-top: 120px; /* space for fixed header */
}

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

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

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}
.section__heading {
  max-width: 640px;
}

.section__heading h3,
.section__title {
  margin: 0 0 12px;
  font-size: 28px;
}

.section__title--center {
  text-align: center;
}

.section__heading p {
  margin: 0;
  color: var(--text-muted);
}

.hero {
  padding: 22px 0 64px;
  background: var(--bg-gradient);
  text-align: center;
  position: relative;
  overflow: visible;
  margin-top: -120px; /* pull under fixed header */
  padding-top: calc(22px + 120px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 60%;
  background: radial-gradient(
    60% 60% at 50% 30%,
    rgba(99, 102, 241, 0.18),
    transparent 60%
  );
  filter: blur(40px);
  opacity: 0.9;
  pointer-events: none;
}

.hero__top {
  width: min(100% - 48px, var(--container));
  margin: 0 auto 32px;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 12px;
  background: linear-gradient(135deg, #e7f0ff 0%, #ffffff 100%);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(47, 108, 246, 0.18);
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 24px, var(--container));
  z-index: 50;
}

.logo img {
  height: 65px;
}

.logo {
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 18px;
  font-weight: 600;
  justify-content: center;
  flex: 1;
}

.nav-shell .btn {
  flex-shrink: 0;
}

.nav-shell--compact {
  width: min(100% - 20px, var(--container));
  gap: 10px;
  padding: 8px 12px;
  justify-content: space-between;
  align-items: center;
}

.nav-shell--compact .logo img {
  height: 54px;
}

.nav a {
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #0b3b8e;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: #0b1220;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.btn--ghost {
  background: linear-gradient(135deg, #4f8dff, #2f6cf6);
  color: #fff;
  border: 2px solid #2f6cf6;
  box-shadow: 0 10px 25px rgba(47, 108, 246, 0.22);
}
.nav__cta {
  display: none;
}

.btn__icon {
  width: 18px;
  height: 18px;
}

.btn__label {
  position: relative;
  display: inline-block;
  background: linear-gradient(120deg, #ffffff 0%, #d7e6ff 45%, #ffffff 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroBtnShine 2.6s ease-in-out infinite;
}

@keyframes heroBtnShine {
  0% {
    background-position: 200% 0;
  }
  50% {
    background-position: 0 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes heroTitleShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn__label {
    animation: none;
    -webkit-text-fill-color: #fff;
    background: none;
  }
  h1 {
    animation: none;
    -webkit-text-fill-color: var(--text-main);
  }
}

.btn--ghost:hover {
  background: linear-gradient(135deg, #2f6cf6, #1f58d6);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--accent);
  border-radius: 6px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.nav-toggle--open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.nav-toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hero__content {
  width: min(880px, 100%);
  margin: 90px auto 46px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 3vw + 22px, 54px);
  line-height: 1.18;
  font-weight: 800;
  color: #0f172a; /* fallback to ensure readability */
  background: linear-gradient(120deg, #0c1c3a 0%, #1f4fd3 45%, #0c1c3a 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: heroTitleShine 8s ease-in-out infinite;
}

.lead {
  margin: 0 0 26px;
  color: var(--text-muted);
}

.highlight {
  position: relative;
  display: inline-block;
  color: #13306b;
  -webkit-text-fill-color: currentColor;
}

.highlight::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -6px;
  height: 10px;
  background: linear-gradient(90deg, #3c62d6, #5ea8ff);
  border-radius: 8px;
  opacity: 0.9;
}

.hero__cta {
  display: flex;
  justify-content: center;
}

.hero__content .btn {
  min-width: 150px;
  gap: 10px;
}
.hero__gallery {
  margin: 48px auto 16px;
  width: min(1240px, 100% - 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  justify-items: center;
  align-items: center;
}

.hero__gallery img {
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.16);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.hero__gallery img:nth-child(1),
.hero__gallery img:nth-child(3) {
  aspect-ratio: 4 / 3; /* горизонтальні */
}

.hero__gallery img:nth-child(2),
.hero__gallery img:nth-child(4) {
  aspect-ratio: 3 / 4; /* вертикальні */
}

.about {
  background: #fff;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.about__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 100%;
  border-radius: 22px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.14);
  object-fit: cover;
}

.about__content h2 {
  margin: 0 0 18px;
  font-size: 38px;
  line-height: 1.1;
}

.about__content p {
  margin: 0 0 28px;
  color: var(--text-main);
  font-size: 20px;
  line-height: 1.6;
}

.about__cta {
  margin-bottom: 28px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 12px;
  width: 100%;
}

.stats--wide {
  max-width: 620px;
}

.stat-card {
  background: #f9f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 22px 20px 20px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.stat-card__value {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 10px;
}

.stat-card__label {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 22px;
  color: #0f172a;
}

.stat-card__meta {
  margin: 0;
  font-weight: 200;
  color: #6b7285;
  font-size: 8px;
  line-height: 1.45;
}

.statement {
  padding: 48px 0 40px;
  background: #fff;
}

.statement p {
  margin: 0 0 36px;
  text-align: center;
  color: #111827;
  font-size: 20px;
  line-height: 1.6;
}

.map {
  position: relative;
  width: min(1200px, 100% - 32px);
  margin: 0 auto;
}

.map img {
  width: 100%;
}

.partnership {
  background: radial-gradient(
    120% 120% at 10% 20%,
    #e5edff 0%,
    #f2f6ff 60%,
    #ffffff 100%
  );
}

.partnership__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
  gap: 24px;
  align-items: start;
}

.partnership__lead {
  background: transparent;
  border: none;
  border-radius: 22px;
  padding: 0;
  box-shadow: none;
}

.partnership__lead h3 {
  margin: 10px 0 12px;
  font-size: clamp(26px, 2vw + 14px, 32px);
  line-height: 1.25;
  color: #0f172a;
}

.partnership__lead p {
  margin: 0;
  color: #3a4763;
  font-size: 17px;
  line-height: 1.6;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 12px;
  background: linear-gradient(120deg, #2f6cf6 0%, #1f4ed6 100%);
  color: #fff;
  border: 1px solid #1f4ed6;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 16px rgba(31, 78, 214, 0.28);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.partnership__stack {
  display: grid;
  gap: 14px;
}

.partnership__stack .card--b2b:nth-child(1) {
  transform: translateX(-10px) rotate(-1.6deg);
}
.partnership__stack .card--b2b:nth-child(2) {
  transform: translateX(12px) rotate(1.4deg);
}
.partnership__stack .card--b2b:nth-child(3) {
  transform: translateX(-12px) rotate(-1.9deg);
}
.partnership__stack .card--b2b:nth-child(4) {
  transform: translateX(14px) rotate(1.7deg);
}

.cards--values {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  position: relative;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.cards--b2b {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--card-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28, 78, 180, 0.12);
}

.card--b2b {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #dce4f5;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(47, 108, 246, 0.1);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  min-height: unset;
}

.card__icon--pill {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e5edff, #f2f7ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.card--b2b h4 {
  margin: 0 0 4px;
  font-size: 17px;
}

.card--b2b p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #3c4a63;
}

.card--b2b:hover {
  transform: translateY(-4px) scale(1.01) rotate(0deg);
  box-shadow: 0 16px 38px rgba(47, 108, 246, 0.14);
}

.card--value {
  padding: 26px 24px;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(47, 108, 246, 0.12);
  border: 1px solid #e6e9f2;
  flex: 0 0 320px;
  scroll-snap-align: start;
}

.cards--values::before,
.cards--values::after {
  content: "";
  position: sticky;
  top: 0;
  width: 60px;
  flex: 0 0 0;
  pointer-events: none;
  z-index: 2;
  align-self: stretch;
}

.cards--values::before {
  left: 0;
  background: linear-gradient(
    90deg,
    rgba(219, 230, 255, 1),
    rgba(219, 230, 255, 0)
  );
}

.cards--values::after {
  left: calc(100% - 60px);
  background: linear-gradient(
    270deg,
    rgba(219, 230, 255, 1),
    rgba(219, 230, 255, 0)
  );
}

.card--value h4 {
  margin: 10px 0 14px;
  font-size: 24px;
  white-space: nowrap;
}

.card--value p {
  font-size: 15.5px;
  line-height: 1.6;
  color: #111827;
}

.card--soft {
  background: var(--bg-soft);
}

.card__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5f9bff, #88c0ff);
  margin-bottom: 12px;
  position: relative;
}

.card__icon--circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e6edff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.card__icon--circle img {
  width: 72px;
  height: 72px;
}

.card__icon::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
}

.card__icon--circle::after {
  display: none;
}

.card h4 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.experts {
  background: radial-gradient(
    130% 130% at 15% 40%,
    #e6edff 0%,
    #f5f8ff 60%,
    #ffffff 100%
  );
}

.experts__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 36px 32px;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(47, 108, 246, 0.1);
  background: #fff;
}

.eyebrow--section {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2f6cf6;
  margin: 0 0 10px;
}

.docs-cta .eyebrow--section {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #2f6cf6 0%, #1f4ed6 100%);
  color: #fff;
  border: 1px solid #1f4ed6;
  box-shadow: 0 8px 18px rgba(47, 108, 246, 0.2);
}

.experts__text h3 {
  margin: 6px 0 12px;
  font-size: clamp(28px, 2vw + 14px, 36px);
  line-height: 1.25;
  font-weight: 800;
  color: #0f172a;
}

.experts__lead {
  margin: 0;
  color: #35415b;
  font-size: 17px;
  line-height: 1.7;
}

.experts__gallery {
  display: grid;
  gap: 14px;
  justify-self: end;
}

.experts__gallery img {
  width: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.16);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.experts__gallery--grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px;
}

.experts__gallery--grid img:nth-child(1),
.experts__gallery--grid img:nth-child(2),
.experts__gallery--grid img:nth-child(4) {
  aspect-ratio: 4 / 3;
}
.experts__gallery--grid img:nth-child(3) {
  aspect-ratio: 3 / 4;
}

.section__heading--center {
  text-align: center;
  margin: 0 auto 10px;
}

.testimonials {
  background: radial-gradient(
    120% 120% at 70% 0%,
    #e6eeff 0%,
    #f6f9ff 55%,
    #ffffff 100%
  );
}

.testimonials__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.testimonials__photo {
  width: 100%;
  height: 360px;
  max-height: 70vh;
  border-radius: 18px;
  object-fit: contain;
  background: linear-gradient(145deg, #ffffff 0%, #f5f7ff 100%);
  padding: 12px;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
  border: 1px solid #e4e8f3;
}

.testimonials__cta {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .testimonials__photo {
    height: 280px;
    padding: 10px;
  }
}

.values {
  background: radial-gradient(
    140% 140% at 50% 0%,
    #dbe6ff 0%,
    #eef3ff 60%,
    #f8fbff 100%
  );
}

.expertise {
  background: radial-gradient(
    130% 130% at 50% 0%,
    #e4edff 0%,
    #f4f7ff 55%,
    #ffffff 100%
  );
}

.expertise__heading {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.expertise__heading h3 {
  margin: 6px 0 10px;
  font-size: clamp(26px, 2vw + 14px, 34px);
  line-height: 1.25;
}

.expertise__lead {
  margin: 0;
  color: #3c4a68;
  font-size: 17px;
}

.expertise__cards {
  overflow: hidden;
  margin: 0 auto;
  position: relative;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.expertise__track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: expertiseMarquee 48s linear infinite;
}

.expertise-card {
  position: relative;
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e4e8f3;
  box-shadow: 0 10px 22px rgba(47, 108, 246, 0.08);
  overflow: hidden;
  text-align: center;
  min-width: 240px;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.expertise-card h4 {
  position: relative;
  margin: 0 0 10px;
  font-size: 18px;
  color: #0f172a;
}

.expertise-card p {
  position: relative;
  margin: 0;
  color: #6d6d6d;
  line-height: 1.55;
  font-size: 15.5px;
}

.expertise-card:hover {
  box-shadow: 0 12px 28px rgba(47, 108, 246, 0.1);
  transform: translateY(-2px);
}

.countries {
  background: #f4f7ff;
}

.country-card {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}

.countries__title {
  margin: 0 auto 14px;
  font-size: 26px;
  text-align: center;
}

.country-tabs {
  display: grid;
  gap: 8px;
  background: linear-gradient(180deg, #f5f7ff 0%, #eef3ff 100%);
  border-radius: 18px;
  padding: 10px;
  border: 1px solid #e3e7f0;
  overflow-y: hidden;
  overflow-x: auto;
}
.country-tabs::-webkit-scrollbar {
  display: none;
}
.country-tabs {
  scrollbar-width: none;
}

.country-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  color: #0f172a;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.country-tab:hover {
  background: #e9f1ff;
}

.country-tab.active {
  background: linear-gradient(135deg, #d9e8ff, #bcd6ff);
  border-color: #c6d9ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.country-flag {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
}

.country-panel {
  background: #fff;
  border: 1px solid #e3e7f0;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.country-panel__body {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.country-panel__image {
  align-self: start;
  margin-top: -8px;
}

.country-panel__image img {
  width: 100%;
  height: 260px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.info-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.info-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #e7efff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2f6cf6;
  font-weight: 700;
  font-size: 14px;
}

.info-icon--briefcase::before {
  content: "💼";
}
.info-icon--euro::before {
  content: "💶";
}
.info-icon--doc::before {
  content: "📄";
}

.country-panel h3 {
  margin: 0;
  font-size: 24px;
}

.country-panel h4 {
  margin: 0 0 4px;
}

.country-panel p {
  margin: 0;
  color: #374151;
}

.docs-cta {
  background: radial-gradient(
    120% 120% at 50% 0%,
    #e7efff 0%,
    #f7f9ff 60%,
    #ffffff 100%
  );
  padding-top: 36px;
}

.docs-cta__card {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 18px;
  align-items: center;
  background: #fff;
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
  border: 1px solid #e3e7f0;
}

.docs-cta__content h3 {
  margin: 6px 0 8px;
  font-size: clamp(22px, 2vw + 12px, 30px);
}

.docs-cta__content p {
  margin: 0;
  color: #4b5563;
}

.docs-cta .btn--ghost {
  white-space: nowrap;
}

.footer {
  background: #e9f1ff;
  color: #0f172a;
  padding: 48px 0 56px;
}

/* Documents page */
.docs-page {
  background: #f6f8ff;
}

.hero--compact {
  padding-bottom: 24px;
}

.nav-shell--compact .btn {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(47, 108, 246, 0.14);
  flex: 0 0 auto;
  max-width: 180px;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.sample-card {
  background: #fff;
  border: 1px solid #e4e8f3;
  border-radius: 18px;
  padding: 16px 16px 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
}

.sample-card h3 {
  margin: 0;
  font-size: 18px;
}

.sample-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.sample-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sample-card .btn--ghost {
  width: 100%;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 8px 18px rgba(47, 108, 246, 0.18);
}

.sample-card .btn--ghost:hover {
  transform: translateY(-1px);
}

.btn--flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn--flag img {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.doc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
  gap: 16px;
  justify-content: center;
  margin-top: 20px;
}

.doc-thumb {
  display: block;
  background: #fff;
  border: 1px solid #e4e8f3;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.doc-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.doc-thumb img {
  width: 100%;
  height: 320px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8f9ff;
}

.section--soft {
  background: #f6f8ff;
}

.footer__card {
  max-width: var(--container);
  margin: 0 auto;
  background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 90%);
  border-radius: 26px;
  padding: 26px 28px 18px;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.12);
  border: 1px solid #e3e7f0;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 18px;
  align-items: start;
  margin-bottom: 18px;
}

.footer__brand img {
  height: 65px;
  margin-bottom: 10px;
  display: block;
}

.footer__brand p {
  margin: 0;
  color: #374151;
  line-height: 1.5;
  font-weight: 700;
  text-align: left;
}

.footer__brand {
  text-align: left;
}

.footer__col h4,
.footer__contact h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #0f172a;
}

.footer__col a {
  display: block;
  color: #243047;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer__contact p {
  margin: 0 0 10px;
  color: #374151;
  line-height: 1.5;
}

.tel-highlight {
  font-weight: 700;
  color: #0f172a;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.social img {
  width: 20px;
  height: 20px;
  display: block;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal--open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(6px);
}

.modal__dialog {
  position: relative;
  background: radial-gradient(
    140% 160% at 15% 15%,
    #f5f8ff 0%,
    #ffffff 60%,
    #f7f9ff 100%
  );
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.24);
  border: 1px dashed #d3dcf3;
  overflow: hidden;
  max-width: 540px;
  width: calc(100% - 48px);
  z-index: 1;
  text-align: center;
}

.modal__dialog::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(31, 78, 214, 0.1);
  border-radius: 14px;
  pointer-events: none;
}

.modal__dialog h4 {
  margin: 6px 0 10px;
  font-size: 22px;
  color: #0f172a;
}

.modal__dialog p {
  margin: 0 0 14px;
  color: #374151;
}

.modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal__actions .btn,
.modal__actions .btn--ghost {
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  padding: 4px;
  cursor: pointer;
  color: #0f172a;
}

.modal__title-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  justify-content: center;
}

.modal__mail-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-right: 0;
  margin-bottom: 0;
  box-shadow: none;
}

.modal__logo {
  height: 186px;
  width: auto;
  display: block;
  margin: 0 auto 16px;
}

.footer__bottom {
  padding-top: 14px;
  border-top: 1px solid #d9deeb;
  text-align: left;
  color: #4b5563;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .about__grid,
  .experts__grid,
  .countries__grid {
    grid-template-columns: 1fr;
  }

  .expertise__track {
    animation: expertiseMarquee 40s linear infinite;
  }

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

  .hero__top {
    gap: 12px;
  }

  .nav {
    gap: 16px;
  }

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

  .experts__grid {
    padding: 28px 22px;
  }

  .docs-cta__card {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
  }

  .footer__top {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px 14px;
  }
}

@media (max-width: 720px) {
  .footer__card {
    padding: 18px 16px;
  }

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

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__socials {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 52px 0;
  }

  .hero,
  .statement,
  .partnership,
  .experts,
  .values,
  .expertise,
  .testimonials,
  .docs-cta {
    background: linear-gradient(180deg, #f6f8ff 0%, #ffffff 80%);
  }

  body {
    padding-top: 96px;
  }
  .hero__top {
    position: relative;
  }

  .partnership__stack .card--b2b {
    transform: none !important;
  }

  .experts__grid {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 16px;
  }

  .expertise__cards {
    mask-image: none;
  }
  .expertise__track {
    flex-wrap: wrap;
    animation: none;
    justify-content: center;
  }

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

  .partnership__lead {
    order: -1;
  }

  /* Expertise carousel: disable masking and set full width for wrapping on tablets/mobiles */
  .expertise__cards {
    mask-image: none;
    overflow: visible;
  }
  .expertise__track {
    flex-wrap: wrap;
    animation: none;
    justify-content: center;
    width: 100%;
  }
  .expertise__track .expertise-card:nth-child(n + 7) {
    display: none;
  }

  .nav-shell {
    padding: 6px 10px;
    flex-wrap: wrap;
    width: min(100% - 20px, var(--container));
    top: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-shell .btn {
    display: none;
  }
  .nav-shell--compact .btn {
    display: inline-flex;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 9px;
    box-shadow: 0 5px 10px rgba(47, 108, 246, 0.14);
    max-width: 150px;
  }
  .nav-shell--compact {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 10px;
  }

  .nav-shell--compact .logo img {
    height: 46px;
  }

  .nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 10px);
    flex-direction: column;
    background: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    box-shadow: var(--card-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
    gap: 12px;
    z-index: 5;
  }

  .nav--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    width: 100%;
  }

  .nav__cta {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }

  .about__grid,
  .experts__grid {
    gap: 20px;
  }

  h1 {
    font-size: clamp(26px, 5vw + 12px, 32px);
    line-height: 1.25;
  }

  .hero__content {
    margin: 40px auto 32px;
  }

  .experts__gallery {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .experts__gallery img {
    height: auto;
  }

  .btn--ghost {
    width: 100%;
    justify-content: center;
  }

  .country-card {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .country-panel__body {
    grid-template-columns: 1fr;
  }
  .country-panel__image {
    margin-top: 0;
  }
  .country-panel__image img {
    height: 220px;
  }

  .cards--values {
    gap: 16px;
  }

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

@media (max-width: 600px) {
  .section {
    padding: 40px 0;
  }

  .container {
    width: min(100% - 32px, var(--container));
  }

  body {
    padding-top: 86px;
  }

  .experts__grid {
    padding: 18px 16px;
    gap: 12px;
  }

  .experts__text h3 {
    font-size: 24px;
    line-height: 1.35;
  }

  .experts__lead {
    font-size: 15.5px;
    line-height: 1.6;
  }

  .experts__gallery--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .expertise__track {
    flex-wrap: wrap;
    animation: none;
    gap: 12px;
    width: 100%;
  }
  .expertise__track .expertise-card:nth-child(n + 7) {
    display: none;
  }

  .hero__gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .cards--four {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .experts__gallery img {
    height: 150px;
  }

  .countries__list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }

  .country-tabs {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    white-space: nowrap;
  }

  .country-tab {
    justify-content: flex-start;
    white-space: nowrap;
    padding-right: 16px;
  }

  .nav-shell {
    padding: 5px 10px;
    top: 8px;
  }

  .hero__gallery {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

@keyframes expertiseMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

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