:root {
    --primary-dark: #0f172a;
    --primary: #1e3a5f;
    --primary-light: #3b82f6;
    --accent: #10b981;
    --accent-light: #34d399;
    --gold: #f59e0b;
    --purple: #8b5cf6;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-600: #475569;
    --gray-800: #1e293b;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-glow-green: 0 0 40px rgba(16, 185, 129, 0.3);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== HEADER ==================== */
.header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.site-title {
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 320px;
}

.site-title strong {
    color: var(--accent-light);
    font-weight: 700;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 8px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.social-icons a:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary-light);
    background: var(--gray-50);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.btn-white {
    background: white;
    color: var(--accent);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 14px;
}

/* ==================== NAVIGATION ==================== */
.nav {
    background: var(--white);
    padding: 0;
    position: fixed;
    top: 79px;
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: var(--shadow);
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.nav a {
    display: block;
    padding: 16px 28px;
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 3px 3px 0 0;
    transition: width 0.3s ease;
}

.nav a:hover {
    color: var(--primary-light);
}

.nav a:hover::after {
    width: 60%;
}

.header-spacer {
    height: 135px;
}

/* ==================== HERO SECTION (SPLIT LAYOUT) ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1e4976 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* Hero Split — две колонки */
.hero-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-main-title {
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub-text {
    font-size: 1.15rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-team-photo {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.15);
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-team-photo:hover {
    transform: scale(1.02);
}

/* Старые hero-content стили (если остались ссылки) */
.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 15px;
    line-height: 1.8;
}

.hero-text .highlight {
    color: var(--accent-light);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.8;
}

/* ==================== SERVICES BANNER ==================== */
.services-banner {
    background: var(--gray-50);
    padding: 80px 0;
    position: relative;
}

.services-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Mediation Description Block */
.mediation-description {
    max-width: 850px;
    margin: 0 auto 40px;
    text-align: center;
}

.mediation-description p {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 15px;
}

.mediation-description .mediation-highlight {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

/* Solution Statement */
.solution-statement {
    text-align: center;
    margin-bottom: 50px;
}

.solution-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    font-style: italic;
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 30px;
    background: white;
    border-radius: 16px;
    border-left: 4px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 40px 0 60px;
}

/* Features Row */
.features-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    color: var(--primary-light);
    font-size: 1.4rem;
    flex-shrink: 0;
}

.feature-item:nth-child(2) .feature-icon-box { color: var(--accent); }
.feature-item:nth-child(3) .feature-icon-box { color: var(--purple); }

.feature-text h4 {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1rem;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* ==================== MINDMAP / PATH SECTION ==================== */
.path-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--gray-200);
}

.path-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 50px;
}

.mindmap {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.mindmap-center {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 60px;
    color: white;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 15px;
}

.mindmap-center i {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.mindmap-center span {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
}

.mindmap-branches {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mindmap-branch {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    border: 2px solid var(--gray-100);
    transition: all 0.4s ease;
    position: relative;
}

.mindmap-branch::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 30px;
    background: linear-gradient(180deg, var(--accent-light), var(--gray-200));
}

.mindmap-branch:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow-green);
    transform: translateY(-5px);
}

.branch-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.branch-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.branch-header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

.branch-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.branch-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    background: var(--gray-50);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.branch-item:hover {
    background: var(--gray-100);
}

.branch-item i {
    color: var(--accent);
    margin-top: 3px;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.branch-item span {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Цветовые акценты для веток */
.branch-left .branch-number {
    background: linear-gradient(135deg, var(--primary-light), #60a5fa);
}

.branch-left:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.branch-top .branch-number {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.branch-right .branch-number {
    background: linear-gradient(135deg, var(--purple), #a78bfa);
}

.branch-right:hover {
    border-color: var(--purple);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
}

/* Соединительные линии от центра */
.mindmap-branches::before {
    content: '';
    position: absolute;
    top: 160px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--purple));
    border-radius: 3px;
    z-index: 1;
}

/* ==================== GRID SYSTEMS ==================== */
.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Grid for 6 advantages */
.grid-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 25px;
    line-height: 1.3;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.9;
}

.quote-card {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    border: 1px solid var(--gray-200);
}

.quote-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 30px;
    bottom: 30px;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-light), var(--accent));
    border-radius: 4px;
}

.quote-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.quote-text {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--gray-800);
    margin-bottom: 15px;
    line-height: 1.7;
}

.quote-author {
    font-weight: 600;
    color: var(--primary-light);
}

.quote-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 25px 0;
}

/* ==================== SERVICES ACCORDION ==================== */
.services-section {
    padding: 100px 0;
    background: white;
}

.services-accordion-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-accordion-card {
    background: white;
    border-radius: 20px;
    border: 2px solid var(--gray-100);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-accordion-card:hover {
    border-color: var(--gray-200);
    box-shadow: var(--shadow);
}

.service-accordion-card.active {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
}

.service-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.3s ease;
}

.service-accordion-btn:hover {
    background: var(--gray-50);
}

.service-accordion-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), #60a5fa);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.service-accordion-card:nth-child(1) .service-accordion-icon {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.service-accordion-card:nth-child(2) .service-accordion-icon {
    background: linear-gradient(135deg, var(--primary-light), #60a5fa);
}

.service-accordion-card:nth-child(3) .service-accordion-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
}

.service-accordion-card:nth-child(4) .service-accordion-icon {
    background: linear-gradient(135deg, var(--gold), #fbbf24);
}

.service-accordion-card:nth-child(5) .service-accordion-icon {
    background: linear-gradient(135deg, var(--purple), #a78bfa);
}

.service-accordion-btn h3 {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
}

.accordion-arrow {
    color: var(--gray-600);
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.service-accordion-card.active .accordion-arrow {
    transform: rotate(180deg);
}

.service-accordion-card.active .service-accordion-icon {
    transform: scale(1.05);
}

.service-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 28px;
}

.service-accordion-card.active .service-accordion-content {
    max-height: 500px;
    padding: 0 28px 25px;
}

.service-details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.service-details-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: var(--gray-50);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--gray-800);
    transition: background 0.3s ease;
}

.service-details-list li:hover {
    background: var(--gray-100);
}

.service-details-list li i {
    color: var(--accent);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.service-details-text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: var(--gray-50);
    border-radius: 10px;
}

/* ==================== TEAM SECTION (CAROUSEL) ==================== */
.team-section {
    padding: 100px 0;
    background: var(--gray-50);
    overflow: hidden;
}

/* Обёртка карусели с кнопками */
.team-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Сама прокручиваемая лента */
.team-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 5px 20px;
    margin: 0 -5px;

    /* Скрываем скроллбар */
    scrollbar-width: none;          /* Firefox */
    -ms-overflow-style: none;       /* IE/Edge */
}

.team-carousel::-webkit-scrollbar {
    display: none;                  /* Chrome/Safari */
}

/* Карточка медиатора */
.team-card-small {
    flex: 0 0 calc((100% - 60px) / 4); 
    scroll-snap-align: start;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-100);
    text-align: center;
}

.team-card-small:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.team-photo-small {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: var(--gray-100);
    overflow: hidden;
    position: relative;
}

.team-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.team-card-small:hover .team-photo-small img {
    transform: scale(1.05);
}

.team-info-small {
    padding: 16px 12px;
}

.team-info-small h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.team-info-small .team-role {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.7rem;
    margin-bottom: 6px;
}

.team-info-small .team-desc {
    color: var(--gray-600);
    font-size: 0.7rem;
    line-height: 1.4;
}

/* Кнопки навигации влево/вправо */
.team-nav-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gray-200);
    background: white;
    color: var(--primary-dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 2;
}

.team-nav-btn:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
    transform: scale(1.08);
}

.team-nav-btn:active {
    transform: scale(0.95);
}

/* Точки-индикаторы */
.team-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
}

.team-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.team-dot.active {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.team-dot:hover:not(.active) {
    background: var(--gray-600);
}

/* ==================== SERVICES CARDS (OLD — kept for reference) ==================== */
.service-card {
    background: white;
    border-radius: 24px;
    padding: 35px;
    border: 2px solid var(--gray-100);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), #60a5fa);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.service-card:nth-child(2) .service-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.service-card:nth-child(3) .service-icon {
    background: linear-gradient(135deg, var(--purple), #a78bfa);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.service-card:nth-child(4) .service-icon {
    background: linear-gradient(135deg, var(--gold), #fbbf24);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* ==================== MEDIATION INFO ==================== */
.mediation-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.mediation-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
}

.mediation-section .section-title {
    color: white;
}

.mediation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.mediation-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.mediation-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.9;
}

.steps-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-num {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.step-content h4 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1rem;
}

.step-content p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==================== ADVANTAGES ==================== */
.advantages-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.advantage-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.advantage-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.advantage-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-light);
    font-size: 1.5rem;
}

.advantage-card:nth-child(2) .advantage-icon { color: var(--accent); }
.advantage-card:nth-child(3) .advantage-icon { color: var(--purple); }
.advantage-card:nth-child(4) .advantage-icon { color: var(--gold); }
.advantage-card:nth-child(5) .advantage-icon { color: #ef4444; }
.advantage-card:nth-child(6) .advantage-icon { color: var(--primary); }

.advantage-card h3 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1rem;
}

.advantage-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
}

/* ==================== CAROUSEL ==================== */
.carousel-section {
    padding: 80px 0;
    background: white;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    margin-top: 40px;
}

.carousel-track {
    display: flex;
    gap: 25px;
    animation: scrollCarousel 30s linear infinite;
}

.carousel-track:hover {
    animation-play-state: paused;
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.carousel-item {
    /* ИЗМЕНЕНИЯ ЗДЕСЬ: */
    width: 320px;        /* 1. Жесткая ширина вместо min-width */
    min-width: 320px;    /* 2. На случай, если flex захочет их сжать */
    flex-shrink: 0;      /* 3. Запрещаем сжатие элементов в карусели */
    
    /* Остальное оставляем как было: */
    height: 220px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    padding: 0;
    background: var(--gray-100);
    margin-right: 10px; /* Опционально: отступ между карточками */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* border-radius не обязателен тут, так как у родителя есть overflow: hidden */
}

/* ==================== GAMES SECTION ==================== */
.games-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.game-card {
    background: white;
    border-radius: 24px;
    padding: 40px 30px;
    text-align: center;
    border: 2px solid var(--gray-100);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    border-color: var(--purple);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
    transform: translateY(-5px);
}

.game-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--purple), #a78bfa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.2rem;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.game-card:nth-child(2) .game-icon {
    background: linear-gradient(135deg, var(--gold), #fbbf24);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.game-card:nth-child(3) .game-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.game-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.game-subtitle {
    color: var(--purple);
    font-weight: 600;
    margin-bottom: 20px;
}

.game-card:nth-child(2) .game-subtitle { color: var(--gold); }
.game-card:nth-child(3) .game-subtitle { color: var(--accent); }

.game-card .btn {
    margin-top: auto;
}

/* ==================== HOW TO SECTION ==================== */
.howto-section {
    padding: 100px 0;
    background: white;
}

.howto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.howto-grid::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent));
    border-radius: 3px;
    z-index: 0;
}

.howto-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.howto-num {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    box-shadow: var(--shadow-glow-green);
    border: 5px solid white;
}

.howto-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.howto-step p {
    color: var(--gray-600);
    font-size: 0.95rem;
    max-width: 280px;
    margin: 0 auto;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, #6ee7b7 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ==================== DOCUMENTS ==================== */
.documents-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.document-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    cursor: pointer;
}

.document-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.document-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #ef4444, #f87171);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.document-card span {
    font-weight: 600;
    color: var(--gray-800);
}

/* ==================== CONTACTS ==================== */
.contacts-section {
    padding: 100px 0;
    background: white;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item .label {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 3px;
}

.contact-item .value {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 1.05rem;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: 24px;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--gray-200);
}

.map-placeholder:hover {
    border-color: var(--primary-light);
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 15px;
}

/* ==================== FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 70px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--accent-light);
}

.footer-col p,
.footer-col a {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ==================== MODALS ==================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 28px;
    padding: 45px;
    max-width: 520px;
    width: 100%;
    position: relative;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-xl);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-600);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.modal h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.modal .subtitle {
    color: var(--gray-600);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    background: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    height: 100px;
    resize: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 25px;
}

.checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-light);
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.checkbox-group a {
    color: var(--primary-light);
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

.thank-you {
    text-align: center;
    padding: 30px 0;
}

.thank-you-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
    font-size: 2.5rem;
}

.hidden {
    display: none;
}

/* Game Detail Modal */
.modal-lg {
    max-width: 620px;
}

.game-detail-content h2 {
    font-size: 1.6rem;
}

.game-detail-content .game-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple), #a78bfa);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.game-list {
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

.game-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--gray-700);
}

.game-list li i {
    color: var(--accent);
    margin-top: 4px;
    flex-shrink: 0;
}

.instructor-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--gray-50);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 15px;
}

.instructor-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.instructor-info h4 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 3px;
}

.instructor-info p {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.nav-close {
    display: none;
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-advantages {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .mediation-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-main-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .howto-grid::before {
        display: none;
    }

    .howto-grid {
        gap: 30px;
    }

    /* Hero split — на планшете */
    .hero-split {
        gap: 40px;
    }

    /* Mindmap tablet */
    .mindmap-branches {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .mindmap-branches::before {
        display: none;
    }

    .mindmap-branch::before {
        display: none;
    }

    /* Team horizontal tablet */
    .team-card-small {
        flex: 0 0 calc((100% - 40px) / 3);  /* 3 карточки */
    }
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    /* Header Mobile */
    .header {
        padding: 10px 0;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo-block {
        flex: 1;
        min-width: 0;
    }

    .logo {
        width: 45px;
        height: 45px;
        border-radius: 12px;
    }

    .site-title {
        font-size: 0.7rem;
        max-width: none;
        line-height: 1.3;
    }

    .header-right {
        gap: 10px;
    }

    .social-icons {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header .btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .header .btn span {
        display: none;
    }

    /* Navigation Mobile */
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: white;
        box-shadow: var(--shadow-xl);
        transition: left 0.3s ease;
        padding-top: 80px;
        z-index: 1001;
    }

    .nav.active {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
    }

    .nav a {
        padding: 18px 24px;
        border-bottom: 1px solid var(--gray-100);
        font-size: 1rem;
    }

    .nav a::after {
        display: none;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav-overlay.active {
        display: block;
    }

    .nav-close {
        position: absolute;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: var(--gray-100);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gray-600);
        font-size: 1.2rem;
        cursor: pointer;
    }

    /* Spacer */
    .header-spacer {
        height: 70px;
    }

    /* Hero Mobile — одна колонка */
    .hero {
        padding: 50px 0;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .hero-main-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .hero-sub-text {
        font-size: 1rem;
    }

    .hero-team-photo {
        max-width: 100%;
        border-radius: 18px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .hero-text {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-top: 20px;
    }

    /* Sections */
    .services-banner,
    .about-section,
    .team-section,
    .services-section,
    .mediation-section,
    .advantages-section,
    .games-section,
    .howto-section,
    .cta-section,
    .documents-section,
    .contacts-section {
        padding: 60px 0;
    }

    .carousel-section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Mediation description mobile */
    .mediation-description .mediation-highlight {
        font-size: 1.1rem;
    }

    .mediation-description p {
        font-size: 0.95rem;
    }

    .solution-text {
        font-size: 1rem;
        padding: 15px 20px;
    }

    /* Path section mobile */
    .path-section {
        margin-top: 50px;
        padding-top: 40px;
    }

    .path-title {
        font-size: 1.4rem;
        margin-bottom: 30px;
    }

    .mindmap-center {
        width: 120px;
        height: 120px;
        margin-bottom: 30px;
    }

    .mindmap-center i {
        font-size: 1.8rem;
    }

    .mindmap-center span {
        font-size: 0.75rem;
    }

    .mindmap-branches {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .mindmap-branches::before {
        display: none;
    }

    .mindmap-branch::before {
        display: none;
    }

    .mindmap-branch {
        padding: 22px 18px;
    }

    .branch-header h4 {
        font-size: 0.95rem;
    }

    .branch-item span {
        font-size: 0.85rem;
    }

    /* Grids Mobile */
    .grid-2x2,
    .grid-3,
    .grid-4,
    .grid-advantages {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .howto-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    /* Features */
    .features-row {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .feature-item {
        width: 100%;
    }

    .feature-icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Buttons */
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin: 30px 0 40px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    /* About */
    .about-content h2 {
        font-size: 1.6rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .quote-card {
        padding: 25px;
    }

    .quote-text {
        font-size: 1rem;
    }

    /* Team carousel mobile */
    .team-nav-btn {
        display: none;
    }

    .team-card-small {
        flex: 0 0 calc((100% - 12px) / 2);  /* 2 карточки */
    }

    .team-carousel {
        gap: 12px;
        padding: 5px 0 15px;
        margin: 0;
    }

    .team-info-small h3 {
        font-size: 0.8rem;
    }

    .team-info-small .team-role {
        font-size: 0.65rem;
    }

    .team-info-small .team-desc {
        display: none;
    }

    /* Service Accordion Mobile */
    .service-accordion-btn {
        padding: 18px 20px;
        gap: 12px;
    }

    .service-accordion-icon {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }

    .service-accordion-btn h3 {
        font-size: 0.95rem;
    }

    .service-accordion-card.active .service-accordion-content {
        padding: 0 20px 20px;
    }

    .service-details-list li {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    /* Old Team Cards */
    .team-card {
        border-radius: 20px;
    }

    .team-info {
        padding: 20px;
    }

    .team-info h3 {
        font-size: 1rem;
    }

    /* Service Cards */
    .service-card {
        padding: 25px;
        border-radius: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-price {
        font-size: 1.3rem;
    }

    /* Steps */
    .steps-card {
        padding: 25px;
    }

    .step {
        gap: 15px;
        margin-bottom: 20px;
    }

    .step-num {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* How To */
    .howto-num {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .howto-step h3 {
        font-size: 1.1rem;
    }

    /* Game Cards */
    .game-card {
        padding: 30px 20px;
    }

    .game-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }

    .game-card h3 {
        font-size: 1.2rem;
    }

    /* Carousel */
    .carousel-item {
        min-width: 280px;
        height: 180px;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 1.8rem;
    }

    .cta-section p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Documents */
    .document-card {
        padding: 20px;
        gap: 15px;
    }

    .document-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .document-card span {
        font-size: 0.9rem;
    }

    /* Contacts */
    .contact-info h3 {
        font-size: 1.3rem;
        margin-bottom: 25px;
    }

    .contact-item {
        gap: 15px;
        margin-bottom: 20px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .contact-item .value {
        font-size: 0.95rem;
    }

    .map-placeholder {
        min-height: 250px;
        border-radius: 20px;
    }

    .map-placeholder i {
        font-size: 3rem;
    }

    /* Footer */
    .footer {
        padding: 50px 0 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-col p,
    .footer-col a {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* Modals */
    .modal {
        padding: 15px;
        align-items: flex-end;
    }

    .modal-content {
        padding: 30px 20px;
        border-radius: 24px 24px 0 0;
        max-height: 95vh;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .modal h2 {
        font-size: 1.4rem;
        padding-right: 40px;
    }

    .modal-lg {
        max-width: 100%;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
    }

    .btn-submit {
        padding: 16px;
        font-size: 1rem;
    }

    .instructor-card {
        padding: 15px;
        gap: 12px;
    }

    .instructor-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .game-list li {
        margin-bottom: 12px;
    }
}

/* ==================== RESPONSIVE - SMALL MOBILE ==================== */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .site-title {
        font-size: 0.65rem;
    }

    .hero-main-title {
        font-size: 1.3rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .service-card,
    .game-card,
    .advantage-card {
        padding: 20px 15px;
    }

    .quote-card {
        padding: 20px 15px;
    }

    .quote-card::before {
        display: none;
    }

    .steps-card {
        padding: 20px 15px;
    }

    .modal-content {
        padding: 25px 15px;
    }

    .mindmap-center {
        width: 100px;
        height: 100px;
    }

    .mindmap-center i {
        font-size: 1.5rem;
    }

    .mindmap-center span {
        font-size: 0.7rem;
    }

    .branch-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* Team small mobile — одна колонка */
    .team-card-small {
        flex: 0 0 calc((100% - 12px) / 2);  /* 2 карточки */
    }

    .service-accordion-btn {
        padding: 15px;
    }

    .service-accordion-icon {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .service-accordion-btn h3 {
        font-size: 0.85rem;
    }
}

/* ==================== LANDSCAPE MOBILE ==================== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 40px 0;
    }

    .hero-main-title {
        font-size: 1.4rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .modal {
        align-items: center;
    }

    .modal-content {
        border-radius: 24px;
        max-height: 85vh;
    }

    .hero-split {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .hero-team-photo {
        max-width: 300px;
    }
}

/* ==================== SAFE AREA (для iPhone X+) ==================== */
@supports (padding: max(0px)) {
    .header {
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .footer {
        padding-bottom: max(30px, env(safe-area-inset-bottom));
    }

    .modal {
        padding-bottom: max(15px, env(safe-area-inset-bottom));
    }
}

/* ==================== TOUCH STATES ==================== */
@media (hover: none) and (pointer: coarse) {
    .team-card:hover,
    .team-card-small:hover,
    .service-card:hover,
    .service-accordion-card:hover,
    .advantage-card:hover,
    .game-card:hover,
    .document-card:hover,
    .mindmap-branch:hover {
        transform: none;
    }

    .btn:active {
        transform: scale(0.98);
    }

    .team-card:active,
    .team-card-small:active,
    .service-card:active,
    .game-card:active {
        transform: scale(0.99);
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .carousel-track {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .header,
    .nav,
    .modal,
    .btn,
    .carousel-section {
        display: none !important;
    }

    .header-spacer {
        height: 0;
    }

    body {
        font-size: 12pt;
    }
}