
:root {
    --primary-color: #eadbc3;
    --secondary-color: #f6ead8;
    --accent-color: #fffdf5;
    --text-color: #2b170f;
    --card-bg: rgba(248, 238, 220, 0.92);
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-family: 'Roboto', sans-serif; /* Более современный шрифт */
    font-size: 18px;
    background: linear-gradient(135deg, #f6ead8 0%, #eadbc3 100%);
    min-height: 100vh;
}

h1, h2, h3, .navbar-brand {
    font-family: 'Cinzel', serif;
    color: var(--accent-color);
    text-shadow: 0 2px 8px rgba(255,255,255,0.55);
}

.navbar-logo {
    height: 50px;
    width: auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(234,219,195,0.22), rgba(234,219,195,0.55)), url('../images/background.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    height: 100vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-header {
    background: linear-gradient(rgba(234,219,195,0.22), rgba(234,219,195,0.65)), url('../images/background.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 50vh;
}

/* Cards - Modern Clean */
.service-card {
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    color: var(--text-color);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--accent-color);
}

.card-img-top {
    transition: transform 0.5s;
}

.service-card:hover .card-img-top {
    transform: scale(1.05);
}

.price {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: bold;
    margin: 10px 0;
}

.btn-primary {
    background: #2b170f;
    border: none;
    color: var(--text-color);
    border-radius: 30px;
    padding: 10px 30px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 117, 252, 0.4);
}

.btn-warning {
    background-color: var(--accent-color);
    border: none;
    border-radius: 30px;
    color: #2b170f;
    font-weight: bold;
}

.btn-warning:hover {
    background-color: #e0a800;
    color: #000;
}

/* Gallery */
.gallery-img {
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.3);
}

/* Navigation */

.about-img {
    border-radius: 15px;
    max-width: 400px; /* Limit the width */
    height: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); /* Add a subtle shadow */
}

.about-section {
    align-items: flex-start; /* Align items to the start of the flex container */
}

@media (max-width: 991.98px) {
    .about-section {
        flex-direction: column;
    }
    .about-section .col-lg-5 {
        margin-bottom: 2rem;
    }
}

.nav-link {
    color: var(--text-color) !important;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent-color) !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991px) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .page-header {
        height: 30vh;
        min-height: 250px;
    }

    .navbar-collapse {
        background-color: rgba(0, 5, 16, 0.95);
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        border: 1px solid rgba(255, 193, 7, 0.3);
    }

    .navbar-logo {
        height: 40px;
    }

    .display-1 {
        font-size: 3rem;
    }

    .display-2 {
        font-size: 2.2rem;
    }

    .fs-2 {
        font-size: 1.5rem !important;
    }
    
    .fs-3 {
        font-size: 1.2rem !important;
    }
}

/* Shared mobile layout safeguards */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container,
    .container-fluid {
        width: 100%;
        max-width: 100%;
    }

    .navbar > .container {
        gap: 0.5rem;
        align-items: center;
    }

    .navbar-brand {
        min-width: 0;
        max-width: calc(100% - 11rem);
        overflow-wrap: anywhere;
        white-space: normal;
        line-height: 1.1;
    }

    .top-controls {
        flex-shrink: 0;
    }

    .page-header {
        min-height: 220px !important;
        height: auto !important;
        padding: 6rem 1rem 2rem !important;
    }

    .page-header h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .hero-section {
        min-height: auto !important;
        height: auto !important;
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .featured-promo,
    .team-layout {
        grid-template-columns: 1fr !important;
    }

    .featured-promo {
        min-height: 0 !important;
    }

    .featured-promo-title,
    .featured-banner,
    .card-title,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        overflow-wrap: anywhere;
    }

    .featured-promo-text {
        padding: 1rem;
    }

    .featured-cta-image-wrap,
    .featured-cta-image-wrap img {
        height: 220px !important;
        min-height: 220px !important;
    }

    .card-body,
    .service-card {
        min-width: 0;
    }

    .card-body .d-flex {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .btn {
        white-space: normal;
        max-width: 100%;
    }

    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .contact-circle {
        flex-shrink: 0;
    }
}

@media (max-width: 400px) {
    .navbar-brand {
        max-width: calc(100% - 8.5rem);
        font-size: 0.95rem !important;
    }

    .top-controls {
        gap: 0.25rem;
    }

    .menu-button,
    .language-button,
    .account-button {
        width: 34px !important;
        height: 34px !important;
    }

    .featured-banner {
        font-size: 1.1rem;
        text-align: center;
    }
}
