@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

:root {
    --bg-body: #262338;
    --bg-container: #121026;
    --bg-card: #1c1936;
    --bg-card-hover: #242044;
    --bg-input: #1a1630;
    --stroke: rgba(100, 200, 255, 0.15);
    --stroke-strong: rgba(100, 200, 255, 0.4);
    --text: #ffffff;
    --muted: #a0a5c0;
    --cyan: #64c8ff;
    --green: #64ffc8;
    --red: #f87171;
    --amber: #f59e0b;
    --radius: 12px;
}

body {
    background: var(--bg-body);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 14px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(100, 200, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 200, 255, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
    max-width: 100vw;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    width: 100%;
    background: var(--bg-container);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.header {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    background: rgb(44 40 64 / 95%);
    border-bottom: 1px solid var(--stroke);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    cursor: pointer;
}

.logo {
    width: 74px;
    height: 74px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 200, 255, 0.05);
    border: 1px solid var(--stroke);
}

.logo img {
    max-width: 70%;
    max-height: 70%;
}

.title h1 {
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 3px;
}

.title p {
    color: var(--muted);
    font-size: 13px;
}

.status-badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background 0.2s;
}

.status-badge.active {
    color: #ffffff;
    background: #187267;
    border-color: var(--green);
}

.status-badge.active:hover {
    background: #4fe0a8;
    border-color: #4fe0a8;
}

.status-badge.closed {
    color: #0a0817;
    background: var(--red);
    border-color: var(--red);
}

.content {
    padding: 22px;
    flex: 1;
}

.info-block {
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-left: 4px solid var(--cyan);
    padding: 18px 20px;
    border-radius: var(--radius);
    margin-bottom: 22px;
}

.info-block h3 {
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-block ul {
    list-style: none;
    padding: 0;
}

.info-block li {
    color: var(--muted);
    font-size: 14px;
    padding: 6px 0 6px 26px;
    position: relative;
    line-height: 1.55;
}

.info-block li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 14px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--cyan);
    transform: rotate(45deg);
}

.info-block.closed {
    background: var(--bg-card);
    border-color: rgba(245, 158, 11, 0.3);
    border-left-color: var(--amber);
}

.info-block.closed p {
    color: #d9c7a3;
    font-size: 15px;
    line-height: 1.6;
}

.registration-form {
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    padding: 22px;
    border-radius: var(--radius);
    margin-bottom: 22px;
}

.registration-form h2 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.registration-form h2::before {
    content: "";
    width: 10px;
    height: 22px;
    border-radius: 3px;
    background: var(--cyan);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-hint {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.label-note {
    color: var(--muted);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="url"],
input[type="email"],
input[type="number"],
input[type="file"],
textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text);
    background: var(--bg-input);
    transition: border-color 0.2s;
    outline: none;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

input:hover,
textarea:hover {
    border-color: var(--stroke-strong);
}

input:focus,
textarea:focus {
    border-color: var(--cyan);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.6);
    cursor: pointer;
    opacity: 0.6;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

input[type="file"] {
    padding: 12px;
    cursor: pointer;
    color: var(--muted);
    font-size: 13px;
    border: 1px dashed var(--stroke-strong);
}

input[type="file"]:hover {
    border-color: var(--cyan);
}

input[type="file"]:focus {
    border-color: var(--cyan);
}

input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    color: #0a0817;
    cursor: pointer;
    background: var(--cyan);
    transition: background 0.2s;
}

input[type="file"]::file-selector-button:hover {
    background: #4fb3ea;
}

input[type="file"]::-webkit-file-upload-button {
    margin-right: 14px;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    color: #0a0817;
    cursor: pointer;
    background: var(--cyan);
    transition: background 0.2s;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: #4fb3ea;
}

.btn {
    background: #414270;
    color: #ffffff;
    border: none;
    padding: 15px 22px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: background 0.2s;
}

.btn:hover {
    background: #2d2e56;
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--stroke-strong);
}

.btn-secondary:hover {
    background: rgba(100, 200, 255, 0.1);
    color: var(--text);
    border-color: var(--cyan);
}

.btn-primary {
    background: rgba(100, 200, 255, 0.1);
    color: var(--cyan);
    border: 1px solid var(--cyan);
}

.btn-primary:hover {
    background: rgba(100, 200, 255, 0.2);
}

.btn-success {
    background: var(--green);
}

.btn-success:hover {
    background: #4fe0a8;
}

.hidden {
    display: none !important;
}

.notification {
    position: fixed;
    top: 16px;
    right: 16px;
    left: 16px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text);
    z-index: 1000;
    animation: slideIn 0.3s ease;
    font-size: 14px;
    line-height: 1.45;
}

@media (min-width: 640px) {
    .notification {
        left: auto;
        width: auto;
        min-width: 320px;
        max-width: 460px;
    }
}

.notification.error {
    border-left: 4px solid var(--red);
}

.notification.success {
    border-left: 4px solid var(--green);
}

.notification.info {
    border-left: 4px solid var(--cyan);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.footer {
    border-top: 1px solid var(--stroke);
    padding: 16px 20px;
    text-align: center;
    background: var(--bg-body);
}

.footer a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--cyan);
}

.snow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(2px 2px at 10% 20%, rgba(191, 233, 255, 0.4), transparent),
        radial-gradient(2px 2px at 30% 70%, rgba(191, 233, 255, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 50% 30%, rgba(191, 233, 255, 0.4), transparent),
        radial-gradient(2px 2px at 70% 80%, rgba(191, 233, 255, 0.2), transparent),
        radial-gradient(1.5px 1.5px at 90% 15%, rgba(191, 233, 255, 0.4), transparent),
        radial-gradient(2px 2px at 20% 90%, rgba(191, 233, 255, 0.3), transparent),
        radial-gradient(1.5px 1.5px at 80% 50%, rgba(191, 233, 255, 0.4), transparent),
        radial-gradient(2px 2px at 40% 10%, rgba(191, 233, 255, 0.2), transparent);
    background-size: 100% 100%;
    animation: snowfall 18s linear infinite;
    opacity: 0.5;
}

@keyframes snowfall {
    from { transform: translateY(-10%); }
    to   { transform: translateY(10%); }
}

@media (prefers-reduced-motion: reduce) {
    .snow { animation: none; }
}

.hero {
    text-align: center;
    padding: 40px 20px 30px;
    border-radius: var(--radius);
    margin-bottom: 22px;
    background: var(--bg-card);
    border: 1px solid var(--stroke);
}

.hero-badge {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(100, 200, 255, 0.08);
    border: 1px solid var(--stroke);
    margin-bottom: 18px;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 14px;
}

.hero-subtitle {
    max-width: 640px;
    margin: 0 auto 24px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-actions .btn {
    width: auto;
    min-width: 220px;
}

.section {
    background: var(--bg-card);
    border: 1px solid var(--stroke);
    padding: 22px;
    border-radius: var(--radius);
    margin-bottom: 22px;
}

.section-title {
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.2px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: "";
    width: 10px;
    height: 22px;
    border-radius: 3px;
    background: var(--cyan);
}

.section-title i {
    color: var(--cyan);
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.section-lead {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.65;
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
    .cards-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Обновленный блок карточек --- */
.card {
    background: var(--bg-card-hover);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-icon {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--cyan);
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 200, 255, 0.08);
    border: 1px solid var(--stroke);
}

.card h3 {
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.ideas,
.requirements {
    list-style: none;
    display: grid;
    gap: 10px;
}

select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    font-size: 15px;
    color: var(--text);
    background: var(--bg-input);
    outline: none;
}
select:focus { border-color: var(--cyan); }

@media (min-width: 640px) {
    .ideas {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ideas li,
.requirements li {
    position: relative;
    padding: 10px 14px 10px 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.ideas li::before,
.requirements li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 2px;
    background: var(--cyan);
    transform: rotate(45deg);
}

.ideas li i,
.requirements li i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
    font-size: 13px;
}

.ideas li:has(i)::before,
.requirements li:has(i)::before {
    display: none;
}

.timeline {
    display: grid;
    gap: 12px;
}

@media (min-width: 640px) {
    .timeline {
        grid-template-columns: repeat(3, 1fr);
    }
}

.timeline-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--stroke);
    border-left: 4px solid var(--cyan);
    border-radius: var(--radius);
    padding: 14px 16px;
}

.timeline-date {
    color: var(--cyan);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}

.timeline-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: border-color 0.2s;
}

.faq details[open] {
    border-color: var(--stroke-strong);
}

.faq summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    position: relative;
    padding-right: 24px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyan);
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.faq details[open] summary::after {
    content: "−";
}

.faq p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

.cta-section {
    text-align: center;
}

.cta-section .section-title {
    justify-content: center;
}

.cta-section .section-title::before {
    display: none;
}

.cta-section .section-lead {
    margin-bottom: 18px;
}

.cta-section .btn {
    width: auto;
    min-width: 240px;
}

@media (max-width: 480px) {
    body {
        padding: 8px;
    }

    .container {
        border-radius: 12px;
    }

    .header {
        padding: 14px 16px;
    }

    .logo {
        width: 58px;
        height: 58px;
    }

    .title h1 {
        font-size: 17px;
    }

    .title p {
        font-size: 12px;
    }

    .content {
        padding: 16px;
    }

    .registration-form {
        padding: 16px;
    }

    .btn {
        padding: 14px 18px;
        font-size: 14px;
    }

    input[type="file"]::file-selector-button,
    input[type="file"]::-webkit-file-upload-button {
        padding: 9px 14px;
        font-size: 12px;
    }

    .hero {
        padding: 28px 14px 22px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .section {
        padding: 16px;
    }

    .section-title {
        font-size: 18px;
    }

    .card {
        padding: 20px 16px;
    }
}