/* ===== Base ===== */
:root {
  --accent: #d20000;
  --accent-dark: #b00000;
  --text: #000;
  --text-muted: #555;
  --bg: #fff;
  --bg-light: #f2f2f2;
  --border: #e0e0e0;
  --container: 1200px;
  --transition: 0.3s ease;

}

html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Raleway", "Roboto", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.accent { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: inherit;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color var(--transition), transform 0.2s;
}

.btn:hover { text-decoration: none; }

.btn-primary,
.btn-cta {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-cta:hover {
  background: var(--accent-dark);
}

.btn-whatsapp {
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;

  display: flex;
  align-items: center;
  gap: 10px;
}

.wha-img {
    height: 20px;
}

.btn-phone {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #3d7d4f;
  color: #fff;
  padding: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72 12.84 12.84 0 00.7 2.81 2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45 12.84 12.84 0 002.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
  background-size: 22px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 18px;
}

.logo:hover { text-decoration: none; color: var(--text); }

.logo-accent { color: var(--accent); }

.logo img { height: 40px; }

.logo-text { display: inline-flex; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.nav a {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.nav a:hover { color: var(--accent); }

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

@media (max-width: 1024px) {
  .nav { display: none; }
}

/* @media (max-width: 768px) {
  .header-actions { display: none; }
} */

/* Базовые стили бургера (скрыт на десктопе) */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.burger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Мобильная адаптация */
/* Мобильная адаптация (до 1024px) */
@media (max-width: 1024px) {
  .burger-btn {
    display: flex; /* Показываем кнопку бургера */
  }

  .nav {
    /* Перебиваем старый display: none, если он где-то остался */
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    /* Если у вас не задана переменная --bg, замените на #ffffff */
    background: var(--bg, #ffffff);
    padding: 20px;
    border-bottom: 1px solid var(--border, #eaeaea);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);

    /* Прячем меню (но не удаляем из DOM) */
    opacity: 0;
    visibility: hidden;
    pointer-events: none; /* Чтобы нельзя было кликнуть по скрытому меню */
    transform: translateY(-20px);
    transition: all 0.3s ease;
  }

  /* Класс, который добавляет JS при клике */
  .nav.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    font-size: 16px;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Легкий разделитель для красоты */
  }

  .nav a:last-child {
    border-bottom: none;
  }

  /* Анимация превращения бургера в крестик */
  .burger-btn.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .burger-btn.is-active span:nth-child(2) {
    opacity: 0;
  }
  .burger-btn.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* @media (max-width: 768px) {
  .header-actions { display: none; }
} */

/* ===== Hero ===== */
.hero {
  padding: 60px 0 80px;
  text-align: center;
  /* background: url('content/hero-bg.svg');
  background-size: cover; */
  background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 1)),
              url('https://www.shutterstock.com/image-vector/white-plane-blue-sky-flying-260nw-2355688291.jpg');
  background-size: cover;
  background-position: bottom right;
}

.hero-title {
  margin: 0 0 20px;
  font-size: clamp(26px, 4vw, 45px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 32px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}

/* ===== Section ===== */
.section {
  padding: 60px 0;
}

.section-title {
  margin: 0 0 32px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.section-title.two-line { margin-bottom: 40px; }

/* ===== Countries block ===== */
.countries-block {
  /* background: url('https://i.pinimg.com/736x/c6/3f/38/c63f387d217ef32e64c83c57475c5aee.jpg');
    */
    background: url('content/countries.png');
  padding: 80px 0;
  background-size: cover;
  background-position: bottom;
  border-radius: 16px;
  margin: 0 20px 60px;
  height: 400px;
  
}

.country-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    height: 100%;
    width: 100%;
    zoom: 1.42;
}

.countries-title {
  margin: 0 0 24px;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  text-align: center;
}

.countries-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
}

.custom-dropdown {
  position: relative;
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}

.dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
}

.dropdown-header:hover { border-color: #999; }

.arrow-icon {
  flex-shrink: 0;
  margin-left: 8px;
  transition: transform var(--transition);
}

.custom-dropdown.is-open .arrow-icon { transform: rotate(180deg); }

.dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 8px 0;
  max-height: 280px;
  overflow-y: auto;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 50;
  display: none;
}

.custom-dropdown.is-open .dropdown-list { display: block; }

.dropdown-list li {
  padding: 10px 18px;
  cursor: pointer;
}

.dropdown-list li:hover,
.dropdown-list li:focus {
  background: #f5f5f5;
  outline: none;
}

/*Для нажатий*/
.card-country {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-country:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ===== Slider (общая схема как у отзывов) ===== */
.slider-section,
.reviews-section { padding: 48px 0 60px; }

.slider-wrap {
  position: relative;
  padding: 0 48px;
}

.slider-view {
  overflow: hidden;
  margin: 0 -10px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.slider-wrap .slide {
  flex: 0 0 100%;
  padding: 0 10px;
  min-width: 0;
}

/* Сколько слайдов показывать — задаётся через инлайн или JS */
.slider-wrap[data-slides-lg="5"] .slide { flex: 0 0 20%; }
.slider-wrap[data-slides-lg="3"] .slide { flex: 0 0 33.333%; }
.slider-wrap[data-slides-lg="2"] .slide { flex: 0 0 50%; }
.slider-wrap[data-slides-lg="1"] .slide { flex: 0 0 100%; }

@media (max-width: 1024px) {
  .slider-wrap[data-slides-lg="5"] .slide,
  .slider-wrap[data-slides-md="3"] .slide { flex: 0 0 33.333%; }
  .slider-wrap[data-slides-lg="3"] .slide,
  .slider-wrap[data-slides-md="2"] .slide { flex: 0 0 50%; }
  .slider-wrap[data-slides-md="1"] .slide { flex: 0 0 100%; }
}

@media (max-width: 640px) {
  .slider-wrap { padding: 0 40px; }
  .slider-wrap .slide { flex: 0 0 100% !important; }
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #3d7d4f;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: opacity var(--transition), background var(--transition);
}

.slider-arrow:hover { opacity: 0.9; }

.slider-arrow::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.slider-prev { left: 0; }
.slider-prev::after {
  margin-left: 14px;
  transform: rotate(45deg);
}

.slider-next { right: 0; }
.slider-next::after {
  margin-right: 14px;
  transform: rotate(-135deg);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  padding: 0;
  transition: background var(--transition), transform 0.2s;
}

.slider-dots button:hover { background: #999; }

.slider-dots button.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ===== Cards (popular) ===== */
.card {
  background: var(--bg);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px;
  text-align: center;
  transition: box-shadow var(--transition), transform 0.2s;
}

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

.card-flag {
  height: 130px;
  background: red;
  border-radius: 8px 8px 0 0;
  margin: -16px -16px 12px -16px;
  background-size: cover;
  background-position: center;
}

.card-title {
  display: block;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 4px;
}

.card-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.f1 {
  background-image: url("content/usa.png");
}

.f2 {
  background-image: url("content/gb.png");
}

.f3 {
  background-image: url("content/canada.png");
}

.f4 {
  background-image: url("content/australia.png");
}

.f5 {
  background-image: url("content/japan.png");
}

.f6 {
  background-image: url("content/germ.png");
}

.f7 {
  background-image: url("content/kor.png");
}

.f8 {
  background-image: url("content/spain.png");
}

.f9 {
  background-image: url("content/france.png");
}

.f10 {
  background-image: url("content/chex.png");
}

.f11 {
  background-image: url("content/it.png");
}



/* ===== Advantages ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.advantage-card {
  background: #e8f0f8;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow var(--transition), transform 0.2s;
}

.advantage-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.advantage-num {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1.2;
}

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

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

@media (max-width: 640px) {
  .advantages-grid { grid-template-columns: 1fr; }
}

/* ===== Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.step-block {
  background: #f0f5f8;
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow var(--transition);
}

.step-block:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.step-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
}

.step-block h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
}

.step-list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ===== Reviews ===== */
.reviews-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 28px;
  padding: 16px 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.rating-num { font-weight: 700; font-size: 18px; }
.rating-stars { color: #ffd700; font-size: 18px; letter-spacing: 2px; }
.rating-count { font-size: 14px; }

.review-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.review-name { font-weight: 600; margin: 0 0 4px; }
.review-stars { color: #ffb81c; margin: 0 0 4px; font-size: 14px; }
.review-date { font-size: 12px; color: var(--text-muted); margin: 0 0 12px; }
.review-text { flex: 1; margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.review-source { font-size: 12px; color: var(--text-muted); }

/* ===== CTA banner ===== */
.cta-banner {
  height: 400px;
  display: flex;
  align-items: center;
  text-align: center;
  background: url('https://img.freepik.com/premium-vector/mint-flow-abstract-banner_884160-4871.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  margin: 0 20px 40px;
}

.cta-c {
    background-position: bottom;
    background-repeat: no-repeat;
    zoom: 1;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.cta-title {
  margin: 0 0 24px;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
}

/* ===== Footer ===== */
.footer {
  background: #2f2f2f;
  color: #fff;
  padding: 48px 0 32px;
}

.footer a { color: #fff; }
.footer a:hover { text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
}

.footer-heading {
  margin: 0 0 16px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-company {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.6;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== Fixed contact ===== */
.fixed-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fixed-contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, visibility 0.25s, max-height 0.25s ease, transform 0.25s ease;
}

.fixed-contact.is-open .fixed-contact-buttons {
  opacity: 1;
  visibility: visible;
  max-height: 200px;
  transform: scale(1);
}

.fixed-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.fixed-btn img {
  width: 50px;
  height: 50px;
}

.fixed-btn:hover { transform: scale(1.05); color: #fff; text-decoration: none; }

.fixed-whatsapp { background: #25d366; }
.fixed-phone { background: #000; }
.fixed-telegram { background: #1d98dc; }

.fixed-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: green;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  position: relative;
  
}



.fixed-toggle::after {
  transform: rotate(90deg);
}

.fixed-contact.is-open .fixed-toggle::before {
  transform: rotate(45deg);
}

.fixed-contact.is-open .fixed-toggle::after {
  transform: rotate(135deg);
}
