.where-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.where-panel {
    width: min(860px, 100%);
    display: grid;
    gap: 22px;
    padding: clamp(24px, 3vw, 34px);
}

.where-copy {
    display: grid;
    gap: 10px;
}

.where-copy h1 {
    font-size: clamp(2.6rem, 4vw, 4rem);
}

.where-form {
    display: grid;
    gap: 12px;
}

.field-label {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: #bfd2ce;
}

.where-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.where-input {
    flex: 1 1 320px;
    min-width: 220px;
}

.access-input {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 16px;
    border: 1px solid rgba(154, 209, 199, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.access-input:focus {
    border-color: rgba(154, 209, 199, 0.5);
    box-shadow: 0 0 0 4px rgba(154, 209, 199, 0.12);
    transform: translateY(-1px);
}

.where-submit {
    min-width: 168px;
    justify-content: center;
}

.where-feedback {
    min-height: auto;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(154, 209, 199, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.where-feedback p {
    margin: 0;
    line-height: 1.65;
}

.feedback-box.is-error {
    border-color: rgba(237, 155, 155, 0.22);
    background: rgba(237, 155, 155, 0.08);
}

.feedback-box.is-success {
    border-color: rgba(159, 214, 175, 0.22);
    background: rgba(159, 214, 175, 0.08);
}

.where-menu {
    display: grid;
    gap: 18px;
    margin-top: 4px;
    padding-top: 22px;
    border-top: 1px solid rgba(154, 209, 199, 0.1);
}

.where-menu__head {
    margin-bottom: 0;
}

.where-menu__badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(214, 194, 155, 0.16);
    background: rgba(214, 194, 155, 0.08);
    color: #f2e7d1;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.where-menu__grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.where-item {
    display: grid;
    gap: 14px;
    min-height: 178px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(154, 209, 199, 0.14);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
        rgba(154, 209, 199, 0.04);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.where-item:hover {
    transform: translateY(-2px);
    border-color: rgba(154, 209, 199, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(154, 209, 199, 0.07);
}

.where-item__meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.where-item__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(154, 209, 199, 0.14);
    color: #f2e7d1;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.where-item.is-file .where-item__icon {
    color: #f2e7d1;
}

.where-item.is-link .where-item__icon {
    color: var(--accent);
}

.where-item__type {
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.where-item__title {
    color: #ffffff;
    font-size: 1.12rem;
    line-height: 1.45;
}

.where-item__action {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.45;
}

.where-item__action .material-symbols-outlined {
    font-size: 1.08rem;
}

@media (max-width: 720px) {
    .where-main {
        padding: 16px;
    }

    .where-panel {
        gap: 18px;
        padding: 22px;
    }

    .where-form__row {
        flex-direction: column;
    }

    .where-submit {
        width: 100%;
    }

    .where-menu__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .where-item {
        min-height: 152px;
    }
}
