:root {
    --arkel-navy: #0A1F44;
    --arkel-navy-700: #102A63;
    --arkel-navy-900: #061430;
    --arkel-blue: #1E63C8;
    --arkel-blue-600: #1A56B0;
    --arkel-blue-100: #E8F0FB;
    --arkel-cyan: #38BDF8;
    --arkel-ink: #0F172A;
    --arkel-ink-2: #334155;
    --arkel-muted: #64748B;
    --arkel-line: #E2E8F0;
    --arkel-line-2: #CBD5E1;
    --arkel-bg: #F8FAFC;
    --arkel-bg-2: #F1F5F9;
    --arkel-white: #FFFFFF;
    --arkel-danger: #DC2626;
    --arkel-success: #16A34A;

    --nav-h: 68px;
    --footer-h: 56px;

    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04);
    --shadow-md: 0 10px 30px rgba(10, 31, 68, .08);
    --shadow-card: 0 30px 60px -20px rgba(10, 31, 68, .18),
                   0 10px 30px -12px rgba(10, 31, 68, .10);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

.app-body {
    position: relative;
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    color: var(--arkel-ink);
    background:
        radial-gradient(1100px 700px at 8% -10%, rgba(30, 99, 200, .08) 0%, transparent 62%),
        radial-gradient(900px 600px at 100% 110%, rgba(56, 189, 248, .06) 0%, transparent 60%),
        var(--arkel-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.app-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 85%);
    pointer-events: none;
    z-index: 0;
}

.app-nav,
.app-main,
.app-footer {
    position: relative;
    z-index: 1;
}

.app-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    color: #F1F5F9;
    background:
        radial-gradient(600px 200px at 15% 50%, rgba(30, 99, 200, .38) 0%, transparent 70%),
        linear-gradient(180deg, var(--arkel-navy) 0%, var(--arkel-navy-700) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .10), 0 8px 24px -12px rgba(10, 31, 68, .35);
}

.app-nav__inner {
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.app-nav__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
}

    .app-nav__brand img {
        height: 32px;
        width: auto;
        filter: brightness(0) invert(1);
        opacity: .96;
    }

.app-nav__menu {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
}

.app-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .01em;
    color: rgba(241, 245, 249, .78);
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
    white-space: nowrap;
}

.app-nav__link i {
    font-size: 15px;
    opacity: .9;
}

.app-nav__link:hover,
.app-nav__link:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    outline: none;
}

.app-nav__link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .10);
}

.app-nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--arkel-cyan, #06B6D4), #7DD3FC);
    box-shadow: 0 0 12px rgba(6, 182, 212, .55);
}

.app-nav__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
}

.app-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.page-hero {
    width: 100%;
    padding: 48px 28px 24px;
    display: flex;
    justify-content: center;
}

.page-hero__inner {
    width: 100%;
    max-width: 1100px;
}

.page-title {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 700;
    letter-spacing: -.025em;
    color: var(--arkel-ink);
    line-height: 1.1;
}

.page-title__accent {
    display: inline-block;
    width: 4px;
    height: 1em;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--arkel-blue) 0%, var(--arkel-cyan) 100%);
    box-shadow: 0 0 16px rgba(56, 189, 248, .5);
}

.page-content {
    width: 100%;
    padding: 0 28px 64px;
    display: flex;
    justify-content: center;
}

.page-content__inner {
    width: 100%;
    max-width: 1100px;
}

.app-card {
    position: relative;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: var(--radius-xl);
    padding: 40px 44px 36px;
    box-shadow:
        0 40px 80px -24px rgba(10, 31, 68, .18),
        0 16px 40px -14px rgba(30, 99, 200, .10),
        inset 0 1px 0 rgba(255, 255, 255, .9);
}

.app-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .55), transparent);
        pointer-events: none;
    }

.app-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.app-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 22px;
}

.app-form__grid--stack {
    grid-template-columns: minmax(0, 1fr);
}

.app-form__split {
    display: grid;
    grid-template-columns: minmax(0, 500px) minmax(0, 460px);
    gap: 36px;
    align-items: start;
    justify-content: space-between;
}

.app-form__split-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
}

.app-form__split-aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}

.app-illustration {
    width: 100%;
    max-width: 368px;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--arkel-line);
    background: #fff;
    box-shadow: var(--shadow-md);
    padding: 8px;
}

.app-illustration__caption {
    font-size: 12px;
    color: var(--arkel-muted);
    text-align: center;
    letter-spacing: .01em;
    line-height: 1.5;
}

.app-field--check {
    margin-top: 4px;
}

.app-check {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.app-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.app-check__box {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 1.5px solid var(--arkel-line, #CBD5E1);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.app-check__box i {
    opacity: 0;
    transform: scale(.7);
    transition: opacity .18s ease, transform .18s ease;
}

.app-check input[type="checkbox"]:checked + .app-check__box {
    background: var(--arkel-cyan, #06B6D4);
    border-color: var(--arkel-cyan, #06B6D4);
    box-shadow: 0 4px 12px rgba(6, 182, 212, .24);
}

.app-check input[type="checkbox"]:checked + .app-check__box i {
    opacity: 1;
    transform: scale(1);
}

.app-check input[type="checkbox"]:focus-visible + .app-check__box {
    box-shadow: 0 0 0 3px rgba(6, 182, 212, .25);
}

.app-check__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--arkel-ink-2, #334155);
}

.app-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.app-label {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--arkel-ink-2);
    letter-spacing: .02em;
}

.app-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .app-input-wrap > i.prefix {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--arkel-muted);
        font-size: 16px;
        pointer-events: none;
        transition: color .18s ease;
        z-index: 1;
    }

    .app-input-wrap:focus-within > i.prefix {
        color: var(--arkel-blue);
    }

.app-input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--arkel-line);
    border-radius: 14px;
    background-color: #F8FAFC;
    font: inherit;
    font-size: 14.5px;
    color: var(--arkel-ink);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    appearance: none;
    -webkit-appearance: none;
}

    .app-input::placeholder {
        color: #94A3B8;
    }

    .app-input:hover {
        border-color: #CBD5E1;
        background-color: #fff;
    }

    .app-input:focus {
        outline: 0;
        background-color: #fff;
        border-color: var(--arkel-blue);
        box-shadow:
            0 0 0 4px rgba(30, 99, 200, .10),
            0 6px 18px -6px rgba(30, 99, 200, .20);
    }

    .app-input.is-invalid {
        border-color: var(--arkel-danger);
        background-color: #FEF2F2;
    }

        .app-input.is-invalid:focus {
            box-shadow:
                0 0 0 4px rgba(220, 38, 38, .10),
                0 6px 18px -6px rgba(220, 38, 38, .20);
        }

    .app-input[readonly] {
        background-color: #F1F5F9;
        color: var(--arkel-ink-2);
        cursor: default;
    }

        .app-input[readonly]:focus {
            box-shadow: none;
            border-color: var(--arkel-line);
            background-color: #F1F5F9;
        }

.app-select {
    padding-right: 42px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748B'><path d='M3.5 5.5l4.5 5 4.5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
    cursor: pointer;
}

    .app-select:focus {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231E63C8'><path d='M3.5 5.5l4.5 5 4.5-5z'/></svg>");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 14px 14px;
    }

.app-summary {
    display: none;
}

    .app-summary.validation-summary-errors {
        display: block;
        margin-bottom: 20px;
        padding: 12px 14px;
        background: #FEF2F2;
        border: 1px solid #FECACA;
        border-radius: var(--radius);
        color: #991B1B;
        font-size: 14px;
    }

        .app-summary.validation-summary-errors ul {
            margin: 0;
            padding-left: 18px;
        }

.app-reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .32s ease, opacity .28s ease, margin-top .28s ease;
    margin-top: 0;
}

    .app-reveal > * {
        overflow: hidden;
        min-height: 0;
    }

    .app-reveal.is-open {
        grid-template-rows: 1fr;
        opacity: 1;
        margin-top: 8px;
    }

.app-result {
    margin-top: 8px;
    padding: 22px 22px 18px;
    background: linear-gradient(180deg, #F0FDF4 0%, #ECFDF5 100%);
    border: 1px solid #BBF7D0;
    border-radius: var(--radius-lg);
}

.app-result__head {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #166534;
    font-size: 14px;
    letter-spacing: .01em;
}

    .app-result__head i {
        font-size: 18px;
        color: var(--arkel-success);
    }

.app-help {
    font-size: 12px;
    color: var(--arkel-muted);
    letter-spacing: .01em;
}

.app-error {
    display: block;
    font-size: 12.5px;
    color: var(--arkel-danger);
    font-weight: 500;
    min-height: 1em;
}

.app-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(226, 232, 240, .8);
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
    height: 48px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .2s ease, filter .15s ease,
                background .15s ease, border-color .15s ease, color .15s ease;
    text-decoration: none;
}

    .btn i {
        font-size: 16px;
        line-height: 1;
    }

    .btn:active {
        transform: translateY(1px);
    }

    .btn:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.btn--primary {
    color: #fff;
    background: linear-gradient(180deg, #2874DC 0%, var(--arkel-blue) 55%, var(--arkel-blue-600) 100%);
    box-shadow:
        0 12px 26px -10px rgba(30, 99, 200, .55),
        0 4px 10px -2px rgba(30, 99, 200, .28),
        inset 0 1px 0 rgba(255, 255, 255, .20);
}

    .btn--primary:hover {
        filter: brightness(1.06);
        box-shadow:
            0 16px 34px -10px rgba(30, 99, 200, .62),
            0 6px 14px -2px rgba(30, 99, 200, .38),
            0 0 28px -6px rgba(56, 189, 248, .42),
            inset 0 1px 0 rgba(255, 255, 255, .25);
    }

.btn--ghost {
    color: var(--arkel-ink-2);
    background: #FFFFFF;
    border-color: var(--arkel-line);
}

    .btn--ghost:hover {
        color: var(--arkel-ink);
        background: var(--arkel-bg);
        border-color: var(--arkel-line-2);
    }

.app-footer {
    border-top: 1px solid var(--arkel-line);
    background: #FFFFFF;
    min-height: var(--footer-h);
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.app-footer__inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 28px;
    font-size: 12px;
    color: var(--arkel-muted);
    letter-spacing: .01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.app-footer__inner .recaptcha-notice {
    margin-top: 0;
    text-align: right;
}

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--arkel-blue);
    outline-offset: 2px;
    border-radius: 6px;
}

@media (max-width: 960px) {
    .page-hero {
        padding: 40px 24px 20px;
    }

    .page-content {
        padding: 0 24px 56px;
    }

    .app-card {
        padding: 32px 28px 28px;
    }
}

@media (max-width: 820px) {
    .app-form__grid {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 18px;
    }

    .app-form__split {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .app-form__split-aside {
        padding-top: 0;
    }
}

@media (max-width: 720px) {
    :root {
        --nav-h: 60px;
    }

    .app-nav__inner {
        padding: 0 16px;
        gap: 12px;
        grid-template-columns: auto 1fr auto;
    }

    .app-nav__brand img {
        height: 28px;
    }

    .app-nav__menu {
        gap: 2px;
        justify-content: flex-end;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .app-nav__menu::-webkit-scrollbar {
        display: none;
    }

    .app-nav__link {
        padding: 8px 10px;
        gap: 0;
        font-size: 0;
    }

    .app-nav__link i {
        font-size: 18px;
    }

    .app-nav__link span {
        display: none;
    }

    .app-nav__link.is-active::after {
        left: 10px;
        right: 10px;
    }

    .page-hero {
        padding: 28px 16px 12px;
    }

    .page-title {
        gap: 14px;
        font-size: clamp(26px, 6vw, 32px);
    }

    .page-content {
        padding: 0 16px 40px;
    }

    .app-card {
        padding: 26px 20px 22px;
        border-radius: 18px;
    }

    .app-form {
        gap: 24px;
    }

    .app-input {
        height: 48px;
        font-size: 15px; 
    }

    .app-form__actions {
        flex-direction: column-reverse;
        gap: 10px;
        padding-top: 20px;
    }

    .btn {
        width: 100%;
        min-width: 0;
        height: 50px;
    }

    .app-footer {
        height: auto;
        min-height: var(--footer-h);
        padding: 12px 0;
    }

    .app-footer__inner {
        padding: 0 16px;
        text-align: center;
        line-height: 1.5;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
    }

    .app-footer__inner .recaptcha-notice {
        text-align: center;
    }
}

@media (max-width: 420px) {
    .app-nav__inner {
        padding: 0 12px;
    }

    .page-hero {
        padding: 22px 14px 10px;
    }

    .page-content {
        padding: 0 14px 32px;
    }

    .app-card {
        padding: 22px 16px 20px;
        border-radius: 16px;
    }

    .app-input {
        padding-left: 42px;
    }

    .app-input-wrap > i.prefix {
        left: 14px;
    }
}

.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.recaptcha-notice {
    display: block;
    font-size: 11px;
    color: var(--arkel-muted);
    line-height: 1.5;
    margin-top: 4px;
}

.recaptcha-notice a {
    color: var(--arkel-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.recaptcha-notice a:hover {
    color: var(--arkel-ink-2);
}
