/* Köningsblick — design.json dark premium system */

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0806;
    --bg-surface: #12100e;
    --bg-elevated: #1a1614;
    --text-primary: #FFFFFF;
    --text-secondary: #B8B0A8;
    --text-tertiary: #7A726C;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-default: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.20);
    --accent: #4A8FE7;
    --accent-soft: rgba(74, 143, 231, 0.15);
    --accent-glow: rgba(74, 143, 231, 0.4);
    --brown: #C4A882;
    --brown-soft: rgba(196, 168, 130, 0.12);
    --brown-muted: #8B7355;
    --brown-glow: rgba(196, 168, 130, 0.25);
    --radius-card: 24px;
    --radius-pill: 999px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --header-h: 80px;
    --container: min(1320px, 92vw);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.55;
    font-size: 18px;
    overflow-x: hidden;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

/* Glow effects */
.glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(120px);
}

.glow-hero {
    width: 600px;
    height: 600px;
    top: -200px;
    left: 30%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--brown-glow) 0%, transparent 70%);
    opacity: 0.5;
}

.glow-accent {
    width: 450px;
    height: 450px;
    bottom: 15%;
    right: -80px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.45;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 100;
    transition: background 250ms var(--ease), border-color 250ms var(--ease);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-bottom-color: var(--border-subtle);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    height: 44px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 200ms ease;
}

.nav a:hover {
    color: var(--text-primary);
}

.nav-cta {
    background: var(--text-primary) !important;
    color: var(--bg-primary) !important;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    font-weight: 600 !important;
    transition: transform 200ms var(--ease), box-shadow 200ms ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 250ms var(--ease);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 56px;
    padding: 0 32px;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 200ms var(--ease), box-shadow 200ms ease, background 200ms ease;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-sm {
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
}

.btn-submit {
    width: 100%;
    margin-top: 16px;
    position: relative;
}

.btn-loader {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 140px 0;
}

.section-dark {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.section-banner {
    padding: 80px 0;
}

.info-banner {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    padding: 40px 44px;
    background: linear-gradient(135deg, var(--brown-soft) 0%, var(--accent-soft) 100%);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
    border-left: 4px solid var(--brown);
}

.info-banner-icon {
    font-size: 40px;
    flex-shrink: 0;
}

.info-banner-title {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.info-banner-content p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

.info-banner-content strong {
    color: var(--brown);
}

/* ── FAQ ─────────────────────────────── */
.section-faq {
    background: var(--bg-secondary);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s;
}

.faq-item:hover {
    border-color: rgba(255,255,255,0.13);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    line-height: 1.4;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--brown);
}

.faq-icon {
    flex-shrink: 0;
    font-size: 1.4rem;
    color: var(--brown);
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 24px 22px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.faq-answer strong {
    color: var(--text-primary);
}

/* ── Form ────────────────────────────── */
.section-form {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding-bottom: 180px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.section-desc {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary);
    line-height: 1.5;
}

.section-desc.centered {
    text-align: center;
}

.section-note {
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 17px;
}

.eyebrow {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 24px;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-h);
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.22;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(10, 8, 6, 0.85) 45%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-visual-frame {
    border-radius: 32px;
    overflow: hidden;
    border: 1px solid var(--border-default);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 60px var(--brown-glow);
    max-width: 420px;
    width: 100%;
}

.hero-visual-frame img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

.hero-title {
    font-size: clamp(42px, 8vw, 96px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.045em;
    margin-bottom: 32px;
}

.text-glow {
    background: linear-gradient(135deg, #fff 20%, var(--brown) 55%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: clamp(18px, 2.2vw, 24px);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.45;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    flex-wrap: wrap;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--brown-soft), var(--accent-soft));
    border: 1px solid var(--border-default);
    border-radius: var(--radius-card);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    text-transform: lowercase;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-default);
}

/* Split layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse > * {
    direction: ltr;
}

.feature-list {
    list-style: none;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-subtle);
    opacity: 0.55;
    transition: opacity 300ms var(--ease);
}

.feature-item.active,
.feature-item:hover {
    opacity: 1;
}

.feature-num {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
    min-width: 28px;
}

.feature-item strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}

.feature-item p {
    font-size: 16px;
    color: var(--text-secondary);
}

.showcase-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 32px;
    overflow: hidden;
    padding: 48px 40px;
}

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.platform-tags span {
    padding: 10px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: border-color 200ms ease, color 200ms ease;
}

.platform-tags span:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.showcase-caption {
    margin-top: 32px;
    font-size: 15px;
    color: var(--text-tertiary);
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-card);
    padding: 36px 32px;
    transition: transform 300ms var(--ease), border-color 300ms ease, box-shadow 300ms ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--brown-muted);
    box-shadow: 0 12px 40px var(--brown-soft);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.card p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.card strong {
    color: var(--text-primary);
}

/* Activities */
.activities-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activities-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    font-size: 17px;
    transition: transform 250ms var(--ease), border-color 250ms ease;
}

.activities-list li:hover {
    transform: translateX(6px);
    border-color: var(--border-default);
}

.activities-list span {
    font-size: 24px;
}

.activities-hint {
    margin-top: 24px;
    font-size: 16px;
    color: var(--text-tertiary);
    font-style: italic;
}

/* Steps */
.steps-track {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.steps-progress {
    grid-column: 1 / -1;
    height: 3px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.steps-progress-bar {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--brown), var(--accent));
    border-radius: 2px;
    transition: width 450ms var(--ease);
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 20px;
    text-align: left;
    cursor: pointer;
    transition: background 250ms var(--ease), border-color 250ms var(--ease);
    color: inherit;
    font-family: inherit;
}

.step-item:hover,
.step-item.active {
    background: var(--bg-surface);
    border-color: var(--border-subtle);
}

.step-item.active {
    border-color: var(--brown-muted);
    box-shadow: 0 0 40px var(--brown-glow);
}

.step-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    transition: background 250ms ease;
}

.step-item.active .step-num {
    background: linear-gradient(135deg, var(--brown), var(--accent));
    color: #fff;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.step-visual {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    min-height: 320px;
}

.step-visual-card {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 48px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 32px;
    min-height: 320px;
    animation: fadeSlideIn 450ms var(--ease);
}

.step-visual-card.active {
    display: flex;
}

.visual-emoji {
    font-size: 64px;
    margin-bottom: 24px;
}

.step-visual-card p {
    font-size: 20px;
    color: var(--text-secondary);
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Examples gallery */
.examples-gallery {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 16px 0;
}

.example-card {
    flex: 0 0 auto;
    width: 220px;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    transition: transform 400ms var(--ease), box-shadow 400ms ease;
}

.example-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 60px rgba(59, 130, 246, 0.08);
}

.example-card img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
}

.example-card figcaption {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
}

.example-placeholder .placeholder-inner {
    aspect-ratio: 9 / 16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-tertiary);
}

.example-placeholder span {
    font-size: 40px;
}

/* Form */
.application-form {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 32px;
    padding: 48px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.optional {
    font-weight: 400;
    color: var(--text-tertiary);
}

.form-group input,
.form-group select,
.form-group textarea,
.language-row input,
.language-row select {
    height: 52px;
    padding: 0 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 16px;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-group textarea {
    height: auto;
    padding: 14px 18px;
    resize: vertical;
    line-height: 1.6;
}

.form-group input:focus,
.language-row input:focus,
.language-row select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.field-hint {
    font-size: 13px;
    color: var(--text-tertiary);
}

.field-error {
    font-size: 13px;
    color: #ff8a8a;
    display: none;
    margin-top: 4px;
}

.field-error.visible {
    display: block;
}

.field-error[hidden] {
    display: none !important;
}

.phone-input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-right: none;
    border-radius: 14px 0 0 14px;
    color: var(--brown);
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.phone-input-group input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 0 14px 14px 0;
    color: var(--text-primary);
    font-family: var(--font);
    font-size: 16px;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.phone-input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(74, 143, 231, 0.15);
}

.phone-digit-count {
    color: var(--brown);
    font-weight: 600;
    margin-top: 6px;
}

.form-group input.input-invalid {
    border-color: rgba(255, 100, 100, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.12);
}

.form-group input.input-valid {
    border-color: rgba(196, 168, 130, 0.5);
}

.timezone-note {
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    margin-bottom: 20px !important;
}

.form-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.form-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.language-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
}

.lang-remove {
    width: 44px;
    height: 44px;
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: 12px;
    color: #ff6b6b;
    cursor: pointer;
    font-size: 18px;
    transition: background 200ms ease;
}

.lang-remove:hover {
    background: rgba(255, 80, 80, 0.2);
}

/* File upload */
.file-upload {
    position: relative;
    border: 2px dashed var(--border-default);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: border-color 250ms ease, background 250ms ease;
}

.file-upload:hover,
.file-upload.dragover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.04);
}

.file-upload input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 12px;
}

.file-upload p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.upload-count {
    font-size: 14px;
    color: var(--accent);
    font-weight: 500;
}

.photo-preview {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.preview-thumb-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.preview-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
    display: block;
}

.preview-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #e53e3e;
    border: 2px solid var(--bg-primary);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.15s;
}

.preview-remove:hover {
    background: #c53030;
    transform: scale(1.15);
}

/* Calendar */
.calendar-widget {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
    min-height: 200px;
}

.calendar-loading {
    text-align: center;
    color: var(--text-tertiary);
    padding: 40px;
}

.calendar-days {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 20px;
    scrollbar-width: thin;
}

.calendar-day {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 14px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    text-align: center;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease;
    color: var(--text-primary);
    font-family: inherit;
}

.calendar-day:hover,
.calendar-day.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.calendar-day .day-name {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.calendar-day .day-num {
    font-size: 22px;
    font-weight: 700;
    margin: 4px 0;
    color: #ffffff;
}

.calendar-day .day-month {
    font-size: 11px;
    color: var(--text-secondary);
}

.calendar-day.selected .day-num {
    color: var(--brown);
}

.calendar-times {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}

.time-slot {
    padding: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms var(--ease);
    color: var(--text-primary);
    font-family: inherit;
}

.time-slot:hover,
.time-slot.selected {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent);
}

.time-slot:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.selected-slot {
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    display: none;
}

.selected-slot.visible {
    display: block;
}

.form-errors {
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(255, 80, 80, 0.08);
    border: 1px solid rgba(255, 80, 80, 0.25);
    border-radius: 14px;
    color: #ff8a8a;
    font-size: 15px;
}

.form-errors ul {
    list-style: none;
}

.form-errors li {
    padding: 4px 0;
}

.form-errors li::before {
    content: "• ";
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
    animation: fadeIn 300ms ease;
}

.modal-overlay[hidden] {
    display: none;
}

.modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: 32px;
    padding: 48px 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    animation: modalIn 450ms var(--ease);
}

.modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent), #60A5FA);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
    font-weight: 700;
}

.modal h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.55;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Footer */
.footer {
    padding: 64px 0;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.footer-inner {
    text-align: center;
}

.footer-logo {
    height: 36px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.footer p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.footer-note {
    margin-top: 8px;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .hero-visual-frame {
        max-width: 320px;
        margin: 0 auto;
    }

    .info-banner {
        flex-direction: column;
        padding: 28px 24px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split-layout,
    .steps-track {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .split-layout.reverse {
        direction: ltr;
    }

    .step-visual {
        position: static;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 96px 0;
    }

    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-subtle);
        transform: translateY(-120%);
        opacity: 0;
        transition: transform 350ms var(--ease), opacity 350ms ease;
        pointer-events: none;
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .application-form {
        padding: 28px 20px;
    }

    .language-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .examples-gallery {
        gap: 16px;
    }

    .example-card {
        width: 160px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}
