
:root {
    --accent: #3572EF;
    --text-main: #101828;
}

html {
    scroll-behavior: smooth;
}

section {
    width: 100%;
    padding: 90px 0;
    scroll-margin-top: 140px;
    position: relative;
    z-index: 2;
}

#top {
    display: block;
    height: 140px;
    margin-top: -140px;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

#global-fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/img/bg-fireplace.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    will-change: filter;
    transition: filter 0.1s linear;
}

#global-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: -1;
}

body.theme-natural section {
    background-color: rgba(243, 240, 235, 0.85);
    backdrop-filter: blur(5px);
}

body.theme-bright section:nth-of-type(odd) {
    background-color: #FFFFFF;
}

body.theme-bright section:nth-of-type(even) {
    background-color: #F4F6F8;
    border-top: 1px solid #EAECF0;
    border-bottom: 1px solid #EAECF0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

body.theme-bright .section-title {
    font-weight: 800;
    letter-spacing: -1px;
    color: #101828;
}

body.theme-natural .section-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
}

.hero-section-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 32px;
    box-sizing: border-box;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 60px 50px;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    animation: floatUp 1.2s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-glass-card h1 {
    font-size: clamp(1.7rem, 3.2vw, 2.8rem);
    margin-bottom: 12px;
    line-height: 1.06;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: #101828;
    max-width: 14ch;
    margin-left: auto;
    margin-right: auto;
}

body.theme-bright .hero-glass-card h1 {
    font-weight: 500;
    letter-spacing: -0.04em;
}

.hero-glass-card p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 22px;
    font-weight: 400;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-glass-card .ck-content a {
    display: inline-block !important;
    background-color: var(--accent) !important;
    color: #ffffff !important;
    padding: 18px 50px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    margin-top: 20px !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none !important;
}

.hero-glass-card .ck-content a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    filter: brightness(0.9);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-more {
    display: flex;
    flex-direction: column;
}

.learn-more-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(53, 114, 239, 0.12), rgba(53, 114, 239, 0.05));
    color: var(--accent);
    border: 1px solid rgba(53, 114, 239, 0.24);
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    list-style: none;
    width: fit-content;
    box-shadow: 0 8px 18px rgba(53, 114, 239, 0.08);
    order: 2;
    margin-top: 2px;
}

.about-more > .learn-more-btn {
    display: inline-flex;
}

.learn-more-btn:hover {
    background: rgba(53, 114, 239, 0.08);
    transform: translateY(-1px);
    border-color: rgba(53, 114, 239, 0.45);
}

.about-more > summary.learn-more-btn {
    list-style: none;
}

.about-more > summary.learn-more-btn::-webkit-details-marker {
    display: none;
}

.about-more > summary.learn-more-btn::marker {
    content: '';
}

.learn-more-btn::after {
    content: '⌄';
    font-size: 1.1em;
    line-height: 1;
    transition: transform 0.2s ease;
}

.about-more[open] > summary.learn-more-btn::after {
    transform: rotate(180deg);
}

.about-content-more {
    order: 1;
    margin-top: 0;
    animation: aboutReveal 0.25s ease;
}

@keyframes aboutReveal {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: stretch;
}

.service-card {
    width: calc((100% - 60px) / 3);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

body.theme-bright .service-card {
    border: 1px solid #EAECF0;
    box-shadow: 0 4px 6px -2px rgba(16, 24, 40, 0.03);
}

body.theme-bright section:nth-of-type(even) .service-card {
    box-shadow: 0 10px 15px -3px rgba(16, 24, 40, 0.08);
}

body.theme-bright .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(16, 24, 40, 0.1);
    border-color: var(--accent);
}

body.theme-natural .service-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.service-img-container {
    height: 220px;
    background: #f0f0f0;
    position: relative;
    flex-shrink: 0;
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 3.9rem;
}

.service-tag {
    display: inline-flex;
    align-items: center;
    background: #F2F4F7;
    color: #344054;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    width: fit-content;
}

.service-desc-text {
    color: #667085;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #EAECF0;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #101828;
}

.card-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.card-btn:hover {
    filter: brightness(1.1);
}

body.theme-natural .card-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

body.theme-natural .card-btn:hover {
    background: var(--text-main);
    color: #fff;
}

.contact-wrapper {
    max-width: 600px;
    margin: 40px auto 0;
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: left;
}

body.theme-bright .contact-wrapper {
    border: 1px solid #EAECF0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #344054;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    background: #fff;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(53, 114, 239, 0.1);
}

.form-input.date-picker {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23667085' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

textarea.form-input {
    resize: vertical;
}

.contact-submit-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    padding: 14px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: filter 0.2s;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    filter: brightness(1.1);
}

#form-response {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    min-height: 24px;
}

.success-msg {
    color: #027A48;
}

.error-msg {
    color: #B42318;
}

/* === 6. ОСТАЛЬНЫЕ БЛОКИ === */
.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 56px;
    align-items: start;
}

.split-img {
    align-self: start;
}

.split-img img {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08);
}

.split-text {
    max-width: 100%;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    padding: 32px;
    border-radius: 16px;
    background: #fff;
    height: 100%;
}

body.theme-bright .review-card {
    border: 1px solid #EAECF0;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.review-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review-name {
    font-weight: 700;
    font-size: 1rem;
    color: #101828;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    border-radius: 20px;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 24px -4px rgba(16, 24, 40, 0.1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #98A2B3;
    transition: 0.2s;
}

.close-modal:hover {
    color: #101828;
    transform: rotate(90deg);
}

.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.0s ease-out;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .service-card {
        width: calc((100% - 30px) / 2);
    }
}

@media (max-width: 900px) {
    .split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    section {
        padding: 60px 0;
    }

    .hero-section-wrapper {
        padding: 120px 20px 0;
    }

    .hero-glass-card {
        padding: 40px 20px;
    }

    .hero-glass-card h1 {
        font-size: 1.75rem;
    }
}

@media (max-width: 650px) {
    .service-card {
        width: 100%;
    }

    .services-grid {
        gap: 20px;
    }
}
/* --- ФИКС ФОНА ДЛЯ МОБИЛЬНЫХ (ОБЯЗАТЕЛЬНО ДОБАВИТЬ В КОНЕЦ) --- */
@media (max-width: 768px) {
    #global-fixed-bg {
        /* 1. Отключаем параллакс (fixed), так как телефоны его не любят */
        background-attachment: scroll !important;

        /* 2. Растягиваем на весь экран принудительно */
        height: 100vh !important;
        width: 100vw !important;

        /* 3. Гарантируем, что используется фон из настроек или дефолтный */
        background-image: url('/static/img/bg-fireplace.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* 4. Делаем секции полупрозрачными, чтобы сквозь них было видно фон */
    body.theme-natural section,
    body.theme-bright section {
        background-color: rgba(255, 255, 255, 0.85) !important;
    }
}
