/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #0f0f0f;
    color: #fff;
    line-height: 1.6;
}

/* Ссылки */
a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    color: #BC3823;
}

/* Контейнер */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Шапка */
.site-header {
    width: 100%;
    background: #111;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
    list-style: none;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #BC3823;
}

/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin-bottom: 5px;
    border-radius: 2px;
}

/* Переключатель языков */
.lang-buttons {
    display: flex;
    gap: 10px;
}

.lang-switch {
    background: #BC3823;
    border: none;
    color: #fff;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.lang-switch:hover {
    background: #ff4d3a;
}

/* Слайдер */
.slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.7s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

.slide-caption {
    text-align: center;
    margin-top: 15px;
    color: #fff;
}

.slide-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.slide-caption p {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.slide-caption .btn {
    background-color: #BC3823;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.slide-caption .btn:hover {
    background-color: #ff4d3a;
}

/* Кнопки слайдера */
.prev-slide, .next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: #fff;
    background: rgba(0,0,0,0.3);
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.prev-slide { left: 20px; }
.next-slide { right: 20px; }

/* Секции */
section {
    padding: 80px 0;
}

/* Карточки продуктов и проектов */
.products-grid, .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.product-card, .project-card {
    background: #111;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255,60,35,0.5);
}

/* Подвал */
.site-footer {
    background: #111;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    border-top: 1px solid #222;
}

.site-footer a {
    color: #BC3823;
    margin-left: 10px;
}

.site-footer a:hover {
    color: #ff4d3a;
}

/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

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

/* Адаптивность */
@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        flex-direction: column;
        background: #111;
        position: absolute;
        top: 70px;
        right: 0;
        width: 200px;
        border-radius: 4px;
    }

    .main-nav ul.open {
        display: flex;
    }

    .burger-menu {
        display: flex;
    }

    .slide-caption h2 {
        font-size: 1.8rem;
    }

    .slide-caption p {
        font-size: 1rem;
    }

    .slide-caption .btn {
        padding: 8px 16px;
    }

    .slide img {
        max-height: 60vh;
    }
}

/* Анимация логотипа */
.logo-animate {
    opacity: 0;
    transform: scale(0.5);
    animation: logoAppear 1s forwards ease-out;
}

@keyframes logoAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}