@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    margin: 0;
    padding: 0;
}

/* Links */
a {
    color: #e1de28;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    text-transform: uppercase;
    color: #000000;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Card Component */
.card {
    background-color: #FFFFFF;
    padding: 20px;
    border: 1px solid #000000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FFFFFF;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav a {
    color: #ffffff;
    font-weight: 600;
    padding: 10px;
    text-transform: uppercase;
}

.nav a:hover {
    color: #e1de28;
    text-decoration: none;
}

/* Button */
.button {
    background-color: #e1de28;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #b7b534;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background-image: url(./images/fon2.jpg);
    background-size: cover;
    background-position: bottom;
    padding: 150px 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #e1de28 0%, #FFFFFF 50%);
    opacity: 0.1;
    z-index: -1;
}

.hero .container {
    display: flex;
    justify-content: center;
}

.hero-block {
    background-color: #e1de28bd;
    padding: 30px;
    border-radius: 30px;
    max-width: 700px;
    width: 100%;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: #ffffff;
}

/* Footer */
.footer {
    background-color: #000000;
    color: #FFFFFF;
    padding: 10px 0;
    text-align: center;
}

.footer a {
    color: #e1de28;
}

.footer a:hover {
    text-decoration: underline;
}

/* Section Padding */
section {
    padding: 60px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: center;
    }

    .nav a {
        margin: 5px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

.call-to-action {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(to right, #e1de28, #fff);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.button {
    background-color: #e1de28;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
}

.button:hover {
    background-color: #b7b534;
}

.history {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.history-content {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 40px;
}

.history-text {
    flex: 1;
}

.history-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
}

.parts-gallery {
    padding: 60px 0;
}

.parts-gallery h2 {
    text-align: center;
}

.gallery {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 870px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: repeat(1, 1fr);
    }

    .huyna {
        flex-direction: column;
    }
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1/1;
    max-width: 300px;
    object-fit: contain;
    height: auto;
    border-radius: 8px;
}

.gallery-item p {
    margin-top: 10px;
    font-size: 1.1rem;
}

.benefits {
    padding: 60px 0;
    text-align: center;
}

.benefits-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item i {
    font-size: 40px;
    margin-bottom: 20px;
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.contact-us {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.nav {
    background-color: #0000007b;
}

.contact-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.social-media {
    margin-top: 20px;
}

.social-button {
    display: inline-block;
    margin-right: 15px;
    color: #e1de28;
    font-size: 1.2rem;
    text-decoration: none;
}

.social-button i {
    margin-right: 5px;
}

.social-button:hover {
    color: #b7b534;
}

.contact-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
    }

    .social-button {
        margin-bottom: 10px;
    }
}

section {
    background-color: #f9f9f9;
}

.services h2 {
    text-align: center;
    margin-bottom: 25px;
}

/* Стили для каждого блока */
.services-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    /* Отступы между блоками */
    justify-content: center;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Стили для каждого блока */
.service-box {
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Стили для изображения */
.service-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    /* Плавный переход для эффекта увеличения */
}

/* Эффект увеличения при наведении */
.service-box:hover img {
    transform: scale(1.1);
    /* Увеличение на 10% */
}

/* Стили для текста */
.service-box h3 {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    /* Полупрозрачный фон для текста */
    color: white;
    padding: 10px;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-transform: uppercase;
}

/* Адаптивность для меньших экранов */
@media (max-width: 768px) {
    .services-section {
        grid-template-columns: repeat(2, 1fr);
        /* На экранах меньше 768px — 2 столбца */
    }
}

@media (max-width: 480px) {
    .services-section {
        grid-template-columns: 1fr;
        /* На экранах меньше 480px — 1 столбец */
    }
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    opacity: 0;
    /* Начальное состояние - невидимый */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section.animate {
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
    /* Запускаем анимацию */
}

.special-offers h2 {
    text-align: center;
    margin-bottom: 30px;
}

/* Стили для секции Special Offers */
.special-offers-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 столбца для 3 карточек */
    grid-gap: 20px;
    margin-top: 20px;
    padding: 0 20px;
    /* Соответствует стилю .container */
    max-width: 1200px;
    margin: 0 auto;
}

.offer-box {
    position: relative;
    background-color: #fff;
    /* Белый фон для карточек */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    /* Плавный переход для эффекта при наведении */
}

.offer-box:hover {
    transform: translateY(-5px);
    /* Легкое поднятие при наведении */
}

.offer-box h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

.offer-box p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.offer-box .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e1de28;
    /* Синий цвет кнопки, как на сайте */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
}

.offer-box .button:hover {
    background-color: #b7b534;
    /* Темно-синий при наведении */
}

/* Адаптивность для меньших экранов */
@media (max-width: 768px) {
    .special-offers-section {
        grid-template-columns: repeat(2, 1fr);
        /* На экранах меньше 768px — 2 столбца */
    }
}

@media (max-width: 480px) {
    .special-offers-section {
        grid-template-columns: 1fr;
        /* На экранах меньше 480px — 1 столбец */
    }
}

/* Стили для секции Video Feature */
.video-feature {
    position: relative;
    width: 100%;
    height: 500px;
    /* Высота секции */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Видео заполняет область с сохранением пропорций */
    z-index: 1;
}

.video-overlay {
    position: relative;
    z-index: 2;
    background-color: #e1de28bd;
    /* Полупрозрачный синий фон в стиле сайта */
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.video-overlay h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.video-overlay p {
    color: white;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.video-overlay .button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #fff;
    /* Белая кнопка для контраста */
    color: #e1de28;
    /* Синий текст кнопки */
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.video-overlay .button:hover {
    background-color: #e1de286e;
    /* Темно-синий фон при наведении */
    color: white;
    /* Белый текст при наведении */
}

/* Адаптивность */
@media (max-width: 768px) {
    .video-feature {
        height: 400px;
        /* Уменьшаем высоту для планшетов */
    }

    .video-overlay {
        padding: 20px;
    }

    .video-overlay h2 {
        font-size: 28px;
    }

    .video-overlay p {
        font-size: 14px;
    }

    .video-overlay .button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .video-feature {
        height: 350px;
        /* Уменьшаем высоту для мобильных */
    }

    .video-overlay h2 {
        font-size: 24px;
    }
}

/* Анимация появления справа */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
        /* Начальная позиция справа */
    }

    to {
        opacity: 1;
        transform: translateX(0);
        /* Конечная позиция */
    }
}

/* Класс для элементов, которые будут появляться справа */
.section-right {
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-right.animate-right {
    opacity: 1;
    transform: translateX(0);
    animation: fadeInRight 0.6s ease-out forwards;
    /* Запускаем анимацию */
}