*, *::before, *::after {
  box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Lato", sans-serif;
    background: #f5f5f5;
	line-height: 1.4;
}

.site-header {
    background: white;
    box-shadow: 0 1px 6px rgba(0,0,0,.08);
}

/* Верхняя строка */
.header-top {
    display: grid;
    grid-template-columns: 30% 1% 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 10px 30px;
}

/* мин ширина  левой ячейки */
.header-top > :first-child {
    min-width: 330px;
}

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

.header-logo img {
    height: 64px; 
}

.header-logo .site-title {
    font-family: "Lato", sans-serif;
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;

    white-space: normal;      /* явно разрешает переносы (на случай, если где‑то стоит nowrap) */
    word-wrap: break-word;    /* перенос длинных слов, если не влезают */
    min-width: 200px;
    max-width: 360px;
}

.header-logo .site-title a {   
    text-decoration: none;    
    color: #1F5F99;                 
}

.header-search form {
    display: flex;
}

.header-search input {
    flex: 1;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #CCCCCC;
    border-radius: 20px 0 0 20px;
    font-size: 15px;
}

.header-search button {
    width: 56px;
    border: none;
    background: #1F5F99;
    border-radius: 0 20px 20px 0;    
    cursor: pointer;

    display: flex;
    justify-content: center;      /* горизонтальное центрирование */
    align-items: center;          /* вертикальное центрирование */ 
}

.header-search button img {
    width: 32px;
}

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

.header-link {
    color: #444;
    text-decoration: none;
}

.button-primary {
    background: #1F5F99;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
}


/* Нижняя строка */

.header-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    padding: 14px 20px;
    border-top: 1px solid #E8E8E8;
}

.header-menu a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
}

.header-menu a:hover {
    color: #1F5F99;
}

/* ==========================================================
   Breadcrumbs
   ========================================================== */

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumbs a {
    color: #5b8fc4;
    text-decoration: none;
}

.breadcrumbs span {
    margin: 0 6px;
}




.site-footer {
    margin-top: 40px;
    background: #1F5F99;
    color: #dcdcdc;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 30px;
    display: grid;
    grid-template-columns: 1.3fr 1.5fr 1fr;
    gap: 60px;
}

.footer-column {
    font-size: 15px;
    line-height: 1.2;
}

.footer-title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.footer-column p {
    margin: 0 0 12px;
}

.footer-column a {
    color: #dcdcdc;
    text-decoration: none;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid #aaaaaa;
    margin-top: 20px;
    padding-top: 12px;
    padding-bottom: 12px;
    text-align: center;
    font-size: 13px;
    color: #dcdcdc;
}

@media (max-width: 1200px) {
    .header-top {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 10px 10px;
    }
}  
@media (max-width: 768px) {
    .header-top {
    }

    .header-user {
        justify-content: right; 
        gap: 15px;
    }

    .header-menu {
    gap: 20px;
    padding: 14px 20px;
    }

    .footer-container {
    margin: 0 auto;
    padding: 20px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
   
}  


#map .leaflet-control-attribution > a:first-child,
#map .leaflet-control-attribution > span {
    display: none;
}