:root {
    --bg-dark: #F7F4EF;
    --bg-deeper: #EFEAE1;
    --surface: rgba(55,52,53,0.035);
    --surface-hover: rgba(55,52,53,0.06);
    --border: rgba(55,52,53,0.12);
    --border-hover: rgba(55,52,53,0.22);
    --primary: #2563EB;
    --primary-strong: #1D4ED8;
    --accent: #6366F1;
    --accent-2: #0891B2;
    --gold: #B8860B;
    --gold-bg: linear-gradient(135deg, #F59E0B, #D97706);
    --text-primary: #26241F;
    --text-secondary: #5A554E;
    --text-muted: #8A8378;
    --glass: rgba(255, 255, 255, 0.72);
    --shadow-lg: 0 20px 60px rgba(55,52,53,0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
    --success: #16A34A;
    --danger: #DC2626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% -10%, rgba(59,130,246,0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(129,140,248,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 50% 100%, rgba(34,211,238,0.05) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: aurora 15s ease-in-out infinite alternate;
}

@keyframes aurora {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

h1, h2, h3, .display {
    font-family: 'Syne', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 2rem;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(247, 244, 239, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 2rem;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.logo .dot { color: var(--accent-2); }

.site-logo {
    display: block;
    width: 192px;
    height: 28px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.site-logo img {
    position: absolute;
    left: -35.21%;
    top: -363.5%;
    width: 170.41%;
    height: 827.08%;
    max-width: none;
}

@media (max-width: 480px) {
    .site-logo { width: 150px; height: 22px; }
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 1rem;
}

.lang-switch a {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.lang-switch a::after { display: none; }

.lang-switch a.lang-active {
    color: var(--accent-2);
    pointer-events: none;
}

.lang-switch .lang-sep {
    color: var(--text-muted);
    opacity: 0.4;
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.nav-links a:not(.cta-btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.nav-links a:not(.cta-btn):hover::after { width: 100%; }
.nav-links a:hover { color: var(--text-primary); }

.nav-links a.nav-active {
    color: var(--primary);
    font-weight: 600;
}
.nav-links a.nav-active::after { width: 100%; }

.cta-btn {
    background: linear-gradient(135deg, var(--primary-strong), var(--accent));
    color: white;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px 0;
    background: var(--text-primary);
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-strong), var(--accent));
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.btn-secondary {
    border: 1px dashed var(--border-hover);
    color: var(--primary);
    background: transparent;
    padding: .7rem 1.2rem;
    font-size: .9rem;
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, .06);
}

.btn-ghost {
    border: 1px solid transparent;
    color: var(--text-primary);
    background: transparent;
}

.btn-ghost:hover { color: var(--primary); }

.btn-white {
    background: #26241F;
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(38,36,31,0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(38,36,31,0.3);
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s ease;
}

.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 2rem 4rem;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 1.15rem;
}

section { padding: 6rem 2rem; }

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.2);
    border-radius: 100px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34,211,238,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(34,211,238,0); }
    100% { box-shadow: 0 0 0 0 rgba(34,211,238,0); }
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, -10px) rotate(10deg); }
}

.cta-section { padding: 6rem 2rem; position: relative; }

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 60%);
    animation: float 8s ease-in-out infinite alternate;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-content p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

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

/* ---------- forms ---------- */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group label .req { color: var(--danger); }

.form-group .hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    font-weight: 400;
}

.form-input, .form-select, .form-textarea, .form-file {
    width: 100%;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(59,130,246,0.05);
}

.form-select option { background: var(--bg-dark); color: var(--text-primary); }

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

.form-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
}

/* checkboxes / radios as chips */
.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.chip {
    position: relative;
}

.chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.chip span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.chip input:checked + span {
    border-color: var(--primary);
    background: rgba(59,130,246,0.1);
    color: var(--primary);
    font-weight: 600;
}

.chip input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* alert / flash */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    border: 1px solid;
}
.alert-success { background: rgba(22,163,74,0.1); border-color: rgba(22,163,74,0.3); color: var(--success); }
.alert-error { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.3); color: var(--danger); }
.alert-info { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: var(--primary); }

/* ---------- footer ---------- */
footer {
    background: var(--bg-deeper);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 1rem 0;
    max-width: 300px;
}

.footer-social { display: flex; gap: 0.75rem; }

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.social-btn:hover {
    background: linear-gradient(135deg, var(--primary-strong), var(--accent));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    margin-bottom: 1.25rem;
}

.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: 0.75rem; }

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.3s;
}

.footer-column a:hover { color: var(--primary); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s;
}
.footer-bottom a:hover { color: var(--primary); }

.u-center { text-align: center; }

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        max-width: 320px;
        background: var(--bg-dark);
        padding: 6rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        border-left: 1px solid var(--border);
        box-shadow: -20px 0 40px rgba(55,52,53,0.18);
        overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    .mobile-toggle { display: block; }
    .section-title { font-size: 2rem; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 2.2rem; }
}