html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #ffffff;
    --text-color: #2d3436; /* Темно-серый */
    --text-black: #000000;
    --primary-color: #4a7c59; /* Тёмно-зелёный */
    --accent-color: #8fbc8f; /* Светло-зелёный */
    --mint-color: #e0f2f1; /* Мятный */
    --light-mint: #f1f8f7;
    --white: #ffffff;
    --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-black);
    text-align: center;
    margin-bottom: 4rem;
    line-height: 1.2;
}

/* Glassmorphism utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: var(--shadow-subtle);
}

/* Header & Nav */
/* Фоновая анимация */
.bg-animation-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(900px 450px at 10% 15%, rgba(149, 213, 178, 0.35) 0%, transparent 55%),
        radial-gradient(800px 400px at 85% 25%, rgba(82, 183, 136, 0.28) 0%, transparent 60%),
        radial-gradient(700px 350px at 20% 80%, rgba(224, 242, 241, 0.35) 0%, transparent 60%),
        linear-gradient(180deg, #ffffff 0%, var(--bg-color) 100%);
}

.bg-animation-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 12% 40%, rgba(224, 242, 241, 0.7), transparent 60%),
        radial-gradient(500px 250px at 88% 60%, rgba(149, 213, 178, 0.55), transparent 60%);
    filter: blur(45px);
    opacity: 0.5;
    transform: translate3d(var(--bg1-x, 0px), var(--bg1-y, 0px), 0);
    pointer-events: none;
}

.bg-animation-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'%3E%3Cg stroke='%2340916c' stroke-width='0.8' opacity='0.15' fill='none'%3E%3Cpath d='M100 120 Q 300 60 520 140 T 1000 220'/%3E%3Cpath d='M80 600 Q 320 520 520 560 T 1100 640'/%3E%3Ccircle cx='220' cy='220' r='90'/%3E%3Ccircle cx='980' cy='180' r='70'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    opacity: 0.35;
    transform: translate3d(var(--bg2-x, 0px), var(--bg2-y, 0px), 0);
    pointer-events: none;
}

.tree-trunk {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 100vh;
    display: none;
    background: 
        linear-gradient(to right, 
            rgba(45, 90, 39, 0.08) 0%, 
            rgba(67, 124, 58, 0.12) 40%, 
            rgba(45, 90, 39, 0.05) 80%,
            transparent 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='200' viewBox='0 0 100 200'%3E%3Cpath d='M30 0 Q 35 50 30 100 T 30 200 M70 0 Q 65 50 70 100 T 70 200 M50 0 Q 55 100 50 200' fill='none' stroke='rgba(45, 90, 39, 0.05)' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 100% 400px;
    box-shadow: inset -30px 0 60px rgba(0,0,0,0.03);
    filter: blur(0.3px);
    transform: translate(-180px, 0);
    will-change: transform;
    z-index: -2;
}

#leaf-canvas { position: absolute; }
.tree-trunk, .tree-trunk::before, .tree-trunk::after { display: none !important; }
.side-leaves, .leaf-node, .side-leaves-left, .side-leaves-right { display: none !important; }

#leaf-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Упрощенный адаптив для декоративного фона */
@media (max-width: 768px) {
    .bg-animation-container {
        background:
            radial-gradient(600px 300px at 12% 18%, rgba(149, 213, 178, 0.30) 0%, transparent 55%),
            radial-gradient(500px 250px at 85% 28%, rgba(82, 183, 136, 0.22) 0%, transparent 60%),
            linear-gradient(180deg, #ffffff 0%, var(--bg-color) 100%);
    }
    .bg-animation-container::before {
        filter: blur(35px);
        opacity: 0.45;
    }
    .bg-animation-container::after {
        opacity: 0.28;
    }
}

@media (max-width: 520px) {
    .bg-animation-container {
        background:
            radial-gradient(420px 210px at 14% 16%, rgba(149, 213, 178, 0.28) 0%, transparent 55%),
            linear-gradient(180deg, #ffffff 0%, var(--bg-color) 100%);
    }
    .bg-animation-container::before { display: none; }
}
#leaf-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98); /* Солидный белый фон */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px; /* Увеличено в 1.5 раза с 32px */
    width: auto;
    object-fit: contain;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem; /* Чтобы логотип был максимально слева */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-dark-green {
    background: var(--primary-color);
    color: white;
}

.header-cta-wrapper {
    position: relative;
}

.header-tooltip {
    position: absolute;
    top: 110%;
    right: 0;
    width: 240px;
    background: linear-gradient(135deg, var(--accent-mint) 0%, #ffffff 100%);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 0.85rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.header-tooltip a {
    text-decoration: none;
    color: var(--text-dark);
}

.header-cta-wrapper:hover .header-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-cta:hover {
    background: linear-gradient(135deg, var(--accent-mint) 0%, #ffffff 100%);
    color: var(--primary-color);
}

/* Кнопка после зон навигации */
.method-cta-center {
    text-align: center;
    margin: 2rem 0 1rem 0; /* Оптимизированные отступы */
}

.method-footer {
    margin-top: 0 !important; /* Убираем лишний верхний отступ у текста под кнопкой */
}

/* Слайдер отзывов */
.reviews-slider-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 1rem 0;
}

.reviews-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(74, 124, 89, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.15);
}

.reviews-cta {
    width: 100%;
    margin-top: 3rem;
    text-align: center;
}

.reviews-cta-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.reviews-cta .btn {
    min-width: 220px;
    padding-left: 2.8rem;
    padding-right: 2.8rem;
    box-shadow: 0 18px 36px rgba(74, 124, 89, 0.24);
}

.reviews-cta-btn {
    font-size: 1.05rem;
    min-height: 58px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.review-slide {
    min-width: 33.333%; /* Показываем 3 отзыва на десктопе */
    padding: 0 0.8rem;
    box-sizing: border-box;
    cursor: pointer;
}

.review-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: transform 0.3s ease;
}

.review-slide:hover img {
    transform: scale(1.02);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2400;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    isolation: isolate;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: min(92vw, 1200px);
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem 7rem;
    overflow: visible;
    z-index: 2401;
    isolation: isolate;
}

#lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    max-height: min(calc(100vh - 220px), 900px);
    border: 4px solid white;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: transform 0.2s ease;
    cursor: grab;
    transform-origin: center center;
    will-change: transform;
}

#lightbox-img:active {
    cursor: grabbing;
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2600;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-mint);
    transform: scale(1.1);
}

.lightbox-controls {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 2601;
}

.lightbox-controls button {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.lightbox-controls button:hover {
    background: var(--accent-mint);
    transform: translateY(-2px);
}

.lightbox-controls i {
    color: var(--primary-color);
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-modal[hidden] {
    display: none !important;
}

.video-modal.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 20, 0.62);
    backdrop-filter: blur(5px);
}

.video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    padding: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
}

.video-modal__dialog h3 {
    margin-bottom: 1rem;
    padding-right: 2.5rem;
}

.video-modal__close {
    position: absolute;
    top: 0.9rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(74, 124, 89, 0.08);
    color: var(--primary-color);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.video-modal__body {
    width: 100%;
}

.video-modal__frame,
.video-modal__placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(224, 242, 241, 0.55) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.video-modal__placeholder {
    display: grid;
    place-items: center;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-gray);
    border: 1px solid rgba(74, 124, 89, 0.08);
}

@media (max-width: 992px) {
    .review-slide {
        min-width: 50%;
    }
}

@media (max-width: 600px) {
    .review-slide {
        min-width: 100%;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}

/* Навигация Pill */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-pill {
    display: block;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: 1px solid transparent;
}

.nav-pill:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(224, 242, 241, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* Выпадающее меню Контакты */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 220px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

/* Эффекты для кнопок в меню */
.tg-personal:hover, .tg-channel:hover {
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
}

.vk-personal:hover,
.vk-personal:focus-visible {
    background: rgba(43, 114, 228, 0.12);
    color: #2d6fda;
    border-color: rgba(43, 114, 228, 0.2);
}

.vk-personal:active {
    background: rgba(43, 114, 228, 0.2);
    color: #245cb8;
    border-color: rgba(43, 114, 228, 0.24);
}

/* Кнопка Почта с подменой текста */
.email-btn {
    position: relative;
    overflow: hidden;
}

.email-text-hover {
    display: none;
    font-size: 0.8rem;
}

.email-btn:hover .email-text-default {
    display: none;
}

.email-btn:hover .email-text-hover {
    display: block;
    color: var(--primary-color);
}

.email-btn:hover {
    background: rgba(74, 124, 89, 0.1);
}

/* Grids */
.grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, var(--mint-color) 0%, transparent 40%);
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--text-black);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
    max-width: 90%;
}

.hero-markers {
    list-style: none;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.hero-markers li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.hero-markers i {
    color: var(--primary-color);
    width: 18px;
}

.hero-btns {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.1rem 2.2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(74, 124, 89, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(74, 124, 89, 0.25);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--mint-color);
}

.btn-secondary:hover {
    background: var(--mint-color);
    transform: translateY(-3px);
}

.btn-vk {
    background: linear-gradient(135deg, #f7faff 0%, #eef4ff 100%);
    color: #5677ab;
    border: 1px solid rgba(86, 119, 171, 0.13);
    box-shadow: 0 8px 18px rgba(86, 119, 171, 0.06);
}

.btn-vk-soft {
    background: linear-gradient(135deg, #fafcff 0%, #f1f6ff 100%);
    color: #5d79a6;
    border-color: rgba(93, 121, 166, 0.12);
    box-shadow: 0 7px 18px rgba(93, 121, 166, 0.05);
}

.btn-vk-soft:hover,
.btn-vk-soft:focus-visible {
    background: linear-gradient(135deg, #f1f6ff 0%, #e7efff 100%);
    color: #4f6d9b;
    border-color: rgba(93, 121, 166, 0.18);
    box-shadow: 0 10px 22px rgba(93, 121, 166, 0.09);
}

.btn-vk:hover {
    background: linear-gradient(135deg, #eef4ff 0%, #e5eeff 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(86, 119, 171, 0.10);
}

.btn-vk:active,
.btn-vk:focus-visible {
    background: linear-gradient(135deg, #e7efff 0%, #dde8ff 100%);
    color: #496794;
    border-color: rgba(86, 119, 171, 0.2);
    outline: none;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* Images */
.hero-image-wrapper {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: 40px;
    box-shadow: var(--shadow-medium);
}

.rounded-img {
    width: 100%;
    border-radius: 40px;
    box-shadow: var(--shadow-medium);
}

/* Problem Section */
.problem {
    background-color: var(--light-mint);
}

.problem-text h2 span {
    color: var(--primary-color);
    font-size: 1.2em;
}

.problem-list {
    list-style: none;
    margin: 2rem 0;
}

.problem-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-weight: 500;
}

.problem-list li::before {
    content: '— ';
    color: var(--primary-color);
}

.problem-accent {
    padding: 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
}

/* About Section */
.about-role {
    font-size: 1.2rem;
    margin: 1rem 0;
    color: var(--primary-color);
}

.about-desc {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.about-desc-lowered {
    margin-top: 3.45rem;
}

.about-actions {
    margin: 1.25rem 0 2.5rem;
}

.about-actions-spaced {
    margin-bottom: 3rem;
}

.focus-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}

.focus-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.focus-list i {
    color: var(--primary-color);
    background: var(--mint-color);
    padding: 10px;
    border-radius: 12px;
}

.disclaimer {
    border-left: 3px solid var(--mint-color);
    padding-left: 1.5rem;
    font-style: italic;
    color: #666;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.edu-item {
    padding: 2.5rem;
    display: flex;
    gap: 1.5rem;
    transition: var(--transition);
}

.edu-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.edu-icon i {
    color: var(--primary-color);
    width: 28px;
    height: 28px;
}

.edu-content h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-black);
}

.edu-content p {
    font-size: 0.9rem;
    color: #555;
}

/* Блок Метод (3D Flip) */
.method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    perspective: 1500px;
    margin-top: 3rem;
}

.method-card-container {
    height: 300px;
    cursor: pointer;
}

.method-card-flip {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.method-card-container:hover .method-card-flip {
    transform: rotateY(180deg);
}

.method-card-front,
.method-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    border-radius: 30px;
}

.method-card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.method-card-back {
    transform: rotateY(180deg);
    background: var(--primary-color);
    color: white;
    z-index: 1;
}

.method-card-back h3 {
    color: white;
    margin-bottom: 1rem;
}

.method-card-back p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.method-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.method-footer {
    margin-top: 3rem;
    color: var(--text-gray);
}

/* Diagnosis Block */
.diagnosis-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-mint) 100%);
}

.diagnosis-block h2 {
    margin-bottom: 1rem;
}

.diag-meta {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.diag-content {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

.diag-list {
    list-style: none;
    margin-top: 1.5rem;
}

.diag-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.diag-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
}

.diag-footer {
    margin-bottom: 2.5rem;
    font-weight: 500;
}

/* Accordion Formats */
.accordion {
    max-width: 820px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.accordion-header {
    padding: 1.6rem 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    gap: 1rem;
}

.accordion-header:hover {
    background: rgba(74, 124, 89, 0.05);
}

.accordion-header i {
    flex-shrink: 0;
    color: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tariff-header-info {
    flex: 1;
    min-width: 0;
}

.accordion-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-black);
    margin-bottom: 0.4rem;
}

.tariff-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tariff-duration {
    font-size: 0.85rem;
    color: var(--text-color);
    background: rgba(74, 124, 89, 0.08);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-weight: 500;
}

.tariff-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.01em;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.active .accordion-content {
    max-height: 900px;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.content-inner {
    padding: 0 2.2rem 2.2rem;
}

.content-inner p {
    margin-bottom: 1rem;
}

.content-inner ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.content-inner li {
    padding: 0.4rem 0;
    display: flex;
    gap: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.content-inner li::before {
    content: '';
}

/* Tariff content sections */
.tariff-content {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.tariff-section {
    position: relative;
}

.tariff-section + .tariff-section::before {
    content: '';
    position: absolute;
    top: -0.8rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 124, 89, 0.15), transparent);
}

.tariff-desc .tariff-lead {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.tariff-desc .tariff-for {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.55;
}

.tariff-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    margin-bottom: 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(74, 124, 89, 0.1);
    display: inline-block;
}

.tariff-includes ul {
    margin-bottom: 0;
}

.tariff-includes li {
    padding: 0.35rem 0;
    font-size: 0.92rem;
    color: var(--text-color);
}

.tariff-result p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.55;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, rgba(224, 242, 241, 0.5) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 14px;
    border-left: 3px solid var(--primary-color);
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--mint-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer .socials {
    order: 3;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.socials a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition);
}

.socials a:hover {
    transform: scale(1.1);
}

.legal-info {
    flex: 1 1 460px;
    max-width: 760px;
}

.legal-info h4 {
    margin-bottom: 0.75rem;
}

.legal-info p {
    color: var(--text-dark);
    line-height: 1.55;
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.burger span {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Responsive */
@media (max-width: 968px) {
    .grid-two-col {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-markers {
        justify-content: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-sub {
        max-width: 100%;
    }

    .reverse-tablet {
        display: flex;
        flex-direction: column-reverse;
    }

    .problem-list {
        display: inline-block;
        text-align: left;
    }

    .focus-list {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 2rem auto;
        text-align: left;
    }

    .diag-content {
        text-align: left;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
        z-index: 1001;
        gap: 1.5rem;
        padding: 6rem 1.5rem 2rem;
        overflow-y: auto;
    }

    .nav-pill {
        font-size: 1.2rem;
        padding: 0.8rem 2rem;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
        padding: 0;
        margin-top: 1rem;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 0.25rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .burger {
        display: flex;
        position: relative;
        z-index: 1002;
    }

    .burger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .hero-markers {
        grid-template-columns: 1fr;
        text-align: left;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .diagnosis-block {
        padding: 2.5rem 1.5rem;
    }

    .btn,
    .btn-vk {
        width: 100%;
    }

    .button-group,
    .hero-btns,
    .final-btns {
        flex-direction: column;
        align-items: stretch;
    }

    .video-modal {
        padding: 1rem;
    }

    .video-modal__dialog {
        padding: 1.25rem;
        border-radius: 22px;
        max-height: min(88vh, 680px);
        overflow: auto;
    }

    .lightbox-content-wrapper {
        max-width: 94%;
    }

    .lightbox-controls {
        bottom: 1.25rem;
        gap: 1rem;
    }

    .lightbox-controls button {
        width: 46px;
        height: 46px;
    }
}

/* Форматы работы CTA */
.formats-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Блок Результаты / Мой путь */
.results-accent {
    padding: 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-center {
    text-align: center;
}

.results-accent p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    font-style: italic;
}

/* Клуб / Фокус-группа */
.tg-club-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tg-card, .club-card {
    padding: 3rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tg-card {
    gap: 1rem;
}

.tg-qr-frame {
    align-self: center;
    width: 150px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: #ffffff;
    padding: 8px;
    box-shadow: var(--shadow-subtle);
}

.tg-qr {
    width: 100%;
    height: auto;
    display: block;
}

.club-features {
    margin: 1.5rem 0 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.feature i {
    color: var(--primary-color);
    width: 18px;
}

.club-cta-wrapper {
    position: relative;
    display: inline-flex;
    flex-wrap: wrap;
    align-self: center;
    text-align: center;
}

.club-tooltip {
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.club-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

.club-cta-wrapper:hover .club-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
    .tg-club-grid {
        grid-template-columns: 1fr;
    }

    .contacts-main-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contacts-left, .contacts-right {
        text-align: center;
    }

    .contact-title-main {
        margin-bottom: 1.5rem;
    }
}

/* Контакты */
.contacts-compact {
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-title-main {
    margin-bottom: 2rem;
    text-align: center;
}

.contacts-main-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.contacts-left, .contacts-right {
    text-align: left;
}

.contact-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contacts-compact .btn {
    margin-top: 0.5rem;
}

.contact-actions {
    width: 100%;
    margin-top: 2.5rem;
}

.contacts-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.contact-link i {
    color: var(--primary-color);
}

.format-tag strong {
    color: var(--accent-mint);
    background: rgba(74, 124, 89, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

.confidential {
    margin-top: 3rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    opacity: 0.8;
}

/* Финальный экран */
.final-block {
    background: linear-gradient(135deg, rgba(224, 242, 241, 0.4) 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: 5rem 3rem;
    border-radius: 40px;
    text-align: center;
}

.final-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 3rem;
}

.final-title span {
    color: var(--primary-color);
}

.final-info {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
}

.final-info ul {
    list-style: none;
    margin-top: 1.5rem;
    display: inline-block;
    text-align: left;
}

.final-info li {
    margin-bottom: 1rem;
}

.final-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Адаптив для новых блоков */
@media (max-width: 768px) {
    .results-accent {
        padding: 2.5rem 1.5rem;
    }

    .results-accent p {
        font-size: 1.2rem;
    }

    .community-grid {
        grid-template-columns: 1fr;
    }

    .method-grid {
        grid-template-columns: 1fr;
    }

    .method-card-container {
        height: 250px;
    }

    .final-title {
        font-size: 2rem;
    }

    .contacts-grid {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
        display: inline-flex;
    }

    .contacts-compact {
        padding: 2rem 1.25rem;
    }

    .contact-link {
        align-items: flex-start;
        text-align: left;
        word-break: break-word;
    }

    .contact-actions {
        justify-content: center;
    }

    .footer {
        align-items: flex-start;
    }

    .footer .socials {
        order: 2;
        margin-left: 0;
    }

    .legal-info {
        order: 3;
        flex-basis: 100%;
    }
}

/* Animation triggers */
.reveal, .fade-in, .fade-in-left, .fade-in-right, .reveal-text {
    opacity: 0;
}

.contact-qr {
    width: 176px !important;
    height: 176px !important;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    object-fit: contain;
}

/* Нижняя секция: фрукты */
.fruits-strip {
    padding: 1.2rem 0;
    background: linear-gradient(180deg, rgba(224,242,241,0.35), rgba(255,255,255,0.7));
}
.fruits-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.fruit {
    width: 54px;
    height: 54px;
    background-size: contain;
    background-repeat: no-repeat;
    will-change: transform;
}
.fruit.small { width: 42px; height: 42px; }
.fruit.large { width: 64px; height: 64px; }

/* SVG-фоны фруктов */
.fruit-apple {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='55' cy='55' r='36' fill='%23e63946'/%3E%3Cellipse cx='45' cy='52' rx='32' ry='34' fill='%23f1a1a6' opacity='0.2'/%3E%3Cpath d='M50 20 C60 18 70 26 72 34' stroke='%2340916c' stroke-width='3' fill='none'/%3E%3Cellipse cx='40' cy='28' rx='10' ry='6' fill='%2395d5b2'/%3E%3C/svg%3E");
}
.fruit-pear {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='120'%3E%3Cpath d='M60 20 C40 30 40 50 50 70 C60 90 45 110 60 115 C80 120 95 95 85 75 C75 55 80 35 60 20Z' fill='%2395d5b2'/%3E%3Cpath d='M62 18 C70 18 78 24 82 30' stroke='%2340916c' stroke-width='3' fill='none'/%3E%3Ccircle cx='75' cy='30' r='8' fill='%2352b788'/%3E%3C/svg%3E");
}
.fruit-orange {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='110' height='110'%3E%3Ccircle cx='55' cy='55' r='40' fill='%23f4a261'/%3E%3Ccircle cx='55' cy='55' r='28' fill='%23ffd39b' opacity='0.25'/%3E%3Cpath d='M55 14 C64 12 70 18 74 24' stroke='%2340916c' stroke-width='3' fill='none'/%3E%3Cellipse cx='68' cy='22' rx='10' ry='6' fill='%2395d5b2'/%3E%3C/svg%3E");
}
.fruit-lemon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80'%3E%3Cellipse cx='60' cy='40' rx='42' ry='26' fill='%23e9c46a'/%3E%3Cpath d='M60 10 C70 12 78 18 82 24' stroke='%2340916c' stroke-width='3' fill='none'/%3E%3Ccircle cx='78' cy='22' r='8' fill='%2395d5b2'/%3E%3C/svg%3E");
}

.dev-credit {
    margin-top: 0.8rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
}
.dev-credit a {
    color: rgba(64,145,108,0.9);
    text-decoration: none;
}
.dev-credit a:hover {
    text-decoration: underline;
}

@media (max-width: 390px) {
    .section {
        padding: 4.5rem 0;
    }

    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-text h1,
    .section-title,
    .final-title {
        overflow-wrap: anywhere;
    }

    .accordion-header,
    .content-inner,
    .edu-item,
    .problem-accent,
    .final-block {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .tg-card,
    .club-card {
        padding: 2rem 1.25rem;
    }

    .contact-qr {
        width: 150px !important;
        height: 150px !important;
    }
}
