* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8B4513;
    --primary-dark: #5D2906;
    --primary-light: #A0522D;
    --secondary: #2E8B57;
    --accent: #D2691E;
    --dark: #2C2416;
    --light: #FAF3E9;
    --gray: #E8DFD0;
    --text: #3D3529;
    --text-light: #534a40;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(139, 69, 19, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 243, 233, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.logo-accent {
    color: var(--primary);
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-phone {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 25px;
}

.btn-phone:hover {
    background: var(--primary-dark);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: clamp(38px, 5.5vw, 68px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-h1-sub {
    display: block;
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.5px;
    opacity: 0.88;
    margin-top: 6px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 3;
}

/* Анимация только на внутреннем слое — compositor-friendly */
.hero-scroll-icon {
    display: inline-block;
    animation: heroChevronBounce 2s ease-in-out infinite;
}

@keyframes heroChevronBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.section-title {
    font-size: 48px;
    color: var(--dark);
    margin-bottom: 20px;
}

.bg-light {
    background: var(--light);
}

.bg-dark {
    background: linear-gradient(135deg, var(--dark), #1A150F);
    color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139,69,19,0.15);
}

.service-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.service-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 30px;
    background: #8a3d0f;
    color: #ffffff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 25px;
}

.service-card h3 a.service-card-title-link {
    color: inherit;
    text-decoration: none;
}

.service-card h3 a.service-card-title-link:hover {
    color: var(--primary);
}

.service-landing-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    margin: 0 auto 28px;
    max-width: 960px;
    font-size: 14px;
    font-weight: 600;
}

.service-landing-links a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 69, 19, 0.28);
}

.service-landing-links a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    margin: 25px 0;
}

.service-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.service-card ul i {
    color: var(--secondary);
    font-size: 14px;
}

.service-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

.calculator {
    background: white;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(139,69,19,0.12);
}

.calculator-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

.step-num {
    width: 48px;
    height: 48px;
    background: var(--gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 8px;
}

.step.active .step-num {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 8px 20px rgba(139,69,19,0.3);
}

.step span:last-child {
    font-size: 13px;
    color: var(--text-light);
}

.step.active span:last-child {
    color: var(--primary);
    font-weight: 600;
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--gray);
}

.calc-step {
    display: none;
}

.calc-step.active {
    display: block;
    animation: fadeIn 0.3s;
}

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

.calc-step h3 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

.params-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.param {
    background: var(--light);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--gray);
}

.param-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.param-label i {
    color: var(--primary);
}

.param-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.param-input input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
}

.param-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.param-input span {
    background: var(--gray);
    padding: 12px 15px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--primary);
}

.area-result {
    background: rgba(139,69,19,0.05);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.area-result i {
    font-size: 40px;
    color: var(--primary);
}

.area-result div span {
    display: block;
    font-size: 14px;
    color: var(--text-light);
}

.area-result strong {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.options-grid.two-cols {
    grid-template-columns: repeat(2, 1fr);
}

.option {
    background: var(--light);
    border: 2px solid var(--gray);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.option.selected {
    border-color: var(--primary);
    background: rgba(139,69,19,0.05);
}

.option-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: white;
}

.option-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.option-desc {
    font-size: 12px;
    color: var(--text-light);
}

.option-coef {
    display: inline-block;
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 12px;
}

.calculator-total {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    margin: 30px 0 24px;
    color: white;
}

.calculator-total div:first-child {
    font-size: 14px;
    opacity: 0.9;
}

.total-price {
    font-size: 48px;
    font-weight: 800;
    margin: 8px 0;
}

.total-hint {
    font-size: 12px;
    opacity: 0.8;
}

.calculator-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.calculator-buttons button {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn-prev {
    background: var(--gray);
    color: var(--text);
    margin-top: 6px;
}

.btn-next {
    background: var(--primary);
    color: white;
}

.btn-calc {
    background: var(--secondary);
    color: white;
}

.btn-prev, .btn-next, .btn-calc {
    display: none;
}

.price-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.price-tab {
    padding: 12px 28px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s;
}

.price-tab:hover {
    color: var(--primary);
}

.price-tab.active {
    color: var(--primary);
    background: rgba(139,69,19,0.1);
}

.price-panel {
    display: none;
}

.price-panel.active {
    display: block;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--light);
    border-radius: 20px;
    margin-bottom: 12px;
    border: 1px solid var(--gray);
    transition: all 0.3s;
}

.price-item:hover {
    border-color: var(--primary-light);
    transform: translateX(8px);
    background: white;
}

.price-item h3.price-item-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.price-item p {
    font-size: 13px;
    color: var(--text-light);
}

.price-val {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    margin-left: 20px;
}

.price-note {
    background: rgba(139,69,19,0.05);
    padding: 20px;
    border-radius: 20px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-note i {
    font-size: 20px;
    color: var(--primary);
}

.price-note p {
    font-size: 13px;
    color: #3d362e;
    line-height: 1.55;
}

/* ========== GUIDE SECTION (redesigned) ========== */
.guide-section {
    background: linear-gradient(170deg, #faf3e9 0%, #f2e8d8 100%);
    position: relative;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 52px;
}

.guide-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(139,69,19,0.07);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 48px rgba(0,0,0,0.12);
}

/* Цветная шапка карточки */
.gc-head {
    background: var(--gcl, rgba(139,69,19,0.10));
    padding: 22px 24px 18px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    min-height: 96px;
}

/* Большой декоративный номер-водяной знак */
.gc-num {
    position: absolute;
    top: 4px;
    left: 16px;
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    color: var(--gc, #8B4513);
    opacity: 0.12;
    letter-spacing: -3px;
    user-select: none;
    pointer-events: none;
}

/* Иконка в белом квадрате */
.gc-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gc, #8B4513);
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Тело карточки */
.gc-body {
    padding: 22px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gc-body h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.35;
}

.gc-body > p {
    font-size: 13.5px;
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: 16px;
}

.gc-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.gc-body ul li {
    font-size: 13px;
    color: var(--text);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

/* Цветная точка вместо тире */
.gc-body ul li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gc, #8B4513);
    opacity: 0.65;
}

/* CTA-баннер внизу секции */
.guide-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    border-radius: 20px;
    padding: 28px 36px;
    margin-top: 48px;
    box-shadow: 0 4px 28px rgba(139,69,19,0.09);
    border-left: 5px solid var(--primary);
}

.guide-cta-icon {
    width: 60px;
    height: 60px;
    background: rgba(139,69,19,0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
    flex-shrink: 0;
}

.guide-cta-text {
    flex: 1;
}

.guide-cta-text strong {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.guide-cta-text p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
}

.guide-cta-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 992px) {
    .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .guide-grid { grid-template-columns: 1fr; gap: 16px; }
    .guide-cta {
        flex-direction: column;
        text-align: center;
        align-items: center;
        border-left: none;
        border-top: 5px solid var(--primary);
        padding: 24px 20px;
        gap: 16px;
    }
    .guide-cta-btn { width: 100%; justify-content: center; }
    .gc-num { font-size: 56px; }
}

/* ===================================== */

.portfolio-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 28px;
    background: var(--light);
    border: 2px solid var(--gray);
    border-radius: 30px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: var(--primary-light);
    background: rgba(139,69,19,0.05);
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Ровно два слайдера «до/после» — на всю ширину, выше превью */
.portfolio-grid:has(> .portfolio-item:nth-child(2):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 36px;
    max-width: none;
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
}

.portfolio-grid:has(> .portfolio-item:nth-child(2):last-child) .before-after-slider {
    height: min(380px, 45vw);
    min-height: 260px;
}

@media (max-width: 700px) {
    .portfolio-grid:has(> .portfolio-item:nth-child(2):last-child) {
        grid-template-columns: 1fr;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        gap: 24px;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139,69,19,0.2);
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    cursor: ew-resize;
}

.before-after-slider .after-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.before-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.before-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
}

.slider-divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: white;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50px;
    height: 100%;
    transform: translateX(-50%);
    background: transparent;
    z-index: 10;
    cursor: ew-resize;
}

.slider-handle::after {
    content: '⇄';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.slider-handle:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-dark);
}

.slider-labels {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 15;
    pointer-events: none;
}

.label-before, .label-after {
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
}

.label-after {
    background: var(--primary);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-cat {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.portfolio-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.portfolio-info p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.portfolio-meta {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--text-light);
}

.portfolio-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.portfolio-meta i {
    color: var(--primary);
    font-size: 14px;
}

.portfolio-showcase {
    background: white;
    overflow: hidden;
}

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

.portfolio-showcase .section-header > .section-subtitle,
.portfolio-showcase .section-header > .section-title,
.portfolio-showcase .section-header > p {
    opacity: 0;
}

.portfolio-showcase.showcase-animated .section-header > .section-subtitle {
    animation: showcaseHeaderIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.portfolio-showcase.showcase-animated .section-header > .section-title {
    animation: showcaseHeaderIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.portfolio-showcase.showcase-animated .section-header > p {
    animation: showcaseHeaderIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.22s forwards;
}

.showcase-scroll-wrap {
    position: relative;
    margin: 0 -20px;
    padding: 0 20px;
}

.showcase-scroll-wrap::before,
.showcase-scroll-wrap::after {
    content: '';
    position: absolute;
    top: 20px;
    bottom: 38px;
    width: 48px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.95;
}

.showcase-scroll-wrap::before {
    left: 20px;
    background: linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.showcase-scroll-wrap::after {
    right: 20px;
    background: linear-gradient(270deg, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.horizontal-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 30px;
    cursor: grab;
    scrollbar-gutter: stable;
}

.horizontal-scroll:active {
    cursor: grabbing;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: var(--gray);
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 10px;
}

.scroll-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 0 20px;
}

/* Ровно две карточки: сетка на всю ширину контейнера, без горизонтального скролла */
.showcase-scroll-wrap--pair {
    margin: 0 -20px;
    width: calc(100% + 40px);
    max-width: none;
    padding: 0;
    box-sizing: border-box;
}

.showcase-scroll-wrap--pair::before,
.showcase-scroll-wrap--pair::after {
    opacity: 0;
    width: 0;
    pointer-events: none;
}

.horizontal-scroll--pair {
    overflow-x: hidden;
    padding: 20px 0 28px;
    cursor: default;
}

.horizontal-scroll--pair:active {
    cursor: default;
}

.scroll-track--pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 32px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 4px;
    box-sizing: border-box;
}

.scroll-track--pair .scroll-card {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.scroll-track--pair .scroll-card-img {
    height: min(400px, 46vw);
    min-height: 280px;
}

.scroll-track--pair .scroll-card-content {
    padding: 20px 22px 22px;
}

@media (max-width: 720px) {
    .showcase-scroll-wrap--pair {
        margin: 0 -12px;
        width: calc(100% + 24px);
    }

    .scroll-track--pair {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 2px;
    }

    .scroll-track--pair .scroll-card-img {
        height: min(300px, 70vw);
        min-height: 200px;
    }
}

.scroll-controls--hidden {
    display: none !important;
}

.scroll-card {
    width: 350px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(40px) scale(0.96);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0s);
    border: 1px solid rgba(139, 69, 19, 0.06);
    will-change: transform, opacity;
}

.scroll-card--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    will-change: auto;
}

.scroll-card:not(.scroll-card--visible) {
    pointer-events: none;
}

.scroll-card--visible:hover {
    transform: translateY(-14px) scale(1.02);
    box-shadow:
        0 28px 56px rgba(139, 69, 19, 0.18),
        0 12px 24px rgba(44, 36, 22, 0.08);
    border-color: rgba(139, 69, 19, 0.12);
}

@keyframes showcaseGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes showcaseIconFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.04);
    }
}

@keyframes showcaseBadgeIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.scroll-card-img {
    height: 250px;
    background: linear-gradient(125deg, var(--primary-light) 0%, var(--accent) 45%, var(--primary) 100%);
    background-size: 200% 200%;
    animation: showcaseGradient 14s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255, 255, 255, 0.55);
    position: relative;
    overflow: hidden;
}

.scroll-card-img.has-photo {
    animation: none;
    background: #1e1a14;
}

.scroll-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.scroll-card-photos-hint {
    font-size: 13px;
    color: var(--text-light);
    margin: 0 0 12px;
}

.scroll-card-photos-hint strong {
    color: var(--dark);
}

.scroll-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(255, 255, 255, 0.15), transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.scroll-card-img.has-photo::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.22), transparent 50%);
}

.scroll-card-img i {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
    animation: showcaseIconFloat 5s ease-in-out infinite;
}

.scroll-card:nth-child(2) .scroll-card-img i {
    animation-delay: 0.4s;
}

.scroll-card:nth-child(3) .scroll-card-img i {
    animation-delay: 0.8s;
}

.scroll-card:nth-child(4) .scroll-card-img i {
    animation-delay: 0.2s;
}

.scroll-card:nth-child(5) .scroll-card-img i {
    animation-delay: 0.6s;
}

.scroll-card:nth-child(6) .scroll-card-img i {
    animation-delay: 1s;
}

.scroll-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    background: linear-gradient(135deg, var(--accent), #c45a15);
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(210, 105, 30, 0.35);
    opacity: 0;
    transform: scale(0.88);
}

.scroll-card--visible .scroll-card-badge {
    animation: showcaseBadgeIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) var(--reveal-delay, 0s) both;
}

.scroll-card-content {
    padding: 25px;
}

.scroll-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.scroll-card-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.scroll-card-meta {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
}

.scroll-card-meta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.scroll-card-meta-item i {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 5px;
}

.scroll-card-meta-item span {
    font-size: 12px;
    color: var(--text-light);
}

.scroll-card-meta-item strong {
    font-size: 16px;
    color: var(--dark);
}

.scroll-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.scroll-card-link:hover {
    gap: 15px;
    color: var(--primary-dark);
}

.scroll-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--gray);
    color: var(--primary);
    cursor: pointer;
    transition:
        transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease,
        box-shadow 0.35s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.scroll-arrow:hover:not(:disabled) {
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
    border-color: var(--primary-dark);
    color: white;
    transform: scale(1.12);
    box-shadow: 0 10px 28px rgba(139, 69, 19, 0.35);
}

.scroll-arrow:active:not(:disabled) {
    transform: scale(1.02);
}

.scroll-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.scroll-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray);
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    line-height: 0;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    transition:
        width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        background 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease;
}

.scroll-dot:hover {
    background: rgba(139, 69, 19, 0.35);
    transform: scale(1.15);
}

.scroll-dot.active {
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(139, 69, 19, 0.35);
}

.scroll-card-link i {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-card-link:hover i {
    transform: translateX(7px);
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-showcase .section-header > .section-subtitle,
    .portfolio-showcase .section-header > .section-title,
    .portfolio-showcase .section-header > p {
        opacity: 1;
        animation: none;
    }

    .scroll-card {
        opacity: 1;
        transform: none;
        transition: none;
        animation: none;
        border-color: rgba(139, 69, 19, 0.06);
    }

    .scroll-card:not(.scroll-card--visible) {
        pointer-events: auto;
    }

    .scroll-card--visible:hover {
        transform: none;
    }

    .scroll-card-img {
        animation: none;
        background: linear-gradient(135deg, var(--primary-light), var(--accent));
        background-size: auto;
    }

    .scroll-card-img i {
        animation: none;
    }

    .scroll-card-badge {
        opacity: 1;
        transform: none;
    }

    .scroll-card--visible .scroll-card-badge {
        animation: none;
    }

    .scroll-arrow {
        transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    }

    .scroll-arrow:hover:not(:disabled) {
        transform: none;
    }

    .scroll-dot {
        transition: background 0.2s ease, width 0.2s ease;
    }

    .scroll-dot:hover {
        transform: none;
    }

    .scroll-card-link i {
        transition: none;
    }
}

.map-section {
    background: var(--light);
}

.map-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-address {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.address-card {
    background: rgba(44,36,22,0.95);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.address-card i {
    font-size: 32px;
    color: var(--accent);
}

.address-card strong {
    font-size: 18px;
}

.address-card p {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 5px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-grid h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.contact-grid > div > p {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 40px;
}

.contact-info {
    display: grid;
    gap: 25px;
}

.contact-info > div {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-info i {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-info span {
    display: block;
    font-size: 14px;
    opacity: 0.6;
}

.contact-info strong {
    font-size: 18px;
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: 2px solid var(--gray);
    border-radius: var(--radius);
    font-size: 16px;
    background: var(--light);
    transition: all 0.3s;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.form-group textarea + i {
    top: 30px;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.form-note {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 20px;
}

footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-grid .logo {
    margin-bottom: 15px;
}

.footer-grid .footer-logo-text {
    font-size: 24px;
    font-weight: 700;
}

.footer-grid .footer-logo-text .logo-accent {
    color: #f0cfa3;
}

.footer-grid p {
    color: rgba(255,255,255,0.88);
}

.footer-grid h3.footer-col-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-grid a.footer-phone-link {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
}

.footer-grid a {
    display: block;
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.footer-grid a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255,255,255,0.72);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44,36,22,0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: var(--radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlide 0.3s;
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.3s;
}

.modal-close:hover {
    color: var(--primary);
}

.modal-body {
    padding: 40px;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--radius);
    z-index: 3000;
    animation: slideIn 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 15px;
}

.notification.success {
    background: var(--secondary);
    color: white;
}

.notification.error {
    background: var(--primary);
    color: white;
}

.notification button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 16px;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ========== ОТЗЫВЫ ========== */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.review-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(139,69,19,0.08);
    border: 1px solid #F0E8DC;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(139,69,19,0.14); }
.review-stars { color: #F4A614; font-size: 18px; letter-spacing: 2px; }
.review-text { color: #5a5040; line-height: 1.7; font-size: 15px; flex: 1; }
.review-text::before { content: '\201C'; font-size: 40px; color: #E8DFD0; line-height: 0; vertical-align: -14px; margin-right: 4px; }
.review-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid #F0E8DC; padding-top: 16px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #8B4513, #D2691E); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.review-meta { display: flex; flex-direction: column; }
.review-name { font-weight: 600; color: #2C2416; font-size: 15px; }
.review-city { font-size: 12px; color: #9a8e7c; }
.review-date { margin-left: auto; font-size: 12px; color: #b0a090; white-space: nowrap; }

/* ========== FAQ ========== */
.faq-list { max-width: 860px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: white; border-radius: 16px; border: 1px solid #F0E8DC; overflow: hidden; box-shadow: 0 2px 12px rgba(139,69,19,0.06); }
.faq-question {
    padding: 22px 28px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    font-size: 16px;
    color: #2C2416;
    transition: background 0.2s;
    user-select: none;
}
.faq-question:hover { background: #FAF3E9; }
.faq-question.open { color: #8B4513; background: #FAF3E9; }
.faq-icon { width: 28px; height: 28px; border-radius: 50%; background: #F0E8DC; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform 0.3s, background 0.3s; }
.faq-question.open .faq-icon { background: #8B4513; color: white; transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    color: #5a5040;
    line-height: 1.7;
    font-size: 15px;
    padding: 0 28px;
}
.faq-answer.open { max-height: 300px; padding: 0 28px 22px; }

/* ========== ADMIN TOGGLES ========== */
.section-toggle { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: white; border-radius: 16px; border: 1px solid #F0E8DC; margin-bottom: 12px; }
.section-toggle-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.section-toggle-info p { font-size: 13px; color: #9a8e7c; }
.toggle-switch { position: relative; width: 52px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: #E8DFD0; border-radius: 28px; cursor: pointer; transition: background 0.3s; }
.toggle-slider::before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: white; border-radius: 50%; transition: transform 0.3s; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.toggle-switch input:checked + .toggle-slider { background: #8B4513; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }
.metrika-field { display: flex; gap: 12px; align-items: center; padding: 16px 24px; background: #FAF3E9; border-radius: 12px; margin-top: -6px; margin-bottom: 12px; }
.metrika-field input { flex: 1; padding: 10px 14px; border: 2px solid #E8DFD0; border-radius: 10px; font-size: 14px; }
.metrika-field input:focus { outline: none; border-color: #8B4513; }

/* ── Floating contact buttons ── */
.float-contacts {
    position: fixed;
    right: 20px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.float-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px 0 14px;
    height: 50px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(0,0,0,0.22);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    overflow: hidden;
    max-width: 50px;
}
.float-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 28px rgba(0,0,0,0.28);
    max-width: 200px;
}
.float-label {
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    max-width: 0;
    transition: max-width 0.3s ease, opacity 0.25s ease;
    overflow: hidden;
}
.float-btn:hover .float-label {
    opacity: 1;
    max-width: 120px;
}
.float-wa  { background: #25D366; }
.float-tg  { background: #0088cc; }
.float-call { background: #8B4513; }

@media (max-width: 992px) {
    .section-title { font-size: 36px; }
    .services-grid, .portfolio-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .service-card.featured { transform: none; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .params-grid { grid-template-columns: 1fr; }
    .options-grid { grid-template-columns: 1fr; }
    .step-line { width: 30px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        display: flex;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links .btn-phone {
        width: 100%;
        justify-content: center;
        text-align: center;
        box-sizing: border-box;
    }
    .mobile-menu-btn { display: flex; }
    .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

    /* Hero */
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .stat-number { font-size: 36px; }

    /* Заголовки секций */
    .section-title { font-size: 30px; }
    .section-header { margin-bottom: 36px; }
    .section-header.center p { font-size: 15px; }

    /* Калькулятор — скрываем подписи шагов, оставляем только цифры */
    .calculator { padding: 20px; overflow: hidden; }
    .calculator-steps { gap: 4px; }
    .step span:last-child { display: none; }
    .step-line { width: 16px; }
    .step-num { width: 32px; height: 32px; font-size: 14px; }
    .calc-step h3 { font-size: 20px; margin-bottom: 20px; }
    .total-price { font-size: 32px; }
    .options-grid { grid-template-columns: 1fr; gap: 12px; }
    .options-grid.two-cols { grid-template-columns: repeat(2, 1fr); }
    .option { padding: 16px 12px; box-sizing: border-box; }
    .option-title { font-size: 14px; }
    .option-desc { font-size: 12px; word-break: break-word; }
    .params-grid { gap: 12px; }
    .param { box-sizing: border-box; }
    .param-input input { min-width: 0; }

    /* Цены */
    .price-tab { padding: 10px 14px; font-size: 14px; }
    .price-item { flex-direction: column; align-items: flex-start; gap: 8px; }
    .price-item h3.price-item-title { font-size: 16px; }
    .price-val { margin-left: 0; font-size: 18px; }

    /* Портфолио табы */
    .portfolio-tabs { gap: 8px; }
    .tab-btn { padding: 8px 14px; font-size: 13px; }

    /* Горизонтальный скролл (блок «Больше выполненных проектов») */
    .showcase-scroll-wrap {
        margin: 0 -12px;
        padding: 0 12px;
    }
    .showcase-scroll-wrap::before,
    .showcase-scroll-wrap::after {
        width: 28px;
        top: 14px;
        bottom: 34px;
    }
    .showcase-scroll-wrap::before {
        left: 12px;
    }
    .showcase-scroll-wrap::after {
        right: 12px;
    }
    .showcase-scroll-wrap--pair {
        margin: 0 -8px;
        width: calc(100% + 16px);
    }
    .scroll-card { width: 270px; }
    .scroll-card-img { height: 180px; }
    .scroll-track--pair .scroll-card { width: 100%; }
    .scroll-track--pair .scroll-card-img { height: min(320px, 78vw); min-height: 220px; }
    .scroll-controls { gap: 15px; }
    .scroll-arrow { width: 40px; height: 40px; font-size: 16px; }

    /* Карта */
    .map-address { left: 10px; right: 10px; bottom: 10px; flex-direction: column; gap: 8px; }
    .address-card { padding: 10px 16px; }
    .address-card i { font-size: 20px; }

    /* Подвал */
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
    .footer-grid { gap: 28px; }

    /* Плавающие кнопки — круглые, без подписи */
    .float-contacts { bottom: 16px; right: 12px; gap: 10px; }
    .float-btn { height: 46px; max-width: 46px; padding: 0; width: 46px; font-size: 18px; justify-content: center; }
    .float-btn:hover { max-width: 46px; transform: none; }
    .float-label { display: none !important; }
}

@media (max-width: 480px) {
    .hero { padding-top: 80px; min-height: auto; padding-bottom: 60px; }
    .section { padding: 52px 0; }
    .section-title { font-size: 26px; }
    .logo-text { font-size: 20px; }
    .logo-icon { width: 32px; height: 32px; font-size: 15px; }

    /* Hero текст */
    .hero h1 { font-size: 30px; line-height: 1.2; }
    .hero-content > p { font-size: 15px; }
    .hero-stats { gap: 12px; }
    .stat-number { font-size: 32px; }

    /* Карточки услуг */
    .service-card { padding: 28px 20px; }
    .service-card h3 { font-size: 20px; }
    .service-icon { width: 56px; height: 56px; font-size: 22px; }

    /* Калькулятор */
    .calculator { padding: 16px; border-radius: 16px; overflow: hidden; }
    .params-grid { grid-template-columns: 1fr; gap: 12px; }
    .param { box-sizing: border-box; width: 100%; }
    .param-input input { min-width: 0; width: 100%; box-sizing: border-box; }
    .options-grid.two-cols { grid-template-columns: 1fr; gap: 12px; }
    .option { box-sizing: border-box; width: 100%; padding: 16px 14px; }
    .option-title { font-size: 15px; }
    .option-desc { font-size: 12px; word-break: break-word; }
    .calc-step h3 { font-size: 18px; }
    .area-result { padding: 14px; gap: 12px; }
    .area-result i { font-size: 28px; }
    .area-result strong { font-size: 22px; }
    .btn-next, .btn-calc, .btn-prev { padding: 12px 32px; font-size: 15px; width: auto; }

    /* Цены */
    .price-tabs { gap: 6px; }
    .price-tab { padding: 8px 10px; font-size: 13px; }
    .price-item { padding: 14px 16px; }
    .price-item h3.price-item-title { font-size: 15px; }

    /* Отзывы */
    .review-card { padding: 20px; }

    /* FAQ */
    .faq-question span { font-size: 15px; }

    /* Контакты */
    .contact-form { padding: 24px 16px; }
    .contact-grid h2 { font-size: 28px; }

    /* Карта */
    .map-section iframe { height: 300px; border-radius: 12px !important; }
    .map-address { position: static; margin-top: 14px; flex-direction: column; background: none; box-shadow: none; padding: 0; gap: 10px; }
    .address-card { background: var(--dark); border-radius: 12px; padding: 14px 18px; gap: 12px; }
    .address-card i { font-size: 22px; }
    .address-card strong, .address-card p, .address-card a { color: white; }

    /* Подвал */
    .footer-grid { gap: 24px; }
    .footer-grid > div > h3.footer-col-title { font-size: 16px; }
}

/* —— Галерея объекта (object-gallery.html) и ссылки с карточек шоукейса —— */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.scroll-card-figure {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    outline: none;
}

.scroll-card-figure:focus-visible {
    box-shadow: inset 0 0 0 3px rgba(139, 69, 19, 0.45);
}

.scroll-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.scroll-card-title a:hover {
    color: var(--primary);
}

.scroll-card-inline-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.scroll-card-inline-link:hover {
    text-decoration: underline;
}

.scroll-card-gallery-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 18px;
    text-decoration: none;
}

.scroll-card-gallery-btn:hover {
    text-decoration: underline;
}

.page-gallery .gallery-page-h1 {
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.25;
    margin-bottom: 12px;
}

.gallery-nav-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    font-size: 14px;
}

.gallery-nav-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gallery-nav-link:hover {
    text-decoration: underline;
}

.gallery-nav-link[aria-disabled="true"] {
    color: var(--text-light);
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-item {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid rgba(139, 69, 19, 0.08);
}

.gallery-item-link {
    display: block;
    line-height: 0;
    background: #2a2419;
}

.gallery-item-link img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-item-link:hover img {
    transform: scale(1.03);
}

.gallery-item-cap {
    padding: 10px 14px 12px;
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
}

.gallery-error {
    margin-bottom: 16px;
    color: var(--text);
}