/* =========================================================
   Kaspersky Free — Liquid Glass UI
   ========================================================= */

:root {
  --bg: #070b16;
  --bg-2: #0a0e1a;
  --text: #eef2ff;
  --text-dim: #aab3cf;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-bg-strong: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.16);
  --glass-hi: rgba(255, 255, 255, 0.55);
  --accent: #4ade80;
  --accent-2: #22d3ee;
  --accent-3: #818cf8;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.55);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, #122046 0%, transparent 55%),
              radial-gradient(1000px 700px at 0% 100%, #0c2733 0%, transparent 50%),
              var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.lg-svg { position: absolute; width: 0; height: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--accent); color: #04210f; padding: 10px 16px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Aurora background ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.5;
  will-change: transform; transform: translateZ(0); backface-visibility: hidden;
}
.blob--1 { width: 520px; height: 520px; left: -120px; top: -140px;
  background: radial-gradient(circle, #1d4ed8, transparent 70%); animation: drift 26s var(--ease) infinite; }
.blob--2 { width: 480px; height: 480px; right: -120px; top: 12%;
  background: radial-gradient(circle, #06b6d4, transparent 70%); animation: drift 30s var(--ease) infinite reverse; }
.blob--3 { width: 560px; height: 560px; left: 18%; bottom: -200px;
  background: radial-gradient(circle, #22c55e, transparent 70%); animation: drift 34s var(--ease) infinite; }
.blob--4 { width: 440px; height: 440px; right: 8%; bottom: 4%;
  background: radial-gradient(circle, #7c3aed, transparent 70%); animation: drift 28s var(--ease) infinite reverse; }

@keyframes drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.12); }
  66% { transform: translate(-40px, 30px) scale(0.92); }
}

/* ---------- Glass base ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.18);
  border-radius: var(--radius);
}
/* Specular sheen on top edge */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), transparent 40%);
  opacity: 0.7;
  -webkit-mask: linear-gradient(#000, transparent 60%);
          mask: linear-gradient(#000, transparent 60%);
}

/* Liquid refraction — Chromium enhances backdrop with SVG displacement */
@supports (backdrop-filter: url(#liquid-glass)) {
  .glass--liquid {
    backdrop-filter: blur(8px) saturate(180%) url(#liquid-glass);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.2px;
  padding: 13px 24px; border-radius: 999px; cursor: pointer; border: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  color: #042713;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(34,211,238,0.35), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn--primary:hover { transform: translateY(-3px); filter: brightness(1.07); box-shadow: 0 16px 40px rgba(34,211,238,0.45); }
.btn--ghost {
  color: var(--text);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { transform: translateY(-3px); background: var(--glass-bg-strong); }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--xl { padding: 19px 42px; font-size: 1.15rem; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 16px; z-index: 100; padding: 0 20px; }
.nav {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 18px;
  padding: 12px 14px 12px 20px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; }
.brand__mark { display: grid; place-items: center; }
.brand__text span { color: var(--accent); }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-weight: 500; color: var(--text-dim); }
.nav__links a { position: relative; transition: color 0.25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { margin-left: 8px; }
.nav__burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; position: relative; z-index: 30; border-radius: 10px;
}
.nav__burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.nav.open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 20px;
  content-visibility: auto; contain-intrinsic-size: auto 600px; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px;
}
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; }
.section__head p { color: var(--text-dim); margin-top: 14px; font-size: 1.06rem; }
.grad-text {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 50%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 90px 20px 60px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.badge {
  display: inline-block; padding: 8px 16px; border-radius: 999px; font-size: 0.85rem;
  font-weight: 600; color: var(--text); margin-bottom: 22px;
}
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -1px; }
.hero__sub { color: var(--text-dim); font-size: 1.15rem; max-width: 540px; margin: 22px 0 32px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 38px; margin-top: 44px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 1.7rem; font-weight: 800; }
.hero__stats span { color: var(--text-dim); font-size: 0.9rem; }

/* Hero shield card */
.hero__visual { display: grid; place-items: center; }
.shield-card {
  width: 100%; max-width: 380px; padding: 38px 32px; text-align: center;
  border-radius: 28px; overflow: hidden;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.shield-card__glow {
  position: absolute; inset: -40% -10% auto; height: 60%;
  background: radial-gradient(circle, rgba(74,222,128,0.5), transparent 70%);
  filter: blur(40px); z-index: -1;
}
.shield-icon { display: grid; place-items: center; margin: 0 auto 18px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.18), transparent 70%);
  border: 1px solid var(--glass-border); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.35); } 50% { box-shadow: 0 0 0 18px rgba(74,222,128,0); } }
.shield-card__status { font-size: 1.4rem; font-weight: 800; }
.shield-card__hint { color: var(--text-dim); font-size: 0.92rem; margin-top: 4px; }
.shield-card__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.1); margin: 22px 0; overflow: hidden; }
.shield-card__bar span { display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); animation: fill 2.4s var(--ease) forwards 0.4s; }
@keyframes fill { to { width: 92%; } }
.shield-card__rows { display: grid; gap: 12px; text-align: left; }
.shield-card__rows div { display: flex; justify-content: space-between; font-size: 0.95rem; }
.shield-card__rows span { color: var(--text-dim); }
.shield-card__rows b { color: var(--accent); }

/* ---------- Trust strip ---------- */
.trust { max-width: var(--maxw); margin: 10px auto 0; padding: 0 20px; }
.trust__inner {
  display: flex; flex-wrap: wrap; gap: 18px 40px; justify-content: center;
  padding: 18px 28px; border-radius: 999px;
  color: var(--text-dim); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.4px;
}

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 22px; }
.features { grid-template-columns: repeat(3, 1fr); }
.card { padding: 30px 28px; border-radius: var(--radius); transition: transform 0.4s var(--ease), border-color 0.4s; }
.card:hover { transform: translateY(-8px); border-color: rgba(74,222,128,0.4); }
.card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--text-dim); }

/* ---------- Glass icon badges ---------- */
.icon-badge,
.card__icon,
.platform__icon {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px; border-radius: 18px; margin-bottom: 18px;
  background: linear-gradient(140deg, rgba(74,222,128,0.20), rgba(34,211,238,0.12));
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 10px 26px rgba(2,6,23,0.40);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.card__icon svg, .platform__icon svg, .icon-badge svg { width: 30px; height: 30px; display: block; }
.card:hover .card__icon { transform: translateY(-3px) scale(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 14px 30px rgba(34,211,238,0.30); }

/* ---------- Platforms ---------- */
.platforms { grid-template-columns: repeat(3, 1fr); }
.platform { padding: 36px 30px; text-align: center; transition: transform 0.4s var(--ease); }
.platform:hover { transform: translateY(-8px); }
.platform__icon { width: 70px; height: 70px; border-radius: 20px; margin: 0 auto 18px; }
.platform__icon svg { width: 38px; height: 38px; }
.platform:hover .platform__icon { transform: translateY(-3px) scale(1.05); }
.platform h3 { font-size: 1.4rem; font-weight: 800; }
.platform p { color: var(--text-dim); margin: 10px 0 22px; }

/* ---------- Steps ---------- */
.steps { grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.step { padding: 32px 28px; }
.step__num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  font-weight: 800; font-size: 1.2rem; color: #04210f; margin-bottom: 16px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); }

/* ---------- Download ---------- */
.download { display: grid; place-items: center; }
.download__card {
  position: relative; text-align: center; max-width: 760px; width: 100%;
  padding: 56px 40px; border-radius: 30px; overflow: hidden;
}
.download__glow {
  position: absolute; inset: auto -20% -60%; height: 80%;
  background: radial-gradient(circle, rgba(34,211,238,0.4), transparent 70%);
  filter: blur(50px); z-index: -1;
}
.download__card h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin: 8px 0 14px; }
.download__card p { color: var(--text-dim); font-size: 1.08rem; max-width: 520px; margin: 0 auto 30px; }
.download__meta { font-size: 0.86rem; margin-top: 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { padding: 4px 24px; border-radius: var(--radius-sm); transition: border-color 0.3s; }
.faq__item summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 1.06rem;
  padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--accent-2); transition: transform 0.3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--text-dim); padding: 0 0 20px; }
.faq__item[open] { border-color: rgba(34,211,238,0.4); }

/* ---------- Footer ---------- */
.site-footer { max-width: var(--maxw); margin: 60px auto 0; padding: 0 20px 40px; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; padding: 44px 40px; border-radius: var(--radius); align-items: start; }
.site-footer__brand .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; }
.site-footer__brand p { color: var(--text-dim); margin-top: 12px; max-width: 280px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.site-footer__cols div { min-width: 0; }
.site-footer__cols h4 { font-size: 0.95rem; margin-bottom: 14px; }
.site-footer__cols a { display: block; color: var(--text-dim); padding: 5px 0; transition: color 0.25s; }
.site-footer__cols a:hover { color: var(--text); }
.site-footer__copy { text-align: center; color: var(--text-dim); font-size: 0.84rem; margin-top: 28px; }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border-radius: 14px; font-size: 1.3rem; color: var(--text);
  cursor: pointer; display: grid; place-items: center;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 60px; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions, .hero__stats { justify-content: center; }
  .hero__visual { order: -1; }
  .features, .platforms, .steps { grid-template-columns: 1fr 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__brand p { max-width: none; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; margin-left: auto; }
  .nav.open .nav__links {
    display: flex; flex-direction: column; gap: 14px; position: absolute;
    top: calc(100% + 12px); left: 0; right: 0; padding: 22px; border-radius: var(--radius);
    background: var(--glass-bg-strong); backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border); box-shadow: var(--shadow); text-align: center; z-index: 20;
    transform-origin: top center; animation: menuIn 0.28s var(--ease) both;
  }
  .nav.open .nav__cta { display: inline-flex; margin: 8px auto 0; width: 100%; }
  .features, .platforms, .steps { grid-template-columns: 1fr; }
  .section { padding: 70px 18px; }
  .hero__stats { gap: 26px; }
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .hero { padding: 48px 16px 40px; gap: 36px; }
  .hero__title { font-size: clamp(2.1rem, 11vw, 2.8rem); }
  .hero__sub { font-size: 1.02rem; }
  /* Кнопки на всю ширину — не вылезают за экран */
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .btn--xl { width: 100%; padding: 17px 20px; font-size: 1.04rem; }
  .btn { white-space: normal; }
  .hero__stats { gap: 18px 24px; justify-content: center; }
  .trust__inner { gap: 12px 22px; font-size: 0.84rem; padding: 16px 18px; }
  .nav { padding: 10px 12px 10px 16px; }
  .download__card { padding: 40px 22px; }
  .section__head { margin-bottom: 38px; }
  .faq__item { padding: 2px 18px; }
  .site-footer__inner { padding: 32px 22px; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Lite mode: weak / low-power devices ----------
   Drops the most GPU-expensive effects while keeping the glass look. */
.lite .glass--liquid { backdrop-filter: blur(10px) saturate(150%); -webkit-backdrop-filter: blur(10px) saturate(150%); }
.lite .blob { animation: none !important; filter: blur(48px); opacity: 0.4; }
.lite .shield-card, .lite .shield-icon { animation: none !important; }
.lite .glass::after { display: none; }
.lite .reveal { transition-duration: 0.4s; }
