/* ===================================
   ГРАЖДАНИН МИРА — ГЛАВНЫЕ СТИЛИ
   =================================== */

/* --- ШРИФТЫ --- */
@font-face {
  font-family: 'CenturyGothic';
  src: url('../fonts/CenturyGothicPaneuropeanThin.ttf') format('truetype');
  font-weight: 100;
  font-display: swap;
}
@font-face {
  font-family: 'CenturyGothic';
  src: url('../fonts/CenturyGothicPaneuropeanRegular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'CenturyGothic';
  src: url('../fonts/CenturyGothicPaneuropeanSemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'CenturyGothic';
  src: url('../fonts/CenturyGothicPaneuropeanBold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

/* --- ПЕРЕМЕННЫЕ --- */
:root {
  --color-dark:    #1F3638;
  --color-accent:  #D18F59;
  --color-light:   #F4F0D9;
  --color-white:   #FFFFFF;
  --color-gray:    #6B7280;
  --color-bg:      #F9F7F2;

  --font-main: 'CenturyGothic', 'Century Gothic', Arial, sans-serif;

  --radius: 12px;
  --shadow: 0 4px 20px rgba(31, 54, 56, 0.08);
  --transition: 0.25s ease;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  overflow-x: clip;
  max-width: 100%;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark);
  background: var(--color-white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* --- КОНТЕЙНЕР --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- СЕКЦИИ --- */
section { padding: 80px 0; }
.section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--color-gray);
  text-align: center;
  margin-bottom: 48px;
}

/* --- КНОПКИ --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn--primary:hover { background: #ba7a46; transform: translateY(-2px); }
.btn--outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--full { width: 100%; }

/* ===================================
   HEADER
   =================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(31, 54, 56, 0.08);
  padding: 6px 0;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  position: relative;
}
.header__logo {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 101;
}
.header__logo img {
  height: 82px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.1));
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__link {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-dark);
  transition: var(--transition);
}
.nav__link:hover { background: var(--color-light); color: var(--color-accent); }
.nav__link--cta {
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
}
.nav__link--cta:hover { background: #ba7a46; }
.nav__link--phone {
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.nav__link--phone:hover { background: transparent; color: var(--color-dark); }
.nav__phones {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
}
.nav__phones .nav__link--phone {
  padding: 2px 10px;
  font-size: 14px;
  white-space: nowrap;
}

/* Бургер */
.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================
   HERO
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
  background: url('../zero-blok.png') center 10%/cover no-repeat var(--color-dark);
}

/* Видео-фон */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__video--mobile { display: none; }
@media (max-width: 767px) {
  .hero__video--desktop { display: none; }
  .hero__video--mobile { display: block; }
}

/* Тёмный оверлей поверх видео */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15, 28, 30, 0.40) 0%,
    rgba(15, 28, 30, 0.55) 60%,
    rgba(15, 28, 30, 0.65) 100%
  );
  z-index: 1;
}

/* Контент поверх видео */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  max-width: 800px;
}

.hero__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: transparent;
  border: 1.5px solid var(--color-accent);
  padding: 6px 18px;
  border-radius: 100px;
  animation: labelPulse 5s ease-in-out infinite;
}
@keyframes labelPulse {
  0%, 100% { color: #D18F59; border-color: #D18F59; }
  50%       { color: #1F3638; border-color: #1F3638; }
}

.hero__title {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-white);
}
.hero__subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.82);
  max-width: 500px;
  text-align: center;
  line-height: 1.6;
  margin-top: -8px;
}
.hero__title em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 700;
  -webkit-text-stroke: 1.5px #1F3638;
  paint-order: stroke fill;
}

.hero__services {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.5px;
  text-align: center;
  min-height: 1.5em;
  white-space: nowrap;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}

.btn--hero {
  font-size: 17px;
  padding: 18px 48px;
  border-radius: 100px;
  margin-top: 0;
  box-shadow: 0 8px 32px rgba(209, 143, 89, 0.35);
}
.btn--hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(209, 143, 89, 0.45);
}

.btn--hero-secondary {
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 100px;
  margin-top: 0;
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.4);
  box-shadow: none;
  transition: var(--transition);
}
.btn--hero-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
}

.hero__scroll {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: var(--transition);
  margin-top: 4px;
}
.hero__scroll:hover { color: var(--color-accent); }

/* Статистика внизу hero */
.hero__stats {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 40px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 16px 48px;
  white-space: nowrap;
}
.stat { text-align: center; }
.stat__num-wrap {
  display: block;
  white-space: nowrap;
  line-height: 1;
}
.stat__num {
  display: inline;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-accent);
}
.stat__label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  display: block;
}
.stat__num-suffix {
  display: inline;
  font-size: 26px;
  font-weight: 700;
  color: var(--color-accent);
}
.stat__num-currency {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}
.stat__divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.15);
}

/* ===================================
   TICKER — бегущая строка
   =================================== */
.ticker {
  background: var(--color-dark);
  overflow: hidden;
  padding: 12px 0;
  border-top: 1px solid rgba(209,143,89,0.2);
  border-bottom: 1px solid rgba(209,143,89,0.2);
}
.ticker__track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: tickerScroll 35s linear infinite;
  width: max-content;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.5px;
  cursor: default;
  transition: color 0.2s;
}
.ticker__item:hover { color: var(--color-accent); }
.ticker__item img {
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.ticker__sep {
  color: var(--color-accent);
  font-size: 18px;
  padding: 0 16px;
  opacity: 0.7;
}
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================
   SERVICES
   =================================== */
.services { background: var(--color-bg); }

/* ===================================
   НОВЫЕ ФОТО-КАРТОЧКИ УСЛУГ
   =================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.svc-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 16px;
  display: block;
  cursor: pointer;
  perspective: 1000px;
}

.svc-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.svc-card:hover .svc-card__inner,
.svc-card.flipped .svc-card__inner {
  transform: rotateY(180deg);
}

.svc-card__front,
.svc-card__back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.svc-card__front {
  background: var(--color-dark);
}

.svc-card__front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(10, 25, 27, 0.65) 0%,
    rgba(10, 25, 27, 0.15) 45%,
    transparent 100%);
}

.svc-card__back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, #1a3638 0%, #2a4a4c 60%, #1a3028 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 22px;
}

.svc-card__back-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
}

.svc-card__back-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  flex: 1;
  margin: 0 0 14px;
}

.svc-card__back-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.svc-card__back-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
}

.svc-card__back-btn {
  display: inline-block;
  padding: 9px 20px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 13px;
  border-radius: 100px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.svc-card__back-btn:hover {
  background: #e8a86a;
  transform: translateY(-1px);
}

.svc-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.svc-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 20px 22px;
  z-index: 2;
}

.svc-card__name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 5px;
  line-height: 1.25;
}

.svc-card__price {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.3px;
}

/* Широкая карточка */
.svc-card--wide {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  height: 200px;
}

/* Нижний сплит: страхование + консультация */
.svc-split {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}
.svc-split .svc-card {
  flex: 1;
  aspect-ratio: auto;
  height: 200px;
}

/* Градиентная карточка */
.svc-card--gradient {
  background: linear-gradient(135deg, #1F3638 0%, #2a4a4c 40%, #1a3028 70%, #243830 100%);
}

.svc-card__grad-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 48px;
  z-index: 2;
}

.svc-card__grad-icon {
  font-size: 52px;
  flex-shrink: 0;
  opacity: 0.9;
}

.svc-card__grad-text {
  flex: 1;
}

.svc-card__grad-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.svc-card__grad-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin: 0;
}

.svc-card__grad-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.svc-card__grad-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-accent);
}

.svc-card__grad-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 14px;
  border-radius: 100px;
  transition: var(--transition);
  white-space: nowrap;
}

.svc-card--gradient:hover .svc-card__grad-btn {
  background: #e8a86a;
  transform: translateY(-2px);
}

/* Старые flip-карточки (оставлены для совместимости) */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* Flip-карточки услуг */
.service-card {
  perspective: 1000px;
  height: 280px;
  cursor: pointer;
  border-radius: var(--radius);
}
.service-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius);
}
.service-card:hover .service-card__inner,
.service-card.flipped .service-card__inner {
  transform: rotateY(180deg);
}
.service-card__front,
.service-card__back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* Лицевая сторона — баннер с градиентом */
.service-card__front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px;
  text-align: center;
}
.service-card__front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%);
  border-radius: var(--radius);
  z-index: 0;
}
.service-card__front > * { position: relative; z-index: 1; }

/* Уникальные градиенты-фоны для каждой карточки */
.service-card__front--visa    { background: url('../kartochki_uslug/uslugi_viza.png') center/cover no-repeat; }
.service-card__front--vnj     { background: url('../kartochki_uslug/vnzh.png') center/cover no-repeat; }
.service-card__front--passport { background: url('../kartochki_uslug/zagranpasport.png') center/cover no-repeat; }
.service-card__front--apec    { background: url('../kartochki_uslug/ATES.png') center/cover no-repeat; }
.service-card__front--card    { background: url('../kartochki_uslug/scheta_i_karty.png') center/cover no-repeat; }
.service-card__front--work    { background: url('../kartochki_uslug/trud_i_ucheba.png') center/cover no-repeat; }
.service-card__front--china   { background: linear-gradient(135deg, #1a2e30 0%, #2d5a3d 50%, #c41e3a 100%); }
.service-card__front--uk      { background: linear-gradient(135deg, #1F3638 0%, #1a3a5c 50%, #012169 100%); }
.service-card__front--tours   { background: linear-gradient(135deg, #2a4a2e 0%, #1F3638 40%, #D18F59 100%); }
.service-card__front--consult { background: linear-gradient(135deg, #1F3638 0%, #2c4a4c 60%, #D18F59 100%); }

/* Декоративный паттерн поверх градиента */
.service-card__front::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
  z-index: 0;
}

.service-card__front-icon,
.service-card__front-title {
  display: none;
}
.service-card__hint {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Обратная сторона — текст */
.service-card__back {
  background: var(--color-dark);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  text-align: center;
  gap: 8px;
}
.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(209, 143, 89, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.service-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.service-card__text {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  flex: 1;
}
.service-card__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-accent);
}
.service-card__btn {
  margin-top: 4px;
  padding: 10px 22px;
  font-size: 14px;
}

/* ===================================
   HOW WE WORK
   =================================== */
.how { background: var(--color-white); }
.how__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
.step {
  flex: 1;
  text-align: center;
  padding: 0 20px;
}
.step__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-dark);
}
.step__text {
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.6;
}
.step__arrow {
  font-size: 28px;
  color: var(--color-accent);
  padding-top: 22px;
  flex-shrink: 0;
}

/* ===================================
   WHY US
   =================================== */
.why { background: var(--color-dark); color: var(--color-white); }
.why .section-title { color: var(--color-white); }
.why .section-subtitle { color: rgba(255,255,255,0.6); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.1); border-color: var(--color-accent); }
/* FLIP CARDS */
.why-card {
  background: transparent !important;
  border: none !important;
  perspective: 1000px;
  height: 220px;
  cursor: pointer;
}
.why-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-card:hover .why-card__inner,
.why-card.flipped .why-card__inner {
  transform: rotateY(180deg);
}
.why-card__front,
.why-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 12px;
  text-align: center;
}
.why-card__front {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.why-card__back {
  background: linear-gradient(135deg, var(--color-accent), #ba7a46);
  transform: rotateY(180deg);
  border: none;
}
.why-card__num {
  font-size: 38px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}
.why-card__icon {
  font-size: 22px;
  margin-bottom: 8px;
}
.why-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
}
.why-card__back .why-card__title {
  font-size: 17px;
  margin-bottom: 10px;
  margin-top: 8px;
}
.why-card__text {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  line-height: 1.5;
}
.why-card__hint {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 10px;
  letter-spacing: 0.3px;
}

.why__cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ===================================
   COUNTRIES
   =================================== */
.countries { background: var(--color-bg); }
.countries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* === Флип-карточки стран === */
.country-card {
  aspect-ratio: 3/4;
  perspective: 900px;
  cursor: pointer;
  border-radius: 16px;
  position: relative;
}
.country-card__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.country-card.flipped .country-card__inner {
  transform: rotateY(180deg);
}
.country-card__front,
.country-card__back {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* Лицо */
.country-card__front {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.country-card__img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.country-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}
.country-card:hover:not(.flipped) .country-card__img {
  transform: scale(1.07);
}
.country-card__front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,27,0.88) 0%, rgba(10,25,27,0.25) 55%, transparent 100%);
  pointer-events: none;
}

/* Бейдж */
.country-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
}
.country-card__badge--free {
  background: rgba(34,197,94,0.92);
  color: #fff;
}
.country-card__badge--visa {
  background: rgba(209,143,89,0.95);
  color: #fff;
}

/* Текст лицевой */
.country-card__name {
  position: relative;
  z-index: 2;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  padding: 0 14px 4px;
}
.country-card__price {
  position: relative;
  z-index: 2;
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
  padding: 0 14px 10px;
}
.country-card__front-info {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  margin-top: auto;
}
.country-card__hint {
  position: relative;
  z-index: 2;
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  padding: 0 14px 14px;
  letter-spacing: 0.03em;
}

/* Бейдж на обороте — в потоке, не абсолютный */
.country-card__back .country-card__badge {
  position: static;
}

/* Оборот */
.country-card__back {
  background: var(--color-dark);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  padding: 16px 16px 16px;
}
.country-card__back-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 2px;
}
.country-card__back-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.country-card__fact {
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  text-align: left;
  margin-top: 10px;
  flex: 1;
}
.country-card__back-btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 24px;
  text-decoration: none;
  transition: opacity 0.2s;
  white-space: nowrap;
  align-self: flex-start;
  margin-top: auto;
}
.country-card__back-btn:hover { opacity: 0.85; }

@media (max-width: 900px) {
  .countries__grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 600px) {
  .countries__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .country-card__name { font-size: 14px; }
  .country-card__back-name { font-size: 17px; }
  .country-card__fact { font-size: 12px; }
}

/* ===================================
   REVIEWS
   =================================== */
.reviews { background: var(--color-white); overflow: hidden; }

/* Слайдер отзывов */
.reviews__slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}

.reviews__viewport {
  overflow: hidden;
  width: 100%;
}

.reviews__track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.reviews__track .review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
}

/* Стрелки */
.reviews__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-light);
  color: var(--color-dark);
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(31,54,56,0.1);
}
.reviews__arrow--prev { left: 0; }
.reviews__arrow--next { right: 0; }
.reviews__arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.reviews__arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* Точки */
.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-light);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}
.reviews__dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}
.review-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); }
.review-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.review-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.review-card__name { font-weight: 600; font-size: 16px; color: var(--color-dark); }
.review-card__stars { color: #F59E0B; font-size: 14px; }
.review-card__text { font-size: 15px; color: var(--color-gray); line-height: 1.7; margin-bottom: 12px; }
.review-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-card__country { font-size: 13px; font-weight: 600; color: var(--color-accent); }
.review-card__date { font-size: 12px; color: var(--color-gray); opacity: 0.7; }

/* ===================================
   FAQ
   =================================== */
.faq { background: var(--color-bg); }
.faq__list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq__question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.faq__question::after {
  content: '+';
  font-size: 24px;
  color: var(--color-accent);
  transition: var(--transition);
  flex-shrink: 0;
}
.faq__question:hover { background: var(--color-bg); }
.faq__item.active .faq__question::after { transform: rotate(45deg); }
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq__answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--color-gray);
  line-height: 1.7;
}

/* ===================================
   CONTACTS
   =================================== */
.contacts { background: var(--color-white); }
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contacts .section-title { text-align: left; }
.contacts__text { font-size: 16px; color: var(--color-gray); margin-bottom: 32px; line-height: 1.7; }
.contacts__list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contacts__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.contacts__icon { font-size: 20px; flex-shrink: 0; }
.contacts__item a { color: var(--color-dark); transition: var(--transition); }
.contacts__item a:hover { color: var(--color-accent); }
.contacts__social { display: flex; gap: 12px; }
.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social-icon svg { width: 24px; height: 24px; }
.social-icon:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.social-icon--tg { background: #229ED9; }
.social-icon--wa { background: #1a1a2e; }
.social-icon--vk { background: #0077FF; }

/* Форма */
.form {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--color-dark);
}
.form__group { margin-bottom: 16px; }
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  cursor: pointer;
}
.form__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.form__consent span {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.form__consent a {
  color: var(--color-accent);
  text-decoration: underline;
}
.form__input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #E5E7EB;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--color-dark);
  background: var(--color-white);
  transition: var(--transition);
  appearance: none;
}
.form__input:focus { outline: none; border-color: var(--color-accent); }
.form__textarea { resize: vertical; min-height: 100px; }
.form__agree {
  text-align: center;
  font-size: 13px;
  color: var(--color-gray);
  margin-top: 12px;
}
.form__agree a { color: var(--color-accent); }

/* ===================================
   ABOUT
   =================================== */
.about { background: var(--color-white); }
.about__inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 72px;
  align-items: center;
}

/* Фото */
.about__photo { position: relative; flex-shrink: 0; }
.about__photo-wrap {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-light);
}
.about__photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.about__photo-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 400px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-dark), #2d5052);
  font-size: 120px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.4;
}
.about__badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 16px;
  padding: 16px 20px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(209,143,89,0.4);
}
.about__badge-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.about__badge-text {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.9;
}

/* Контент */
.about__content { padding-bottom: 20px; }
.about__text {
  font-size: 16px;
  color: var(--color-gray);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about__text strong { color: var(--color-dark); font-weight: 600; }

.about__facts {
  display: flex;
  gap: 32px;
  margin: 32px 0;
  padding: 24px;
  background: var(--color-bg);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
}
.about__fact { text-align: center; flex: 1; }
.about__fact-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.about__fact-label {
  display: block;
  font-size: 13px;
  color: var(--color-gray);
  margin-top: 4px;
}

/* === ABOUT HERO (общее фото + философия) === */
.about { background: var(--color-white); padding-bottom: 0; }

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  margin-bottom: 48px;
  overflow: hidden;
}
.about-hero__img-wrap {
  position: relative;
  overflow: hidden;
}
.about-hero__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-hero__img-placeholder {
  display: none;
  width: 100%; height: 100%; min-height: 400px;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-dark), #2d5052);
  font-size: 100px; font-weight: 700;
  color: var(--color-accent); opacity: 0.3;
}
.about-hero__content {
  background: var(--color-dark);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-hero__title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}
.about-hero__text {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}
.about-hero__facts {
  display: flex;
  gap: 24px;
}
.about-hero__fact { text-align: center; }
.about-hero__fact-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.about-hero__fact-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-bottom: 32px;
  }
  .about-hero__img-wrap { height: 280px; }
  .about-hero__content { padding: 32px 20px; }
  .about-hero__title { font-size: 24px; }
  .about-hero__facts { gap: 12px; }
  .about-hero__fact-num { font-size: 22px; }
}

/* === TEAM SLIDER === */

.team-slider-wrap {
  position: relative;
  padding: 0 0 48px;
}

/* Трек */
.team-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 16px 48px 16px calc((100vw - 1200px) / 2);
  cursor: grab;
  user-select: none;
}
.team-track::-webkit-scrollbar { display: none; }
.team-track.dragging { cursor: grabbing; scroll-snap-type: none; }

/* Стрелки */
.team-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: #fff;
  color: var(--color-accent);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.team-arrow:hover { background: var(--color-accent); color: #fff; }

/* Точки + стрелки в одну строку */
.team-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  flex: 1;
}
.team-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  padding: 0 24px;
}
.team-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.team-dot--active { background: var(--color-accent); transform: scale(1.5); }

/* === Карточка компании === */
.team-card--company {
  flex-shrink: 0;
  width: 580px;
  min-height: 440px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  background: var(--color-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.team-card__company-bg {
  position: absolute;
  inset: 0;
}
.team-card__company-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.25;
}
.team-card__company-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  color: #fff;
}
.team-card__company-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #fff;
}
.team-card__company-text {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin-bottom: 20px;
}
.team-card__facts {
  display: flex;
  gap: 20px;
}
.team-card__fact { text-align: center; }
.team-card__fact-num {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.team-card__fact-label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 3px;
}

/* === Карточка участника (flip) === */
.team-card--person {
  flex-shrink: 0;
  width: 280px;
  height: 440px;
  border-radius: 20px;
  scroll-snap-align: start;
  perspective: 1000px;
  cursor: pointer;
}
.team-card__inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
}
.team-card--person.flipped .team-card__inner {
  transform: rotateY(180deg);
}

/* Лицевая сторона */
.team-card__front {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.team-card__front img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.team-card__placeholder {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-dark), #2d5052);
  font-size: 100px;
  font-weight: 700;
  color: var(--color-accent);
  opacity: 0.5;
}
.team-card__front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,25,27,0.85) 0%, rgba(10,25,27,0.1) 50%, transparent 100%);
  border-radius: 20px;
}
.team-card__front-info {
  position: absolute;
  bottom: 48px;
  left: 0; right: 0;
  padding: 0 20px;
  z-index: 2;
}
.team-card__name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}
.team-card__role {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.team-card__flip-hint {
  position: absolute;
  bottom: 16px;
  left: 0; right: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  z-index: 2;
  transition: color 0.2s;
}
.team-card--person:hover .team-card__flip-hint { color: var(--color-accent); }

/* Оборотная сторона */
.team-card__back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: var(--color-dark);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: rotateY(180deg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid rgba(209,143,89,0.3);
}
.team-card__back-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.team-card__back-role {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(209,143,89,0.15);
  border-radius: 20px;
  padding: 3px 12px;
  margin-bottom: 18px;
}
.team-card__bio {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
}

/* Мобилка */
@media (max-width: 768px) {
  .team-track { padding: 12px 16px; gap: 14px; }
  .team-card--company { width: 300px; min-height: 400px; }
  .team-card__company-title { font-size: 20px; }
  .team-card--person { width: 240px; height: 380px; }
  .team-arrow { display: none; }
}

/* === ABOUT SLIDER (старый, не используется) === */
.about-slider { position: relative; }

.about-slides-wrap {
  position: relative;
  overflow: hidden;
}

.about-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  pointer-events: none;
}

.about-slide--active {
  position: relative;
  opacity: 1;
  pointer-events: all;
}

@keyframes aEnterNext {
  from { opacity: 0; transform: perspective(1200px) translateX(80px) rotateY(8deg); }
  to   { opacity: 1; transform: perspective(1200px) translateX(0) rotateY(0deg); }
}
@keyframes aEnterPrev {
  from { opacity: 0; transform: perspective(1200px) translateX(-80px) rotateY(-8deg); }
  to   { opacity: 1; transform: perspective(1200px) translateX(0) rotateY(0deg); }
}
@keyframes aExitLeft {
  from { opacity: 1; transform: perspective(1200px) translateX(0) rotateY(0deg); }
  to   { opacity: 0; transform: perspective(1200px) translateX(-80px) rotateY(-8deg); }
}
@keyframes aExitRight {
  from { opacity: 1; transform: perspective(1200px) translateX(0) rotateY(0deg); }
  to   { opacity: 0; transform: perspective(1200px) translateX(80px) rotateY(8deg); }
}
.about-slide--entering-next { animation: aEnterNext 0.5s cubic-bezier(0.4,0,0.2,1) forwards; }
.about-slide--entering-prev { animation: aEnterPrev 0.5s cubic-bezier(0.4,0,0.2,1) forwards; }
.about-slide--exiting-left  { animation: aExitLeft  0.4s cubic-bezier(0.4,0,0.2,1) forwards; }
.about-slide--exiting-right { animation: aExitRight 0.4s cubic-bezier(0.4,0,0.2,1) forwards; }

/* Навигация */
.about-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}
.about-nav__btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
  background: transparent;
  color: var(--color-accent);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.about-nav__btn:hover { background: var(--color-accent); color: #fff; }
.about-nav__dots { display: flex; gap: 8px; align-items: center; }
.about-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.about-dot--active {
  background: var(--color-accent);
  transform: scale(1.4);
}

/* Карточка участника команды */
.about-person {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
  padding: 8px 0 16px;
}
.about-person__photo-wrap {
  width: 280px; height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-accent);
  flex-shrink: 0;
  background: var(--color-light);
  position: relative;
}
.about-person__photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.about-person__placeholder {
  display: none;
  width: 100%; height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-dark), #2d5052);
  font-size: 80px;
  font-weight: 700;
  color: var(--color-accent);
}
.about-person__name {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.about-person__role {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(209,143,89,0.1);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 20px;
}
.about-person__bio {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-gray);
}

@media (max-width: 768px) {
  .about-person {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .about-person__photo-wrap {
    width: 180px; height: 180px;
    margin: 0 auto;
  }
}

/* Карта в контактах */
.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.contacts__map iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}
.contacts__map-link {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--color-bg);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent);
  transition: var(--transition);
}
.contacts__map-link:hover { background: var(--color-light); }

/* Блок с формой заявки */
.application {
  background: var(--color-dark);
  padding: 80px 0;
}
.application__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.application .form {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.application .form__input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--color-white);
}
.application .form__input::placeholder { color: rgba(255,255,255,0.45); }
.application .form__input:focus { border-color: var(--color-accent); }
.application .form__input option { background: var(--color-dark); color: var(--color-white); }
.application .form__agree { color: rgba(255,255,255,0.4); }
.application .form__agree a { color: var(--color-accent); }

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--color-dark);
  padding: 32px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__logo img { filter: brightness(0) invert(1); opacity: 0.9; }
.footer__copy { font-size: 14px; color: rgba(255,255,255,0.5); }
.footer__nav { display: flex; gap: 20px; }
.footer__nav a { font-size: 14px; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer__nav a:hover { color: var(--color-accent); }

/* ===================================
   ВАУ-ЭФФЕКТЫ
   =================================== */

/* 1. ПРОГРЕСС СКРОЛЛА */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 9999;
  background: linear-gradient(90deg, var(--color-accent), #f0b97a, var(--color-accent));
  background-size: 200% 100%;
  animation: progressShimmer 2s linear infinite;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}
@keyframes progressShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 2. HEADER SCROLLED */
.header.scrolled {
  box-shadow: 0 4px 24px rgba(31, 54, 56, 0.15);
}

/* ПЛАВАЮЩИЕ КНОПКИ СОЦСЕТЕЙ СПРАВА */
.float-social {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.float-social__btn {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: width 0.25s ease, border-radius 0.25s ease, box-shadow 0.25s ease;
  border-radius: 8px 0 0 8px;
}
.float-social__btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.float-social__btn:hover {
  width: 56px;
  box-shadow: -3px 0 16px rgba(0,0,0,0.2);
}
.float-social__btn--ai {
  background: var(--color-dark);
  border: 2px solid var(--color-accent);
  cursor: pointer;
  position: relative;
  padding: 0;
  overflow: hidden;
}
.float-social__btn--ai img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.float-social__btn--ai::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--color-accent), #ba7a46);
  animation: aiPulse 2s ease-in-out infinite;
  z-index: -1;
}
@keyframes aiPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.3); opacity: 0; }
}
.float-social__btn--wa    { background: #1a1a2e; }
.float-social__btn--tg    { background: #229ED9; }
.float-social__btn--vk    { background: #0077FF; }
@media (max-width: 768px) {
  .float-social { display: none; }
  /* AI-кнопка доступна через sticky CTA */
  .toast-container { bottom: 80px; right: 12px; max-width: calc(100vw - 24px); }
}

/* Скрываем кнопки когда чат открыт */
.float-social {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.float-social--hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
}

/* AI ЧАТ */
.ai-chat {
  position: fixed;
  bottom: 24px;
  right: 16px;
  width: 340px;
  max-width: calc(100vw - 32px);
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  z-index: 8999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  transform-origin: bottom right;
}
.ai-chat.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}
.ai-chat__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, var(--color-dark) 0%, #2a4a4c 100%);
  color: #fff;
}
.ai-chat__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--color-accent);
  background: var(--color-accent);
}
.ai-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.ai-chat__name { font-size: 15px; font-weight: 700; }
.ai-chat__status {
  font-size: 12px;
  opacity: 0.75;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ai-chat__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ai-chat__close {
  margin-left: auto;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.ai-chat__close:hover { background: rgba(255,255,255,0.35); }
.ai-chat__messages {
  flex: 1;
  max-height: 300px;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8f7ff;
}
.ai-chat__msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 85%;
}
.ai-chat__msg--bot {
  background: #fff;
  color: var(--color-dark);
  border-radius: 4px 12px 12px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  align-self: flex-start;
}
.ai-chat__msg--user {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 12px 4px 12px 12px;
  align-self: flex-end;
}
.ai-chat__suggestions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.ai-chat__suggest {
  background: #fff;
  border: 1.5px solid #e0e0ff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: #6366f1;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, border-color 0.2s;
  font-family: var(--font-main);
}
.ai-chat__suggest:hover { background: #f0f0ff; border-color: #6366f1; }

/* typing indicator (бот печатает...) */
.ai-chat__typing {
  display: flex;
  gap: 4px;
  padding: 14px 16px;
  align-items: center;
}
.ai-chat__typing span {
  width: 7px;
  height: 7px;
  background: #c7c7d4;
  border-radius: 50%;
  animation: aiTyping 1.2s infinite ease-in-out;
}
.ai-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.ai-chat__input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #eee;
  background: #fff;
}
.ai-chat__input {
  flex: 1;
  border: 1.5px solid #e0e0ff;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 16px;
  font-family: var(--font-main);
  color: var(--color-dark);
  outline: none;
  transition: border-color 0.2s;
}
.ai-chat__input:focus { border-color: #6366f1; }
.ai-chat__send {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.ai-chat__send:hover { opacity: 0.85; }

/* STICKY CTA BAR (мобилка) */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--color-dark);
  padding: 10px 12px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  gap: 8px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
}
.sticky-cta__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  text-align: center;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.sticky-cta__btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.sticky-cta__icon-img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.sticky-cta__btn:active { opacity: 0.75; }
.sticky-cta__ai   { background: transparent; border: 1.5px solid var(--color-accent) !important; color: var(--color-accent); }
.sticky-cta__call { background: var(--color-accent); }
.sticky-cta__tg   { background: #2AABEE; }
.sticky-cta__vk   { background: #0077FF; }
@media (min-width: 769px) { .sticky-cta { display: none !important; } }
@media (max-width: 768px) { .sticky-cta { display: flex; } }

/* 3. КАСТОМНЫЙ КУРСОР */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 2px solid var(--color-accent);
  opacity: 0.5;
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}
.cursor-ring.hover {
  width: 56px;
  height: 56px;
  opacity: 0.8;
  background: rgba(209, 143, 89, 0.08);
}
.cursor-ring.press {
  width: 28px;
  height: 28px;
  opacity: 1;
  background: rgba(209, 143, 89, 0.2);
}
.cursor-dot.hidden { opacity: 0; }

/* 4. RIPPLE НА КНОПКАХ */
.btn { position: relative; overflow: hidden; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleAnim 0.55s linear;
  pointer-events: none;
}
@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* 5. CANVAS ЧАСТИЦЫ */
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* 6. ПЛАВАЮЩИЕ ФЛАГИ */
.hero__floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.float-item {
  position: absolute;
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0;
  animation: floatUp var(--dur, 12s) var(--delay, 0s) ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.float-item:nth-child(1)  { left: 8%;  --dur: 13s; --delay: 0s;   }
.float-item:nth-child(2)  { left: 18%; --dur: 15s; --delay: 2.5s; }
.float-item:nth-child(3)  { left: 30%; --dur: 11s; --delay: 1.2s; }
.float-item:nth-child(4)  { left: 42%; --dur: 14s; --delay: 4s;   }
.float-item:nth-child(5)  { left: 55%; --dur: 12s; --delay: 0.7s; }
.float-item:nth-child(6)  { left: 66%; --dur: 16s; --delay: 3s;   }
.float-item:nth-child(7)  { left: 77%; --dur: 10s; --delay: 1.8s; }
.float-item:nth-child(8)  { left: 88%; --dur: 13s; --delay: 5s;   }
@keyframes floatUp {
  0%   { bottom: -60px; opacity: 0; transform: translateX(0) rotate(-5deg); }
  10%  { opacity: 0.7; }
  45%  { transform: translateX(20px) rotate(8deg); }
  70%  { transform: translateX(-15px) rotate(-3deg); opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { bottom: 110%; opacity: 0; transform: translateX(10px) rotate(5deg); }
}

/* 7. ТИПИНГ-ЭФФЕКТ */
.hero__typed { color: var(--color-white); }
.hero__cursor {
  display: inline-block;
  color: var(--color-accent);
  font-weight: 400;
  animation: blink 0.8s step-end infinite;
  margin-left: 1px;
}
@keyframes blink {
  50% { opacity: 0; }
}

/* 8. SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 9. TOAST УВЕДОМЛЕНИЯ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-white);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  border-left: 4px solid var(--color-accent);
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.toast.hide {
  animation: toastOut 0.3s ease forwards;
}
.toast--success { border-left-color: #16A34A; }
.toast--error   { border-left-color: #DC2626; }
.toast--info    { border-left-color: var(--color-accent); }
.toast__icon { font-size: 18px; flex-shrink: 0; }
.toast__text { font-size: 14px; color: var(--color-dark); line-height: 1.4; flex: 1; }
.toast__close {
  font-size: 14px;
  color: var(--color-gray);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: var(--transition);
}
.toast__close:hover { background: var(--color-bg); color: var(--color-dark); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.9); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to   { opacity: 0; transform: translateX(40px) scale(0.9); }
}

/* ===================================
   АДАПТИВ
   =================================== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__slider-wrap { padding: 0 48px; }
  .reviews__track .review-card { flex: 0 0 calc((100% - 24px) / 2); }
  .about__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .section-title { font-size: 28px; }

  /* Nav mobile */
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  .nav.open { transform: translateY(0); }
  .nav__link { width: 100%; text-align: center; padding: 12px; }
  .burger { display: flex; }

  /* Услуги */
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .svc-card__back { padding: 16px 18px; }
  .svc-split { flex-direction: column; }
  .svc-split .svc-card { height: 180px; }

  /* Hero */
  .hero__title { font-size: 38px; }
  .hero__stats { display: none; }
  .hero__subtitle { font-size: 14px; }
  .hero__content { gap: 14px; padding: 0 16px; }
  .btn--hero { font-size: 16px; padding: 16px 32px; width: 100%; max-width: 320px; }
  .hero__scroll { display: none; }
  .hero__label { font-size: 11px; letter-spacing: 1.5px; padding: 5px 12px; }
  .hero__services { font-size: 15px; white-space: normal; text-align: center; }
  .hero__cta { flex-direction: column; gap: 10px; align-items: center; }
  .btn--hero-secondary { font-size: 14px; padding: 12px 24px; width: 100%; max-width: 320px; }

  /* Nav touch targets */
  .nav__link { padding: 14px; }

  /* Overlay под бургер-меню */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
  }
  .nav-overlay.active { display: block; }

  /* Steps */
  .how__steps { flex-direction: column; align-items: center; }
  .step__arrow { transform: rotate(90deg); padding: 0; }

  /* Grids */
  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .reviews__slider-wrap { padding: 0 40px; }
  .reviews__track .review-card { flex: 0 0 100%; }
  .reviews__arrow { width: 44px; height: 44px; font-size: 18px; }
  .hero__floats { display: none; }
  .contacts__inner { grid-template-columns: 1fr; }
  .contacts .section-title { text-align: center; }

  /* Form */
  .form { padding: 24px; }
  .application__inner { grid-template-columns: 1fr; gap: 32px; }
  .contacts__map iframe { height: 260px; }

  /* About */
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  /* country-card grid handled in component styles */
  .about__badge { right: 0; bottom: -16px; }
  .about__facts { flex-direction: column; gap: 16px; }
  .about__content { padding-bottom: 0; }

  /* Лого */
  .header__logo img { height: 60px; }

  /* Отступ снизу под sticky CTA */
  body { padding-bottom: 64px; }

  /* Курсор — скрыть на тач */
  .cursor-dot, .cursor-ring { display: none; }

  /* Footer */
  .footer__inner { flex-direction: column; text-align: center; align-items: center; }
  .footer__logo img { height: 44px; }
  .footer__nav { flex-direction: column; align-items: center; gap: 12px; }
}

@media (max-width: 480px) {
  .svc-grid { grid-template-columns: 1fr; gap: 10px; }
  .svc-card { aspect-ratio: auto; height: 200px; }
  .svc-split { display: flex; flex-direction: column; gap: 10px; }
  .svc-split .svc-card { height: 180px; flex: none; width: 100%; }
  .svc-card__name { font-size: 16px; }
  .svc-card__body { padding: 16px 18px 18px; }
  .svc-card__back { padding: 16px 18px; }
  .svc-card__back-title { font-size: 14px; margin-bottom: 8px; }
  .svc-card__back-desc { font-size: 13px; margin-bottom: 10px; }
  .svc-card__back-btn { padding: 8px 16px; font-size: 12px; }
  .svc-card--wide { height: auto; min-height: 160px; }
  .svc-card__grad-inner { flex-direction: column; padding: 24px; gap: 16px; text-align: center; }
  .svc-card__grad-icon { font-size: 36px; }
  .svc-card__grad-title { font-size: 18px; }
  .svc-card__grad-cta { flex-direction: row; gap: 20px; }
  .svc-card__grad-price { font-size: 24px; }
  .hero__title { font-size: 30px; }
  .stat__divider { width: 40px; height: 1px; }
  /* country-card mobile handled in component styles */
}
