/* ============================================================
   1. ШРИФТЫ
   ============================================================ */
/* 1. Playfair Display 900 (Black) — для заголовков */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('/assets/fonts/playfair-display-v40-cyrillic_latin-900.woff2') format('woff2');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* 2. Playfair Display 700 (Bold) — для подзаголовков */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url('/assets/fonts/playfair-display-v40-cyrillic_latin-700.woff2') format('woff2');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* 3. Playfair Display 400 (Regular) — для текста */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: optional;
  src: url('/assets/fonts/playfair-display-v40-cyrillic_latin-regular.woff2') format('woff2');
  size-adjust: 100%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* 4. Fallback-шрифт с подгонкой под Playfair */
@font-face {
  font-family: 'Playfair Fallback';
  src: local('Georgia'), local('Times New Roman');
  size-adjust: 107%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

/* ============================================================
   2. ПАЛИТРА И ТОКЕНЫ
   ============================================================ */
:root {
  --rmz-highlight:        #4fb3bd;
  --rmz-highlight-light:  #8fd6dd;
  --rmz-cyan:             #8fd6dd;
  --rmz-gold:             #d4b96a;
  --rmz-gold-light:       #e8c66a;
  --rmz-gold-dark:        #a8894a;
  --rmz-id-blue:          #7fc4f0;
  --rmz-blue:             #2a8bc4;
  --rmz-blue-dark:        #1a5a8c;
  --rmz-text:             #f0ebe3;
  --rmz-text-secondary:   #a8a49e;
  --rmz-border:           rgba(240,235,227,.10);
  --rmz-border-soft:      rgba(240,235,227,.06);

  --primary:#0a0a1a;
  --secondary:#12122e;
  --accent:#0f4c75;
  --highlight:#4fb3bd;
  --highlight-gradient:linear-gradient(135deg,#4fb3bd 0%,#0f4c75 100%);
  --text:#f0ebe3;
  --text-secondary:#a8a49e;
  --border:rgba(240,235,227,.10);
  --header-height:75px;
  --font-heading:'Playfair Fallback',Georgia,'Times New Roman',serif;
  --font-system: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* ============================================================
   3. БАЗА
   ============================================================ */
[hidden]{display:none!important}
.nav-overlay[hidden]{display:none!important;pointer-events:none!important;visibility:hidden!important}
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html,body{width:100%;overflow-x:clip;max-width:100vw;user-select:text;-webkit-user-select:text;word-break:normal}
body{
  font-family: 'Playfair Display', 'Playfair Fallback', Georgia, 'Times New Roman', serif;
  background:#0a0a1a;
  color:#f0ebe3;
  line-height:1.6;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button{font:inherit;color:inherit}

/* ============================================================
   4. CONTAINER — базовый (нужен для hero на всех страницах)
   ============================================================ */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
  width:100%;
}

/* ============================================================
   5. КНОПКИ — базовый btn-primary (критично для CTA в hero)
   ============================================================ */
.btn-primary{
  --btn-accent:#4fb3bd;
  --btn-accent-soft:rgba(79,179,189,.32);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.65rem;
  padding:.9rem 1.9rem;
  background:linear-gradient(135deg,#00c5cf 0%,#1a7f9e 50%,#0f4c75 100%);
  color:#fff;
  border-radius:50px;
  font-weight:600;
  text-decoration:none;
  border:1px solid rgba(127,246,247,.4);
  cursor:pointer;
  box-shadow:
    0 10px 26px rgba(0,197,207,.32),
    0 0 20px rgba(0,197,207,.15),
    inset 0 1px 0 rgba(255,255,255,.18);
  min-width:0;
  width:auto;
  font-size:1.02rem;
  transition:all .3s ease;
  white-space:nowrap;
}
.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:
    0 14px 34px var(--btn-accent-soft),
    0 0 32px var(--btn-accent-soft),
    inset 0 1px 0 rgba(255,255,255,.25);
}

/* ============================================================
   6. NAVBAR
   ============================================================ */
.navbar{
  position:fixed;
  top:0;left:0;right:0;
  height:75px;
  background:rgba(8,11,24,.98);
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  z-index:1100;
  border-bottom:1px solid rgba(240,235,227,.09);
  box-shadow:0 4px 20px rgba(0,0,0,.15);
  transition:background .3s ease;
}
.navbar .container{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  height:100%;
  position:relative;
  max-width:1200px;
  gap:16px;
}

/* LOGO */
.logo-wrapper{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-decoration:none;
  text-align:center;
  position:relative;
  color:#fff;
  gap:1px;
  min-height:54px;
  justify-content:center;
  flex-shrink:0;
  min-width:170px;
}
@media (max-width:1200px){.logo-wrapper{min-width:150px}}
@media (max-width:1024px){.logo-wrapper{min-width:0}}

.logo{
  display:inline-flex;
  align-items:baseline;
  gap:.12rem;
  font-size:1.55rem;
  font-weight:700;
  color:#fff;
  font-family:var(--font-heading);
  line-height:1;
  white-space:nowrap;
  overflow:visible;
}
.logo-part{
  color:#fff;
  line-height:1;
  text-shadow:0 0 5px rgba(255,255,255,.8),0 0 10px rgba(255,255,255,.5);
  transition:text-shadow .3s ease;
}
.logo-tld{
  font-size:.5em;
  color:#8fd6dd;
  font-weight:800;
  margin-left:2px;
  line-height:1;
  text-shadow:0 0 6px rgba(79,179,189,.7),0 0 14px rgba(79,179,189,.5);
  transition:text-shadow .25s ease,color .25s ease;
}
.logo-name{
  font-size:.56rem;
  font-weight:400;
  color:rgba(176,183,195,.75);
  margin-top:2px;
  letter-spacing:.14em;
  text-transform:uppercase;
  line-height:1;
  white-space:nowrap;
  max-width:100%;
  min-height:1em;
}
@media (max-width:1024px){
  .logo{font-size:1.4rem}
  .logo-name{white-space:normal;text-align:center}
}

/* NAV-TOGGLE */
.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:transparent;
  border:none;
  cursor:pointer;
  padding:8px;
  z-index:1103;
  flex-shrink:0;
}
.nav-toggle span{
  width:25px;height:3px;
  background:#fff;
  border-radius:2px;
  transition:transform .3s ease,opacity .3s ease;
}

/* NAV-MENU desktop */
.nav-menu{
  display:flex;
  list-style:none;
  gap:8px;
  align-items:center;
  margin:0;padding:0;
  flex-shrink:0;
}
.nav-menu>li{
  flex:0 0 138px;
  width:138px;
  min-width:138px;
}
.nav-menu>li>a{
  box-sizing:border-box;
  width:138px;
  min-width:138px;
  height:42px;
  margin:0;
  padding:0 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-radius:11px;
  white-space:nowrap;
  text-decoration:none;
  font-weight:600;
  font-size:.86rem;
  color:#fff;
  border:1px solid rgba(240,235,227,.30);
  background:rgba(240,235,227,.025);
  box-shadow:0 6px 20px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.08);
  transition:transform .24s ease,border-color .24s ease,background .24s ease,box-shadow .24s ease;
}
.nav-menu>li>a.nav-book{border:1px solid rgba(212,185,106,.62)}
.nav-menu>li>a.nav-licence{
  border:1px solid rgba(42,139,196,.72);
  position:relative;
  overflow:hidden;
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#fff;
  background:rgba(42,139,196,.06);
  box-shadow:0 6px 20px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.08);
  transition:transform .24s ease,border-color .24s ease,background .24s ease,box-shadow .24s ease,color .24s ease;
}
.nav-menu>li>a.nav-licence .id-part{color:#fff}
.nav-menu>li>a.nav-licence .id-color{
  color:#7fc4f0;
  font-weight:800;
  text-shadow:0 0 6px rgba(127,196,240,.9),0 0 14px rgba(42,139,196,.75);
}

/* NAV-ID-SCANNER */
.nav-id-scanner{
  display:inline-flex;
  width:20px;height:20px;
  align-items:center;
  justify-content:center;
  opacity:.92;
  margin-right:2px;
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.nav-id-scanner svg{
  width:20px;height:20px;
  fill:#ffffff!important;
  color:#ffffff!important;
  filter:drop-shadow(0 0 5px rgba(255,255,255,.85)) drop-shadow(0 0 12px rgba(42,139,196,.55));
}
.nav-id-label{
  display:inline-flex;
  align-items:center;
  font-size:.94rem;
  font-weight:700;
  line-height:1;
}

/* NAV-ABOUT-AVATAR */
.nav-about-avatar{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;height:28px;
  min-width:28px;
  border-radius:50%;
  overflow:hidden;
  border:1.5px solid rgba(143,214,221,.6);
  box-shadow:0 0 8px rgba(79,179,189,.3);
  flex-shrink:0;
  background:#0a0f19;
}
.nav-about-avatar img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  border-radius:50%;
}

/* NAV-OVERLAY */
.nav-overlay{
  position:fixed;
  inset:0;
  background:rgba(2,5,12,.85);
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  z-index:1090;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .28s ease,visibility .28s ease;
}
.nav-overlay.show{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

/* NAV HOVER */
.nav-menu>li>a.nav-home:hover,
.nav-menu>li>a.nav-about:hover,
.nav-menu>li>a.nav-knowledge:hover{
  border-color:rgba(240,235,227,.68);
  background:linear-gradient(135deg,rgba(79,179,189,.20),rgba(240,235,227,.075));
  transform:translateY(-2px);
  box-shadow:0 0 18px rgba(79,179,189,.22),inset 0 1px 0 rgba(255,255,255,.12);
}
.nav-menu>li>a.nav-book:hover{
  border-color:#e8c66a;
  background:linear-gradient(135deg,rgba(212,185,106,.20),rgba(240,235,227,.055));
  transform:translateY(-2px);
  box-shadow:0 0 18px rgba(212,185,106,.22),inset 0 1px 0 rgba(255,255,255,.12);
}
.nav-menu>li>a.nav-licence:hover{
  border-color:#7fc4f0;
  background:rgba(42,139,196,.16);
  box-shadow:0 0 20px rgba(42,139,196,.28);
  transform:translateY(-2px);
}

/* NAV ACTIVE */
.nav-menu > li > a.active{
  background:
    radial-gradient(circle at 30% 20%,rgba(160,235,240,.28),transparent 60%),
    linear-gradient(135deg,rgba(79,179,189,.42) 0%,rgba(58,143,160,.34) 55%,rgba(26,90,140,.44) 100%);
  border:1px solid rgba(143,214,221,.72);
  color:#fff;
  box-shadow:
    0 0 18px rgba(79,179,189,.32),
    0 0 38px rgba(79,179,189,.18),
    inset 0 1px 0 rgba(200,250,255,.32),
    inset 0 0 22px rgba(160,235,240,.10);
  text-shadow:0 0 6px rgba(180,245,250,.55),0 1px 2px rgba(0,40,55,.35);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

/* LANG-SWITCH */
.lang-switch{
  position:relative;
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  flex-shrink:0;
  height:38px;
  width:38px;
  z-index:1201;
}
.lang-switch__toggle{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
  width:38px;height:38px;
  min-width:38px;
  padding:0;
  border:1px solid rgba(240,235,227,.2);
  border-radius:50%;
  background:rgba(240,235,227,.035);
  color:#f0ebe3;
  cursor:pointer;
  transition:border-color .22s ease,background .22s ease,box-shadow .22s ease,color .22s ease,transform .22s ease;
  box-sizing:border-box;
}
.lang-switch__toggle:hover,
.lang-switch__toggle:focus-visible{
  border-color:rgba(143,214,221,.65);
  background:rgba(79,179,189,.1);
  color:#fff;
  box-shadow:0 0 14px rgba(79,179,189,.22);
  outline:none;
  transform:scale(1.04);
}
.lang-switch__label{
  font:800 .68rem/1 system-ui,-apple-system,sans-serif;
  letter-spacing:.06em;
}
.lang-switch__caret{
  font-size:.46rem;
  line-height:1;
  opacity:.6;
  transition:transform .22s ease,opacity .22s ease;
}
.lang-switch__toggle[aria-expanded="true"] .lang-switch__caret{
  transform:rotate(180deg);
  opacity:1;
}

/* ============================================================
   LANG-SWITCH — выпадающее меню (критично для navbar)
   ============================================================ */
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 50%;
  transform: translateX(50%) translateY(-4px) scale(.9);
  transform-origin: top center;
  width: max-content;
  min-width: 0;
  max-width: none;
  padding: 3px;
  border: 1px solid rgba(143, 214, 221, .24);
  border-radius: 12px;
  background: rgba(12, 16, 26, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .5), 0 0 18px rgba(79, 179, 189, .1);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease, transform .24s cubic-bezier(.2, .8, .2, 1);
}
.lang-switch__menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(50%) translateY(0) scale(1);
}

.lang-switch__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  color: rgba(224, 236, 240, .72);
  font: 700 .68rem/1 system-ui, -apple-system, sans-serif;
  letter-spacing: .06em;
  text-decoration: none;
  white-space: nowrap;
  width: auto;
  transition: background .16s ease, color .16s ease;
}
.lang-switch__item:hover,
.lang-switch__item:focus-visible {
  background: rgba(79, 179, 189, .16);
  color: #fff;
  outline: none;
}
.lang-switch__item.is-active {
  background: linear-gradient(135deg, rgba(0, 197, 207, .26), rgba(15, 76, 117, .32));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

@media (max-width: 1024px) {
  .lang-switch { margin-left: auto; margin-right: 6px; height: 36px; width: 36px; }
  .lang-switch__toggle { width: 36px; height: 36px; min-width: 36px; }
  .lang-switch__label { font-size: .64rem; }
}
@media (max-width: 380px) {
  .lang-switch,
  .lang-switch__toggle { width: 34px; height: 34px; min-width: 34px; }
  .lang-switch__label { font-size: .6rem; }
  .lang-switch__caret { font-size: .42rem; }
  .lang-switch__item { height: 28px; font-size: .62rem; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .lang-switch__toggle,
  .lang-switch__menu,
  .lang-switch__item,
  .lang-switch__caret { transition-duration: .01ms !important; }
  .lang-switch__toggle:hover,
  .lang-switch__toggle:focus-visible { transform: none; }
}

/* ============================================================
   7. HERO-TITLE — общий для всех страниц (оптимизировано)
   ============================================================ */
.hero-title {
  font-family: 'Playfair Fallback', Georgia, 'Times New Roman', serif;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 auto 0.3rem;
  width: 100%;
  max-width: 1000px;
  letter-spacing: -.025em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: .1em;
  color: #E8D4A2; /* ★ Сплошной цвет вместо градиента background-clip */
  filter: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-title-main {
  /* ★ Убрали font-display, убрали !important. Просто системный шрифт */
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 900;
}

@media (max-width: 700px) {
  .hero-title {
    white-space: normal;
    font-size: clamp(1.8rem, 8vw, 2.4rem);
  }
  .hero-title-main {
    display: block;
    white-space: nowrap;
    font-size: clamp(1.4rem, 7.5vw, 2rem);
    letter-spacing: -.02em;
    max-width: 100%;
  }
}
@media (max-width: 380px) {
  .hero-title-main {
    font-size: clamp(1.15rem, 7vw, 1.6rem);
  }
}

/* HERO-TITLE-SUB */
.hero-title-sub{
  display:flex;
  justify-content:center;
  width:100%;
  font-size:.45em;
  font-weight:700;
  letter-spacing:-.01em;
  margin-top:.1rem;
  white-space:normal;
  position:relative;
  z-index:2;
  color:#E8D4A2;
  -webkit-text-fill-color:#E8D4A2;
  background:none;
}
.hero-title-sub__inner{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  isolation:isolate;
}
.hero-title-sub__text{
  color:#E8D4A2;
  background:linear-gradient(180deg,#FFF8E7 0%,#E8D4A2 50%,#C9A96E 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  white-space:nowrap;
  position:relative;
  display:inline-block;
}
.hero-title-sub__text::after{
  content:'';
  position:absolute;
  left:0;right:0;
  bottom:-.15em;
  height:2px;
  border-radius:2px;
  background:linear-gradient(90deg,transparent 0%,rgba(212,175,55,.5) 15%,rgba(212,175,55,.9) 50%,rgba(212,175,55,.5) 85%,transparent 100%);
  box-shadow:0 0 8px rgba(212,175,55,.5);
  pointer-events:none;
}
.hero-title-sub__hint{
  position:absolute !important;
  top:-.6em !important;
  right:-2.2em !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;height:18px;
  min-width:18px;
  font-size:.62rem;
  margin:0;padding:0;
  border:1px solid rgba(232,196,106,.75);
  background:rgba(232,196,106,.14);
  color:#f0d98c;
  border-radius:50%;
  cursor:pointer;
  flex-shrink:0;
  z-index:5;
  pointer-events:auto;
  -webkit-text-fill-color:#f0d98c!important;
  color:#f0d98c!important;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
  -webkit-tap-highlight-color:transparent;
  font-family:system-ui,-apple-system,sans-serif;
  font-weight:800;
  line-height:1;
}
.hero-title-sub__hint:hover,
.hero-title-sub__hint:focus-visible{
  background:rgba(232,196,106,.32);
  border-color:#f0d98c;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 0 10px rgba(232,196,106,.5);
  outline:none;
}
@media (max-width:700px){
  .hero-title-sub__hint{
    width:16px;height:16px;min-width:16px;
    font-size:.56rem;
    top:-.5em;right:-2em;
  }
}
@media (max-width:480px){
  .hero-title-sub__hint{
    width:15px;height:15px;min-width:15px;
    font-size:.5rem;
    top:-.4em;right:-1.8em;
  }
}

/* ============================================================
   8. HERO-USP — общий для index
   ============================================================ */
.hero-usp-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:1rem auto 0;
  max-width:100%;
}
.hero-usp-wrap .hero-usp{margin:0}
.hero-usp__hint{
  position:absolute !important;
  top:-.8em !important;
  right:-1.8em !important;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;height:18px;
  min-width:18px;
  font-size:.62rem;
  margin:0;padding:0;
  border:1px solid rgba(240,235,227,.55);
  background:rgba(240,235,227,.1);
  color:#f0ebe3;
  border-radius:50%;
  cursor:pointer;
  flex-shrink:0;
  z-index:5;
  pointer-events:auto;
  -webkit-text-fill-color:#f0ebe3!important;
  color:#f0ebe3!important;
  transition:background .2s ease,border-color .2s ease,color .2s ease,box-shadow .2s ease;
  -webkit-tap-highlight-color:transparent;
  font-family:system-ui,-apple-system,sans-serif;
  font-weight:800;
  line-height:1;
}
.hero-usp__hint:hover,
.hero-usp__hint:focus-visible{
  background:rgba(240,235,227,.22);
  border-color:#f0ebe3;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 0 10px rgba(240,235,227,.35);
  outline:none;
}
@media (max-width:700px){
  .hero-usp__hint{
    width:16px;height:16px;min-width:16px;
    font-size:.56rem;
    top:-.6em;right:-1.5em;
  }
}
button.hero-usp{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.6rem 1.1rem .6rem .95rem;
  border:1px solid rgba(240,235,227,.22);
  border-radius:999px;
  background:linear-gradient(135deg,rgba(38,34,28,.78),rgba(24,21,18,.82));
  color:#f0ebe3;
  font:600 clamp(.88rem,1.4vw,1rem)/1.3 system-ui,-apple-system,sans-serif;
  letter-spacing:.01em;
  box-shadow:0 8px 22px rgba(0,0,0,.28),0 0 15px rgba(212,175,55,.10),inset 0 1px 0 rgba(255,255,255,.06);
  white-space:nowrap;
  max-width:100%;
  cursor:pointer;
  transition:all .28s cubic-bezier(.2,.8,.2,1);
}
button.hero-usp:hover,
button.hero-usp:focus-visible{
  transform:translateY(-2px);
  border-color:rgba(240,235,227,.55);
  background:linear-gradient(135deg,rgba(52,46,38,.85),rgba(34,30,26,.88));
  color:#fff;
  box-shadow:0 14px 32px rgba(0,0,0,.35),0 0 25px rgba(212,175,55,.2),inset 0 1px 0 rgba(255,255,255,.10);
  outline:none;
}
button.hero-usp .hero-usp__icon{
  display:inline-grid;
  place-items:center;
  width:22px;height:22px;
  min-width:22px;
  border-radius:50%;
  background:rgba(240,235,227,.10);
  border:1px solid rgba(240,235,227,.28);
  font-size:.82rem;
  line-height:1;
  color:#f0ebe3;
  filter:drop-shadow(0 0 6px rgba(212,175,55,.3));
  transition:background .25s ease,border-color .25s ease;
}
button.hero-usp:hover .hero-usp__icon{
  background:rgba(240,235,227,.18);
  border-color:rgba(240,235,227,.5);
}
button.hero-usp .hero-usp__arrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:.9em;
  opacity:.6;
  color:#f0ebe3;
  transition:transform .25s ease,opacity .25s ease;
}
button.hero-usp:hover .hero-usp__arrow{
  opacity:1;
  transform:translateX(3px);
}
@media (max-width:700px){
  button.hero-usp{font-size:.8rem;padding:.5rem .9rem .5rem .8rem}
  button.hero-usp .hero-usp__icon{width:18px;height:18px;min-width:18px;font-size:.7rem}
}

/* ============================================================
   9. HERO-FACTS — общий для index / about / licence
   ============================================================ */
.hero-facts{
  display:flex;               /* ★ было: grid */
  flex-wrap:wrap;             /* ★ вместо grid-template-columns */
  gap:1rem;
  width:100%;
  max-width:940px;
  margin:0 auto;
}
@media (min-width:769px){
  .hero-facts{margin-top:28px}
}

.hero-fact{
  flex: 1 1 calc(33.333% - 1rem);  /* ★ три колонки через flex */
  min-width: 0;
  position:relative;
  display:flex;
  align-items:center;
  gap:.85rem;
  padding:1rem 1.1rem;
  border:1px solid var(--fact-border, rgba(143,214,221,.22));
  border-radius:16px;
  background:
    radial-gradient(circle at 0 0, var(--fact-accent-soft, rgba(79,179,189,.12)), transparent 55%),
    linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  box-shadow:0 14px 32px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.06);
  text-decoration:none;
  color:inherit;
  transition:all .28s cubic-bezier(.2,.8,.2,1);
  overflow:visible;
  z-index:1;
  font-family:inherit;
  text-align:left;
  cursor:pointer;
}
.hero-fact::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--fact-accent, rgba(143,214,221,.85)),transparent);
  opacity:.9;
  pointer-events:none;
  border-radius:16px 16px 0 0;
}
.hero-fact:hover,
.hero-fact:focus-visible{
  transform:translateY(-4px);
  border-color:var(--fact-accent, rgba(143,214,221,.55));
  box-shadow:
    0 22px 46px rgba(0,0,0,.35),
    0 0 32px var(--fact-accent-soft, rgba(79,179,189,.22)),
    inset 0 1px 0 rgba(255,255,255,.10);
  outline:none;
}
.hero-fact__icon{
  width:52px;height:52px;
  min-width:52px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:1.55rem;
  background:linear-gradient(135deg,
    var(--fact-accent-soft, rgba(79,179,189,.22)),
    rgba(0,0,0,.30));
  border:1px solid var(--fact-border, rgba(143,214,221,.4));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 6px 16px var(--fact-accent-soft, rgba(79,179,189,.22));
  flex-shrink:0;
  transition:transform .3s cubic-bezier(.34,1.56,.64,1);
}
.hero-fact:hover .hero-fact__icon{
  transform:scale(1.1) rotate(-4deg);
}
.hero-fact__body{
  display:flex;
  flex-direction:column;
  gap:.2rem;
  min-width:0;
  text-align:left;
  width:100%;
  position:relative;
  z-index:1;
  padding-right:28px;
}
.hero-fact__value{
  font:900 1.02rem/1.15 Georgia,'Times New Roman',serif;
  color:#f0ebe3;
  letter-spacing:-.015em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  min-height:1.2em;
}
.hero-fact__label{
  font:400 .74rem/1.4 system-ui,-apple-system,sans-serif;
  color:rgba(240,235,227,.72);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-break:break-word!important;
}
.hero-fact__year{
  position:absolute;
  top:-.55rem;left:1rem;
  z-index:5;
  display:inline-flex;
  align-items:center;
  padding:.2rem .55rem;
  border:1px solid var(--fact-border, rgba(127,196,240,.55));
  border-radius:999px;
  background:linear-gradient(135deg,
    var(--fact-accent, rgba(42,139,196,.95)),
    rgba(0,0,0,.45));
  color:#fff;
  font:800 .48rem/1 system-ui,-apple-system,sans-serif;
  letter-spacing:.1em;
  text-transform:uppercase;
  white-space:nowrap;
  box-shadow:
    0 4px 12px var(--fact-accent-soft, rgba(42,139,196,.4)),
    inset 0 1px 0 rgba(255,255,255,.18);
  pointer-events:none;
}
.hero-fact .rmz-hint{
  position:absolute!important;
  top:-14px!important;
  right:-14px!important;
  left:auto!important;
  bottom:auto!important;
  margin:0!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  font-size:1.05rem!important;
  font-weight:800!important;
  line-height:1!important;
  border-radius:50%!important;
  border:2px solid var(--fact-accent, rgba(127,200,255,.85))!important;
  background:rgba(10,15,24,.98)!important;
  color:var(--fact-accent, rgba(180,220,255,.98))!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  cursor:pointer!important;
  padding:0!important;
  vertical-align:baseline!important;
  transition:all .22s ease!important;
  box-shadow:
    0 0 14px var(--fact-accent-soft, rgba(0,136,204,.55)),
    0 0 0 3px rgba(10,15,24,.95)!important;
  z-index:20!important;
  pointer-events:auto!important;
  -webkit-tap-highlight-color:transparent!important;
}
.hero-fact .rmz-hint:hover,
.hero-fact .rmz-hint:focus-visible{
  background:var(--fact-accent-soft, rgba(0,136,204,.42))!important;
  border-color:var(--fact-accent, rgba(180,220,255,1))!important;
  color:#fff!important;
  box-shadow:
    0 0 22px var(--fact-accent, rgba(0,136,204,.95)),
    0 0 0 3px rgba(10,15,24,.95)!important;
  transform:scale(1.12)!important;
  outline:none!important;
}
@media (max-width:1024px){
  .hero-facts{gap:.55rem;padding:0 4px;max-width:640px;margin-top:6px}
  .hero-fact{padding:.85rem .9rem;gap:.65rem;border-radius:14px}
  .hero-fact__icon{width:44px;height:44px;min-width:44px;border-radius:12px;font-size:1.3rem}
  .hero-fact__value{font-size:.92rem}
  .hero-fact__label{font-size:.68rem}
}
/* ============================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ HERO-FACTS (ОБНОВЛЕНО)
   ============================================================ */

@media (max-width: 700px){
  .hero-facts {
    gap: .5rem;
    margin: 12px auto 0;
    /* ★ Карточки занимают ровно 100% ширины контейнера (без вылезаний) */
    width: 100%; 
    max-width: 100%;
    padding: 0; 
    box-sizing: border-box;
    align-items: stretch;
  }
  
  .hero-fact {
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center; /* Текст по центру по вертикали */
    padding: .7rem .5rem;
    gap: .4rem;
    border-radius: 12px;
    min-width: 0;
  }
  
  .hero-fact__body {
    text-align: center;
    align-items: center;
    padding-right: 0;
    flex: 0 1 auto; /* Не раздувает пустоту */
    justify-content: center;
    width: 100%;
  }
  
  .hero-fact__icon {
    width: 38px; height: 38px; min-width: 38px;
    border-radius: 11px; font-size: 1.1rem;
    margin: 0 auto;
  }
  
  .hero-fact__value {
    font-size: .74rem; line-height: 1.15;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
  }
  
  .hero-fact__label {
    font-size: .54rem; line-height: 1.25;
    display: block !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
  }
  
  .hero-fact .rmz-hint {
    width: 24px !important; height: 24px !important; min-width: 24px !important;
    font-size: .9rem !important; top: -10px !important; right: -10px !important;
  }
}

@media (max-width: 480px){
  .hero-facts { gap: .4rem; }
  .hero-fact { padding: .6rem .35rem; }
  .hero-fact__icon { width: 34px; height: 34px; min-width: 34px; border-radius: 10px; }
  .hero-fact__value { font-size: .7rem; }
  .hero-fact__label { font-size: .54rem; }
  .hero-fact .rmz-hint {
    width: 20px !important; height: 20px !important; min-width: 20px !important;
    font-size: .76rem !important; top: -8px !important; right: -8px !important;
  }
}

@media (max-width: 380px){
  .hero-facts { gap: .3rem; }
  .hero-fact { padding: .55rem .3rem; }
  .hero-fact__value { font-size: .66rem; }
  .hero-fact__label { font-size: .5rem; }
}

/* ============================================================
   10. RMZ-HINT — базовый (для hero-facts и hero-title-sub)
   ============================================================ */
.rmz-hint{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:15px;height:15px;
  min-width:15px;
  border-radius:50%;
  border:1px solid var(--rmz-hint-border, rgba(143,214,221,.55));
  background:var(--rmz-hint-bg, rgba(79,179,189,.10));
  color:var(--rmz-hint-color, rgba(200,240,245,.95));
  font:800 .58rem/1 system-ui,-apple-system,sans-serif;
  cursor:pointer;
  padding:0;
  margin:0 0 0 4px;
  vertical-align:super;
  transition:all .2s ease;
  flex-shrink:0;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
  text-decoration:none;
  position:relative;
}
.rmz-hint:hover,
.rmz-hint:focus-visible{
  border-color:var(--rmz-hint-border-hover, rgba(200,240,245,1));
  background:var(--rmz-hint-bg-hover, rgba(79,179,189,.32));
  color:#fff;
  box-shadow:0 0 12px var(--rmz-hint-glow, rgba(79,179,189,.55));
  outline:none;
  transform:scale(1.15);
}
.rmz-hint--gold{
  --rmz-hint-border: rgba(232,196,106,.75);
  --rmz-hint-border-hover: #f0d98c;
  --rmz-hint-bg: rgba(232,196,106,.14);
  --rmz-hint-bg-hover: rgba(232,196,106,.32);
  --rmz-hint-color: #f0d98c;
  --rmz-hint-glow: rgba(232,196,106,.5);
}
.rmz-hint--blue{
  --rmz-hint-border: rgba(127,200,255,.55);
  --rmz-hint-border-hover: rgba(180,220,255,1);
  --rmz-hint-bg: rgba(0,136,204,.1);
  --rmz-hint-bg-hover: rgba(0,136,204,.32);
  --rmz-hint-color: rgba(180,220,255,.95);
  --rmz-hint-glow: rgba(0,136,204,.55);
}
.rmz-hint--teal{
  --rmz-hint-border: rgba(143,214,221,.55);
  --rmz-hint-border-hover: rgba(200,240,245,1);
  --rmz-hint-bg: rgba(79,179,189,.10);
  --rmz-hint-bg-hover: rgba(79,179,189,.32);
  --rmz-hint-color: rgba(200,240,245,.95);
  --rmz-hint-glow: rgba(79,179,189,.55);
}
.rmz-hint--floating{
  position:absolute;
  top:-8px;right:-8px;
  margin:0;
  background:rgba(10,15,24,.95);
  border-color:rgba(143,214,221,.85);
  box-shadow:0 0 12px rgba(79,179,189,.45),0 0 0 2px rgba(10,15,24,.9);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  z-index:10;
}
@media (max-width:700px){
  .rmz-hint{width:14px;height:14px;min-width:14px;font-size:.54rem;margin-left:3px}
}

/* ============================================================
   11. ГЛОБАЛЬНЫЙ БЕЛЫЙ СКАНЕР — @keyframes
   ============================================================ */
@keyframes rmzGlobalScan{
  0%   { transform: translate3d(-100%, 0, 0); opacity: 0; }
  3%   { opacity: 1; }
  15%  { transform: translate3d(100%, 0, 0); opacity: 1; }
  18%  { transform: translate3d(100%, 0, 0); opacity: 0; }
  100% { transform: translate3d(100%, 0, 0); opacity: 0; }
}
.nav-id-scanner,
.nav-id-logo-scanner,
.footer-id-icon,
.hero-id-cta__scanner,
.hero-scanner-inline,
.process-column__scanner,
.cta-orgs-btn__scanner,
.mini-scanner{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.nav-id-scanner::before,
.nav-id-logo-scanner::before,
.footer-id-icon::before,
.hero-id-cta__scanner::before,
.hero-scanner-inline::before,
.process-column__scanner::before,
.cta-orgs-btn__scanner::before,
.mini-scanner::before{
  content:'';
  position:absolute;
  top:0;left:0;
  width:100%;height:100%;
  background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.1) 30%,rgba(255,255,255,0.4) 50%,rgba(255,255,255,0.1) 70%,transparent 100%);
  animation:rmzGlobalScan 3.8s ease-in-out infinite;
  pointer-events:none;
  z-index:3;
  mix-blend-mode:screen;
  filter:blur(2px);
  will-change:transform,opacity;
}
.nav-id-scanner::after,
.nav-id-logo-scanner::after,
.footer-id-icon::after,
.hero-id-cta__scanner::after,
.hero-scanner-inline::after,
.process-column__scanner::after,
.cta-orgs-btn__scanner::after,
.mini-scanner::after{
  content:'';
  position:absolute;
  top:0;left:0;
  width:100%;height:100%;
  background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,0.2) 25%,rgba(255,255,255,0.9) 50%,rgba(255,255,255,0.2) 75%,transparent 100%);
  animation:rmzGlobalScan 3.8s ease-in-out infinite;
  pointer-events:none;
  z-index:4;
  mix-blend-mode:screen;
  will-change:transform,opacity;
}
@media (prefers-reduced-motion: reduce){
  .nav-id-scanner::before, .nav-id-scanner::after,
  .nav-id-logo-scanner::before, .nav-id-logo-scanner::after,
  .footer-id-icon::before, .footer-id-icon::after,
  .hero-id-cta__scanner::before, .hero-id-cta__scanner::after,
  .hero-scanner-inline::before, .hero-scanner-inline::after,
  .process-column__scanner::before, .process-column__scanner::after,
  .cta-orgs-btn__scanner::before, .cta-orgs-btn__scanner::after,
  .mini-scanner::before, .mini-scanner::after{
    animation:none!important;
    display:none!important;
  }
}

@media (max-width: 768px) {
  .hero-main-cta {
    box-shadow: none !important; /* Убираем тяжелую тень на мобильных */
    transition: none !important; /* Убираем анимацию */
  }
}