/* ==========================================================================
   СЕМЬЯ ЦЕПКИН — ПРЕМИАЛЬНЫЕ СТИЛИ (STYLE.CSS)
   Концепция: Dark Luxury, Glassmorphism & High-End Typography
   ========================================================================== */

/* Подключение премиальных шрифтов Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* 1. ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ */
:root {
    --bg-main: #090b0e;             /* Глубокая полночная ночь */
    --bg-card: rgba(18, 22, 31, 0.75); /* Матовое стекло */
    --bg-card-solid: #12161f;       /* Непрозрачный фон карточек */
    --border: rgba(255, 255, 255, 0.08); /* Деликатные разделители */
    --border-accent: rgba(197, 160, 89, 0.3); /* Золотое сечение границ */
    --accent: #c5a059;              /* Благородное матовое золото */
    --accent-hover: #dfb76c;        /* Светлое золото при наведении */
    --accent-glow: rgba(197, 160, 89, 0.15); /* Мягкое свечение */
    --text-light: #f3f5f0;          /* Чистый светлый текст */
    --text-muted: #9aa1b0;          /* Приглушенный вторичный текст */
    
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --container-width: 1140px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. СБРОС СТИЛЕЙ И БАЗОВЫЕ НАСТРОЙКИ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 85% 30%, rgba(30, 38, 54, 0.4) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* СТИЛИ РАСКРЫВАЮЩИХСЯ ПЛАШЕК ПРОТОКОЛА */
.protocol-expand-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    padding: 6px 0;
    transition: var(--transition);
}

.protocol-expand-btn:hover {
    color: var(--accent-hover);
}

.protocol-expand-btn .expand-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.protocol-expand-btn.active .expand-icon {
    transform: rotate(180deg);
}

.protocol-details-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.3s ease;
}

.protocol-details-content.active {
    max-height: 2000px;
    opacity: 1;
    margin-top: 15px;
}

.protocol-steps-list {
    list-style: none;
    padding: 16px;
    background: rgba(15, 20, 30, 0.6);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.protocol-steps-list li {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

.protocol-steps-list li strong {
    color: var(--text-light);
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

/* ПРОФИЛИ КОМАНДЫ (О НАС) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.profile-card {
    background: rgba(15, 20, 30, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    transition: var(--transition);
}

.profile-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
}

.profile-photo-wrapper {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-photo {
    transform: scale(1.06);
}

.profile-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.profile-info p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

.social-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
    margin-top: 12px;
}

/* 3. ШАПКА И НАВИГАЦИЯ (GLASSMORPHISM) */
header {
    background: rgba(9, 11, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 22px 0;
    transition: var(--transition);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.8px;
    transition: var(--transition);
}

.logo span {
    color: var(--text-light);
    font-weight: 400;
}

.logo:hover {
    opacity: 0.9;
}

nav {
    display: flex;
    gap: 36px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 6px 0;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
    border-radius: 2px;
}

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

nav a.active {
    color: var(--accent);
}

nav a.active::after,
nav a:hover::after {
    width: 100%;
}

/* 4. ГЛАВНЫЙ ЭКРАН / HERO */
.hero {
    padding: 90px 0 60px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 46px;
    line-height: 1.2;
    color: var(--accent);
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.hero-text-block {
    max-width: 900px;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-desc {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.hero-desc:last-child {
    margin-bottom: 0;
}

/* Блок ссылок на соцсети */
.social-trust-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.social-trust-block:hover {
    border-color: var(--border-accent);
}

/* 5. СТРУКТУРА МАРШРУТА (ЖУРНАЛЬНЫЙ СТИЛЬ) */
.architecture-section {
    padding: 80px 0;
}

.editorial-title {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

.editorial-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--border) 40%, transparent 100%);
    margin-bottom: 40px;
}

.stage-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    padding: 45px 30px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.stage-row:hover {
    background: var(--bg-card);
    border-color: var(--border-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stage-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stage-number {
    font-family: var(--font-serif);
    font-size: 48px;
    color: var(--accent);
    line-height: 1;
    font-weight: 600;
}

.stage-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 500;
}

.stage-content h3 {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--text-light);
    margin-bottom: 14px;
}

.stage-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 750px;
    margin-bottom: 22px;
}

.inline-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.inline-link:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

/* 6. ПРАКТИЧЕСКИЙ ПРОТОКОЛ (ИКОНКИ + КАРТОЧКИ) */
.protocol-section {
    padding: 70px 0;
    background: rgba(14, 17, 24, 0.4);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.protocol-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.protocol-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
    opacity: 0.6;
    transition: var(--transition);
}

.protocol-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px var(--accent-glow);
}

.protocol-card:hover::before {
    opacity: 1;
}

.protocol-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.protocol-card-num {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--accent);
    font-weight: 600;
}

.protocol-card-icon {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    stroke-width: 1.5;
    fill: none;
    opacity: 0.85;
    transition: var(--transition);
}

.protocol-card:hover .protocol-card-icon {
    opacity: 1;
    transform: scale(1.1);
}

.protocol-card-title {
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
}

.protocol-card-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* 7. ФОРМА AUDIT.HTML (ЧИСТЫЕ КЛАССЫ И СТИЛИЗАЦИЯ) */
.cta-section {
    margin-top: 60px;
    padding: 90px 0;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.cta-section h2 {
    font-family: var(--font-serif);
    font-size: 34px;
    color: var(--accent);
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 17px;
}

.audit-container {
    max-width: 620px;
    margin: 0 auto;
}

.audit-form {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 16px 18px;
    background: rgba(9, 11, 14, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: var(--transition);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(14, 17, 24, 0.9);
}

/* Чекбокс согласия */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 6px;
}

.checkbox-input {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-accent);
    border-radius: 3px;
    background: rgba(9, 11, 14, 0.7);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: var(--transition);
}

.checkbox-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkbox-input:checked::after {
    content: '✓';
    position: absolute;
    color: #090b0e;
    font-size: 13px;
    font-weight: 700;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.checkbox-label {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: underline;
}

/* Сообщение об успехе */
.audit-success-message {
    display: none;
    background: rgba(197, 160, 89, 0.1);
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.audit-success-message h3 {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 24px;
    margin-bottom: 10px;
}

.audit-success-message p {
    color: var(--text-light);
    font-size: 15px;
}

/* Кнопки */
.button {
    display: inline-block;
    padding: 18px 42px;
    background: linear-gradient(135deg, #c5a059 0%, #b28c46 100%);
    color: #090b0e;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.25);
    transition: var(--transition);
    text-align: center;
}

.button:hover {
    background: linear-gradient(135deg, #dfb76c 0%, #c5a059 100%);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.4);
    transform: translateY(-3px);
}

/* 8. ТИПОГРАФИКА И УТИЛИТЫ */
.text-accent { color: var(--accent); }
.text-light { color: var(--text-light); }
.text-muted { color: var(--text-muted); }
.text-large { font-family: var(--font-serif); font-size: 46px; margin-bottom: 30px; }
.text-medium { font-family: var(--font-serif); font-size: 32px; margin-bottom: 20px; }
.text-bold { font-weight: 600; }
.font-serif { font-family: var(--font-serif); }

.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mt-0 { margin-top: 0; }
.mt-25 { margin-top: 25px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }
.mt-60 { margin-top: 60px; }
.pt-0 { padding-top: 0; }
.pb-40 { padding-bottom: 40px; }
.pb-60 { padding-bottom: 60px; }
.text-center { text-align: center; }

.page-content {
    padding: 70px 0;
}

.page-title {
    font-family: var(--font-serif);
    font-size: 42px;
    color: var(--accent);
    margin-bottom: 30px;
}

.text-block p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 24px;
}

.highlight-box {
    background: var(--bg-card);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 30px 35px;
    margin: 40px 0;
    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.highlight-box p {
    margin: 0;
    font-size: 18px;
    color: var(--text-light);
    font-style: italic;
}

.strategy-title {
    color: var(--accent);
    margin-top: 55px;
    margin-bottom: 18px;
    font-family: var(--font-serif);
    font-size: 26px;
    line-height: 1.35;
}

/* 9. ПОДВАЛ */
footer {
    padding: 45px 0;
    background: var(--bg-main);
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* 9.1. УВЕДОМЛЕНИЕ О COOKIE (DISCREET COOKIE TOAST) */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9998;
    max-width: 440px;
    width: calc(100% - 48px);
    background: var(--bg-card-solid);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: var(--transition);
}

.cookie-banner.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
}

.cookie-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: underline;
}

.button-sm {
    padding: 10px 20px !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    white-space: nowrap;
}

/* 10. ЭКРАН ПРИГЛАШЕНИЯ (INVITATION OVERLAY) */
.invitation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 11, 14, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.invitation-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    pointer-events: none;
}

.invitation-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 40px var(--accent-glow);
    padding: 50px 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: invitationFloat 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.invitation-seal {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    border: 1px solid var(--border-accent);
    background: radial-gradient(circle at 30% 30%, rgba(197, 160, 89, 0.25) 0%, rgba(18, 22, 31, 0.8) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--accent-glow);
}

.invitation-seal svg {
    width: 30px;
    height: 30px;
    stroke: var(--accent);
    fill: none;
}

.invitation-title {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--accent);
    margin-bottom: 8px;
}

.invitation-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.invitation-text {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 32px;
}

/* 11. АДАПТИВНОСТЬ (RESPONSIVE DESIGN) */
@media (max-width: 1024px) {
    .protocol-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .stage-row {
        grid-template-columns: 140px 1fr;
        gap: 25px;
        padding: 35px 20px;
    }
    
    .hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 16px 0;
    }

    .nav-inner {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    nav {
        flex-wrap: wrap;
        gap: 18px;
    }

    .hero {
        padding: 55px 0 35px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 19px;
    }

    .stage-row {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 30px 16px;
    }

    .stage-meta {
        flex-direction: row;
        align-items: baseline;
        gap: 12px;
    }

    .stage-number {
        font-size: 36px;
    }

    .stage-content h3 {
        font-size: 22px;
    }

    .audit-form {
        padding: 28px 20px !important;
    }
}

/* ==========================================
   MOBILE & RESPONSIVE OPTIMIZATION (RU, EN, HE)
   ========================================== */

@media (max-width: 768px) {

    /* 1. Header & Navigation Fixes */
    .nav-inner {
        flex-direction: column;
        height: auto !important;
        padding: 12px 0;
        gap: 10px;
        align-items: center;
        text-align: center;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 16px;
        margin: 0 !important;
    }

    nav a {
        margin: 0 !important;
        font-size: 13px !important;
    }

    .lang-switcher {
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: center;
    }

    /* 2. RTL Mobile Layout Fixes for Hebrew (he.html) */
    html[dir="rtl"] .nav-inner {
        align-items: center;
    }

    html[dir="rtl"] nav {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .stage-meta {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .profile-info {
        text-align: right;
    }

    html[dir="rtl"] .protocol-steps-list li {
        padding-right: 0;
        padding-left: 0;
    }

    /* 3. Grid & Cards Responsive Layout */
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .protocol-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* 4. Form & Modal Responsiveness */
    .audit-container {
        padding: 0 10px !important;
    }

    .audit-form {
        padding: 24px 16px !important;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }

    /* 5. Typography Scaling */
    .text-large {
        font-size: 32px !important;
    }

    .text-medium {
        font-size: 24px !important;
    }

    .hero-subtitle {
        font-size: 17px !important;
    }
}
