/* ===================== */
/* 1. CSS VARIABLES */
/* ===================== */
:root {
/* Palette - Modern Clean */
--text-primary: #1d1d1f;
--text-secondary: #86868b;
--accent1: #0071e3;
--accent-hover: #0077ed;
--surface-glass: rgba(255, 255, 255, 0.75);
--border-light: rgba(0, 0, 0, 0.06);

/* Colors */
--primary: #000;
--secondary: #333;
--light: #f8f9fa;
--dark: #212529;
--gray: #6c757d;
--light-gray: #e9ecef;
--accent: #4361ee;
--accent-light: #748ffc;

/* Backgrounds */
--hero-bg: #ffffff;
--bg-body: #ffffff;
--bg-secondary: #f5f5f7;

/* Spacing */
--spacing-xs: 0.25rem;
--spacing-sm: 0.5rem;
--spacing-md: 1rem;
--spacing-lg: 1.5rem;
--spacing-xl: 2rem;
--spacing-xxl: 3rem;

/* Transitions */
--transition-fast: 0.2s;
--transition-normal: 0.3s;
--transition-slow: 0.5s;

/* Shadows */
--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
--shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
--shadow-xl: 0 10px 30px rgba(0, 0, 0, 0.18);
--shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.12);

/* Easing */
--ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
--apple-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===================== */
/* 2. BASE STYLES */
/* ===================== */
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
color: var(--dark);
background-color: #fff;
line-height: 1.7;
overflow-x: hidden;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
font-weight: 700;
letter-spacing: -0.02em;
}

/* ===================== */
/* 3. ANIMATIONS */
/* ===================== */
@keyframes fadeInDown {
from { opacity: 0; transform: translateY(-30px); }
to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
0% { transform: translateY(0) rotate(0deg); }
50% { transform: translateY(-15px) rotate(2deg); }
100% { transform: translateY(0) rotate(0deg); }
}

@keyframes spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}

/* ===================== */
/* 4. COMPONENTS */
/* ===================== */
/* Фоновый паттерн */
.gradient-bg {
position: relative;
background-color: var(--bg-body);
background-image:
radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
radial-gradient(circle at 70% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
}

/* --- Buttons --- */
.btn {
position: relative;
overflow: hidden;
transition: all var(--transition-normal) ease;
font-weight: 600;
letter-spacing: 0.3px;
display: inline-flex;
align-items: center;
justify-content: center;
}

.btn:focus, .btn:active { outline: none; box-shadow: none !important; }

.btn-primary {
background-color: var(--primary);
border: none;
padding: 12px 30px;
font-weight: 600;
border-radius: 4px;
transition: all var(--transition-normal);
}
.btn-primary:hover {
background-color: #333;
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.btn-dark {
background: linear-gradient(135deg, var(--primary), #1a1a1a);
border: none;
padding: 14px 32px;
font-weight: 600;
border-radius: 14px;
transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
line-height: 1.5;
position: relative;
overflow: hidden;
}

.btn-dark::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
transition: left 0.6s ease;
}

.btn-dark:hover {
background: linear-gradient(135deg, #1a1a1a, var(--primary));
box-shadow: 0 15px 35px rgba(0,0,0,0.2);
transform: translateY(-3px);
}

.btn-dark:hover::before { left: 100%; }
.btn-dark:active { transform: translateY(1px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

.btn-outline-dark {
border: 2px solid var(--primary);
color: var(--primary);
background-color: transparent;
padding: 14px 32px;
font-weight: 600;
border-radius: 14px;
transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
position: relative;
overflow: hidden;
line-height: 1.5;
}

.btn-outline-dark::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background-color: var(--primary);
transition: left 0.3s ease;
z-index: -1;
}

.btn-outline-dark:hover {
color: var(--light);
box-shadow: 0 10px 30px rgba(0,0,0,0.15);
transform: translateY(-2px);
}

.btn-outline-dark:hover::before { left: 0; }

/* Navbar specific buttons */
.navbar .btn-outline-dark {
padding: 8px 20px;
line-height: 1.5;
display: inline-flex;
align-items: center;
background: transparent;
border: 1px solid var(--light-gray);
border-radius: 8px;
font-size: 1rem;
font-weight: 700;
color: var(--dark);
transition: all var(--transition-normal) ease;
gap: 6px;
min-width: 100px;
height: auto;
}
.navbar .btn-outline-dark:hover { border-color: var(--primary); color: var(--light); box-shadow: none; }
.navbar .btn-outline-dark:focus { color: var(--light); outline: none; box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.2); }

/* --- Icons --- */
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
svg.icon {
display: inline-block;
vertical-align: middle;
fill: currentColor;
flex-shrink: 0;
width: 1em; /* Размер зависит от размера шрифта родителя */
height: 1em; /* Позволяет иконке масштабироваться как тексту */
}
.navbar-brand .icon { margin-right: -8px; }
.nav-link .icon { margin-right: 2px; vertical-align: -0.15em; }
.btn .icon { margin-right: 6px; vertical-align: -0.2em; display: inline-block; }
.btn-dark .icon, .btn-outline-dark .icon { vertical-align: middle; }

.hero-icon { width: 48px; height: 48px; margin-bottom: 15px; fill: var(--primary); }
.section-icon { width: 36px; height: 36px; margin-right: 15px; fill: var(--primary); vertical-align: middle; }
.social-icon { width: 24px; height: 24px; fill: #adb5bd; transition: fill 0.2s; }
.social-icon:hover { fill: #fff; }
.page-nav .icon { margin-right: 6px; vertical-align: -0.15em; }

/* --- Navigation & Offcanvas --- */
.navbar {
background-color: rgba(255, 255, 255, 0.86);
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;
}
.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-brand {
font-weight: 800; letter-spacing: -0.5px;
display: flex; align-items: center; gap: 10px;
transition: transform var(--transition-normal) ease;
color: var(--dark); font-size: 1.5rem; text-decoration: none;
}
.navbar-brand:hover { transform: translateY(-2px); }

.navbar-nav { align-items: center; }
.navbar .nav-item { display: flex; align-items: center; }
.navbar .nav-link {
font-size: 0.95rem; font-weight: 700; padding: 8px 16px; display: flex; align-items: center;
position: relative; overflow: hidden;
}
.navbar .nav-link::before {
content: ""; position: absolute; bottom: 4px; left: 0; width: 0; height: 2px;
background-color: var(--primary); transition: width var(--transition-normal) ease; opacity: 0;
}
.navbar .nav-link:hover::before { width: 100%; opacity: 1; }
.navbar .nav-link.dropdown-toggle::after { transition: transform var(--transition-normal) ease; }
.navbar .nav-link.dropdown-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }

/* Dropdown */
.dropdown-large { position: static !important; }
.dropdown-menu-large {
padding: 16px 0; min-width: 800px; max-width: 1000px;
background: rgba(255, 255, 255, 0.98);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}
.dropdown-menu-large .dropdown-header {
color: var(--accent); text-align: center; font-size: 18px; font-weight: 700;
padding: 5px 20px; margin-bottom: 8px; border-bottom: 1px solid var(--light-gray);
}
.dropdown-menu-large .list-unstyled { padding: 0; margin: 0; }
.dropdown-menu-large .list-unstyled li a {
display: block; text-align: center; padding: 6px 20px;
color: var(--secondary); white-space: normal; transition: all var(--transition-fast) ease;
}
.dropdown-menu-large .list-unstyled li a:hover,
.dropdown-menu-large .list-unstyled li a:focus {
text-decoration: none; color: var(--primary); background-color: var(--light); padding-left: 24px;
}

/* Hamburger */
.hamburger {
width: 24px; height: 18px; position: relative;
display: flex; flex-direction: column; justify-content: space-between; cursor: pointer;
}
.hamburger span {
display: block; width: 100%; height: 2.5px; background-color: var(--primary);
border-radius: 1px; transition: all var(--transition-normal) ease; transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.navbar-toggler { border: none; background: transparent; padding: 0; outline: none; box-shadow: none !important; }
.navbar-toggler .navbar-toggler-icon { display: none; }

/* Offcanvas */
.offcanvas { max-width: 80%; width: 280px; }
.offcanvas-body { padding: 1rem 1rem; }
.offcanvas .nav-link, .offcanvas .btn { min-height: 48px; border-radius: 8px; }
.offcanvas .nav-link {
padding: 6px 14px; font-size: 1.05rem; color: var(--secondary);
display: flex; align-items: center; justify-content: center; text-align: center;
width: 100%; transition: background-color var(--transition-fast) ease, color var(--transition-fast) ease;
}
.offcanvas .nav-link.active { color: var(--primary); font-weight: 600; }
.offcanvas .nav-link:hover, .offcanvas .nav-link:focus { background-color: var(--light); color: var(--primary); }
.offcanvas .btn-outline-dark {
display: flex; align-items: center; justify-content: center; text-align: center;
gap: 8px; font-weight: 600; border-width: 2px; width: 100%; margin: 0 auto;
}
.offcanvas-divider {
width: 100%; padding: 8px 0 4px; font-size: 0.9rem; color: var(--gray);
text-align: center; border-bottom: 1px solid var(--light-gray); margin: 16px 0 8px;
}

/* --- Forms --- */
.contact-form {
background-color: #fff;
border: 1px solid var(--light-gray);
border-radius: 8px;
padding: 30px;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.form-group { margin-bottom: 20px; }
.form-group label { font-weight: 600; margin-bottom: 8px; color: var(--secondary); }
.form-control, .form-select {
border: 1px solid var(--light-gray);
border-radius: 4px;
padding: 10px 15px;
font-size: 1rem;
transition: all var(--transition-normal);
}
.form-control:focus, .form-select:focus {
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
}

/* ===================== */
/* 5. LAYOUT & SECTIONS */
/* ===================== */

/* --- Section Titles --- */
.section-title {
position: relative; padding-bottom: 15px; margin-bottom: 0px;
text-align: center; color: var(--primary);
}
.section-title:after {
content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
width: 80px; height: 3px; background-color: var(--primary);
}
.section-title::before {
position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
font-size: clamp(4rem, 15vw, 10rem); font-weight: 900; color: rgba(0, 0, 0, 0.07);
z-index: 0; white-space: nowrap; letter-spacing: -0.01em;
}
.section-title span { position: relative; z-index: 1; }

/* Specific Section Background Texts */
#features .section-title::before { content: "ВОЗМОЖНОСТИ"; }
#how-to-use .section-title::before { content: "ИНСТРУКЦИЯ"; }
#testimonials .section-title::before { content: "ОТЗЫВЫ"; }
.seo-section .section-title::before { content: "TEXTREPEATER.RU"; }

/* --- Hero Section (UPDATED PROFESSIONAL BACKGROUND) --- */
.hero-section {
position: relative;
background-color: #ffffff;
padding: 100px 0 80px;
overflow: hidden;
}

/* 1. Refined Grid Background */
.hero-pattern {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
background-size: 60px 60px;
z-index: 0;
mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 100%);
-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 0%, transparent 100%);
}

.hero-container { position: relative; z-index: 2; }

/* 2. Professional Gradient Overlay (Above Grid) */
.hero-pattern::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background:
radial-gradient(ellipse at 50% 0%, rgba(67, 97, 238, 0.12) 0%, transparent 60%),
radial-gradient(circle at 0% 0%, rgba(0, 113, 227, 0.06) 0%, transparent 40%),
radial-gradient(circle at 100% 0%, rgba(119, 73, 248, 0.06) 0%, transparent 40%),
linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 100%);
z-index: 0;
pointer-events: none;
}

/* 3. Wireframe Decorations */
.hero-decoration {
position: absolute;
z-index: 1;
pointer-events: none;
}

.hero-decoration-1 {
bottom: 10%;
left: 5%;
width: 100px;
height: 100px;
opacity: 0.5;
animation: float 12s ease-in-out infinite;
border: none;
background: none;
}

.hero-decoration-1::before,
.hero-decoration-1::after {
display: none;
}

.hero-decoration-1 svg {
width: 100%;
height: 100%;
overflow: visible;
}

.hero-decoration-2 {
bottom: 20%;
right: 5%;
width: 100px;
height: 100px;
border: 1px dashed rgba(0, 113, 227, 0.3);
border-radius: 4px;
opacity: 0.5;
animation: float 10s ease-in-out infinite reverse;
transform: rotate(15deg);
}

.hero-badge {
display: inline-flex; align-items: center;
background: rgba(255, 255, 255, 0.9);
border: 1px solid rgba(67, 97, 238, 0.15);
color: var(--accent); padding: 8px 16px; border-radius: 50px;
font-size: 0.875rem; font-weight: 600; margin-bottom: 20px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
animation: fadeInDown 0.8s ease-out;
backdrop-filter: blur(5px);
}
.hero-badge .icon { margin-right: 8px; }

.hero-title {
font-size: 3.8rem; font-weight: 800; color: var(--primary); line-height: 1.1;
animation: fadeInUp 0.8s ease-out 0.2s both;
max-width: 90%; margin: 0 auto; margin-bottom: 24px; position: relative;
letter-spacing: -0.03em;
}

.hero-title::before {
content: "TEXTREPEATER.RU"; position: absolute; top: 50%; left: 50%;
transform: translate(-50%, -50%); font-size: clamp(3rem, 10vw, 10rem); font-weight: 900;
color: rgba(0, 0, 0, 0.03); z-index: -1; white-space: nowrap; letter-spacing: 0.05em;
}
.hero-subtitle {
font-size: 1.25rem; font-weight: 400; margin-bottom: 40px; max-width: 90%;
color: var(--secondary); margin-left: auto; margin-right: auto; line-height: 1.7;
animation: fadeInUp 0.8s ease-out 0.4s both;
}
.hero-subtitle br { display: block; content: ""; margin-top: 0.5rem; }

.hero-features {
display: flex; justify-content: center; gap: 40px; margin-bottom: 45px;
animation: fadeInUp 0.8s ease-out 0.6s both; flex-wrap: wrap;
}
.hero-feature { display: flex; align-items: center; color: var(--secondary); font-size: 1rem; font-weight: 500; }
.hero-feature .icon { width: 22px; height: 22px; margin-right: 10px; color: var(--accent); }

.hero-buttons {
display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
animation: fadeInUp 0.8s ease-out 0.8s both;
}

/* --- Feature Cards --- */
.feature-card {
background: #fff; border-radius: 0; border: 1px solid var(--light-gray);
transition: all 0.3s; height: 100%; padding: 30px; text-align: center;
}
.feature-card:hover {
transform: translateY(-10px); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08); border-color: var(--primary);
}
.feature-icon { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

/* --- Testimonials Section --- */
.testimonials-section { background-color: #f8f9fa; padding: 80px 0; }
.testimonial-card {
background: #fff; border-radius: 10px; padding: 30px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); height: 320px;
display: flex; flex-direction: column; transition: all 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
.testimonial-header { display: flex; align-items: center; margin-bottom: 20px; flex-shrink: 0; }
.testimonial-avatar { width: 60px; height: 60px; border-radius: 50%; margin-right: 15px; object-fit: cover; }
.testimonial-info h4 { margin: 0; font-size: 1.1rem; color: var(--primary); }
.testimonial-info .position { color: var(--gray); font-size: 0.9rem; }
.testimonial-rating { color: #ffc107; margin-bottom: 15px; flex-shrink: 0; }
.testimonial-text { font-style: italic; color: var(--secondary); line-height: 1.6; flex-grow: 1; }

.testimonial-carousel { max-width: 900px; margin: 0 auto; position: relative; padding-bottom: 60px; }
.carousel-indicators {
position: absolute; bottom: -50px; left: 0; right: 0; margin: 0 auto;
width: auto; display: flex; justify-content: center;
}
.carousel-indicators [data-bs-target] {
background-color: var(--accent); width: 8px; height: 8px;
border-radius: 50%; margin: 0 6px; opacity: 0.5; transition: all 0.3s;
}
.carousel-indicators .active { width: 40px; height: 7px; border-radius: 10px; opacity: 1; }

.carousel-control-prev, .carousel-control-next {
position: absolute; top: 50%; transform: translateY(-50%);
width: 50px; height: 50px; background-color: var(--accent);
border-radius: 50%; opacity: 0.8; z-index: 10;
display: flex; align-items: center; justify-content: center;
}
.carousel-control-prev { left: -25px; }
.carousel-control-next { right: -25px; }
.carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; }

/* --- Pages Layout (Generic) --- */
.page-hero-section {
background: linear-gradient(to bottom, #fff 0%, #f8f9fa 100%);
padding: 60px 0 40px; border-bottom: 1px solid var(--light-gray);
}
.page-hero-title {
font-size: 2.5rem; font-weight: 800; margin-bottom: 20px;
color: var(--dark); text-align: center;
}
.page-hero-subtitle {
font-size: 1.1rem; font-weight: 400; margin: 0 auto 25px;
max-width: 800px; color: var(--secondary); text-align: center;
}

.page-container { padding: 50px 0; }
.page-sidebar {
position: sticky; top: 100px; background: #fff; border: 1px solid var(--light-gray);
border-radius: 8px; padding: 25px; height: fit-content;
}
.page-sidebar h3 { font-size: 1.2rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--primary); }
.page-nav { list-style: none; padding: 0; margin: 0; }
.page-nav li { margin-bottom: 12px; }
.page-nav a {
display: flex; align-items: center; padding: 8px 12px;
color: var(--secondary); text-decoration: none; border-radius: 4px; transition: all 0.2s;
}
.page-nav a:hover { background-color: var(--light); color: var(--primary); padding-left: 16px; }
.page-nav a.active { background-color: var(--primary); color: #fff; font-weight: 600; }

.page-content { padding-right: 30px; }
.page-section { margin-bottom: 50px; }
.page-section h2 { font-size: 1.8rem; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid var(--light-gray); color: var(--primary); }
.page-section h3 { font-size: 1.4rem; margin-top: 30px; margin-bottom: 15px; color: var(--secondary); }
.page-section p { margin-bottom: 15px; }
.page-section ul, .page-section ol { margin-bottom: 20px; padding-left: 20px; }
.page-section li { margin-bottom: 8px; }
.page-section .highlight { background-color: rgba(0, 0, 0, 0.05); padding: 2px 5px; border-radius: 3px; font-weight: 600; }

/* --- Code Styles --- */
.code-block {
background-color: var(--light); padding: 15px;
border-left: 3px solid var(--primary);
font-family: monospace; font-size: 0.9rem;
margin: 15px 0; white-space: pre-line;
}

/* --- FAQ Section --- */
.faq-category { margin-bottom: 50px; }
.faq-category h2 { font-size: 1.8rem; margin-bottom: 25px; padding-bottom: 10px; border-bottom: 2px solid var(--light-gray); color: var(--primary); }
.faq-item {
margin-bottom: 20px; background: #fff; border: 1px solid var(--light-gray);
border-radius: 8px; overflow: hidden; transition: all 0.3s;
}
.faq-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.faq-question {
padding: 20px 25px; background: #fff; font-weight: 600; cursor: pointer;
display: flex; justify-content: space-between; align-items: center;
color: var(--primary); transition: background 0.3s;
}
.faq-question:hover { background-color: var(--light); }
.faq-answer { padding: 0 25px; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.faq-item.active .faq-answer { padding: 0 25px 25px 25px; max-height: 500px; }
.faq-toggle { transition: transform 0.3s; font-size: 1.2rem; }
.faq-item.active .faq-toggle { transform: rotate(180deg); }
.faq-search { margin-bottom: 30px; position: relative; }
.faq-search input {
width: 100%; padding: 12px 45px 12px 15px; border: 1px solid var(--light-gray);
border-radius: 50px; font-size: 1rem; transition: all 0.3s;
}
.faq-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,0,0,0.1); }
.faq-search button {
position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
background: none; border: none; color: var(--gray); cursor: pointer; padding: 8px;
}
.faq-search button:hover { color: var(--primary); }

/* --- SEO Section --- */
.seo-section { background-color: #fff; padding: 80px 0; border-top: 1px solid #e9ecef; }
.seo-content { max-width: 900px; margin: 0 auto; }
.seo-section h2 { font-size: 2.5rem; margin-bottom: 30px; color: var(--primary); }
.seo-section h3 { font-size: 1.75rem; margin-top: 40px; margin-bottom: 20min px; color: var(--secondary); }
.seo-section p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }
.seo-section ul { margin-bottom: 30px; padding-left: 20px; }
.seo-section li { margin-bottom: 10px; font-size: 1.1rem; line-height: 1.7; }
.seo-section .highlight { background-color: rgba(0, 0, 0, 0.05); padding: 2px 5px; border-radius: 3px; font-weight: 600; }

/* ===== HOW IT WORKS SECTION ===== */
.how-to-step { display: flex; margin-bottom: 20px; align-items: flex-start; position: relative; }
.step-number {
min-width: 40px; height: 40px; background-color: var(--primary); color: white;
display: flex; align-items: center; justify-content: center;
font-size: 1.2rem; font-weight: 700; margin-right: 30px; flex-shrink: 0; border-radius: 50%;
}

/* --- Footer (UPDATED PROFESSIONAL BACKGROUND) --- */
.footer {
position: relative;
color: #212529;
padding: 60px 0 10px;
background-color: #ffffff;
overflow: hidden;
}

/* Footer Grid Pattern */
.footer::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image:
linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
background-size: 40px 40px;
z-index: 0;
pointer-events: none;
/* Fade out grid towards the bottom */
mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
-webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

/* Footer Top Glow - Matching Hero style */
.footer::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 200px;
background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(67, 97, 238, 0.08) 0%, transparent 100%);
z-index: 0;
pointer-events: none;
}

/* Ensure content is above background */
.footer .container {
position: relative;
z-index: 1;
}

.footer-title {
color: #212529; font-size: 1.1rem; font-weight: 600; text-transform: uppercase;
margin-bottom: 20px; position: relative; padding-bottom: 8px;
}
.footer-title::after { content: ""; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background-color: var(--accent); }
.footer p { color: #212529; font-size: 1rem; line-height: 1.6; margin-bottom: 0.25rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #212529; text-decoration: none; transition: color 0.3s ease; display: inline-block; }
.footer-links a:hover { color: #4361ee; }
.footer-links .arrow-icon { margin-right: 2px; font-size: 0.9rem; color: var(--accent); width: 16px; height: 16px; vertical-align: middle; }

.copyright {
background: #212529; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.1);
position: relative; padding: 20px 0 15px; margin-top: 20px;
}
.copyright p { margin: 0; font-size: 1rem; color: #fff; }

/* ===================== */
/* 6. UTILITIES */
/* ===================== */
.divider { height: 1px; background-color: var(--light-gray); margin: 50px 0; }

.progress-wrap {
position: fixed; right: 22px; bottom: 39px; 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;
}

/* ===================== */
/* 7. RESPONSIVE DESIGN */
/* ===================== */

/* Extra large Device (includes 1425px and wider) */
@media (min-width: 1400px) {
.section-title::before { font-size: 10rem; }
.hero-title::before { font-size: 10rem; }
.dropdown-menu-large { left: 50% !important; transform: translateX(-50%) !important; right: auto !important; }
}

/* Desktop Device (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
.section-title::before { font-size: 8rem; }
.hero-title::before { font-size: 8rem; }
.dropdown-menu-large { left: 50% !important; transform: translateX(-50%) !important; right: auto !important; }
.desktop-language-selector { margin-left: 15px; }
.mobile-language-selector { display: none !important; }
.footer-links { justify-content: flex-start; }
}

/* Desktop Device (992px - 1199px) -> Includes 1024px */
@media (min-width: 992px) and (max-width: 1199px) {
.hero-title::before { font-size: 8rem; }
.section-title::before { font-size: 7.5rem; letter-spacing: -0.5px; }
.section-title::before { font-size: 7.5rem; letter-spacing: -0.5px; }
.seo-section .section-title::before { font-size: 7.5rem; letter-spacing: -0.5px; }
.navbar-brand { font-size: 1.25rem !important; }
.navbar .nav-link { padding: 6px 8px !important; font-size: 0.85rem !important; }
.navbar .btn-outline-dark { padding: 6px 12px !important; font-size: 0.85rem !important; min-width: auto !important; }
#share_this { width: auto !important; padding: 8px !important; font-size: 0; }
#share_this .icon { font-size: 1rem !important; margin: 0 !important; width: 18px; height: 18px; }
.dropdown-menu-large { left: 50% !important; transform: translateX(-50%) !important; right: auto !important; }
.desktop-language-selector { margin-left: 10px; }
.mobile-language-selector { display: none !important; }
.footer-links { justify-content: flex-start; }
}

/* Medium devices (tablets, < 992px) */
@media (max-width: 991px) {
.page-sidebar { position: relative; top: 0; margin-bottom: 30px; }
.page-content { padding-right: 0; }
.desktop-language-selector { display: none !important; }
.hero-badge { font-size: 0.8rem; }
.settings-sidebar { padding-right: 8px; }
}

/* Mobile & Tab */
@media (min-width: 768px) and (max-width: 991px) {
.section-title::before { font-size: 5.5rem; }
.hero-title::before { font-size: 6.5rem; }
.hero-title { font-size: 2.8rem; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.15rem; margin-bottom: 30px; }
.hero-features { flex-direction: row; gap: 25px 40px; justify-content: center; }
.hero-feature { width: 45%; justify-content: flex-start; }
.hero-buttons { flex-direction: row; justify-content: center; gap: 15px; }
.btn-dark, .btn-outline-dark { width: auto; min-width: 220px; padding: 12px 24px; font-size: 1rem; }
.footer .col-md-6 { display: flex; flex-direction: column; margin-bottom: 30px; }
.footer-links { display: flex; flex-direction: column; gap: 5px; }
.carousel-control-prev { left: 10px; }
.carousel-control-next { right: 10px; }
.testimonial-card { height: 360px; }
.faq-category h2 { font-size: 1.5rem; }
.settings-sidebar { padding-right: 8px; }
}

/* Mobile Device */
@media (max-width: 767px) {
.navbar-brand { font-weight: 800; letter-spacing: -0.6px; font-size: 1.4rem; }
.container-fluid { padding-left: 12px; padding-right: 12px; }

/* Hide tech decorations on mobile for clean look */
.hero-decoration { display: none; }
.hero-badge { font-size: 0.8rem; }
.hero-section { padding: 60px 0 40px; text-align: center; }
.hero-title { font-size: 2rem; margin-bottom: 20px; }
.hero-title::before { display: none; }
.hero-subtitle { font-size: 1rem; margin-bottom: 25px; margin-left: auto; margin-right: auto; }

/* Transparent clean grid for mobile */
.hero-pattern {
mask-image: none;
-webkit-mask-image: none;
opacity: 0.7;
}

.d-flex.flex-wrap { justify-content: center; gap: 10px; }
.hero-features { flex-direction: column; gap: 20px; margin-bottom: 30px; }
.hero-feature { text-align: center; justify-content: center; }

.hero-buttons { flex-direction: column; align-items: center; gap: 15px; }
.btn-dark, .btn-outline-dark { width: 180px; margin-left: 0; margin-top: 0; }

.feature-card { margin-bottom: 20px; text-align: center; padding: 20px; }
.feature-icon { font-size: 2rem; }
.section-title { margin-bottom: 30px; }
.section-title::before { font-size: 3.5rem; letter-spacing: 1px; }
section { padding: 40px 0; }

/* Testimonials Mobile */
.testimonial-carousel { padding-bottom: 100px; }
.carousel-indicators { bottom: 0; margin-bottom: 10px; }
.carousel-control-prev, .carousel-control-next {
top: auto; bottom: -60px; width: 40px; height: 40px; opacity: 1;
transform: none; position: absolute;
}
.carousel-control-prev { right: auto; left: calc(50% - 45px); }
.carousel-control-next { left: 50%; right: auto; transform: translateX(5px); }
.carousel-control-prev-icon, .carousel-control-next-icon {
width: 18px; height: 18px; display: inline-block; background-image: none !important;
}
.carousel-control-prev-icon::before {
content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
border-top: 2px solid white; border-left: 2px solid white;
transform: translate(-50%, -50%) rotate(-45deg);
}
.carousel-control-next-icon::before {
content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
border-top: 2px solid white; border-right: 2px solid white;
transform: translate(-50%, -50%) rotate(45deg);
}
.testimonial-card { height: auto; min-height: 380px; padding: 25px; }
.testimonial-avatar { width: 50px; height: 50px; }

/* Page Content Mobile */
.page-section h2 { font-size: 1.5rem; }

/* Footer Mobile */
.footer { padding: 30px 0 20px; }
/* Remove mask on mobile footer for clean look */
.footer::before {
mask-image: none;
-webkit-mask-image: none;
opacity: 0.5;
}
.footer-links { flex-direction: column; align-items: center; gap: 10px; }
.footer .col-md-6 { margin-bottom: 15px; }

/* Scroll Top Mobile */
.progress-wrap { right: 15px; bottom: 25px; width: 40px; height: 40px; }
.progress-wrap::after, .progress-wrap::before { line-height: 40px; font-size: 20px; height: 40px; width: 40px; }

/* Language Mobile */
.mobile-language-selector { margin-right: 5px; }
.mobile-language-selector .language-dropdown { min-width: 85px; padding: 8px 10px; font-size: 0.85rem; }
.mobile-language-selector .language-menu { right: -10px; min-width: 150px; }
.mobile-language-selector .language-option { padding: 12px 15px; }
}

/* Small Mobile (< 576px) */
@media (max-width: 576px) {
.navbar-brand { font-weight: 800; letter-spacing: -0.9px; font-size: 1.3rem; }
.hero-badge { font-size: 0.7rem; padding: 0.2rem 0.8rem; }
.hero-title { font-size: 2rem; }
.hero-title::before { font-size: 3.5rem; letter-spacing: 1px; }
.hero-subtitle { font-size: 1rem; }

.btn-dark, .btn-outline-dark { padding: 14px 28px; font-size: 0.95rem; width: 270px; }

h3 { font-size: 1.2rem; }
.section-title { font-size: 1.5rem; }

.seo-content { padding: 0 15px; }
.seo-section h2 { font-size: 1.8rem; }
.seo-section h3 { font-size: 1.3rem; }
.seo-section p, .seo-section li { font-size: 1rem; }

.testimonials-section { padding: 60px 0; }
.testimonial-card { min-height: 390px; padding: 20px; }
.testimonial-text { font-size: 0.95rem; }
.carousel-indicators { bottom: 0; }
.section-title::before { display: none; }

.language-dropdown { min-width: 80px; padding: 6px 8px; font-size: 0.8rem; }
.language-menu { min-width: 140px; }
.language-option { padding: 10px 12px; }

/* Testimonials Small Mobile */
.testimonial-carousel { padding-bottom: 90px; }
.carousel-control-prev, .carousel-control-next { bottom: -55px; width: 36px; height: 36px; }
.carousel-control-prev { left: calc(50% - 40px); }
.carousel-control-next { transform: translateX(4px); }
}


/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
.hero-title {
font-size: 1.8rem;
}
.hero-subtitle {
font-size: 0.9rem;
}
.hero-badge {
font-size: 0.7rem;
padding: 0.25rem 0.75rem;
}
.hero-feature {
font-size: 0.75rem;
}
.hero-buttons .btn {
font-size: 0.9rem;
padding: 0.5rem 1rem;
}
.editor-toolbar .btn {
padding: 0.25rem 0.4rem;
font-size: 0.75rem;
}
.editor-toolbar .btn svg {
width: 14px;
height: 14px;
}
.split-pane textarea {
font-size: 12px;
padding: 0.6rem;
}
.pane-footer .btn {
padding: 0.25rem;
}
.pane-footer .btn svg {
width: 14px;
height: 14px;
}
.editor-actions-panel .btn-wave {
padding: 0.4rem 1rem;
font-size: 0.85rem;
}
.settings-card .form-check-label {
font-size: 0.8rem;
}
}

/* Extra Small Screens (< 400px) */
@media (max-width: 400px) {
.navbar-brand { font-size: 1.2rem; }
.hero-badge { font-size: 0.7rem; padding: 0.25rem 0.75rem; }
.hero-title::before { font-size: 2.8rem; }
.section-title::before { display: none; }
}

/* Special Cases */
@media (min-width: 576px) {
.progress-wrap.active-progress { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
.progress-wrap { transition: none; }
.progress-wrap::after { transition: none; }
}