body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    font-size: 16px;
}

h1, h2 {
    font-weight: normal;
    color: #623B2A;
}

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

h2 {
    font-size: 1.75em;
    margin: 0.83em 0;
}

p {
    font-size: 1em;
    color: #666;
    margin: 1em 0;
}

a {
    text-decoration: none;
}


.header-top {
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin: 0 5%;
    padding: 10px 0;
}


.logo img {
    height: 80px;
    width: auto;
}

.header-info h1 {
    margin-left: 20px;
    font-size: 24px;
    text-align: left;
}

.contact-info {
    text-align: right;
    white-space: nowrap;
    margin-left: auto;
}

.contact-info span {
    display: block;
    margin-bottom: 5px;
}


.site-navigation {
    background-color: #C99B67;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: #5C3527;
    padding: 10px;
    display: block;
}

nav a:hover, nav a:focus {
    text-decoration: underline;
    background-color: #e64a19;
    color: #fff;
}


.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: #e64a19;
    color: #fff;
}

.image-container {
    display: flex;
    width: 100%;
}

.left-image, .right-image {
    flex: 1;
    position: relative;
}

.left-image img, .right-image img {
    width: 100%;
    height: auto;
}

.banner-img-left {
    margin-left: 5%;
    max-width: 600px;
    width: 100%;
    height: auto;
}

.banner-text {
    margin-left: 5%;
}

.search-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-bar {
    display: flex;
    width: 100%;
}

#search-input {
    flex-grow: 1;
    border: none;
    padding: 10px;
    border-radius: 15px;
    margin-right: 10px;
}

#search-button {
    background-color: #e84118;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
}

#search-button:hover {
    background-color: #c23616;
}

.search-categories {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.banner-link {
    display: block;
    max-width: 100%;
    margin: 10px auto;
}

.banner-img {
    margin-left: 5%;
    max-width: 600px;
    width: 100%;
    height: auto;
}


.category {
    background-color: #C99B67;
    border: none;
    color: black;
    padding: 8px 12px;
    margin-right: 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
}

.category:hover {
    background-color: #e64a19;
    color: #fff;
}

.category:last-child {
    margin-right: 0;
}


.important-info {
    margin-right: 20px;
}

.important-info h2 {
    text-align: center;
}

.info-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.info-images img {
    width: 150px;
    height: auto;
    border-radius: 10px;
    border: 2px solid #ccc;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.info-images img.active {
    transform: scale(1.2);
    border-color: red;
}

.fullscreen {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    min-width: 300px;
    min-height: 400px;
    width: auto;
    height: auto;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 10px;
}


.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.overlay.active {
    display: block;
}



.news-section .news-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-section .news-item {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    margin-bottom: 20px;
    text-align: center; 
}

.news-section .news-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}

.news-section .news-item h3 {
    margin-top: 10px;
    font-size: 1.25em;
}

.news-section .news-item .news-date {
    margin-top: 10px;
    font-size: 0.875em;
    color: #999;
}

.news-section .news-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.view-all-news {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #C99B67;
    color: black;
    border-radius: 5px;
    text-decoration: none;
}

.view-all-news:hover {
    background-color: #e64a19;
    color: #fff;
}



.real-time-info h2 {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 15px;
}

.office-load {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.office {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.office-name {
    font-weight: bold;
    color: #333;
}

.office-status {
    padding: 5px 10px;
    border-radius: 5px;
    color: #fff;
}

.low {
    background-color: #4caf50;
}

.medium {
    background-color: #ff9800;
}

.high {
    background-color: #f44336;
}


.horizontal-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px 0;
}

.important-info,
.real-time-info {
    flex: 1;
    margin-right: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.real-time-info {
    margin-right: 0;
}


.services-section {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
}

.services-title {
    font-size: 2em;
    margin-bottom: 50px;
    color: #623B2A;
}

.services-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 45px;
}

.service {
    text-align: center;
    transition: transform 0.3s;
}

.service img {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto 10px;
    border: 2px solid #e0e0e0;
    border-radius: 40px;
    transition: transform 0.3s, border-color 0.3s;
    object-fit: contain;
}

.service p {
    font-size: 1em;
    color: #C99B67;
    transition: transform 0.3s;
    word-wrap: break-word;
    max-width: 120px;
    margin: 0 auto;
}

.service:hover img {
    transform: scale(1.1);
    border-color: #ff4500;
}

.service:hover p {
    transform: scale(1.1);
}

.map-section {
    display: flex;
    align-items: flex-start;
    width: 100%;
    margin-top: 20px;
}

.map {
    flex: 1 1 70%;
    height: 350px;
    border: 1px solid #CCCCCC;
}

.locations-list {
    flex: 1 1 30%;
    margin-left: 20px;
    padding: 20px;
    background: #f7f7f7;
    border: 1px solid #cccccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.locations-list h2 {
    margin-top: 0;
}

.locations-list ul {
    list-style-type: none;
    padding: 0;
}

.locations-list li {
    padding: 8px 0;
    font-size: 14px;
}


.useful-links {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
}

.useful-links h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #623B2A;
}

.links-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.link-item {
    flex: 1 1 auto;
    max-width: 150px;
    text-align: center;
    transition: transform 0.3s;
}

.link-item img {
    width: 100%;
    height: auto;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    object-fit: contain;
    transition: transform 0.3s, border-color 0.3s;
}

.link-item span {
    display: block;
    margin-top: 10px;
    font-size: 1em;
    color: #C99B67;
    word-wrap: break-word;
    transition: transform 0.3s;
}

.link-item:hover img {
    transform: scale(1.1);
    border-color: #ff4500;
}

.link-item:hover span {
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .useful-links img {
        max-width: 200px;
        height: auto;
    }
}


.accordion-toggle {
    background: #eee;
    cursor: pointer;
    padding: 10px;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-content {
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
    max-height: 0;
}


#slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

#slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 500%;
}

.slide {
    width: 20%;
    flex-shrink: 0;
}

.slide:not(.active) {
    display: none;
}

#slider-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.slide-control {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: #333;
    margin: 0 5px;
    cursor: pointer;
}

.slide-control.active {
    background-color: red;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}


.scroll-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.scroll-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
}

.scroll-indicator.active {
    background-color: #333;
}

.scroll-button {
    background-color: transparent;
    border: none;
    color: #333;
    font-size: 20px;
    cursor: pointer;
    margin-top: 10px;
}

.scroll-button:hover {
    background-color: #e64a19;
}


.site-footer {
    background-color: #5C3527;
    color: #E7D4C2;
    padding: 40px 20px;
    font-family: 'Arial', sans-serif;
}

.job-opening {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-left {
    max-width: 300px;
}

.footer-left img {
    max-width: 100px;
    margin-bottom: 20px;
}

.footer-left p {
    margin: 10px 0;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    flex-grow: 1;
    max-width: 700px;
}

.footer-nav-main ul,
.footer-nav-additional ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-main ul li,
.footer-nav-additional ul li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #E7D4C2;
    text-decoration: none;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    margin-right: 10px;
}

.social-icons img {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #ffffff;
    padding-top: 10px;
}

@media (max-width: 768px) {
    /* Верхняя часть сайта */
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-info h1 {
        font-size: 18px;
        margin-left: 0;
    }

    .contact-info {
        text-align: left;
        margin-left: 0;
		white-space: wrap;
    }
	
	.site-navigation {
        position: static; /* Убираем прилипание меню */
    }

    /* Навигация */
    .site-navigation ul {
        flex-direction: column;
    }

    nav li {
        margin-bottom: 10px;
        text-align: center;
    }

    /* Картинки */
    .image-container {
        flex-direction: column;
    }

    .left-image, .right-image {
        width: 100%;
        height: auto;
    }

    /* Поисковая форма */
    .search-container {
        width: 100%;
        padding: 10px;
    }

    .search-bar {
        flex-direction: column;
    }

    #search-input {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
	
	.left-image {
		display: none
	}
	
	.horizontal-section {
        display: block; /* По умолчанию элементы будут идти друг за другом */
    }

    .important-info {
        width: 100%; /* Блоки займут всю ширину экрана */
    }
	
	.info-images {
        flex-direction: column;
        gap: 10px;
    }

    .info-images img {
        max-width: 90%;
        margin: 0 auto;
    }

    .scroll-button {
        font-size: 1.2em;
    }

    .scroll-controls {
        margin-top: 5px;
    }

    /* Услуги */
    .services-container {
        flex-wrap: wrap;
        gap: 20px;
    }

    .service img {
        width: 80px;
        height: 80px;
    }

    /* Секция карты и списка офисов */
    .map-section {
        flex-direction: column;
    }

    .map {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Полезные ссылки */
    .links-container {
        flex-direction: column;
        gap: 10px;
    }

    .link-item {
        max-width: 100%;
    }

    /* Футер */
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left {
        margin-bottom: 20px;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
    }
}


.container-paid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin: 20px auto;
}

.container-paid a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #C99B67;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s;
}

.container-paid a:hover {
    background-color: #e64a19;
    transform: scale(1.05);
}

.container-paid a::before {
    content: "📄"; /* Иконка перед текстом */
    margin-right: 8px;
    font-size: 1.2em;
}