/* =========================
   Base / Theme
========================= */
*,
*::before,
*::after { box-sizing: border-box; }

:root{
  /* Токены темы (могут переопределяться из Django) */
  --bg:#0b0b0f;
  --ink:#ffffff;
  --muted:#94a3b8;
  --panel:#0d0d12;
  --border:rgba(255,255,255,.10);
  --accent-blue:#1d4ed8;    /* ← LandingConfig.accent_blue */
  --accent-brown:#8B5E3C;   /* ← LandingConfig.accent_brown */
  --shadow-1:0 0 0 2px rgba(29,78,216,.12), 0 0 0 4px rgba(139,94,60,.10);
  --shadow-1-hover:0 0 0 2px rgba(29,78,216,.22), 0 0 0 4px rgba(139,94,60,.18);
  --ring:0 0 0 3px rgba(29,78,216,.20);
}

html,body{height:100%}
html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font:16px/1.6 Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

body {
  background: url("/media/10_.webp") no-repeat center center fixed;
  background-size: cover;
}


@media (max-width: 500px) {
  body {
    background: url("/media/20_phone.webp");
    background-size: cover;
  }
}

.hero-subtitle {
  white-space: pre-line;
}
/* Контейнер и секции */
.container{ max-width:1175px; margin:0 auto; padding:0 20px; }
.section{ padding:56px 0; border-top:1px solid var(--border); }
.section:first-of-type{ border-top:none; }
.section-title{
  margin:0 0 10px; font-size:28px; line-height:1.25; font-weight:800;
  text-shadow:0 0 24px rgba(29,78,216,.20);
}
.section-blurb{ margin:0 0 18px; color:#cbd5e1; }

/* Ссылки / утилиты */
.link{ color:var(--ink); text-decoration:none; border-bottom:1px dashed rgba(255,255,255,.25); }
.link:hover{ border-bottom-color:transparent; }
.muted{ color:var(--muted); }

/* Кнопки */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 16px; border-radius:14px; text-decoration:none; color:var(--ink);
  transition:border-color .2s, box-shadow .2s, transform .03s;
}
.btn:active{ transform:translateY(1px); }
.btn-outline {
    background: #ffffff47;
    border: 1px solid #1d4ed826;
    box-shadow: inset 0 0 7px 0px rgb(255 255 255 / 50%);
    width: fit-content;
}
.btn-outline:hover {
    border-color: #2201a5;
    box-shadow: 0 0 20px 13px rgb(0 46 213 / 51%) inset;
}
.btn-thin {
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-1);
    background: #ffffff24;
    background: linear-gradient(180deg, rgb(107 107 255 / 55%), rgba(13, 13, 18, .20));
    display: flex;
    justify-content: center;
    margin: 0 18px;
}
.btn-thin:hover{ box-shadow: 0 0 4px 0px rgb(255 255 255), 0 0 9px 4px rgb(0 61 173);}

/* Хедер */
.header{
  position:sticky; top:0; z-index:40;
  background:var(--bg); border-bottom:1px solid var(--border);
  backdrop-filter:saturate(120%) blur(6px);
}
.header-row{ display:flex; align-items:center; justify-content:space-between; padding:12px 20px; }
.brand{ display:flex; align-items:center; gap:10px; color:var(--ink); text-decoration:none; }
.brand-logo{ height:36px; width:auto; object-fit:contain; }
.brand-name{ font-weight:800; letter-spacing:.2px; }
.header-right{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.contacts{ display:flex; gap:14px; flex-wrap:wrap; }
.lang select{
  background:var(--bg); color:var(--ink);
  border:1px solid var(--border); border-radius:10px; padding:6px 10px;
}

/* Hero */
.hero {
    position: relative;
    padding: 186px 0;
    border-block: 1px solid var(--border);

    /* фон */
    background-image: url("/media/hero-bg.jpg"); /* путь к твоему файлу */
    background-size: cover;      /* растянуть пропорционально */
    background-position: center; /* центрировать */
    background-repeat: no-repeat;/* без повторений */
    background-attachment: scroll; /* или fixed, если хочешь параллакс */
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 66%); /* затемнение */
    z-index: 0;
}
.hero > * { position: relative;  }

#team{    
    position: relative;
    padding: 186px 0;
    border-block: 1px solid var(--border);

    /* фон */
    background-image: url("/media/team.jpg"); /* путь к твоему файлу */
    background-size: cover;      /* растянуть пропорционально */
    background-position: center; /* центрировать */
    background-repeat: no-repeat;/* без повторений */
    background-attachment: scroll; /* или fixed, если хочешь параллакс */
}

#team::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 66%); /* затемнение */
    z-index: 0;
}
#team > * { position: relative; z-index: 1; }



.hero-inner{ display:flex; flex-direction:column; gap:18px; }
.hero-title{
  font-size:42px; line-height:1.15; margin:0;
  text-shadow:0 0 24px rgba(29,78,216,.25);
}
.hero-subtitle{ color:#cbd5e1; margin:0; }

/* Карточки сервисов */
.services{ padding:36px 0 80px; }
.grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
@media (max-width:980px){ .grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px){ .grid{ grid-template-columns:1fr; } }

.card{
  border:1px solid var(--border); border-radius:16px; padding:18px 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 46%), rgb(0 0 0 / 68%));
  box-shadow:var(--shadow-1);
  transition:box-shadow .2s, transform .08s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card:hover{ box-shadow:var(--shadow-1-hover); transform:translateY(-1px); }
.card-icon {
    width: 100%;
    max-height: 218px;
    opacity: .5;
    display: block;
}
.card-title{ margin:10px 0 6px; font-weight:800;    text-align: center; }
.card-short{ color:#cbd5e1; margin:0 0 8px; padding: 0 18px; margin-top: 0.5rem;}
.card-body{ color:#e2e8f0; font-size:14px; padding: 0 18px;}
.card-list{ margin:10px 0 14px; padding-left:18px; padding: 0 30px;}
.card-list-item {
    margin: 4px 0;
    padding-left: 6px;
    border: 1px dashed rgb(255 255 255 / 6%);
    border-radius: 6px;
}



/* ======= ABOUT ======= */
/* ======= ABOUT ======= */
.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Каждая карточка занимает примерно 50% ширины
   (с учётом gap это будет 2 в ряд) */
.about-item,
.about-benefit {
  flex: 1 1 calc(50% - 6px);
}

/* На мобиле — по одной в ряд */
@media (max-width:760px){
  .about-item,
  .about-benefit {
    flex: 1 1 100%;
  }
}

.about-item{
  padding:12px14px; padding:12px 14px;
  border:1px solid var(--border); border-radius:12px;
  background:linear-gradient(180deg, rgba(13,13,18,.5), rgba(13,13,18,.15));
}
.about-benefit{
  padding:10px 12px; border:1px dashed var(--border); border-radius:10px;
}

/* ======= HOW WE WORK (steps) ======= */
.steps{
  list-style:none; margin:18px 0 0; padding:0;
  display:grid; gap:12px;
}
.step{
  display:flex; gap:12px; align-items:flex-start;
  padding:12px; border:1px solid var(--border); border-radius:14px;
  background: linear-gradient(180deg, rgb(107 107 255 / 55%), rgba(13, 13, 18, .20));
}
.step-num{
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: #0600ff00;
    color: #ffffff;
    box-shadow: inset 0 0 15px 0px rgb(255 255 255 / 38%);
    border: 5px rgb(255 255 255 / 80%);
}
.step-text{ display:grid; gap:4px; }
.step-title{ font-weight:800; }
.step-desc{ color:#cbd5e1; }

/* ======= CONTACT ======= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 36px;
    align-items: start;
}
@media (max-width:880px){ .contact-grid{ grid-template-columns:1fr; } }

.contact-form{
  border:1px solid var(--border); border-radius:16px; padding:16px;
  background: linear-gradient(359deg, rgb(0 0 0 / 50%), #0b0b0f);
  box-shadow:var(--shadow-1);
}
.contact-form label{ display:block; margin:0 0 12px; }
.contact-form label.full{ grid-column:1/-1; }
.contact-form span{ display:block; margin:0 0 6px; color:#cbd5e1; font-size:14px; }
#phoneFlag{margin: 0;}
.contact-form input,
.contact-form textarea{
  width:100%; color:var(--ink); background:transparent;
  border:1px solid var(--border); border-radius:12px;
  padding:10px 12px; outline:none; transition:border-color .2s, box-shadow .2s;
}
.contact-form textarea{ resize:vertical; min-height:108px; }
.contact-form input:focus,
.contact-form textarea:focus{ border-color:var(--accent-blue); box-shadow:var(--ring); }

.input-error{ border-color:#b42318 !important; outline:0 }
.err{ color:#fca5a5; height:14px; display:block; }

/* ======= MAP (full-bleed) ======= */
.map-section{
  width:100vw;
  margin-left:50%;
  transform:translateX(-50%); /* тянем секцию за пределы контейнера */
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
  background:var(--bg);
}
.map-canvas{ width:100%; height:56vh; min-height:420px; }

/* Кастомный белый пин (если используешь white-pin) */
.white-pin{
  display:inline-flex; align-items:center; justify-content:center;
  width:28px; height:28px; border-radius:50%;
  background:#fff; border:2px solid var(--accent-blue);
  box-shadow:0 0 0 2px rgba(139,94,60,.30);
  pointer-events:auto;
}
.white-pin .pin-core{
  display:block; width:8px; height:8px; border-radius:50%;
  background:var(--accent-brown);
}

/* Маркер «как Google Maps» (используется в app.js как .gm-marker .gm-pin) */
.gm-marker .gm-pin{ filter:drop-shadow(0 6px 10px rgba(0,0,0,.45)); }

/* ======= Leaflet кастом-контролы ======= */
.leaflet-control.custom-ctrl{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:12px;
  padding:8px;
  display:flex; align-items:center; gap:10px;
  box-shadow:var(--shadow-1);
}

.zoom-control .zoom-btn{
  width:36px; height:36px;
  display:inline-flex; align-items:center; justify-content:center;
  font-size:20px; font-weight:800; line-height:1;
  background:transparent; color:var(--ink);
  border:1px solid var(--accent-blue);
  border-radius:10px; cursor:pointer;
  transition:border-color .2s, transform .03s;
}
.zoom-control .zoom-btn:hover{ border-color:var(--accent-brown); }
.zoom-control .zoom-btn:active{ transform:translateY(1px); }

.addr-badge{
  max-width:42vw;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  padding:8px 12px; color:#cbd5e1;
  border:1px solid var(--border); border-radius:10px;
}

/* Правая верхняя кнопка Go */
.go-control .go-btn{
  display:inline-flex; align-items:center; justify-content:center;
  height:40px; padding:0 14px; color:var(--ink); text-decoration:none;
  border:1px solid var(--accent-blue); border-radius:12px;
  box-shadow:0 0 0 2px rgba(29,78,216,.12) inset;
  transition:border-color .2s, transform .03s;
}
.go-control .go-btn:hover{ border-color:var(--accent-brown); }
.go-control .go-btn:active{ transform:translateY(1px); }

/* ======= Footer ======= */
.footer{ border-top:1px solid var(--border); padding:18px 0 28px; }
.footer-row{ display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap;align-items: center; }

/* Адаптивные мелочи */
@media (max-width:760px){
  .hero-title{ font-size:34px; }
  .addr-badge{ max-width:58vw; }
}
@media (max-width:420px){
  .hero-title{ font-size:30px; }
  .section{ padding:44px 0; }
}



.leaflet-touch .leaflet-control-attribution, .leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
  box-shadow: none;
  display: none;
}


/* Tap-cards for About */
.tap-card{
  min-height: 94px;
  cursor:pointer;
  user-select:none;
  transition:transform .06s ease-out, box-shadow .2s;
  position:relative;
  height: fit-content;
}
.tap-card.press{ transform:scale(0.99); }

.tap-card .tap-head {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 90%;
}

.tap-icon{
  width:22px; height:22px; flex:0 0 22px; position:relative;
  border:1px solid var(--accent-blue); border-radius:8px;
  display:inline-flex; align-items:center; justify-content:center;
  box-shadow:0 0 0 2px rgba(29,78,216,.10) inset;
}

.tap-icon{
  content:"";
  position:absolute; right:10px; top:12px;
 border-right:2px solid #cbd5e1; border-bottom:2px solid #cbd5e1;

}
/* стрелка-указатель (▼) как индикатор раскрытия */
.tap-card::after{
  content:"";
  position:absolute; right:17px; top:17px;
  width:8px; height:8px; border-right:2px solid #cbd5e1; border-bottom:2px solid #cbd5e1;
  transform:rotate(45deg); transition:transform .2s;
}
.tap-card.is-open::after{ transform:rotate(-135deg);top: 21px; }

/* скрытая панель с деталями (плавная высота) */
.about-detail {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: #e2e8f0;
  overflow: hidden;

  max-height: 0;        /* закрыто */
  opacity: 0;
  margin-top: 0;

  transition:
    max-height 0.25s ease,
    opacity 0.2s ease,
    margin-top 0.2s ease;
}

/* когда карточка открыта */
.tap-card.is-open .about-detail {
  max-height: 750px;    /* достаточно для твоего текста */
  opacity: 1;
  margin-top: 10px;
}


/* чуть усилим hover/active у about-элементов */
.about-item.tap-card,
.about-benefit.tap-card{
    background: linear-gradient(180deg, rgb(132 132 132 / 64%), rgb(1 1 15 / 75%));
}
.about-item.tap-card:hover,
.about-benefit.tap-card:hover{
  box-shadow:var(--shadow-1-hover);
}


/* ===== Infrastructure & Security ===== */

.section-security {
  padding-top: 48px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
}

.section-security-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}



/* ===== Security carousel (horizontal) ===== */

.security-carousel{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

/* лента */
.security-track{
  flex: 1 1 auto;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 10px;
  border-radius: 16px;
}

/* карточки остаются твоими, но задаём ширину для “сколько видно на экране” */
.security-track .security-card{
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 327px);
  scroll-snap-align: start;
}


/* На телефоне — компактнее */
@media (max-width: 560px){
  .security-track{
    gap: 14px;
  }
  .security-track .security-card{
    width: 65vw;  /* 1 карточка почти на экран */
    max-width: 360px;
  }
}

/* Стрелки */
.security-nav{
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  transition: transform .14s ease, opacity .18s ease, background .18s ease, box-shadow .18s ease;
  user-select: none;
}

.security-nav:hover{
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  transform: translateY(-1px);
}

.security-nav:active{
  transform: translateY(0) scale(0.94);
}

/* “вау” клик-анимация от JS */
.security-nav.is-pressed{
  transform: scale(0.92);
}

/* скрытие на краях */
.security-nav.is-hidden{
  opacity: 0;
  pointer-events: none;
}

/* Если скроллить нечего — прячем стрелки */
.security-carousel.no-scroll .security-nav{
  display: none;
}

/* ===== Кастомный темно-синий скроллбар для security-track ===== */

/* WebKit */
.security-track::-webkit-scrollbar{
  height: 10px;
}
.security-track::-webkit-scrollbar-track{
  background: rgba(15, 23, 42, 0.72);
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.95),
    0 0 10px rgba(0, 0, 0, 0.7);
}
.security-track::-webkit-scrollbar-thumb{
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 1);
  background-clip: padding-box;
  background: linear-gradient(180deg, rgba(255,255,255,0.75), #1d4ed8);
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.75), 0 0 0 1px rgba(255,255,255,0.25);
}
.security-track::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, rgba(255,255,255,0.9), #1e40af);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.95), 0 0 0 1px rgba(255,255,255,0.45);
}

/* Firefox */
.security-track{
  scrollbar-width: thin;
  scrollbar-color: #1d4ed8 rgba(15, 23, 42, 0.7);
}






@media (max-width: 560px) {
  .tap-card .tap-head{
      padding-right: 3rem;
  }
}

/* Карточка безопасности */
.security-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(358deg, rgb(13 13 18 / 95%), rgb(13 13 18 / 55%));
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  transition: transform 0.08s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.security-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1-hover);
  border-color: var(--accent-blue);
}

/* Картинка — главный акцент */
.security-card-media {
    display: flex;
    padding-top: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    justify-content: center;
}

.security-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 10% 0,
    rgba(148, 163, 184, 0.35),
    transparent 55%
  );
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.security-card-media img {
  display: block;
  height: 160px;
  object-fit: cover;
}

/* Текстовая часть */
.security-card-text {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.security-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.security-card-subtitle {
  margin: 0;
  font-size: 13px;
  color: #77aceb;
}

.security-card-body {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}




/* ===== Language dropdown with flags ===== */
.lang-dropdown{ position:relative }
.lang-btn{
  display:inline-flex; align-items: center; gap:8px;
  padding:8px 12px; color:#fff; background:transparent;
  border:1px solid var(--border); border-radius:12px; cursor:pointer;
}
.lang-btn:hover{ border-color:var(--accent-blue) }
.lang-btn .flag{ font-size:18px; line-height:1 }

.lang-menu{
  position:absolute; right:0; top:calc(100% + 8px);
  background:#0b0b0f; border:1px solid var(--border);
  border-radius:12px; padding:6px; min-width:220px;
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  display:none; z-index:50;
}
.lang-menu.open{ display:block; }
.lang-item{
  display:flex; align-items:center; gap:10px; width:100%;
  background:transparent; color:#fff; border:0; text-align:left;
  padding:8px 10px; border-radius:10px; cursor:pointer;
}
.lang-item:hover{ background:rgba(255,255,255,.06); }



.country-picker{ position:relative }
.cp-toggle{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:transparent; color:#fff; cursor:pointer;
}
.cp-toggle #cpFlag{ font-size:18px;margin: 0; }
.cp-toggle #cpName{ flex:1; text-align:left; opacity:.95;margin: 0; }
.cp-toggle #cpDial {
    opacity: .8;
    margin: 0;
}

.cp-panel{
  position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:30;
  background:#0b0b0f; border:1px solid var(--border); border-radius:12px; padding:8px; box-shadow:0 12px 28px rgba(0,0,0,.35);
}
.cp-panel input{ width:100%; padding:8px 10px; border:1px solid var(--border); border-radius:10px; background:transparent; color:#fff; margin-bottom:8px }
.cp-list{ max-height:260px; overflow:auto; list-style:none; padding:0; margin:0 }
.cp-list li{
  display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:10px; cursor:pointer;
}
.cp-list li:hover{ background:rgba(255,255,255,.06) }
.cp-list .c-flag{ width:22px; text-align:center }
.cp-list .c-name{ flex:1; opacity:.95 }
.cp-list .c-dial{ opacity:.8 }

.phone-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}




/* ===== Кастомный скролл для списков стран ===== */

/* ===== Кастомный скролл для списков стран (cp-list) ===== */

/* WebKit-браузеры: Chrome, Edge, Safari */
.cp-list::-webkit-scrollbar {
  width: 10px; /* толщина дорожки */
}

/* Дорожка (track) — тёмная, полупрозрачная, закруглённая */
.cp-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.72);      /* тёмный прозрачный с синим оттенком */
  border-radius: 999px;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.95), /* лёгкий внутренний кант */
    0 0 10px rgba(0, 0, 0, 0.7);            /* мягкая тень наружу */
}

/* Ползунок (thumb) — градиент: чуть белый + тёмно-синий */
.cp-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 1);    /* затемнённая окантовка */
  background-clip: padding-box;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),   /* светлый верх, почти белый */
    #1d4ed8                      /* насыщенный тёмно-синий низ */
  );
  box-shadow:
    0 0 8px rgba(37, 99, 235, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Ховер — чуть ярче и контрастнее */
.cp-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.95),
    #1e40af
  );
  box-shadow:
    0 0 12px rgba(59, 130, 246, 1),
    0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Firefox — только цвета, без сложных теней/градиентов */
.cp-list {
  scrollbar-width: thin;
  scrollbar-color: #1d4ed8 rgba(15, 23, 42, 0.7); /* thumb / track */
}





.phone-code{
  padding:10px 12px; border-radius:12px; white-space:nowrap; user-select:none;
}
.phone-wrap input{
  flex:1; padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:transparent; color:#fff;
}

.phone-flag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}


.input-error{ border-color:#b42318 !important; outline:0 }

#cf-status.success { color:#22c55e; }  /* зелёный */
#cf-status.error   { color:#f87171; }  /* красный */

.input-error { border-color:#b42318 !important; outline:0; }


input,
textarea,
select {
  font-size: 16px;
}

/* Меню быстрых мессенджеров */

.fab-wrap {
  position: fixed;
  inset-inline-end: 24px;
  inset-block-end: 24px;
  z-index: 50;
}

.fab-main {
  border: none;
  outline: none;
  cursor: pointer;
}

/* Контейнер для двух опций */
.fab-menu {
  position: absolute;
  inset-block-end: 91px; /* над основной кнопкой */
  display: flex;
  flex-direction: column;
  gap: 8px;

  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Общий стиль маленьких кружочков */
.fab-option {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #22c55e; /* по умолчанию зелёный (WhatsApp) */
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.fab-option--telegram {
  color: #38bdf8; /* голубой */
}

.fab-option--whatsapp {
  color: #22c55e; /* зелёный */
}

.fab-option:hover {
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  background: rgba(15, 23, 42, 1);
}

/* Открытое состояние */
.fab-wrap.fab-open .fab-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Небольшая анимация для главной кнопки при открытии */
.fab-wrap.fab-open .fab-main {
  transform: scale(0.96);
}


.fab-wrap{
  position:fixed; right:18px; bottom:18px; z-index:90;
  display:flex; flex-direction:column; align-items:center; gap:6px;
}

.fab{
  width:56px; height:56px; border-radius:9999px;
  display:flex; align-items:center; justify-content:center;
  background:var(--accent-blue);
  box-shadow:0 10px 24px rgba(0,0,0,.35), 0 0 0 2px rgba(255,255,255,.05) inset;
  text-decoration:none; transition:transform .08s ease, filter .2s ease;
}
.fab:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.fab:active{ transform:translateY(0); }

.fab-label{
  font-size:12px; line-height:1; color:#fff; opacity:.9;
  background:rgba(0,0,0,.25); padding:4px 8px; border-radius:8px;
  backdrop-filter:saturate(120%) blur(2px);
}
@media (max-width:480px){
  .fab-label{ display:none; } /* по желанию скрыть подпись на очень узких экранах */
  .card-icon {
    max-height: auto;
    }
}



.about-meta{
  display:grid;
  gap:12px;
  grid-template-columns: repeat(2,minmax(0,1fr));
  margin: 10px 0 18px;
}
@media (max-width:760px){
  .about-meta{ grid-template-columns: 1fr; }
  .fab-menu {
    inset-block-end: 67px; /* над основной кнопкой */
    gap: 15px;
  }
}
.about-meta__item{
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px;
  background: linear-gradient(180deg, rgb(0 0 55 / 59%), rgb(13 13 18 / 60%));
}
.about-meta__label{
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.06em;
  opacity:.8;
  margin-bottom:4px;
}
.about-meta__value{
  font-weight:800;
}
.about-meta__detail{
  margin-top:6px;
  color:#cbd5e1;
  font-size:14px;
}



/* === Socials === */
.socials .section-title{ margin-bottom:10px }
.socials .section-blurb{ margin-bottom:16px }

.socials-list{
  display:flex; flex-wrap:wrap; gap:12px;
}
.socials-item{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px; border:1px solid var(--border); border-radius:12px;
  text-decoration:none; color:#fff; background: linear-gradient(181deg, rgb(0 0 0 / 39%), rgb(15 23 42 / 70%));
  box-shadow:var(--shadow-1);
  transition:transform .06s ease, box-shadow .2s, border-color .2s;
}
.socials-item:hover{ transform:translateY(-1px); border-color:var(--accent-blue); box-shadow:var(--shadow-1-hover) }
.socials-label{ font-weight:600; letter-spacing:.2px }


.lang-btn .flag,
#cpFlag {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.emoji-flag {
  width: 24px;
}

.contact-flag{margin-top: 4px;}
.contact-flag img{width: 18px; margin-left: 6px; margin-right: 4px; }

.contact-Address{display:flex; align-items: center; margin: 6px 0px;}

.contact-info-block{
    border: 1px dashed rgba(255, 255, 255, .25);
    margin-top: 1rem;
    padding: 20px;
    border-radius: 17px;
    background: linear-gradient(180deg, rgb(0 0 0 / 46%), rgb(21 22 66 / 68%));
}

.contact-adr1{font-size: 13px;}

.contact-info-value{
    display: flex;
    flex-direction: column;
    
}
.email-flag{    
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    margin-top: 8px;
    
}




/* ===== Header auth links ===== */
.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: center;
}

.nav-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgb(41 45 153 / 58%);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 13px;
    width: 26%;
    letter-spacing: .2px;
    background: rgb(0 41 255 / 10%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .06) inset;
    transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav-auth-link:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.80);
  box-shadow:
    0 16px 36px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.08) inset,
    0 0 22px rgba(29,78,216,.18);
}

.nav-auth-link:active{
  transform: translateY(1px) scale(.99);
}


.nav-auth-clock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 7px;
    font-size: 12px;
    color: rgb(255 255 255 / 85%);
    white-space: nowrap;
    margin-left: 2rem;
}

.nav-auth-tz{
  opacity:.75;
  font-size:11px;
}

.nav-auth-link--btn{
  background:none;
  border:0;
  padding:0;
  cursor:pointer;
  color:inherit;
  font:inherit;
}

#support-packages .btn-thin {
    margin-top: 10px;
}

/* ===== Auth modal (Request support) ===== */
.auth-modal[hidden] { display: none; }

.auth-modal{
  position: fixed;
  inset: 0;
  z-index: 5000;
}

.auth-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
}

.auth-modal__dialog{
  position: relative;
  max-width: 520px;
  margin: 34% auto;
  padding: 22px 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, .96);
  border: 1px solid rgba(148, 163, 184, .22);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}


.auth-modal__close{
  position: absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(148,163,184,.12);
  color: #fff;
  font-size: 22px;
  line-height: 0;
  cursor: pointer;
}

.auth-modal__icon{
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148,163,184,.12);
  color: #fff;
  margin-bottom: 12px;
}

.auth-modal__title{
  margin: 0 0 8px 0;
  color: #fff;
}

.auth-modal__text{
  margin: 0;
  color: rgba(226, 232, 240, .92);
  line-height: 1.5;
}

.auth-modal__actions{
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.auth-modal__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(148,163,184,.12);
  border: 1px solid rgba(148,163,184,.22);
  text-decoration: none;
  color: #fff;
}

html.modal-open, body.modal-open{
  overflow: hidden;
}



@media (max-width: 760px){
  .header-auth{ gap:8px; }
  .nav-auth-link{ padding: 8px 10px; }
  .nav-auth-link{width: 35%;}
  .nav-auth-clock{margin-left: 0rem; gap: 0px; flex-direction: column; }
}

@media (max-width: 550px){
    .auth-modal__dialog{
        margin: 66% 20px
    }
}


