/*
 * custom.css — рукописные CSS-перехваты CryptoGex.
 *
 * Собрано из двух источников боевого сайта:
 *   1) Стили отзывов — раньше инъектились через JS (s.textContent в cryptogex_reviews_script).
 *   2) Перехваты главной и шапки — раньше дописывались ВРУЧНУЮ в конец main.min.css
 *      (~20 КБ, не из Vue-сборки: переключатель регионов, hero, преимущества по брейкпоинтам).
 *
 * Файл подключается ВЕЗДЕ последним (после main.min.css / header-footer.css),
 * поэтому его правила перебивают базовые стили темы — для этого и нужны !important.
 *
 * TODO при дальнейшем рефакторинге: часть этих правил можно увести
 * в исходники Vue (src/common.blocks/), но пока держим тут как единый слой.
 */


/* ═══════════════════════════════════════════════════════════════
   Отзывы клиентов (#cgxR) — раньше инъектились через JS s.textContent
   ═══════════════════════════════════════════════════════════════ */
#cgxR{padding:56px 0;overflow:hidden;box-sizing:border-box}
#cgxR *,#cgxR *::before,#cgxR *::after{box-sizing:border-box;margin:0;padding:0}
#cgxR .cr-ctn{margin:0 auto;max-width:1440px;padding:0 16px;width:100%}
#cgxR .cr-hdr{display:flex;flex-direction:column;gap:12px;margin-bottom:28px}
#cgxR .cr-ttl{font-size:clamp(24px,20px + 0.83vw,40px);font-weight:600;line-height:1.2;color:#f5f5f5}
#cgxR .cr-badge{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#cgxR .cr-stars{display:inline-flex;align-items:center;gap:2px}
#cgxR .cr-avg{color:#f4b44d;font-weight:600;font-size:24px;line-height:1}
#cgxR .cr-ya{display:inline-flex;align-items:center;gap:4px;color:rgba(245,245,245,0.5);text-decoration:none;font-size:12px;transition:color .2s}
#cgxR .cr-slider{overflow:hidden;margin:0 -8px}
#cgxR .cr-track{display:flex;transition:transform .45s cubic-bezier(.25,.46,.45,.94)}
#cgxR .cr-card{flex:0 0 100%;min-width:0;padding:0 8px}
#cgxR .cr-ci{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:rgba(255,255,255,0.04);border:1px solid rgba(244,180,77,0.16);border-radius:8px;padding:20px;height:100%;display:flex;flex-direction:column;transition:border-color .3s,background .3s}
#cgxR .cr-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:14px}
#cgxR .cr-auth{display:flex;align-items:center;gap:10px;min-width:0}
#cgxR .cr-av{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,rgba(244,180,77,0.25),rgba(244,180,77,0.08));display:flex;align-items:center;justify-content:center;font-weight:600;font-size:14px;color:#f4b44d;flex-shrink:0}
#cgxR .cr-nm{font-weight:500;font-size:14px;color:#f5f5f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#cgxR .cr-dt{color:rgba(245,245,245,0.4);font-size:11px;white-space:nowrap}
#cgxR .cr-cs{display:inline-flex;align-items:center;gap:1px;flex-shrink:0}
#cgxR .cr-txt{color:rgba(245,245,245,0.75);font-size:13px;line-height:1.5;flex:1;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
#cgxR .cr-ph{display:flex;gap:6px;margin-top:12px;overflow-x:auto;-webkit-overflow-scrolling:touch}
#cgxR .cr-ph img{width:56px;height:56px;object-fit:cover;border-radius:6px;border:1px solid rgba(244,180,77,0.16);flex-shrink:0}
#cgxR .cr-src{display:flex;align-items:center;gap:4px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(245,245,245,0.06);color:rgba(245,245,245,0.35);font-size:11px}
#cgxR .cr-ctl{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:24px}
#cgxR .cr-arr{width:40px;height:40px;border-radius:50%;background:rgba(18,14,20,0.66);border:1px solid rgba(244,180,77,0.24);color:#f5f5f5;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s,border-color .2s;flex-shrink:0;padding:0}
#cgxR .cr-arr:disabled{opacity:0.3;cursor:default}
#cgxR .cr-dots{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
#cgxR .cr-dot{width:8px;height:8px;border-radius:50%;background:rgba(245,245,245,0.15);border:none;cursor:pointer;padding:0;transition:background .2s,transform .2s}
#cgxR .cr-dot.on{background:#f4b44d;transform:scale(1.25)}
#cgxR .cr-skel{animation:crPulse 1.5s ease-in-out infinite}
#cgxR .cr-sl{height:14px;border-radius:4px;background:rgba(245,245,245,0.08);margin-bottom:8px}
#cgxR .cr-sl-s{width:60%}
#cgxR .cr-sl-n{width:100px;height:16px}
#cgxR .cr-sl-d{width:60px;height:12px}
@keyframes crPulse{0%,100%{opacity:.4}50%{opacity:.15}}
@media(min-width:768px){
#cgxR .cr-hdr{flex-direction:row;align-items:center;justify-content:space-between;margin-bottom:40px}
#cgxR .cr-card{flex:0 0 50%}
#cgxR .cr-ci{padding:24px}
#cgxR .cr-av{width:40px;height:40px;font-size:16px}
#cgxR .cr-nm{font-size:16px}
#cgxR .cr-dt{font-size:12px}
#cgxR .cr-txt{font-size:14px}
#cgxR .cr-ph img{width:64px;height:64px}
#cgxR .cr-src{margin-top:16px;padding-top:16px;font-size:12px}
#cgxR .cr-ctl{gap:16px;margin-top:32px}
#cgxR .cr-arr{width:44px;height:44px}
}
@media(min-width:1025px){
#cgxR{padding:80px 0 60px}
#cgxR .cr-hdr{margin-bottom:48px}
#cgxR .cr-card{flex:0 0 33.3333%}
}
@media(hover:hover){
#cgxR .cr-ci:hover{border-color:rgba(244,180,77,0.35);background:rgba(255,255,255,0.06)}
#cgxR .cr-arr:hover:not(:disabled){background:rgba(244,180,77,0.12);border-color:rgba(244,180,77,0.5)}
#cgxR .cr-ya:hover{color:#f4b44d}
#cgxR .cr-dot:hover:not(.on){background:rgba(245,245,245,0.35)}
}


/* ═══════════════════════════════════════════════════════════════
   Перехваты главной и шапки (ручной хвост боевого main.min.css)
   ═══════════════════════════════════════════════════════════════ */

/* Перенос калькулятора (#container_m с <app-exchange>) в правую часть hero.
   ПОТЕРЯНО при первом выносе хвоста — без этих правил калькулятор
   не позиционируется и визуально пропадает. 1:1 из боевого main.min.css.

   ВАЖНО: и калькулятор (#container_m absolute top:250px), и логотип
   (.canvas-cryptogex absolute top:75px) позиционируются относительно
   .home-screen (position:relative). Вся раскладка завязана на ЕЁ высоту.
   На боевом .home-screen = 837px (десктоп). Контент сам по себе её не
   набирает (на тесте было 662px) → задаём min-height, чтобы absolute-
   элементы встали как на бою. */
@media (min-width: 1025px) {
  .home-screen {
    min-height: 837px;
  }
}
/* Планшет/мобайл (<=1024px): уходим от Vue-эпохи абсолютного hero.
   Калькулятор переводится в поток (см. #container_m ниже), поэтому
   .home-screen не нужна фиксированная высота — секции идут потоком. */
@media (max-width: 1024px) {
  .home-screen {
    min-height: 0 !important;
    height: auto !important;
  }
}
@media (max-width: 767px) {
  #container_m {
    position: relative !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    max-width: 100% !important;
    margin: 20px 0 !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  #container_m {
    position: relative !important;
    top: 0 !important;
    right: auto !important;
    left: auto !important;
    max-width: 600px !important;
    margin: 24px auto 0 !important;
    z-index: 3 !important;
  }
}
@media (min-width: 1025px) {
  #container_m {
    grid-column: 12 / span 4;
    position: absolute;
    right: 50px;
    top: 250px;
    max-width: 600px;
    z-index: 3;
  }
}
/* Переходная зона 1025–1300px: экран уже узкий для широкой раскладки,
   но ещё десктопный (меню горизонтальное). Ужимаем калькулятор и
   поджимаем его к правому краю, чтобы не наезжал на hero-текст. */
@media (min-width: 1025px) and (max-width: 1300px) {
  #container_m {
    right: 24px;
    top: 220px;
    max-width: 460px;
  }
  /* Hero-текст мельче, но по ширине НЕ ограничиваем жёстко — пусть
     свободно заходит на 3D-логотип (так задумано визуально). */
  .home-screen__title.typo-h2 {
    font-size: 32px !important;
    line-height: 118% !important;
  }
  .home-screen__left,
  .home-screen__info > :first-child {
    max-width: 560px !important;
  }
  .advantages-main-screen__item {
    font-size: 15px !important;
  }
  /* Шапка: меню компактнее и регион уже, чтобы «Услуги ВЭД» не налезал
     на блок региона (на 1027-1139px они пересекались). */
  .nav_list {
    gap: 14px !important;
  }
  .nav__link,
  .nav_list .nav__item > a {
    font-size: 14px !important;
    white-space: nowrap !important;
  }
  /* Регион убираем из строки шапки и вешаем под неё справа —
     как на планшете. Так меню и «Войти» занимают всю строку без тесноты. */
  .header .container {
    gap: 12px !important;
    position: relative !important;
  }
  /* Специфичность .header > .container > .header__region — чтобы перебить
     desktop-правило (min-width:1025px), которое держит регион relative в строке. */
  .header > .container > .header__region,
  .header__region,
  div.header__region {
    position: absolute !important;
    top: 100% !important;
    right: 16px !important;
    left: auto !important;
    margin: 8px 0 0 !important;
    max-width: 200px !important;
  }
  #regionToggle,
  .header__region-toggle {
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 13px !important;
  }
}

/* Стили переключателя регионов (.header__region*) вынесены в единый
   источник — css/header-footer.css (секция HEADER REGION SELECTOR).
   Дубли отсюда удалены, чтобы не конфликтовать по каскаду. */

/* Обновляем контейнер хедера для правильного расположения элементов */
@media (min-width: 1025px) {
  .header .container {
    gap: 16px;
  }
  
  .header__telegram {
    margin-left: auto;
  }
}
/* Мобильная версия (до 767px) */
.home-screen__left {
    width: 100%;
    max-width: 100%;
}

.home-screen__main-title {
    color: #f5f5f5;
    text-align: center;
}

.advantages-main-screen {
	margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.advantages-main-screen__item {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.advantages-main-screen__item:before {
    content: "•";
    color: #f4b44d;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.advantages-main-screen__text {
    color: #d4d4d4;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}

.home-screen__description {
    color: #9c9c9c;
    font-size: 16px;
    line-height: 1.5;
    margin-top: 24px;
    text-align: center;
}

/* Планшетная версия (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .home-screen__info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
    }
    
    .advantages-main-screen {
		gap: 4px;
		margin-top: 15px;
    }
    
    .advantages-main-screen__item {
        padding: 4px 0;
    }
    
    .advantages-main-screen__text {
        font-size: 17px;
    }
    
    .home-screen__description {
        font-size: 17px;
        margin-top: 0;
        text-align: left;
        padding-top: 20px;
    }
}

/* Десктопная версия (1200px+) */
@media (min-width: 1200px) {
	.home-screen__info > :last-child {
    text-align: left !important; /* Переопределяем выравнивание */
	}
    .home-screen__left {
        max-width: 600px;
        margin-top: 200px;
		text-align: left !important;
    }
    
    .home-screen__info {
        display: grid;
        grid-template-columns: 500px 1fr;
        gap: 80px;
        align-items: start;
    }
   
    .advantages-main-screen {
		margin-top: 15px; /* Отступ 15px перед преимуществами */
        gap: 4px;
    }
    
    .advantages-main-screen__item {
        padding: 4px 0;
    }
    
    .advantages-main-screen__item:before {
        font-size: 20px;
        margin-right: 16px;
    }
    
    .advantages-main-screen__text {
        font-size: 18px;
        color: #e0e0e0;
    }
    
    .home-screen__description {
        font-size: 18px;
        margin-top: 0;
        text-align: left;
        padding-top: 40px;
        line-height: 1.6;
    }
}
/* Базовые стили options, не зависящие от ширины (заголовок, ховер). 
   Размеры карточек/кнопок/колонок — в адаптивном блоке ниже. */
#options .options__title-wrap {
  margin-bottom: 60px;
  text-align: center;
}

#options .options__title {
  color: #f5f5f5;
}

#options .options__item-inner {
  transition: all 0.3s ease;
}

#options .options__item-img img {
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  #options .options__item:hover .options__item-inner {
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  }
  
  #options .options__item:hover .options__item-img img {
    transform: scale(1.05);
  }
}
/* Reviews section: styles injected via JS */


/* ═══════════════════════════════════════════════════════════════
   Попап карты офисов (#cgMapPopup) — был <style> в cryptogex_custom_offices_map_popup
   ═══════════════════════════════════════════════════════════════ */
.cg-map-popup-overlay {
            position: fixed; inset: 0;
            background: rgba(0, 0, 0, .7);
            z-index: 99999;
            display: none;
            align-items: center; justify-content: center;
            padding: 20px;
            -webkit-backdrop-filter: blur(4px);
            backdrop-filter: blur(4px);
        }
        .cg-map-popup-overlay.is-open { display: flex; }
        .cg-map-popup {
            position: relative;
            width: 100%; max-width: 1100px;
            height: 85vh; max-height: 720px;
            background: #1a1a1a;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
            display: grid;
            grid-template-columns: 320px 1fr;
            grid-template-rows: 72px 1fr;
            color: #fff;
        }
        .cg-map-popup__header {
            grid-column: 1 / -1;
            display: flex; align-items: center; justify-content: space-between;
            padding: 0 24px;
            border-bottom: 1px solid rgba(255, 255, 255, .08);
        }
        .cg-map-popup__title {
            margin: 0; font-size: 20px; font-weight: 600;
            color: #fff; font-family: inherit;
        }
        .cg-map-popup__close {
            background: transparent; border: 0;
            color: rgba(255, 255, 255, .7);
            font-size: 28px; cursor: pointer; line-height: 1;
            padding: 6px 12px; border-radius: 8px;
            transition: background .2s ease, color .2s ease;
        }
        .cg-map-popup__close:hover { background: rgba(255, 255, 255, .08); color: #fff; }

        .cg-map-popup__list {
            overflow-y: auto;
            padding: 16px;
            border-right: 1px solid rgba(255, 255, 255, .08);
            background: #141414;
        }
        .cg-map-popup__office {
            padding: 14px 14px;
            border-radius: 10px;
            cursor: pointer;
            margin-bottom: 8px;
            transition: background .2s ease, border-color .2s ease;
            border: 1px solid transparent;
        }
        .cg-map-popup__office:hover,
        .cg-map-popup__office.is-active {
            background: rgba(244, 180, 77, .10);
            border-color: rgba(244, 180, 77, .30);
        }
        .cg-map-popup__office-name {
            font-weight: 600; font-size: 15px;
            margin-bottom: 3px; color: #fff;
        }
        .cg-map-popup__office-address {
            font-size: 13px;
            color: rgba(255, 255, 255, .65);
            line-height: 1.4;
        }

        .cg-map-popup__map {
            width: 100%; height: 100%;
            background: #222; position: relative;
        }
        .cg-map-popup__map-loading,
        .cg-map-popup__map-error {
            position: absolute; inset: 0;
            display: flex; align-items: center; justify-content: center;
            color: rgba(255, 255, 255, .7); font-size: 14px;
            text-align: center; padding: 20px;
        }
        .cg-map-popup__map-error { color: #ff9f9f; }

        /* Кастомная метка-пин */
        .cg-map-popup__pin {
            position: relative;
            width: 40px; height: 52px;
            transform: translate(-50%, -100%);
            cursor: pointer;
            filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .55));
        }
        .cg-map-popup__pin:before {
            content: "";
            position: absolute; left: 50%; top: 0;
            width: 32px; height: 32px;
            margin-left: -16px;
            background: #f4b44d;
            border: 3px solid #fff;
            border-radius: 50% 50% 50% 0;
            transform: rotate(-45deg);
            box-sizing: border-box;
        }
        .cg-map-popup__pin:after {
            content: "";
            position: absolute; left: 50%; top: 9px;
            width: 12px; height: 12px;
            margin-left: -6px;
            background: #1a1a1a;
            border-radius: 50%;
        }

        /* Всплывающая подпись у пина */
        .cg-map-popup__pin-label {
            position: absolute;
            left: 50%; bottom: 56px;
            transform: translateX(-50%);
            background: #fff;
            color: #1a1a1a;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 13px; line-height: 1.35;
            white-space: nowrap;
            box-shadow: 0 4px 12px rgba(0, 0, 0, .35);
            pointer-events: none;
        }
        .cg-map-popup__pin-label strong {
            display: block; font-weight: 600;
            margin-bottom: 2px; font-size: 13px;
        }
        .cg-map-popup__pin-label:after {
            content: "";
            position: absolute; top: 100%; left: 50%;
            transform: translateX(-50%);
            width: 0; height: 0;
            border: 6px solid transparent;
            border-top-color: #fff;
        }

        @media (max-width: 768px) {
            .cg-map-popup {
                grid-template-columns: 1fr;
                grid-template-rows: 60px 160px 1fr;
                max-height: 90vh;
            }
            .cg-map-popup__list {
                border-right: 0;
                border-bottom: 1px solid rgba(255,255,255,.08);
            }
        }

/* ═══════════════════════════════════════════════════════════════
   Ссылки офисов на городских страницах — был cryptogex_city_office_link_styles
   ═══════════════════════════════════════════════════════════════ */
/* Адрес офиса в строке "Офис в … <ГОРОД>. <АДРЕС>" — фирменный золотой,
           кликабельный, открывает поп-ап карты офисов (.js-modal-offices). */
        .advantages-main-screen__text .city-office-link {
            color: #f4b44d;
            text-decoration: none;
            cursor: pointer;
            transition: color .2s ease;
        }
        .advantages-main-screen__text .city-office-link span {
            color: inherit;
        }
        /* Подчёркивание через :after у span — как в штатном .link--yellow,
           но всегда видимое (не только на ховере), чтобы адрес был визуально
           отмечен как кликабельный элемент. */
        .advantages-main-screen__text .city-office-link span:after {
            background-color: #f4b44d;
            transform: scaleX(1);
            transform-origin: bottom left;
            opacity: .55;
        }
        .advantages-main-screen__text .city-office-link:hover {
            color: #f5c96d;
        }
        .advantages-main-screen__text .city-office-link:hover span:after {
            background-color: #f5c96d;
            opacity: 1;
        }

/* ═══════════════════════════════════════════════════════════════
   Маркеры карты — был cryptogex_map_marker_styles
   ═══════════════════════════════════════════════════════════════ */
/* Vue-карта рисует <div class="map__custom-marker"> с SVG-иконкой
           <use href="#icon-map-pin">. Если спрайт не инжектнулся в DOM,
           виден пустой блок 32×32 без графики. Эти правила гарантируют,
           что пин виден всегда: золотой "каплеобразный" маркер с белой
           обводкой и тёмной точкой по центру. */
        .map__custom-marker {
            position: relative;
            width: 32px;
            height: 32px;
            cursor: pointer;
            pointer-events: auto;
        }
        .map__custom-marker svg {
            width: 32px;
            height: 32px;
            display: block;
            color: #f4b44d;
            fill: #f4b44d;
            position: relative;
            z-index: 2;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45));
        }
        /* Декоративный пин-фоллбек — видно, если SVG-иконка не отрисовалась.
           Рисуется под SVG (z-index 0): если SVG пустой, декор видно;
           если SVG с графикой — она ложится поверх. */
        .map__custom-marker:before {
            content: "";
            position: absolute;
            left: 50%;
            top: 0;
            width: 26px;
            height: 26px;
            margin-left: -13px;
            margin-top: -3px;
            background: #f4b44d;
            border: 2px solid #ffffff;
            border-radius: 50% 50% 50% 0;
            transform: rotate(-45deg);
            box-shadow: 0 3px 8px rgba(0, 0, 0, .55);
            z-index: 0;
        }
        .map__custom-marker:after {
            content: "";
            position: absolute;
            left: 50%;
            top: 7px;
            width: 8px;
            height: 8px;
            margin-left: -4px;
            background: #1a1a1a;
            border-radius: 50%;
            z-index: 1;
        }


/* ═══════════════════════════════════════════════════════════════
   Главная: инлайн-хаки, вынесенные из index.php в классы
   (раньше были style="margin-top:100px" и translateX(175px))
   ═══════════════════════════════════════════════════════════════ */
.home-screen__container { margin-top: 100px; }
.yandex_spravochnik { transform: translateX(175px); }


/* ═══════════════════════════════════════════════════════════════
   404 / популярные страницы — вынесено из инлайн <style> в 404.php
   ═══════════════════════════════════════════════════════════════ */
.page-404 { padding: 120px 0 80px; min-height: 70vh; display: flex; align-items: center; }
.error-404 { text-align: center; max-width: 600px; margin: 0 auto; width: 100%; }
.error-404__number { font-size: clamp(120px, 100px + 5vw, 200px); font-weight: 700; line-height: 1; color: #f4b44d; margin-bottom: 24px; text-shadow: 0 4px 16px rgba(244,180,77,0.3); }
.error-404__title { margin-bottom: 24px; }
.error-404__description { color: #9c9c9c; margin-bottom: 40px; }
.error-404__actions { display: flex; flex-direction: column; gap: 16px; align-items: center; margin-bottom: 40px; }
@media (min-width: 768px) { .error-404__actions { flex-direction: row; justify-content: center; } }
.error-404__search { max-width: 400px; margin: 0 auto; }
.error-404__search form { position: relative; }
.error-404__search button { background: none; border: none; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); cursor: pointer; padding: 0; }
.popular-pages { background: rgba(18,14,20,0.66); }
.popular-pages__title { text-align: center; margin-bottom: 40px; }
.popular-pages__grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }


/* ═══════════════════════════════════════════════════════════════
   Блог: инлайн-стили, вынесенные из blog.php / single.php / archive.php
   ═══════════════════════════════════════════════════════════════ */

.blog-loading, .blog-error { text-align: center; padding: 60px 0; color: #f4b44d; font-size: 18px; grid-column: 1 / -1; }
.blog-loading:before { content: ''; display: inline-block; width: 20px; height: 20px; border: 2px solid #f4b44d; border-top: 2px solid transparent; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 10px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.blog-section { background-color: #231f25; position: relative; z-index: 2; }


/* --- single.php --- */
.single-post-wrapper {
    padding: 80px 0;
    max-width: 800px;
    margin: 0 auto;
}

.single-post-article {
    margin-bottom: 60px;
}

.single-post-header {
    text-align: center;
    margin-bottom: 40px;
}

.single-post-category {
    margin-bottom: 20px;
}

.single-post-title {
    color: #f5f5f5;
    margin-bottom: 20px;
    line-height: 1.2;
}

.single-post-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: #9c9c9c;
}

.single-post-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(244, 180, 77, 0.16);
    width: 100%;
    height: 492px; /* Фиксированная высота */
    position: relative;
}

.single-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.single-post-content {
    margin-bottom: 40px;
}

.post-content {
    color: #f5f5f5;
    line-height: 1.7;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #f5f5f5;
    margin: 32px 0 16px;
}

.post-content h2 {
    font-size: 24px;
}

.post-content h3 {
    font-size: 20px;
}

.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.single-post-footer {
    padding: 24px 0;
    border-top: 1px solid rgba(244, 180, 77, 0.2);
    border-bottom: 1px solid rgba(244, 180, 77, 0.2);
}

.post-tags {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tags-label {
    color: #f4b44d;
    font-weight: 600;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list a {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(244, 180, 77, 0.1);
    color: #f4b44d;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.tags-list a:hover {
    background: rgba(244, 180, 77, 0.2);
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    padding: 24px 0;
    border-top: 1px solid rgba(244, 180, 77, 0.2);
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-previous a,
.nav-next a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f4b44d;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #f5f5f5;
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.related-posts {
    margin-top: 60px;
}

.related-posts-title {
    color: #f5f5f5;
    text-align: center;
    margin-bottom: 40px;
}

.related-posts-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.related-post-card {
    background: rgba(18, 14, 20, 0.66);
    border: 1px solid rgba(244, 180, 77, 0.16);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    border-color: rgba(244, 180, 77, 0.4);
}

.related-post-image {
    width: 100%;
    height: 200px; /* Или 492px если хотите тот же размер */
    overflow: hidden;
    position: relative;
}

.related-post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-thumbnail {
    transform: scale(1.05);
}

.related-post-content {
    padding: 20px;
}

.related-post-title {
    color: #f5f5f5;
    margin-bottom: 12px;
}

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

.related-post-card:hover .related-post-title a {
    color: #f4b44d;
}

.related-post-excerpt {
    color: #9c9c9c;
    margin-bottom: 16px;
    line-height: 1.5;
}

.no-related-posts {
    text-align: center;
    color: #9c9c9c;
    grid-column: 1 / -1;
    padding: 40px 0;
}

@media (max-width: 768px) {
    .single-post-wrapper {
        padding: 40px 0;
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-previous,
    .nav-next {
        text-align: center;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* --- archive.php --- */
/* Адаптивность для 2 колонок */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   3D-логотип: ванильный код создаёт .canvas-cryptogex БЕЗ Vue scoped-
   атрибута [data-v-0e83fa2f], под которым были стили в main.min.css.
   Дублируем правила без атрибута, иначе у контейнера нет высоты и
   логотип рендерится в 0×0 (невидим).
   ═══════════════════════════════════════════════════════════════ */
/* .canvas-cryptogex теперь живёт ВНУТРИ absolute-host three-crypto-gex и
   заполняет его целиком. Собственное позиционирование (top/margin) убрано —
   зону задаёт host, иначе двойное смещение. */
.canvas-cryptogex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
three-crypto-gex {
  display: block;
  position: absolute;
  top: 75px;
  left: 0;
  width: 100%;
  height: 650px;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
@media screen and (max-width: 768px) {
  three-crypto-gex {
    display: block;
    top: 220px;
    height: 380px;
  }
}
.canvas-cryptogex canvas {
  display: block;
  height: 100%;
  width: 100%;
}

/* QR-модалка: стили были только scoped ([data-v-29190d8b]) — дублируем без атрибута. */
.modal-qr {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}
.modal-qr__img { display: none; }
@media screen and (min-width: 1025px) {
  .modal-qr__img { display: block; width: 164px; }
  .modal-qr__img img { height: auto; width: 100%; }
}
.modal-qr__link { color: #f4b44d; }
.modal-qr__link svg { fill: currentColor; }

/* ============================================================
   Выпадающее подменю «Услуги ВЭД» в шапке.
   Надёжная логика: display:none по умолчанию, display:block по ховеру.
   Не зависит от opacity/visibility (которые могли не срабатывать).
   ============================================================ */
.nav_list .sub-menu {
  display: none !important;
}
@media (min-width: 1025px) {
  .nav_list li:has(> .sub-menu),
  .nav_list .nav__item:has(> .sub-menu) {
    position: relative;
  }
  /* Подменю скрыто, показывается ТОЛЬКО при наведении на родителя */
  .nav_list li:hover > .sub-menu,
  .nav_list .nav__item:hover > .sub-menu {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    margin: 0;
    margin-top: 12px;
    padding: 8px;
    background: #231f25;
    border: 1px solid rgba(244, 180, 77, 0.3);
    border-radius: 8px;
    box-shadow: 0 6px 36px rgba(0, 0, 0, 0.4);
    list-style: none;
    z-index: 1001;
  }
  .nav_list .sub-menu li {
    list-style: none;
  }
  .nav_list .sub-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 4px;
    color: #f5f5f5;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease;
  }
  .nav_list .sub-menu a:hover {
    background: rgba(244, 180, 77, 0.1);
  }
}

/* ============================================================
   Мобильное подменю «Услуги ВЭД» (<=1024px).
   Hover на тач-экранах нет, поэтому раскрытие — по классу .is-open,
   который вешает JS (initMobileMenu) при тапе на родительский пункт.
   ============================================================ */
@media (max-width: 1024px) {
  .nav_list .nav__item.is-open > .sub-menu {
    display: block !important;
    position: static;
    margin: 12px 0 0;
    padding: 8px 0 0 16px;
    list-style: none;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .nav_list .nav__item > .sub-menu li {
    list-style: none;
  }
  .nav_list .nav__item > .sub-menu a {
    display: block;
    padding: 8px 0;
    color: #f5f5f5;
    font-size: 16px;
    text-decoration: none;
  }
  /* стрелка-индикатор у раскрываемого пункта */
  .nav_list .nav__item:has(> .sub-menu) > a::after,
  .nav_list .nav__item:has(> .sub-menu) > .nav__link::after {
    content: '▾';
    display: inline-block;
    margin-left: 8px;
    transition: transform .2s ease;
  }
  .nav_list .nav__item.is-open:has(> .sub-menu) > a::after,
  .nav_list .nav__item.is-open:has(> .sub-menu) > .nav__link::after {
    transform: rotate(180deg);
  }
}

/* ============================================================
   Кнопка «Войти» (.header__login).
   На бою стили жили в JS-инъекции functions.php (создавались строкой
   через wp_head). При рефакторинге разметку кнопки перенесли в header.php,
   а стили потерялись — на главной (main.min.css) их нет, поэтому кнопка
   была без оформления. Переносим 1:1 из боевой инъекции.
   ============================================================ */
.header__login {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 18px !important;
  background-color: #f4b44d !important;
  color: #231f25 !important;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  transition: all 0.15s ease;
}
.header__login:hover {
  background-color: #e2a23c !important;
  transform: translateY(-1px);
}
.header__login svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
}
@media (max-width: 480px) {
  .header__login { padding: 10px 12px !important; }
  .header__login span { display: none; }
}

/* ============================================================
   Hero-эффекты (перенесены из Vue):
   .waves-effect — золотые анимированные линии (canvas 2D)
   #fluid-effect — облако-дым за курсором (WebGL, на весь экран)
   ============================================================ */
.waves-effect {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 100%;
  z-index: -1;
}
#fluid-effect {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   Переключатель регионов в шапке — стили + позиционирование.
   На главной (main.min.css) этих стилей не было (лежали в
   header-footer.css, который грузится только на внутренних).
   Переносим из боевого main.min.css-хвоста. Плюс «пружина»
   margin-left:auto перенесена с удалённой .header__telegram
   на .header__region — чтобы регион+кнопка ушли вправо.
   ============================================================ */
/* Стили переключателя регионов удалены — единый источник в
   header-footer.css (секция HEADER REGION SELECTOR). */

/* Позиционирование шапки — ТОЧНЫЕ значения с боевого (computed).
   .nav_list не имел стилей (потерян) → меню растягивалось.
   Боевые значения: nav_list flex gap:48px center; header__nav flex-start;
   регион отжимается вправо margin-left:auto. */
@media (min-width: 1025px) {
  .header .container {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    height: 100% !important;
  }
  /* Меню-список: компактный флекс, gap уменьшен чтобы не налезать на регион */
  .nav_list {
    display: flex !important;
    gap: 32px !important;
    justify-content: flex-start !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  /* Меню не растягивается на свободное место — по ширине контента */
  .header__nav {
    display: flex !important;
    justify-content: flex-start !important;
    flex: 0 1 auto !important;
    width: auto !important;
  }
  /* Регион отжимается в свободное пространство справа.
     position:relative для строки задаётся отдельным блоком min-width:1301px,
     чтобы в зоне 1025-1300 регион мог уйти ПОД шапку (absolute). */
  .header > .container > .header__region {
    margin-left: auto !important;
    margin-right: 8px !important;
    z-index: 10 !important;
  }
}
/* Регион в строке шапки (relative) — только на широком десктопе ≥1301px.
   В зоне 1025-1300 он absolute под шапкой (см. блок 1025-1300 выше). */
@media (min-width: 1301px) {
  .header > .container > .header__region {
    position: relative !important;
  }
}

/* Стрелки свопа в калькуляторе: иконка #icon-arrows-left-right имеет
   fill="currentColor", поэтому ей нужен COLOR (не только fill).
   Без этого стрелки берут цвет текста (серый), а не золотой. */
.exchange__switch-icon {
  color: #f4b44d !important;
  fill: #f4b44d !important;
}
.exchange__switch-icon use {
  fill: currentColor;
}

/* ============================================================
   Адаптив секции options («Как происходит процедура обмена»).
   Раньше это была JS-инъекция в конце main.min.js (applyOptionsStyles),
   которая через style.cssText перебивала Vue-вёрстку по брейкпоинтам.
   Vue убран — перебивать нечего, поэтому переводим логику в обычный CSS.
   Брейкпоинты 1:1 с бывшей функцией: <768 / 768-1024 / 1025-1199 / 1200+.
   ============================================================ */
#options {
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
/* Планшет/мобайл: hero больше не абсолютный, секция встаёт за калькулятором. */
@media (max-width: 1024px) {
  #options {
    top: 0 !important;
    margin-top: 0 !important;
  }
}
#options .options__list {
  display: grid !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
#options .options__item-inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}
#options .options__item-img {
  width: 100% !important;
  height: 350px !important;
  min-height: 350px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}
#options .options__item-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-height: 350px !important;
}
#options .options__item-title {
  color: #f5f5f5 !important;
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}
#options .options__item-description {
  color: #9c9c9c !important;
  flex-grow: 1 !important;
  min-height: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.4 !important;
}
#options .options__item__btn {
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* --- Десктоп 1200px+ : 4 колонки --- */
@media (min-width: 1200px) {
  #options .options__list {
    gap: 32px !important;
    grid-template-columns: repeat(4, 1fr) !important;
  }
  #options .options__item-inner { padding: 35px 26px !important; min-height: 480px !important; }
  #options .options__item-img { margin-bottom: 16px !important; }
  #options .options__item-title { margin-bottom: 8px !important; font-size: 18px !important; }
  #options .options__item-description { margin-bottom: 16px !important; font-size: 15px !important; }
  #options .options__item__btn {
    font-size: 14px !important; height: 48px !important; max-width: 180px !important; margin-top: 16px !important;
  }
}

/* --- Узкий десктоп 1025-1199px : 2 колонки --- */
@media (min-width: 1025px) and (max-width: 1199px) {
  #options { margin-top: 40px !important; }
  #options .options__list {
    gap: 24px !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #options .options__item-inner { padding: 32px 20px !important; min-height: 480px !important; }
  #options .options__item-img { margin-bottom: 16px !important; }
  #options .options__item-title { margin-bottom: 8px !important; font-size: 18px !important; }
  #options .options__item-description { margin-bottom: 16px !important; font-size: 15px !important; }
  #options .options__item__btn {
    font-size: 14px !important; height: 48px !important; max-width: 180px !important; margin-top: 16px !important;
  }
}

/* --- Планшет 768-1024px : 2 колонки --- */
@media (min-width: 768px) and (max-width: 1024px) {
  #options .options__list {
    gap: 24px !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #options .options__item-inner { padding: 28px 20px !important; min-height: 450px !important; }
  #options .options__item-img { margin-bottom: 16px !important; }
  #options .options__item-title { margin-bottom: 8px !important; font-size: 18px !important; }
  #options .options__item-description { margin-bottom: 16px !important; font-size: 15px !important; }
  #options .options__item__btn {
    font-size: 18px !important; height: 60px !important; max-width: 200px !important; margin-top: 16px !important;
  }
}

/* --- Мобайл <768px : 1 колонка --- */
@media (max-width: 767px) {
  #options {
    top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  #options .options__list {
    gap: 16px !important;
    grid-template-columns: 1fr !important;
  }
  #options .options__item-inner { padding: 20px 12px !important; min-height: 380px !important; }
  #options .options__item-img { margin-bottom: 8px !important; }
  #options .options__item-title { margin-bottom: 4px !important; font-size: 16px !important; }
  #options .options__item-description { margin-bottom: 12px !important; font-size: 14px !important; }
  #options .options__item__btn {
    font-size: 14px !important; height: 44px !important; max-width: 260px !important; margin-top: 8px !important;
  }
}

/* ============================================================
   FAQ-аккордеон: раскрытие по классу .active (вешает JS initFaqAccordion).
   Раньше высоту тела задавал Vue inline-стилем; переносим в CSS.
   ============================================================ */
.accordion__body {
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion__item.active .accordion__body {
  max-height: 600px;
}

/* ============================================================
   Модалка «Комиссии и лимиты»: стили были scoped ([data-v-dcc105aa])
   в main.min.css. JS-версия генерирует HTML без scoped-атрибута,
   поэтому дублируем стили без него. Перенос 1:1.
   ============================================================ */
.commissions {
  padding: 16px 16px 32px;
}
@media screen and (min-width: 1200px) {
  .commissions {
    padding: 24px 60px 60px;
  }
}
.commissions--grid {
  display: grid;
  gap: 12px;
}
@media screen and (min-width: 1025px) {
  .commissions--grid {
    gap: 16px;
    grid-template-columns: repeat(12, 1fr);
  }
}
.commissions__table-top {
  margin-bottom: 24px;
}
@media screen and (min-width: 1025px) {
  .commissions__table-top {
    border-bottom: 1px solid #9c9c9c;
    padding-bottom: 12px;
  }
}
.commissions__table-top-item {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}
@media screen and (min-width: 1025px) {
  .commissions__table-top-item:first-child {
    grid-column: 1 / span 2;
    justify-content: flex-start;
  }
}
.commissions__table-top-item:nth-child(2) {
  display: none;
}
@media screen and (min-width: 1025px) {
  .commissions__table-top-item:nth-child(2) {
    display: block;
    grid-column: 3 / span 4;
  }
}
.commissions__table-top-item:nth-child(3) {
  display: none;
}
@media screen and (min-width: 1025px) {
  .commissions__table-top-item:nth-child(3) {
    display: block;
    grid-column: 7 / span 4;
  }
}
.commissions__table-link-offices {
  align-items: center;
  display: flex;
}
.commissions__table-link-offices svg {
  height: 16px;
  width: 16px;
  fill: #f4b44d;
}
.commissions__table-body {
  display: grid;
  gap: 12px;
}
@media screen and (min-width: 1025px) {
  .commissions__table-body {
    gap: 24px;
  }
}
.commissions__office {
  border-bottom: 1px solid #9c9c9c;
  padding-bottom: 12px;
}
@media screen and (min-width: 1025px) {
  .commissions__office {
    padding-bottom: 24px;
  }
}
.commissions__office-tippy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.commissions__office-tippy-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.commissions__office-tippy-item p:last-child {
  color: #9c9c9c;
}
@media screen and (min-width: 1025px) {
  .commissions__office-item:first-child {
    grid-column: 1 / span 2;
  }
  .commissions__office-item:nth-child(2) {
    grid-column: 3 / span 4;
  }
  .commissions__office-item:nth-child(3) {
    grid-column: 7 / span 4;
  }
  .commissions__office-item:nth-child(4) {
    grid-column: 11 / span 2;
  }
}
.commissions__office-city {
  align-items: center;
  display: flex;
  gap: 16px;
}
.commissions__office-city-flag {
  flex-shrink: 0;
  height: clamp(24px, 16px + 1.6666666667vw, 40px);
  width: clamp(24px, 16px + 1.6666666667vw, 40px);
}
.commissions__office-city-flag svg {
  border-radius: 4px;
  height: 100%;
  width: 100%;
}
.commissions__office-city-label {
  align-items: center;
  cursor: default;
  display: inline-flex;
  gap: 4px;
  margin-bottom: 4px;
}
.commissions__office-item-label-mob {
  color: #9c9c9c;
  margin-bottom: 8px;
}
@media screen and (min-width: 1025px) {
  .commissions__office-item-label-mob {
    display: none;
  }
}
.commissions__office-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
@media screen and (min-width: 1025px) {
  .commissions__office-grid {
    gap: 8px;
  }
}
.commissions__office-conditions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.commissions__office-conditions:first-child {
  grid-column: 1 / span 3;
}
.commissions__office-conditions:nth-child(2) {
  grid-column: 4 / span 4;
}
.commissions__office-conditions:nth-child(3) {
  grid-column: 8 / span 5;
}
.commissions__office-conditions span:last-child {
  color: #9c9c9c;
}
@media screen and (min-width: 1025px) {
  .commissions__office-btns {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}
.commissions__office-btn {
  width: 100%;
}
.commissions__map {
  border-radius: 8px;
  height: 480px;
  margin-top: 24px;
  overflow: hidden;
}
@media screen and (min-width: 1025px) {
  .commissions__map {
    margin-top: 40px;
  }
}

/* ============================================================
   Калькулятор: селект города и предупреждение о мин. сумме
   (добавлены при переходе на градацию тарифов по городам).
   ============================================================ */
.exchange__city {
  margin-bottom: 0;
  margin-top: -8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.exchange__city-col {
  flex: 0 0 auto;
  min-width: 160px;
}
.exchange__city .exchange__label {
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
}
.exchange__city-wrap {
  position: relative;
}
.exchange__city-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(18, 14, 20, 0.8);
  border: 1px solid rgba(244, 180, 77, 0.3);
  border-radius: 10px;
  color: #f5f5f5;
  font-size: 16px;
  font-weight: 500;
  padding: 14px 44px 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.exchange__city-select:hover,
.exchange__city-select:focus {
  border-color: #f4b44d;
  outline: none;
}
.exchange__city-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #f4b44d;
  border-bottom: 2px solid #f4b44d;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.exchange__city-select option {
  background: #231f25;
  color: #f5f5f5;
}
.exchange__min-warning {
  display: none;
  margin: 0 0 8px;
  color: #ff6b6b;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  flex: 1 1 auto;
}

/* ============================================================
   Калькулятор: футер формы (Обменять + Все тарифы) и попап тарифов.
   ============================================================ */
.exchange__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}
.exchange__footer .exchange__btn {
  flex: 0 0 auto;
}
.exchange__tariffs-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #9c9c9c;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 4px;
  transition: color 0.2s ease;
}
.exchange__tariffs-btn:hover {
  color: #f4b44d;
}

/* --- Попап тарифов --- */
.cg-tariffs-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}
.cg-tariffs {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  background: #1a161d;
  border: 1px solid rgba(244, 180, 77, 0.2);
  border-radius: 16px;
  padding: 28px;
}
.cg-tariffs__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: #9c9c9c;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}
.cg-tariffs__close:hover { color: #f5f5f5; }
.cg-tariffs__title {
  color: #f5f5f5;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 6px;
  padding-right: 40px;
}
.cg-tariffs__sub {
  color: #9c9c9c;
  font-size: 15px;
  margin: 0 0 16px;
}
.cg-tariffs__time {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9c9c9;
  font-size: 14px;
  margin: 0 0 20px;
}
.cg-tariffs__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
}
.cg-tariffs__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cg-tariffs__item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  transition: border-color 0.2s ease;
}
.cg-tariffs__item.is-active {
  border-color: #f4b44d;
  background: rgba(244, 180, 77, 0.06);
}
.cg-tariffs__item-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.cg-tariffs__item-name {
  color: #f5f5f5;
  font-size: 18px;
  font-weight: 600;
}
.cg-tariffs__item-rate {
  color: #f5f5f5;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.cg-tariffs__item.is-active .cg-tariffs__item-rate {
  color: #f4b44d;
}
.cg-tariffs__item-range {
  color: #9c9c9c;
  font-size: 14px;
}
