:root {
    --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* General styles */
body {
    font-family: var(--font-family-sans-serif);
    margin: 0;
    padding: 0;
    
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1;
    
}

/* Hero Section */
.hero-wrap {
    position: relative;
    width: 100%; /* уже указано, что нужно */
    max-width: 100vw; /* ограничение максимальной ширины */
    height: 100vh;
    background-image: url('images/bg_1.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    overflow: hidden;
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: rgba(0, 0, 0, 0.6);
    text-align: left;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 2rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem; /* Уменьшение размера текста для заголовка на мобильных устройствах */
        line-height: 1.2; /* Уменьшение межстрочного интервала */
    }
    
    .hero-content p {
        font-size: 1rem; /* Уменьшение размера текста для абзаца на мобильных устройствах */
    }
    
    .hero-wrap {
        padding: 0 1rem; /* Добавление внутреннего отступа для предотвращения выхода текста за пределы экрана */
    }
    
    .container {
        padding: 0 1rem; /* Внутренние отступы для контейнера на мобильных */
    }
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background-color: #565656;
}

.features-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-block {
    background-color: #333;
    color: #fff;
    padding: 2rem;
    text-align: center;
    box-sizing: border-box;
    flex-basis: calc(25% - 20px); 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-10px); /* Анимация при наведении */
}

.feature-block h3 {
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1.2;
    color: rgba(138, 137, 137, 0.6);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.feature-block p {
    margin-bottom: auto;
}

.feature-block .btn {
    padding: 0.75rem 1.5rem;
    background-color: #4f4f4f;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    align-self: center;
}

.feature-block .btn:hover {
    background-color: #0056b3;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: #e3e3e3;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    gap: 2rem;
}

.text-section {
    flex-basis: 50%;
    padding: 1.5rem;
}

.text-section h2 {
    font-size: 5.5rem;
    font-weight: 300;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.text-section p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555;
}

.text-section .btn-learn-more {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #706969;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.text-section .btn-learn-more:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}

.image-section {
    flex-basis: 45%;
    position: relative;
}

.image-section img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-section img:hover {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .text-section {
        flex-basis: 100%;
    }

    .image-section {
        flex-basis: 100%;
        margin-bottom: 2rem;
    }
}

/* Footer Section */
.footer {
    background-color: #212529;
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

.contact-info li {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #fff; /* Белый цвет текста по умолчанию */
    text-decoration: none; /* Убираем подчеркивание */
    transition: color 0.3s ease; /* Плавный переход цвета при наведении */
}

.contact-info a:hover {
    color: #007bff; /* Синий цвет текста при наведении */
    text-decoration: underline; /* Добавляем подчеркивание при наведении */
}

.footer p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .features-container {
        flex-direction: column;
        gap: 20px;
    }

    .feature-block {
        flex-basis: 100%;
    }

    .about-content {
        flex-direction: column;
    }

    .image-section, .text-section {
        max-width: 100%;
    }
}

.custom-btn {
    background-color: #505050; /* Bootstrap gray */
    color: white;              /* White text */
    font-weight: 600;          /* Bold text */
    padding: 10px 20px;
    border: none;
    transition: background-color 0.3s ease;
}

.custom-btn:hover {
    background-color: #5a6268; /* Darker gray on hover */
    color: white;              /* Ensure text stays white on hover */
}
