:root {
    --bg-main: #ffffff;
    --bg-alt: #f6f7fb;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-color: #e2e8f0;
    /* Фирменный индиго из логотипа Астроцид */
    --brand-primary: #3b00a8;
    --brand-hover: #2c0080;
    --brand-light: #f1ecff;
    --brand-border: rgba(59, 0, 168, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Шапка */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply; /* Делает белый фон JPG полностью прозрачным */
}

.logo-brand {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--brand-primary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--brand-primary);
}

.nav-btn {
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--brand-primary);
    color: #ffffff;
}

.nav-btn:hover {
    background: var(--brand-hover);
    color: #ffffff;
}

/* Hero секция */
.hero {
    position: relative;
    padding: 185px 0 115px;
    text-align: center;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(59, 0, 168, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 0, 168, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 680px;
    height: 320px;
    background: radial-gradient(circle, rgba(59, 0, 168, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 840px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: var(--brand-light);
    border: 1px solid var(--brand-border);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-main);
    margin-bottom: 22px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 38px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 0.96rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(59, 0, 168, 0.22);
}

.btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

/* Секции */
.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand-primary);
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Блок Миссии */
.mission-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--brand-primary);
    border-radius: 18px;
    padding: 48px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.04);
}

.mission-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--brand-primary);
    margin-bottom: 12px;
}

.mission-heading {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}

.mission-text {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 36px;
}

.mission-text strong {
    color: var(--brand-primary);
}

.mission-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
}

.pillar {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pillar-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-primary);
}

.pillar-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
}

/* 4 сферы интересов */
.domains-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.domain-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.domain-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-primary);
    box-shadow: 0 16px 32px rgba(59, 0, 168, 0.08);
}

.domain-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.domain-index {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-primary);
    background: var(--brand-light);
    padding: 4px 12px;
    border-radius: 6px;
}

.domain-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.domain-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

.domain-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Блок контактов */
.contact-box {
    background: linear-gradient(135deg, #270073 0%, #3b00a8 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 56px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.section-tag.light {
    color: #c4b5fd;
}

.contact-info h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 32px;
}

.email-block {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 18px 22px;
}

.email-label {
    display: block;
    font-size: 0.82rem;
    color: #c4b5fd;
    margin-bottom: 6px;
}

.email-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.email-link {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
}

.email-link:hover {
    text-decoration: underline;
}

.copy-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.btn-white {
    background: #ffffff;
    color: var(--brand-primary);
    width: 100%;
}

.btn-white:hover {
    background: #f1ecff;
}

.form-status {
    font-size: 0.9rem;
    color: #c4b5fd;
    text-align: center;
}

/* Подвал */
.footer {
    padding: 36px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.92rem;
    color: var(--text-muted);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand strong {
    color: var(--brand-primary);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-right a {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 500;
}

/* Адаптивность */
@media (max-width: 900px) {
    .domains-grid,
    .mission-pillars,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .mission-card,
    .contact-box {
        padding: 32px 24px;
    }

    .nav {
        gap: 16px;
    }
}