/* ============ ПЕРЕМЕННЫЕ ============ */
: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 16px;               
    min-height: 37px;                
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.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;
    }
  
  .nav-links > li > a,
    .nav-links > li > button {
        height: 40px;
        box-sizing: border-box;
    }  
    
}

/* ================================================================
   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;
    }
}

/* ============ ФОНОВЫЙ СЛОЙ ============ */
.bg-ambient {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.bg-ambient .grid-lines {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(var(--border-light) 1px,transparent 1px),linear-gradient(90deg,var(--border-light) 1px,transparent 1px);
	background-size: 48px 48px;
	opacity: .55;
	-webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%,#000 30%,transparent 100%);
	mask-image: radial-gradient(ellipse 90% 70% at 50% 0%,#000 30%,transparent 100%);
}

.bg-ambient .orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(110px);
	animation: drift 28s ease-in-out infinite;
}

.bg-ambient .orb-1 {
	width: 560px;
	height: 560px;
	background: radial-gradient(circle,rgba(59,130,246,.16),transparent 70%);
	top: -180px;
	right: -120px;
}

.bg-ambient .orb-2 {
	width: 480px;
	height: 480px;
	background: radial-gradient(circle,rgba(37,99,235,.12),transparent 70%);
	bottom: -160px;
	left: -140px;
	animation-delay: -10s;
}

html[data-theme="dark"] .bg-ambient .orb {
	opacity: .5;
}

@keyframes drift {
	0%,100% {
		transform: translate(0,0) scale(1);
	}

	33% {
		transform: translate(28px,-36px) scale(1.06);
	}

	66% {
		transform: translate(-22px,26px) scale(.96);
	}
}



/* ================================================================
   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 ============ */
.hero-two {
	padding: 130px 1.25rem 56px;
	background: var(--bg-section);
	border-bottom: 1px solid var(--border-light);
	position: relative;
	overflow: hidden;
}

.hero-two .container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 3rem;
	align-items: center;
}

.hero-two h1 {
	font-size: clamp(2rem,4.5vw,2.9rem);
	font-weight: 700;
	letter-spacing: -.03em;
	margin-bottom: 1rem;
	line-height: 1.15;
	opacity: 0;
    transform: translateY(24px);
    animation: heroUp 0.7s ease-out 0.12s forwards;
}

.hero-two h1 .accent-word {
	color: var(--accent);
}

.hero-two-badge {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--font-mono);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--accent);
	background: var(--accent-soft);
	border: 1px solid rgba(59,130,246,.25);
	border-radius: 99px;
	padding: .35rem .9rem;
	margin-bottom: 1.1rem;
}

.hero-disclaimer {
	display: inline-flex;
	align-items: flex-start;
	gap: .5rem;
	font-size: .85rem;
	color: var(--warn);
	font-weight: 600;
	background: rgba(245,158,11,.1);
	padding: .55rem 1rem;
	border-radius: 12px;
	border: 1px solid rgba(245,158,11,.3);
	margin-bottom: 1.25rem;
}

.hero-two-subtitle {
	font-size: clamp(.95rem,1.5vw,1.1rem);
	color: var(--text-secondary);
	line-height: 1.7;
	max-width: 560px;
	margin-bottom: 1.25rem;
	 font-weight: 300;
     opacity: 0;
    transform: translateY(20px);
    animation: heroUp 0.7s ease-out 0.22s forwards;
	
}

.hero-feature {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	list-style: none;
}

.hero-feature li {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-size: .82rem;
	font-weight: 600;
	color: var(--text-secondary);
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 99px;
	padding: .42rem .9rem;
	transition: all var(--transition);
}

.hero-feature li:hover {
	border-color: var(--accent);
	color: var(--accent);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.hero-feature li i {
	color: var(--accent);
	font-size: .78rem;
}

.hero-demo {
	position: relative;
}

.demo-card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(15,23,42,.12);
	overflow: hidden;
	transform: rotate(1.2deg);
	transition: transform .5s cubic-bezier(.22,1,.36,1);
}

.demo-card:hover {
	transform: rotate(0) translateY(-4px);
}

.demo-head {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	background: var(--bg-section);
	border-bottom: 1px solid var(--border);
}

.demo-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
}

.demo-dot:nth-child(1) {
	background: #ff5f57;
}

.demo-dot:nth-child(2) {
	background: #febc2e;
}

.demo-dot:nth-child(3) {
	background: #28c840;
}

.demo-title {
	margin-left: 8px;
	font-family: var(--font-mono);
	font-size: .75rem;
	color: var(--text-muted);
}

.demo-body {
	padding: 18px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.demo-line {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--bg-section);
	border: 1px solid var(--border-light);
	border-radius: 10px;
	padding: 10px 14px;
	opacity: 0;
	transform: translateY(10px);
	animation: lineIn .5s cubic-bezier(.22,1,.36,1) forwards;
}

.demo-line:nth-child(1) {
	animation-delay: .35s;
}

.demo-line:nth-child(2) {
	animation-delay: .7s;
}

.demo-line:nth-child(3) {
	animation-delay: 1.05s;
}

.demo-line:nth-child(4) {
	animation-delay: 1.4s;
}

.demo-line:nth-child(5) {
	animation-delay: 1.75s;
}

@keyframes lineIn {
	to {
		opacity: 1;
		transform: none;
	}
}

.demo-addr {
	font-family: var(--font-mono);
	font-size: .85rem;
	color: var(--text);
	word-break: break-all;
}

.demo-addr .demo-at {
	color: var(--text-muted);
}

.demo-addr .demo-dom {
	color: var(--accent);
	font-weight: 600;
}

.demo-score {
	font-family: var(--font-mono);
	font-size: .72rem;
	font-weight: 700;
	padding: .15rem .55rem;
	border-radius: 99px;
	flex-shrink: 0;
}

.demo-score.good {
	color: var(--success);
	background: rgba(34,197,94,.12);
}

.demo-score.mid {
	color: var(--warn);
	background: rgba(245,158,11,.12);
}

.demo-typing {
	justify-content: flex-start;
}

.demo-cursor {
	display: inline-block;
	width: 9px;
	height: 17px;
	background: var(--accent);
	animation: blink 1s steps(1) infinite;
}

@keyframes blink {
	50% {
		opacity: 0;
	}
}

@media (max-width:900px) {
	.page-hero .container {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.hero-demo {
		max-width: 520px;
	}
}

@media (max-width:360px) {
	.page-hero {
		padding: 115px 1rem 40px;
	}
}

@media (min-width:1024px) {
	.page-hero {
		padding: 140px 2rem 64px;
	}
}


/* ============ ТУЛТИПЫ ============ */
[data-tooltip] {
	position: relative;
}

[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: #1e293b;
	color: #fff;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	font-family: var(--font-body);
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	z-index: 10000;
	box-shadow: 0 4px 14px rgba(0,0,0,.2);
	transition: opacity .18s ease,transform .18s ease;
}

[data-tooltip]::before {
	content: '';
	position: absolute;
	bottom: calc(100% + 2px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	border: 6px solid transparent;
	border-top-color: #1e293b;
	opacity: 0;
	pointer-events: none;
	z-index: 10000;
	transition: opacity .18s ease,transform .18s ease;
}

[data-tooltip]:hover::after,[data-tooltip]:hover::before,
[data-tooltip]:focus-visible::after,[data-tooltip]:focus-visible::before {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

[data-tooltip].copied::after,[data-tooltip].copied::before {
	display: none;
}

@media (hover:none) {
	[data-tooltip]::after,[data-tooltip]::before {
		display: none;
	}
}

/* ============ HERO 2 ============ */
.page-hero {
	padding: 130px 1.25rem 56px;
	background: var(--bg-section);
	border-bottom: 1px solid var(--border-light);
	position: relative;
	overflow: hidden;
}

.page-hero .container {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 3rem;
	align-items: center;
}


.page-hero h1 {
	font-size: clamp(2rem,4.5vw,2.9rem);
	font-weight: 700;
	letter-spacing: -.03em;
	margin-bottom: 1rem;
	line-height: 1.15;
}

.page-hero h1 .accent-word {
	color: var(--accent);
}

/* ============ LAYOUT ============ */
main {
	flex: 1;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 48px 24px;
	position: relative;
	z-index: 1;
}

.page-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

.content-top {
	order: 1;
	min-width: 0;
}

.content-bottom {
	order: 3;
	min-width: 0;
}

.page-sidebar {
	order: 2;
	display: block;
	margin: 0 auto;
	max-width: 100%;
}

@media (min-width:1024px) {
	.page-row {
		grid-template-columns: 1fr 300px;
		grid-template-areas: "content-top sidebar" "content-bottom sidebar";
		gap: 48px;
	}

	.content-top {
		grid-area: content-top;
	}

	.content-bottom {
		grid-area: content-bottom;
	}

	.page-sidebar {
		grid-area: sidebar;
		display: block;
		position: sticky;
		top: 90px;
		align-self: start;
		margin: 0;
		order: 0;
	}
}

/* ============ КОМПОНЕНТЫ ГЕНЕРАТОРА ============ */
.card {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 18px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.04);
	transition: box-shadow var(--transition),border-color var(--transition);
}

.card:hover {
	box-shadow: var(--shadow-md);
	border-color: var(--accent-soft);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(2,1fr);
	gap: 1rem;
	margin-bottom: 1.5rem;
}

@media (min-width:640px) {
	.stats-grid {
		grid-template-columns: repeat(4,1fr);
	}
}

.stat-item {
	background: var(--bg-section);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-sm);
	padding: 1rem;
	text-align: center;
	transition: transform var(--transition),border-color var(--transition);
}

.stat-item:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
}

.stat-value {
	font-family: var(--font-mono);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--accent);
	line-height: 1;
	margin-bottom: .25rem;
}

.stat-label {
	font-size: .8rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: .05em;
}

.tf-label {
	display: block;
	font-size: .8rem;
	font-weight: 700;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-bottom: .5rem;
}

.tf-input,.tf-select {
	width: 100%;
	padding: .75rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	font-size: .95rem;
	font-family: var(--font-mono);
	color: var(--text);
	background: var(--bg-card);
	transition: all var(--transition);
	outline: none;
}

.tf-input:focus,.tf-select:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-glow);
}

.tf-select {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 1rem;
	cursor: pointer;
}

html[data-theme="dark"] .tf-select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238b949e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .85rem 1.5rem;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
	background: linear-gradient(135deg,var(--accent) 0%,var(--accent-dark) 100%);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all var(--transition);
	box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px var(--accent-glow);
	filter: brightness(1.05);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .6rem 1rem;
	font-weight: 600;
	font-size: .85rem;
	color: var(--text-secondary);
	background: var(--bg-section);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: all var(--transition);
}

.btn-secondary:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: var(--accent-soft);
}

.mode-toggle {
	display: inline-flex;
	background: var(--bg-section);
	border-radius: var(--radius-sm);
	padding: .25rem;
	gap: .25rem;
	border: 1px solid var(--border);
}

.mode-btn {
	padding: .5rem 1rem;
	border: none;
	background: transparent;
	border-radius: 8px;
	font-size: .85rem;
	font-weight: 600;
	color: var(--text-secondary);
	cursor: pointer;
	transition: all var(--transition);
	font-family: inherit;
}

.mode-btn.active {
	background: var(--bg-card);
	color: var(--text);
	box-shadow: var(--shadow-sm);
}

.catalog-tabs {
	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	gap: .25rem;
	padding: .5rem .75rem;
	border-bottom: 1px solid var(--border);
	align-items: center;
	scrollbar-width: none;
}

.catalog-tabs::-webkit-scrollbar {
	display: none;
}

.catalog-tabs .mode-btn {
	padding: .3rem .5rem;
	font-size: .75rem;
	white-space: nowrap;
	flex-shrink: 0;
}

.catalog-tabs .mode-btn span.cat-count {
	font-size: .6rem!important;
	padding: .02rem .2rem!important;
	margin-left: .15rem!important;
	font-weight: 700!important;
	border-radius: 99px!important;
	background: var(--accent-soft)!important;
	color: var(--accent)!important;
}

.chip-container {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.tf-chip {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .4rem .8rem;
	border: 1px solid var(--border);
	border-radius: 99px;
	font-size: .8rem;
	font-family: var(--font-mono);
	color: var(--text-secondary);
	background: var(--bg-card);
	cursor: pointer;
	transition: all var(--transition);
	user-select: none;
}

.tf-chip:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: var(--accent-soft);
	transform: translateY(-2px);
}

.tf-chip.sel {
	border-color: var(--accent);
	color: #fff;
	background: var(--accent);
	font-weight: 600;
}

.settings-group {
	background: var(--bg-section);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-sm);
	padding: 1.25rem;
	margin-bottom: 1rem;
}

.settings-group-title {
	display: flex;
	align-items: center;
	gap: .5rem;
	font-size: .85rem;
	font-weight: 700;
	color: var(--text);
	margin-bottom: 1rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid var(--border);
}

.settings-group-title i {
	color: var(--accent);
	font-size: .9rem;
}

/* ============ РЕЗУЛЬТАТЫ / КАТАЛОГ / ИСТОРИЯ ============ */
.results-area {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--border);
}

.results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	flex-wrap: wrap;
	gap: .75rem;
}

.results-title {
	font-size: .85rem;
	font-weight: 700;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: .05em;
}

.tf-result-item {
	background: var(--bg-section);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 1rem;
	transition: all .3s ease;
	animation: slideUp .3s ease forwards;
	opacity: 0;
	transform: translateY(10px);
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.tf-result-item:hover {
	border-color: var(--accent);
	background: var(--accent-soft);
}

@keyframes slideUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.result-main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}

.result-text {
	font-family: var(--font-mono);
	font-size: .95rem;
	color: var(--text);
	word-break: break-all;
	flex: 1;
	line-height: 1.5;
}

.result-text .domain {
	color: var(--accent);
}

.result-actions {
	display: flex;
	gap: .4rem;
	flex-shrink: 0;
}

.action-btn {
	width: 34px;
	height: 34px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--bg-card);
	color: var(--text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all .2s;
	font-size: .85rem;
}

.action-btn:hover {
	border-color: var(--accent);
	color: var(--accent);
	background: var(--accent-soft);
}

.action-btn.copied {
	border-color: var(--accent);
	color: #fff!important;
	background: var(--accent);
}

.result-pwd {
	font-family: var(--font-mono);
	font-size: .8rem;
	color: var(--warn);
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem .75rem;
	background: rgba(245,158,11,.08);
	border-radius: 8px;
	cursor: pointer;
	transition: all .2s;
}

.result-pwd:hover {
	background: rgba(245,158,11,.15);
	color: var(--accent);
}

.domain-list {
	max-height: 450px;
	overflow-y: auto;
	overflow-x: hidden;
}

.domain-row {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr auto;
	gap: .5rem;
	padding: .75rem 1rem;
	border-bottom: 1px solid var(--border-light);
	align-items: center;
	font-size: .85rem;
	transition: background .15s;
	cursor: pointer;
}

.domain-name,.domain-cat,.domain-row>span:nth-child(3) {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.domain-row:last-child {
	border-bottom: none;
}

.domain-row:hover {
	background: var(--accent-soft);
}

.domain-name {
	font-family: var(--font-mono);
	font-weight: 600;
	color: var(--text);
}

.domain-cat {
	font-size: .8rem;
	font-weight: 600;
}

.domain-actions {
	display: flex;
	gap: .4rem;
	flex-shrink: 0;
}

.history-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: .75rem 1.5rem;
	border-bottom: 1px solid var(--border-light);
	cursor: pointer;
	transition: color .2s;
	font-family: var(--font-mono);
	font-size: .85rem;
	color: var(--text-secondary);
}

.history-item:hover {
	color: var(--accent);
	background: var(--accent-soft);
}

.history-item:last-child {
	border-bottom: none;
}

.ad-banner {
	width: 300px;
	max-width: 100%;
	height: 250px;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	font-weight: 600;
	box-shadow: var(--shadow-sm);
	margin: 0 auto;
	gap: .5rem;
}

@media (min-width:1024px) {
	.ad-banner {
		height: 600px;
		width: 300px;
	}
}

/* ============ TOAST / DROPDOWN ============ */
.tf-toast-container {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	pointer-events: none;
}

.tf-toast {
	background: var(--bg-card);
	border: 1px solid var(--accent);
	border-radius: var(--radius-sm);
	padding: .85rem 1.25rem;
	color: var(--text);
	font-size: .9rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: .75rem;
	box-shadow: var(--shadow-md);
	animation: toastIn .3s ease,toastOut .3s ease 2.2s forwards;
	min-width: 250px;
	backdrop-filter: blur(10px);
	pointer-events: auto;
}

@keyframes toastIn {
	from {
		opacity: 0;
		transform: translateX(50px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes toastOut {
	to {
		opacity: 0;
		transform: translateX(50px);
	}
}

.dropdown-wrapper {
	position: relative;
	display: inline-block;
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-md);
	padding: .5rem;
	min-width: 200px;
	z-index: 100;
	list-style: none;
	display: none;
	margin-top: .5rem;
}

.dropdown-menu.show {
	display: block;
	animation: fadeIn .2s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.dropdown-item {
	display: block;
	padding: .6rem 1rem;
	color: var(--text);
	text-decoration: none;
	border-radius: 8px;
	font-size: .85rem;
	transition: background .2s;
}

.dropdown-item:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

/* ============ SEO-СЕКЦИЯ ============ */
.seo-section h2 {
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--text);
	margin: 2.5rem 0 1rem;
	padding-top: .5rem;
}

.seo-section h2:first-child {
	margin-top: 0;
}

.seo-section h3 {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text);
	margin: 1.5rem 0 .75rem;
}

.seo-section p {
	color: var(--text-secondary);
	margin-bottom: 1rem;
	line-height: 1.75;
}

.seo-section ul {
	color: var(--text-secondary);
	margin-bottom: 1.5rem;
	padding-left: 1.5rem;
}

.seo-section li {
	margin-bottom: .5rem;
	line-height: 1.65;
}

.seo-section strong {
	color: var(--text);
}

.seo-section code {
	font-family: var(--font-mono);
	font-size: .85em;
	background: var(--bg-section);
	padding: .15em .4em;
	border-radius: 4px;
	border: 1px solid var(--border-light);
}

.seo-section .warning-box {
	background: rgba(239,68,68,.08);
	border: 1px solid rgba(239,68,68,.3);
	border-radius: var(--radius-sm);
	padding: 1rem;
	margin: 1.5rem 0;
	color: var(--danger);
	font-weight: 500;
	display: flex;
	gap: .75rem;
	align-items: flex-start;
}

.seo-section .warning-box i {
	margin-top: .2rem;
	flex-shrink: 0;
}

.seo-section .info-box {
	background: var(--accent-soft);
	border: 1px solid rgba(59,130,246,.2);
	border-radius: var(--radius-sm);
	padding: 1rem;
	margin: 1.5rem 0;
	color: var(--text-secondary);
	display: flex;
	gap: .75rem;
	align-items: flex-start;
}

.seo-section .info-box i {
	margin-top: .2rem;
	flex-shrink: 0;
	color: var(--accent);
}

.provider-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
	gap: .75rem;
	margin: 1.25rem 0 1.5rem;
}

.provider-pill {
	display: flex;
	align-items: center;
	gap: .6rem;
	background: var(--bg-section);
	border: 1px solid var(--border-light);
	border-radius: 12px;
	padding: .8rem 1rem;
	transition: all var(--transition);
	cursor: default;
}

.provider-pill:hover {
	border-color: var(--accent);
	transform: translateY(-3px);
	box-shadow: var(--shadow-sm);
}

.provider-pill i {
	color: var(--accent);
	font-size: 1.1rem;
}

.provider-pill .p-name {
	font-family: var(--font-mono);
	font-size: .85rem;
	font-weight: 600;
	color: var(--text);
}

.provider-pill .p-sub {
	font-size: .7rem;
	color: var(--text-muted);
	display: block;
}


/* ============ FAQ ============ */
.faq-item {
	margin-bottom: 12px;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	transition: all .3s ease;
}

.faq-item:hover {
	box-shadow: 0 5px 15px rgba(0,0,0,.05);
}

.faq-question {
	padding: 18px 22px;
	background: var(--bg-card);
	border: none;
	width: 100%;
	text-align: left;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--text);
	font-size: 1rem;
	transition: background .3s ease;
	gap: 12px;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}

.faq-question:hover {
	background: var(--bg-section);
}

.faq-toggle {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--text-secondary);
	transition: transform .3s ease;
}

.faq-item.active .faq-toggle {
	transform: rotate(180deg);
	color: var(--accent);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	padding: 0 22px;
	transition: max-height .3s ease,padding .3s ease;
}

.faq-item.active .faq-answer {
	max-height: 600px;
	padding: 20px 22px 24px;
}

.faq-answer p {
	color: var(--text-secondary);
	font-size: .95rem;
	line-height: 1.7;
	margin: 0;
}


/* ============ КНОПКИ ОЧИСТКИ ИНПУТОВ (×) ============ */
.clear-input-btn {
	position: absolute;
	right: .65rem;
	top: 50%;
	transform: translateY(-50%);
	width: 28px;
	height: 28px;
	border: none;
	background: var(--bg-section);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--text-muted);
	transition: all .2s ease;
	z-index: 2;
	padding: 0;
}

.clear-input-btn:hover {
	background: var(--danger);
	color: #fff;
	transform: translateY(-50%) scale(1.08);
}

.clear-input-btn svg {
	pointer-events: none;
}

.chip-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: rgba(239,68,68,.15);
	color: var(--danger);
	cursor: pointer;
	margin-left: .35rem;
	transition: all .2s ease;
	border: none;
	padding: 0;
	flex-shrink: 0;
}

.chip-remove:hover {
	background: var(--danger);
	color: #fff;
	transform: scale(1.15);
}

.chip-remove svg {
	pointer-events: none;
	width: 10px;
	height: 10px;
}

/* ============ ДОП. ============ */
@keyframes input-shake {
	0%,100% {
		transform: translateX(0);
	}

	20%,60% {
		transform: translateX(-4px);
	}

	40%,80% {
		transform: translateX(4px);
	}
}

.tf-input.input-error,.tf-select.input-error {
	border-color: var(--danger)!important;
	box-shadow: 0 0 0 4px rgba(239,68,68,.15)!important;
	animation: input-shake .4s ease;
}

.bulk-mode-only {
	display: none;
}

body.mode-bulk .bulk-mode-only {
	display: block;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: 4px;
}

@media (max-width:768px) {
	main {
		padding: 40px 16px;
	}

	.card {
		border-radius: 14px;
	}
}

@media print {
	.navbar,.footer,.copyright,.page-sidebar,.offcanvas-overlay,.offcanvas-panel,.progress-wrap,.page-hero,.bg-ambient {
		display: none!important;
	}

	body {
		background: #fff;
		color: #000;
	}

	main {
		padding: 0;
	}

	.card {
		box-shadow: none;
		border: none;
	}
}


/* ================================================================
   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 {
	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;
}

@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);
}

.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;
}

.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;
}

@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;
	}
}

/* ================================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ (<=1024px)
   ================================================================ */

/* === ПЛАНШЕТЫ (<=1024px) === */
@media (max-width: 1024px) {
    .navbar .wrapper {
        padding: 0 1rem;
    }

    .hero-two {
        padding: 110px 1rem 40px;
    }

    .hero-two .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-two-subtitle,
    .hero-feature {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-disclaimer {
        justify-content: center;
        text-align: left;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    /* СКРЫВАЕМ hero-demo в вертикальном виде */
    .hero-demo {
        display: none;
    }

    main {
        padding: 32px 16px;
    }

    .page-row {
        gap: 24px;
    }

    /* Sidebar — не sticky на планшетах */
    .page-sidebar {
        position: static !important;
        top: auto !important;
        margin: 0 auto;
        max-width: 400px;
    }

    .ad-banner {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }
}

/* === МОБИЛЬНЫЕ УСТРОЙСТВА (<=768px) === */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    body {
        font-size: 15px;
    }

    /* Навбар */
    .navbar {
        padding: 0.6rem 0;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .brand-icon {
        width: 22px;
        height: 22px;
    }

    /* Hero секция */
    .hero-two {
        padding: 95px 1rem 32px;
    }

    .hero-two h1 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-bottom: 0.75rem;
    }

    .hero-two-badge {
        font-size: 0.72rem;
        padding: 0.3rem 0.75rem;
        margin-bottom: 0.9rem;
    }

    .hero-two-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .hero-disclaimer {
        font-size: 0.8rem;
        padding: 0.5rem 0.85rem;
        margin-bottom: 1rem;
    }

    .hero-feature {
        gap: 0.4rem;
        margin-top: 1rem;
    }

    .hero-feature li {
        font-size: 0.75rem;
        padding: 0.35rem 0.75rem;
    }

    /* Генератор — основная карточка */
    #generator {
        padding: 20px 16px !important;
        border-radius: 14px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .stat-item {
        padding: 0.85rem 0.5rem;
    }

    .stat-value {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    /* Группы настроек */
    .settings-group {
        padding: 1rem;
        margin-bottom: 0.85rem;
    }

    .settings-group-title {
        font-size: 0.8rem;
        margin-bottom: 0.85rem;
        padding-bottom: 0.65rem;
    }

    /* Сетки в настройках — в одну колонку на мобильных */
    .settings-group > div > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    /* Режим генерации — сделать кнопки более крупными */
    .mode-toggle {
        padding: 0.2rem;
        width: 100%;
    }

    .mode-btn {
        padding: 0.65rem 0.75rem;
        font-size: 0.85rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Инпуты и селекты — увеличенная область нажатия */
    .tf-input,
    .tf-select {
        padding: 0.85rem 0.9rem;
        font-size: 1rem;
        min-height: 48px;
    }

    .tf-label {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    /* Кнопка генерации */
    .btn-primary {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 52px;
    }

    /* Слайдер длины */
    #lenR {
        min-height: 44px;
    }

    /* Чекбоксы */
    input[type="checkbox"],
    input[type="radio"] {
        width: 1.3em !important;
        height: 1.3em !important;
        min-width: 20px;
        min-height: 20px;
        cursor: pointer;
    }

    /* Чипсы доменов */
    .chip-container {
        gap: 0.4rem;
    }

    .tf-chip {
        padding: 0.45rem 0.7rem;
        font-size: 0.78rem;
        min-height: 36px;
    }

    /* Результаты генерации */
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .results-header > div {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }

    .results-header .btn-secondary {
        flex: 1;
        min-width: calc(50% - 0.25rem);
        justify-content: center;
        min-height: 40px;
    }

    .tf-result-item {
        padding: 0.85rem;
    }

    .result-main {
        flex-direction: column;
        gap: 0.5rem;
    }

    .result-text {
        font-size: 0.88rem;
    }

    .result-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .action-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    /* Каталог доменов */
    #catalog > div:first-child {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
        padding: 1rem 1.25rem !important;
    }

    #catalog h2 {
        font-size: 1.1rem;
    }

    #domSrch {
        max-width: 100% !important;
        width: 100%;
    }

    .catalog-tabs {
        padding: 0.4rem 0.5rem;
        gap: 0.2rem;
    }

    .catalog-tabs .mode-btn {
        padding: 0.35rem 0.6rem;
        font-size: 0.72rem;
    }

    /* Адаптация строк каталога доменов */
    .domain-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.25rem 0.5rem;
        padding: 0.85rem 1rem;
    }

    .domain-name {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        font-size: 0.88rem;
    }

    .domain-cat {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        font-size: 0.72rem;
        opacity: 0.7;
    }

    .domain-row > span:nth-child(3) {
        display: none;
    }

    .domain-actions {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }

    /* История */
    .history-item {
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
    }

    /* SEO секция */
    .seo-section {
        padding: 1.5rem 1.25rem !important;
    }

    .seo-section h2 {
        font-size: 1.25rem;
    }

    .seo-section h3 {
        font-size: 1rem;
    }

    .seo-section p {
        font-size: 0.9rem;
    }

    .seo-section li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .provider-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .provider-pill {
        padding: 0.65rem 0.75rem;
        gap: 0.5rem;
    }

    .provider-pill .p-name {
        font-size: 0.8rem;
    }

    /* FAQ */
    .faq-question {
        padding: 14px 16px;
        font-size: 0.95rem;
        min-height: 48px;
    }

    .faq-answer {
        padding: 0 16px;
    }

    .faq-item.active .faq-answer {
        padding: 14px 16px 18px;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }

    /* Sidebar и реклама */
    .page-sidebar {
        order: 4;
        margin: 0 auto;
        max-width: 100%;
    }

    .ad-banner {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 200px;
        padding: 1.5rem;
    }

    /* Футер */
    .footer {
        padding: 32px 0 24px;
    }

    .footer-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-col > p {
        font-size: 0.88rem;
    }

    .footer-links a {
        font-size: 0.9rem;
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    /* Кнопка "наверх" */
    .progress-wrap {
        right: 16px;
        bottom: 20px;
        width: 42px;
        height: 42px;
    }

    /* Toast уведомления */
    .tf-toast-container {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .tf-toast {
        min-width: auto;
        width: 100%;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    /* Offcanvas панель */
    .offcanvas-panel {
        width: 85%;
        max-width: 320px;
    }

    .offcanvas-link {
        padding: 14px 20px;
        font-size: 0.95rem;
        min-height: 48px;
    }
}

/* === МАЛЕНЬКИЕ МОБИЛЬНЫЕ (<=480px) === */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    /* Ещё компактнее навбар */
    .navbar-brand span {
        font-size: 0.9rem;
    }

    /* Hero */
    .hero-two {
        padding: 90px 0.75rem 28px;
    }

    .hero-two h1 {
        font-size: clamp(1.4rem, 6vw, 1.9rem);
    }

    .hero-two-badge {
        font-size: 0.68rem;
        padding: 0.25rem 0.65rem;
    }

    .hero-two-subtitle {
        font-size: 0.88rem;
    }

    .hero-disclaimer {
        font-size: 0.78rem;
        padding: 0.45rem 0.75rem;
    }

    .hero-feature li {
        font-size: 0.7rem;
        padding: 0.3rem 0.65rem;
    }

    /* Генератор */
    #generator {
        padding: 16px 12px !important;
    }

    .stats-grid {
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.7rem 0.4rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 0.03em;
    }

    .settings-group {
        padding: 0.85rem;
    }

    .settings-group-title {
        font-size: 0.75rem;
    }

    .mode-btn {
        padding: 0.55rem 0.5rem;
        font-size: 0.8rem;
    }

    /* Кнопки экспорта — в 2 колонки */
    .results-header .btn-secondary {
        min-width: calc(50% - 0.25rem);
        font-size: 0.78rem;
        padding: 0.55rem 0.65rem;
        gap: 0.25rem;
    }

    /* Доменные чипсы — более компактные */
    .tf-chip {
        padding: 0.35rem 0.6rem;
        font-size: 0.72rem;
    }

    /* Каталог — компактные строки */
    .domain-row {
        padding: 0.75rem 0.85rem;
    }

    .domain-name {
        font-size: 0.82rem;
    }

    .domain-cat {
        font-size: 0.68rem;
    }

    /* FAQ */
    .faq-question {
        padding: 12px 14px;
        font-size: 0.9rem;
    }

    /* SEO */
    .seo-section {
        padding: 1.25rem 1rem !important;
    }

    .seo-section h2 {
        font-size: 1.15rem;
        margin: 1.75rem 0 0.75rem;
    }

    .provider-grid {
        grid-template-columns: 1fr;
    }

    /* История — компактные элементы */
    .history-item {
        padding: 0.55rem 0.85rem;
        font-size: 0.75rem;
    }

    /* Предупреждающие и информационные блоки */
    .warning-box,
    .info-box {
        padding: 0.85rem;
        font-size: 0.88rem;
    }

    /* Dropdown меню */
    .dropdown-menu {
        min-width: 180px;
        right: 0;
        left: auto;
    }

    .dropdown-item {
        padding: 0.55rem 0.85rem;
        font-size: 0.8rem;
        min-height: 40px;
        display: flex;
        align-items: center;
    }

    /* Реклама на мобильных */
    .ad-banner {
        min-height: 180px;
        padding: 1.25rem;
    }
}

/* === ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (<=360px) === */
@media (max-width: 360px) {
    html {
        font-size: 13px;
    }

    .navbar-brand span {
        font-size: 0.85rem;
    }

    .hero-two h1 {
        font-size: 1.45rem;
    }

    .hero-feature li {
        font-size: 0.65rem;
        padding: 0.25rem 0.55rem;
    }

    #generator {
        padding: 14px 10px !important;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .mode-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.4rem;
    }

    .tf-input,
    .tf-select {
        padding: 0.75rem 0.75rem;
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .results-header .btn-secondary {
        font-size: 0.72rem;
        padding: 0.5rem 0.5rem;
    }

    .domain-row {
        padding: 0.65rem 0.75rem;
    }

    .faq-question {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* === ГОРИЗОНТАЛЬНАЯ ОРИЕНТАЦИЯ МОБИЛЬНЫХ === */
@media (max-width: 900px) and (orientation: landscape) {
    .hero-two {
        padding: 80px 1rem 24px;
    }

    .hero-two h1 {
        font-size: 1.8rem;
    }

    /* Показываем demo в горизонтальном режиме */
    .hero-demo {
        display: block;
    }

    .hero-two .container {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 1.5rem;
    }

    .hero-feature li {
        font-size: 0.72rem;
    }

    .demo-card {
        transform: none;
    }

    #generator {
        padding: 24px 20px !important;
    }

    /* Sidebar в сторону в ландшафте */
    .page-row {
        grid-template-columns: 1fr 280px;
        grid-template-areas: "content-top sidebar" "content-bottom sidebar";
    }

    .page-sidebar {
        grid-area: sidebar;
        position: sticky;
        top: 80px;
    }

    .ad-banner {
        width: 280px;
        height: 500px;
    }
}

/* === iOS SAFE AREA === */
@supports (padding: max(0px)) {
    .navbar {
        padding-top: max(0.8rem, env(safe-area-inset-top));
    }

    .footer {
        padding-bottom: max(40px, env(safe-area-inset-bottom));
    }

    .copyright {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .progress-wrap {
        bottom: max(40px, env(safe-area-inset-bottom));
    }

    .tf-toast-container {
        bottom: max(1.5rem, env(safe-area-inset-bottom));
    }

    .offcanvas-panel {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* === DARK MODE ДЛЯ МОБИЛЬНЫХ === */
@media (max-width: 768px) {
    html[data-theme="dark"] .domain-row:hover {
        background: rgba(56, 139, 253, 0.08);
    }

    html[data-theme="dark"] .tf-result-item:hover {
        background: rgba(56, 139, 253, 0.08);
    }
}

/* === УЛУЧШЕНИЯ ДЛЯ TOUCH-УСТРОЙСТВ === */
@media (hover: none) and (pointer: coarse) {
    /* Убираем hover-эффекты */
    .nav-links > li > a:hover,
    .nav-links > li > button:hover {
        transform: none;
    }

    .btn-primary:hover {
        transform: none;
    }

    /* Увеличиваем области нажатия */
    button,
    a,
    [role="button"],
    .tf-chip,
    .faq-question,
    .history-item,
    .domain-row {
        min-height: 44px;
        -webkit-tap-highlight-color: rgba(59, 130, 246, 0.1);
    }

    /* Активное состояние при нажатии */
    button:active,
    a:active,
    [role="button"]:active,
    .tf-chip:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }

    /* Отключаем выделение текста на кнопках */
    button,
    .tf-chip,
    .mode-btn,
    .faq-question {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* === УМЕНЬШЕННАЯ АНИМАЦИЯ === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-two h1,
    .hero-two-subtitle {
        opacity: 1;
        transform: none;
    }
}

/* === RETINA === */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}