:root {
    --bg-start: #0b1324;
    --bg-end: #16233a;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-bg-strong: rgba(255, 255, 255, 0.11);
    --card-border: rgba(255, 255, 255, 0.10);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --muted-2: #9fb0c7;
    --accent: #22c55e;
    --accent-dark: #16a34a;
    --success: #bbf7d0;
    --error: #fecaca;
    --radius: 24px;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), transparent 28%),
        radial-gradient(circle at right center, rgba(59, 130, 246, 0.10), transparent 25%),
        linear-gradient(135deg, var(--bg-start), var(--bg-end));
    min-height: 100vh;
}

.page {
    padding: 32px 16px 40px;
}

.container {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    grid-template-areas:
        "hero form"
        "map  form";
    gap: 24px;
    align-items: start;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero {
    grid-area: hero;
    padding: 34px;
}

.form-card {
    grid-area: form;
    position: sticky;
    top: 24px;
    padding: 0;
    overflow: hidden;
    background: var(--card-bg-strong);
}

.map-card {
    grid-area: map;
    padding: 0;
    overflow: hidden;
}

.map-card-inner {
    padding: 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.20);
    color: #dcfce7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.hero-title {
    margin: 18px 0 18px;
    max-width: 760px;
    font-size: clamp(38px, 4.2vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 800;
}

.lead {
    margin: 0;
    max-width: 780px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.event-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 18px 20px;
    min-width: 0;
}

.event-card-wide {
    grid-column: 1 / -1;
}

.event-label {
    font-size: 13px;
    color: var(--muted-2);
    margin-bottom: 8px;
}

.event-value {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--text);
    word-break: normal;
    overflow-wrap: break-word;
}

.info-block {
    margin-top: 22px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-block-accent {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.16);
}

.info-block-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-list {
    margin: 0;
    padding-left: 22px;
    color: var(--muted);
    line-height: 1.7;
}

.feature-list li + li {
    margin-top: 8px;
}

.feature-list-accent {
    color: #eafbf0;
}

.map-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.map-label {
    font-size: 13px;
    color: var(--muted-2);
}

.map-title {
    font-size: 22px;
    font-weight: 700;
}

.map-frame {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-card-inner {
    padding: 30px 28px;
}

.form-top-label {
    font-size: 13px;
    color: #86efac;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

h2 {
    margin: 0 0 10px;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.form-text,
.footer-text {
    color: var(--muted);
    line-height: 1.6;
}

.form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

label {
    font-size: 14px;
    font-weight: 600;
    color: #e2e8f0;
}

input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 16px;
    outline: none;
    transition: 0.2s ease;
}

input::placeholder {
    color: #94a3b8;
}

input:focus {
    border-color: rgba(34, 197, 94, 0.55);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

button {
    border: none;
    border-radius: 16px;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 14px 28px rgba(34, 197, 94, 0.24);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(34, 197, 94, 0.30);
}

button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.message {
    min-height: 24px;
    font-size: 15px;
    font-weight: 600;
    padding-top: 2px;
}

.message.success {
    color: var(--success);
}

.message.error {
    color: var(--error);
}

.footer-text {
    margin-top: 18px;
    font-size: 14px;
}

.success-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    animation: fadeInUp 0.4s ease;
}

.success-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 6px 16px rgba(34, 197, 94, 0.4);
}

.success-title {
    font-size: 16px;
    font-weight: 700;
    color: #bbf7d0;
}

.success-sub {
    font-size: 13px;
    color: #d1fae5;
    margin-top: 2px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1100px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hero"
            "form"
            "map";
    }

    .form-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .page {
        padding: 18px 12px 28px;
    }

    .hero,
    .form-card-inner,
    .map-card-inner {
        padding: 22px;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 46px);
        line-height: 1.03;
    }

    .lead {
        font-size: 16px;
    }

    .event-grid {
        grid-template-columns: 1fr;
    }

    .event-card-wide {
        grid-column: auto;
    }

    h2 {
        font-size: 28px;
    }

    .map-frame iframe {
        height: 340px;
    }
}