/* ===== THEME VARIABLES ===== */
:root {
    --bg: #FAF8F3;
    --bg-section: #F0EBE0;
    --bg-card: #FFFFFF;
    --text-primary: #1A2E2A;
    --text-secondary: #5C6B66;
    --accent: #0F766E;
    --accent-hover: #0d635c;
    --kpi: #B45309;
    --border: #E2E0D9;
    --shadow: rgba(26, 46, 42, 0.08);
    --shadow-hover: rgba(15, 118, 110, 0.15);
    --hero-gradient: linear-gradient(135deg, rgba(15, 118, 110, 0.06) 0%, transparent 50%);
    --nav-bg: rgba(250, 248, 243, 0.95);
    --transition: all 0.3s ease;
    --btn-text: #000000;
}

[data-theme="dark"] {
    --bg: #0F1419;
    --bg-section: #161B22;
    --bg-card: #1A2129;
    --text-primary: #E8EDF2;
    --text-secondary: #95A3B3;
    --accent: #2DD4BF;
    --accent-hover: #14b8a6;
    --kpi: #FBBF24;
    --border: #2A3441;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(45, 212, 191, 0.2);
    --hero-gradient: linear-gradient(135deg, rgba(45, 212, 191, 0.08) 0%, transparent 50%);
    --nav-bg: rgba(15, 20, 25, 0.95);
    --btn-text: #000000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Убираем синюю обводку при клике на кнопки */
button:focus,
.theme-toggle:focus,
a:focus {
    outline: none !important;
}

/* Правильный фокус для клавиатуры (для доступности, чтобы люди без мышки видели, куда нажимают) */
button:focus-visible,
.theme-toggle:focus-visible {
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 20px var(--shadow);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease;
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
.logo img {
    height: 44px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}
.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(15deg);
}
.nav-cta {
    padding: 0.6rem 1.2rem;
    background: var(--accent);
    color: var(--btn-text);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}
/* ===== BLOG LINKS (десктоп, в шапке) ===== */
.blog-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0 0.5rem;
}
.blog-link {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: var(--bg-section);
    border: 1px solid var(--border);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}
.blog-link:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
}
.blog-link.tg:hover { color: #26A5E4; border-color: #26A5E4; }
.blog-link.vk:hover { color: #0077FF; border-color: #0077FF; }
.blog-link.yt:hover { color: #FF0000; border-color: #FF0000; }

/* ===== BLOG LINKS (мобильное меню, в бургере) ===== */
.mobile-blog-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
}
.mobile-blog-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-section);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}
.mobile-blog-links a:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
}
.mobile-blog-links a.tg:hover { color: #26A5E4; border-color: #26A5E4; }
.mobile-blog-links a.vk:hover { color: #0077FF; border-color: #0077FF; }
.mobile-blog-links a.yt:hover { color: #FF0000; border-color: #FF0000; }

/* ===== HERO ===== */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: clamp(5rem, 7vw, 7rem) 2rem clamp(2.5rem, 4vw, 3.5rem);
    position: relative;
    overflow: hidden;
    background: var(--hero-gradient);
}
.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 3vw, 3.5rem);
    align-items: center;
}
.hero-content {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 1.2vw, 1.25rem);
}
.hero-subtitle {
    color: var(--accent);
    font-size: clamp(0.75rem, 0.9vw, 0.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hero-title {
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
}
.hero-description {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.65;
}
.hero-description strong {
    color: var(--accent);
    font-weight: 600;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.6rem, 1vw, 1.25rem);
    margin-top: 0.5rem;
}
.hero-stat {
    text-align: left;
    padding: clamp(0.75rem, 1.2vw, 1.15rem);
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.hero-stat:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}
.hero-stat-value {
    font-size: clamp(1.15rem, 1.5vw, 1.6rem);
    font-weight: 800;
    color: var(--kpi);
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
    white-space: nowrap;
}
.hero-stat-label {
    font-size: clamp(0.7rem, 0.85vw, 0.85rem);
    color: var(--text-secondary);
    line-height: 1.3;
}
.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.75rem, 1vw, 1rem) clamp(1.25rem, 1.8vw, 1.75rem);
    background: var(--accent);
    color: var(--btn-text);
    border: none;
    border-radius: 8px;
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.3);
}
.cta-button:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(15, 118, 110, 0.4);
}
.cta-button.outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: none;
}
.cta-button.outline:hover {
    background: var(--accent);
    color: white;
}
.hero-image {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}
.hero-image img.hero-photo {
    width: 100%;
    max-width: clamp(260px, 26vw, 380px);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow);
    border: 3px solid var(--border);
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* --- Быстрые ссылки в Hero --- */
.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
.quick-links-label {
    color: var(--text-secondary);
    font-weight: 500;
}
.hero-quick-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--accent);
    transition: var(--transition);
}
.hero-quick-links a:hover {
    border-bottom-style: solid;
    color: var(--accent-hover);
}
.hero-quick-links .dot {
    color: var(--border);
    font-weight: bold;
}

/* ===== HERO SPEECH BUBBLE ===== */
.hero-speech {
    position: absolute;
    top: 10%;
    right: 0;
    max-width: 220px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 20px;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 30px var(--shadow);
    z-index: 2;
    animation: bubbleIn 0.6s ease-out 1s both;
}
.hero-speech::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 14px solid var(--accent);
}
.hero-speech::before {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 33px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 11px solid var(--bg-card);
    z-index: 1;
}
.hero-speech-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0.6rem;
}
.hero-speech-btn {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    background: var(--accent);
    color: var(--btn-text);
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    width: 100%;
}
.hero-speech-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}
@keyframes bubbleIn {
    0% { opacity: 0; transform: scale(0.7) translateY(20px); }
    60% { transform: scale(1.05) translateY(0); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== HERO TRUST ===== */
.hero-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.hero-trust-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.hero-trust-circles {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-trust-circle {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    overflow: hidden;
    flex-shrink: 0;
}
.hero-trust-circle:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}
.hero-trust-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* ===== SECTIONS ===== */
section {
    padding: clamp(3rem, 5vw, 5rem) 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
.section-title {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    text-align: center;
    color: var(--text-primary);
}
.section-title span { color: var(--accent); }
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    margin-bottom: clamp(2rem, 3vw, 2.75rem);
}

/* ===== SCROLL PROMPT ===== */
.scroll-prompt {
    text-align: center;
    padding: 1rem 2rem;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.scroll-arrow {
    font-size: 1.1rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ===== QUIZ CTA ===== */
.quiz-cta {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--bg-section), var(--bg-card));
    border: 2px dashed var(--accent);
    border-radius: 20px;
    text-align: center;
}
.quiz-cta h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}
.quiz-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* ===== CASES ===== */
.cases-section {
    background: var(--bg-section);
    max-width: 100%;
    padding: 6rem 2rem;
}
.cases-section > div {
    max-width: 1400px;
    margin: 0 auto;
}
.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
.case-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: clamp(1.25rem, 2vw, 2.25rem);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}
.case-card.featured {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(15, 118, 110, 0.03) 100%);
}
.case-card:hover {
    box-shadow: 0 20px 40px var(--shadow-hover);
    transform: translateY(-5px);
}
.case-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--kpi);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.case-company {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.case-context {
    font-style: italic;
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}
.case-more-link {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
    transition: var(--transition);
}
.case-more-link:hover {
    border-bottom-style: solid;
}
.cases-footer {
    text-align: center;
    margin-top: 2.5rem;
}
.case-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}
.case-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.case-kpi-item {
    text-align: center;
}
.case-kpi-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--kpi);
    display: block;
    line-height: 1;
    margin-bottom: 0.3rem;
}
.case-kpi-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.case-visualizations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
}
.case-visualization-item {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: var(--transition);
}
.case-visualization-item:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 25px var(--shadow-hover);
}
.case-visualization-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    background: rgba(15, 118, 110, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}
.case-visualization-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}
.case-visualization-item img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: block;
    margin-bottom: 0.75rem;
}
.case-visualization-caption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.case-details {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
}
.case-details.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.case-block {
    margin-bottom: 1.25rem;
}
.case-block-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}
.case-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.case-block p strong {
    color: var(--text-primary);
}
.case-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.case-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-family: inherit;
}
.case-btn-details {
    background: var(--bg-section);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.case-btn-details:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.case-btn-details .arrow {
    display: inline-block;
    margin-left: 4px;
}
.case-btn-cta {
    background: linear-gradient(90deg, var(--accent), var(--kpi), var(--accent));
    background-size: 200% 100%;
    color: var(--btn-text);
    animation: shimmer 3s ease infinite;
    box-shadow: 0 5px 20px rgba(15, 118, 110, 0.3);
}
.case-btn-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.5);
}
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Before/After */
.before-after {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: clamp(0.75rem, 1.5vw, 1.5rem);
    align-items: center;
    margin: 1.25rem 0;
    padding: clamp(0.75rem, 1.2vw, 1.5rem);
    background: var(--bg-section);
    border-radius: 12px;
}
.before-after-item {
    text-align: center;
    min-width: 0;
}
.before-after-item img {
    width: 100%;
    height: auto;
    max-height: clamp(200px, 20vw, 300px);
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--border);
    margin-bottom: 0.5rem;
    display: block;
    background: var(--bg-card);
}
.before-after-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.28rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.before-after-label.was {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.before-after-label.became {
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent);
}
.before-after-caption {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.before-after-arrow {
    font-size: 1.75rem;
    color: var(--accent);
    font-weight: 800;
    line-height: 1;
}

/* ===== SERVICES ===== */
.services-section {
    background: var(--bg-section);
    max-width: 100%;
    padding: 6rem 2rem;
}
.services-section > div {
    max-width: 1400px;
    margin: 0 auto;
}
/* === ПЛАШКА "КАК ЭТО РАБОТАЕТ" === */
.how-it-works-banner {
    background: var(--bg-card);
    border: 2px dashed var(--accent);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.how-it-works-banner h3 {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.how-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.how-step-num {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.how-step-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.how-step-text strong {
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .how-steps {
        flex-direction: row;
        gap: 2rem;
    }
    .how-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
    }
}
.tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.tab-btn {
    padding: 0.8rem 1.8rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}
.tab-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.tab-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}
.services-grid {
    display: grid;
    /* Строго 3 колонки на десктопе */
    grid-template-columns: repeat(3, minmax(0, 1fr)); 
    gap: 1.5rem;
    align-items: stretch; /* Заставляет карточки в одном ряду быть одинаковой высоты */
}
.service-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: clamp(1.25rem, 1.8vw, 2rem);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-hover);
    border-color: var(--accent);
}
/* --- Эффект выделения услуги при скролле --- */
@keyframes highlight-card {
    0% { transform: scale(1); box-shadow: none; border-color: var(--border); }
    15% { transform: scale(1.04); box-shadow: 0 20px 40px var(--shadow-hover); border-color: var(--accent); z-index: 10; }
    85% { transform: scale(1.04); box-shadow: 0 20px 40px var(--shadow-hover); border-color: var(--accent); z-index: 10; }
    100% { transform: scale(1); box-shadow: none; border-color: var(--border); z-index: 1; }
}

.service-card.highlighted {
    animation: highlight-card 2.5s ease-in-out forwards;
    transition: none !important; 
}
.service-card.featured {
    border: 2px solid var(--kpi);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(180, 83, 9, 0.05) 100%);
}
.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.service-card.featured .service-icon {
    color: var(--kpi);
}
.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.service-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
}
.service-price-block {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}
.service-price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}
.service-price-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.service-price-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--accent);
}
.service-price-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
    line-height: 1.4;
}
.service-card.featured .service-price {
    color: var(--kpi);
}
.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--kpi);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}
.service-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1rem;
}
.service-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}
.service-list li i {
    color: var(--accent);
    font-size: 0.85rem;
    width: 16px;
    flex-shrink: 0;
}
.service-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.85rem 1.5rem;
    background: var(--accent);
    color: var(--btn-text);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
}
.service-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}
.service-btn i {
    transition: transform 0.3s ease;
}
.service-btn:hover i {
    transform: translateX(3px);
}
.service-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.4rem 0.9rem;
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

/* === БЕЙДЖИ ЭТАПОВ В УСЛУГАХ === */
.service-stage-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    align-self: flex-start; /* Прижимает бейдж влево в flex-контейнере */
}

/* Этап 1: Диагностика (Акцентный) */
.stage-1 {
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent);
    border: 1px solid rgba(15, 118, 110, 0.2);
}

/* Этап 2: Инструменты (Нейтральный) */
.stage-2 {
    background: var(--bg-section);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* Этап 3: Система (Золотой/Premium) */
.stage-3 {
    background: rgba(180, 83, 9, 0.08);
    color: var(--kpi);
    border: 1px solid rgba(180, 83, 9, 0.2);
}
/* === КОМПАКТНЫЕ КАРТОЧКИ УСЛУГ (ДЕСКТОП) === */
@media (min-width: 1025px) {
    .service-card {
        padding: 1.5rem; /* Уменьшаем отступы внутри карточек */
    }
    
    .service-icon {
        font-size: 2rem; /* Уменьшаем иконки */
        margin-bottom: 0.75rem;
    }
    
    .service-title {
        font-size: 1.15rem; /* Чуть уменьшаем заголовки */
        margin-bottom: 0.5rem;
    }
    
    .service-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .service-list li {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .service-price-value {
        font-size: 1.15rem; /* Аккуратные цены */
    }
}

/* ===== REVIEWS ===== */
.reviews-section {
    max-width: 100%;
    padding: 6rem 2rem;
}
.reviews-section > div {
    max-width: 1400px;
    margin: 0 auto;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.review-card:hover {
    border-color: var(--accent);
    box-shadow: 0 15px 30px var(--shadow-hover);
}
.review-quote {
    font-size: 3rem;
    line-height: 0.8;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}
.review-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex: 1;
}
.review-author {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.review-author-role {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}
.review-author-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.reviews-note {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== FAQ ===== */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
    overflow: hidden;
}
.faq-item:hover {
    border-color: var(--accent);
}
.faq-item[open] {
    border-color: var(--accent);
    box-shadow: 0 10px 25px var(--shadow-hover);
}
.faq-item summary {
    padding: 1.1rem 1.4rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
}
.faq-item[open] summary::after {
    content: '−';
    transform: rotate(180deg);
}
.faq-item summary:hover {
    color: var(--accent);
}
.faq-answer {
    padding: 0 1.4rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
    animation: fadeIn 0.3s ease;
}

/* ===== LEAD MAGNET ===== */
.lead-magnet-section {
    padding: 5rem 2rem;
    display: flex;
    justify-content: center;
}
.lead-magnet-card {
    max-width: 620px;
    width: 100%;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-section));
    border: 2px dashed var(--accent);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
}
.lead-magnet-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.lead-magnet-title {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.25;
}
.lead-magnet-title span {
    color: var(--accent);
}
.lead-magnet-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.lead-magnet-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.lead-magnet-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
}
.lead-magnet-btn:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}
.lead-magnet-btn i {
    font-size: 1.2rem;
}
.lead-magnet-btn.tg i { color: #26A5E4; }
.lead-magnet-btn.vk i { color: #0077FF; }
.lead-magnet-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 0.5rem;
}

/* ===== CONTACT MODAL ===== */
.contact-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.contact-modal-overlay.active {
    display: flex;
    opacity: 1;
}
.contact-modal {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    max-width: 440px;
    width: 100%;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalPop 0.3s ease;
}
@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.contact-modal h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.contact-modal-service {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.contact-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.contact-modal-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--border);
    background: var(--bg);
    color: var(--text-primary);
}
.contact-modal-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow);
}
.contact-modal-btn i {
    font-size: 1.3rem;
    width: 24px;
    text-align: center;
}
.contact-modal-btn.tg i { color: #26A5E4; }
.contact-modal-btn.wa i { color: #25D366; }
.contact-modal-btn.vk i { color: #0077FF; }
.contact-modal-btn.phone i { color: var(--accent); }
.contact-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-section);
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}
.contact-modal-close:hover {
    background: var(--accent);
    color: var(--btn-text);
    transform: rotate(90deg);
}

/* ===== QUIZ OVERLAY ===== */
.quiz-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.quiz-overlay.active {
    display: flex;
    opacity: 1;
}
.quiz-modal {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 560px;
    width: 100%;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
.quiz-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-section);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    font-family: inherit;
}
.quiz-close:hover {
    background: var(--accent);
    color: var(--btn-text);
    border-color: var(--accent);
    transform: rotate(90deg);
}
.quiz-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-section);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}
.quiz-progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0%;
}
.quiz-step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.4;
    padding-right: 40px;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.quiz-option {
    padding: 1rem 1.25rem;
    background: var(--bg-section);
    border: 2px solid transparent;
    border-radius: 10px;
    text-align: left;
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    line-height: 1.4;
}
.quiz-option:hover {
    border-color: var(--accent);
    background: rgba(15, 118, 110, 0.08);
    transform: translateX(5px);
}
.quiz-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.3s ease;
}
.quiz-back:hover { color: var(--accent); }
.quiz-result { text-align: center; }
.quiz-result-badge {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(15, 118, 110, 0.1);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}
.quiz-result h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.quiz-result p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.quiz-result-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.quiz-result-actions .cta-button {
    width: 100%;
    justify-content: center;
}
.quiz-result-alt {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
}
.quiz-result-alt p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* ===== CTA ===== */
.cta-section {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--bg-section), var(--bg));
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}
.cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.cta-title span { color: var(--accent); }
.cta-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.8rem;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.cta-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--shadow-hover);
}
.cta-link i { font-size: 1.2rem; }

/* ===== FOOTER ===== */
footer {
    background: var(--bg-section);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border);
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h4 {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}
.footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* ===== MOBILE BOTTOM BAR ===== */
.mobile-bottom-bar {
    display: none;
}
.mobile-menu-overlay {
    display: none;
}
.mobile-menu-panel {
    display: none;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .hero { padding: 6rem 1.5rem 3rem; }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero-image {
        order: -1;
    }
    .hero-image img.hero-photo {
        max-width: 300px;
    }
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    .hero-stat { padding: 1rem; }
    .hero-stat-value { font-size: 1.4rem; }
    section { padding: 4rem 1.5rem; }
    .cases-section { padding: 4rem 1.5rem; }
    .services-section { padding: 4rem 1.5rem; }
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .before-after {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .before-after-arrow {
        font-size: 0;
        padding: 0.5rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .before-after-arrow::before {
        content: '↓';
        font-size: 1.75rem;
        font-weight: 800;
        color: var(--accent);
        line-height: 1;
    }
    .before-after-item img {
        max-height: 260px;
    }
    .hero-speech {
        position: relative;
        top: auto;
        right: auto;
        max-width: 100%;
        margin-top: 1rem;
        animation: none;
    }
    .hero-speech::after,
    .hero-speech::before { display: none; }
    .quiz-cta { padding: 2rem 1.25rem; margin: 2rem 1rem; }
    .quiz-cta h3 { font-size: 1.2rem; }
    .case-visualizations { grid-template-columns: 1fr; }
    
    .hero-trust-circle {
    width: 40px;
    height: 40px;
    padding: 3px;
}
    .hero-trust-circles {
        gap: 0.5rem;
    }
    .hero-trust-label {
        font-size: 0.7rem;
    }
    
    .mobile-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: var(--bg-card);
        border-top: 1px solid var(--border);
        z-index: 9999;
        box-shadow: 0 -5px 20px var(--shadow);
    }
    .mobile-bar-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        background: transparent;
        border: none;
        color: var(--text-primary);
        text-decoration: none;
        font-size: 0.7rem;
        cursor: pointer;
        transition: var(--transition);
    }
    .mobile-bar-btn i {
        font-size: 1.2rem;
        color: var(--accent);
    }
    .mobile-bar-burger i {
        color: var(--kpi);
    }
    .mobile-bar-btn:hover {
        background: rgba(15, 118, 110, 0.05);
    }
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.6);
        z-index: 9997;
    }
    .mobile-menu-overlay.active {
        display: block;
    }
    .mobile-menu-panel {
        display: block;
        position: fixed;
        bottom: 65px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-top: 2px solid var(--accent);
        border-radius: 20px 20px 0 0;
        padding: 1.5rem 2rem 2rem;
        z-index: 9998;
        transform: translateY(100%);
        -webkit-transform: translateY(100%);
        transition: transform 0.3s ease;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 -10px 30px var(--shadow);
    }
    .mobile-menu-panel.active {
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }
    .mobile-menu-panel ul {
        list-style: none;
        padding: 0;
    }
    .mobile-menu-panel a {
        display: block;
        padding: 1rem 0;
        color: var(--text-primary);
        text-decoration: none;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border);
        transition: var(--transition);
    }
    .mobile-menu-panel a:hover {
        color: var(--accent);
        padding-left: 10px;
    }
        body {
        padding-bottom: 65px;
    }
    .blog-links {
        display: flex;
        gap: 0.35rem;
        flex: 1;
        justify-content: center;
        margin: 0 0.75rem;
    }
    .blog-link {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .case-kpi {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .before-after-item img {
        max-height: 220px;
    }
    .hero-trust-circle {
    width: 38px;
    height: 38px;
    padding: 3px;
}
    .hero-trust-circles {
        gap: 0.4rem;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .lead-magnet-card {
        padding: 2rem 1.25rem;
    }
    .lead-magnet-buttons {
        flex-direction: column;
    }
    .lead-magnet-btn {
        width: 100%;
        justify-content: center;
    }
    .faq-section {
        padding: 4rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 480px) {
    .blog-links {
        gap: 0.25rem;
        margin: 0 0.4rem;
    }
    .blog-link {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    header { padding: 0.75rem 1rem; }
    .logo { font-size: 1.2rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-description { font-size: 1rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .case-kpi { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .cta-link { width: 100%; justify-content: center; }
    .quiz-modal { padding: 1.5rem; }
    .quiz-step-title { font-size: 1.1rem; padding-right: 0; }
    .quiz-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
    .contact-modal {
        padding: 1.5rem;
    }
    .contact-modal h3 {
        font-size: 1.15rem;
    }
    .footer-grid { grid-template-columns: 1fr; }
}
/* ===== STORY WIDGET ===== */
.story-widget {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9997;
    font-family: 'Inter', sans-serif;
}

.story-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.35);
    transition: var(--transition);
    border: none;
    position: relative;
}
.story-icon.hidden { display: none; }
.story-widget.modal-open {
    z-index: 10001;
}
.story-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(15, 118, 110, 0.5);
}
.story-icon.has-pulse::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--kpi);
    animation: storyPulse 2s ease-in-out infinite;
}
@keyframes storyPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.story-card {
    position: relative;
    width: 340px;
    max-width: calc(100vw - 3rem);
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: storyIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.story-card.visible { display: flex; }
@keyframes storyIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.story-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-section);
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 5;
    padding: 0;
    line-height: 1;
    font-family: inherit;
}
.story-nav:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
}
.story-nav-prev { left: 0.4rem; }
.story-nav-next { right: 0.4rem; }
.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    gap: 0.5rem;
}
.story-header-label { display: flex; align-items: center; gap: 0.5rem; }
.story-header-label i { font-size: 1rem; }
.story-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}
.story-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg);
}

.story-body {
    padding: 1rem;
    max-height: 320px;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.story-body::-webkit-scrollbar { width: 6px; }
.story-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.story-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--border);
}
.story-line {
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
    opacity: 0;
    animation: storyLineIn 0.3s ease forwards;
}
@keyframes storyLineIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}
.story-speaker {
    font-weight: 700;
    color: var(--accent);
    margin-right: 0.35rem;
}
.story-footer {
    padding: 0.75rem 1rem;
    background: var(--bg-section);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}
.story-btn-full {
    flex: 1;
    padding: 0.7rem 1rem;
    background: var(--accent);
    color: var(--btn-text);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    text-decoration: none;
    text-align: center;
}
.story-btn-full:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.story-mobile-bubble {
    position: fixed;
    bottom: 90px;
    left: 1rem;
    max-width: calc(100vw - 5rem);
    background: var(--bg-card);
    border: 1.5px solid var(--accent);
    border-radius: 18px 18px 18px 4px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transform-origin: bottom left;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    cursor: pointer;
}
.story-mobile-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.story-mobile-bubble.cta {
    background: var(--accent);
    color: white;
    border-color: var(--accent-hover);
    font-weight: 600;
}
.story-mobile-bubble .bubble-speaker {
    font-weight: 700;
    color: var(--accent);
    margin-right: 0.3rem;
}
.story-mobile-bubble.cta .bubble-speaker { color: white; }

.story-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.story-overlay.visible {
    display: block;
    opacity: 1;
}

.story-card.mobile-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: calc(100vw - 2rem);
    max-width: 420px;
    max-height: 80vh;
    display: flex;
    background: var(--bg-card) !important;
    opacity: 1 !important;
}
.story-card.mobile-modal .story-body {
    max-height: 55vh;
}

@media (max-width: 1024px) {
    .story-widget { bottom: 80px; left: 1rem; }
}
@media (max-width: 600px) {
    .story-widget { bottom: 80px; left: 1rem; }
    .story-icon {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
    }
    .story-card:not(.mobile-modal) { display: none !important; }
}
/* === BLOG HERO === */
        .blog-hero {
            padding: 8rem 2rem 3rem;
            background: var(--hero-gradient);
            position: relative;
            overflow: hidden;
        }
        .blog-hero::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.08) 0%, transparent 50%);
            pointer-events: none;
        }
        .blog-hero-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }
        .blog-breadcrumbs {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
        }
        .blog-breadcrumbs a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .blog-breadcrumbs a:hover {
            color: var(--accent);
        }
        .blog-breadcrumbs .current {
            color: var(--text-primary);
        }
        .blog-hero-title {
            font-size: clamp(2rem, 4vw, 3rem);
            font-weight: 800;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
        }
        .blog-hero-subtitle {
            font-size: 1.1rem;
            color: var(--text-secondary);
            max-width: 600px;
        }

        /* === BLOG GRID === */
        .blog-section {
            padding: 4rem 2rem 6rem;
        }
        .blog-grid-container {
            max-width: 1200px;
            margin: 0 auto;
        }
        .blog-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.5rem;
        }

        /* === BLOG CARD === */
        .blog-card {
            display: flex;
            flex-direction: column;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            transition: all 0.3s ease;
        }
        .blog-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
            box-shadow: 0 15px 35px var(--shadow-hover);
        }
        .blog-card-image {
            aspect-ratio: 16/9;
            overflow: hidden;
            background: var(--bg-section);
        }
        .blog-card-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }
        .blog-card:hover .blog-card-image img {
            transform: scale(1.05);
        }
        .blog-card-body {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex: 1;
        }
        .blog-card-meta {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
            flex-wrap: wrap;
        }
        .blog-card-category {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            background: rgba(15, 118, 110, 0.1);
            color: var(--accent);
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .blog-card-date {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
        .blog-card-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.75rem;
            line-height: 1.35;
        }
        .blog-card-excerpt {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 1rem;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        .blog-card-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--accent);
            font-weight: 600;
            font-size: 0.9rem;
            margin-top: auto;
            transition: gap 0.3s ease;
        }
        .blog-card:hover .blog-card-link {
            gap: 0.75rem;
        }

        /* === RESPONSIVE: BLOG === */
        @media (max-width: 1024px) {
            .blog-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            .blog-hero {
                padding: 6rem 1.5rem 2rem;
            }
            .blog-grid {
                grid-template-columns: 1fr;
            }
            .blog-section {
                padding: 3rem 1.5rem 4rem;
            }
        }

        @media (max-width: 480px) {
            .blog-hero-title {
                font-size: 1.8rem;
            }
            .blog-hero-subtitle {
                font-size: 1rem;
            }
        }
/* === NAV ACTIVE === */
.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}
.nav-links a.active::after { width: 100%; }
/* ============================================
   ВРЕМЕННО СКРЫТ ВИДЖЕТ ДИАЛОГОВ
   Вернуть: удалить этот блок.
   ============================================ */
body .story-widget,
body .story-mobile-bubble,
body .story-overlay,
body #storyWidget,
body #storyMobileBubble,
body #storyOverlay {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* ============================================
   FLOATING ACTIONS (Цены + Резюме + Скролл)
   ============================================ */
.floating-actions {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    z-index: 9990;
}
.floating-service {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    background: var(--kpi);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(180, 83, 9, 0.35);
    white-space: nowrap;
}
.floating-service:hover {
    background: #9a4608;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(180, 83, 9, 0.5);
}
.floating-service i { font-size: 1.1rem; }
.floating-service-text { display: inline-block; }

.floating-resume {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.35);
    white-space: nowrap;
}
.floating-resume i { font-size: 1.1rem; }
.floating-resume:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(15, 118, 110, 0.5);
}
.floating-resume-text { display: inline-block; }

.scroll-top {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg-card);
    color: var(--accent);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.15);
}
.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
}
.scroll-top:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(15, 118, 110, 0.3);
}

/* ===== SERVICE PICKER CARD ===== */
.service-picker-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9989;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.service-picker-overlay.active {
    display: block;
    opacity: 1;
}
.service-picker-card {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: 320px;
    background: var(--bg-card);
    border: 2px solid var(--kpi);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 9991;
    display: none;
    animation: pickerIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.service-picker-card.visible { display: block; }
@keyframes pickerIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.service-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px dashed var(--border);
}
.service-picker-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.service-picker-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--bg-section);
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.service-picker-close:hover {
    background: var(--kpi);
    color: white;
    transform: rotate(90deg);
}
.service-picker-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    margin-bottom: 0.35rem;
    border: 1px solid transparent;
}
.service-picker-option:hover {
    background: rgba(180, 83, 9, 0.06);
    border-color: var(--kpi);
}
.service-picker-option-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.service-picker-option-body { flex: 1; }
.service-picker-option-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}
.service-picker-option-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.service-picker-footer {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--border);
    text-align: center;
}
.service-picker-footer a {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
}
.service-picker-footer a:hover { border-bottom-style: solid; }

/* ===== MOBILE ===== */
@media (max-width: 1024px) {
    .floating-actions {
        bottom: 85px;
        right: 1rem;
        gap: 0.5rem;
    }
    .floating-service { display: none; }
    .floating-resume {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .floating-resume-text { display: none; }
    .floating-resume i { font-size: 1.2rem; }
    .service-picker-card,
    .service-picker-overlay { display: none !important; }
}
.cases-total {
    text-align: center;
    margin: -1.5rem auto 3rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--kpi);
    border-radius: 14px;
    max-width: 520px;
}
.cases-total-value {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--kpi);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.cases-total-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.hero-segment-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
}
.hero-segment-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}
.hero-segment-btn i {
    transition: transform 0.3s ease;
}
.hero-segment-btn:hover i {
    transform: translateX(3px);
}
/* ===== ОТЗЫВЫ В СТИЛЕ ЯНДЕКС.КАРТ (КАРУСЕЛЬ) ===== */
.reviews-slider-wrapper {
    position: relative;
    max-width: 100%;
    padding: 0 1rem;
    margin-top: 2rem;
}

.reviews-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Скрыть скроллбар Firefox */
    -ms-overflow-style: none; /* Скрыть скроллбар IE/Edge */
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    align-items: flex-start;
}

.reviews-track::-webkit-scrollbar {
    display: none; /* Скрыть скроллбар Chrome/Safari */
}

.yandex-review-card {
    flex: 0 0 calc(33.333% - 1rem); /* 3 карточки в ряд на десктопе */
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.yandex-review-card:hover {
    box-shadow: 0 10px 30px var(--shadow-hover);
    border-color: var(--accent);
}

.yr-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.yr-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.yr-author-info {
    display: flex;
    flex-direction: column;
}

.yr-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.yr-role {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.yr-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.yr-stars {
    color: #FAB005;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.yr-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.yr-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.yr-text.expanded {
    -webkit-line-clamp: unset;
    display: block;
}

.yr-read-more {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: left;
    transition: var(--transition);
    align-self: flex-start;
}

.yr-read-more:hover {
    text-decoration: underline;
}

.yr-footer {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: flex;
    gap: 10px;
}

.yr-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    font-family: inherit;
}

.yr-btn:hover {
    color: var(--accent);
}

/* Кнопки навигации (Стрелки) */
.reviews-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.reviews-nav-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.reviews-nav-btn.prev { left: -10px; }
.reviews-nav-btn.next { right: -10px; }

/* Адаптив под планшеты и мобилки */
@media (max-width: 1024px) {
    .yandex-review-card {
        flex: 0 0 calc(50% - 0.75rem); /* 2 карточки на планшете */
    }
}

@media (max-width: 768px) {
    .reviews-slider-wrapper {
        padding: 0 1rem 4rem 1rem; /* Добавили отступ снизу, чтобы было куда встать кнопкам */
        position: relative;
    }
    
    .reviews-track {
        padding: 0;
        gap: 1rem;
        scroll-padding: 0;
    }

    .yandex-review-card {
        flex: 0 0 100%; 
    }

    /* СТРЕЛКИ ВНИЗ ПО ЦЕНТРУ */
    .reviews-nav-btn {
        display: flex; 
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: var(--bg-card);
        border: 1px solid var(--border);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        
        /* Позиционируем внизу */
        top: auto;
        bottom: 0;
        transform: none; 
    }

    .reviews-nav-btn.prev { 
        left: calc(50% - 45px); /* Сдвигаем чуть левее центра */
    }
    .reviews-nav-btn.next { 
        right: calc(50% - 45px); /* Сдвигаем чуть правее центра */
    }
        /* Убираем залипание ховера на мобилках */
    .reviews-nav-btn:hover {
        background: var(--bg-card);
        color: var(--text-primary);
        border-color: var(--border);
    }
    
    /* эффект нажатия (загорается только в момент клика) */
    .reviews-nav-btn:active {
        background: var(--accent);
        color: white;
        border-color: var(--accent);
        transform: scale(0.92); /* Легкое уменьшение для тактильного эффекта */
    }
}
/* ===== БЛОК БОЛЕЙ + СМАРТФОН ===== */
.pains-phone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.pains-text-col {
    max-width: 650px;
    width: 100%;
}

.pains-text-col .section-title {
    text-align: left;
    font-size: clamp(1.2rem, 2vw, 1.6rem); 
    line-height: 1.3;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.pains-list {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem); 
    line-height: 1.5;
    color: var(--text-secondary);
}

.pains-list p {
    margin-bottom: clamp(0.4rem, 1vw, 0.6rem);
}

.pains-footer {
    margin-top: clamp(1rem, 2vw, 1.5rem);
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.5;
}

.phone-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; 
}

.phone-mockup {
    position: relative;
    /* Высота: либо 75% от высоты экрана, либо 650px (что меньше) */
    height: min(75vh, 650px); 
    /* Ширина вычисляется по формуле, сохраняя пропорции 320 к 650 */
    width: calc(min(75vh, 650px) * 320 / 650); 
    
    flex-shrink: 0; 
    background: #1a1a1a;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), inset 0 0 0 4px #333;
    padding: 10px;
    overflow: hidden;
    border: 2px solid #444;
    margin: 0 auto;
}

.phone-notch {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    background: var(--bg-card);
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.phone-header {
    background: var(--bg-section);
    padding: 40px 15px 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    z-index: 5;
    flex-shrink: 0;
}

.phone-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.phone-contact-info {
    display: flex;
    flex-direction: column;
}

.phone-contact-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.phone-contact-status {
    font-size: 0.7rem;
    color: var(--accent);
}

.phone-chat-body {
    flex: 1;
    min-height: 0; 
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 15px 15px;
    scrollbar-width: none;
}

.phone-chat-body::-webkit-scrollbar {
    display: none;
}

/* НИЖНЯЯ ПАНЕЛЬ ТЕЛЕФОНА */
.phone-bottom-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    z-index: 10;
}

/* Кнопки стрелок */
.phone-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-section);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.phone-nav-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Кнопка Показать всё */
.phone-skip-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: var(--transition);
}

.phone-skip-btn:hover {
    background: rgba(15, 118, 110, 0.1);
}

/* Пузыри сообщений */
.chat-bubble {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.4;
    animation: popIn 0.3s ease forwards;
    opacity: 0;
    transform: translateY(10px);
    flex-shrink: 0;
}

.chat-bubble.left {
    align-self: flex-start;
    background: var(--bg-section);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-bubble.right {
    align-self: flex-end;
    background: var(--accent);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.chat-sender {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 3px;
    opacity: 0.8;
}

.chat-bubble.left .chat-sender {
    color: var(--text-secondary);
}

.chat-bubble.right .chat-sender {
    color: #ffffff;
}

[data-theme="dark"] .chat-bubble.right {
    color: #0F1419; 
    text-shadow: none; 
}

[data-theme="dark"] .chat-bubble.right .chat-sender {
    color: #0F1419; 
    opacity: 0.6; 
}

@keyframes popIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1100px) {
    .pains-phone-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .pains-text-col {
        order: -1;
        text-align: center; 
    }

    .pains-text-col .section-title {
        text-align: center;
    }
    
    .pains-list {
        text-align: left;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .phone-mockup {
        height: min(70vh, 550px);
        width: calc(min(70vh, 550px) * 320 / 650);
        border-radius: 35px;
        padding: 8px;
    }
    .phone-screen {
        border-radius: 25px;
    }
}
/* ============================================
   КЕЙСЫ: СПОЙЛЕРЫ И АДАПТИВ (ЧИСТОВАЯ ВЕРСИЯ)
   ============================================ */

/* Базовые ограничения для карточек */
.case-card {
    min-width: 0;
    overflow: hidden;
}

.cases-grid > * {
    min-width: 0;
}

/* Картинки внутри кейсов — всегда сжимаются */
.case-card img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Перенос длинных слов */
.case-card, .case-card * {
    overflow-wrap: break-word;
}

/* Внутренние блоки сжимаются */
.before-after-item,
.case-visualization-item,
.case-kpi-item {
    min-width: 0;
}

/* === КНОПКА СПОЙЛЕРА === */
.case-main-spoiler-btn {
    width: 100%;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    box-sizing: border-box;
}

.case-main-spoiler-btn:hover {
    border-color: var(--accent);
    background: rgba(15, 118, 110, 0.05);
}

/* === СПОЙЛЕР: базовые стили === */
.case-main-spoiler {
    display: none;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* === СПОЙЛЕР: активное состояние === */
.case-main-spoiler.active {
    display: block !important;
    animation: fadeIn 0.3s ease;
}

/* === ДЕСКТОП: визуализации в 2 колонки === */
.case-visualizations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1.5rem 0;
    min-width: 0;
}

.case-visualization-item {
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    min-width: 0;
}

.case-visualization-item img {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    display: block;
    margin-bottom: 0.75rem;
}

/* === ПЛАНШЕТ И МОБИЛЬНЫЕ: 1 колонка === */
@media (max-width: 1024px) {
    .case-visualizations,
    .before-after {
        grid-template-columns: 1fr !important;
    }
}

/* === МОБИЛЬНЫЕ (до 768px) === */
@media (max-width: 768px) {
    .case-card,
    .case-main-spoiler {
        max-width: 100%;
        overflow: hidden;
    }

    .case-main-spoiler {
        padding: 1rem 0.75rem !important;
    }

    /* KPI: 2 колонки с переносом */
    .case-kpi {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }
    .case-kpi-value,
    .case-kpi-label {
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Визуализации: 1 колонка */
    .case-visualizations {
        gap: 1rem !important;
    }
    .case-visualization-item {
        padding: 1rem !important;
    }

    /* Before/After: 1 колонка */
    .before-after {
        gap: 0.75rem !important;
        padding: 1rem !important;
    }
    .before-after-item img {
        max-width: 100% !important;
    }

    /* Кнопки: колонка, на всю ширину */
    .case-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    .case-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        white-space: normal;
        word-break: break-word;
        text-align: center;
    }

    /* Вложенные case-details */
    .case-card .case-details {
        max-width: 100%;
        overflow: hidden;
    }
}
/* === БЫСТРЫЕ ССЫЛКИ В HERO === */
.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}
.quick-links-label {
    color: var(--text-secondary);
    font-weight: 500;
}
.hero-quick-links a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--accent);
    transition: var(--transition);
}
.hero-quick-links a:hover {
    border-bottom-style: solid;
    color: var(--accent-hover);
}
.hero-quick-links .dot {
    color: var(--border);
    font-weight: bold;
}
/* ===== Хлебные крошки ===== */
.hero-content .breadcrumbs {
    position: static !important; /* Принудительно возвращаем в поток */
    top: auto !important;
    left: auto !important;
    margin: 0 0 1.5rem 0; /* Отступ только снизу, чтобы отодвинуть подзаголовок */
    padding: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: block;
}

.hero-content .breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-content .breadcrumbs li {
    display: flex;
    align-items: center;
}

/* Разделитель */
.hero-content .breadcrumbs li + li::before {
    content: "/";
    margin-right: 0.5rem;
    opacity: 0.5;
}

.hero-content .breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-content .breadcrumbs a:hover {
    color: var(--accent);
}

/* Текущая страница */
.hero-content .breadcrumbs li[aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-content .breadcrumbs {
        margin-bottom: 1rem;
        font-size: 0.75rem;
    }
}