/* Пользовательские переменные для точных цветов и скруглений */
:root {
    --bs-custom-body-bg: #fdfaf6;
    --bs-custom-body-color: #333;
    --bs-custom-heading-font: 'Arsenal', sans-serif;
    --bs-custom-heading-color: #4a3b31;
    --bs-custom-section-border-color: #e4dcd3;
    --bs-custom-section-intro-color: #5f534c;
    --bs-custom-footer-bg: #4a3b31;
    --bs-custom-footer-text: #dcdcdc;
    --bs-custom-copyright-color: #9e9e9e;
    --bs-custom-scroll-to-top-bg: #a08c78;
    --bs-custom-scroll-to-top-hover-bg: #8d7b68;

    /* Navbar colors */
    --bs-custom-navbar-bg: #2c3e50; /* Темно-сине-серый */
    --bs-custom-navbar-link-color: #ffffff;
    --bs-custom-navbar-link-hover-color: #1abc9c; /* Бирюзовый акцент */
}

/* General body styles */
body {
    font-family: 'Inter', sans-serif; /* Основной шрифт */
    background-color: var(--bs-custom-body-bg);
    margin: 0;
    color: var(--bs-custom-body-color);
    line-height: 1.7;
}

/* Heading styles */
h1, h2, h3 {
    font-family: var(--bs-custom-heading-font);
    color: var(--bs-custom-heading-color);
    font-weight: 700;
}

/* General styles for sections */
.content-section {
    padding: 70px 25px;
    text-align: center;
    border-bottom: 1px solid var(--bs-custom-section-border-color); /* Soft line */
}
.content-section:last-of-type {
    border-bottom: none;
}

.section-intro {
    font-size: 1.15em;
    color: var(--bs-custom-section-intro-color);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.content-section h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
}

/* Footer styles */
.footer-section {
    background-color: var(--bs-custom-footer-bg); /* Darkest brown */
    color: var(--bs-custom-footer-text);
    text-align: center;
    padding: 45px 20px;
    margin-top: 50px;
}

.footer-section p {
    margin: 12px 0;
    font-size: 1.05em;
}

.copyright {
    font-size: 0.85em !important;
    margin-top: 25px;
    color: var(--bs-custom-copyright-color);
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--bs-custom-scroll-to-top-bg);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, opacity 0.3s ease;
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Disable events when hidden */
}

.scroll-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top:hover {
    background-color: var(--bs-custom-scroll-to-top-hover-bg);
}

/* Fade-in animation base styles (used by JS) */
.fade-in-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar specific styles */
.navbar-custom {
    background-color: var(--bs-custom-navbar-bg) !important;
}

.navbar-custom .navbar-brand,
.navbar-custom .nav-link {
    color: var(--bs-custom-navbar-link-color) !important;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.navbar-custom .nav-link:hover {
    color: var(--bs-custom-navbar-link-hover-color) !important;
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}


/* Responsiveness for common elements */
@media (max-width: 768px) {
    .content-section h2 {
        font-size: 2.2em;
    }
    .scroll-to-top {
        padding: 8px 12px;
        font-size: 0.9em;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .content-section {
        padding: 50px 15px;
    }
}