/* ==================================================================
   COMMON.CSS — базовые стили для всех страниц
   ================================================================== */
:root {
    --color-gold: #d4af37;
    --color-gold-light: #e5c158;
    --color-gold-dark: #b8941f;
    --color-gold-muted: rgba(212, 175, 55, 0.08);
    --color-white: #ffffff;
    --color-cream: #faf9f7;
    --color-gray-50: #f8f8f8;
    --color-gray-100: #f0f0f0;
    --color-gray-200: #e5e5e5;
    --color-gray-400: #9ca3af;
    --color-gray-600: #4b5563;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    --color-black: #0a0a0a;
    --color-text-main: #111111;
    --gradient-gold: linear-gradient(135deg, #b8941f 0%, #d4af37 40%, #f0d878 50%, #d4af37 60%, #b8941f 100%);
    --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-sub: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.06), 0 4px 8px -2px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 24px 48px -8px rgba(0, 0, 0, 0.08), 0 12px 16px -4px rgba(0, 0, 0, 0.04);
    --shadow-gold: 0 12px 40px -8px rgba(212, 175, 55, 0.3);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 50px;
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-cream); }
::-webkit-scrollbar-thumb { background: var(--color-gold); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold-dark); }
::selection { background: rgba(212, 175, 55, 0.25); color: var(--color-text-main); }

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-text);
    font-weight: 400;
    background: var(--color-cream);
    color: var(--color-text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: multiply;
}

a { text-decoration: none; color: inherit; transition: all 0.3s var(--ease-smooth); }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

.section-light { background: var(--color-white); color: var(--color-text-main); position: relative; }
.section-mid { background: linear-gradient(180deg, var(--color-gray-50) 0%, var(--color-cream) 100%); color: var(--color-text-main); position: relative; }
.section-dark { background: var(--color-black); color: var(--color-white); }
.section-hero { position: relative; overflow: hidden; }

.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 10001; background: transparent; }
.scroll-progress__bar { height: 100%; width: 0%; background: var(--gradient-gold); box-shadow: 0 0 12px rgba(212, 175, 55, 0.6); transition: width 0.1s linear; }

.label-mono {
    font-family: var(--font-sub);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-gold-dark);
    margin-bottom: 16px;
    position: relative;
}
.label-mono::before { content: ''; width: 40px; height: 1.5px; background: var(--gradient-gold); }

/* ===== КНОПКИ ===== */
.btn, .btn-gold, .btn-outline, .btn-ghost, .btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    min-width: 180px;
    height: 52px;
    font-family: var(--font-sub);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-smooth);
    white-space: nowrap;
    box-shadow: var(--shadow-gold);
    will-change: transform, box-shadow;
}
.btn-gold { background: var(--gradient-gold); color: #ffffff; }
.btn-gold::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease-smooth);
}
.btn-gold:hover::after { left: 150%; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 48px -8px rgba(212, 175, 55, 0.5); }
.btn-outline {
    background: rgba(255,255,255,0.5);
    color: var(--color-gold-dark);
    border: 1.5px solid var(--color-gold);
    box-shadow: none;
    backdrop-filter: blur(4px);
}
.btn-outline:hover { background: var(--gradient-gold); color: #ffffff; border-color: transparent; transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-small { min-width: 140px; height: 44px; padding: 10px 20px; font-size: 10px; }

/* ===== АНИМАЦИИ ПОЯВЛЕНИЯ ===== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== БАЗОВЫЕ СЕТКИ ===== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 64px;
}
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

/* ===== ХЕДЕР ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s var(--ease-smooth);
}
.header.scrolled { background: rgba(255,255,255,0.95); box-shadow: var(--shadow-md); padding: 14px 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.header-logo .name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
    position: relative;
}
.header-logo .name::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-gold);
    transition: width 0.4s var(--ease-smooth);
}
.header-logo:hover .name::after { width: 100%; }
.header-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.header-nav a {
    font-family: var(--font-sub);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-600);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: all 0.3s var(--ease-smooth);
}
.header-nav a:hover { color: var(--color-gold-dark); background: var(--color-gold-muted); }
.header-nav a.active { color: var(--color-gold-dark); background: var(--color-gold-muted); font-weight: 700; }
.header-nav .sep { color: var(--color-gray-200); font-weight: 300; user-select: none; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--color-text-main); border-radius: 2px; transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== ОБЩИЕ СЕКЦИИ ===== */
section { padding: 120px 0; position: relative; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    text-wrap: balance;
}
.section-title .gold { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle { font-size: 1.1rem; color: var(--color-gray-600); max-width: 800px; margin: 0 auto 24px; line-height: 1.6; }
.section-divider { width: 60px; height: 3px; background: var(--gradient-gold); margin: 28px auto 0; border-radius: 2px; }
.text-center { text-align: center; }

/* ===== КАРТОЧКИ НАПРАВЛЕНИЙ (direction-card) ===== */
.direction-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
    transition: all 0.45s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    will-change: transform, box-shadow;
}
.direction-card .icon-wrap {
    width: 80px; height: 80px;
    margin: 0 auto 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold-muted);
    transition: all 0.4s var(--ease-smooth);
    flex-shrink: 0;
}
.direction-card:hover .icon-wrap { background: var(--gradient-gold); transform: scale(1.08) rotate(-2deg); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); }
.direction-card:hover .icon-wrap .icon-svg { stroke: #ffffff; }
.direction-card h4 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--color-gold-dark); margin-bottom: 12px; }
.direction-card p { font-size: 0.95rem; line-height: 1.6; color: var(--color-gray-600); margin-bottom: 8px; }
.direction-card .btn-group { display: flex; flex-direction: column; gap: 12px; align-items: center; width: 100%; margin-top: auto; padding-top: 20px; }
.direction-card .btn-group .btn-small { width: 100%; }
.icon-svg { width: 28px; height: 28px; stroke: var(--color-gold-dark); stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: all 0.4s var(--ease-smooth); }
.icon-svg-lg { width: 32px; height: 32px; }

/* ===== ЭЛЕГАНТНЫЕ КАРТОЧКИ (elegant-card) ===== */
.elegant-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
    transition: all 0.45s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    will-change: transform, box-shadow;
}
.elegant-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-smooth); }
.elegant-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.elegant-card:hover::before { transform: scaleX(1); }
.elegant-card .card-icon {
    width: 80px; height: 80px;
    margin: 0 auto 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold-muted);
    transition: all 0.4s var(--ease-smooth);
    flex-shrink: 0;
    overflow: hidden;
}
.elegant-card:hover .card-icon { background: var(--gradient-gold); transform: scale(1.08) rotate(-2deg); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); }
.elegant-card .card-icon img { width: 40px; height: 40px; object-fit: contain; filter: brightness(0) saturate(100%) invert(35%) sepia(80%) saturate(600%) hue-rotate(10deg) brightness(90%); transition: filter 0.4s var(--ease-smooth); }
.elegant-card:hover .card-icon img { filter: brightness(0) saturate(100%) invert(100%); }
.elegant-card .card-icon .icon-svg { width: 32px; height: 32px; }
.elegant-card h4 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: var(--color-gold-dark); margin-bottom: 12px; text-align: center; }
.elegant-card h4 a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
.elegant-card h4 a:hover { color: var(--color-gold); }
.elegant-card p { font-size: 0.95rem; line-height: 1.7; color: var(--color-gray-600); flex: 1; margin-bottom: 24px; text-align: center; }
.elegant-card .btn-group { margin-top: auto; display: flex; justify-content: center; padding-top: 4px; }
.elegant-card .btn-group .btn-small { width: 100%; }

/* ===== ФОРМАТ-КАРТОЧКИ ===== */
.format-card {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-lg);
    padding: 40px 32px 32px;
    box-shadow: var(--shadow-md);
    transition: all 0.45s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    min-height: 280px;
    will-change: transform, box-shadow;
}
.format-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-gold); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-smooth); }
.format-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.format-card:hover::before { transform: scaleX(1); }
.format-card .icon-wrap {
    width: 80px; height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gold-muted);
    margin: 0 auto 24px;
    transition: all 0.4s var(--ease-smooth);
    flex-shrink: 0;
}
.format-card:hover .icon-wrap { background: var(--gradient-gold); transform: scale(1.05) rotate(-2deg); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); }
.format-card:hover .icon-wrap .icon-svg { stroke: #ffffff; }
.format-card .card-header h4 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--color-text-main); line-height: 1.3; margin-bottom: 8px; }
.format-card .card-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; margin: 8px 0 16px; width: 100%; }
.format-card .card-body p { font-size: 0.95rem; line-height: 1.7; color: var(--color-gray-600); margin-bottom: 8px; }
.format-card .card-body .result-highlight { display: block; font-weight: 700; color: var(--color-gold-dark); background: var(--color-gold-muted); padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 12px; border-left: 3px solid var(--color-gold); font-size: 0.92rem; line-height: 1.6; }

/* ===== МИССИЯ ===== */
.mission-frame {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-gold);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2), var(--shadow-md);
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}
.mission-frame .frame-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--color-text-main);
    margin-bottom: 16px;
}
.mission-frame .frame-title .gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.mission-frame .frame-sub {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-gray-600);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}
.mission-frame .frame-sub:last-child {
    margin-top: 8px;
    font-weight: 600;
    color: var(--color-text-main);
}

/* ===== ПРОЕКТ-КАРТОЧКИ ===== */
.project-card .project-text { text-align: center; }
.project-card .project-text p { margin-bottom: 16px; line-height: 1.8; }
.project-card .project-text p:last-child { margin-bottom: 0; }

/* ===== ОБО МНЕ (тизер) ===== */
.about-teaser { text-align: center; }
.about-teaser .teaser-text {
    max-width: 720px;
    margin: 0 auto 32px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--color-gray-600);
}
.about-teaser .teaser-text .gold { color: var(--color-gold-dark); font-weight: 600; }

/* ===== ОТЗЫВЫ ===== */
.reviews-block {
    max-width: 800px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.review-item {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--ease-smooth);
}
.review-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(212, 175, 55, 0.2); }
.review-item p { font-size: 1.1rem; line-height: 1.8; color: var(--color-text-main); font-style: italic; margin-bottom: 20px; }
.review-item .author { font-weight: 700; color: var(--color-gold-dark); font-style: normal; font-size: 0.95rem; }

/* ===== ФИНАЛЬНЫЙ CTA ===== */
.final-cta {
    background: #000000;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
}
.final-cta .section-title { color: #ffffff; }
.final-cta .section-title .gold { background: var(--gradient-gold); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.final-cta .sub { font-size: 1.2rem; font-weight: 500; color: #e0e0e0; margin-bottom: 56px; line-height: 1.7; max-width: 680px; margin-left: auto; margin-right: auto; }
.final-cta .btn-group { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.final-cta .btn-group .btn-gold, .final-cta .btn-group .btn-outline { min-width: 180px; height: 52px; }
.final-cta .btn-outline { background: transparent !important; border: 1.5px solid var(--color-gold) !important; color: #ffffff !important; backdrop-filter: none !important; box-shadow: none !important; }
.final-cta .btn-outline:hover { background: var(--gradient-gold) !important; border-color: transparent !important; color: #ffffff !important; box-shadow: var(--shadow-gold) !important; }

/* ===== ФУТЕР ===== */
.footer {
    padding: 80px 0 48px;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: #0a0a0a;
    color: var(--color-gray-400);
}
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.footer-contacts { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; }
.footer-contacts a {
    font-family: var(--font-text);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-gray-400);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-contacts a:hover { color: var(--color-gold); transform: translateY(-2px); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer-nav a { font-family: var(--font-sub); font-size: 0.85rem; font-weight: 600; color: var(--color-gray-400); transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--color-gold); }
.footer-nav a.active { color: var(--color-gold); }
.footer-copy { font-family: var(--font-text); font-size: 0.8rem; font-weight: 400; color: var(--color-gray-400); text-align: center; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.08); }

/* ===== ПЛАВАЮЩИЕ КНОПКИ ===== */
.floating-buttons { position: fixed; bottom: 36px; right: 36px; display: flex; flex-direction: column; gap: 16px; z-index: 999; }
.floating-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    color: white;
    transition: all 0.4s var(--ease-bounce);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    position: relative;
    background: var(--gradient-gold);
    border: 2px solid rgba(255,255,255,0.3);
}
.floating-buttons a svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.floating-buttons a:hover { transform: scale(1.1) translateY(-6px); box-shadow: 0 16px 32px rgba(212, 175, 55, 0.5); }

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
    padding: 20px;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content { background: var(--color-white); border-radius: var(--radius-lg); padding: 48px; max-width: 650px; width: 100%; max-height: 90vh; overflow-y: auto; position: relative; box-shadow: var(--shadow-xl); }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background 0.3s; color: var(--color-gray-400); }
.modal-close:hover { background: var(--color-gray-100); color: var(--color-text-main); }
.modal-content h3 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; margin-bottom: 20px; color: var(--color-gold-dark); }
.modal-content h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin: 28px 0 12px; color: var(--color-gold-dark); }
.modal-content p { font-size: 1.05rem; line-height: 1.75; color: var(--color-gray-600); margin-bottom: 16px; }
.modal-content ul { list-style: none; padding: 0; margin: 0 0 16px 0; }
.modal-content ul li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--color-gray-600); line-height: 1.6; }
.modal-content ul li::before { content: '✦'; position: absolute; left: 0; color: var(--color-gold); font-size: 0.8rem; top: 4px; }

/* ===== СОЦИАЛЬНЫЕ ССЫЛКИ И КОНТАКТЫ ===== */
.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--color-gray-600);
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
}
.social-links a:hover {
    color: var(--color-gold-dark);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.9);
    border-color: var(--color-gold);
}

.contact-cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1024px) {
    .grid-3, .grid-2, .principles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 80px 0; }
    .container { padding: 0 20px; }

    /* Хедер и бургер */
    .header-cta .btn-gold { display: none; }
    .header-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 20px 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--color-gray-100);
    }
    .header-nav.open { display: flex; }
    .hamburger { display: flex; }
    .header-nav .sep { display: none; }
    .header-nav a { padding: 10px 16px; width: 100%; }

    /* Сетки */
    .grid-3, .grid-2, .principles-grid { grid-template-columns: 1fr; }

    .mission-frame { padding: 32px 24px; }
    .review-item { padding: 24px 20px; }
    .about-teaser .teaser-text { font-size: 1rem; }

    /* Футер */
    .footer-grid { flex-direction: column; text-align: center; }
    .footer-nav { justify-content: center; }

    /* Плавающие */
    .floating-buttons { bottom: 24px; right: 24px; }
    .floating-buttons a { width: 56px; height: 56px; }

    /* Финальный CTA */
    .final-cta .btn-group { flex-direction: column; align-items: stretch; }
    .final-cta .btn-group .btn-gold, .final-cta .btn-group .btn-outline { width: 100%; }

    .modal-content { padding: 32px 24px; }

    .social-links { gap: 10px; }
    .social-links a { font-size: 0.9rem; padding: 8px 14px; }

    .contact-cta-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .contact-cta-group .btn-gold,
    .contact-cta-group .btn-outline {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-logo .name { font-size: 1.2rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.95rem; }

    .social-links {
        gap: 8px;
        flex-direction: column;
        align-items: stretch;
    }
    .social-links a {
        justify-content: center;
        font-size: 0.9rem;
        padding: 10px 16px;
        width: 100%;
    }
}

/* ==================================================================
   PNG-ИКОНКИ ТИПОВ ЛИЧНОСТИ (synthesis.html / synthesis-test.html)
   Файлы лежат в папке icons/, чёрные на прозрачном фоне.
   Фильтр делает их золотыми. При hover — белыми.
   ================================================================== */
.type-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    transition: filter 0.4s var(--ease-smooth);
    filter: brightness(0) saturate(100%) invert(35%) sepia(80%) saturate(600%) hue-rotate(10deg) brightness(90%);
}