:root { --accent: #ff9d5c; --site-header-flow-top: 34px; --site-header-open-offset: 20px; }

body { position: relative; overflow-x: hidden; isolation: isolate; }

/* Анимация смены языка */
[data-i18n] { transition: opacity 0.15s ease; }
body.language-transitioning [data-i18n] { opacity: 0.6; }

html { scroll-behavior: smooth; scrollbar-color: #ff9d5c #111; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { border: 2px solid #111; border-radius: 999px; background: #ff9d5c; }
::-webkit-scrollbar-thumb:hover { background: #ffb077; }
body > :not(.ambient-orbs) { position: relative; z-index: 2; }
.ambient-orbs { position: fixed; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.ambient-orbs canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.site-header .site-brand, .site-header .site-nav a, main h1, main > p { text-shadow: 0 2px 6px rgba(0, 0, 0, .95), 0 0 18px rgba(0, 0, 0, .75); }
body[data-page="products"] main { background: linear-gradient(#080808 0 110px, rgba(8, 8, 8, 0) 165px); }

[data-scroll-reveal] {
  opacity: 1;
  transition: opacity 650ms cubic-bezier(.22, .61, .36, 1) var(--scroll-reveal-delay, 0ms), transform 650ms cubic-bezier(.22, .61, .36, 1) var(--scroll-reveal-delay, 0ms);
}

[data-scroll-reveal].scroll-reveal-pending {
  opacity: 0;
  transform: translateY(22px);
}

[data-scroll-reveal].scroll-reveal-pending:focus-within {
  opacity: 1;
  transform: none;
  transition-delay: 0ms;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1480px, calc(100% - 32px));
  min-height: 74px;
  margin: 0;
  padding: 10px 22px;
  transform: translate(-50%, var(--site-header-open-offset));
  border: 1px solid rgba(255, 157, 92, .16);
  border-radius: 26px;
  background: rgba(12, 11, 11, .94);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .25);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transition: width 300ms ease, min-height 300ms ease, gap 300ms ease, padding 300ms ease, background-color 300ms ease, border-color 300ms ease, border-radius 300ms ease, box-shadow 300ms ease, transform 300ms ease;
}

body > .site-header { position: fixed; z-index: 100; }
.site-header-spacer { display: block; }

.site-header.is-scrolled {
  width: min(1280px, calc(100% - 32px));
  min-height: 64px;
  gap: 14px;
  padding: 8px 18px;
  transform: translate(-50%, 0);
  border-radius: 999px;
  border-color: rgba(255, 157, 92, .4);
  background: rgba(27, 27, 27, .97);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .38);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.8px;
  text-decoration: none;
}

.site-brand .brand-mark { display: block; width: 28px; height: 28px; flex: 0 0 28px; margin-right: 8px; }
.site-brand span { color: var(--accent); }

.site-nav { display: flex; min-width: 0; align-items: center; justify-content: center; gap: clamp(14px, 1vw, 20px); flex: 1; transition: gap 300ms ease; }
.site-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #bcbcbc;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .28s ease, background-color .28s ease, border-color .28s ease, padding .32s cubic-bezier(.2, .75, .25, 1), transform .28s ease, box-shadow .28s ease;
}
.site-nav a::before {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  content: "";
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  transition: transform .28s ease;
}
.site-nav a[data-i18n="nav-home"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 10 9-7 9 7v10a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
}
.site-nav a[data-i18n="nav-products"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 8 4.5v9L12 21l-8-4.5v-9z'/%3E%3Cpath d='m12 12 8-4.5M12 12v9M4 7.5 12 12m0-9v9'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 8 4.5v9L12 21l-8-4.5v-9z'/%3E%3Cpath d='m12 12 8-4.5M12 12v9M4 7.5 12 12m0-9v9'/%3E%3C/svg%3E");
}
.site-nav a[data-i18n="nav-exploits"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='m7 9 3 3-3 3m6 0h4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='m7 9 3 3-3 3m6 0h4'/%3E%3C/svg%3E");
}
.site-nav a[data-i18n="nav-reviews"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.7 5.5 6.1.9-4.4 4.3 1 6.1-5.4-2.9-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.7 5.5 6.1.9-4.4 4.3 1 6.1-5.4-2.9-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E");
}
.site-nav a[data-i18n="nav-contact"]::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; background: rgba(255, 157, 92, .08); }
.site-nav a.active { border-color: rgba(255, 157, 92, .3); color: #ffb077; background: rgba(255, 157, 92, .13); box-shadow: inset 0 0 0 1px rgba(255, 157, 92, .04); }
.site-nav a.active:hover, .site-nav a.active:focus-visible { background: rgba(255, 157, 92, .18); }
.site-header.is-scrolled .site-nav { gap: clamp(2px, .6vw, 8px); }

.site-controls { display: flex; align-items: center; gap: 8px; }
.currency-menu { position: relative; z-index: 101; }
.currency-trigger { display: inline-flex; min-width: 82px; min-height: 40px; align-items: center; justify-content: space-between; gap: 7px; padding: 0 11px; border: 1px solid rgba(255, 157, 92, .35); border-radius: 13px; color: #d5c4ba; background: #241d1a; font: 800 12px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.currency-trigger:hover, .currency-menu.is-open .currency-trigger, .currency-trigger:focus-visible { border-color: rgba(255, 157, 92, .72); color: #fff; background: #30231d; }
.currency-trigger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.currency-trigger svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform .18s ease; }
.currency-menu.is-open .currency-trigger svg { transform: rotate(180deg); }
.currency-panel { position: absolute; z-index: 110; top: calc(100% + 8px); right: 0; display: none; width: 182px; max-height: 252px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid #3a332f; border-radius: 11px; background: #1b1b1b; box-shadow: 0 18px 32px rgba(0, 0, 0, .38); }
.currency-menu.is-open .currency-panel { display: grid; gap: 3px; }
.currency-option { display: flex; min-width: 0; min-height: 32px; align-items: center; justify-content: space-between; gap: 8px; padding: 0 7px; border: 1px solid transparent; border-radius: 7px; color: #c9c0bc; background: transparent; font: 700 11px/1 Inter, ui-sans-serif, system-ui, sans-serif; text-align: left; cursor: pointer; }
.currency-option:hover, .currency-option:focus-visible { border-color: rgba(255, 157, 92, .25); color: #fff; background: #2b211c; outline: none; }
.currency-option > span { display: inline-flex; min-width: 70px; flex: 0 0 70px; align-items: center; gap: 7px; }
.currency-option strong { min-width: 17px; flex-shrink: 0; color: var(--accent); font-size: 13px; text-align: center; }
.currency-option b { color: inherit; font-size: 11px; }
.currency-option small { min-width: 0; overflow: hidden; color: #958b86; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.currency-panel::-webkit-scrollbar { width: 7px; }
.currency-panel::-webkit-scrollbar-track { background: #141414; }
.currency-panel::-webkit-scrollbar-thumb { border: 1px solid #141414; border-radius: 999px; background: #62534a; }
.language-toggle { position: relative; display: flex; flex: 0 0 88px; align-items: center; width: 88px; height: 40px; padding: 4px; border: 1px solid rgba(255, 157, 92, .35); border-radius: 13px; background: #241d1a; }
.language-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.language-toggle label { position: relative; z-index: 1; display: grid; flex: 1; height: 30px; place-items: center; border-radius: 9px; color: #b8aaa1; font-size: 12px; font-weight: 800; cursor: pointer; transition: none; }
.language-toggle .language-slider { position: absolute; top: 4px; left: 4px; width: 38px; height: 30px; border-radius: 9px; background: var(--accent); box-shadow: 0 3px 9px rgba(255, 157, 92, .28); transition: none; pointer-events: none; }
.language-toggle #language-en:checked + label, .language-toggle #language-ru:checked + label { color: #21130a; }
.language-toggle #language-en:checked ~ .language-slider { transform: translateX(42px); }
.language-toggle input:focus-visible + label { outline: 2px solid #fff; outline-offset: 2px; }
.cart-trigger { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 5px 7px 5px 11px; border: 1px solid rgba(255, 157, 92, .65); border-radius: 11px; color: var(--accent); background: #241d1a; font: 700 13px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.cart-trigger svg { width: 18px; height: 18px; flex: 0 0 18px; }
.cart-trigger__count { display: inline-grid; min-width: 26px; min-height: 27px; place-items: center; padding: 0 5px; border-radius: 7px; color: #21130a; background: var(--accent); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-trigger:hover, .cart-trigger:focus-visible { border-color: var(--accent); color: #ffb077; background: #30231d; }
.cart-trigger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
body > .site-page-loader { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; visibility: hidden; opacity: 0; background: #000; pointer-events: none; transition: opacity .2s ease, visibility 0s linear .2s; }
.site-page-loader.is-visible { visibility: visible; opacity: 1; pointer-events: auto; transition: none; }
.site-page-loader__spinner { width: 44px; height: 44px; border: 4px solid rgba(255, 157, 92, .22); border-top-color: var(--accent); border-radius: 50%; animation: site-page-loader-spin .75s linear infinite; }
@keyframes site-page-loader-spin { to { transform: rotate(360deg); } }
.login-link, .admin-link { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
.login-link { border: 1px solid var(--accent); color: #17100b; background: var(--accent); }
.login-link::before { width: 17px; height: 17px; flex: 0 0 17px; background: currentColor; content: ""; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20v-2a7 7 0 0 1 14 0v2H5z'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20v-2a7 7 0 0 1 14 0v2H5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.login-link:hover, .login-link:focus-visible { transform: translateY(-1px); background: #ffb077; }
.admin-link { border: 1px solid var(--accent); color: #17100b; background: var(--accent); }
.admin-link:hover, .admin-link:focus-visible { background: #ffb077; }
.catalog-product-version { margin: 6px 0 0; color: #ffad78; font-size: 12px; font-weight: 750; }

.user-menu { display: flex; align-items: center; gap: 10px; }
.user-name { color: #fff; font-size: 14px; font-weight: 700; }
.logout-btn { display: inline-grid; min-height: 38px; place-items: center; padding: 0 14px; border: 1px solid rgba(255, 157, 92, .65); border-radius: 10px; color: var(--accent); background: transparent; font: inherit; font-size: 13px; font-weight: 800; line-height: 1; cursor: pointer; transition: background .18s ease, color .18s ease, transform .18s ease; }
.logout-btn:hover, .logout-btn:focus-visible { background: rgba(255, 157, 92, .13); }

.detail-add-to-cart { display: inline-grid; width: 100%; min-height: 42px; place-items: center; margin-top: 8px; border: 1px solid rgba(255, 157, 92, .75); border-radius: 9px; color: var(--accent); background: #211915; font: 800 13px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.detail-add-to-cart:hover:not(:disabled) { background: rgba(255, 157, 92, .16); }
.detail-add-to-cart:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.detail-add-to-cart:disabled { border-color: #47403b; color: #8e8178; background: #1b1a19; cursor: not-allowed; }

.cart-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid rgba(255, 157, 92, .45); border-radius: 18px; color: #f8f8f8; background: #1b1b1b; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.cart-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.cart-dialog__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cart-dialog__heading h2 { margin: 0; font-size: 23px; }
.cart-dialog__close { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #4a3a30; border-radius: 9px; color: #ffad78; background: #28201b; font: 26px/1 sans-serif; cursor: pointer; }
.cart-dialog__close:hover, .cart-dialog__close:focus-visible { background: #38291f; }
.cart-dialog__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cart-dialog__message { margin: 18px 0 0; color: #bdb5b0; font-size: 14px; line-height: 1.6; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 1460px) {
  .site-header { justify-content: center; flex-wrap: wrap; gap: 12px 22px; padding: 14px 20px; }
  .site-header.is-scrolled { gap: 10px 18px; padding: 10px 18px; }
  .site-nav { flex: 0 1 auto; }
  .site-controls { width: 100%; flex: 0 0 100%; justify-content: center; }
}

@media (max-width: 680px) {
  :root { --site-header-flow-top: 16px; --site-header-open-offset: 2px; }
  .site-header { width: calc(100% - 20px); border-radius: 26px; }
  .site-header.is-scrolled { width: calc(100% - 20px); border-radius: 26px; }
  .site-brand { font-size: 22px; }
  .site-nav { width: 100%; flex: 0 1 100%; flex-wrap: wrap; gap: 14px 16px; }
  .site-nav a { font-size: 14px; }
  .site-header.is-scrolled .site-nav { gap: 8px 10px; }
  .site-controls { width: 100%; flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-scroll-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .site-header, .site-nav, .site-nav a, .site-nav a::before { transition-duration: .01ms; }
  .site-page-loader, .site-page-loader__spinner { transition: none; animation: none; }
}
