/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Шапка */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.left-menu {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: flex-start;
}

.left-menu a {
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.left-menu a:hover {
    color: #d10000;
}

.logo {
    margin: 0 20px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.right-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.phone {
    font-weight: 600;
    color: #333;
    transition: color 0.3s;
}

.phone:hover {
    color: #d10000;
}

.telegram {
    color: #0088cc;
    font-size: 24px;
    transition: transform 0.3s;
}

.telegram:hover {
    transform: scale(1.1);
}

/*Мобильная версия шапки*/

/* Сначала скрываем мобильную версию */
.mobile-nav {
    display: none;
}

/* Бургер-кнопка */
.burger-btn {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #d10000;
    transition: all 0.3s ease;
}

/* Мобильное меню (скрыто по умолчанию) */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 90;
    transition: left 0.3s ease;
    padding: 80px 20px 20px;
    box-sizing: border-box;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    color: #333;
    font-size: 18px;
    text-decoration: none;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: #d10000;
}

/* Кнопка закрытия */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #d10000;
    cursor: pointer;
    padding: 5px;
}

/* Мобильные контакты */
.mobile-contacts {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.mobile-contacts .phone {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.mobile-contacts .telegram {
    color: #0088cc;
    font-size: 24px;
}

/* Переключение между версиями */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 70px;
        position: relative;
    }
    
    .mobile-logo {
        display: block;
    }
    
    .burger-btn {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 22px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 100;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .burger-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #d10000;
    }
}

@media (min-width: 769px) {
    .mobile-nav {
        display: none;
    }
}

/* Основное содержимое */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

section {
    padding: 80px 0;
    border-bottom: 1px solid #eee;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 32px;
    color: #222;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #d10000;
    margin: 15px auto 0;
}

/* Герой-секция */
.hero {
    position: relative;
    text-align: center;
    padding: 150px 20px;
    margin-bottom: 50px;
    background: url('photo/fon.png') no-repeat center center;
    background-size: 90% 100%;
    height: 500px;
    color: white;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
}

.hero h1 {
    font-size: 48px;
    font-weight: normal;
    margin: 0 auto 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: black;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 24px;
    color: black;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    font-weight: 500;
}

.hero-subtitle::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: #d10000;
    margin: 20px auto 0;
}

.highlight {
    color: #d10000;
    font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero {
        padding: 100px 20px;
        height: 400px;
        background-size: cover;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
}

/* Товары */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-link {
    display: block;
    color: #333;
}

.product-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-item h3 {
    padding: 20px;
    text-align: center;
    font-size: 18px;
}

/* О нас */
/* О нас */
.about {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.about-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    padding: 0 20px;
}

.about-block {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0; /* Добавляем светлую границу */
}

/* Убираем тень и добавляем красную границу только для второго блока */
.about-block.mission-block {
    border-top: 4px solid #d10000; /* Красная граница сверху */
    border: 1px solid #e0e0e0; /* Светлая граница для остальных сторон */
    box-shadow: none; /* Убедимся, что тень отсутствует */
}

.about-block h3 {
    color: #d10000;
    margin-bottom: 20px;
    font-size: 24px;
    position: relative;
    padding-bottom: 10px;
}

.about-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #d10000;
}

.about-block p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
    }
    
    .about-block {
        padding: 20px;
    }
    
    .about-block.mission-block {
        border-top: 4px solid #d10000; /* Сохраняем красную границу на мобильных */
    }
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border-top: 3px solid #d10000;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    margin-bottom: 15px;
    color: #d10000;
}

/* Партнеры */
.partners {
    position: relative;
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden;
}

.partners-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px;
}

.partners-viewport {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    max-width: 1000px; /* Фиксируем максимальную ширину */
}

.partners-track {
    display: flex;
    transition: transform 0.5s ease;
    padding: 20px 0;
    gap: 20px;
    width: max-content; /* Важно для корректного расчета */
}

.partner-slide {
    flex: 0 0 auto;
    width: 180px; /* Фиксированная ширина */
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-slide img {
    max-width: 100%;
    max-height: 80px;
    filter: grayscale(0%);
    opacity: 0.7;
    transition: all 0.3s;
    object-fit: contain;
}

.partner-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partners-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(209, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 20%;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.partners-button:hover {
    background: rgba(209, 0, 0, 1);
}

.partners-button.prev {
    left: 0;
}

.partners-button.next {
    right: 0;
}

@media (max-width: 768px) {
    .partners-container {
        padding: 0 50px;
    }
    
    .partners-button {
        width: 40px;
        height: 40px;
    }
}

/* Отзывы */
.reviews {
    position: relative;
    padding: 80px 0;
    background-color: #;
}

.reviews-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 0 60px; /* Место для кнопок */
}

.reviews-viewport {
    overflow: hidden;
    width: 100%;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease;
}

.review-slide {
    min-width: 100%;
    padding: 40px;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    border-top: 4px solid #d10000;
    text-align: center;
    box-sizing: border-box;
}

.review-slide h3 {
    color: #d10000;
    margin-bottom: 20px;
    font-size: 22px;
}

.review-slide p {
    margin: 0 auto 15px;
    max-width: 700px;
    line-height: 1.6;
    text-align: center;
}

.review-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(209, 0, 0, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 20%;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.review-button:hover {
    background: rgba(209, 0, 0, 1);
}

.review-button.prev {
    left: 0;
}

.review-button.next {
    right: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .reviews-container {
        padding: 0 50px;
    }
    
    .review-slide {
        padding: 30px 20px;
    }
    
    .review-button {
        width: 40px;
        height: 40px;
    }
}

/* Как купить */
.steps {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    gap: 20px;
}

.step {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #d10000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

/* Форма */
.price-form {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #d10000;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #b00000;
}

/* Контакты */
.contacts {
    padding: 80px 0;
}

.contacts-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-container {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-item i {
    color: #d10000;
    font-size: 24px;
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item p {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
}

.contact-item a {
    color: #333;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #d10000;
}

/* Подвал */
footer {
    background: #222;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

footer .telegram {
    font-size: 30px;
    color: #0088cc;
}

footer .phone {
    color: #fff;
    font-weight: 600;
}

/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    display: block;
    margin: 50px auto;
    max-width: 80%;
    max-height: 80%;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #d10000;
}

#caption {
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 18px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contacts-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .contact-info, .map-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 15px;
    }
    
    .left-menu {
        margin-bottom: 15px;
        gap: 15px;
    }
    
    .logo {
        margin: 15px 0;
    }
    
    .hero {
        padding: 100px 20px;
    }

    .hero h1 {
        font-size: 32px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .price-form {
        padding: 20px;
    }

    .contact-item {
        flex-direction: column;
    }
    
    .contact-item i {
        margin-bottom: 10px;
    }
    
    .contact-info {
        padding: 20px;
    }
}

.form-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
}

.close-notification {
    background: none;
    border: none;
    color: white;
    margin-left: 15px;
    cursor: pointer;
    font-size: 18px;
}

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