﻿:root {
    --bg: #f5f7fb;
    --card: rgba(255, 255, 255, 0.9);
    --text: #0f172a;
    --muted: #64748b;
    --line: #dbe3ef;
    --line-strong: #c9d5e6;
    --primary: #2563eb;
    --primary-soft: rgba(37, 99, 235, 0.12);
    --white: #fff;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --radius: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 30%), radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.14), transparent 26%), var(--bg);
    background-attachment: fixed; /* фиксируем фон */

    min-height: 100vh;
    padding: 32px 16px;
}

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at 20% 20%, rgba(59,130,246,0.25), transparent 40%), radial-gradient(circle at 80% 80%, rgba(168,85,247,0.25), transparent 40%);
        z-index: -1;
    }

.container {
    max-width: 1120px;
    margin: 0 auto;
}

.card {
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.header {
    padding: 28px 32px 10px;
}

.title {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.subtitle {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
}

form {
    padding: 14px 32px 32px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.section {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(219, 227, 239, 0.9);
    border-radius: 20px;
    padding: 22px;
}

.section-title {
    margin: 0 0 18px;
    font-size: 18px;
    font-weight: 750;
}

.fields {
    display: grid;
    gap: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

    .field label {
        font-size: 14px;
        font-weight: 600;
        color: #334155;
    }

.input,
.textarea,
.fake-select-trigger,
.dropdown-search {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text);
    outline: none;
    transition: .2s ease;
    font: inherit;
}

.input,
.fake-select-trigger,
.dropdown-search {
    height: 50px;
    padding: 0 14px;
}

.textarea {
    min-height: 90px;
    resize: vertical;
    padding: 12px 14px;
}

    .input::placeholder,
    .textarea::placeholder,
    .dropdown-search::placeholder {
        color: #94a3b8;
    }

    .input:focus,
    .textarea:focus,
    .fake-select.open .fake-select-trigger,
    .dropdown-search:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px var(--primary-soft);
    }

.fake-select {
    position: relative;
}

.fake-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    gap: 12px;
}

.fake-select-value {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--text);
}

.fake-select-placeholder {
    color: #94a3b8;
}

.fake-select-arrow {
    width: 12px;
    height: 12px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    transition: transform .2s ease;
    margin-top: -4px;
    flex: 0 0 12px;
}

.fake-select.open .fake-select-arrow {
    transform: rotate(-135deg);
    margin-top: 4px;
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    padding: 10px;
    z-index: 30;
    display: none;
}

.fake-select.open .dropdown {
    display: block;
}

.dropdown-search {
    margin-bottom: 10px;
}

.options {
    max-height: 230px;
    overflow: auto;
    padding-right: 2px;
}

.option {
    border-radius: 12px;
    padding: 11px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #1e293b;
    transition: .16s ease;
}

    .option:hover,
    .option.active {
        background: #eff6ff;
        color: var(--primary);
    }

    .option.hidden {
        display: none;
    }

.empty-state {
    padding: 12px;
    color: var(--muted);
    font-size: 14px;
    display: none;
}

.check-group {
    display: grid;
    gap: 12px;
    margin-top: 2px;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #334155;
    font-size: 14px;
    user-select: none;
}

    .check input {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border: 1.5px solid var(--line-strong);
        border-radius: 7px;
        background: var(--white);
        margin: 0;
        flex: 0 0 20px;
        display: inline-grid;
        place-items: center;
        transition: .18s ease;
    }

        .check input:checked {
            background: var(--primary);
            border-color: var(--primary);
        }

            .check input:checked::after {
                content: "✓";
                color: #fff;
                font-size: 12px;
                font-weight: 800;
            }

    .check a {
        color: var(--primary);
        text-decoration: none;
    }

        .check a:hover {
            text-decoration: underline;
        }

.actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.button {
    border: none;
    min-width: 300px;
    height: 56px;
    border-radius: 16px;
    padding: 0 24px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .button:hover {
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(37, 99, 235, 0.32);
    }

.hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.hidden-native {
    display: none;
}

@media (max-width: 920px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        padding: 16px 12px;
    }

    .header,
    form {
        padding-left: 18px;
        padding-right: 18px;
    }

    .title {
        font-size: 24px;
    }

    .section {
        padding: 16px;
    }

    .button {
        width: 100%;
        min-width: 0;
    }
}

.cardsC {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

    .cardsC input {
        display: none;
    }

.cardC {
    flex-grow: 4;
    width: 200px;
    padding: 20px;
    border-radius: 20px;
    background: white;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.25s;
    border: 1px solid rgba(219, 227, 239, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .cardC img {
        width: 60px;
        margin-bottom: 10px;
    }

    .cardC span {
        display: block;
        font-weight: 500;
    }

    /* hover */
    .cardC:hover {
        border-color: #3b82f6;
    }

/* выбранный чекбокс */
input:checked + .cardC {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}