/* =========================
   ЦВЕТА И ДИЗАЙН
   ========================= */
:root {
  --red: #ff0000;
  --white: #ffffff;
  --graphite: #1e1e1e;
  --ink: #111317;
  --paper: #f3f3f1;
  --muted: #747a82;
  --line: rgba(17, 19, 23, .14);
  --radius: 28px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: Arial, system-ui, sans-serif; overflow-x: hidden; }
body.site-loading { overflow: hidden; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: auto; }
.progress { position: fixed; inset: 0 auto auto 0; z-index: 200; width: 0; height: 3px; background: var(--red); }

.site-loader { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 22px; background: var(--red); opacity: 1; visibility: visible; transition: opacity .48s ease, visibility .48s ease; }
.site-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.site-loader img { width: clamp(88px, 11vw, 132px); height: auto; animation: loader-logo 1.25s ease-in-out infinite; }
.site-loader > span { color: rgba(255,255,255,.82); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.site-loader-line { position: relative; width: min(220px, 58vw); height: 3px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.28); }
.site-loader-line i { position: absolute; inset: 0; width: 42%; border-radius: inherit; background: var(--white); animation: loader-line 1.05s ease-in-out infinite; }

.vpn-reminder { width: min(560px, calc(100% - 32px)); padding: 0; overflow: visible; border: 0; border-radius: 28px; background: transparent; color: var(--ink); }
.vpn-reminder::backdrop { background: rgba(8, 9, 11, .72); backdrop-filter: blur(8px); }
.vpn-reminder[open] { animation: vpn-in .32s cubic-bezier(.2,.75,.25,1); }
.vpn-reminder-content { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 28px; border: 1px solid rgba(255,255,255,.35); border-radius: 28px; background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.vpn-badge { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; background: var(--red); color: var(--white); font-size: 14px; font-weight: 900; letter-spacing: .06em; }
.vpn-reminder h2 { margin: 2px 0 12px; font-size: 32px; line-height: 1; letter-spacing: -.04em; }
.vpn-reminder p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.vpn-reminder button { grid-column: 2; justify-self: start; margin-top: 4px; padding: 13px 20px; border: 0; border-radius: 999px; background: var(--red); color: var(--white); font: inherit; font-weight: 800; cursor: pointer; }

.site-header { position: fixed; z-index: 100; top: 16px; left: 50%; width: max-content; max-width: calc(100% - 28px); transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 7px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(17,19,23,.78); box-shadow: 0 8px 30px rgba(0,0,0,.15); backdrop-filter: blur(18px); }
.brand { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; background: var(--red); text-decoration: none; }
.brand img { width: 25px; height: 18px; object-fit: contain; }
nav { display: flex; min-width: 0; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { padding: 9px 10px; border-radius: 999px; color: #cbd0d6; font-size: 12px; text-decoration: none; white-space: nowrap; transition: background-color .25s ease, color .25s ease, transform .25s ease; }
nav a:hover, nav a.active { background: var(--white); color: var(--ink); }
nav a.navigating { animation: nav-pulse .55s ease; }

section { position: relative; display: flex; min-height: 100vh; align-items: center; padding: 110px 0 82px; scroll-margin-top: 0; }
section.nav-target > .wrap { animation: section-arrival .85s cubic-bezier(.2,.75,.25,1); }
.light { background: var(--paper); color: var(--ink); }
.dark { background: var(--ink); color: var(--white); }
.hero { overflow: hidden; background: radial-gradient(circle at 76% 42%, #ff3131 0, #ed0000 19%, #8f0000 40%, #111317 70%); }
.hero::after { position: absolute; right: -6vw; bottom: -10vw; width: min(62vw, 860px); height: min(56vw, 720px); content: ""; background: url("../images/mvideo-mark.png") center / contain no-repeat; opacity: .065; pointer-events: none; }
.hero .wrap { width: min(1320px, calc(100% - 48px)); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.kicker, .eyebrow { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero .kicker { color: #ffb7b7; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin: 26px 0; font-size: clamp(52px, 6.2vw, 100px); line-height: .91; letter-spacing: -.06em; }
.hero-copy > p { max-width: 730px; color: #e9ebee; font-size: clamp(18px, 2vw, 27px); line-height: 1.4; }
.hero-logo { width: clamp(210px, 28vw, 340px); height: auto; margin-bottom: 34px; }
.hero-badge { display: flex; width: 100%; min-height: 290px; flex-direction: column; justify-content: center; gap: 32px; padding: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); background: rgba(255,255,255,.1); backdrop-filter: blur(16px); }
.hero-badge b { font-size: 34px; line-height: 1; }
.hero-badge span { color: #f5dede; font-size: 18px; line-height: 1.6; }
.scroll-hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.65); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }

.section-head { display: grid; grid-template-columns: 1.55fr .65fr; gap: 8vw; align-items: end; margin-bottom: 58px; }
.section-head h2, .manifesto h2, .special-copy h2, .contact h2 { margin: 14px 0 0; font-size: clamp(42px, 6vw, 82px); line-height: .96; letter-spacing: -.055em; }
.section-head p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.dark .section-head p { color: #abb0b7; }
.proof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 44px; }
.proof-stats div { min-height: 150px; padding: 20px; border-radius: 18px; background: var(--ink); color: var(--white); }
.proof-stats b, .proof-stats span { display: block; }
.proof-stats b { font-size: clamp(27px, 3vw, 45px); letter-spacing: -.04em; }
.proof-stats span { margin-top: 38px; color: #aeb3ba; font-size: 12px; text-transform: uppercase; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { min-height: 225px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--white); }
.service i { display: block; color: var(--red); font-size: 22px; line-height: 1; font-style: normal; font-weight: 900; }
.service h3 { margin: 38px 0 13px; font-size: 25px; line-height: 1.08; letter-spacing: -.025em; }
.service p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.45; }

.manifesto { display: grid; grid-template-columns: 1.1fr .9fr; gap: 9vw; align-items: end; }
.manifesto p { color: #bec3c9; font-size: 23px; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: 13px; }

.case-list { display: grid; gap: 24px; }
.case-card { display: grid; grid-template-columns: 1fr .92fr; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.case-card:nth-child(even) .case-copy { order: 2; }
.case-copy { padding: clamp(28px, 5vw, 64px); }
.case-copy h3 { margin: 15px 0 20px; font-size: clamp(34px, 4vw, 58px); line-height: .98; letter-spacing: -.045em; }
.case-copy > p { color: var(--muted); font-size: 18px; line-height: 1.55; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 32px; }
.metrics > div { min-width: 0; padding: 14px 10px; overflow: hidden; border-radius: 14px; background: #ececea; }
.metrics .accent { background: var(--red); color: var(--white); }
.metrics b, .metrics span { display: block; }
.metrics b { font-size: 20px; }
.metrics span { max-width: 100%; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.25; overflow-wrap: anywhere; text-transform: uppercase; }
.metrics .accent span { color: #ffd3d3; }
.case-image { width: 100%; aspect-ratio: 16/9; margin-top: 26px; border-radius: 18px; object-fit: cover; }
.ad-grid { display: grid; gap: 24px; }
.ad-card, .motion-proof { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: var(--radius); background: #272a2f; }
.ad-copy, .motion-copy { padding: clamp(28px, 5vw, 58px); }
.ad-copy h3, .motion-copy h3 { margin: 14px 0 20px; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -.045em; }
.ad-copy > p, .motion-copy > p { color: #b9bec5; font-size: 18px; line-height: 1.5; }
.ad-copy .metrics b { color: var(--ink); }
.ad-copy .metrics .accent { background: var(--red); color: var(--white); }
.ad-copy .metrics .accent b { color: var(--white); }
.ad-copy .metrics .accent span { color: #ffe1e1; }
.ad-card:nth-child(even) .ad-copy { order: 2; }
.motion-proof { margin-bottom: 22px; background: var(--white); box-shadow: var(--shadow); }
.motion-copy > p { color: var(--muted); }
.mascot-grid { grid-template-columns: 1fr; }
.telegram-card { align-self: stretch; padding: 20px; background: #e8eaed; color: var(--ink); }
.telegram-head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; color: #70757b; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.telegram-head a { color: var(--ink); text-decoration: none; }
.telegram-frame { min-height: 280px; }
.telegram-fallback { display: block; padding: 13px 16px; border: 1px solid #c9ccd0; border-radius: 12px; text-align: center; text-decoration: none; }

.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.emoji-grid { grid-template-columns: 1fr; }
.media-card { overflow: hidden; border-radius: var(--radius); background: var(--white); color: var(--ink); }
.dark .media-card { background: #272a2f; color: var(--white); }
.media-card img, .media-card video, .placeholder { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.emoji-grid .media-card img, .emoji-grid .media-card video { aspect-ratio: auto; min-height: 220px; max-height: 620px; background: #18232f; object-fit: contain; }
.emoji-grid .media-card img { padding: clamp(20px, 4vw, 56px); }
.placeholder { display: grid; place-content: center; gap: 8px; padding: 24px; border: 1px dashed rgba(120,125,132,.55); background: repeating-linear-gradient(135deg, transparent 0 18px, rgba(127,127,127,.07) 18px 36px); color: var(--muted); text-align: center; }
.placeholder span { font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.placeholder small { font-size: 11px; font-weight: 400; }
.media-copy { padding: 24px; }
.media-copy h3 { margin-bottom: 8px; font-size: 23px; }
.media-copy p { margin: 0; color: var(--muted); line-height: 1.5; }
.media-link { display: inline-block; margin-top: 20px; padding: 12px 16px; border-radius: 999px; background: var(--red); color: var(--white); font-size: 13px; font-weight: 800; text-decoration: none; }

.social-video { overflow: hidden; background: radial-gradient(circle at 78% 45%, #3b171c 0, #19191c 40%, #111317 70%); }
.social-video-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 430px); gap: clamp(42px, 8vw, 110px); align-items: center; }
.social-video-copy h2 { max-width: 760px; margin: 16px 0 26px; font-size: clamp(46px, 6vw, 82px); line-height: .95; letter-spacing: -.055em; }
.social-video-copy > p { max-width: 680px; margin-bottom: 30px; color: #bfc3c9; font-size: 19px; line-height: 1.58; }
.tiktok-card { width: 100%; padding: 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 30px; background: #24262b; box-shadow: var(--shadow); }
.tiktok-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 2px 3px 14px; color: #aeb3ba; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tiktok-head a { padding: 7px 10px; border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; }
.tiktok-frame { position: relative; overflow: hidden; width: 100%; aspect-ratio: 9 / 16; border-radius: 20px; background: #090a0c; }
.tiktok-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tiktok-fallback { display: block; margin-top: 12px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; color: var(--white); text-align: center; text-decoration: none; }

.specials { overflow: hidden; display: block; background: var(--ink); }
.specials > .wrap { padding-top: 10px; }
.special-list { display: grid; gap: 24px; }
.special-project { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3vw; align-items: center; overflow: hidden; padding: clamp(24px, 4vw, 54px); border-radius: 36px; background: var(--red); }
.special-project:nth-child(2) { background: #f1f1ef; color: var(--ink); }
.special-project:nth-child(3) { background: #292c31; }
.special-project .eyebrow { color: #ffd0d0; }
.special-project:nth-child(2) .eyebrow { color: var(--red); }
.special-project:nth-child(2) .special-copy h2 { margin-bottom: 22px; }
.special-project .lead { max-width: 720px; color: #ffe3e3; font-size: 20px; line-height: 1.5; }
.special-project:nth-child(2) .lead { color: var(--muted); }
.special-project:nth-child(2) .mechanics > div { border-color: #c9c9c5; background: #ffffff; }
.special-project:nth-child(2) .mechanics span { color: #5f656d; }
.mechanics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 34px; }
.mechanics > div { display: flex; gap: 14px; padding: 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 18px; background: rgba(119,0,0,.18); }
.mechanics i { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--white); color: var(--red); font-style: normal; font-weight: 800; }
.mechanics p, .mechanics span { margin: 0; }
.mechanics b, .mechanics span { display: block; }
.mechanics span { margin-top: 7px; color: #ffdede; font-size: 13px; line-height: 1.45; }
.special-project .metrics > div { background: rgba(120,0,0,.32); }
.special-project:nth-child(2) .metrics > div { background: #dededb; }
.special-project:nth-child(3) .metrics > div { background: #17191c; }
.special-project .metrics .accent { background: var(--white); color: var(--red); }
.special-project .metrics span { color: #ffd0d0; }
.special-project:nth-child(2) .metrics span { color: var(--muted); }
.special-project .metrics .accent span { color: #9e6565; }
.special-project .telegram-card { position: relative; border-radius: var(--radius); box-shadow: var(--shadow); }

.contact { overflow: hidden; background: radial-gradient(circle at 50% 115%, #b80000 0, #4b0a0e 36%, var(--ink) 72%); text-align: center; }
.contact .wrap { display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 980px; }
.contact p { max-width: 620px; margin: 28px auto; color: #aeb3ba; font-size: 18px; line-height: 1.5; }
.contact-button { display: inline-block; margin-top: 44px; padding: 16px 24px; border-radius: 999px; background: var(--red); font-weight: 800; text-decoration: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.noscript { padding: 20px; background: var(--red); text-align: center; }

@media (max-width: 980px) {
  .site-header { display: flex; gap: 6px; padding: 5px; border-radius: 999px; }
  .site-header nav { display: flex; min-width: 0; flex: 1 1 auto; width: auto; padding: 0; }
  .site-header nav a { padding: 8px 10px; background: rgba(255,255,255,.04); }
  .site-header nav a:hover, .site-header nav a.active { background: var(--white); color: var(--ink); }
  .hero-grid, .section-head, .manifesto, .case-card, .special-project, .ad-card, .motion-proof, .social-video-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 34px; }
  .hero-badge { min-height: 210px; }
  .hero-badge { min-height: 190px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .proof-stats { grid-template-columns: repeat(3, 1fr); }
  .case-card:nth-child(even) .case-copy { order: initial; }
  .ad-card:nth-child(even) .ad-copy { order: initial; }
  .metrics { grid-template-columns: repeat(3, 1fr); }
  .emoji-grid { grid-template-columns: repeat(2, 1fr); }
  .tiktok-card { width: min(100%, 430px); margin: 0 auto; }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr); gap: 34px; }
  .hero-badge { padding: 28px; }
  .case-card, .ad-card, .motion-proof, .special-project { grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); }
  .metrics span { font-size: 9px; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 30px, 1180px); }
  .site-header { top: 8px; width: calc(100% - 16px); }
  .site-header nav a { padding: 7px 9px; font-size: 11px; }
  section { min-height: auto; padding: 96px 0 64px; }
  .hero { min-height: 100svh; }
  .hero .wrap { width: min(100% - 30px, 1180px); }
  .brand { display: none; }
  h1 { font-size: 48px; }
  .section-head h2, .manifesto h2, .special-copy h2, .contact h2 { font-size: 41px; }
  .services, .media-grid, .emoji-grid, .mechanics { grid-template-columns: 1fr; }
  .proof-stats { grid-template-columns: repeat(2, 1fr); }
  .service { min-height: 0; }
  .service h3 { margin-top: 32px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .social-video-copy h2 { font-size: 41px; }
  .tiktok-card { padding: 12px; border-radius: 24px; }
  .tiktok-frame { border-radius: 16px; }
  .vpn-reminder-content { grid-template-columns: 1fr; padding: 24px; }
  .vpn-badge { width: 52px; height: 52px; }
  .vpn-reminder h2 { font-size: 29px; }
  .vpn-reminder button { grid-column: 1; width: 100%; }
}

@media (max-width: 420px) {
  h1 { font-size: 41px; }
  .section-head h2, .manifesto h2, .special-copy h2, .contact h2 { font-size: 35px; }
  .hero-logo { width: min(260px, 82vw); }
  .hero-badge { min-height: 0; padding: 26px; }
  .hero-badge b { font-size: 29px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-video-copy h2 { font-size: 35px; }
}

@keyframes nav-pulse {
  50% { transform: scale(.92); }
}

@keyframes section-arrival {
  from { opacity: .45; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vpn-in {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes loader-logo {
  0%, 100% { opacity: .82; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes loader-line {
  from { transform: translateX(-120%); }
  to { transform: translateX(340%); }
}

@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: minmax(0, 790px) minmax(390px, 440px); justify-content: space-between; }
  .hero-copy { max-width: 790px; }
  .hero-badge { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  nav a.navigating, section.nav-target > .wrap, .vpn-reminder[open], .site-loader img, .site-loader-line i { animation: none; }
}
