body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(to bottom, #72a8dd 0%, #ffffff 80%);
    color: #333;
    width: 100%;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1152px;
    margin: 0 auto;
    box-sizing: border-box;
}

.container-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 2rem;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

header img {
    width: 100px;
    height: auto;
}

nav a {
    margin-left: 1rem;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
    text-align: center;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    width: 40%;
    height: 100%;
    transition: left 1s ease-in-out, transform 1s ease-in-out, z-index 0s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

/* Затемнение для боковых слайдов */
.slide.dimmed::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 1s ease-in-out;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

/* Небольшой эффект масштабирования при наведении */
.slide:hover {
    cursor: pointer;
}

.slide:hover img {
    transform: scale(1.05);
}

/* Удаляем фиксированные стили позиционирования для слайдов */
.slide:nth-child(1),
.slide:nth-child(2),
.slide:nth-child(3),
.slide:nth-child(4),
.slide:nth-child(5) {
    left: unset;
    right: unset;
    transform: unset;
    z-index: unset;
}

/* Настройка контейнера слайдшоу */
.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-text {
    position: absolute;
    top: 67%;
    left: 30%;
    transform: translate(-50%, -50%);
    z-index: 6;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.hero-text h1 {
    font-size: 2.5rem;
    margin: 0;
    line-height: 1.2;
    font-weight: 250;
    text-align: left;
}

.news-grid {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-item {
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    position: relative;
    background: url(../images/news1.jpg) no-repeat center center / cover;
    min-height: 350px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Добавляем затемнение для фонового изображения */
.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Полупрозрачный чёрный слой, 0.4 — уровень затемнения */
    z-index: 1;
    border-radius: 8px;
}

.news-margin {
    position: relative;
    z-index: 2; /* Содержимое выше затемняющего слоя */
}

.news-teg {
    position: relative;
    z-index: 2; /* Тег категории выше затемняющего слоя */
    font-size: 0.8rem;
    text-align: right;
    margin-top: 0;
    width: 100%;
}

.news-margin h3, .news-margin p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 80%;
}

.news-margin p {
    max-width: 70% !important;
    font-size: 14px;
    font-weight: 300;
}

.news-margin p:nth-child(3) {
    margin: 0.5rem 0 !important;
}

.news-item h3 {
    font-size: 1.25rem;
}

.news-item img {
    display: none;
}

.container h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: left;
    margin-bottom: 5.63rem;
}

.news-a a {
    text-decoration: none;
    font-size: 1.2rem;
}

.news-a {
    margin-top: 1rem;
    text-align: right;
}

.news-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #333;
    color: #fff;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.news-content {
    position: relative;
    height: 100%;
}

.news-content h3 {
    position: absolute;
    bottom: 1.5rem;
    left: 1rem;
    font-size: 1.2rem;
    margin: 0;
    color: #333;
}

.news-content p {
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    max-height: 2.5rem;
    overflow: hidden;
}

.news-date {
    position: absolute;
    bottom: -0.5rem;
    left: 1rem;
    font-size: 0.8rem;
    color: #999;
}

.cta-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    background-color: #3689dc8c;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin: 0;
}

.cta-section .contact {
    text-align: right;
}

.cta-section .contact p {
    margin: 0.5rem 0;
}

.cta-section .contact a {
    color: #333;
    text-decoration: none;
}

.main-content {
    display: flex;
    align-items: center;
    min-height: 500px;
    background: url(../images/daisy-footer.jpg) no-repeat center center / cover;
    background-attachment: scroll;
    font-size: 1rem;
    margin: 2rem 0;
    padding: 2rem;
}

.main-content p {
    line-height: 1.6;
}

.main-content ul {
    list-style-type: disc;
    padding-left: 2rem;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    background-color: #3689dc8a;
    flex-wrap: wrap;
    gap: 1rem;
    flex-direction: column;
    margin-top: 3rem;
}

footer img {
    width: 250px;
    height: auto;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

/* Стили для карты в футере */
#map {
    width: 300px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .container {
        width: 95%;
    }

    .hero {
        height: 50vh;
    }

    .slide {
        width: 50%;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .news-content h3 {
        font-size: 1.1rem;
    }

    .news-content p {
        font-size: 0.9rem;
    }

    .news-date, .news-category {
        font-size: 0.7rem;
    }
}

@media (min-width: 1920px) {
    .waves {
        top: 8% !important;
    }

    .waves > img {
        width: 100%;
    }
    
    .container {
        max-width: 1400px;
    }

    .hero {
        height: 700px;
    }

    .slide {
        width: 600px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .news-section {
        padding: 3rem 0;
    }

    .news-item {
        min-height: 350px;
    }

    .cta-section {
        padding: 3rem 0;
    }

    footer img {
        width: 300px;
    }

    /* Адаптация карты для больших экранов */
    #map {
        width: 350px;
        height: 250px;
    }
}

.flex {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    color: black;
    justify-content: space-between;
}

.news-section {
    margin-top: 120px;
}

.flex h2 {
    font-size: 2.5rem;
    width: 100%;
    max-width: 600px;
    margin: 0;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="number"]::placeholder {
    text-align: center;
    font-family: 'Inter';
    font-size: 1rem;
}

input {
    width: 100%;
    height: 45px;
    border-radius: 30px;
    border: 0;
    background: #C4DDF5;
}

input[type="number"] {
    outline: none;
    border: 1px solid #ccc;
    padding-left: 10px;
    font-size: 1rem;
    text-align: center;
}

input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

input[type="number"] {
    -moz-appearance: textfield;
}

.container ul {
    margin-bottom: 0;
}

.context-margin {
    margin-top: 0;
}

footer > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer > p {
    font-size: 1.2rem;
}

.footer-text {
    height: auto;
}

.footer-text p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact > p {
    font-size: 2rem;
}

.waves {
    position: absolute;
    top: 20%;
    width: 100%;
    height: auto;
    opacity: 0.8;
    z-index: 4;
}

.mg-b {
    margin-bottom: 120px !important;
}

.mg-t {
    margin-top: 120px;
}

.waves-news {
    position: absolute;
    top: 54rem;
    width: 100%;
    height: auto;
    opacity: 0.8;
    z-index: -1;
}

.waves-news > img {
    width: 100%;
}

.h2-stl {
    display: flex;
    justify-content: center;
    font-size: 3rem !important;
    color: black;
    margin: 0;
}

.news-body {
    background-image: none !important;
}

.mb-g {
    margin-bottom: 250px;
}

.news-link {
    text-decoration: none;
    cursor: pointer;
}