/* Общие стили */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden; /* Запрещаем горизонтальную прокрутку */
}

.container {
    width: 80%;
    margin: 0 auto;
}

li {
    margin-top: 12px;
}

header {
    background: rgba(255, 255, 255, 0.9);
    color: black;
    padding: 0.5em 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ccc;
    position: fixed; /* Меняем absolute на fixed */
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    border-radius: 25px; /* Добавляем скругленные углы */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px); /* Добавляем размытие фона */
    min-width: 800px; /* Устанавливаем минимальную ширину */
}

header .logo {
    display: flex;
    align-items: center;
    margin-right: 2em; /* Увеличиваем отступ справа */
}

header .logo img {
    border-radius: 50%;
    margin-right: 10px;
    width: 40px;
    height: 40px;
}

header .logo span {
    font-size: 1.5em;
    font-weight: bold;
}

nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between; /* Центруем навигацию */
}

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

nav ul li {
    margin-left: 1em;
}

nav ul li a {
    color: black;
    text-decoration: none;
    padding: 0.5em 1em;
    border-radius: 25px; /* Добавляем скругленные углы */
    transition: background 0.3s;
    background: rgba(255, 255, 255, 0.6); /* Добавляем легкий фон */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Добавляем тень */
}

nav ul li a:hover {
    background: rgba(233, 30, 99, 0.1);
}

nav .contact-btn {
    background: #e91e63;
    color: white;
    padding: 0.5em 1em;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Добавляем тень */
}

nav .contact-btn:hover {
    background: #d81b60;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero {
    background: url('mainscreen.webp') no-repeat center center/cover;
    color: white;
    padding: 6em 0;
    text-align: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0; /* Убираем отступ сверху */
}

.hero:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Темный наложение для улучшения читаемости текста */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    margin: 0;
    font-size: 4em;
    animation: fadeInDown 1s;
}

.hero p {
    font-size: 1.2em;
    margin: 1em 0;
    animation: fadeInUp 1s;
}

.hero .btn {
    text-decoration: none;
    color: white;
    background: #e91e63;
    padding: 0.75em 1.5em;
    border-radius: 25px;
    transition: background 0.3s;
}

.hero .btn:hover {
    background: #d81b60;
}

.features {
    background: #fff;
    padding: 2em 0;
    text-align: center;
}

.features h2 {
    font-size: 2em;
    margin-bottom: 0.5em;
}

.features .feature {
    margin: 1em 0;
}

.features .feature h3 {
    margin: 0.5em 0;
}

.features .feature p {
    margin: 0;
    color: #666;
}

.products {
    background: #f9f9f9;
    padding: 2em 0;
    text-align: center;
}

.products h2 {
    margin-bottom: 1.5em;
    font-size: 2em;
}

.products .products-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.products .product-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 1em;
    padding: 1.5em;
    text-align: center;
    transition: transform 0.3s;
    width: calc(25% - 2em);
    box-sizing: border-box;
}

.products .product-card:hover {
    transform: scale(1.05);
}

.products .product-card img {
    border-radius: 15px;
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
}

.products .product-card h3 {
    margin: 1em 0 0.5em 0;
    font-size: 1.5em;
}

.products .product-card .date {
    color: #999;
    font-size: 0.9em;
    margin-bottom: 1em;
}

.products .product-card p {
    color: #666;
}

.products .product-card .btn {
    margin-top: 1em;
    text-decoration: none;
    color: white;
    background: #e91e63;
    padding: 0.5em 1em;
    border-radius: 25px;
    transition: background 0.3s;
}

.products .product-card .btn:hover {
    background: #d81b60;
}

.contact {
    background: #fff;
    padding: 2em 0;
    text-align: center;
}

.contact h2 {
    font-size: 2em;
    margin-bottom: 1em;
}

.contact .contact-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact .contact-details,
.contact .contact-map {
    width: 45%;
    margin: 1em 0;
    padding: 1em;
    background: #f9f9f9;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.contact .contact-details p,
.contact .contact-details a {
    margin: 0.5em 0;
    color: #333;
}

.contact .contact-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 25px;
}

footer {
    background: #333;
    color: white;
    padding: 1em 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 0.5em
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Медиазапросы для мобильных устройств */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1em;
        min-width: 100%;
        left: 0;
        transform: translateX(0);
        position: relative;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin: 0.5em 0;
        width: 100%;
    }

    .hero {
        padding: 3em 1em;
        height: auto;
    }

    .hero h2 {
        font-size: 2.5em;
    }

    .hero p {
        font-size: 1em;
    }

    .features,
    .products,
    .contact {
        padding: 1em;
    }

    .products .products-container {
        flex-direction: column;
    }

    .products .product-card {
        width: 100%;
    }

    .contact .contact-info {
        flex-direction: column;
    }

    .contact .contact-details,
    .contact .contact-map {
        width: 100%;
    }
}
