html {
            scroll-behavior: smooth;
        }

/* --- ШАПКА --- */

.logo-link {
            text-decoration: none;
            display: block;
            transition: opacity 0.3s ease;
        }

.nav-btn:hover {
            background: var(--gold);
            color: var(--dark) !important;
        }

.header-phone { 
            display: flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            border: 1px solid var(--gold);
            padding: 8px 18px;
            border-radius: 4px;
            color: var(--gold) !important;
            transition: 0.3s ease;
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
            margin-left: 10px;
            white-space: nowrap;
        }

.header-phone svg { fill: var(--gold); transition: 0.3s; }

.header-phone:hover svg { fill: var(--dark); }

/* --- HERO --- */

.hero {
            padding: 160px 0 120px;
            position: relative;
            background: 
                linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.46) 50%, rgba(0,0,0,0.06) 100%),
                linear-gradient(to bottom, var(--dark) 0%, rgba(0,0,0,0) 15%),
                url("../../images/granitnye-pamyatniki-murom.webp") center right/cover no-repeat;
            color: var(--white);
            display: flex;
            align-items: center;
            overflow: hidden;
        }

.hero::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 90px;
            background: linear-gradient(to bottom, rgba(250,249,246,0), var(--bg));
            pointer-events: none;
        }

.hero-content {
            position: relative;
            z-index: 2;
            max-width: 620px;
        }

.hero h1 { 
             font-family: "Playfair Display", serif; 
             font-size: clamp(2rem, 5vw, 3.5rem); 
             margin-bottom: 20px; 
             line-height: 1.1;
        }

.hero p { 
             font-size: 1.2rem; 
             margin-bottom: 24px; 
             opacity: 0.9; 
             max-width: 500px;
        }

.hero-trust {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 0 0 34px;
        }

.hero-trust span,
.hero-trust a {
            padding: 8px 13px;
            border: 1px solid rgba(255,255,255,0.22);
            border-radius: 999px;
            background: rgba(31,31,31,0.38);
            color: rgba(255,255,255,0.88);
            font-size: 0.9rem;
            backdrop-filter: blur(6px);
            text-decoration: none;
            transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
        }

.hero-trust a:hover {
            border-color: rgba(184,151,120,0.8);
            background: rgba(184,151,120,0.18);
            color: var(--white);
        }

.btn-main {
            display: inline-block;
            background: transparent;
            color: var(--gold);
            padding: 18px 40px;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 500;
            transition: .3s;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            border: 1px solid var(--gold);
            cursor: pointer;
            text-align: center;
        }

.btn-main:hover { 
             background: var(--gold); 
             color: var(--dark); 
             transform: translateY(-2px); 
             box-shadow: 0 6px 20px rgba(184, 151, 120, 0.2); 
         }

/* --- СЕКЦИИ --- */

section { padding: 90px 0; }

.trust-strip {
            padding: 0;
            margin-top: -34px;
            position: relative;
            z-index: 3;
        }

.trust-strip-inner {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1px;
            background: rgba(184,151,120,0.26);
            border: 1px solid rgba(184,151,120,0.28);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: var(--shadow-soft);
        }

.trust-strip-item {
            background: rgba(255,255,255,0.96);
            padding: 24px 26px;
        }

.trust-strip-item strong {
            display: block;
            font-family: "Playfair Display", serif;
            color: var(--dark);
            font-size: 1.18rem;
            margin-bottom: 6px;
        }

.trust-strip-item span {
            display: block;
            color: var(--muted);
            font-size: 0.94rem;
            line-height: 1.55;
        }

@media (min-width: 769px) {
            #services { padding-bottom: 70px; }
            #portfolio-preview { padding-top: 70px; padding-bottom: 70px; }
            #process { padding-top: 55px; }
        }

.section-title {
            font-family: "Playfair Display", serif;
            font-size: 36px;
            text-align: center;
            margin-bottom: 60px;
            position: relative;
            padding-bottom: 15px;
        }

.section-title::after {
            content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
            width: 80px; height: 3px; background: var(--gold);
        }

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

.card {
            background: var(--white);
            border-radius: 8px;
            overflow: hidden;
            transition: .3s;
            border: 1px solid rgba(184,151,120,0.2);
            border-top: 4px solid var(--gold);
            display: flex;
            flex-direction: column;
        }

.card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.1); }

.card-content { padding: 25px; text-align: left; }

.card h3 { font-family: "Playfair Display", serif; margin-bottom: 10px; font-size: 1.4rem; color: var(--dark); }

.card p { font-size: 0.95rem; color: #555; }

/* --- ПОРТФОЛИО --- */

.portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-bottom: 50px;
        }

.portfolio-item {
            position: relative;
            height: 350px;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            background: #e0e0e0;
        }

.portfolio-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            display: block;
        }

.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-item::after {
            content: "";
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.2);
            transition: 0.3s;
            opacity: 0;
        }

.portfolio-item:hover::after { opacity: 1; }

.portfolio-more {
            text-align: center;
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 14px;
            align-items: center;
        }

/* --- FAQ АНОНС НА ГЛАВНОЙ --- */

#faq-preview {
            padding: 65px 0;
            background: var(--bg);
        }

.faq-preview-box {
            max-width: 820px;
            margin: 0 auto;
            text-align: center;
        }

.faq-preview-text {
            max-width: 640px;
            margin: 0 auto 28px;
            color: #555;
            font-size: 1rem;
        }

.faq-preview-list {
    list-style: none;
    margin: 0 auto 28px;
    max-width: 620px;
    text-align: left;
}

.faq-preview-list li {
    position: relative;
    margin: 0 0 16px;
    padding-left: 28px;
    font-weight: 500;
    color: #2b2b2b;
    line-height: 1.55;
    text-align: left;
}

.faq-preview-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0.68em;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--gold);
        }

.faq-preview-list a {
            color: inherit;
            text-decoration: none;
        }

.faq-preview-link {
            display: inline-block;
            color: var(--gold);
            border: 1px solid var(--gold);
            border-radius: 4px;
            padding: 9px 18px;
            font-size: 0.88rem;
            font-weight: 500;
            line-height: 1.2;
            text-decoration: none;
            transition: 0.25s ease;
            background: transparent;
        }

.faq-preview-link:hover {
            color: var(--dark);
            background: rgba(184, 151, 120, 0.12);
            text-decoration: none;
        }

@media (max-width: 768px) {
            .faq-preview-list {
                max-width: 100%;
                margin-left: auto;
                margin-right: auto;
            }
        }

/* --- НАВИГАЦИОННЫЕ ССЫЛКИ В ПОДВАЛЕ --- */

footer { background: var(--dark); color: #bbb; padding: 70px 0 35px; }

/* --- КНОПКА СВЯЗИ В УГЛУ --- */

/* --- ОКНО ФОРМЫ --- */


@media (max-width: 768px) {
            .faq-preview-box {
                padding: 34px 24px 36px;
            }

            .faq-preview-bottom {
                flex-direction: column;
                align-items: stretch;
            }

            .faq-preview-link {
                width: 100%;
                text-align: center;
            }
        }

@media (max-width: 1024px) {
            nav {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                width: 100%;
                background: var(--dark);
                padding: 20px 0;
                box-shadow: 0 10px 20px rgba(0,0,0,0.3);
            }
            nav.active { display: block; }
            nav ul { flex-direction: column; gap: 15px; }
            .nav-btn { border: none; font-size: 1rem; }
            .burger { display: flex; }
            
            .hero { text-align: center; padding: 100px 0 80px; }
            .hero-content { margin: 0 auto; }
            .hero-trust { justify-content: center; }
            .trust-strip-inner { grid-template-columns: 1fr; }
            .callback-bt span { display: none; }
            .callback-bt { padding: 15px; border-radius: 50%; }
        }

@media (max-width: 480px) {
            html, body {
                overflow-x: hidden !important; /* Убирает горизонтальный свайп */
                width: 100% !important;
                position: relative !important;
            }
            .header-inner {
                padding: 0 10px !important;
            }
            .logo {
                font-size: 18px !important; /* Делаем лого компактнее */
            }
            .logo-subtext {
                font-size: 7px !important;
                letter-spacing: 2px !important;
            }
            .header-phone {
                font-size: 0.78rem !important;
                padding: 5px 8px !important;
                margin-left: 5px !important;
                white-space: nowrap !important;
                flex-shrink: 0 !important;
            }
            .callback-bt {
                right: 15px !important; /* Возвращаем иконку сообщения на экран */
                bottom: 15px !important;
            }
        }

/* --- УНИФИЦИРОВАННАЯ МОБИЛЬНАЯ АДАПТАЦИЯ --- */

@media (max-width: 768px) {
            .container {
                width: calc(100% - 32px);
            }

            .header-inner {
                flex-wrap: nowrap;
                align-items: center;
            }

            .logo {
                font-size: 18px;
                letter-spacing: 1px;
            }

            .logo-subtext {
                font-size: 8px;
                letter-spacing: 3px;
            }

            .header-phone {
                min-width: 0;
                flex-shrink: 0;
                white-space: nowrap;
                padding: 7px 10px;
                font-size: 0.78rem;
            }

            .nav-btn {
                width: 100%;
                text-align: center;
            }

            .callback-bt {
                right: 15px;
                bottom: 15px;
            }

            .callback-bt span {
                display: none;
            }

            .callback-bt {
                padding: 14px;
                border-radius: 50%;
            }

            .form-container {
                width: calc(100vw - 24px);
                right: 12px;
                left: 12px;
                bottom: 80px;
            }

            .btn-main,
            .btn-send {
                width: 100%;
            }
        }
