* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #e8e8e8;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.page {
    max-width: 1180px;
    margin: 15px auto;
    background: #fff;
    border: 1px solid #c8c8c8;
}

.site-header {
    min-height: 112px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.phone-symbol {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #b71924;
    border-radius: 50%;
    color: #b71924;
    font-size: 42px;
}

.logo-title {
    color: #174c83;
    font-size: 27px;
    font-weight: bold;
}

.logo-subtitle {
    margin-top: 4px;
    color: #777;
    font-size: 11px;
}

.header-title {
    text-align: right;
}

.header-title h1 {
    margin: 0;
    color: #555;
    font-size: 25px;
    font-weight: normal;
}

.header-title span {
    display: block;
    margin-top: 7px;
    color: #888;
}

.red-line {
    height: 12px;
    background: repeating-linear-gradient(
        135deg,
        #a80e1b 0,
        #a80e1b 8px,
        #d52c38 8px,
        #d52c38 16px
    );
}

.layout {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    align-items: start;
}

.sidebar {
    padding: 5px;
}

.side-section {
    margin-bottom: 12px;
    border: 1px solid #ccc;
    background: #f3f3f3;
}

.side-section h3 {
    margin: 0;
    padding: 8px 10px;
    background: #dedede;
    border-bottom: 1px solid #ccc;
    color: #444;
    font-size: 13px;
}

.side-section p,
.side-section ul {
    margin: 0;
    padding: 9px 10px;
    line-height: 1.6;
}

.side-section ul {
    padding-left: 28px;
}

a {
    color: #174f87;
    text-decoration: underline;
}

a:hover {
    color: #b71924;
}

.main-content {
    min-width: 0;
    padding: 17px 20px 25px;
    background: #f1f1f1;
    border: 1px solid #d5d5d5;
}

.page-title {
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    color: #444;
    font-size: 21px;
    font-weight: normal;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.step {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #555;
}

.step span {
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #b51e2b;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
}

.search-panel {
    padding: 17px;
    border: 1px solid #c9c9c9;
    background: #fafafa;
}

.city-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.city-selector select {
    min-width: 200px;
    padding: 6px;
    border: 1px solid #aaa;
    background: #fff;
}

.search-label {
    margin-bottom: 8px;
    font-weight: bold;
}

.search-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    border-bottom: 1px solid #aaa;
}

.tab {
    display: inline-block;
    padding: 9px 12px;
    border: 1px solid #bbb;
    border-bottom: 0;
    background: #e6e6e6;
    color: #333;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
}

.tab:hover {
    background: #fff;
    color: #a71925;
}

.tab.active {
    position: relative;
    top: 1px;
    background: #fff;
    color: #a71925;
    font-weight: bold;
}

.search-help {
    margin: 15px 0 10px;
    color: #666;
    line-height: 1.5;
}

.search-form {
    display: flex;
    gap: 7px;
}

.search-form input[type="text"] {
    flex: 1;
    min-width: 0;
    padding: 9px;
    border: 1px solid #aaa;
    background: #fff;
    font-size: 14px;
}

.search-form button {
    padding: 8px 15px;
    border: 1px solid #999;
    cursor: pointer;
    font-size: 12px;
}

.clear-button {
    background: #e5e5e5;
    color: #333;
}

.submit-button {
    border-color: #9b1722 !important;
    background: #b51e2b;
    color: #fff;
}

.submit-button:hover {
    background: #941622;
}

.welcome-message,
.message {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #ccc;
    background: #fff;
    line-height: 1.6;
}

.error {
    border-color: #d99;
    background: #fff0f0;
    color: #a00;
}

.results {
    margin-top: 22px;
}

.results h3 {
    margin-bottom: 7px;
    color: #444;
    font-size: 17px;
}

.result-count {
    color: #777;
}

.contact-card {
    margin: 12px 0;
    padding: 13px 15px;
    border: 1px solid #ccc;
    background: #fff;
    line-height: 1.6;
}

.contact-card h4 {
    margin: 0 0 8px;
    color: #174f87;
    font-size: 16px;
}

.contact-card p {
    margin: 4px 0;
}

.contact-phones {
    margin-top: 8px;
}

.tips {
    margin-top: 20px;
    padding: 13px;
    border: 1px solid #ccc;
    background: #fff;
    line-height: 1.6;
}

.tips h3 {
    margin: 0 0 8px;
    color: #444;
}

.footer-content {
    margin-top: 20px;
    padding: 16px 10px;
    border-top: 3px solid #b51e2b;
    background: #e5e5e5;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .page {
        margin: 0;
        border: 0;
    }

    .site-header {
        min-height: auto;
        padding: 15px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .logo-title {
        font-size: 21px;
    }

    .header-title {
        width: 100%;
        text-align: left;
    }

    .header-title h1 {
        font-size: 20px;
    }

    .layout {
        grid-template-columns: 1fr;
        padding: 8px;
    }

    .sidebar {
        order: 2;
    }

    .main-content {
        order: 1;
        padding: 13px;
    }

    .steps {
        flex-direction: column;
    }

    .city-selector {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-form {
        flex-wrap: wrap;
    }

    .search-form input[type="text"] {
        flex-basis: 100%;
    }

    .search-form button {
        flex: 1;
    }
}
