* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f4f6fa;
    color: #17243a;
}

.header {
    height: 76px;
    padding: 0 7%;
    background: #ffffff;
    border-bottom: 1px solid #e8edf4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 700;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #173B70;
    font-size: 22px;
}

.header-label {
    color: #7a8799;
    font-size: 14px;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 75px 24px 30px;
}

.welcome {
    margin-bottom: 42px;
}

.welcome-label {
    color: #2860b5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

h1 {
    margin: 17px 0 14px;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    letter-spacing: -1.2px;
}

.welcome p {
    color: #718096;
    font-size: 17px;
}

.menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.menu-card {
    display: block;
    padding: 27px;
    min-height: 215px;
    background: white;
    border: 1px solid #e8edf4;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}

.menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(30, 55, 90, .08);
}

.card-icon {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    background: #edf3fc;
    color: #2455a6;
    border-radius: 12px;
    font-size: 24px;
}

.menu-card h2 {
    margin: 19px 0 8px;
    font-size: 20px;
}

.menu-card p {
    margin: 0;
    color: #778499;
    font-size: 14px;
    line-height: 1.6;
}

.card-link {
    display: inline-block;
    margin-top: 17px;
    color: #2860b5;
    font-size: 14px;
    font-weight: 600;
}

footer {
    padding: 45px 0 10px;
    color: #98a2b1;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 650px) {
    .header {
        padding: 0 18px;
    }

    .header-label {
        display: none;
    }

    .container {
        padding: 45px 18px 25px;
    }

    .menu {
        grid-template-columns: 1fr;
    }

    .menu-card {
        min-height: 190px;
    }
}

/* Настройки поиска */
.settings-panel {
    max-width: 760px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e8edf4;
    border-radius: 15px;
}

.field {
    margin-bottom: 27px;
}

.field > label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 650;
}

.field textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #dce3ed;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    color: #17243a;
    resize: vertical;
}

.field textarea:focus {
    outline: none;
    border-color: #2860b5;
    box-shadow: 0 0 0 3px rgba(40, 96, 181, .1);
}

.field small {
    display: block;
    margin-top: 8px;
    color: #8290a3;
    font-size: 13px;
    line-height: 1.5;
}

.law-options {
    display: flex;
    gap: 14px;
}

.law-option {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    cursor: pointer;
}

.notice {
    margin: 10px 0 24px;
    padding: 15px;
    background: #f4f6fa;
    border-radius: 9px;
    color: #718096;
    font-size: 13px;
    line-height: 1.6;
}

.save-button {
    padding: 14px 25px;
    border: 0;
    border-radius: 9px;
    background: #2455a6;
    color: white;
    font-size: 15px;
    font-weight: 600;
}

.save-button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

@media (max-width: 650px) {
    .settings-panel {
        padding: 22px 18px;
    }
}

/* Уведомление об успешном сохранении */
.success-notice {
    margin: 0 0 28px;
    padding: 20px 24px;
    background: #e8f6ec;
    border: 1px solid #9bd2aa;
    border-radius: 12px;
    color: #176b35;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.5;
}
