/* ==========================================================
   RESPONSIVE – mobile-first (base styles live in style.css)
   ========================================================== */

@media (max-width: 450px) {
  .logo img { width: 120px; }
  .hero h1 { font-size: 32px; }
  .hero_badges li { font-size: 9px; }
  .btn_row .buttlike { flex: 1 1 auto; }
}

@media (min-width: 450px) {
  .stats { flex-direction: row; }
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  :root {
    --gutter: 30px;
    --header-h: 72px;
  }

  body { font-size: 15px; }

  .showOnAlt { display: none; }
  .hideOnAlt { display: inline-flex; }

  .logo img { width: 160px; }

  .section_head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section_title { font-size: 36px; }

  .hero { height: 680px; }
  .hero h1 { font-size: 52px; }
  .hero_sub { font-size: 20px; }
  .hero_dots { display: flex; }

  .welcome_card { padding: 40px 36px; }
  .card_title { font-size: 32px; }

  .acc_card { width: calc((100% - 20px) / 2); }

  .distances_card { padding: 26px 30px; }
  .dist_list li { width: calc(50% - 15px); }

  .cta_title { font-size: 34px; }

  .footer_cols { flex-wrap: nowrap; }
  .footer_col { width: auto; flex: 1 1 0; }
  .footer_bottom { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }

  .page_head h1 { font-size: 40px; }

  .gal_nav { gap: 14px; }
  .gal_nav button { width: 46px; height: 46px; }

  .exc_intro_inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .base_box { flex-shrink: 0; }
  .section_title.small { font-size: 30px; }
  .exc_card { width: calc((100% - 24px) / 2); }
  .log_card { padding: 26px 28px; }
  .near_grid li { width: calc((100% - 24px) / 3); }

  .photo_grid { gap: 14px; }
  .photo_grid a { width: calc((100% - 28px) / 3); }
  .contact_features li { width: calc(50% - 10px); }
  .map_embed iframe { height: 400px; }

  .unit_card { padding: 40px 44px; }
  .unit_head { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .unit_card h1 { font-size: 38px; }
}

/* ---------- Medium tablet ---------- */
@media (min-width: 991px) {
  .welcome_grid { flex-direction: row; align-items: flex-start; }
  .welcome_card { flex: 1 1 56%; }
  .welcome_side { flex: 1 1 44%; }

  .stats { gap: 10px; }
  .stat { padding: 16px 14px; }

  .acc_card { width: calc((100% - 40px) / 3); }

  .unit_features li { width: calc(25% - 15px); }

  .exc_card { width: calc((100% - 48px) / 3); }
  .photo_grid { gap: 16px; }
  .photo_grid a { width: calc((100% - 48px) / 4); }
  .logistics_grid { flex-direction: row; align-items: stretch; }
  .near_grid li { width: calc(50% - 6px); }
  .tips_grid { flex-direction: row; align-items: stretch; }

  .acc_intro_grid { flex-direction: row; align-items: flex-start; gap: 60px; }
  .acc_intro_txt { flex: 1 1 58%; }
  .included_box { flex: 0 0 38%; padding: 34px 32px; }

  .distances_grid { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 50px; }
  .distances_intro { flex: 0 0 40%; }
  .distances_card { flex: 1; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1170px) {
  :root {
    --wrap: 1260px;
    --header-h: 76px;
  }

  /* menu inline */
  .menu_trigger { display: none; }

  .menu_holder {
    position: static;
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0;
    background: none;
    overflow: visible;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  /* compact spacing so the longer RU / CS labels fit on one row at narrow desktop widths */
  .menu > ul { display: flex; align-items: center; gap: 0; }
  .menu li { border: 0; }
  .menu a {
    padding: 8px 8px;
    border-radius: var(--radius);
    font-size: 11px;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .has_sub > a { padding-right: 22px; }
  .header_inner { gap: 14px; }
  .menu a:hover { color: var(--primary); background: var(--bg2); }
  .menu li.active > a { background: var(--primary); color: var(--white); }

  /* submenu: dropdown */
  .has_sub { display: flex; align-items: center; }
  .has_sub > a { padding-right: 24px; }
  .sub_toggle {
    top: 50%;
    right: 6px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background: none;
    color: inherit;
    pointer-events: none;
  }
  .has_sub.active .sub_toggle { color: var(--white); }
  .sub_toggle .ico { width: 12px; height: 12px; }
  .has_sub:hover .sub_toggle .ico { transform: rotate(180deg); }

  .submenu,
  .has_sub.open .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    min-width: 270px;
    padding: 8px;
    margin-top: 10px;
    background: var(--white);
    border: 1px solid var(--border-lite);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: var(--ease);
  }
  .submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .has_sub:hover .submenu,
  .has_sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }

  .submenu a { padding: 9px 12px; font-size: 13px; letter-spacing: 0; }
  .submenu a:hover { background: var(--bg2); color: var(--primary); }
  .submenu li.active > a { background: var(--bg2); color: var(--primary); }

  .page_head h1 { font-size: 48px; }

  .hero { height: calc(100vh - var(--header-h)); min-height: 680px; max-height: 920px; }
  .hero_inner { padding-bottom: 90px; }
  .hero h1 { font-size: 64px; }
  .hero_text { max-width: 900px; }

  .section_title { font-size: 40px; }

  .welcome_grid { gap: 40px; }
  .welcome_card { padding: 48px 46px; }
  .card_title { font-size: 34px; }

  .acc_grid { gap: 24px; }
  .acc_card { width: calc((100% - 72px) / 4); }

  .distances_grid { gap: 80px; }

  .cta_title { font-size: 42px; }

  .footer_cols { gap: 60px; }
}

/* ---------- Large desktop ---------- */
/* ---------- Wide desktop: roomier menu ---------- */
@media (min-width: 1366px) {
  .menu > ul { gap: 4px; }
  .menu a { padding: 8px 12px; letter-spacing: 0.08em; }
  .has_sub > a { padding-right: 24px; }
  .header_inner { gap: 20px; }
}

@media (min-width: 1920px) {
  body {
    display: flex;
    justify-content: center;
    background: var(--bg1);
  }

  :root { --wrap: 1400px; }

  .site { box-shadow: 0 0 60px rgba(11, 34, 56, 0.08); }
}
