* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: #09090c; color: #fff; width: 100%; overflow-x: hidden; padding-top: 60px; position: relative; }

:root {
    --bg: #09090c;
    --text: #ffffff;
    --muted: #979797;
    --line: rgba(255,255,255,.08);
    --accent: #22c55e; /* зелёный акцент */
    --accent-2: #16a34a;
    --card: rgba(255,255,255,.04);
    --card-strong: rgba(255,255,255,.06);
    --radius: 16px;
    --shadow: 0 16px 40px rgba(34,197,94,.25);
    --sectionY: 56px; /* равные вертикальные отступы у секций после героя */
    --featureHeight: 176px; /* чуть компактнее карточки во втором блоке */
    /* Сетка аватаров (спрайт) в assets/avatar.jpg. Подберите под свой файл. */
    --avatar-cols: 8;
    --avatar-rows: 6;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hero .container { padding-left: 20px; padding-right: 20px; }
section { scroll-margin-top: 80px; }

/* Header (минимал) */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--line); background: #09090c; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; position: relative; }
.nav-right { display: none; align-items: center; gap: 20px; margin-left: auto; }
.brand { display: inline-flex; align-items: center; height: 60px; }
.brand img { height: 24px; display:block; }
.nav .brand:hover { filter: none; }
.brand:hover img { filter: drop-shadow(0 0 6px rgba(255,255,255,.25)); }
.brand .film { display: block; font-size: 16px; color: #fff; }
.brand .lord { display: block; font-size: 18px; color: #79c142; }
.nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 14px; position: relative; padding-bottom: 0; display: inline-flex; align-items: center; }
.nav a.brand { padding-bottom: 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 1px; background: #79c142; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav a.brand::after { display: none; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav a:hover { color: #fff; }
.nav-menu { display: flex; gap: 20px; align-items: center; }
.btn-download { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 14px; background: linear-gradient(90deg, #A5ED6D 0%, #54981F 100%); color: #111111 !important; font-weight: 700; line-height: 1; text-decoration: none; border: 0; box-shadow: none; }
.btn-download--mobile { display: none !important; }
.nav a.btn-download::after { display: none; }
.btn-download:hover { filter: brightness(1.03); }
.btn-download .ico { width: 16px; height: 16px; margin-right: 4px; color: #111111; display: block; align-self: center; transform: translateY(1px); }
/* icon-only variant for mobile header */
.btn-icon { width: 36px; padding: 0; border-radius: 12px; }
.btn-icon .ico { margin-right: 0; }
.nav-toggle { display: none; }
.burger { display: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }
@media (max-width: 960px) {
    .nav { justify-content: space-between; }
    .nav-right { display: flex; gap: 20px; }
    .burger { display: block; }
    .nav-menu { display: none; }
    .nav a { margin-left: 0; font-size: 16px; }
    .nav-toggle { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
    #nav-toggle:checked + label + .nav-menu,
    #nav-toggle:checked ~ .nav-menu { display: flex; position: absolute; top: 60px; left: 0; right: 0; background: #09090c; flex-direction: column; gap: 12px; padding: 14px 20px 18px; border-bottom: 1px solid var(--line); }
    .nav a::after { bottom: 0; }
    /* показать отдельную кнопку-иконку в шапке на мобильных и скрыть кнопку внутри меню */
    .btn-download--mobile { display: inline-flex !important; margin: 0; border-radius: 9px; }
    .nav-menu .btn-download { display: none !important; }
    .burger { margin-left: 0; }
}

/* Hero */
.hero { position: relative; overflow: hidden; min-height: calc(100vh - 60px); display: flex; align-items: center; }
.hero::before { content: ""; position: absolute; inset: 0; }
.hero::after { content: ""; position: absolute; inset: -20% -20% auto -20%; height: 60%; pointer-events: none; background:
    radial-gradient(60% 60% at 70% -10%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(50% 50% at 0% 20%, rgba(16,185,129,.12), transparent 60%);
}
.hero::before { background: url('../assets/background.png') center/cover no-repeat; opacity: .03; }
/* subtle moving blur orbs */
.hero .blur-orb { position: absolute; width: 28vmax; height: 28vmax; border-radius: 50%; filter: blur(60px); pointer-events: none; opacity: .18; mix-blend-mode: soft-light; }
.hero .orb-1 { background: radial-gradient(circle, rgba(121,193,66,.35), rgba(121,193,66,0) 60%); animation: orbFloat1 12s ease-in-out infinite alternate; top: 10%; left: 8%; }
.hero .orb-2 { background: radial-gradient(circle, rgba(255,255,255,.28), rgba(255,255,255,0) 60%); animation: orbFloat2 15s ease-in-out infinite alternate; bottom: 8%; right: 12%; }
.hero .orb-3 { background: radial-gradient(circle, rgba(121,193,66,.25), rgba(121,193,66,0) 60%); animation: orbFloat3 13.5s ease-in-out infinite alternate; top: 30%; right: 35%; }
@keyframes orbFloat1 { from { transform: translate(0,0) } to { transform: translate(6vw, 3vh) } }
@keyframes orbFloat2 { from { transform: translate(0,0) } to { transform: translate(-5vw, -4vh) } }
@keyframes orbFloat3 { from { transform: translate(0,0) } to { transform: translate(4vw, -5vh) } }
.hero-inner { position: relative; z-index: 1; padding: var(--sectionY) 0; text-align: center; }
.logo { font-weight: 500; letter-spacing: .08em; line-height: .86; margin-bottom: 28px; font-family: 'Unbounded', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; position: relative; }
.logo .film { display: block; font-size: clamp(38px, 7.5vw, 90px); color: #fff; }
.logo .film-wrap { position: relative; display: inline-block; }
.logo .lord { display: block; font-size: clamp(42px, 8.2vw, 100px); background: linear-gradient(90deg, #A5ED6D 0%, #54981F 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo .beta { position: absolute; left: 100%; top: 3px; margin-left: 3px; font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 700; font-size: clamp(8px, 1.6vw, 12px); letter-spacing: .06em; color: #0a0a0a; padding: 4px 6px; border-radius: 999px; background: linear-gradient(90deg, #A5ED6D 0%, #54981F 100%); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.tagline { color: #cdcdcd; font-size: 18px; max-width: 1100px; margin: 16px auto 28px; }

/* Scroll reveal animations removed for performance */

.cta-platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin: 24px auto 0; max-width: 900px; }
.cta-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); text-decoration: none; color: #fff; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; text-align: left; justify-content: flex-start; position: relative; overflow: hidden; backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); }
.cta-card:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); box-shadow: 0 16px 40px rgba(255,255,255,.05); }
.cta-card::before { content: ""; position: absolute; top: -60%; left: -150%; width: 120%; height: 220%; transform: rotate(25deg); background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%); opacity: 0; }
.cta-card.sheen::before { animation: sheen-pass 1.1s ease forwards; }
@keyframes sheen-pass { 0% { left: -150%; opacity: 0; } 15% { opacity: .35; } 100% { left: 150%; opacity: 0; } }
.cta-icon { width: 34px; height: 34px; color: #fff; }
.cta-text { display: flex; flex-direction: column; align-items: flex-start; }
.cta-text div { font-weight: 800; letter-spacing: .06em; }
.cta-text small { display:block; color: var(--muted); margin-top:2px; }

.hero .scroll-more { position: absolute; inset: auto 0 38px 0; margin: 0 auto; width: max-content; display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: rgba(255,255,255,.75); text-decoration: none; z-index: 2; }
.hero .scroll-more .arrow { width: 24px; height: 24px; opacity: .55; }
.hero .scroll-more span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.hero .scroll-more:hover { color: #fff; }
.hero .scroll-more .arrow { animation: arrowFloat 1.6s ease-in-out infinite alternate; }
@keyframes arrowFloat { from { transform: translateY(0); } to { transform: translateY(6px); } }

/* Hero stats (compact) */
.hero-stats { margin: 24px auto 0; max-width: 860px; display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 22px; align-items: start; }
.hstat { text-align: center; position: relative; }
.hstat-num { font-family: 'Unbounded', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 500; font-size: clamp(22px, 4.2vw, 34px); color: #79c142; line-height: 1; position: relative; display: inline-block; }
.hstat-label { margin-top: 6px; color: #c9cdd6; font-size: 13px; }
/* micro +1 badge near stats */
.pulse-badge { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 999px; border: 1px solid rgba(121,193,66,.35); background: rgba(121,193,66,.12); color: #79c142; font-weight: 700; font-size: 11px; line-height: 1; opacity: 0; animation: badgePop 1.2s ease forwards; pointer-events: none; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.pulse-badge .face { width: 14px; height: 14px; border-radius: 50%; background-image: url('../assets/avatar.jpg'); background-repeat: no-repeat; 
    /* Масштабируем фон так, чтобы одна ячейка сетки занимала размер круга */
    background-size: calc(var(--avatar-cols) * 100%) calc(var(--avatar-rows) * 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
.pulse-badge .face:nth-child(2) { margin-left: -6px; }
.pulse-badge .face:nth-child(3) { margin-left: -6px; }
@keyframes badgePop { 0% { opacity: 0; transform: translate(6px, 6px) scale(.9); } 40% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(0, -12px) scale(1); } }

/* Features */
.features { padding: var(--sectionY) 0; border-top: 1px solid var(--line); background: transparent; position: relative; overflow: hidden; }
.features::before { content: ""; position: absolute; inset: -25% -25%; background:
    radial-gradient(1200px 1200px at 0% 0%, rgba(121,193,66,.08) 0%, rgba(121,193,66,.04) 35%, rgba(121,193,66,0) 70%);
    filter: blur(60px); opacity: .35; will-change: transform; z-index: 0; animation: featuresGlow 18s ease-in-out infinite alternate; }
@keyframes featuresGlow {
    0% { transform: translate(-18%, -10%); }
    50% { transform: translate(35%, 8%); }
    100% { transform: translate(72%, -6%); }
}
.features > .container { position: relative; z-index: 1; }
.section-title { text-align: left; padding-left: 6px; font-size: 28px; margin-bottom: 30px; }
.features .section-title { text-align: left; padding-left: 6px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.feature { padding: 22px 18px 22px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; justify-content: center; height: var(--featureHeight); overflow: hidden; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); line-height: 1.6; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Glitch effect for features rotation */
.feature { position: relative; overflow: hidden; }
.feature.glitching::before,
.feature.glitching::after { content: ""; position: absolute; inset: -10%; pointer-events: none; opacity: .18; mix-blend-mode: screen; background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.06) 0, rgba(255,255,255,.06) 1px, transparent 2px, transparent 4px);
}
.feature.glitching::before { transform: translateX(-3px); filter: drop-shadow(0 0 3px rgba(165,237,109,.35)); }
.feature.glitching::after { transform: translateX(3px); filter: drop-shadow(0 0 3px rgba(84,152,31,.35)); }
.glitch-out { animation: glitchOut .26s ease forwards; }
.glitch-in { animation: glitchIn .38s ease; }
@keyframes glitchOut {
    0% { opacity: 1; transform: none; }
    25% { transform: skewX(6deg); }
    50% { opacity: .2; transform: translateX(6px) scale(.99); }
    100% { opacity: 0; transform: translateX(10px) scale(.98); }
}
@keyframes glitchIn {
    0% { opacity: 0; transform: translateX(-10px) scale(.98); }
    45% { transform: skewX(-6deg); }
    100% { opacity: 1; transform: none; }
}

/* Alternative effects */
.flip-out { transform-origin: center; animation: flipOut .28s ease forwards; }
.flip-in { transform-origin: center; animation: flipIn .36s ease; }
@keyframes flipOut { to { opacity: 0; transform: rotateY(90deg); } }
@keyframes flipIn { from { opacity: 0; transform: rotateY(-90deg); } to { opacity: 1; transform: none; } }

.warp-out { animation: warpOut .22s ease forwards; }
.warp-in { animation: warpIn .32s ease; }
@keyframes warpOut { to { opacity: 0; transform: translateX(14px) skewX(6deg); filter: blur(2px); } }
@keyframes warpIn { from { opacity: 0; transform: translateX(-14px) skewX(-6deg); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }

.static-out { animation: staticOut .12s steps(2, end) forwards; }
.static-in { animation: fadeIn .28s ease; }
@keyframes staticOut { 0% { opacity: 1; } 50% { opacity: .2; } 100% { opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.scan-out { animation: fadeOut .16s linear forwards; }
.scan-in { animation: scanIn .46s cubic-bezier(.2,.6,.2,1); }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes scanIn { from { opacity: 0; clip-path: inset(100% 0 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

.dissolve-out { animation: dissolveOut .26s ease forwards; }
.dissolve-in { animation: dissolveIn .34s ease; }
@keyframes dissolveOut { to { opacity: 0; transform: scale(.98); filter: blur(1px); } }
@keyframes dissolveIn { from { opacity: 0; transform: scale(1.02); filter: blur(1px); } to { opacity: 1; transform: none; filter: none; } }

/* FAQ */
.faq { padding: var(--sectionY) 0; border-top: 1px solid var(--line); background: radial-gradient(1200px 800px at 0% -20%, rgb(121 193 66 / 7%), transparent 70%); }
.faq .section-title { text-align: left; padding-left: 6px; }
.section-title { text-align: left; padding-left: 6px; }
.devices-title { text-align: left; }
.gallery-title { text-align: left; padding-left: 6px; }
.about h2 { text-align: left; }
.faq-list { width: 100%; margin: 20px 0; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; width: 100%; align-self: start; }
.faq-item[open] { grid-column: 1 / -1; }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; font-weight: 500; min-height: 56px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q { padding-right: 14px; }
.faq-item summary .chev { width: 18px; height: 18px; color: #979797; transition: transform .2s ease; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .peek { padding: 0 18px 14px; color: var(--muted); font-size: 14px; line-height: 1.7; max-height: 48px; overflow: hidden; transition: max-height .28s ease, opacity .22s ease, padding .28s ease; }
.faq-item[open] .peek { max-height: 0; opacity: 0; padding: 0 18px 0; }
/* плавное раскрытие ответа */
.faq-item .a { padding: 0 18px 0; color: var(--muted); line-height: 1.8; font-size: 14px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .32s ease, opacity .24s ease, padding .32s ease; }
.faq-item[open] .a { padding: 12px 18px 16px; max-height: 400px; opacity: 1; }

@media (max-width: 768px) {
    .container { padding: 0 16px; }
    .hero .container { padding-left: 16px; padding-right: 16px; }
    .tagline { font-size: 15px; max-width: 100%; }
    .logo { transform: scale(1.1); transform-origin: center top; margin-top: 0; }
    /* заголовки блоков на мобильных тоже по левому краю */
    .section-title, .devices-title, .gallery-title, .about h2, .faq .section-title, .features .section-title { text-align: left; padding-left: 6px; }
    /* больше вертикальные интервалы в первом блоке */
    .tagline { margin: 16px auto 22px; }
    .cta-platforms { margin-top: 28px; }
    .hero-stats { margin-top: 28px; }
    .faq-list { grid-template-columns: 1fr; }
    .preview-gallery { grid-template-columns: 1fr; }
    .gallery-side { grid-template-columns: 1fr 1fr; }
    .gallery-group .gallery-tag { margin-bottom: 12px; }
    .gallery-group.group-pc .gallery-hero { margin-bottom: 10px; }
    .gallery-group .gallery-note { margin-top: 8px; }
    .cta-platforms { grid-template-columns: 1fr; }
    .hero { min-height: calc(100vh - 40px); padding-bottom: 72px; }
    .hero-inner { padding: var(--sectionY) 0; }
    .hero::after { display: none; }
    .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .hstat-num { font-size: clamp(18px, 5.2vw, 28px); }
    .cta-card { padding: 14px 16px; }
    .hero .scroll-more { inset: auto 0 48px 0; }
    /* мобильная высота карточек "Почему LORDFILM" компактнее */
    :root { --featureHeight: 160px; }
    .feature { padding: 16px 14px 16px 24px; }
    /* Мобильное расположение плашек как на десктопе (справа от числа) */
    .hstat-num .pulse-badge { left: calc(100% + 6px); top: 50%; transform: translateY(-50%); }

    /* Footer mobile layout */
    footer .footer-top { flex-direction: column; align-items: stretch; gap: 14px; }
    footer .footer-links { grid-template-columns: 1fr; gap: 8px; }
    footer .footer-groups { grid-template-columns: 1fr; gap: 12px; }
    footer .chips { gap: 10px; }
    footer .footer-bottom { margin-top: 12px; }
}

@media (max-width: 420px) {
    .nav-right { gap: 16px; }
    .hero-inner { padding: var(--sectionY) 0; }
    .hstat-label { font-size: 12px; }
}

/* Gallery */
.gallery { padding: var(--sectionY) 0; border-top: 1px solid var(--line); background: radial-gradient(1000px 1000px at 90% -20%, rgb(121 193 66 / 7%), transparent 60%); }
.gallery-title { text-align: left; padding-left: 6px; font-size: 26px; margin-bottom: 30px; }
.preview-gallery { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: stretch; }
.gallery-group { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.gallery-tag { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 999px; background: linear-gradient(90deg, #A5ED6D 0%, #54981F 100%); color: #111111; font-weight: 700; font-size: 12px; letter-spacing: .06em; width: max-content; }
.gallery-zoom { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease; will-change: transform, filter; }
.gallery-zoom img { width: 100%; height: 100%; display: none; }
.bg-pan { background-size: cover; background-repeat: no-repeat; background-position: center top; filter: brightness(.75); }
.bg-pan.animating { animation: bgPanYAuto 3s ease-in-out infinite alternate; }
.bg-pan.active { transform: scale(1.1); z-index: 5; box-shadow: 0 16px 40px rgba(255,255,255,.05); filter: brightness(1); }
.preview-gallery:hover .bg-pan { filter: brightness(.55); }
.preview-gallery:hover .bg-pan:hover { filter: brightness(1); }
.gallery-hero { height: clamp(220px, 32vw, 420px); }
.gallery-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: clamp(220px, 32vw, 420px); }
.gallery-side .gallery-zoom { aspect-ratio: auto; }
.gallery figure { margin: 0; }
.preview-gallery > * { min-width: 0; min-height: 0; }
.gallery-note { color: var(--muted); font-size: 13px; }

@keyframes bgPanYAuto {
    to { background-position: center bottom; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.86); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); object-fit: contain; }
.lightbox-close { position: absolute; top: 16px; right: 20px; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 40px; height: 40px; border-radius: 10px; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.18); }

/* Install modals */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.82); backdrop-filter: blur(6px); z-index: 1900; padding: 20px; }
.modal.open { display: flex; }
.modal-box { width: min(840px, 92vw); border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.06); box-shadow: 0 30px 80px rgba(0,0,0,.55); --modal-pad: 22px; padding: var(--modal-pad); position: relative; display: flex; flex-direction: column; }
.modal-title { font-family: 'Unbounded', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 500; font-size: 22px; line-height: 1.1; margin-bottom: 12px; }
.modal-sub { color: #979797; margin-bottom: 18px; }
.modal-close { position: absolute; top: calc(var(--modal-pad) - 2px); right: var(--modal-pad); width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.modal-close:hover { background: rgba(255,255,255,.18); }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 6px; }
.step { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 16px; min-height: 140px; }
.step-head { display:flex; align-items:center; gap:12px; margin-bottom: 8px; }
.step-num { width: 34px; height: 34px; min-width: 34px; min-height: 34px; border-radius: 50%; display:inline-flex; align-items:center; justify-content:center; border: 2px solid #79c142; color:#79c142; font-weight: 700; line-height: 1; }
.step-title { font-weight: 700; }
.step p { color:#979797; font-size: 14px; line-height: 1.6; }
.modal-actions { margin-top: 16px; display:block; }
.btn-primary { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding: 0 16px; height: 56px; width: 100%; border-radius: 12px; border:0; cursor:pointer; color:#111111; background: linear-gradient(90deg, #A5ED6D 0%, #54981F 100%); text-decoration: none; font-weight: 700; box-shadow: none; }
.btn-primary:hover { filter: brightness(1.03); box-shadow: none; }
.btn-primary.is-disabled { opacity: .5; pointer-events: none; filter: grayscale(30%); }

.link-green { color: #ffffff !important; }
.link-green:visited { color: #ffffff !important; }
.link-green:hover { color: #ffffff !important; filter: brightness(1.06); }

.btn-secondary { display:inline-flex; align-items:center; justify-content:center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color:#e5e7eb; text-decoration: none; }
/* Desktop spacing tweaks for modals */
@media (min-width: 961px) {
    .modal-box { --modal-pad: 28px; padding: var(--modal-pad); }
    .modal-title { margin-bottom: 18px; }
    .pick-grid { gap: 22px; }
    .modal .pick-grid .cta-card { padding: 18px 20px; }
    .modal-close { top: calc(var(--modal-pad) - 4px); }
}
@media (max-width: 520px) {
    .steps { grid-template-columns: 1fr; }
    /* Ровные отступы: одинаковые со всех сторон */
    .modal-box { --modal-pad: 24px; padding: var(--modal-pad); }
    .modal-title { font-size: 18px; margin-bottom: 18px; }
    .modal-close { top: calc(var(--modal-pad) - 2px); right: var(--modal-pad); }
    .modal-sub { font-size: 13px; }
    .step { padding: 12px; min-height: 120px; }
    .step-num { width: 28px; height: 28px; min-width: 28px; min-height: 28px; }
    .step-title { font-size: 15px; }
    .step p { font-size: 13px; }
    .btn-primary { height: 50px; }
    /* Раскладка и отступы для выбора платформы */
    .pick-grid { grid-template-columns: 1fr !important; gap: 24px !important; margin-top: 6px; }
    .modal .pick-grid .cta-card { padding: 14px 16px; }
    .modal .pick-grid .cta-icon { width: 30px; height: 30px; }
    .modal .pick-grid .cta-text div { font-size: 15px; }
    .modal .pick-grid .cta-text small { font-size: 12px; }
}

/* About/SEO */
.about { padding: var(--sectionY) 0; border-top: 1px solid var(--line); background: rgba(255,255,255,.02); }
.about-inner { display: block; max-width: none; margin: 0; }
.about h2 { font-size: 26px; margin-bottom: 30px; padding-left: 0; }
.about p { color: var(--muted); line-height: 1.8; font-size: 15px; margin: 12px 0; }
.about .muted { color: var(--muted); font-size: 14px; }
.app-quote { margin: 16px 0; padding: 14px 16px; border-left: 4px solid #79c142; background: rgba(121,193,66,.08); color: #e5e7eb; border-radius: 8px; font-weight: 600; }

/* Telegram banner inside About */
.tg-banner { margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: flex-start; padding: 24px; overflow: hidden; height: 160px; }
.tg-left { max-width: 620px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; margin-top: 3px; }
.tg-left h3 { font-size: 18px; line-height: 1.25; margin: 0; }
.tg-left p { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 640px; margin: 0; }
.tg-cta { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color:#e5e7eb; text-decoration: none; font-size: 14px; }
.tg-cta:hover { background: rgba(255,255,255,.06); }
.tg-right { display: flex; justify-content: center; align-items: center; position: relative; min-height: 160px; align-self: center; }
.tg-right img { max-width: 190px; width: 100%; height: auto; display: block; position: relative; z-index: 0; transform: translateX(-15px); }
.tg-right .bubble { position: absolute; max-width: 200px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #e5e7eb; font-size: 10px; line-height: 1.4; box-shadow: 0 10px 26px rgba(0,0,0,.35); z-index: 2; }
.tg-right .bubble::after { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; background: rgba(255,255,255,.06); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.tg-right .bubble.b1 { left: -6%; top: 10%; animation: bfloat 6s ease-in-out infinite; }
.tg-right .bubble.b2 { right: 2%; top: 18%; animation: bfloat 7s ease-in-out infinite; }
.tg-right .bubble.b2::after { left: auto; right: -7px; transform: rotate(225deg); }
.tg-right .bubble.b3 { right: 4%; bottom: 6%; animation: bfloat 8s ease-in-out infinite; }
.tg-right .bubble.b3::after { left: auto; right: -7px; transform: rotate(225deg); top: 20px; }
@keyframes bfloat { 0% { transform: translateY(0); } 50% { transform: translateY(-4px); } 100% { transform: translateY(0); } }
@media (max-width: 768px) {
    .tg-banner { grid-template-columns: 1fr; padding: 18px; }
    .tg-right { min-height: 240px; }
    .tg-right img { max-width: 190px; }
    .tg-right .bubble { font-size: 10px; max-width: 200px; }
    .tg-right .bubble.b1 { left: 0; top: 4%; }
    .tg-right .bubble.b2 { right: 0; top: 6%; }
    .tg-right .bubble.b3 { right: -2%; bottom: 6%; }
}

/* Platforms */
.platforms { padding: var(--sectionY) 0; }
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.platform-card { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(34,197,94,.10), rgba(16,185,129,.10)); padding: 24px 20px; transition: transform .25s ease, box-shadow .25s ease; text-align: left; }
.platform-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.platform-head { display:flex; align-items:center; gap:14px; margin-bottom: 8px; }
.platform-icon { width: 54px; height: 54px; filter: drop-shadow(0 0 10px rgba(34,197,94,.25)); color: #fff; }
.icon-fill { fill: currentColor; }
.icon-stroke { stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.platform-name { font-size: 22px; font-weight: 800; }
.platform-sub { color:#9aa3b2; font-size: 13px; margin-top:2px; }
.platform-description { color: var(--muted); line-height:1.6; margin: 8px 0 12px; font-size: 14px; }
.platform-specs { list-style:none; margin: 0 0 14px; padding:0; }
.platform-specs li { padding: 7px 0; border-bottom: 1px solid var(--line); color:#c0c5cf; font-size: 14px; }
.platform-specs li:last-child { border-bottom: none; }
.platform-specs li::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 8px; }
.download-btn { display:block; width:100%; padding: 14px; border:0; border-radius: 12px; cursor:pointer; font-weight:700; color:#fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 10px 28px rgba(34,197,94,.35); transition: transform .2s ease, box-shadow .2s ease; }
.download-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(34,197,94,.45); }

/* Stats */
.stats { padding: var(--sectionY) 0; border-top: 1px solid var(--line); background: radial-gradient(1200px 800px at 50% -20%, rgba(34,197,94,.08), transparent 70%); }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 20px; max-width: 820px; margin: 0 auto; }
.stat-item { text-align: center; }
.stat-num { font-family: 'Unbounded', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-weight: 500; font-size: clamp(28px, 6vw, 52px); line-height: 1; letter-spacing: .02em; color: #f43f5e; /* розовый акцент как в рефе */ }
.stat-label { margin-top: 8px; color: #c9cdd6; font-size: 14px; }

/* Devices */
.devices { padding: var(--sectionY) 0; border-top: 1px solid var(--line); }
.devices-title { font-size: 28px; margin-bottom: 30px; }
.devices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.device-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 28px 28px 28px 43px; min-height: 112px; display: flex; align-items: center; justify-content: flex-start; gap: 14px; text-decoration: none; color: #fff; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%); position: relative; overflow: hidden; }
.device-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255,255,255,.05); background: rgba(255,255,255,.08); }
.device-card::before { content: ""; position: absolute; top: -60%; left: -150%; width: 120%; height: 220%; transform: rotate(25deg); background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.45) 50%, rgba(255,255,255,0) 100%); opacity: 0; }
.device-card.sheen::before { animation: sheen-pass 1.1s ease forwards; }
.device-card.disabled { opacity: .45; pointer-events: none; filter: grayscale(25%); }
.device-emoji { font-size: 28px; line-height: 1; }
.device-icon-img { width: 32px; height: 32px; }
.device-name { font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.device-subtle { color: #979797; font-size: 12px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: var(--sectionY) 0; }
.footer-top { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 24px 28px; align-items: start; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; justify-content: flex-start; }
.footer-link { color: #979797; text-decoration: none; font-size: 13px; }
.footer-link:hover { color: #fff; }
.footer-groups { display: contents; }
.footer-group-title { color: #979797; font-size: 13px; margin-bottom: 8px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; color: #e5e7eb; text-decoration: none; background: rgba(255,255,255,.02); }
.chip:hover { background: rgba(255,255,255,0.06); }
.chip-icon { width: 16px; height: 16px; }
.chip-disabled { opacity: .45; pointer-events: none; filter: grayscale(30%); }

.footer-bottom { display: flex; justify-content: flex-start; margin-top: 18px; }
.footer-copy { color:#4a4a4a; font-size: 12px; text-align: left; max-width: 600px; line-height: 1.6; }

/* Adaptive */
@media (max-width: 1024px) {
    .footer-top { grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 18px; }
    .footer-links { display: flex; flex-direction: column; gap: 10px; }
}
@media (max-width: 768px) {
    .footer-top { grid-template-columns: 1fr; gap: 14px; }
    .nav a { font-size: 13px; margin-left: 12px; }
    .platform-name { font-size: 20px; }
}
@media (min-width: 1440px) {
    .container { max-width: 1280px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Focus styles (keyboard/TV) */
.focusable { outline: none; }
.focus-visible { box-shadow: 0 0 0 3px rgba(34,197,94,.65) !important; border-radius: 12px; }

/* TV режим: увеличенные размеры, контрастный фокус */
.is-tv body, body.is-tv { font-size: 20px; }
body.is-tv .cta-card, body.is-tv .download-btn { padding: 18px 20px; }
body.is-tv .focus-visible { box-shadow: 0 0 0 4px rgba(34,197,94,.85) !important; }

/* iOS тонкости */
body.is-ios .hero::before { filter: saturate(1.05) contrast(1.02); }
body.is-ios .download-btn { border-radius: 14px; }

/* Android тонкости */
body.is-android .download-btn { box-shadow: 0 8px 24px rgba(34,197,94,.40); }


