/* ============ ПЕРЕМЕННЫЕ ============ */
:root {
    --bg: #ffffff;
    --bg-section: #f6f8fa;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-light: #eff6ff;
    --accent-soft: #eff6ff;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 32px rgba(59, 130, 246, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --danger: #ef4444;
    --warn: #f59e0b;
    --success: #22c55e;
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", monospace;
}

html[data-theme="dark"] {
    --bg: #0d1117;
    --bg-section: #161b22;
    --bg-card: #161b22;
    --text: #c9d1d9;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --accent: #58a6ff;
    --accent-dark: #1f6feb;
    --accent-light: rgba(56, 139, 253, 0.15);
    --accent-soft: rgba(56, 139, 253, 0.1);
    --accent-glow: rgba(56, 139, 253, 0.2);
    --border: #30363d;
    --border-light: #21262d;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --success: #3fb950;
    --danger: #f87171;
    --warn: #d29922;
}

/* ================================================================
   1. СБРОС И БАЗОВЫЕ СТИЛИ
   ================================================================ */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

/* Предотвращаем скачок макета при скрытии скроллбара */
html.scrollbar-hidden,
html.scrollbar-hidden body {
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}
body {
    font-family: var(--font-body);
    font-size: clamp(16px, 0.5vw + 15px, 18px);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition:
        background-color 0.4s ease,
        color 0.4s ease;
}

body.menu-open {
    overflow: hidden;
    -webkit-overflow-scrolling: auto;
}

::selection {
    background: var(--accent);
    color: #fff;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(1.75rem, 1.5rem + 2.5vw, 3.5rem);
    line-height: 1.15;
}
h2 {
    font-size: clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem);
    line-height: 1.2;
}
h3 {
    font-size: clamp(1.25rem, 1.1rem + 1vw, 1.75rem);
    line-height: 1.3;
}
h4 {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);
    line-height: 1.4;
}

p {
    line-height: 1.6;
}

img {
    max-width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Защита от длинных слов в карточках и текстовых блоках */
.feature-card h2,
.guide-card h3,
.info-block-content h2,
.footer-col > p {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* ================================================================
   2. УТИЛИТЫ — АНИМАЦИИ ПРИ СКРОЛЛЕ
   ================================================================ */
.anim-fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s ease-out,
        transform 0.7s ease-out;
    will-change: opacity, transform;
}
.anim-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.anim-blur-in {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(14px);
    transition:
        opacity 0.9s ease-out,
        filter 0.9s ease-out,
        transform 0.9s ease-out;
    will-change: opacity, filter, transform;
}
.anim-blur-in.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.anim-scale-bounce {
    opacity: 0;
    transform: scale(0.6);
    transition:
        opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}
.anim-scale-bounce.is-visible {
    opacity: 1;
    transform: scale(1);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease-out,
        transform 0.7s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================================================
   3. РЕДУСИРОВАННАЯ АНИМАЦИЯ
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    .hero-badge,
    .hero h1,
    .hero-subtitle,
    .hero-actions,
    .hero-browser,
    .hero-features,
    .anim-fade-up,
    .anim-blur-in,
    .anim-scale-bounce,
    .animate-on-scroll {
        opacity: 1;
        transform: none;
        filter: none;
        animation: none;
        transition: none;
    }
    .hero-float {
        animation: none;
    }
}

/* ================================================================
   4. КНОПКИ (ОБЩИЕ)
   ================================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    font-size: clamp(0.9rem, 0.5vw + 0.85rem, 1rem);
    font-weight: 700;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    box-shadow:
        0 2px 8px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary .icon {
    width: 18px;
    height: 18px;
}
.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow:
        0 8px 28px rgba(59, 130, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-decoration: none;
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: clamp(0.9rem, 0.5vw + 0.85rem, 1rem);
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-ghost .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}
.btn-ghost:hover {
    color: var(--text);
    border-color: #cbd5e1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none;
}
.btn-ghost:hover .icon {
    transform: translateY(2px);
}

/* ================================================================
   5. НАВБАР (ФИКСИРОВАННАЯ ШАПКА)
   ================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
    transition: all 0.4s ease;
}

html[data-theme="dark"] .navbar {
    background: rgba(13, 17, 23, 0.86);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.86);
}

.navbar .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
}

.navbar-brand {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    transition: transform var(--transition) ease;
    color: var(--text);
    font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
    text-decoration: none;
}

.navbar-brand::before {
    display: none;
}
.navbar-brand:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.brand-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: var(--accent);
    transition: transform var(--transition);
}
.navbar-brand:hover .brand-icon {
    transform: rotate(-6deg) scale(1.08);
}
.navbar-brand span {
    font-weight: 700;
    font-size: inherit;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    list-style: none;
}

.nav-links > li > a,
.nav-links > li > button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--bg-section);
    transition: all var(--transition);
    white-space: nowrap;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}

.nav-links > li > a:hover,
.nav-links > li > button:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.nav-links > li > a:hover::after {
    width: 100%;
    opacity: 1;
}
.nav-links > li > a .icon,
.nav-links > li > button .icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
}

.nav-cta:hover {
    background: var(--accent-dark) !important;
    color: #fff !important;
}

.nav-cta::after {
    display: none !important;
}

.theme-toggle {
    background: var(--bg-section);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--accent-light);
    border-color: var(--accent);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.theme-toggle:hover svg {
    color: var(--accent);
}

.theme-toggle .moon-icon {
    display: none;
}

html[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

html[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    margin-left: auto;
    position: relative;
    z-index: 1100;
    -webkit-tap-highlight-color: transparent;
}
.nav-toggle span,
.nav-toggle span:before,
.nav-toggle span:after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease;
}
.nav-toggle span:before {
    content: "";
    transform: translateY(-6px);
}
.nav-toggle span:after {
    content: "";
    transform: translateY(6px);
}
.nav-toggle.active span {
    background: transparent;
}
.nav-toggle.active span:before {
    transform: rotate(45deg);
}
.nav-toggle.active span:after {
    transform: rotate(-45deg);
}

@media (max-width: 1023px) {
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
    }
}

@media (min-width: 1024px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    .brand-icon {
        width: 30px;
        height: 30px;
    }
    .nav-links > li > a {
        font-size: 0.95rem;
    }
}

/* ================================================================
   6. OFFCANVAS (МОБИЛЬНОЕ МЕНЮ)
   ================================================================ */
.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    visibility: hidden;
    z-index: 1050;
    transition:
        opacity 0.4s ease,
        visibility 0.4s ease,
        background 0.4s ease;
}
.offcanvas-overlay.visible {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.45);
}

.offcanvas-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    max-width: 360px;
    background: var(--bg);
    z-index: 1060;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0);
    overflow: hidden;
}
.offcanvas-panel.show {
    transform: translateX(0);
    visibility: visible;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, #0070c9 0%, #348efb 100%);
    color: #fff;
    flex-shrink: 0;
}
.offcanvas-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 0.5vw + 0.95rem, 1.1rem);
    font-weight: 700;
}

.offcanvas-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .15);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: #fff;
    transition:
        background 0.25s ease,
        transform 0.25s ease;
}
.offcanvas-close:hover {
    background: rgba(255, 255, 255, .3);
    transform: scale(1.08);
}
.offcanvas-close:active {
    transform: scale(0.95);
}
.offcanvas-close svg {
    width: 20px;
    height: 20px;
}

.offcanvas-nav {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0;
}

.offcanvas-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 24px;
    color: var(--text);
    font-size: clamp(1rem, 0.5vw + 0.95rem, 1.05rem);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition:
        color 0.3s ease,
        background 0.3s ease;
}
.offcanvas-link::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--accent);
	transform: scaleY(0);
	transition: transform .3s cubic-bezier(.22,1,.36,1);
	border-radius: 0 4px 4px 0;
}

.offcanvas-link:hover {
    color: var(--accent-dark);
    background: var(--accent-light);
}
.offcanvas-link:hover::before {
    transform: scaleY(1);
}
.offcanvas-link:active {
    background: #dbeafe;
}

.offcanvas-link .icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color .3s ease;
}
.offcanvas-link:hover .icon {
    color: var(--accent);
}

.offcanvas-link .external-arrow {
    margin-left: auto;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--border);
    transition:
        color 0.3s ease,
        transform 0.3s ease;
}
.offcanvas-link:hover .external-arrow {
    color: var(--accent);
    transform: translateX(3px);
}

.offcanvas-footer {
    flex-shrink: 0;
    padding: 16px 24px;
    background: var(--bg-section);
    border-top: 1px solid var(--border-light);
}
.offcanvas-footer p {
    font-size: clamp(0.85rem, 0.5vw + 0.8rem, 0.9rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

@media (min-width: 1024px) {
    .offcanvas-overlay,
    .offcanvas-panel {
        display: none !important;
    }
}

/* ================================================================
   7. HERO (ПЕРВАЯ СЕКЦИЯ)
   ================================================================ */
.hero {
    position: relative;
    padding: 130px 1.25rem 50px;
    background: #fff;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--bg-section));
    pointer-events: none;
    z-index: 3;
}

.hero-inner {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

/* -- Бейдж -- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 12px;
    background: #f6f8fa;
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 999px;
    font-size: clamp(0.75rem, 0.5vw + 0.7rem, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(16px);
    animation: heroUp 0.6s ease-out 0.05s forwards;
}
.hero-badge .icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* -- Заголовок -- */
.hero h1 {
    font-size: clamp(2rem, 1.5rem + 4vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(24px);
    animation: heroUp 0.7s ease-out 0.12s forwards;
}

.hero h1 .accent {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* -- Подзаголовок -- */
.hero-subtitle {
    font-size: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroUp 0.7s ease-out 0.22s forwards;
}

@keyframes heroUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -- Кнопки -- */
.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroUp 0.7s ease-out 0.32s forwards;
}

/* -- Снимок браузера -- */
.hero-browser {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    animation: heroUp 0.9s ease-out 0.38s forwards;
}

.browser-frame {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.02),
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 16px 40px -8px rgba(0, 0, 0, 0.08),
        0 32px 64px -16px rgba(0, 0, 0, 0.06);
    transition:
        transform 0.5s ease,
        box-shadow 0.5s ease;
}

.hero-browser:hover .browser-frame {
    transform: translateY(-6px);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.02),
        0 8px 20px rgba(0, 0, 0, 0.06),
        0 24px 48px -8px rgba(0, 0, 0, 0.1),
        0 40px 72px -16px rgba(0, 0, 0, 0.08);
}

.browser-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
}

.browser-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}
.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}
.browser-dots span:first-child {
    background: #fca5a5;
}
.browser-dots span:nth-child(2) {
    background: #fcd34d;
}
.browser-dots span:nth-child(3) {
    background: #86efac;
}

.browser-url {
    flex: 1;
    height: 32px;
    background: var(--bg-section);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    padding: 0 12px;
}
.browser-url .icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.5;
}

.browser-body {
    background: #fff;
    line-height: 0;
}
.browser-body img {
    width: 100%;
    height: auto;
    display: block;
}

/* -- Мини-фичи под снимком -- */
.hero-features {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 40px;
    opacity: 0;
    transform: translateY(16px);
    animation: heroUp 0.7s ease-out 0.52s forwards;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.8rem, 0.5vw + 0.75rem, 0.9rem);
    color: #94a3b8;
}
.hero-feature .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #22c55e;
}
.hero-feature strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* -- Плавающие иконки (декор) -- */
.hero-float {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.06;
}
.hero-float .icon {
    width: 100%;
    height: 100%;
}

.hero-float-1 {
    top: 18%;
    left: 6%;
    width: 48px;
    height: 48px;
    animation: heroFloat 8s ease-in-out infinite;
}
.hero-float-2 {
    top: 25%;
    right: 8%;
    width: 40px;
    height: 40px;
    animation: heroFloat 10s ease-in-out infinite 2s;
}
.hero-float-3 {
    bottom: 26%;
    left: 10%;
    width: 44px;
    height: 44px;
    animation: heroFloat 9s ease-in-out infinite 4s;
}
.hero-float-4 {
    bottom: 30%;
    right: 10%;
    width: 36px;
    height: 36px;
    animation: heroFloat 11s ease-in-out infinite 1s;
}
.hero-float-5 {
    top: 12%;
    right: 22%;
    width: 32px;
    height: 32px;
    animation: heroFloat 7s ease-in-out infinite 0.5s;
}
.hero-float-6 {
    top: 40%;
    left: 4%;
    width: 52px;
    height: 52px;
    animation: heroFloat 12s ease-in-out infinite 3s;
}
.hero-float-7 {
    bottom: 14%;
    left: 6%;
    width: 38px;
    height: 38px;
    animation: heroFloat 9.5s ease-in-out infinite 5s;
}
.hero-float-8 {
    top: 55%;
    right: 3%;
    width: 46px;
    height: 46px;
    animation: heroFloat 10.5s ease-in-out infinite 1.5s;
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* -- Hero: адаптив -- */
@media (max-width: 360px) {
    .hero {
        padding: 115px 1rem 40px;
    }
    .hero-badge {
        font-size: 0.7rem;
        padding: 5px 12px 5px 7px;
        margin-bottom: 24px;
    }
    .hero h1 {
        margin-bottom: 16px;
    }
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 32px;
    }
    .hero-actions {
        margin-bottom: 40px;
    }
    .browser-dots {
        gap: 4px;
    }
    .browser-dots span {
        width: 8px;
        height: 8px;
    }
    .browser-bar {
        padding: 10px 12px;
        gap: 8px;
    }
    .browser-url {
        font-size: 0.7rem;
        height: 28px;
        padding: 0 8px;
    }
    .hero-features {
        gap: 12px 20px;
    }
    .hero-feature {
        font-size: 0.75rem;
    }
}

@media (max-width: 640px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-primary,
    .btn-ghost {
        width: 100%;
        justify-content: center;
    }
    .hero-float {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 160px 2rem 80px;
    }
    .hero h1 {
        font-size: clamp(3.5rem, 7vw, 6rem);
    }
    .hero-subtitle {
        font-size: 1.45rem;
        margin-bottom: 48px;
    }
    .btn-primary {
        padding: 18px 48px;
        font-size: 1rem;
        border-radius: 16px;
    }
    .btn-ghost {
        padding: 18px 40px;
        font-size: 1rem;
        border-radius: 16px;
    }
    .hero-browser {
        max-width: 860px;
    }
    .hero-features {
        gap: 44px;
        margin-top: 52px;
    }
    .hero-feature {
        font-size: 0.9rem;
    }
}

/* ================================================================
   8. РЕКЛАМНЫЕ БЛОКИ (AD SLOTS)
   ================================================================ */
.ads {
    overflow: hidden;
    text-align: center;
    margin: 0 0 20px auto;
    padding: 0;
    clear: both;
    max-width: 1200px;
}

.ON_Top {
    width: 200px;
    height: 200px;
}

@media (min-width: 316px) {
    .ON_Top {
        width: 234px;
        height: 60px;
    }
}
@media (min-width: 402px) {
    .ON_Top {
        width: 320px;
        height: 100px;
    }
}
@media (min-width: 550px) {
    .ON_Top {
        width: 468px;
        height: 60px;
    }
}
@media (min-width: 876px) {
    .ON_Top {
        width: 728px;
        height: 90px;
    }
}

/* ================================================================
   9. FEATURES (СЕТКА ВОЗМОЖНОСТЕЙ)
   ================================================================ */
.features {
    padding: 80px 0;
    background: var(--bg-section);
    position: relative;
    z-index: 3;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    font-size: clamp(1rem, 0.5vw + 0.95rem, 1.15rem);
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: rgba(52, 142, 251, 0.3);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 16px;
    transition: transform var(--transition);
}
.feature-card:hover .feature-icon {
    transform: scale(1.15);
}

.feature-card h3 {
    font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem);
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.05rem);
    line-height: 1.7;
}

/* -- Features: адаптив -- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features {
        padding: 60px 0;
    }
    .features-grid {
        gap: 12px;
    }
    .feature-card {
        padding: 22px;
    }
    .feature-icon {
        width: 34px;
        height: 34px;
        margin-bottom: 12px;
    }
    .feature-card h3 {
        font-size: 1rem;
    }
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .section-header {
        margin-bottom: 56px;
    }
    .section-header h2 {
        font-size: 3rem;
    }
    .section-header p {
        font-size: 1.2rem;
        max-width: 620px;
    }
    .features-grid {
        gap: 20px;
    }
    .feature-card {
        padding: 32px;
    }
    .feature-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
    }
    .feature-card h3 {
        font-size: 1.4rem;
    }
    .feature-card p {
        font-size: 1.12rem;
        line-height: 1.75;
    }
}

/* ================================================================
   10. GUIDE CARDS (КАРТОЧКИ-ССЫЛКИ РУКОВОДСТВА)
   ================================================================ */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.guide-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.guide-card:hover {
    border-color: rgba(52, 142, 251, 0.3);
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.guide-card h3 {
    font-size: clamp(1.05rem, 0.5vw + 1rem, 1.25rem);
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}
.guide-card p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.05rem);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.guide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    width: fit-content;
    font-size: clamp(0.85rem, 0.5vw + 0.8rem, 0.95rem);
    font-weight: 600;
    color: var(--accent-dark);
    background: var(--accent-light);
    border: 1px solid rgba(52, 142, 251, 0.15);
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    margin: 0 auto;
    transition: all var(--transition);
}
.guide-btn .icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.guide-btn:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(52, 142, 251, 0.3);
    text-decoration: none;
}
.guide-btn:hover .icon {
    transform: translateX(3px);
}
.guide-btn:active {
    transform: scale(0.97);
}

/* -- Guide Cards: адаптив -- */
@media (max-width: 768px) {
    .guide-card {
        padding: 22px;
    }
    .guide-card h3 {
        font-size: 0.97rem;
    }
    .guide-card p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    .guide-btn {
        padding: 9px 20px;
        font-size: 0.85rem;
    }
}

@media (max-width: 640px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .guide-grid {
        gap: 20px;
    }
    .guide-card {
        padding: 32px;
    }
    .guide-card h3 {
        font-size: 1.3rem;
        margin-bottom: 14px;
    }
    .guide-card p {
        font-size: 1.08rem;
        line-height: 1.75;
        margin-bottom: 24px;
    }
    .guide-btn {
        padding: 12px 28px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
}

/* ================================================================
   11. INFO SECTIONS (ИНФОРМАЦИОННЫЕ БЛОКИ-СТАТЬИ)
   ================================================================ */
.info-sections {
    background: var(--bg);
}

.info-block {
    width: 100%;
    padding: 52px 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    transition: background 0.4s ease;
}

.info-block:nth-child(odd) {
    background: var(--bg-section);
    border-radius: 0;
}
.info-block:nth-child(even) {
    background: var(--bg);
}

.info-block-content {
    max-width: 960px;
    width: 100%;
}

.info-block .guide-grid {
    max-width: 960px;
    width: 100%;
}

.info-block-visual {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s ease;
}
.info-block-visual .icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
}

.info-block:hover .info-block-visual {
    transform: scale(1.08);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.2);
}

.info-block-content h2 {
    font-size: clamp(1.25rem, 1rem + 1.5vw, 1.75rem);
    margin-bottom: 14px;
    line-height: 1.3;
}
.info-block-content p {
    color: var(--text-secondary);
    margin-bottom: 1em;
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.1rem);
    line-height: 1.8;
}

/* -- Info Sections: адаптив -- */
@media (min-width: 768px) {
    .info-block {
        padding: 64px 1.5rem;
        gap: 28px;
    }
    .info-block:nth-child(odd) {
        border-radius: 0px;
    }
    .info-block-visual {
        width: 80px;
        height: 80px;
        border-radius: 20px;
    }
    .info-block-visual .icon {
        width: 40px;
        height: 40px;
    }
    .info-block-content h2 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    .info-block-content p {
        font-size: 1rem;
        line-height: 1.75;
    }
}

@media (min-width: 1024px) {
    .info-block {
        padding: 88px 2rem;
        gap: 36px;
    }
    .info-block:nth-child(odd) {
        border-radius: 0px 0px 0 0;
    }
    .info-block-visual {
        width: 96px;
        height: 96px;
        border-radius: 24px;
    }
    .info-block-visual .icon {
        width: 48px;
        height: 48px;
    }
    .info-block-content h2 {
        font-size: 2.1rem;
        margin-bottom: 20px;
    }
    .info-block-content p {
        font-size: 1.18rem;
        line-height: 1.9;
    }
}

/* ================================================================
   12. PAGE HERO (ШАПКА ВНУТРЕННИХ СТРАНИЦ)
   ================================================================ */
.page-hero {
    padding: 130px 1.25rem 48px;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}
.page-hero .container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(1.75rem, 1.5rem + 2vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    line-height: 1.2;
}
.page-hero p {
    font-size: clamp(1rem, 0.5vw + 0.95rem, 1.15rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 360px) {
    .page-hero {
        padding: 115px 1rem 36px;
    }
}
@media (min-width: 1024px) {
    .page-hero {
        padding: 140px 2rem 56px;
    }
    .page-hero h1 {
        font-size: 2.4rem;
    }
    .page-hero p {
        font-size: 1.15rem;
    }
}

/* ================================================================
   13. PAGE LAYOUT (РАЗМЕТКА ВНУТРЕННИХ СТРАНИЦ)
   ================================================================ */
.page-container {
    padding: 32px 0 48px;
}
.page-container .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}
.page-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .page-container {
        padding: 40px 0 56px;
    }
    .page-container .container {
        padding: 0 1.5rem;
    }
    .page-row {
        gap: 36px;
    }
}

@media (min-width: 1024px) {
    .page-container {
        padding: 48px 0 72px;
    }
    .page-row {
        grid-template-columns: 1fr 300px;
        gap: 48px;
    }
}

/* ================================================================
   14. PAGE CONTENT (КОНТЕНТ ВНУТРЕННИХ СТРАНИЦ)
   ================================================================ */
.page-content {
    min-width: 0;
}
.page-section {
    margin-bottom: 28px;
}
.page-section:last-of-type {
    margin-bottom: 0;
}

.page-section h2 {
    font-size: clamp(1.25rem, 1rem + 1vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    line-height: 1.3;
}
.page-section h3 {
    font-size: clamp(1.1rem, 0.5vw + 1rem, 1.25rem);
    font-weight: 600;
    margin: 18px 0 8px;
    line-height: 1.4;
}
.page-section p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.05rem);
    line-height: 1.8;
    margin-bottom: 10px;
}
.page-section ul {
    padding-left: 22px;
    margin: 6px 0 14px;
    list-style: disc;
}
.page-section ul li {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.05rem);
    line-height: 1.8;
    margin-bottom: 5px;
    padding-left: 2px;
}

.highlight {
    background: var(--accent-light);
    color: var(--accent-dark);
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.page-section a {
    color: var(--accent-dark);
    font-weight: 500;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    transition: all var(--transition);
}
.page-section a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.page-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0 20px;
}
.page-updated {
    text-align: center;
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 0.5vw + 0.8rem, 0.9rem);
    margin-bottom: 0;
}

/* -- Page Content: адаптив -- */
@media (min-width: 768px) {
    .page-section {
        margin-bottom: 32px;
    }
    .page-section h2 {
        font-size: 1.3rem;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
    .page-section h3 {
        font-size: 1.08rem;
        margin: 20px 0 10px;
    }
    .page-section p {
        font-size: 1rem;
        line-height: 1.85;
        margin-bottom: 12px;
    }
    .page-section ul li {
        font-size: 1rem;
    }
    .page-divider {
        margin: 40px 0 24px;
    }
}

@media (min-width: 1024px) {
    .page-section {
        margin-bottom: 36px;
    }
    .page-section h2 {
        font-size: 1.35rem;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    .page-section h3 {
        font-size: 1.1rem;
        margin: 24px 0 12px;
    }
    .page-section p {
        font-size: 1.05rem;
        line-height: 1.85;
        margin-bottom: 14px;
    }
    .page-section ul li {
        font-size: 1.05rem;
    }
    .page-divider {
        margin: 48px 0 28px;
    }
}

/* ================================================================
   15. PAGE SIDEBAR (БОКОВАЯ ПАНЕЛЬ)
   ================================================================ */
.page-sidebar {
    display: none;
}

@media (min-width: 1024px) {
    .page-sidebar {
        display: block;
        position: sticky;
        top: 84px;
        align-self: start;
    }
}

.sidebar-block {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.sidebar-block:last-child {
    margin-bottom: 0;
}

.sidebar-block-header {
    padding: 12px 16px;
    background: var(--border-light);
    border-bottom: 1px solid var(--border);
    font-size: clamp(0.75rem, 0.5vw + 0.7rem, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    line-height: 1.4;
}

.sidebar-ads {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 0.5vw + 0.75rem, 0.9rem);
}
.sidebar-ads svg {
    width: 32px;
    height: 32px;
    opacity: 0.25;
}
.sidebar-ads span {
    opacity: 0.4;
    font-weight: 500;
}

.sidebar-nav-block {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
}
.sidebar-nav-block:last-child {
    margin-bottom: 0;
}

.sidebar-nav-block h3 {
    font-size: clamp(0.75rem, 0.5vw + 0.7rem, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    line-height: 1.4;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-nav li {
    margin: 0;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 0.5vw + 0.85rem, 0.95rem);
    font-weight: 500;
    transition:
        color 0.2s ease,
        background 0.2s ease;
    line-height: 1.4;
}
.sidebar-nav a .icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.2s ease;
}
.sidebar-nav a:hover {
    color: var(--accent-dark);
    background: var(--bg);
    text-decoration: none;
}
.sidebar-nav a:hover .icon {
    opacity: 0.7;
    color: var(--accent);
}
.sidebar-nav a.active {
    color: var(--accent-dark);
    background: var(--bg);
    font-weight: 600;
}
.sidebar-nav a.active .icon {
    opacity: 0.7;
    color: var(--accent);
}

/* ================================================================
   16. СТАТЕЙНЫЕ КОМПОНЕНТЫ (ЦИТАТЫ, ПРИМЕЧАНИЯ, ПРЕДУПРЕЖДЕНИЯ, КАРТИНКИ)
   ================================================================ */

/* -- Цитата -- */
.article-quote {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin: 20px 0;
    color: var(--text);
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.1rem);
    font-style: italic;
    line-height: 1.8;
    position: relative;
}
.article-quote::before {
    content: "\201C";
    position: absolute;
    top: 8px;
    left: 18px;
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.15;
    font-style: normal;
    font-family: Georgia, "Times New Roman", serif;
}

/* -- Примечание -- */
.article-note {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 16px 0;
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 0.5vw + 0.85rem, 1rem);
    line-height: 1.75;
}
.article-note code {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-dark);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: clamp(0.85rem, 0.5vw + 0.8rem, 0.9rem);
    font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    white-space: nowrap;
}

/* -- Предупреждение -- */
.article-warning {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 0 10px 10px 0;
    padding: 16px 20px;
    margin: 16px 0;
    color: #991b1b;
    font-size: clamp(0.9rem, 0.5vw + 0.85rem, 1rem);
    line-height: 1.75;
}
.article-warning strong {
    color: #dc2626;
}

/* -- Изображения -- */
.article-image {
    display: block;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 16px 0;
    background: var(--bg-section);
}

/* -- Адаптив статейных компонентов -- */
@media (min-width: 768px) {
    .article-quote {
        padding: 22px 26px;
        font-size: 1.05rem;
    }
    .article-note {
        padding: 18px 24px;
        font-size: 1rem;
    }
    .article-warning {
        padding: 18px 24px;
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .article-quote {
        padding: 24px 30px;
        font-size: 1.1rem;
        line-height: 1.8;
    }
    .article-note {
        padding: 20px 26px;
        font-size: 1.05rem;
        line-height: 1.8;
    }
    .article-warning {
        padding: 20px 26px;
        font-size: 1.05rem;
        line-height: 1.8;
    }
}

/* ================================================================
   17. ТАБЛИЦА ГОРЯЧИХ КЛАВИШ
   ================================================================ */
.shortcuts-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
}

.shortcuts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.85rem, 0.5vw + 0.8rem, 0.95rem);
}

.shortcuts-table thead th {
    background: var(--bg-section);
    color: var(--text);
    font-size: clamp(0.75rem, 0.5vw + 0.7rem, 0.85rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    line-height: 1.4;
}
.shortcuts-table thead th:not(:first-child) {
    text-align: center;
}

.shortcuts-table tbody tr {
    transition: background 0.15s ease;
}
.shortcuts-table tbody tr:hover {
    background: var(--accent-light);
}
.shortcuts-table tbody tr:not(:last-child) td {
    border-bottom: 1px solid var(--border-light);
}

.shortcuts-table tbody td {
    padding: 11px 16px;
    color: var(--text-secondary);
    vertical-align: middle;
    line-height: 1.5;
}
.shortcuts-table tbody td:not(:first-child) {
    text-align: center;
    white-space: nowrap;
}

/* Иконка действия */
.shortcut-action {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text);
}

.shortcut-action-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 7px;
    flex-shrink: 0;
    color: var(--accent);
}
.shortcut-action-icon svg {
    width: 15px;
    height: 15px;
}

/* Клавиши */
.kbd {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", "Courier New", monospace;
    font-size: clamp(0.8rem, 0.5vw + 0.75rem, 0.85rem);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.kbd-key {
    display: inline-block;
    padding: 3px 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 5px;
    line-height: 1.4;
    transition: all 0.15s ease;
}
.shortcuts-table tbody tr:hover .kbd-key {
    border-color: rgba(59, 130, 246, 0.3);
    border-bottom-color: rgba(59, 130, 246, 0.4);
}

.kbd-plus {
    display: inline-block;
    padding: 0 4px;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: clamp(0.75rem, 0.5vw + 0.7rem, 0.8rem);
}

/* -- Таблица: адаптив -- */
@media (min-width: 768px) {
    .shortcuts-table {
        font-size: 0.93rem;
    }
    .shortcuts-table thead th {
        padding: 13px 18px;
    }
    .shortcuts-table tbody td {
        padding: 12px 18px;
    }
    .kbd {
        font-size: 0.85rem;
    }
    .kbd-key {
        padding: 4px 9px;
    }
}

@media (min-width: 1024px) {
    .shortcuts-table {
        font-size: 0.95rem;
    }
    .shortcuts-table thead th {
        padding: 14px 20px;
    }
    .shortcuts-table tbody td {
        padding: 13px 20px;
    }
    .shortcut-action-icon {
        width: 32px;
        height: 32px;
    }
    .shortcut-action-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* ================================================================
   18. ПРИНЦИПЫ (КАРТОЧКИ)
   ================================================================ */
.principles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.principle-card {
    display: flex;
    gap: 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 18px 18px 0;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.principle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.principle-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--accent-light);
    color: var(--accent);
    margin-left: 10px;
}
.principle-icon svg {
    width: 20px;
    height: 20px;
}

.principle-body h4 {
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.1rem);
    font-weight: 600;
    margin-bottom: 3px;
    line-height: 1.4;
    color: var(--text);
}
.principle-body p {
    font-size: clamp(0.9rem, 0.5vw + 0.85rem, 1rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* -- Принципы: адаптив -- */
@media (min-width: 768px) {
    .principles-list {
        gap: 14px;
    }
    .principle-card {
        padding: 20px 20px 20px 0;
        gap: 18px;
    }
    .principle-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        margin-left: 10px;
    }
    .principle-icon svg {
        width: 22px;
        height: 22px;
    }
    .principle-body h4 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    .principle-body p {
        font-size: 0.95rem;
    }
}

@media (min-width: 1024px) {
    .principles-list {
        gap: 16px;
    }
    .principle-card {
        padding: 22px 22px 22px 0;
        gap: 20px;
    }
    .principle-icon {
        width: 50px;
        height: 50px;
        border-radius: 13px;
        margin-left: 10px;
    }
    .principle-icon svg {
        width: 24px;
        height: 24px;
    }
    .principle-body h4 {
        font-size: 1.05rem;
        margin-bottom: 5px;
    }
    .principle-body p {
        font-size: 1rem;
        line-height: 1.7;
    }
}

/* ================================================================
   19. КАРТОЧКИ БРАУЗЕРОВ
   ================================================================ */
.browser-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.browser-card {
    display: flex;
    gap: 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 20px 20px 0;
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 0.5vw + 0.85rem, 1rem);
    line-height: 1.75;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.browser-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 14px 0 0 14px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.browser-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    border-color: transparent;
}
.browser-card:hover::before {
    opacity: 1;
}

/* Иконка браузера */
.browser-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    margin-left: 10px;
}

.browser-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 14px;
    opacity: 0.08;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), transparent 70%);
}

.browser-icon svg {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 1;
}

/* Контент карточки */
.browser-card-body {
    flex: 1;
    min-width: 0;
}

.browser-card-title {
    font-weight: 700;
    color: var(--text);
    font-size: clamp(1rem, 0.5vw + 0.95rem, 1.15rem);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.browser-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 6px;
    font-size: clamp(0.65rem, 0.5vw + 0.6rem, 0.75rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.7;
    vertical-align: middle;
}

.browser-card-text {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 0.5vw + 0.85rem, 1rem);
    line-height: 1.75;
}

.browser-card-text code {
    background: var(--bg-section);
    color: var(--accent-dark);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: clamp(0.8rem, 0.5vw + 0.75rem, 0.85rem);
    font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
    white-space: nowrap;
}

/* === Цветовые темы браузеров === */
.browser-chrome .browser-icon {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
}
.browser-chrome .browser-icon svg {
    color: #fff;
}
.browser-chrome::before {
    background: #4285f4;
}
.browser-chrome:hover {
    border-color: #4285f4;
}
.browser-chrome .browser-badge {
    background: #eff6ff;
    color: #2563eb;
}

.browser-firefox .browser-icon {
    background: linear-gradient(135deg, #ff1b2d 0%, #ffad4a 100%);
}
.browser-firefox .browser-icon svg {
    color: #fff;
}
.browser-firefox::before {
    background: #ff7139;
}
.browser-firefox:hover {
    border-color: #ff7139;
}
.browser-firefox .browser-badge {
    background: #fff7ed;
    color: #c2410c;
}

.browser-edge .browser-icon {
    background: linear-gradient(135deg, #0078d4 0%, #50b0f0 100%);
}
.browser-edge .browser-icon svg {
    color: #fff;
}
.browser-edge::before {
    background: #0078d4;
}
.browser-edge:hover {
    border-color: #0078d4;
}
.browser-edge .browser-badge {
    background: #f0f9ff;
    color: #0369a1;
}

.browser-safari .browser-icon {
    background: linear-gradient(135deg, #006cbe 0%, #5ac8fa 100%);
}
.browser-safari .browser-icon svg {
    color: #fff;
}
.browser-safari::before {
    background: #006cbe;
}
.browser-safari:hover {
    border-color: #006cbe;
}
.browser-safari .browser-badge {
    background: #f0f9ff;
    color: #075985;
}

.browser-ie .browser-icon {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
}
.browser-ie .browser-icon svg {
    color: #fff;
}
.browser-ie::before {
    background: #94a3b8;
}
.browser-ie:hover {
    border-color: #94a3b8;
}
.browser-ie .browser-badge {
    background: #f8fafc;
    color: #64748b;
}
.browser-ie {
    opacity: 0.75;
}
.browser-ie:hover {
    opacity: 1;
}

.browser-opera .browser-icon {
    background: linear-gradient(135deg, #ff1b2d 0%, #e01525 100%);
}
.browser-opera .browser-icon svg {
    color: #fff;
}
.browser-opera::before {
    background: #ff1b2d;
}
.browser-opera:hover {
    border-color: #e01525;
}
.browser-opera .browser-badge {
    background: #eff6ff;
    color: #2563eb;
}

.browser-yandex .browser-icon {
    background: linear-gradient(135deg, #fc3f1d 0%, #e03620 100%);
}
.browser-yandex .browser-icon svg {
    color: #fff;
}
.browser-yandex::before {
    background: #fc3f1d;
}
.browser-yandex:hover {
    border-color: #e03620;
}
.browser-yandex .browser-badge {
    background: #eff6ff;
    color: #2563eb;
}

.browser-android .browser-icon {
    background: linear-gradient(135deg, #34c759 0%, #34a853 100%);
}
.browser-android .browser-icon svg {
    color: #fff;
}
.browser-android::before {
    background: #34c759;
}
.browser-android:hover {
    border-color: #34a853;
}

.browser-ios .browser-icon {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
}
.browser-ios .browser-icon svg {
    color: #fff;
}
.browser-ios::before {
    background: #94a3b8;
}
.browser-ios:hover {
    border-color: #94a3b8;
}

/* -- Браузеры: адаптив -- */
@media (min-width: 768px) {
    .browser-list {
        gap: 16px;
    }
    .browser-card {
        padding: 22px 24px 22px 0;
        gap: 20px;
    }
    .browser-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        margin-left: 10px;
    }
    .browser-icon svg {
        width: 28px;
        height: 28px;
    }
    .browser-card-title {
        font-size: 1.05rem;
        margin-bottom: 7px;
    }
    .browser-card-text {
        font-size: 0.95rem;
    }
}

@media (min-width: 1024px) {
    .browser-list {
        gap: 18px;
    }
    .browser-card {
        padding: 24px 28px 24px 0;
        gap: 22px;
    }
    .browser-icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
        margin-left: 10px;
    }
    .browser-icon svg {
        width: 30px;
        height: 30px;
    }
    .browser-card-title {
        font-size: 1.08rem;
        margin-bottom: 8px;
    }
    .browser-card-text {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* ================================================================
   20. FAQ АККОРДЕОН И ПОИСК
   ================================================================ */
.faq-category {
    margin-bottom: 40px;
}
.faq-category h2 {
    font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    line-height: 1.3;
}

.faq-item {
    margin-bottom: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 18px 22px;
    background: var(--bg);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.05rem);
    line-height: 1.5;
    transition: background 0.3s ease;
    gap: 12px;
}
.faq-question:hover {
    background: var(--bg-section);
}

.faq-toggle {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 22px;
    transition:
        max-height 0.3s ease,
        padding 0.3s ease;
}
.faq-item.active .faq-answer {
    max-height: 800px;
    padding: 0 22px 22px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.05rem);
    line-height: 1.8;
    margin-bottom: 10px;
}
.faq-answer ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 14px;
}
.faq-answer ul li {
    position: relative;
    padding-left: 22px;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.05rem);
    line-height: 1.8;
    margin-bottom: 6px;
}
.faq-answer ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}
.faq-answer ol {
    padding-left: 22px;
    margin: 0 0 14px;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.05rem);
    line-height: 1.8;
    margin-bottom: 10px;
}

.faq-answer a {
    color: var(--accent-dark);
    font-weight: 500;
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
    transition: all var(--transition);
}
.faq-answer a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.faq-item.hidden {
    display: none;
}

/* -- Поиск FAQ -- */
.faq-search {
    margin-top: 16px;
    position: relative;
}
.faq-search input {
    width: 100%;
    padding: 11px 42px 11px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px; /* 16px предотвращает авто-зум на iOS */
    transition: all 0.3s;
}
.faq-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.faq-search input::placeholder {
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 0.5vw + 0.8rem, 0.9rem);
}
.faq-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
}
.faq-search button:hover {
    color: var(--accent);
}

/* -- FAQ: адаптив -- */
@media (min-width: 1024px) {
    .faq-category h2 {
        font-size: 1.35rem;
        margin-bottom: 24px;
        padding-bottom: 12px;
    }
    .faq-question {
        padding: 20px 24px;
        font-size: 1rem;
    }
    .faq-answer p {
        font-size: 1rem;
        line-height: 1.85;
        margin-bottom: 12px;
    }
    .faq-answer ul li,
    .faq-answer ol li {
        font-size: 1rem;
    }
}

/* ================================================================
   21. КОНТАКТНЫЙ БЛОК
   ================================================================ */
.contact-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}
.contact-card:hover {
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.08);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.contact-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: 12px;
    color: var(--accent);
    flex-shrink: 0;
}
.contact-card-icon svg {
    width: 22px;
    height: 22px;
}

.contact-card-title {
    font-size: clamp(1rem, 0.5vw + 0.95rem, 1.15rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}
.contact-card-subtitle {
    font-size: clamp(0.85rem, 0.5vw + 0.8rem, 0.9rem);
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 2px;
    line-height: 1.4;
}

.contact-card-body p {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1.05rem);
    line-height: 1.75;
    margin-bottom: 14px;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--accent);
    color: #fff !important;
    font-size: clamp(0.95rem, 0.5vw + 0.9rem, 1rem);
    font-weight: 600;
    border-radius: 10px;
    border-bottom: none !important;
    transition: all 0.3s ease;
}
.contact-email-link:hover {
    background: var(--accent-dark);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}
.contact-email-link:active {
    transform: translateY(0);
    box-shadow: none;
}
.contact-email-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 0.5vw + 0.85rem, 1rem);
    line-height: 1.6;
}
.contact-info-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.contact-info-list li:first-child {
    padding-top: 0;
}
.contact-info-list .info-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
    opacity: 0.6;
}

/* ================================================================
   22. FOOTER (ПОДВАЛ)
   ================================================================ */
.footer {
	background: var(--bg);
	color: var(--text-secondary);
	padding: 60px 0 40px;
	border-top: 1px solid var(--border);
	margin-top: 0px;
	position: relative;
	z-index: 1;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-row {
	display: grid;
	grid-template-columns: repeat(4,1fr);
	gap: 24px;
}

.footer-title {
	font-family: var(--font-display);
	color: var(--text);
	font-size: clamp(.9rem,.5vw + .85rem, 1rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	margin-bottom: 20px;
	line-height: 1.4;
}

.footer-col > p {
    color: var(--text-secondary);
   font-size: clamp(.9rem,.5vw + .85rem,.95rem);
    line-height: 1.7;
    word-break: normal;
    hyphens: none;
}

/* -- Ссылки подвала -- */
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
	color: var(--text);
	font-size: clamp(.9rem,.5vw + .85rem,1rem);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all var(--transition);
	line-height: 1.5;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(4px);
    text-decoration: none;
}

.footer-links a.disabled-link {
    opacity: 0.4;
    cursor: default;
}
.footer-links a.disabled-link:hover {
    color: var(--text-secondary);
    transform: none;
}

.arrow-icon {
    width: 14px;
    height: 14px;
    opacity: .35;
    transition: opacity var(--transition);
}

.footer-links a:hover .arrow-icon {
    opacity: 1;
    color: var(--accent);
}

/* -- Copyright -- */
.copyright {
	background: #0a0a0a;
	padding: 20px 1.5rem;
	text-align: center;
	color: #555a6e;
	font-size: clamp(.85rem,.5vw + .8rem,.95rem);
	border-top: 1px solid rgba(255,255,255,.04);
	line-height: 1.5;
	position: relative;
	z-index: 1;
}

/* -- Footer: adaptive -- */
@media (max-width: 992px) {
    .footer-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 36px 0 24px;
    }
    .footer-row {
        gap: 20px;
    }
    .footer-links a {
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 32px 0 20px;
    }
    .footer-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .copyright {
        font-size: 0.9rem;
        padding: 16px 1rem;
    }
}

/* ================================================================
   23. Back to top button
   ================================================================ */
.progress-wrap {
    position: fixed;
    right: 22px;
    bottom: 40px;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    border-radius: 50px;
    box-shadow: inset 0 0 0 0.1rem rgba(128, 130, 134, 0.25);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 200ms linear;
}
.progress-wrap.active-progress {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Arrow (normal state) */
.progress-wrap::after {
    position: absolute;
    font-family: "Unicode";
    font-weight: 900;
    content: "\25B3";
    text-align: center;
    line-height: 46px;
    font-size: 24px;
    color: #3f78e0;
    left: 0;
    top: 0;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    z-index: 1;
    transition: all 200ms linear;
}
.progress-wrap:hover::after {
    opacity: 0;
}

/* Arrow (hover - gradient) */
.progress-wrap::before {
    position: absolute;
    font-family: "Unicode";
    font-weight: 900;
    content: "\25B3";
    text-align: center;
    line-height: 46px;
    font-size: 24px;
    opacity: 0;
    background-image: linear-gradient(298deg, #3f78e0, #193059);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    left: 0;
    top: 0;
    height: 46px;
    width: 46px;
    cursor: pointer;
    display: block;
    z-index: 2;
    transition: all 200ms linear;
}
.progress-wrap:hover::before {
    opacity: 1;
}

.progress-wrap svg path {
    fill: none;
}

.progress-wrap svg.progress-circle path {
    stroke: #3f78e0;
    stroke-width: 4;
    box-sizing: border-box;
    transition: all 200ms linear;
}

/* -- Back to top button: adaptive -- */
@media (max-width: 640px) {
    .progress-wrap {
        right: 16px;
        bottom: 24px;
        height: 42px;
        width: 42px;
    }
    .progress-wrap::after,
    .progress-wrap::before {
        line-height: 42px;
        font-size: 20px;
        height: 42px;
        width: 42px;
    }
}

@media (min-width: 576px) {
    .progress-wrap.active-progress {
        opacity: 1;
    }
}

@media (prefers-reduced-motion:reduce) {
	.progress-wrap,.progress-wrap::after,.demo-line,.bg-ambient .orb {
		transition: none;
		animation: none;
	}

	.demo-line {
		opacity: 1;
		transform: none;
	}
}