:root {
    --purple: #7C3C9D;
    --pink: #DF128D;
    --orange: #FFB01F;

    --bg: #f7f4fa;
    --card: #ffffff;
    --text: #28242d;
    --muted: #716a78;
    --border: #e6deea;

    --gradient:
        linear-gradient(
            135deg,
            var(--purple) 0%,
            var(--pink) 100%
        );
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 10% 5%,
            rgba(124, 60, 157, .08) 0,
            rgba(124, 60, 157, 0) 27%
        ),
        radial-gradient(
            circle at 92% 15%,
            rgba(223, 18, 141, .07) 0,
            rgba(223, 18, 141, 0) 24%
        ),
        var(--bg);
}

.page {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 18px 50px;
}


/* -----------------------------------------------------
   ШАПКА ПРОЕКТА
----------------------------------------------------- */

.project-hero {
    position: relative;
    overflow: hidden;

    margin-bottom: 22px;
    padding: 25px 28px;

    color: white;
    background: var(--gradient);

    border-radius: 22px;

    box-shadow:
        0 10px 28px rgba(124, 60, 157, .20);
}


/* декоративные маршруты */

.project-hero::before {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    right: -80px;
    top: -100px;

    border: 2px dashed
        rgba(255,255,255,.26);

    border-radius: 50%;
}

.project-hero::after {
    content: "";

    position: absolute;

    width: 160px;
    height: 160px;

    left: -80px;
    bottom: -90px;

    border: 2px dashed
        rgba(255,255,255,.20);

    border-radius: 50%;
}


.project-brand {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    gap: 17px;
}


/* Самолётик */

.project-mark {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 74px;
    height: 74px;
    min-width: 74px;

    border-radius: 20px;

    background: white;

    transform: none;

    box-shadow:
        0 6px 16px rgba(60, 20, 80, .16);
}

.plane-icon {
    width: 58px;
    height: 52px;
    display: block;
    transform: rotate(-5deg);
}


.project-kicker {
    margin: 0 0 3px;

    color: #ffe1f4;

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .08em;
}


.project-name {
    margin: 0;

    font-size: 25px;
    font-weight: 800;
    line-height: 1.15;
}


.project-subname {
    margin: 5px 0 0;

    color: rgba(255,255,255,.90);

    font-size: 15px;
    line-height: 1.4;
}


/* -----------------------------------------------------
   КАРТОЧКА
----------------------------------------------------- */

.form-card {
    background: var(--card);

    border-radius: 20px;

    padding: 32px;

    box-shadow:
        0 10px 30px rgba(45, 27, 55, .08);
}


.form-title {
    margin: 0 0 9px;

    font-size: 30px;
    font-weight: 800;
    line-height: 1.22;

    color: #2d2530;
}


.form-description {
    margin: 0 0 28px;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.55;
}

.review-title { margin: 0 0 22px; font-size: 24px; }
.field-group { margin-top: 25px; }
.field-group label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; line-height: 1.45; }
.error-box { margin: 0 0 22px; padding: 16px 18px; border: 1px solid #efb7ce; border-radius: 10px; background: #fff3f8; }
.error-box ul { margin-bottom: 0; }
.review-list { margin: 0 0 28px; }
.review-list dt { margin-top: 16px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.review-list dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 17px; line-height: 1.45; }
.review-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.secondary-button { padding: 13px 20px; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: white; font: inherit; font-weight: 700; cursor: pointer; }


/* -----------------------------------------------------
   ПОЛЯ
----------------------------------------------------- */

.field {
    margin-top: 25px;
}


.field-label {
    display: block;

    margin-bottom: 8px;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}


.required {
    color: var(--pink);
}


input[type="text"],
input[type="number"],
input[type="url"],
textarea,
select {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: white;
    color: var(--text);

    font: inherit;
    font-size: 16px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}


input:focus,
textarea:focus,
select:focus {
    outline: none;

    border-color: var(--purple);

    box-shadow:
        0 0 0 3px
        rgba(124, 60, 157, .12);
}


textarea {
    min-height: 150px;
    resize: vertical;
}


.help {
    margin-top: 7px;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.45;
}


/* -----------------------------------------------------
   ГРУППЫ ВОПРОСОВ
----------------------------------------------------- */

.question-group-title {
    margin-top: 34px;
    margin-bottom: 9px;

    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;

    color: var(--purple);
}


/* -----------------------------------------------------
   ВАРИАНТЫ
----------------------------------------------------- */

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.option {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    padding: 13px 14px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: #fdfbfe;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease;
}


.option:hover {
    border-color: #d9c3e3;
    background: #faf5fc;
}


.option input {
    margin-top: 3px;

    accent-color: var(--purple);
}


/* -----------------------------------------------------
   УСЛОВНЫЕ ПОЛЯ
----------------------------------------------------- */

.conditional {
    margin-top: 18px;

    padding: 20px;

    border-left: 5px solid var(--orange);

    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            rgba(255,176,31,.10),
            rgba(255,255,255,1)
        );
}


/* -----------------------------------------------------
   НЕСКОЛЬКО ССЫЛОК
----------------------------------------------------- */

.multiurl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.add-link {
    width: auto;

    margin-top: 10px;

    padding: 9px 14px;

    border: 1px solid
        rgba(124, 60, 157, .22);

    border-radius: 9px;

    background: #fbf7fd;

    color: var(--purple);

    font-weight: 700;

    cursor: pointer;
}


.add-link:hover {
    background: #f4eaf8;
}


/* -----------------------------------------------------
   ОСНОВНАЯ КНОПКА
----------------------------------------------------- */

.submit-button {
    width: 100%;

    margin-top: 35px;

    padding: 15px 24px;

    border: 0;
    border-radius: 11px;

    background: var(--gradient);

    color: white;

    font: inherit;
    font-size: 17px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(124, 60, 157, .20);

    transition:
        transform .12s ease,
        box-shadow .12s ease;
}


.submit-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 10px 22px
        rgba(124, 60, 157, .26);
}


/* -----------------------------------------------------
   ОШИБКИ
----------------------------------------------------- */

.errors {
    margin: 20px 0;

    padding: 16px 18px;

    border-radius: 11px;

    background: #fff0f6;

    color: #8b205e;
}


.errors ul {
    margin: 8px 0 0;
    padding-left: 20px;
}


/* -----------------------------------------------------
   СПИСОК ФОРМ
----------------------------------------------------- */

.form-list-card {
    display: block;

    margin-top: 16px;
    padding: 22px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: white;
    color: inherit;

    text-decoration: none;

    box-shadow:
        0 4px 14px
        rgba(50, 35, 60, .04);

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}


.form-list-card:hover {
    transform: translateY(-2px);

    border-color: #d8bfdf;

    box-shadow:
        0 9px 24px
        rgba(50, 35, 60, .09);
}


.form-list-card h2 {
    margin: 0 0 6px;

    color: var(--purple);

    font-size: 20px;
}


.form-list-card p {
    margin: 0;

    color: var(--muted);

    line-height: 1.45;
}


/* -----------------------------------------------------
   УСПЕХ
----------------------------------------------------- */

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    margin-bottom: 16px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(124,60,157,.13),
            rgba(223,18,141,.13)
        );

    color: var(--purple);

    font-size: 34px;
    font-weight: 800;
}


/* -----------------------------------------------------
   MOBILE
----------------------------------------------------- */

@media (max-width: 640px) {

    .page {
        padding: 16px 12px 30px;
    }

    .project-hero {
        padding: 20px 18px;
        border-radius: 17px;
    }

    .project-brand {
        align-items: flex-start;
    }

    .project-mark {
        width: 58px;
        height: 58px;
        min-width: 58px;

        border-radius: 16px;
    }

    .plane-icon {
        width: 46px;
        height: 41px;
    }

    .project-name {
        font-size: 21px;
    }

    .project-subname {
        font-size: 14px;
    }

    .form-card {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .form-title {
        font-size: 24px;
    }
}


/* DEPENDENT SELECT */

.field select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font: inherit;
    border: 1px solid #d8d8df;
    border-radius: 10px;
    background: #fff;
    color: #252525;
}

.field select:focus {
    outline: none;
    border-color: #7C3C9D;
    box-shadow: 0 0 0 3px rgba(124, 60, 157, 0.10);
}

.field select:disabled {
    background: #f3f3f5;
    color: #777;
    cursor: not-allowed;
}

/* CUSTOM AUTOCOMPLETE */

.autocomplete {
    position: relative;
}

.autocomplete-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1000;

    max-height: 320px;
    overflow-y: auto;

    background: #fff;
    border: 1px solid #d9d9e2;
    border-radius: 12px;

    box-shadow:
        0 12px 28px
        rgba(0, 0, 0, 0.14);

    padding: 5px;
}

.autocomplete-option {
    display: block;
    width: 100%;

    border: 0;
    background: transparent;

    padding: 11px 13px;

    text-align: left;
    font: inherit;
    color: inherit;

    border-radius: 8px;
    cursor: pointer;
}

.autocomplete-option:hover,
.autocomplete-option.active {
    background: #f3edf7;
}

.autocomplete-option mark {
    background: transparent;
    color: #7C3C9D;
    font-weight: 700;
}

.autocomplete-empty {
    padding: 12px 13px;
    color: #777;
}
