/* ============ RESET ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1a1a2e;
    background: #ffffff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, #224a7a 0%, #12305e 100%);  
	color: #ffffff;
    padding: 5px 0 10px;
}

.hero__title {
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* ============ SEARCH FORM ============ */
.search-form {
    display: flex;
    align-items: stretch;
    background: #ffffff;
    border-radius: 10px;
    padding: 6px;
    max-width: 860px;
    margin: 0 auto 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 5;
}

.search-form__field {
    flex: 1;
    position: relative;
    min-width: 0;
    display: block;
}

.search-form__field .suggestions-wrapper {
    position: relative;
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
}

.search-form__input {
    width: 100%;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-size: 16px;
    color: #1a1a2e;
    background: transparent;
    border-radius: 10px;
    min-width: 0;
    font-family: inherit;
}

.search-form__input::placeholder {
    color: #98a2b8;
}

.search-form__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2c3e91;
    color: #ffffff;
    border: none;
    padding: 0 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
}

.search-form__btn:hover {
    background: #1f2c6b;
}

.search-form__btn.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ============ HINTS ============ */
.hero__hint {
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 28px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.hero__hint strong {
    color: #ffffff;
    font-weight: 600;
}

.hero__desc {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
}

/* ============ REPORT ============ */
.report {
    background: #dde3ee;
    padding: 20px 0 80px;
}

.report__title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 40px;
}

.report__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.report-card {
    background: #ffffff;
    border-radius: 10px;
    min-height: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* ============ РЕЗУЛЬТАТЫ ПОИСКА МКД ============ */
.search-results {
    max-width: 860px;
    margin: 0 auto 18px;
}

.search-results__msg {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-results__msg--error {
    background: rgba(220, 60, 60, 0.18);
    border-color: rgba(220, 60, 60, 0.45);
}

.search-results__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Карточка МКД */
.mkd-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #1a1a2e;
}

.mkd-card__body {
    flex: 1;
    min-width: 0;
}

.mkd-card__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.45;
}

.mkd-card__row:last-child {
    margin-bottom: 0;
}

.mkd-card__label {
    color: #7b8699;
    flex-shrink: 0;
    min-width: 140px;
}

.mkd-card__value {
    color: #1a1a2e;
    word-break: break-word;
}

.mkd-card__value--mono {
    font-family: Consolas, Monaco, monospace;
    color: #2c3e91;
    font-weight: 600;
}

.mkd-card__actions {
    flex-shrink: 0;
}

.mkd-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2c3e91;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.mkd-card__btn:hover {
    background: #1f2c6b;
}

/* ============ DADATA SUGGESTIONS ============ */
body .suggestions-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: auto;
    min-width: 100%;
    margin: 8px 0 0 0;
    padding: 6px;
    background: #ffffff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    cursor: default;
}

body .suggestions-suggestion {
    display: block;
    padding: 12px 14px;
    margin: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    line-height: 1.4;
    white-space: normal;
    overflow: hidden;
    font-family: inherit;
    font-size: 15px;
    color: #1a1a2e;
}

body .suggestions-suggestion:hover,
body .suggestions-suggestion.suggestions-selected {
    background: #f4f6fb;
}

body .suggestions-value {
    display: inline;
    font-size: 15px;
    color: #1a1a2e;
    line-height: 1.4;
    font-family: inherit;
}

body .suggestions-suggestions strong,
body .suggestions-suggestion strong,
body .suggestions-value strong {
    color: #2c3e91;
    font-weight: 600;
    background: transparent;
}

body .suggestions-promo,
body .suggestions-promo a,
body .suggestions-promo svg {
    display: none;
}

body .suggestions-hint {
    display: none;
}

body .suggestions-suggestions.suggestions-mobile {
    border: none;
}

body .suggestions-suggestions.suggestions-mobile .suggestions-suggestion {
    border-bottom: none;
}

body .suggestions-subtext {
    color: #7b8699;
    font-size: 12px;
    display: block;
    margin-top: 2px;
}

/* Скроллбар */
body .suggestions-suggestions::-webkit-scrollbar {
    width: 8px;
}

body .suggestions-suggestions::-webkit-scrollbar-thumb {
    background: #c9d1e0;
    border-radius: 4px;
}

/* ============ МОБИЛЬНАЯ ВЕРСИЯ ============ */
@media (max-width: 900px) {
    .report__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 40px 0 50px;
    }

    .hero__title {
        font-size: 26px;
    }

    .search-form {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }

    .search-form__input {
        padding: 14px 16px;
    }

    .search-form__btn {
        padding: 14px 20px;
        justify-content: center;
    }

    body .suggestions-suggestions {
        max-height: 260px;
    }

    body .suggestions-suggestion {
        padding: 12px 12px;
        font-size: 14px;
    }

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

    .mkd-card {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }

    .mkd-card__row {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 10px;
    }

    .mkd-card__label {
        min-width: 0;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }

    .mkd-card__actions {
        margin-top: 10px;
    }

    .mkd-card__btn {
        width: 100%;
    }
}

/* Сообщение «ничего не найдено» + кнопка ручной заявки */
.search-results__notfound {
    line-height: 1.6;
    margin-bottom: 14px;
}

.search-results__manual-btn {
    display: inline-block;
    background: #ffffff;
    color: #2c3e91;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: background .2s, color .2s;
    border: none;
}

.search-results__manual-btn:hover {
    background: #2c3e91;
    color: #ffffff;
}