/* === ПЕРЕМЕННЫЕ === */
:root {
    --bg-dark: #0B1120;
    --bg-blue: #1E3A8A;
    --bg-purple: #4C1D95;
    --accent: #FF6B35;
    --accent-bright: #FF8C42;
    --accent-secondary: #38BDF8;
    --text-main: #F8FAFC;
    --text-muted: #CBD5E1;
    --glass-bg: rgba(30, 41, 59, 0.3);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* === БАЗОВЫЕ СТИЛИ === */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at 10% 20%, #1E3A8A 0%, #0B1120 50%, #2E1065 100%);
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.glow-orb { position: fixed; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.4; pointer-events: none; }
.glow-1 { top: -10%; left: -10%; width: 60vw; height: 60vw; background: var(--bg-blue); }
.glow-2 { bottom: -10%; right: -10%; width: 60vw; height: 60vw; background: var(--bg-purple); }
.glow-3 { top: 40%; left: 40%; width: 40vw; height: 40vw; background: var(--accent); opacity: 0.15; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { margin-bottom: 16px; }
h1 { font-size: 2.5rem; color: var(--accent); }
h2 { font-size: 1.8rem; margin-top: 10px; color: var(--text-main); text-align: center; }
h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 12px; }
p { color: var(--text-muted); margin-bottom: 16px; font-size: 1.05rem; }
ul { padding-left: 20px; color: var(--text-muted); margin-bottom: 16px; }
li { margin-bottom: 8px; }

a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-bright); }

/* Жесткое исключение для внутренних страниц (кейсы, бриф, приватность, лид-магнит) */
.case-page h2, 
.brief-page h2, 
.privacy-page h2,
.lead-page h2,
.thanks-page h2 { 
    text-align: left !important; 
}

/* === КНОПКИ === */
.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    padding: 16px 32px; 
    border-radius: 12px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 1rem; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid transparent; 
    cursor: pointer; 
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3); }
.btn-primary:hover { background: var(--accent-bright); color: #fff; transform: translateY(-4px); box-shadow: 0 10px 30px rgba(255, 140, 66, 0.5); }
.btn-outline { background: transparent; color: var(--text-main); border-color: var(--glass-border); }
.btn-outline:hover { color: var(--accent-secondary); border-color: var(--accent-secondary); transform: translateY(-4px); }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* === КАРТОЧКИ === */
.card { 
    background: var(--glass-bg); 
    backdrop-filter: blur(12px); 
    padding: 32px; 
    border-radius: 16px; 
    border: 2px solid var(--glass-border); 
    margin-bottom: 24px; 
}

.back-link, .back-btn { 
    display: inline-block; 
    margin-bottom: 30px; 
    color: var(--accent); 
    text-decoration: none; 
    font-weight: 600; 
    transition: color 0.3s; 
}
.back-link:hover, .back-btn:hover { color: var(--accent-bright); }

/* === ШАПКА И НАВИГАЦИЯ === */
header { padding: 20px 0; position: sticky; top: 0; z-index: 100; background: rgba(11, 17, 32, 0.7); backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo-box { position: relative; width: 50px; height: 50px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 12px; background: transparent; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: border-color 0.4s ease; }
.logo-container:hover .logo-box { border-color: var(--accent-bright); }
.logo-sphere { position: absolute; width: 24px; height: 24px; background: radial-gradient(circle at 30% 30%, var(--accent-bright), var(--bg-purple), transparent); border-radius: 50%; filter: blur(3px); animation: orbit 4s linear infinite; }
@keyframes orbit { 0% { transform: rotate(0deg) translateX(12px) rotate(0deg); } 100% { transform: rotate(360deg) translateX(12px) rotate(-360deg); } }
.logo-text { font-weight: 800; font-size: 1.2rem; color: #fff; letter-spacing: 1px; transition: color 0.4s ease; }
.logo-container:hover .logo-text { color: var(--accent-bright); }
.logo-subtext { font-weight: 600; font-size: 1.1rem; color: var(--text-main); transition: color 0.4s ease; }
.logo-container:hover .logo-subtext { color: var(--accent-bright); }

nav ul { list-style: none; display: flex; gap: 30px; }
nav a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; transition: color 0.3s; }
nav a:hover { color: var(--accent); }

/* === HERO === */
.hero { text-align: center; padding: 120px 0 80px; }
.hero p { font-size: 1.25rem; max-width: 800px; margin: 0 auto 40px; }
.hero-schema { margin-top: 50px; padding: 16px 24px; background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: 12px; display: inline-block; font-size: 0.95rem; color: var(--accent); }

.over-title {
    text-transform: uppercase; letter-spacing: 3px; color: var(--text-muted);
    font-size: 0.9rem; font-weight: 600; margin-bottom: 16px; display: block;
}
.subtitle { text-align: center; font-size: 1.2rem; max-width: 700px; margin: 0 auto 60px; }

@keyframes colorShift { 0% { color: var(--accent); } 50% { color: var(--accent-bright); } 100% { color: var(--accent-secondary); } }
.shifting-text { animation: colorShift 6s infinite alternate ease-in-out; font-weight: 700; }

/* === КАРТОЧКИ УСЛУГ И КЕЙСОВ === */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.icon-wrap { width: 56px; height: 56px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: background 0.3s; }
.card:hover .icon-wrap { background: rgba(255, 107, 53, 0.15); animation: pendulum 1.5s ease-in-out infinite alternate; }
@keyframes pendulum { 0% { transform: rotate(-15deg); } 100% { transform: rotate(15deg); } }
.icon-wrap svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.card:hover { transform: translateY(-5px); border: 3px solid var(--accent); box-shadow: 0 0 30px rgba(255, 107, 53, 0.2); }

.case-link { display: inline-block; margin-top: 16px; color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.95rem; transition: color 0.3s; }
.case-link:hover { color: var(--accent-bright); text-decoration: underline; }

.case-metrics, .metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--glass-border); }
.metric { text-align: center; padding: 20px; background: rgba(0,0,0,0.2); border-radius: 12px; border: 1px solid var(--glass-border); }
.metric-val { display: block; color: var(--accent); font-weight: 700; font-size: 1.4rem; margin-bottom: 8px; }
.metric-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.3; }

.disclaimer { font-size: 0.85rem; color: var(--text-muted); margin-top: 16px; font-style: italic; text-align: center; }

/* === ПРОЦЕСС === */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { padding: 32px; background: var(--glass-bg); border-radius: 16px; border: 2px solid var(--glass-border); transition: border-color 0.3s; }
.step:hover { border-color: rgba(255, 107, 53, 0.3); }
.step-num { font-size: 3rem; font-weight: 700; color: var(--accent); opacity: 0.2; line-height: 1; margin-bottom: 12px; }

/* === КОНТАКТЫ === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-methods { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.contact-btn { display: flex; align-items: center; gap: 12px; padding: 16px 24px; background: var(--glass-bg); border: 2px solid var(--glass-border); border-radius: 12px; text-decoration: none; color: var(--text-main); font-weight: 500; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.contact-btn:hover { transform: translateY(-5px); border: 2px solid var(--accent); color: var(--accent-bright); background: rgba(255, 107, 53, 0.05); }
.contact-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* === ФУТЕР === */
footer { background: rgba(0,0,0,0.3); padding: 40px 0; text-align: center; border-top: 1px solid var(--glass-border); }
.footer-socials { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.social-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--glass-bg); border: 2px solid var(--glass-border); color: var(--text-muted); text-decoration: none; transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.social-icon:hover { transform: rotate(360deg); color: var(--accent); border-color: var(--accent); }
.social-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
footer p { font-size: 0.85rem; margin-bottom: 8px; }
footer a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--accent); }

/* === СТРАНИЦА БРИФА === */
.brief-page { padding: 60px 20px; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.brief-container { max-width: 700px; width: 100%; }

.brief-card { background: var(--glass-bg); backdrop-filter: blur(16px); padding: 40px; border-radius: 20px; border: 2px solid var(--glass-border); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.brief-card h1 { font-size: 2rem; margin-bottom: 10px; color: var(--text-main); }
.brief-card > p { color: var(--text-muted); margin-bottom: 30px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-main); font-size: 0.95rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px; background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border);
    border-radius: 10px; color: var(--text-main); font-size: 1rem; font-family: inherit; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.checkbox-group { display: flex; align-items: flex-start; gap: 12px; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.checkbox-group input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.checkbox-group a { color: var(--accent); text-decoration: none; }

.btn-submit {
    width: 100%; padding: 16px; background: var(--accent); color: #fff; border: none; border-radius: 10px;
    font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
}
.btn-submit:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 140, 66, 0.5); }

/* === СТРАНИЦЫ КЕЙСОВ === */
.case-page { padding: 40px 20px; min-height: 100vh; }
.case-container { max-width: 900px; margin: 0 auto; }

.screenshot { width: 100%; margin: 20px 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--glass-border); background: rgba(0,0,0,0.3); }
.screenshot img { width: 100%; height: auto; display: block; }
.screenshot-caption { padding: 16px; background: rgba(0,0,0,0.2); font-size: 0.9rem; color: var(--text-muted); font-style: italic; }

.pdf-card { display: flex; align-items: center; justify-content: space-between; padding: 24px; background: rgba(0,0,0,0.2); border: 1px solid var(--glass-border); border-radius: 12px; margin-top: 24px; transition: border-color 0.3s; flex-wrap: wrap; gap: 16px; }
.pdf-card:hover { border-color: rgba(255, 107, 53, 0.3); }
.pdf-info { display: flex; align-items: center; gap: 16px; }
.pdf-icon { width: 48px; height: 48px; background: rgba(255, 107, 53, 0.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.pdf-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pdf-title { font-weight: 600; color: var(--text-main); margin-bottom: 4px; font-size: 1.05rem; }
.pdf-desc { font-size: 0.85rem; color: var(--text-muted); }
.pdf-btn { padding: 12px 24px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 8px; font-weight: 600; font-size: 0.95rem; transition: all 0.3s; white-space: nowrap; }
.pdf-btn:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3); }

/* === PRIVACY === */
.privacy-page { padding: 60px 20px; }
.privacy-container { max-width: 800px; margin: 0 auto; }
.highlight { background: rgba(255, 107, 53, 0.1); border-left: 3px solid var(--accent); padding: 15px; border-radius: 0 8px 8px 0; margin: 20px 0; }

/* === 404 === */
.error-page { 
    padding: 60px 20px; 
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.error-container { max-width: 600px; text-align: center; }
.error-code { font-size: 8rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 20px; text-shadow: 0 0 40px rgba(255, 107, 53, 0.3); }

/* === АДАПТИВ === */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .contact-grid { grid-template-columns: 1fr; }
    nav ul { display: none; }
    .case-metrics, .metrics { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .brief-card { padding: 24px; }
    .pdf-card { flex-direction: column; align-items: flex-start; }
}