/* страховка: светлая тема всегда перекрывает фон/цвет */
html[data-theme="light"] body{
  background: var(--bg-light);
  color: var(--text-light);
}

html.no-js body {
  visibility: hidden;
}

:root{
  --header-height: 96px;

  /* dark */
  --text: #eaf1ff;
  --text-muted: rgba(234,241,255,.75);
  --bg-solid: rgba(7,14,26,.98);
  --bg-solid-2: rgba(5,11,24,.95);
  --bg-glass: rgba(12,22,40,.45);
  --bg-glass-2: rgba(12,22,40,.25);
  --border-glass: rgba(255,255,255,.08);
  --accent: #3b82f6;
  --ring: rgba(59,130,246,.95);
  --ring-fill: rgba(59,130,246,.14);

  /* light */
  --text-light: #111827;
  --text-muted-light: rgba(17,24,39,.65);
  --bg-light: #ebf0f7;
  --border-light: rgba(17,24,39,.12);
}

*{margin:0;padding:0;box-sizing:border-box}

body{
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Arial, sans-serif;
  background:#050b18;
  color:var(--text);
}


/* ===== HEADER ===== */
.header{
  position:fixed;
  top:0;
  width:100%;
  height:var(--header-height);
  background: linear-gradient(180deg, var(--bg-solid), var(--bg-solid-2));
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  z-index:1000;
}

.header.scrolled{
  background: linear-gradient(180deg, var(--bg-glass), var(--bg-glass-2));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom:1px solid var(--border-glass);
}

.container{
  max-width:1400px;
  margin:0 auto;
  height:100%;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* ===== LOGO ===== */
.logo{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

/* ===== CLEAN LOGO (NO BACKGROUND) ===== */
.bbc{
  display:flex;
  align-items:center;
  justify-content:center;
  width:auto;
  height:auto;
  background: none !important;
  box-shadow: none !important;
  padding: 0;
  border-radius: 0;
  transition: transform .2s ease, opacity .2s ease;
}

/* сама картинка */
.bbc img{
  height: 60px;          /* ⬅ увеличивай/уменьшай тут */
  width: auto;
  display:block;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.35));
}

/* hover — аккуратно */
.bbc:hover{
  transform: scale(1.04);
  opacity: .95;
}


.logo .name{
  display:block;
  min-width:0;
  max-width: 210px;           /* подгони, 190–240 */
  white-space: normal;        /* разрешаем перенос */
  overflow: visible;
  text-overflow: clip;
  line-height: 1.05;
  font-weight:600;
  font-size:20px;
  color:var(--text);
  text-decoration:none !important;
  word-break: keep-all;       /* не ломать слова */
}

/* мобилка */
@media (max-width: 520px){
  .logo .name{
    max-width: 165px;         /* чтобы перенос точно случился */
    font-size: 15px;
  }
}

/* ===== NAV ===== */
.nav{
  display: flex;
  gap: 56px;            /* 🔥 увеличили расстояние между категориями */
  margin-left: 40px;   /* 👈 сдвинули меню левее */
  margin-right: auto;  /* actions остаются справа */
}




.nav a{
  text-decoration:none;
  color:var(--text-muted);
  font-size:18px;
  transition: color .2s ease;
}

.nav a:hover,
.nav a.active{ color:var(--accent); }

/* ===== ACTIONS ===== */
.actions{
  display:flex;
  align-items:center;
  gap:18px;
}

/* reset */
.actions button{
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
}

/* shared button size */
/* ===== LANGUAGE + THEME BUTTONS (UNIFIED) ===== */
.lang__btn,
.theme-switch{
  width:48px;
  height:48px;
  border-radius:50%;
  display:grid;
  place-items:center;
  position:relative;
  background:none;
  border:none;
  cursor:pointer;
  color:var(--text);
}

/* ===== FLAG IMAGE ===== */
.lang__btn img{
  width:26px;          /* ⬅️ правильный размер */
  height:auto;
  display:block;
  position:relative;
  z-index:2;
  border-radius:4px;   /* мягкие углы как на скрине */
}

/* ===== THEME ICONS ===== */
.theme-switch svg,
.theme-switch .icon{
  position:relative;
  z-index:2;
  display:block;
}

/* ===== RING HOVER EFFECT ===== */
/* container must be relative */
/* wrapper */
.lang{ position: relative; }

/* current flag button stays same size */
.lang__btn{
  width:48px;
  height:48px;
  border-radius:50%;
  display:grid;
  place-items:center;
  position:relative;
  background:none;
  border:none;
  cursor:pointer;
}

.lang__btn > img{
  width:24px;
  height:auto;
  display:block;
  border-radius:4px;
}

/* MENU (vertical card like screenshot #2) */
.lang__menu{
  position:absolute;
  top: calc(100% + 12px);
  right: 0;

  width: 170px;
  padding: 10px;
  border-radius: 16px;

  background: rgba(7,14,26,.92);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 55px rgba(0,0,0,.45);

  display:none;
  z-index: 5000;

  transform-origin: top right;
  transform: translateY(-6px) scale(.98);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.lang__menu.open{
  display:block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* items */
.lang__item{
  width:100%;
  height: 44px;
  display:flex;
  align-items:center;
  justify-content: center;
  gap:12px;

  padding: 0 12px;
  border-radius: 12px;

  background: transparent;
  border: none;
  cursor: pointer;

  color: rgba(234,241,255,.88);
  font-weight: 700;
  letter-spacing: .2px;

  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.lang__item img{
  width:20px;
  height:20px;
  border-radius:4px;
  display:block;
}

.lang__item span{
  font-size: 18px;
}
/* ===== LANGUAGE DROPDOWN — LIGHT THEME FIX ===== */

html[data-theme="light"] .lang__menu{
  background: rgba(255,255,255,.96);
  border-color: rgba(17,24,39,.12);
  box-shadow: 0 18px 55px rgba(0,0,0,.18);
}

/* текст */
html[data-theme="light"] .lang__item{
  color: #111827;
}

/* hover */
html[data-theme="light"] .lang__item:hover{
  background: rgba(59,130,246,.12);
}

/* active */
html[data-theme="light"] .lang__item.is-active{
  background: rgba(59,130,246,.18);
}

/* флаги — без затемнения */
html[data-theme="light"] .lang__item img,
html[data-theme="light"] .lang__btn img{
  filter: none;
}

/* hover-ring на кнопке языка в light */
html[data-theme="light"] .lang__btn::before{
  background: rgba(59,130,246,.12);
}

html[data-theme="light"] .lang__btn::after{
  border-color: rgba(59,130,246,.55);
}

/* hover */
.lang__item:hover{
  background: rgba(59,130,246,.14);
}

/* active highlight (pill inside card like screenshot) */
.lang__item.is-active{
  background: rgba(59,130,246,.22);
}

/* optional: tiny divider spacing */
.lang__item + .lang__item{
  margin-top: 6px;
}

/* ===== HOVER FOR LANGUAGE BUTTON ===== */

/* inner soft glow */
.lang__btn::before{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:50%;
  background: rgba(59,130,246,.18);
  opacity:0;
  transform: scale(.9);
  transition: opacity .22s ease, transform .22s ease;
}

/* outer ring */
.lang__btn::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:50%;
  border:2px solid rgba(59,130,246,.95);
  opacity:0;
  transform: scale(.92);
  transition: opacity .22s ease, transform .22s ease;
}

/* DARK */
html[data-theme="dark"] .lang__btn:hover::before,
html[data-theme="dark"] .lang__btn:hover::after{
  opacity:1;
  transform: scale(1);
}

html[data-theme="dark"] .lang__btn:hover{
  transform: scale(1.04);
}

/* LIGHT (softer but visible) */
html[data-theme="light"] .lang__btn::before{
  background: rgba(246, 248, 250, 0.12);
}

html[data-theme="light"] .lang__btn::after{
  border-color: rgba(59,130,246,.55);
}

html[data-theme="light"] .lang__btn:hover::before,
html[data-theme="light"] .lang__btn:hover::after{
  opacity:1;
  transform: scale(1);
}

html[data-theme="light"] .lang__btn:hover{
  transform: scale(1.02);
}

/* ===== THEME SWITCH BUTTON (HOVER RING) ===== */
.theme-switch{
  width:48px;
  height:48px;
  border-radius:50%;
  display:grid;
  place-items:center;
  position:relative;
  background:none;
  border:none;
  cursor:pointer;
  color:var(--text);
}

/* inner soft glow */
.theme-switch::before{
  content:"";
  position:absolute;
  inset:8px;
  border-radius:50%;
  background: rgba(59,130,246,.18);
  opacity:0;
  transform: scale(.9);
  transition: opacity .22s ease, transform .22s ease;
}

/* outer ring */
.theme-switch::after{
  content:"";
  position:absolute;
  inset:2px;
  border-radius:50%;
  border:2px solid rgba(59,130,246,.95);
  opacity:0;
  transform: scale(.92);
  transition: opacity .22s ease, transform .22s ease;
}

/* hover (dark theme) */
html[data-theme="dark"] .theme-switch:hover::before,
html[data-theme="dark"] .theme-switch:hover::after{
  opacity:1;
  transform: scale(1);
}

html[data-theme="dark"] .theme-switch:hover{
  transform: scale(1.04);
}

/* ===== LIGHT THEME (SOFTER, STILL VISIBLE) ===== */
html[data-theme="light"] .theme-switch::before{
  background: rgba(59,130,246,.12);
}

html[data-theme="light"] .theme-switch::after{
  border-color: rgba(59,130,246,.55);
}

html[data-theme="light"] .theme-switch:hover::before,
html[data-theme="light"] .theme-switch:hover::after{
  opacity:1;
  transform: scale(1);
}

html[data-theme="light"] .theme-switch:hover{
  transform: scale(1.02);
}

/* icons always above ring */
.theme-switch svg,
.theme-switch .icon{
  position:relative;
  z-index:2;
  display:block;
}
/* make sure actions keep right alignment */
.actions{
  display:flex;
  align-items:center;
  gap:18px;
  margin-left:auto;
}


/* ===== THEME STATES ===== */
html[data-theme="dark"]{
  background:#050b18;
  color:var(--text);
}

html[data-theme="dark"] .sun{display:none}

/* light theme */
html[data-theme="light"]{
  background:var(--bg-light);
  color:var(--text-light);
}

/* light header look */
html[data-theme="light"] .header{
  background: rgba(209,213,219,.90);
}

html[data-theme="light"] .header.scrolled{
  background: rgba(209,213,219,.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

/* light text */
html[data-theme="light"] .name{color:var(--text-light)}
/* ===== NAV: LIGHT THEME FIX (как на 1 картинке) ===== */
html[data-theme="light"] .nav a{
  color: #111827;            /* чёрный текст */
  opacity: 1;              /* лёгкая мягкость (можно 1 если хочешь совсем чёрный) */
  font-weight: 500;
}

html[data-theme="light"] .nav a:hover{
  opacity: 1;
  color: #2560e0;            /* на hover чётче */
}

html[data-theme="light"] .nav a.active{
  opacity: 1;
  color: #3b82f6;            /* синий активный */
  font-weight: 600;
}
/* light theme icon */
html[data-theme="light"] .theme-switch{color:var(--text-light)}
html[data-theme="light"] .moon{display:none}
html[data-theme="light"] .sun{display:block}

/* light: no ring hover */
/* light: ring hover visible (soft) */
html[data-theme="light"] .lang-switch:hover::before,
html[data-theme="light"] .theme-switch:hover::before{
  opacity: 1;
  transform: scale(1);
  background: rgba(59,130,246,.10);
}

html[data-theme="light"] .lang-switch:hover::after,
html[data-theme="light"] .theme-switch:hover::after{
  opacity: 1;
  transform: scale(1);
  border-color: rgba(59,130,246,.55);
}

html[data-theme="light"] .lang-switch:hover,
html[data-theme="light"] .theme-switch:hover{
  transform: scale(1.02);
}

/* ===== CONTENT (demo) ===== */
.content{padding-top:var(--header-height)}

.hero{
  height:100vh;
  background: linear-gradient(120deg, #0b1533, #050b18);
}

.block{
  height:80vh;
  background:#070f24;
  border-top:1px solid rgba(255,255,255,.05);
}

/* content in light mode (optional) */
html[data-theme="light"] .hero{
  background: linear-gradient(120deg, #e5e7eb, #cbd5e1);
}

html[data-theme="light"] .block{
  background:#e5e7eb;
  border-top:1px solid rgba(17,24,39,.08);
}
.hero-video{
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-video__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06); /* чуть “киношнее” */
}

.hero-video__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(
      1200px 600px at 50% 45%,
      rgba(0,0,0,.15),
      rgba(0,0,0,.45)
    ),
    linear-gradient(
      180deg,
      rgba(5,11,24,.25),
      rgba(5,11,24,.55)
    );
  z-index:1;
}

.hero-video__content{
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
  text-align: center;
}

.hero-video__content h1{
  font-size: clamp(40px, 4.2vw, 72px);
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.hero-video__content p{
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,.85);
}

.hero-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 34px;
  border-radius: 999px;

  background: linear-gradient(
    135deg,
    #8fb6ff 0%,
    #6f9cff 50%,
    #5b8cff 100%
  );

  color: #0b1533;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
  text-decoration: none;

  box-shadow:
    0 8px 24px rgba(59,130,246,.35),
    inset 0 1px 0 rgba(255,255,255,.45);

  transition:
    transform .25s ease,
    box-shadow .25s ease,
    filter .25s ease;
}

/* hover */
.hero-btn:hover{
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(59,130,246,.45),
    inset 0 1px 0 rgba(255,255,255,.55);
  filter: brightness(1.05);
}

/* active (click) */
.hero-btn:active{
  transform: translateY(0);
  box-shadow:
    0 6px 16px rgba(59,130,246,.35),
    inset 0 2px 6px rgba(0,0,0,.12);
}

/* focus (accessibility, UX) */
.hero-btn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(59,130,246,.35),
    0 12px 32px rgba(59,130,246,.45);
}


/* чтобы видео не перекрывало header */
.content{
  padding-top: var(--header-height);
}
/* ===== HERO LIGHT THEME SOFT BOTTOM GLOW ===== */
html[data-theme="light"] .hero-video__overlay{
  background:
    /* мягкий белый туман снизу */
    linear-gradient(
      180deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.18) 60%,
      rgba(255,255,255,.45) 100%
    ),
    /* лёгкое затемнение для читаемости текста */
    radial-gradient(
      1200px 600px at 50% 35%,
      rgba(0,0,0,.06),
      rgba(0,0,0,.18)
    );
}
/* ===== ABOUT SECTION (match screenshot) ===== */
.about{
  position: relative;
  padding: 120px 24px;
  background:
    radial-gradient(1200px 700px at 50% 18%, rgba(59,130,246,.10), rgba(0,0,0,0)),
    linear-gradient(180deg, #0b1733 0%, #050b18 100%);
}

.about__wrap{
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.about__badge{
  width: 94px;
  height: 94px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;

  color: #6fa0ff;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.09);

  box-shadow:
    0 22px 70px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08);
}

/* subtle inner ring */
.about__badge::after{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 50%;
  border: 1px solid rgba(111,160,255,.22);
}

.about__badge-icon{
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 10px 28px rgba(59,130,246,.35));
}

.about__title{
  font-size: clamp(36px, 3.2vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.about__lead{
  font-size: 16px;
  font-weight: 600;
  color: rgba(234,241,255,.75);
  margin-bottom: 18px;
}

.about__text{
  max-width: 820px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(234,241,255,.62);
}
/* ===== ABOUT SECTION — LIGHT THEME ===== */
html[data-theme="light"] .about{
  background:
    radial-gradient(
      1100px 650px at 50% 18%,
      rgba(255,255,255,.9),
      rgba(255,255,255,0)
    ),
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f6f8fc 100%
    );
}


html[data-theme="light"] .about__title{
  color: #111827;
}

html[data-theme="light"] .about__lead{
  color: rgba(17,24,39,.70);
}

html[data-theme="light"] .about__text{
  color: rgba(17,24,39,.60);
}

/* icon badge in light mode */
html[data-theme="light"] .about__badge{
  background: rgba(255, 255, 255, 0.918);
  border: 1px solid rgba(17,24,39,.10);
  box-shadow:
    0 18px 55px rgba(0,0,0,.14),
    inset 0 1px 0 rgb(255, 255, 255);
}

/* inner ring */
html[data-theme="light"] .about__badge::after{
  border-color: rgba(59,130,246,.22);
}

/* icon color (если inline SVG с currentColor) */
html[data-theme="light"] .about__badge{
  color: #3b82f6;
}

/* если ты используешь <img> svg и он уже синий — можешь не трогать */
