/* style.css */
:root {
    --primary-color: #ffffff;
    /* Light background */
    --primary-dark: #f8f9fa;
    /* Light gray for contrast sections */
    --accent-color: #E8A774;
    /* Peach / Soft Orange (Buttons, accents) */
    --accent-hover: #c99064;
    /* Hover state for accent */
    --text-light: #666666;
    /* Lighter text for subtitles */
    --text-dark: #333333;
    /* Dark text (main body) */
    --font-body: 'Open Sans', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
}

/* Smooth scrolling for the whole page */
html {
    scroll-behavior: smooth;
}

/* Local self-hosted fonts (cyrillic + latin) */
/* Montserrat 500/600/700/800 */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Montserrat Medium'), local('Montserrat-Medium'),
         url('fonts/Montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Montserrat Medium'), local('Montserrat-Medium'),
         url('fonts/Montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'),
         url('fonts/Montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Montserrat SemiBold'), local('Montserrat-SemiBold'),
         url('fonts/Montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Montserrat Bold'), local('Montserrat-Bold'),
         url('fonts/Montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Montserrat Bold'), local('Montserrat-Bold'),
         url('fonts/Montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: local('Montserrat ExtraBold'), local('Montserrat-ExtraBold'),
         url('fonts/Montserrat-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: local('Montserrat ExtraBold'), local('Montserrat-ExtraBold'),
         url('fonts/Montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Open Sans 400/600 */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Open Sans Regular'), local('OpenSans-Regular'),
         url('fonts/OpenSans-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Open Sans Regular'), local('OpenSans-Regular'),
         url('fonts/OpenSans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'),
         url('fonts/OpenSans-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local('Open Sans SemiBold'), local('OpenSans-SemiBold'),
         url('fonts/OpenSans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

html,
body {
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-color);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.section {
    padding: 50px 0;
}

.text-center {
    text-align: center;
}

/* Catalog Download Banner */
.catalog-download-banner {
    margin-top: 30px;
    background: linear-gradient(135deg, rgba(232, 168, 96, 0.08) 0%, rgba(232, 168, 96, 0.04) 100%);
    border: 1px solid rgba(232, 168, 96, 0.25);
    border-radius: 16px;
    padding: 24px 40px;
}

.catalog-download-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.catalog-download-icon {
    flex-shrink: 0;
}

.catalog-download-text {
    flex: 1;
}

.catalog-download-text h4 {
    font-size: 1.15rem;
    color: #222;
    margin: 0 0 6px 0;
    font-weight: 600;
}

.catalog-download-text p {
    font-size: 0.92rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

.btn-catalog-download {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
}

.projects-home-wrapper {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 28px;
}

.projects-catalog-bridge {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 28px 32px;
    border-radius: 10px;
    background: #31434E;
    color: #fff;
    box-shadow: 0 18px 44px rgba(38, 48, 56, 0.22);
}

.projects-catalog-copy {
    min-width: 0;
}

.projects-catalog-copy span {
    display: inline-flex;
    margin-bottom: 8px;
    color: #E8A774;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.projects-catalog-copy h3 {
    margin: 0 0 8px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.42rem;
    font-weight: 800;
    line-height: 1.18;
}

.projects-catalog-copy p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.96rem;
    line-height: 1.5;
}

.btn.btn-projects-all {
    position: relative;
    width: auto;
    min-width: 310px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px 32px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(232, 167, 116, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    animation: btn-projects-pulse 2.8s ease-in-out infinite;
    line-height: 1.2;
}

.btn.btn-projects-all > span:not(.btn-projects-all-icon) {
    display: inline-flex;
    align-items: center;
}

.btn.btn-projects-all:hover .btn-projects-all-icon svg,
.btn.btn-projects-all .btn-projects-all-icon svg {
    transform: none;
}

.btn.btn-primary.btn-projects-all::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
    z-index: 0;
}

.btn.btn-primary.btn-projects-all:hover::before {
    width: auto;
    height: auto;
    transform: translateX(120%);
}

.btn.btn-projects-all > * {
    position: relative;
    z-index: 1;
}

.btn.btn-projects-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(232, 167, 116, 0.5), 0 4px 10px rgba(0, 0, 0, 0.1);
    filter: brightness(1.05);
    animation-play-state: paused;
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
}

.btn.btn-projects-all:active {
    transform: translateY(0);
}

.btn-projects-all-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.btn-projects-all-arrow {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.btn-projects-all:hover .btn-projects-all-arrow {
    transform: translateX(6px);
}

@keyframes btn-projects-pulse {
    0%, 100% {
        box-shadow: 0 10px 28px rgba(232, 167, 116, 0.35), 0 2px 6px rgba(0, 0, 0, 0.08);
    }
    50% {
        box-shadow: 0 14px 34px rgba(232, 167, 116, 0.55), 0 2px 6px rgba(0, 0, 0, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn.btn-projects-all {
        animation: none;
    }
}

@media (max-width: 600px) {
    .btn.btn-projects-all {
        font-size: 1rem;
        padding: 18px 20px;
        gap: 10px;
        min-width: 0;
        width: 100%;
    }
    .btn-projects-all-icon {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 768px) {
    .projects-catalog-bridge {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 18px;
        border-radius: 8px;
    }

    .projects-catalog-copy h3 {
        font-size: 1.22rem;
    }

    .projects-catalog-copy p {
        font-size: 0.92rem;
    }

    .catalog-download-banner {
        padding: 20px 16px;
        margin-top: 20px;
    }

    .catalog-download-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .catalog-download-icon {
        order: -1;
    }

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

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 800px;
    margin: 10px auto 0;
}

.bg-darker {
    background-color: var(--primary-dark);
}

.bg-accent {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(5px);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 167, 116, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn-outline:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline span,
.btn-outline svg {
    position: relative;
    z-index: 1;
}

.btn-outline svg {
    transition: transform 0.3s ease;
}

.btn-outline:hover svg {
    transform: translateX(5px);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: #fff;
}

.full-width {
    width: 100%;
    display: block;
}

/* Placeholders formatting */
.b-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #445967;
    /* visible contrast */
    border: 2px dashed #6f95b0;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 20px;
}

.b-placeholder::before {
    content: attr(data-placeholder-text);
    font-size: 0.9rem;
    font-style: italic;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

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

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

@media (max-width: 900px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .hero {
        margin-top: -60px !important;
        min-height: 100svh !important;
        padding-top: 104px !important;
        padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 20px)) !important;
    }
}

@media (max-width: 480px) {
    .catalog-download-banner {
        margin-top: 15px;
        padding: 16px 12px;
    }

    .hero {
        min-height: 100vh;
        padding: 70px 0 0;
        margin-top: -60px !important;
        box-sizing: border-box;
    }

    .hero-content-single {
        padding-top: 20px;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 150px 0 56px;
    position: relative;
    display: flex;
    align-items: flex-end;
    margin-top: -70px;
    contain: layout style paint;
    box-sizing: border-box;
    background-color: var(--primary-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: none;
    pointer-events: none;
}

.hero-bg-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

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

.hero.b-placeholder {
    min-height: 70vh;
    border-width: 4px;
    border-top: none;
}

.hero-content-single {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 70px;
}

/* Оптимизация изображений в hero */
.hero-content-single img {
    will-change: auto;
    content-visibility: auto;
}

.hero-left h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    max-width: 1150px;
    color: #ffffff;
    line-height: 1.1;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 4px rgba(0, 0, 0, 0.45);
}

.hero-left p {
    font-size: 1.2rem;
    margin-bottom: 0;
    max-width: 600px;
    color: #ffffff;
    line-height: 1.6;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.5);
}

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

.btn-hero {
    font-size: 1.1rem;
    padding: 18px 35px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hero span,
.btn-hero svg {
    position: relative;
    z-index: 1;
}

.btn-hero svg {
    transition: transform 0.3s ease;
}

.btn-hero:hover svg {
    transform: translateX(5px);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(232, 167, 116, 0.5);
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: 70px 0 40px;
        margin-top: 0;
        align-items: stretch;
    }

    /* Лёгкое затемнение фона (10%) только на мобильном */
    .hero::before {
        background: none;
    }

    .hero-bg-picture img {
        object-position: center top;
    }

    .hero-content-single {
        padding-top: 0;
        display: flex;
        flex-direction: column;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        flex: 1 1 auto;
        width: 100%;
    }

    .hero-left h1 {
        font-size: 2rem;
        font-weight: 600;
        line-height: 1.2;
        margin-bottom: 14px;
        order: 1;
    }

    /* Описание и кнопка прижаты к низу — дом виден в середине */
    .hero-cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        order: 2;
        margin-top: auto;
    }

    .hero-left p {
        font-size: clamp(0.86rem, 3.3vw, 0.95rem);
        font-weight: 600;
        line-height: 1.45;
        max-width: 100%;
        margin-bottom: 0;
        display: block;
    }

    .hero-buttons {
        align-self: stretch;
    }

    .btn-hero {
        font-size: 0.9rem;
        padding: 13px 18px;
        width: 100%;
        justify-content: center;
    }
}

/* Floating Card inside Hero */
.hero-floating-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    align-items: center;
    max-width: 480px;
    margin-left: auto;
    margin-top: 100px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.hero-floating-card .floating-img-real {
    width: 140px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.floating-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #222;
}

.floating-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.floating-link {
    color: #222;
    font-weight: 600;
    font-size: 0.95rem;
}

.floating-link:hover {
    color: var(--accent-color);
}

@media (max-width: 900px) and (min-width: 769px) {
    .hero-left h1 {
        font-size: 2.5rem;
    }
}

/* Trust strip — вынесенный из hero блок преимуществ (отдельной секцией) */
.trust-strip {
    padding: 44px 0 4px;
    text-align: center;
}

.trust-strip .trust-bar-overlay {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 22px 40px;
    background: rgba(49, 67, 78, 0.97);
    text-align: left;
}

.trust-strip .trust-bar-overlay-grid {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 20px;
}

.trust-strip .trust-bar-overlay-item {
    flex-shrink: 0;
    overflow: visible;
}

/* Убираем зацикленную пульсирующую подсветку — в колонке свечения наслаивались */
.trust-strip .trust-bar-overlay-item::before {
    display: none;
}

.trust-strip .trust-bar-overlay-icon,
.trust-strip .trust-bar-overlay-text span {
    animation: none;
}

/* Средняя ширина: 4 пункта не помещаются в строку — раскладываем 2×2 */
@media (max-width: 1080px) and (min-width: 769px) {
    .trust-strip .trust-bar-overlay-grid {
        flex-wrap: wrap;
        justify-content: flex-start;
        row-gap: 16px;
        column-gap: 32px;
    }

    .trust-strip .trust-bar-overlay-item {
        flex: 0 0 calc(50% - 16px);
    }
}

@media (max-width: 768px) {
    .trust-strip {
        padding: 28px 0 0;
    }

    .trust-strip .trust-bar-overlay {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        background: transparent;
        border: none;
        border-radius: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .trust-strip .trust-bar-overlay-grid {
        flex-wrap: wrap;
        gap: 12px;
    }

    .trust-strip .trust-bar-overlay-item {
        width: 100%;
        padding: 14px 16px;
        background: rgba(49, 67, 78, 0.97);
        border-radius: 8px;
    }
}

/* Trust Bar Overlay - on hero background, under button */
.trust-bar-overlay {
    margin-top: 30px;
    background: rgba(49, 67, 78, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 18px 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    max-width: 100%;
}

/* Анимация появления trust bar */
.trust-bar-overlay.hero-animate {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.trust-bar-overlay-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 32px;
}

.trust-bar-overlay-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-bar-overlay-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 167, 116, 0.15);
    border-radius: 8px;
    color: var(--accent-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.trust-bar-overlay-item:hover .trust-bar-overlay-icon {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
}

.trust-bar-overlay-icon svg {
    width: 20px;
    height: 20px;
}

.trust-bar-overlay-text {
    display: flex;
    align-items: center;
}

.trust-bar-overlay-text span {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-family: var(--font-body);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .trust-bar-overlay {
        margin-top: 24px;
        padding: 14px 20px;
        border-radius: 10px;
    }

    .trust-bar-overlay-grid {
        gap: 14px 24px;
    }

    .trust-bar-overlay-icon {
        width: 32px;
        height: 32px;
    }

    .trust-bar-overlay-icon svg {
        width: 18px;
        height: 18px;
    }

    .trust-bar-overlay-text span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .trust-bar-overlay {
        margin-top: 20px;
        padding: 14px 16px;
        display: block;
    }

    .trust-bar-overlay-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .trust-bar-overlay-item {
        justify-content: flex-start;
        gap: 12px;
    }

    .trust-bar-overlay-icon {
        width: 36px;
        height: 36px;
    }

    .trust-bar-overlay-icon svg {
        width: 20px;
        height: 20px;
    }

    .trust-bar-overlay-text span {
        font-size: 1rem;
        white-space: normal;
        line-height: 1.3;
    }
}

/* Features (Advantages) Section - Enhanced & Optimized */
.features {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    scroll-margin-top: 110px;
    content-visibility: auto;
    contain-intrinsic-size: 0 800px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    contain: layout style;
}

.feature-card {
    background: #fff;
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    content-visibility: auto;
    contain-intrinsic-size: 0 250px;
    contain: layout style paint;
}

.feature-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 35px rgba(232, 167, 116, 0.15);
}

.feature-card.is-active {
    border-color: var(--accent-color);
    box-shadow: 0 12px 35px rgba(232, 167, 116, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 167, 116, 0.1);
    border-radius: 14px;
    color: var(--accent-color);
    flex: 0 0 56px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    contain: strict;
}

.feature-card:hover .feature-icon {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
}

.feature-card.is-active .feature-icon {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.05);
}

.feature-card h4 {
    font-size: 1.15rem;
    margin: 0;
    color: #222;
    line-height: 1.3;
    font-weight: 600;
    flex: 1;
}

.feature-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.features-swipe-cue {
    display: none;
}

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

@media (max-width: 600px) {
    .features-grid {
        display: flex;
        grid-template-columns: none;
        gap: 16px;
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 0 20px 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 20px;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .features-grid::-webkit-scrollbar {
        display: none;
    }

    .feature-card {
        flex: 0 0 min(82vw, 340px);
        padding: 24px 20px;
        scroll-snap-align: start;
        content-visibility: visible;
        contain: layout style paint;
    }

    .features-swipe-cue {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        height: 20px;
        margin: 0 auto;
        color: var(--accent-color);
        pointer-events: none;
    }

    .features-swipe-track {
        position: relative;
        width: 58px;
        height: 5px;
        overflow: hidden;
        border-radius: 999px;
        background: rgba(232, 167, 116, 0.22);
    }

    .features-swipe-thumb {
        position: absolute;
        inset: 0 auto 0 0;
        width: 22px;
        border-radius: inherit;
        background: var(--accent-color);
        animation: featuresSwipeThumb 1.8s ease-in-out infinite;
    }

    .features-swipe-chevron {
        width: 9px;
        height: 9px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        opacity: 0.75;
        transform: rotate(-45deg);
        animation: featuresSwipeChevron 1.8s ease-in-out infinite;
    }
}

@keyframes featuresSwipeThumb {
    0%,
    100% {
        opacity: 0.65;
        transform: translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateX(36px);
    }
}

@keyframes featuresSwipeChevron {
    0%,
    100% {
        opacity: 0.45;
        transform: translateX(0) rotate(-45deg);
    }

    50% {
        opacity: 1;
        transform: translateX(4px) rotate(-45deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .features-swipe-thumb,
    .features-swipe-chevron {
        animation: none;
    }
}

/* Pain Card */
.pain-card {
    background: #ffffff;
    border: 1px solid #eaeaea;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.pain-icon {
    flex-shrink: 0;
    color: var(--accent-color);
}

.pain-content h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #31434E;
    line-height: 1.3;
}

.pain-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Solution */
.solution-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.solution-row {
    background: var(--primary-dark);
    padding: 20px 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.solution-pain {
    flex: 1;
    opacity: 0.8;
}

.solution-arrow {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.solution-answer {
    flex: 1;
    font-weight: 600;
    color: var(--accent-color);
}

@media (max-width:768px) {
    .solution-row {
        flex-direction: column;
        text-align: center;
    }

    .solution-arrow {
        transform: rotate(90deg);
    }
}

/* Projects */
.projects-filter {
    display: flex;
    width: max-content;
    justify-content: center;
    margin: 0 auto 40px auto;
    background-color: #FAEDE3;
    border-radius: 999px;
    padding: 6px;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.projects-filter-bottom {
    margin: 40px auto 0 auto;
}

.projects-filter::-webkit-scrollbar {
    display: none;
}

/* Скользящий индикатор активного таба */
.filter-slider {
    position: absolute;
    top: 6px;
    left: 0;
    height: calc(100% - 12px);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
    transform: translateX(6px);
    width: calc((100% - 12px) / 2);
}

.filter-btn {
    padding: 11px 28px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #5A6878;
    cursor: pointer;
    transition: color 0.25s ease;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    line-height: 1.2;
    font-family: inherit;
}

.filter-btn:hover:not(.active) {
    color: #2a3845;
}

.filter-btn.active {
    color: #1a2530;
    font-weight: 600;
}

/* Mobile styles for filter */
@media (max-width: 768px) {
    .projects-filter {
        padding: 5px;
        margin: 0 auto 30px auto;
        border-radius: 999px;
        justify-content: center;
    }

    .filter-btn {
        padding: 9px 20px;
        font-size: 0.9rem;
        border-radius: 999px;
    }

    .filter-slider {
        top: 5px;
        height: calc(100% - 10px);
        transform: translateX(5px);
        width: calc((100% - 10px) / 2);
    }

    .projects-show-more {
        margin-top: 35px;
    }

    .btn-show-more {
        font-size: 1rem;
        padding: 14px 30px;
        width: 100%;
        justify-content: center;
    }

    /* Fix project cards overflow on mobile */
    .project-gallery-viewport {
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .project-gallery-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .project-info {
        padding: 20px 0 0 0;
    }

    .project-title-left h3 {
        font-size: 1.2rem;
    }

    .project-badges {
        gap: 6px;
    }

    .project-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .project-price-block .price-main {
        font-size: 1.2rem;
    }

    .btn-project-request {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .project-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .projects-filter {
        padding: 4px;
        margin: 0 auto 25px auto;
        border-radius: 999px;
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
        border-radius: 999px;
    }

    .filter-slider {
        top: 4px;
        height: calc(100% - 8px);
        transform: translateX(4px);
        width: calc((100% - 8px) / 2);
    }

    .projects-show-more {
        margin-top: 30px;
    }

    .btn-show-more {
        font-size: 0.9rem;
        padding: 12px 24px;
    }

    /* Additional fixes for very small screens */
    .project-card {
        margin: 0 -15px;
        padding: 0 15px;
    }

    .project-gallery-viewport {
        aspect-ratio: 4 / 3;
    }

    .project-title-left h3 {
        font-size: 1.1rem;
    }

    .project-badge {
        padding: 3px 8px;
        font-size: 0.7rem;
    }

    .project-price-block .price-main {
        font-size: 1.1rem;
    }
}

/* Project Gallery (carousel inside card) - Optimized */
.project-gallery {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #2a3a48;
    contain: layout style paint;
}

.project-gallery-viewport {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    contain: strict;
}

.project-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

.project-gallery-slide {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
}

.project-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    cursor: pointer;
    will-change: transform;
}

.project-gallery-img:hover {
    transform: scale(1.02);
}

@media (prefers-reduced-motion: reduce) {
    .project-gallery-track {
        transition: none;
    }
}

/* ==========================================
   Blog Article Template
   ========================================== */
.article-page {
    background: #fff;
}

.article-hero {
    padding: 56px 0 64px;
    background: linear-gradient(180deg, #f5f7f8 0%, #fff 100%);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: #6b747b;
    font-size: 0.92rem;
}

.breadcrumbs a {
    color: #31434E;
    font-weight: 600;
}

.breadcrumbs a + a::before {
    content: "/";
    margin: 0 8px;
    color: #a0a8ad;
    font-weight: 400;
}

.breadcrumbs span::before {
    content: "/";
    margin-right: 8px;
    color: #a0a8ad;
}

.article-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 780px) 280px;
    gap: 56px;
    align-items: start;
    max-width: 1116px;
    margin: 0 auto;
}

.article-category {
    display: inline-flex;
    margin-bottom: 16px;
    color: #8a5d3f;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

.article-hero h1 {
    max-width: none;
    margin-bottom: 22px;
    color: #162128;
    font-size: 3.2rem;
    line-height: 1.12;
}

.article-lead {
    max-width: none;
    margin-bottom: 24px;
    color: #40505a;
    font-size: 1.16rem;
    line-height: 1.75;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-bottom: 14px;
    color: #83919a;
    font-size: 0.82rem;
    line-height: 1.45;
}

.article-meta span {
    position: relative;
}

.article-meta span:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ccd3d7;
    transform: translateY(-50%);
}

.article-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.article-hero-media {
    width: 100%;
    max-width: 620px;
    margin: 0 0 24px;
}

.article-hero-grid > .article-hero-media {
    display: none;
}

.article-hero-media picture,
.article-hero-media img {
    display: block;
    width: 100%;
}

.article-hero-media picture {
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    border-radius: 8px;
}

.article-hero-media img {
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(29, 44, 52, 0.16);
}

.article-hero-media figcaption {
    margin-top: 12px;
    color: #6d777e;
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-author-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    padding: 15px;
    border: 1px solid #e4e8ea;
    border-radius: 8px;
    background: #fff;
}

.article-author-card picture,
.article-author-card img {
    display: block;
    width: 48px;
    height: 48px;
}

.article-author-card img {
    object-fit: cover;
    object-position: center 18%;
    border-radius: 8px;
}

.article-author-label {
    margin: 0 0 3px;
    color: #8a5d3f;
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.article-author-name {
    display: block;
    margin-bottom: 3px;
    color: #17242b;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
}

.article-author-card p {
    margin: 0;
    color: #51616a;
    font-size: 0.78rem;
    line-height: 1.4;
}

.article-author-card p + p {
    margin-top: 6px;
}

.article-body-section {
    display: none;
    padding: 0;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 780px) 280px;
    gap: 56px;
    align-items: start;
    justify-content: center;
}

.article-sidebar {
    grid-column: 2;
    position: sticky;
    top: 96px;
}

.article-layout > .article-sidebar {
    display: none;
}

.article-content {
    grid-column: 1;
    max-width: 780px;
}

.article-toc {
    padding: 24px;
    border: 1px solid #e4e8ea;
    border-radius: 8px;
    background: #fff;
}

.article-toc p {
    margin-bottom: 14px;
    color: #17242b;
    font-family: var(--font-heading);
    font-weight: 700;
}

.article-toc ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: #a7714d;
}

.article-toc a {
    color: #40505a;
    line-height: 1.45;
}

.article-toc a:hover {
    color: var(--accent-color);
}

.article-share-card {
    margin-top: 18px;
    padding: 22px 24px;
    border: 1px solid #e4e8ea;
    border-radius: 8px;
    background: #fff;
}

.article-share-card p {
    margin-bottom: 14px;
    color: #17242b;
    font-family: var(--font-heading);
    font-weight: 700;
}

.article-share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.article-share-links a,
.article-share-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #d9e0e4;
    border-radius: 8px;
    background: #fff;
    color: #31434E;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.article-share-links .article-copy-link {
    width: 42px;
    padding: 9px;
}

.article-share-links .article-copy-link svg {
    display: block;
}

.article-share-links .article-copy-link.is-copied {
    border-color: #28a745;
    color: #28a745;
    background: rgba(40, 167, 69, 0.08);
}

.article-share-links a:hover,
.article-share-links button:hover {
    border-color: var(--accent-color);
    color: #8a5d3f;
    background: #f8f2ed;
}

.article-content {
    min-width: 0;
}

.article-content h2 {
    margin: 0 0 20px;
    color: #17242b;
    font-size: 2rem;
    line-height: 1.25;
}

.article-content h3 {
    margin: 26px 0 12px;
    color: #1d2c34;
    font-size: 1.25rem;
}

.article-content p {
    margin: 0 0 18px;
    color: #3d4c55;
    font-size: 1.06rem;
    line-height: 1.8;
}

.article-content .article-image {
    margin: 28px 0;
}

.article-content .article-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.article-content .article-image figcaption {
    margin-top: 10px;
    color: #6d777e;
    font-size: 0.9rem;
    line-height: 1.5;
}

.article-content ul {
    display: grid;
    gap: 12px;
    margin: 0 0 22px;
    padding-left: 22px;
    color: #3d4c55;
    font-size: 1.04rem;
    line-height: 1.7;
}

.article-quick-summary {
    margin-bottom: 42px;
    padding: 28px 30px;
    border-radius: 8px;
    background: #31434E;
    color: #fff;
}

.article-quick-summary h2 {
    margin-bottom: 16px;
    color: #fff;
    font-size: 1.5rem;
}

.article-quick-summary ul {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.86);
}

.article-quick-summary li::marker {
    color: var(--accent-color);
}

.article-intro,
.article-block,
.article-faq,
.article-summary {
    padding-bottom: 42px;
    margin-bottom: 42px;
    border-bottom: 1px solid #e8ecef;
}

.article-block {
    position: relative;
}

.article-number {
    display: inline-flex;
    margin-bottom: 16px;
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
}

.article-note {
    margin: 28px 0;
    padding: 22px 24px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    background: #f8f2ed;
    color: #36464f;
    font-size: 1.02rem;
    line-height: 1.7;
}

.article-quote {
    margin: 30px 0 0;
    padding: 26px 30px;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    background: #f8f9fa;
}

.article-quote p {
    margin-bottom: 14px;
    color: #1d2c34;
    font-family: var(--font-heading);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.62;
}

.article-quote cite {
    color: #6d777e;
    font-style: normal;
    line-height: 1.55;
}

.article-table-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
    margin-top: 24px;
    border: 1px solid #e4e8ea;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

.article-table-hint {
    display: none;
}

.article-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: #fff;
}

.article-table th,
.article-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #e8ecef;
    text-align: left;
    vertical-align: top;
    line-height: 1.55;
}

.article-table th {
    background: #f5f7f8;
    color: #17242b;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.article-table td {
    color: #40505a;
}

.article-table tr:last-child td {
    border-bottom: 0;
}

.article-cta-inline {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    margin: 10px 0 54px;
    padding: 30px;
    border-radius: 8px;
    background: #31434E;
    color: #fff;
}

.article-cta-inline h2 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.65rem;
}

.article-cta-inline p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.article-cta-inline .btn {
    flex-shrink: 0;
}

.article-checklist li::marker {
    color: var(--accent-color);
}

.article-summary {
    padding: 30px;
    border: 1px solid #e4e8ea;
    border-radius: 8px;
    background: #f8f9fa;
}

.article-summary h2 {
    font-size: 1.7rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 18px;
}

.article-tags a {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff;
    color: #8a5d3f;
    font-weight: 700;
    font-size: 0.9rem;
}

.article-link {
    display: inline-flex;
    margin-top: 4px;
    color: #a1653d;
    font-weight: 700;
    border-bottom: 1px solid currentColor;
}

.article-faq {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article-faq-item {
    padding: 24px 0;
    border-bottom: 1px solid #e8ecef;
}

.article-faq-item h3 {
    margin-top: 0;
}

.article-faq-item p {
    margin-bottom: 0;
}

.article-related,
.article-bottom-share {
    padding-top: 42px;
    margin-top: 42px;
    border-top: 1px solid #e8ecef;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.article-related-card {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border: 1px solid #e4e8ea;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.article-related-card:hover {
    border-color: rgba(232, 167, 116, 0.8);
    box-shadow: 0 14px 34px rgba(29, 44, 52, 0.09);
    transform: translateY(-2px);
}

.article-related-card span {
    margin-bottom: 16px;
    color: #8a5d3f;
    font-weight: 700;
    font-size: 0.86rem;
    text-transform: uppercase;
}

.article-related-card strong {
    display: block;
    margin-bottom: 10px;
    color: #17242b;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.35;
}

.article-related-card p {
    margin-bottom: 0;
    color: #5b6870;
    font-size: 0.94rem;
    line-height: 1.55;
}

.article-bottom-share h2 {
    font-size: 1.45rem;
    margin-bottom: 16px;
}

@media (max-width: 1100px) {
    .article-hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .article-hero-media {
        justify-self: start;
        max-width: 620px;
    }

    .article-hero-grid > .article-sidebar {
        grid-column: 1;
        position: static;
    }

    .article-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .article-sidebar {
        position: static;
    }

    .article-toc {
        padding: 20px;
    }

    .article-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-hero {
        padding: 18px 0 30px;
    }

    .article-hero .breadcrumbs {
        display: none;
    }

    .article-hero-grid {
        gap: 12px;
    }

    .article-hero-content {
        display: contents;
    }

    .article-meta {
        display: flex;
        order: 1;
        gap: 4px 10px;
        margin-bottom: 4px;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .article-category {
        order: 2;
        margin-bottom: 0;
        font-size: 0.68rem;
        color: #9a6e51;
    }

    .article-hero h1 {
        order: 3;
        margin-bottom: 0;
        font-size: 1.74rem;
        line-height: 1.13;
    }

    .article-hero-media {
        order: 4;
        margin-top: 2px;
        width: 100%;
        max-width: none;
    }

    .article-hero-media picture {
        aspect-ratio: 16 / 9;
    }

    .article-hero-media img {
        width: 100%;
        height: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        box-shadow: 0 12px 28px rgba(29, 44, 52, 0.12);
    }

    .article-hero-media figcaption {
        display: none;
    }

    .article-lead {
        order: 5;
        margin-bottom: 4px;
        font-size: 0.95rem;
        line-height: 1.56;
    }

    .article-hero-grid > .article-sidebar {
        order: 6;
        grid-column: 1;
        width: 100%;
        margin-top: 8px;
    }

    .article-content {
        order: 7;
        grid-column: 1;
        width: 100%;
        max-width: none;
    }

    .article-meta span::after {
        display: none;
    }

    .article-hero-actions {
        order: 8;
    }

    .article-hero-actions,
    .article-hero-actions .btn,
    .article-cta-inline .btn {
        width: 100%;
    }

    .article-body-section {
        padding: 42px 0 56px;
    }

    .article-author-card {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 14px;
    }

    .article-author-card picture,
    .article-author-card img {
        width: 48px;
        height: 48px;
    }

    .article-content h2 {
        font-size: 1.62rem;
    }

    .article-content p,
    .article-content ul {
        font-size: 1rem;
    }

    .article-intro,
    .article-block,
    .article-faq,
    .article-summary {
        padding-bottom: 32px;
        margin-bottom: 32px;
    }

    .article-cta-inline {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
    }

    .article-summary {
        padding: 24px;
    }

    .article-quick-summary,
    .article-quote {
        padding: 22px;
    }

    .article-table-hint {
        display: block;
        margin: -8px 0 10px;
        color: #7c8991;
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .article-table-wrap {
        margin-top: 10px;
    }

    .article-table-wrap::after {
        content: "";
        position: sticky;
        right: 0;
        top: 0;
        display: block;
        width: 42px;
        height: 0;
        float: right;
        box-shadow: -22px 0 24px rgba(255, 255, 255, 0.95);
        pointer-events: none;
    }

    .article-table {
        min-width: 560px;
        font-size: 0.86rem;
    }

    .article-table th,
    .article-table td {
        padding: 12px 14px;
        line-height: 1.45;
    }

    .article-table th {
        font-size: 0.84rem;
    }
}

@media (max-width: 480px) {
    .article-hero h1 {
        font-size: 1.58rem;
    }

    .breadcrumbs {
        font-size: 0.86rem;
    }

    .article-hero-media figcaption {
        font-size: 0.84rem;
    }

    .article-toc {
        padding: 18px;
    }

    .article-author-card {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .article-author-card picture,
    .article-author-card img {
        width: 48px;
        height: 48px;
    }

    .article-table {
        min-width: 520px;
        font-size: 0.82rem;
    }

    .article-table th,
    .article-table td {
        padding: 11px 12px;
    }
}

/* ==========================================
   Blog Listing Page
   ========================================== */
.blog-page {
    background: #fff;
}

.blog-hero {
    padding: 56px 0 68px;
    background: #f5f7f8;
}

.blog-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 52px;
    align-items: end;
}

.blog-hero-content h1 {
    max-width: 860px;
    margin-bottom: 22px;
    color: #162128;
    font-size: 3.25rem;
    line-height: 1.12;
}

.blog-hero-content p:not(.article-category) {
    max-width: 740px;
    color: #40505a;
    font-size: 1.16rem;
    line-height: 1.75;
}

.blog-hero-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 24px;
    border: 1px solid #e4e8ea;
    border-radius: 8px;
    background: #fff;
}

.blog-hero-panel span {
    display: inline-flex;
    padding: 9px 12px;
    border-radius: 8px;
    background: #f8f2ed;
    color: #8a5d3f;
    font-weight: 700;
    font-size: 0.9rem;
}

.blog-list-section {
    padding: 68px 0 74px;
}

.blog-section-head {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: end;
    margin-bottom: 34px;
}

.blog-section-head h2 {
    margin-bottom: 12px;
}

.blog-section-head p {
    max-width: 680px;
    color: #5b6870;
    font-size: 1.04rem;
    line-height: 1.7;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 42px;
    align-items: start;
}

.blog-posts {
    display: grid;
    gap: 28px;
}

.blog-card {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
    gap: 30px;
    align-items: stretch;
    padding: 24px;
    overflow: hidden;
    border: 1px solid #e4e8ea;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.blog-card:hover {
    border-color: rgba(232, 167, 116, 0.8);
    box-shadow: 0 18px 42px rgba(29, 44, 52, 0.1);
    transform: translateY(-2px);
}

.blog-card-image {
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
}

.blog-card-image picture,
.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
}

.blog-card-image img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.025);
}

.blog-card-content {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    background: #fff;
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 14px;
    margin-bottom: 14px;
    color: #68757d;
    font-size: 0.9rem;
}

.blog-card-meta span:first-child {
    color: #8a5d3f;
    font-weight: 700;
}

.blog-card h2 {
    margin: 0 0 14px;
    font-size: 1.75rem;
    line-height: 1.25;
}

.blog-card h2 a:hover {
    color: #a1653d;
}

.blog-card p {
    margin-bottom: 18px;
    color: #40505a;
    font-size: 1.02rem;
    line-height: 1.72;
}

.blog-read-more {
    display: inline-flex;
    align-self: flex-start;
    color: #a1653d;
    font-weight: 700;
    border-bottom: 1px solid currentColor;
}

.blog-sidebar {
    display: grid;
    gap: 22px;
    position: sticky;
    top: 96px;
}

.blog-sidebar-block {
    padding: 24px;
    border: 1px solid #e4e8ea;
    border-radius: 8px;
    background: #fff;
}

.blog-sidebar-block h2 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.blog-sidebar-block a {
    display: block;
    padding: 11px 0;
    color: #40505a;
    font-weight: 600;
    border-bottom: 1px solid #edf0f1;
}

.blog-sidebar-block a:last-child {
    border-bottom: 0;
}

.blog-sidebar-block a:hover {
    color: #a1653d;
}

.blog-sidebar-block p {
    color: #5b6870;
    line-height: 1.7;
}

.blog-cta-section {
    padding: 0 0 80px;
}

.blog-cta {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    padding: 34px;
    border-radius: 8px;
    background: #31434E;
    color: #fff;
}

.blog-cta h2 {
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.8rem;
}

.blog-cta p {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.04rem;
    line-height: 1.65;
}

.blog-cta .btn {
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .blog-hero-grid,
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-hero-panel {
        max-width: 680px;
    }

    .blog-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-card-image,
    .blog-card-content {
        grid-column: 1;
        grid-row: auto;
    }

    .blog-section-head,
    .blog-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-cta .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 36px 0 44px;
    }

    .blog-hero-content h1 {
        font-size: 2.2rem;
    }

    .blog-hero-content p:not(.article-category) {
        font-size: 1.02rem;
        line-height: 1.7;
    }

    .blog-list-section {
        padding: 44px 0 54px;
    }

    .blog-sidebar {
        grid-template-columns: 1fr;
    }

    .blog-card {
        padding: 18px;
    }

    .blog-card h2 {
        font-size: 1.45rem;
    }

    .blog-cta-section {
        padding-bottom: 56px;
    }

    .blog-cta {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .blog-hero-content h1 {
        font-size: 1.9rem;
    }

    .blog-hero-panel,
    .blog-sidebar-block {
        padding: 18px;
    }
}

.project-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
    z-index: 2;
}

.project-gallery:hover .project-gallery-arrow {
    opacity: 1;
}

.project-gallery-arrow:hover {
    background: #fff;
}

.project-gallery-arrow.arrow-left {
    left: 12px;
}

.project-gallery-arrow.arrow-right {
    right: 12px;
}

.project-gallery-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.project-gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.project-gallery-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.project-gallery-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* New Project Card - Optimized */
.project-card {
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
    contain: layout style paint;
    transition: opacity 0.5s ease, transform 0.5s ease;
    will-change: opacity, transform;
    max-width: 100%;
    overflow: hidden;
}

.project-card-extra {
    opacity: 0;
    transform: translateY(30px);
}

.project-card-extra.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hidden project cards */
.project-card-hidden {
    display: none !important;
}

/* Show more button container */
.projects-show-more {
    text-align: center;
    margin-top: 50px;
}

.btn-show-more {
    font-size: 1.1rem;
    padding: 16px 40px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-show-more svg {
    transition: transform 0.3s ease;
}

.btn-show-more.active svg {
    transform: rotate(180deg);
}

.project-info {
    padding: 25px 0 0 0;
}

.project-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-title-left h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 12px;
    font-weight: 500;
}

.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.project-badge {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 0.82rem;
    color: #444;
    background: #f9f9f9;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-project-request {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.btn-project-request svg {
    stroke: #fff;
}

.btn-project-request:hover {
    background: var(--accent-hover, #c99064);
    border-color: var(--accent-hover, #c99064);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 167, 116, 0.3);
}

.btn-project-request svg {
    transition: transform 0.3s ease;
}

.btn-project-request:hover svg {
    transform: translateX(3px);
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.project-price-block .price-main {
    font-size: 1.4rem;
    font-weight: 500;
    color: #333;
}

.project-price-block .price-sub {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

.btn-telegram {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.btn-telegram::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(232, 167, 116, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn-telegram:hover::before {
    width: 300px;
    height: 300px;
}

.btn-telegram:hover {
    border-color: #999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-telegram .tg-icon {
    width: 26px;
    height: 26px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.btn-telegram:hover .tg-icon {
    transform: translateX(5px);
}

.btn-telegram .tg-text {
    font-size: 0.85rem;
    line-height: 1.2;
    text-align: left;
    color: #555;
    position: relative;
    z-index: 1;
}

/* Parallax Background */
.parallax-bg {
    position: relative;
    background-image: url('images/hero_bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-image: url('images/hero_bg_mobile.webp');
        background-attachment: scroll;
    }
}

.parallax-bg>.container {
    position: relative;
    z-index: 1;
}

/* Process Section - Timeline Enhanced */
.process {
    position: relative;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

.process-header h2 {
    margin-bottom: 20px;
    color: #ffffff;
}

.process-header .subtitle {
    color: #ffffff;
}

/* Timeline */
.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 80px;
}

.timeline-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent-color), rgba(232, 167, 116, 0.1));
    border-radius: 3px;
}

.process-step {
    position: relative;
    margin-bottom: 40px;
}

.process-step.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.process-step.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.step-marker {
    position: absolute;
    left: -80px;
    top: 0;
    width: 80px;
    display: flex;
    justify-content: center;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    font-size: 1.3rem;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(232, 167, 116, 0.4);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(232, 167, 116, 0.5);
}

.step-content {
    background: rgba(20, 30, 40, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 32px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.process-step:hover .step-content {
    border-color: var(--accent-color);
    background: rgba(30, 45, 60, 0.75);
    box-shadow: 0 12px 35px rgba(232, 167, 116, 0.25);
    transform: translateX(8px);
}

.step-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 167, 116, 0.1);
    border-radius: 14px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    background: var(--accent-color);
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
}

.step-text h4 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.step-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.93rem;
    line-height: 1.6;
}

/* Last step special styling */
.process-step:last-child {
    margin-bottom: 0;
}

.process-step:last-child .step-number {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    box-shadow: 0 8px 25px rgba(82, 196, 26, 0.4);
}

.process-step:last-child:hover .step-number {
    box-shadow: 0 12px 35px rgba(82, 196, 26, 0.5);
}

.process-step:last-child .step-icon {
    background: rgba(82, 196, 26, 0.1);
    color: #52c41a;
}

.process-step:last-child:hover .step-icon {
    background: #52c41a;
    color: #fff;
}

.process-step:last-child:hover .step-content {
    border-color: #52c41a;
    box-shadow: 0 12px 35px rgba(82, 196, 26, 0.12);
}

@media (max-width: 768px) {
    .process-timeline {
        padding-left: 60px;
    }

    .timeline-line {
        left: 30px;
    }

    .step-marker {
        left: -60px;
        width: 60px;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    .step-content {
        padding: 20px 24px;
        flex-direction: column;
    }

    .step-icon {
        width: 48px;
        height: 48px;
    }
}

/* Quality & Fin Card */
.quality-card,
.fin-card {
    text-align: center;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.quality-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Founder Section - Enhanced */
.founder {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.founder-card {
    background: #31434E;
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(49, 67, 78, 0.3);
}

.founder-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 50px;
    align-items: center;
}

.founder-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.founder-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.founder-image-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
}

.founder-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 50px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.founder-badge svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

.founder-content h2 {
    margin-bottom: 25px;
    font-size: 1.8rem;
    line-height: 1.3;
    color: #ffffff;
}

.founder-quote {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 25px;
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.founder-signature {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.founder-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--accent-color);
}

.founder-title {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.founder-signature-mobile {
    display: none;
}

@media (max-width: 900px) {
    .founder-card {
        padding: 40px 30px;
    }

    .founder-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .founder-image-wrapper {
        width: 250px;
        height: 250px;
    }

    .founder-content h2 {
        font-size: 1.5rem;
    }

    .founder-quote {
        border-left: none;
        border-top: 4px solid var(--accent-color);
        padding-left: 0;
        padding-top: 20px;
    }

    .founder-signature {
        align-items: center;
    }

    .founder-signature-mobile {
        display: flex;
        margin-top: -15px;
    }

    .founder-signature-desktop {
        display: none;
    }
}

@media (max-width: 480px) {
    .founder-card {
        padding: 30px 20px;
    }

    .founder-image-wrapper {
        width: 200px;
        height: 200px;
    }

    .founder-content h2 {
        font-size: 1.3rem;
    }

    .founder-quote {
        font-size: 0.9rem;
    }
}

/* FAQ Section - Enhanced & Optimized */
.faq {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

.faq-list,
.faq-grid {
    max-width: 1100px;
    margin: 0 auto;
}

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

.faq-item {
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    contain: layout style;
}

.faq-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(232, 167, 116, 0.15);
    transform: translateY(-3px);
}

.faq-question {
    padding: 22px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.98rem;
    color: #222;
    transition: all 0.3s ease;
    user-select: none;
    line-height: 1.4;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: rgba(232, 167, 116, 0.15);
    border-radius: 50%;
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 300;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-icon {
    background: var(--accent-color);
    color: #fff;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px 22px 25px;
    display: none;
    line-height: 1.7;
    color: #555;
    font-size: 0.93rem;
}

.faq-answer p {
    margin: 0;
}

.faq-item.active .faq-answer {
    display: block;
    animation: faq-fade-in 0.3s ease;
}

@keyframes faq-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@media (max-width: 768px) {
    .faq-question {
        padding: 18px 20px;
        font-size: 0.92rem;
    }

    .faq-answer {
        padding: 0 20px 18px 20px;
        font-size: 0.9rem;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 1.3rem;
    }
}

/* Final CTA Section - Enhanced */
.final-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 167, 116, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.final-cta-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: #fff;
    border: 2px solid rgba(232, 167, 116, 0.3);
    border-radius: 24px;
    padding: 70px 60px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.1);
}

.final-cta-content h2 {
    text-align: center;
    margin-bottom: 20px;
}

.final-cta-content .subtitle {
    text-align: center;
    margin-bottom: 35px;
}

/* Bonus Card */
.bonus-card {
    background: linear-gradient(135deg, #fff5eb 0%, #ffffff 100%);
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(232, 167, 116, 0.15);
    position: relative;
    overflow: hidden;
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, #f0b88a 100%);
}

.bonus-icon {
    flex-shrink: 0;
    color: var(--accent-color);
}

.bonus-text strong {
    display: block;
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 5px;
}

.bonus-text p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Enhanced CTA Form */
.cta-form-enhanced {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.form-field-group {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 300px;
}

.field-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: color 0.3s ease;
}

.cta-form-enhanced input {
    width: 100%;
    padding: 18px 20px 18px 48px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.cta-form-enhanced input::placeholder {
    color: #999;
}

.cta-form-enhanced input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(232, 167, 116, 0.1);
}

.cta-form-enhanced input:focus+.field-icon,
.form-field-group:focus-within .field-icon {
    color: var(--accent-color);
}

.btn-cta-glow {
    font-size: 1.1rem;
    padding: 18px 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(232, 167, 116, 0.4);
}

.btn-cta-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta-glow:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta-glow span,
.btn-cta-glow svg {
    position: relative;
    z-index: 1;
}

.btn-cta-glow svg {
    transition: transform 0.3s ease;
}

.btn-cta-glow:hover {
    box-shadow: 0 15px 40px rgba(232, 167, 116, 0.6);
    transform: translateY(-2px);
}

.btn-cta-glow:hover svg {
    transform: translateX(5px);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.trust-item svg {
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Enhanced Policy */
.policy-enhanced {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #888;
    margin-top: 0;
}

.policy-enhanced svg {
    flex-shrink: 0;
    color: #999;
}

.policy-link {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: var(--accent-hover);
}

@media (max-width: 768px) {
    .final-cta {
        min-height: auto;
        padding: 40px 0;
    }

    .final-cta-wrapper {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .final-cta-content h2 {
        font-size: 1.5rem;
    }

    .final-cta-content .subtitle {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .bonus-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        margin-bottom: 25px;
    }

    .bonus-icon {
        margin-bottom: 10px;
    }

    .cta-form-enhanced {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 20px;
    }

    .form-field-group {
        max-width: 100%;
        min-width: 0;
    }

    .cta-form-enhanced input {
        padding: 15px 15px 15px 45px;
        font-size: 0.95rem;
    }

    .btn-cta-glow {
        width: 100%;
        justify-content: center;
        padding: 15px 25px;
        font-size: 1rem;
    }

    .form-checkbox-row {
        margin-top: 12px;
        text-align: center;
    }

    .form-checkbox-label {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        cursor: pointer;
        justify-content: center;
    }

    .form-checkbox-custom {
        width: 18px;
        height: 18px;
        border: 2px solid rgba(0, 0, 0, 0.2);
        border-radius: 4px;
        flex-shrink: 0;
        margin-top: 2px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        background: #fff;
    }

    .form-checkbox-label input {
        display: none;
    }

    .form-checkbox-label input:checked+.form-checkbox-custom {
        background: var(--accent-color);
        border-color: var(--accent-color);
    }

    .form-checkbox-label input:checked+.form-checkbox-custom::after {
        content: '✓';
        color: #fff;
        font-size: 12px;
        font-weight: bold;
    }

    .form-checkbox-text {
        font-size: 0.82rem;
        color: #666;
        line-height: 1.4;
        text-align: left;
    }

    .form-checkbox-text a {
        color: var(--accent-color);
        text-decoration: underline;
    }

    .trust-indicators {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .policy-enhanced {
        flex-direction: column;
        text-align: center;
        font-size: 0.8rem;
    }
}

/* Footer - Optimized */
.footer {
    background: #31434E;
    padding: 60px 0 30px;
    color: #fff;
    content-visibility: auto;
    contain-intrinsic-size: 0 400px;
}

.footer-content {
    color: #fff;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
    contain: layout style;
}

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

.footer-logo-img {
    height: 60px;
    object-fit: contain;
}

.footer-company-info h4 {
    font-size: 1.3rem;
    margin: 0 0 5px 0;
    color: #fff;
    font-weight: 700;
}

.footer-company-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-socials h5 {
    font-size: 1rem;
    margin: 0 0 20px 0;
    color: #fff;
    font-weight: 600;
}

.footer-socials-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(232, 167, 116, 0.3);
}

.footer-social-link svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.footer-social-link:hover svg {
    transform: scale(1.1);
}

/* Footer Middle */
.footer-middle {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-nav-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav-column h5 {
    font-size: 1rem;
    margin: 0 0 8px 0;
    color: #fff;
    font-weight: 600;
}

.footer-nav-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

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

.footer-contacts h5 {
    font-size: 1rem;
    margin: 0 0 20px 0;
    color: #fff;
    font-weight: 600;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.footer-contact-item svg {
    flex-shrink: 0;
    color: var(--accent-color);
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--accent-color);
}

/* Footer Messengers */
.footer-messengers {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-messengers h5 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-messengers-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-messenger-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
    padding: 6px;
}

.footer-messenger-icon:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 167, 116, 0.3);
}

.footer-messenger-icon img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.footer-messenger-icon:hover img {
    transform: scale(1.1);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 10px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Footer Responsive */
@media (max-width: 900px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-top {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }

    .footer-logo {
        flex-direction: column;
        text-align: center;
    }

    .footer-socials-grid {
        justify-content: center;
    }

    .footer-middle {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-contacts {
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-socials-grid {
        gap: 10px;
    }

    .footer-social-link {
        padding: 12px;
        min-width: 48px;
        justify-content: center;
    }

    .footer-social-link span {
        display: none;
    }

    .footer-company-info h4 {
        font-size: 1.1rem;
    }

    .footer-socials h5 {
        text-align: center;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-nav-column {
        text-align: center;
    }

    /* Footer messengers mobile */
    .footer-messengers {
        text-align: center;
    }

    .footer-messengers-icons {
        justify-content: center;
    }

    .footer-messenger-icon {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .final-cta {
        padding: 30px 0;
    }

    .final-cta-wrapper {
        padding: 25px 15px;
        border-radius: 12px;
    }

    .final-cta-content h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    .final-cta-content .subtitle {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .bonus-card {
        padding: 15px;
        margin-bottom: 20px;
    }

    .bonus-text strong {
        font-size: 1rem;
    }

    .bonus-text p {
        font-size: 0.85rem;
    }

    .cta-form-enhanced {
        gap: 10px;
        margin-bottom: 15px;
    }

    .form-field-group {
        min-width: 0;
    }

    .cta-form-enhanced input {
        padding: 14px 14px 14px 42px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .field-icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }

    .btn-cta-glow {
        padding: 14px 20px;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .trust-indicators {
        gap: 12px;
        margin-bottom: 15px;
    }

    .trust-item {
        font-size: 0.85rem;
    }

    .policy-enhanced {
        font-size: 0.75rem;
    }

    .form-checkbox-text {
        font-size: 0.78rem;
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer-top {
        padding-bottom: 25px;
        margin-bottom: 25px;
    }

    .footer-middle {
        padding-bottom: 25px;
        margin-bottom: 20px;
    }

    .footer-socials-grid {
        gap: 8px;
    }

    .footer-social-link {
        padding: 10px;
        min-width: 44px;
    }

    .footer-contact-item {
        font-size: 0.85rem;
        gap: 10px;
    }

    .footer-nav-column a {
        font-size: 0.85rem;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    margin: 10% auto;
    padding: 45px 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 440px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease;
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h3,
.modal-subtitle,
.modal-form>* {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.modal-content h3 {
    animation-delay: 0.1s;
}

.modal-subtitle {
    animation-delay: 0.2s;
}

.modal-checkbox-group {
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #666;
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.close-modal:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .close-modal {
        right: 12px;
        top: 12px;
        width: 48px;
        height: 48px;
        font-size: 2.2rem;
    }

    .modal-content {
        margin: 5% auto;
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .close-modal {
        right: 8px;
        top: 8px;
        width: 52px;
        height: 52px;
        font-size: 2.4rem;
    }

    .modal-content {
        margin: 3% auto;
        padding: 30px 20px;
        width: 95%;
    }
}

.modal-content h3 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.modal-subtitle {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 28px;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal-input-group {
    position: relative;
}

.modal-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 1;
}

.modal-form input[type="text"],
.modal-form input[type="tel"] {
    width: 100%;
    padding: 16px 18px 16px 48px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.modal-form input[type="text"]::placeholder,
.modal-form input[type="tel"]::placeholder {
    color: #999;
}

.modal-form select {
    width: 100%;
    padding: 16px 40px 16px 48px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.modal-form select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(232, 167, 116, 0.15);
}

.modal-form input[type="text"]:focus,
.modal-form input[type="tel"]:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(232, 167, 116, 0.15);
}

.modal-form input[type="text"]:focus+.modal-input-icon,
.modal-input-group:focus-within .modal-input-icon {
    color: var(--accent-color);
}

/* Checkbox styles */
.modal-checkbox-group {
    margin: 5px 0;
}

.modal-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #555;
}

.modal-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.modal-checkbox-custom {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: all 0.2s ease;
    margin-top: 1px;
}

.modal-checkbox-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modal-checkbox-label input[type="checkbox"]:checked+.modal-checkbox-custom {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.modal-checkbox-label input[type="checkbox"]:checked+.modal-checkbox-custom::after {
    display: block;
}

.modal-checkbox-label input[type="checkbox"]:focus+.modal-checkbox-custom {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.modal-checkbox-label:hover .modal-checkbox-custom {
    border-color: var(--accent-color);
}

.modal-checkbox-text {
    flex: 1;
}

.modal-checkbox-text a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.modal-checkbox-text a:hover {
    color: #d4956a;
}

.btn-modal-submit {
    margin-top: 8px;
    padding: 16px 24px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-modal-submit svg {
    transition: transform 0.3s ease;
}

.btn-modal-submit:hover svg {
    transform: translateX(4px);
}

/* Form Status Messages */
.form-status {
    display: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    margin-top: 10px;
    animation: formStatusFadeIn 0.3s ease;
}

@keyframes formStatusFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-status-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.form-status-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
}

/* Mobile modal */
@media (max-width: 600px) {
    .modal-content {
        margin: 20% auto;
        padding: 35px 25px;
        max-width: 95%;
    }

    .modal-content h3 {
        font-size: 1.4rem;
    }

    .modal-subtitle {
        font-size: 0.9rem;
    }
}

/* Supervision Section - Enhanced */
.supervision {
    background: linear-gradient(135deg, #31434E 0%, #2a3a45 50%, #31434E 100%);
}

.supervision-header {
    margin-bottom: 50px;
}

.supervision-header h2 {
    color: #ffffff;
}

.supervision-header .subtitle {
    color: rgba(255, 255, 255, 0.75);
}

.supervision-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #52c41a;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(82, 196, 26, 0.3);
}

.supervision-badge svg {
    flex-shrink: 0;
}

/* Main layout */
.supervision-main {
    max-width: 1200px;
    margin: 0 auto;
}

/* Cards grid */
.supervision-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.sup-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.sup-card:hover {
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 35px rgba(232, 167, 116, 0.15);
    transform: translateY(-3px);
}

.sup-card.featured {
    border-color: var(--accent-color);
    background: rgba(232, 167, 116, 0.1);
}

.sup-card-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.sup-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 167, 116, 0.15);
    border-radius: 16px;
    color: var(--accent-color);
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.sup-card:hover .sup-card-icon {
    background: var(--accent-color);
    color: #fff;
    transform: rotate(-5deg) scale(1.05);
}

.sup-card.featured .sup-card-icon {
    background: var(--accent-color);
    color: #fff;
}

.sup-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
}

.sup-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

    .supervision-header h2 {
        font-size: 1.6rem;
    }

    .sup-card {
        padding: 22px;
    }

    .sup-card-icon {
        width: 56px;
        height: 56px;
    }
}

/* Premium Excursion Block CTA */
.excursion-full-bg {
    position: relative;
    background-image: url('images/excurs.jpg');
    background-size: cover;
    background-position: center;
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

.excursion-full-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(30, 40, 50, 0.95) 0%, rgba(30, 40, 50, 0.7) 50%, rgba(30, 40, 50, 0.0) 100%);
    z-index: 1;
}

.excursion-premium-content {
    position: relative;
    z-index: 2;
    padding: 100px 0;
    max-width: 700px;
    color: #ffffff;
}

.excursion-premium-content h2 {
    color: #ffffff;
    margin-bottom: 25px;
    text-align: left;
}

.excursion-premium-content p {
    color: #e0e0e0;
    font-size: 1.15rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.excursion-benefits {
    list-style: none;
    margin-bottom: 40px;
    padding-left: 0;
}

.excursion-benefits li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.excursion-benefits .check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
    flex-shrink: 0;
}

.btn-excursion-glow {
    font-size: 1.1rem;
    padding: 18px 40px;
    box-shadow: 0 10px 30px rgba(232, 167, 116, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-excursion-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.btn-excursion-glow:hover::before {
    width: 300px;
    height: 300px;
}

.btn-excursion-glow span,
.btn-excursion-glow svg {
    position: relative;
    z-index: 1;
}

.btn-excursion-glow svg {
    transition: transform 0.3s ease;
}

.btn-excursion-glow:hover svg {
    transform: translateX(5px);
}

.btn-excursion-glow:hover {
    box-shadow: 0 15px 40px rgba(232, 167, 116, 0.6);
    transform: translateY(-3px);
}

.excursion-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.btn-excursion-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn-excursion-more:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-excursion-more svg {
    transition: transform 0.3s ease;
}

.btn-excursion-more:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .excursion-full-bg::before {
        background: linear-gradient(to bottom, rgba(30, 40, 50, 0.95) 0%, rgba(30, 40, 50, 0.6) 100%);
    }

    .excursion-premium-content {
        padding: 60px 0;
    }

    .excursion-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-excursion-more {
        justify-content: center;
    }
}


/* Mortgage Assistance Section - Enhanced */
.mortgage {
    position: relative;
    background: #F9FAFB;
    padding-top: 40px;
}

.mortgage-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.mortgage-image {
    position: relative;
    overflow: visible;
}

.mortgage-image img {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    max-width: 100%;
}

/* Floating Badge on Image */
.mortgage-badge-float {
    position: absolute;
    top: 20px;
    right: -20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f0b88a 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(232, 167, 116, 0.4);
    z-index: 2;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Bank Logos */
.mortgage-banks {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 2;
    width: 90%;
}

.bank-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bank-logos span {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.bank-logos span:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

/* Mortgage Content */
.mortgage-content {
    order: -1;
}

.mortgage-content h2 {
    margin-bottom: 15px;
}

/* Free Badge */
.mortgage-header {
    display: inline-block;
    margin-bottom: 15px;
}

.mortgage-free-badge {
    display: inline-block;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(82, 196, 26, 0.3);
}

/* Mortgage Features */
.mortgage-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0 35px 0;
}

.mortgage-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #f9f9f9;
    padding: 22px 25px;
    border-radius: 14px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.mortgage-feature:nth-child(1) {
    animation-delay: 0.1s;
}

.mortgage-feature:nth-child(2) {
    animation-delay: 0.2s;
}

.mortgage-feature:nth-child(3) {
    animation-delay: 0.3s;
}

.mortgage-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mortgage-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-color);
    background: #fff;
}

.mortgage-feature:hover::before {
    opacity: 1;
}

.mortgage-feature.featured {
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    border-color: var(--accent-color);
}

.mortgage-feature.featured::before {
    opacity: 1;
}

.mortgage-feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.mortgage-feature:hover .mortgage-feature-icon {
    background: var(--accent-color);
    color: #fff;
    transform: rotate(-5deg) scale(1.1);
}

.mortgage-feature h4 {
    margin-bottom: 5px;
    color: #222;
    font-size: 1.05rem;
}

.mortgage-feature p {
    color: #666;
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.5;
}

/* Rate Highlight */
.mortgage-rate-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
}

.mortgage-rate-highlight h4 {
    margin-bottom: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    font-weight: 800;
}

.mortgage-tag {
    background: var(--accent-color);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Mortgage CTA Block */
.mortgage-cta-block {
    margin-top: 10px;
}

.btn-mortgage-large {
    font-size: 1.1rem;
    padding: 18px 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.btn-mortgage-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-mortgage-large:hover::before {
    width: 300px;
    height: 300px;
}

.btn-mortgage-large span,
.btn-mortgage-large svg {
    position: relative;
    z-index: 1;
}

.btn-mortgage-large svg {
    transition: transform 0.3s ease;
}

.btn-mortgage-large:hover svg {
    transform: translateX(5px);
}

.mortgage-cta-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

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

    .mortgage-image {
        text-align: center;
    }

    .mortgage-image img {
        max-width: 350px;
    }

    .mortgage-badge-float {
        right: 10px;
        top: 10px;
    }

    .mortgage-banks {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        margin-top: 20px;
        width: 100%;
    }

    .bank-logos {
        justify-content: center;
    }
}

/* Mobile Typography Optimization */
@media (max-width: 768px) {

    h2,
    .process-sidebar h2,
    .section h2 {
        font-size: 1.6rem !important;
        margin-bottom: 25px !important;
    }

    .mortgage {
        padding-top: 25px !important;
    }

    h3,
    .feature-card h4,
    .pain-content h3 {
        font-size: 1.15rem !important;
        margin-bottom: 8px !important;
    }

    .feature-card-header h4 {
        font-size: 1.25rem !important;
        line-height: 1.25;
        margin-bottom: 0 !important;
    }

    .features.section .feature-card p {
        color: #333;
        font-size: 1.1rem;
        line-height: 1.6;
    }

    h4,
    .process-step-premium h4,
    .floating-info h4 {
        font-size: 1.05rem !important;
    }

    .hero-left h1 {
        font-size: 2rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 360px) {
    .hero-left h1 {
        font-size: 1.68rem !important;
        line-height: 1.18 !important;
        margin-bottom: 10px !important;
    }

    .hero-left p {
        font-size: 0.84rem;
        line-height: 1.42;
    }

    .hero-cta-row {
        gap: 10px;
    }

    .btn-hero {
        font-size: 0.84rem;
        gap: 8px;
        padding: 12px 14px;
    }
}

/* Custom Project Block */
.custom-project {
    position: relative;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.custom-project-bg {
    position: relative;
    background: linear-gradient(135deg, #1a2332 0%, #2d3a4a 50%, #1a2332 100%);
    padding: 80px 0;
    border-radius: 0;
    overflow: hidden;
}

.custom-project-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('images/dom.jpg') center/cover no-repeat;
    opacity: 0.15;
    mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), transparent);
    -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), transparent);
    pointer-events: none;
}

.custom-project-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(232, 168, 96, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.custom-project-content {
    display: flex;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.custom-project-text {
    flex: 1;
    min-width: 0;
}

.custom-project-header {
    margin-bottom: 20px;
}

.custom-project-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(232, 168, 96, 0.15);
    color: #e8a860;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.custom-project-content h2 {
    font-size: 2.4rem;
    line-height: 1.2;
    color: #fff;
    margin: 0;
}

.custom-project-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
    max-width: 600px;
}

.custom-project-info-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 16px 0 0 0;
    line-height: 1.5;
}

.custom-project-info-icon {
    flex-shrink: 0;
    color: #e8a860;
    margin-top: 2px;
}

.custom-project-email-block {
    background: rgba(232, 168, 96, 0.08);
    border: 1px solid rgba(232, 168, 96, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 16px;
    max-width: 600px;
}

.custom-project-email-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.55;
}

.custom-project-email-text svg {
    flex-shrink: 0;
    color: #e8a860;
    margin-top: 2px;
}

.custom-project-email-link {
    color: #e8a860;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 168, 96, 0.3);
    transition: border-color 0.3s ease;
}

.custom-project-email-link:hover {
    border-color: #e8a860;
}

/* Image on the right, vertically centered */
.custom-project-image {
    flex-shrink: 0;
    overflow: hidden;
}

.custom-project-image img {
    width: 420px;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    display: block;
}

.custom-project-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
    margin-bottom: 0;
    max-width: 600px;
}

.custom-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.custom-feature-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(232, 168, 96, 0.3);
    transform: translateY(-2px);
}

.custom-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 168, 96, 0.15);
    border-radius: 10px;
    color: #e8a860;
}

.custom-feature-card h4 {
    font-size: 1rem;
    color: #fff;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.custom-feature-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

/* CTA */
.custom-project-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 0;
}

.custom-project-cta-inner {
    display: inline-flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.custom-project-cta-inner .btn-custom-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    width: fit-content;
}

.custom-project-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    padding-left: 4px;
}

@media (max-width: 1100px) {
    .custom-project-content {
        flex-direction: column;
        gap: 40px;
    }

    .custom-project-image {
        justify-self: center;
        margin: 0 auto;
        order: 1;
    }

    .custom-project-image img {
        width: 380px;
        max-width: 100%;
    }

    .custom-project-features,
    .custom-project-email-block,
    .custom-project-desc,
    .custom-project-cta {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .custom-project-bg {
        padding: 50px 0;
    }

    .custom-project-bg::before {
        width: 100%;
        opacity: 0.08;
    }

    .custom-project-content h2 {
        font-size: 1.8rem;
    }

    .custom-project-features {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .custom-feature-card {
        padding: 16px;
    }

    .custom-project-cta-inner {
        align-items: stretch;
    }

    .custom-project-cta-inner .btn-custom-large {
        width: 100%;
        justify-content: center;
    }

    .custom-project-note {
        text-align: center;
    }
}

@media (max-width: 600px) {

    .custom-project-info-text,
    .custom-project-email-text {
        flex-direction: column;
        gap: 8px;
    }
}

/* Gallery Section */
.gallery {
    background: #F9FAFB;
}

.gallery-wrapper {
    position: relative;
}

.gallery-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    border-radius: 20px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}

.gallery-track {
    display: flex;
    gap: 0;
}

.gallery-item {
    flex: 0 0 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    scroll-snap-align: center;
    cursor: pointer;
    position: relative;
    transition: box-shadow 0.3s ease;
    aspect-ratio: 1024 / 648;
    height: auto;
}

.gallery-item.active-slide {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s;
    pointer-events: none;
}

.gallery-item:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

/* Иконка лупы при наведении */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 60px;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2;
    pointer-events: none;
}

.gallery-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

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

/* Gallery Arrows - inside photo overlay */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #31434E;
    transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
    z-index: 5;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.gallery-arrow-left {
    left: 16px;
}

.gallery-arrow-right {
    right: 16px;
}

.gallery-arrow:hover {
    background: var(--accent-color);
    color: #fff;
}

.gallery-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.gallery-dots {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

/* Tablet */
@media (max-width: 1100px) {
    .gallery-item {
        max-height: none;
    }

    .gallery-item img {
        height: 100%;
    }

    .gallery-arrow {
        width: 44px;
        height: 44px;
    }
}

/* Mobile */
@media (max-width: 900px) {
    .gallery-wrapper {
        gap: 0;
    }

    .gallery-arrow {
        display: none;
    }

    .gallery-scroll {
        margin: 0;
        padding: 0;
    }

    .gallery-item {
        flex: 0 0 85%;
        max-height: none;
        border-radius: 16px;
        scroll-snap-align: center;
        box-shadow: none;
    }

    .gallery-item.active-slide {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    }

    .gallery-track {
        gap: 12px;
        padding: 0 8px;
    }

    .gallery-item img {
        height: 100%;
    }

    .gallery-dots {
        display: flex;
    }
}

@media (max-width: 600px) {
    .gallery-item {
        flex: 0 0 88%;
        max-height: none;
        box-shadow: none;
    }

    .gallery-item.active-slide {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    }

    .gallery-item img {
        height: 100%;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease;
    font-size: 30px;
    line-height: 1;
    font-weight: 300;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease, opacity 0.3s ease;
    font-size: 40px;
    line-height: 1;
    font-weight: 300;
}

.lightbox-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.lightbox-zoom-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    touch-action: none;
    overflow: hidden;
    position: relative;
}

.lightbox-track {
    display: flex;
    width: 100%;
    height: 100%;
    transform: translateX(0);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform;
}

.lightbox-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s ease-out;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    cursor: grab;
}

@media (prefers-reduced-motion: reduce) {
    .lightbox-track {
        transition: none;
    }
}

.lightbox-img.zoomed {
    cursor: move;
}

.lightbox-zoom-wrapper.is-desktop-dragging .lightbox-img.zoomed {
    cursor: grabbing;
}

/* Во время перетаскивания/пинча отключаем плавный transition,
   чтобы картинка двигалась за пальцем 1:1, а не дёргалась рывками. */
.lightbox-zoom-wrapper.is-panning .lightbox-img,
.lightbox-zoom-wrapper.is-desktop-dragging .lightbox-img {
    transition: none;
}

.lightbox-img:active {
    cursor: grabbing;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 12px;
    font-family: var(--font-body);
}

.lightbox-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.lightbox-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.lightbox-dot.active {
    background: #fff;
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .lightbox-content {
        max-width: 100vw;
        max-height: 100vh;
        width: 100vw;
        height: 100vh;
    }

    .lightbox-zoom-wrapper {
        width: 100vw;
        height: 100vh;
    }

    .lightbox-img {
        max-width: 100vw;
        max-height: 100vh;
        width: 100vw;
        height: 100vh;
        object-fit: contain;
        border-radius: 0;
        box-shadow: none;
        transform-origin: 50% 50%;
    }

    .lightbox-counter {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
        background: rgba(0, 0, 0, 0.5);
        padding: 6px 14px;
        border-radius: 20px;
        margin-top: 0;
    }

    .lightbox-dots {
        bottom: 60px;
    }
}

/* ===== Footer — новые стили ===== */

/* Мессенджеры в footer-top */
.footer-messengers-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.footer-messengers-top h5 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    margin-bottom: 4px;
}

.footer-messengers-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-messengers-icons-top {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-messenger-icon-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 8px;
}

.footer-messenger-icon-top:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 167, 116, 0.3);
}

.footer-messenger-icon-top img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.footer-messenger-icon-top:hover img {
    transform: scale(1.1);
}

.footer-cta-btn {
    /* Используем те же стили что и .btn .btn-primary */
    padding: 15px 30px;
    font-family: var(--font-body);
    font-weight: 600;
    color: #fff;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    background-color: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.footer-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.footer-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.footer-cta-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 167, 116, 0.4);
}

/* Соцсети в footer-bottom — по центру, в один ряд */
.footer-socials-bottom {
    margin-bottom: 20px;
    text-align: center;
}

.footer-socials-bottom h5 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.footer-socials-grid-bottom {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 24px;
    margin-bottom: 10px;
    align-items: flex-start;
}

.footer-social-link-bottom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-social-link-bottom svg,
.footer-social-link-bottom img {
    width: 28px;
    height: 28px;
    transition: all 0.3s ease;
}

.footer-social-link-bottom:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.footer-social-link-bottom:hover svg {
    fill: var(--accent-color);
}

/* Звёздочка сверху справа от иконки Instagram */
.instagram-link-bottom {
    position: relative;
}

.instagram-asterisk {
    position: absolute;
    top: -10px;
    right: -10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.instagram-disclaimer {
    color: rgba(255, 255, 255, 0.35) !important;
    font-size: 0.5rem !important;
    margin: 10px auto 0 !important;
    line-height: 1.4;
    max-width: 500px;
    text-align: center !important;
    display: block;
}

/* Адаптив */
@media (max-width: 768px) {
    .footer-messengers-top {
        align-items: center;
    }

    .footer-messengers-row {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .footer-socials-grid-bottom {
        gap: 18px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .footer-socials-grid-bottom {
        gap: 14px;
    }

    .footer-social-link-bottom svg,
    .footer-social-link-bottom img {
        width: 24px;
        height: 24px;
    }
}

/* Скрываем стрелки на десктопе */
.projects-scroll-arrows {
    display: none;
    width: 100%;
}

/* Mobile dual carousels — скрыты на десктопе */
.projects-mobile-stack {
    display: none;
}

/* Mobile Projects Horizontal Scroll */
@media (max-width: 768px) {

    /* На мобильной показываем два сложенных скроллера, скрываем фильтр и десктопный wrapper */
    .projects-mobile-stack {
        display: block;
    }

    .projects-filter,
    .projects-scroll-arrows,
    #projectsScrollWrapper {
        display: none !important;
    }

    .projects-mobile-heading {
        margin: 28px 16px 14px;
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text-dark, #333);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .projects-mobile-stack > .projects-mobile-heading:first-child {
        margin-top: 8px;
    }

    .swipe-hint {
        display: inline-block;
        color: var(--accent-color, #E8A774);
        font-weight: 700;
        animation: swipeHintNudge 1.6s ease-in-out infinite;
    }

    @keyframes swipeHintNudge {
        0%, 100% { transform: translateX(0); opacity: 0.55; }
        50% { transform: translateX(8px); opacity: 1; }
    }

    .projects-arrow-nav {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid #e0e0e0;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #333;
        transition: all 0.2s ease;
        padding: 0;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .projects-arrow-nav:active {
        transform: scale(0.92);
        background: var(--accent-color);
        border-color: var(--accent-color);
        color: #fff;
    }

    .projects-scroll-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        margin: 0;
        padding: 0 0 20px;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }

    .projects-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .projects-scroll-wrapper .grid-2 {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
    }

    .projects-scroll-wrapper .project-card {
        flex: 0 0 80vw;
        max-width: 80vw;
        scroll-snap-align: start;
        margin: 0;
        padding: 0;
    }

    /* Spacer — отступ справа чтобы последняя карточка не прижималась к краю */
    .projects-scroll-spacer {
        flex: 0 0 24px;
        min-width: 24px;
    }

    /* Mobile dual carousels: левый отступ внутри скроллера, чтобы первая карточка
       начиналась от края контента, а не от края экрана */
    .projects-mobile-wrapper {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        scroll-padding-left: 20px;
    }

    .projects-mobile-wrapper .grid-2 {
        padding-left: 20px;
        padding-right: 20px;
    }

    .projects-mobile-wrapper .grid-2::after {
        content: '';
        flex: 0 0 20px;
    }

    /* Project request CTA — кликабельна, видна, и с полной заливкой на мобильной */
    .project-card .btn-project-request {
        position: relative;
        z-index: 2;
        pointer-events: auto;
        background: var(--accent-color);
        color: #fff;
        border-color: var(--accent-color);
    }

    .project-card .btn-project-request svg {
        stroke: #fff;
    }

    /* В мобильных каруселях все карточки показываются всегда —
       снимаем opacity:0 / translateY с .project-card-extra (это для desktop "Ещё проекты") */
    .projects-mobile-wrapper .project-card-extra {
        opacity: 1;
        transform: none;
    }

    /* Отключаем content-visibility оптимизацию внутри горизонтальных каруселей —
       иначе offscreen-карточки резервируют 600px высоты и раздувают flex-row. */
    .projects-mobile-wrapper .project-card {
        content-visibility: visible;
        contain-intrinsic-size: auto;
        contain: none;
    }

    .projects-scroll-wrapper .project-gallery-viewport {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .projects-scroll-wrapper .project-info {
        padding: 20px 15px 15px;
    }

    .projects-scroll-wrapper .project-badges {
        flex-wrap: wrap;
    }

    .projects-scroll-wrapper .project-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    /* Show more button по центру — скрываем на мобильной */
    .projects-show-more {
        display: none;
    }
}

/* Form Status Messages */
.form-status {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    animation: fadeIn 0.3s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal form status spacing */
.modal-form .form-status {
    margin-top: 12px;
}

/* CTA form status spacing */
.cta-form-enhanced .form-status {
    margin-top: 16px;
}

/* ==========================================
   Scroll Reveal Animations
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Разные варианты анимаций */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Задержки для каскадных анимаций */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

.reveal-delay-7 {
    transition-delay: 0.7s;
}

.reveal-delay-8 {
    transition-delay: 0.8s;
}

/* Отключаем анимации для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================
   Hero Section Entrance Animations
   ========================================== */
.hero-animate {
    opacity: 0;
    transform: translateY(30px);
    /* Анимация запускается сразу средствами CSS, без ожидания JS —
       иначе LCP-заголовок остаётся прозрачным до загрузки app.js (ломало LCP ~10с) */
    animation: heroFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-animate-delay-1 {
    animation-delay: 0.2s !important;
}

.hero-animate-delay-2 {
    animation-delay: 0.4s !important;
}

.hero-animate-delay-3 {
    animation-delay: 0.6s !important;
}

.hero-animate-delay-4 {
    animation-delay: 0.8s !important;
}

.hero-animate-delay-5 {
    animation-delay: 1.0s !important;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Trust Bar Attention Animations
   ========================================== */
.trust-bar-overlay-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border-radius: 8px;
}

/* Мягкое радиальное свечение при наведении - без резких границ */
.trust-bar-overlay-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%) scale(0.3);
    background: radial-gradient(circle, rgba(232, 167, 116, 0.12) 0%, rgba(232, 167, 116, 0.06) 30%, rgba(232, 167, 116, 0.02) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 0;
}

.trust-bar-overlay-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Плавное затухание при уходе курсора */
.trust-bar-overlay-item:not(:hover)::before {
    transition: opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.55, 0.085, 0.68, 0.53);
}

/* Убедимся что контент поверх свечения */
.trust-bar-overlay-icon,
.trust-bar-overlay-text {
    position: relative;
    z-index: 1;
}

/* Иконки и текст плавно загораются по очереди */
.trust-bar-overlay-icon {
    animation: trustIconPulse 8s ease-in-out infinite;
}

@keyframes trustIconPulse {
    0%, 75%, 100% {
        background: rgba(232, 167, 116, 0.15);
        color: var(--accent-color);
        transform: scale(1);
    }
    10%, 18% {
        background: var(--accent-color);
        color: #fff;
        transform: scale(1.08);
    }
}

.trust-bar-overlay-text span {
    animation: trustTextPulse 8s ease-in-out infinite;
}

@keyframes trustTextPulse {
    0%, 75%, 100% {
        color: rgba(255, 255, 255, 0.95);
        text-shadow: none;
    }
    10%, 18% {
        color: #fff;
        text-shadow: 0 0 12px rgba(232, 167, 116, 0.55);
    }
}

.trust-bar-overlay-item::before {
    animation: trustGlowPulse 8s ease-in-out infinite;
}

@keyframes trustGlowPulse {
    0%, 75%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
    10%, 18% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.trust-bar-overlay-item:nth-child(1) .trust-bar-overlay-icon,
.trust-bar-overlay-item:nth-child(1) .trust-bar-overlay-text span,
.trust-bar-overlay-item:nth-child(1)::before {
    animation-delay: 0s;
}

.trust-bar-overlay-item:nth-child(2) .trust-bar-overlay-icon,
.trust-bar-overlay-item:nth-child(2) .trust-bar-overlay-text span,
.trust-bar-overlay-item:nth-child(2)::before {
    animation-delay: 2s;
}

.trust-bar-overlay-item:nth-child(3) .trust-bar-overlay-icon,
.trust-bar-overlay-item:nth-child(3) .trust-bar-overlay-text span,
.trust-bar-overlay-item:nth-child(3)::before {
    animation-delay: 4s;
}

.trust-bar-overlay-item:nth-child(4) .trust-bar-overlay-icon,
.trust-bar-overlay-item:nth-child(4) .trust-bar-overlay-text span,
.trust-bar-overlay-item:nth-child(4)::before {
    animation-delay: 6s;
}

/* Второй элемент (0 рекламаций) - без подпрыгивания, только пульсация иконки */
.trust-bar-overlay-item:nth-child(2) {
    /* Убрали анимацию trustBarHighlight */
}

/* Отключаем анимации для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero-animate {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    .hero-animate.visible {
        animation: none !important;
    }

    .trust-bar-overlay-icon,
    .trust-bar-overlay-text span,
    .trust-bar-overlay-item::before {
        animation: none !important;
    }

    .trust-bar-overlay-item {
        transition: none !important;
    }
}

/* ==========================================
   Disable animations on mobile devices
   ========================================== */
@media (max-width: 768px) {
    .hero-animate {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .reveal.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed,
    .reveal-scale.revealed {
        opacity: 1 !important;
        transform: none !important;
    }

    .feature-card,
    .feature-icon {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .trust-bar-overlay-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==========================================
   Mobile active state for reasons cards
   ========================================== */
@media (max-width: 768px) {
    .features.section .feature-card.reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: border-color 0.35s ease, box-shadow 0.35s ease, background-color 0.35s ease !important;
    }

    .features.section .feature-icon {
        transition: background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease !important;
    }

    .features.section .feature-card:hover {
        transform: none !important;
        border-color: #e8e8e8;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    }

    .features.section .feature-card:hover .feature-icon {
        background: rgba(232, 167, 116, 0.1);
        color: var(--accent-color);
        transform: none !important;
    }

    .features.section .feature-card.is-active,
    .features.section .feature-card.is-active:hover {
        border-color: var(--accent-color);
        box-shadow:
            0 12px 35px rgba(232, 167, 116, 0.2),
            0 0 0 1px rgba(232, 167, 116, 0.16);
    }

    .features.section .feature-card.is-active .feature-icon,
    .features.section .feature-card.is-active:hover .feature-icon {
        background: var(--accent-color);
        color: #fff;
        box-shadow: 0 8px 22px rgba(232, 167, 116, 0.28);
        transform: none !important;
    }
}

/* Homepage project cards refresh */
#projects .projects-filter,
#projects .projects-scroll-arrows,
#projects .projects-mobile-stack,
#projects .projects-scroll-spacer {
    display: none !important;
}

#projectsScrollWrapper {
    overflow: visible;
}

#projectsScrollWrapper .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    align-items: stretch;
    padding-top: 22px; /* место для шильдиков первой строки */
}

#projects .project-card {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    position: relative;          /* якорь для шильдиков */
    overflow: visible;           /* шильдики выступают над карточкой */
    background: #fff;
    border: 1px solid rgba(49, 67, 78, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(38, 48, 56, 0.10), 0 2px 8px rgba(38, 48, 56, 0.06);
    content-visibility: visible;
    contain: none;
    contain-intrinsic-size: auto;
    opacity: 1 !important;
    transform: none !important;
    transition: box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1), transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease;
}

#projects .project-card:hover {
    /* без подсветки при наведении */
}

#projects .project-gallery {
    border-radius: 12px 12px 0 0;
    background: #edf1f3;
    position: relative;
    overflow: hidden; /* обрезаем фото по скруглению галереи */
}

#projects .project-gallery-img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#projects .project-card:hover .project-gallery-img {
    transform: none;
}

/* ---- Hero benefits cards (под главным экраном) ---- */
/* ---- Company stats under hero ---- */
.hero-stats {
    background: #fff;
    padding: 54px 0 50px;
}

.hero-stats-layout {
    display: grid;
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.hero-stats-primary {
    box-sizing: border-box;
    min-height: 240px;
    padding: 40px 36px;
    border-radius: 14px;
    background: #31434E;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-stats-primary-value,
.hero-stat-value {
    display: flex;
    align-items: baseline;
    gap: 16px;
    white-space: nowrap;
}

.hero-stats-primary-value {
    margin-bottom: 24px;
}

.hero-stats-primary-number {
    font-family: var(--font-heading);
    font-size: 4.8rem;
    line-height: 0.9;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.hero-stats-primary-unit {
    font-family: var(--font-body);
    font-size: 2.45rem;
    line-height: 1;
    font-weight: 400;
}

.hero-stats-primary p {
    max-width: 320px;
    margin: 0;
    color: #fff;
    font-size: 1.45rem;
    line-height: 1.18;
    font-weight: 400;
}

.hero-stats-title {
    font-family: var(--font-body);
    max-width: 880px;
    margin: 0 0 30px;
    color: #31434E;
    font-size: 1.85rem;
    line-height: 1.15;
    font-weight: 400;
}

.hero-stats-metrics {
    display: grid;
    grid-template-columns: 0.82fr 1.62fr 0.82fr;
    min-width: 0;
}

.hero-stat {
    box-sizing: border-box;
    min-width: 0;
    min-height: 136px;
    padding: 0 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(232, 167, 116, 0.55);
}

.hero-stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.hero-stat-number {
    font-family: var(--font-heading);
    color: #31434E;
    font-size: 4.35rem;
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: 0;
    white-space: nowrap;
}

.hero-stat-unit {
    font-family: var(--font-body);
    color: #31434E;
    font-size: 2.45rem;
    line-height: 1;
    font-weight: 400;
}

.hero-stat p {
    margin: 14px 0 0;
    color: #31434E;
    font-size: 1.3rem;
    line-height: 1.25;
    font-weight: 400;
}

.hero-stat:nth-child(2) {
    padding-left: 34px;
    padding-right: 28px;
}

.hero-stat:nth-child(2) .hero-stat-value {
    gap: 14px;
}

.hero-stat:nth-child(2) .hero-stat-unit {
    font-size: 2.2rem;
}

@media (max-width: 1100px) {
    .hero-stats-layout {
        grid-template-columns: 330px minmax(0, 1fr);
        gap: 32px;
    }

    .hero-stats-title {
        font-size: 1.55rem;
    }

    .hero-stat {
        padding: 0 24px;
    }

    .hero-stats-primary-number {
        font-size: 4.2rem;
    }

    .hero-stats-primary-unit {
        font-size: 2.1rem;
    }

    .hero-stats-primary p {
        font-size: 1.25rem;
    }

    .hero-stat-number {
        font-size: 3.6rem;
    }

    .hero-stat-unit {
        font-size: 2rem;
    }

    .hero-stat:nth-child(2) .hero-stat-unit {
        font-size: 1.85rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        padding: 28px 0 34px;
        background: #fff;
    }

    .hero-stats-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 22px;
        row-gap: 18px;
        align-items: stretch;
    }

    .hero-stats-content,
    .hero-stats-metrics {
        display: contents;
    }

    .hero-stats-primary {
        order: 1;
        min-height: 106px;
        padding: 12px 10px;
        border-radius: 8px;
    }

    .hero-stats-primary-value {
        gap: 8px;
        margin-bottom: 8px;
    }

    .hero-stats-primary-number {
        font-size: clamp(2.3rem, 10vw, 3rem);
    }

    .hero-stats-primary-unit {
        font-size: clamp(1rem, 4.2vw, 1.25rem);
    }

    .hero-stats-primary p {
        font-size: 0.88rem;
        line-height: 1.14;
    }

    .hero-stats-title {
        order: 5;
        grid-column: 1 / -1;
        margin: 2px 0 0;
        font-size: 1.08rem !important;
        line-height: 1.15 !important;
        font-weight: 400;
    }

    .hero-stat {
        min-height: 74px;
        padding: 0;
        border-left: 0;
        justify-content: start;
    }

    .hero-stats-metrics .hero-stat:nth-child(1) {
        order: 2;
    }

    .hero-stats-metrics .hero-stat:nth-child(2) {
        order: 3;
        padding: 0;
    }

    .hero-stats-metrics .hero-stat:nth-child(3) {
        order: 4;
        position: relative;
        padding-left: 0;
    }

    .hero-stats-metrics .hero-stat:nth-child(3)::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: -22px;
        border-left: 1px solid rgba(232, 167, 116, 0.55);
    }

    .hero-stat-value {
        gap: 8px;
        align-items: baseline;
    }

    .hero-stat-number {
        font-size: clamp(2.15rem, 9vw, 2.75rem);
        line-height: 0.95;
    }

    .hero-stat-unit {
        font-size: clamp(1rem, 4.1vw, 1.35rem);
        line-height: 1;
    }

    .hero-stats-metrics .hero-stat:nth-child(2) .hero-stat-unit {
        font-size: clamp(1rem, 4.1vw, 1.35rem);
    }

    .hero-stat p {
        margin-top: 7px;
        font-size: 0.92rem;
        line-height: 1.2;
    }
}

@media (max-width: 380px) {
    .hero-stats-layout {
        column-gap: 16px;
    }

    .hero-stats-metrics .hero-stat:nth-child(3)::before {
        left: -16px;
    }

    .hero-stat-unit {
        font-size: 0.98rem;
    }
}

.hero-benefits {
    padding: 28px 0 0;
    background: var(--primary-color);
}

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

.hero-benefit-card {
    background: #31434E;
    color: #fff;
    border-radius: 16px;
    padding: 24px 26px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 167, 116, 0.35);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.hero-benefit-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-color);
    color: #fff;
    flex-shrink: 0;
}

.hero-benefit-card p {
    font-size: 0.98rem;
    line-height: 1.45;
    color: #e8ecee;
    margin: 0;
}

.hero-benefit-card p strong {
    color: #fff;
    font-weight: 700;
}

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

    .hero-benefits {
        padding: 28px 0 10px;
    }

    .hero-benefit-card {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 18px 20px;
    }

    .hero-benefit-icon {
        width: 44px;
        height: 44px;
    }

    .hero-benefit-card p {
        font-size: 0.94rem;
    }
}

/* ---- Шильдики над карточкой (стиль kp-istoriya.ru) ---- */
/* Якорь: .project-card (прямой родитель, position:relative) */
#projects .project-card-labels {
    position: absolute;
    top: 0;                        /* верхний край карточки */
    left: 50%;
    transform: translate(-50%, -70%); /* немного наезжает на карточку */
    display: flex;
    gap: 8px;
    z-index: 10;
    white-space: nowrap;
    pointer-events: none;
}

#projects .project-card-labels .label-price,
#projects .project-card-labels .label-hit {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

#projects .project-card-labels .label-price {
    background: #31434E;
}

#projects .project-card-labels .label-hit {
    background: var(--accent-color);
}

#projects .project-gallery-viewport {
    height: auto;
    aspect-ratio: 5 / 3;
    contain: none;
}

#projects .project-gallery-img {
    object-fit: cover;
}

/* Overlay gradient at bottom of gallery image */
#projects .project-gallery::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(24, 36, 44, 0.36), transparent);
    pointer-events: none;
    z-index: 1;
}

#projects .project-gallery-arrow {
    display: flex;
    width: 42px;
    height: 74px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    opacity: 0.92;
    box-shadow: none;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.32));
}

@media (hover: hover) and (pointer: fine) {
    #projects .project-gallery-arrow {
        opacity: 0;
        pointer-events: none;
    }

    #projects .project-gallery:hover .project-gallery-arrow {
        opacity: 0.92;
        pointer-events: auto;
    }
}

#projects .project-gallery-arrow svg {
    width: 34px;
    height: 34px;
    stroke-width: 3;
}

#projects .project-gallery-arrow:hover {
    background: transparent;
    color: #fff;
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
}

#projects .project-gallery-dots {
    display: flex;
    bottom: 14px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(16, 26, 34, 0.54);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
}

#projects .project-gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.44);
    transition: background 0.2s ease, transform 0.2s ease;
}

#projects .project-gallery-dot.active {
    background: #fff;
    transform: scale(1.35);
}

#projects .project-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 24px 22px;
    gap: 0;
}

#projects .project-title-row {
    display: block;
    margin-bottom: 8px;
}

#projects .project-title-left h3 {
    margin: 0;
    color: #1a2830;
    font-family: var(--font-heading);
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.18;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

#projects .project-card:hover .project-title-left h3 {
    color: inherit;
}

#projects .project-title-left h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

#projects .project-title-left h3 a:hover {
    color: #b8895a;
}

#projects .project-price-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(49, 67, 78, 0.08);
}

#projects .project-price-block .price-main {
    color: #b8895a;
    font-family: var(--font-heading);
    font-size: 1.38rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: none;
}

#projects .price-month {
    margin-top: 0;
    color: #6b7f8a;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

#projects .project-description {
    min-height: 40px;
    margin: 0 0 16px;
    color: #56707c;
    font-size: 0.89rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#projects .project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: auto 0 18px;
}

#projects .project-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 6px 12px 6px 8px;
    border: 1px solid rgba(49, 67, 78, 0.12);
    border-radius: 999px;
    background: #f5f7f8;
    color: #31434E;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease;
}

#projects .project-card:hover .project-badge {
    background: #f0ece6;
    border-color: rgba(184, 137, 90, 0.2);
}

#projects .project-badge::before {
    content: '';
    display: block;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.62;
}

#projects .project-badge-area::before {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 10.5L12 3l9 7.5' stroke='%2331434E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5.5 9.5V21h13V9.5' stroke='%2331434E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.5 21v-6h5v6' stroke='%2331434E' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#projects .project-badge-bedrooms::before {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 11V6.5A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V11' stroke='%2331434E' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M3 12.5h18v6H3v-6Z' stroke='%2331434E' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M6 18.5V21M18 18.5V21' stroke='%2331434E' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M7 9h4M13 9h4' stroke='%2331434E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

#projects .project-badge-bathrooms::before {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 11h15v2.5A5.5 5.5 0 0 1 14.5 19h-4A5.5 5.5 0 0 1 5 13.5V11Z' stroke='%2331434E' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M7 19l-1 2M18 19l1 2M4 11h17' stroke='%2331434E' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M7 11V6.8A2.8 2.8 0 0 1 9.8 4H11' stroke='%2331434E' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M10.5 6h3' stroke='%2331434E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

#projects .project-footer {
    display: block;
    margin-top: auto;
    padding-top: 4px;
}

#projects .btn-project-request {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 13px 22px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #c99866 0%, #b8895a 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(184, 137, 90, 0.32);
    transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

#projects .btn-project-request:hover {
    background: linear-gradient(135deg, #d4a875 0%, #c49060 100%);
    box-shadow: 0 8px 24px rgba(184, 137, 90, 0.46);
    transform: translateY(-1px);
}

#projects .btn-project-request:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(184, 137, 90, 0.28);
}

@media (max-width: 768px) {
    #projectsScrollWrapper {
        display: block !important;
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    #projects.section {
        padding-top: 20px;
    }

    #projects > .container > h2.text-center {
        margin-top: 0 !important;
        margin-bottom: 45px !important;
    }

    #projectsScrollWrapper .grid-2 {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 0;
    }

    #projects .project-card {
        flex: initial;
        max-width: none;
        /* disable lift on touch devices */
        transition: none;
    }

    #projects .project-card:hover {
        transform: none !important;
    }

    #projects .project-info {
        padding: 16px 18px 20px;
    }
}

@media (max-width: 480px) {
    #projectsScrollWrapper .grid-2 {
        gap: 32px;
    }

    #projects .project-card {
        margin: 0;
        padding: 0;
    }

    #projects .project-gallery-viewport {
        aspect-ratio: 4 / 3;
    }

    #projects .project-title-left h3 {
        font-size: 1.16rem;
    }

    #projects .project-price-line {
        margin-bottom: 12px;
    }

    #projects .project-metrics {
        gap: 10px;
    }

    #projects .project-badge {
        gap: 6px;
        font-size: 0.76rem;
    }

    #projects .project-badge::before {
        flex-basis: 14px;
        width: 14px;
        height: 14px;
    }
}

/* ============================================
   День открытой стройки 2026 — промо-блок на главной
   ============================================ */
.dos-promo {
    padding: 80px 0;
    background: #fff;
}
.dos-promo-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 0;
    background: #1a2733;
    border-radius: 22px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.dos-promo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
}
.dos-promo-media {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    background: #1a2733;
}
.dos-promo-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.dos-promo-card:hover .dos-promo-media img {
    transform: scale(1.04);
}
.dos-promo-date {
    position: absolute;
    top: 24px;
    left: 24px;
    background: #E8A774;
    color: #fff;
    border-radius: 16px;
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 12px 26px rgba(232, 167, 116, 0.45);
}
.dos-promo-date strong {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}
.dos-promo-date span {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}
.dos-promo-content {
    padding: 50px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dos-promo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #E8A774;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.dos-promo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E8A774;
    box-shadow: 0 0 0 4px rgba(232, 167, 116, 0.25);
}
.dos-promo-content h2 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 16px;
    color: #fff;
}
.dos-promo-content p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 22px;
}
.dos-promo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 26px;
}
.dos-promo-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.93rem;
    font-weight: 500;
}
.dos-promo-meta-item svg {
    color: #E8A774;
    flex-shrink: 0;
}
.dos-promo-cta {
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #fff;
    border-radius: 10px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 28px rgba(232, 167, 116, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
.dos-promo-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
    z-index: -1;
}
.dos-promo-card:hover .dos-promo-cta {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(232, 167, 116, 0.5), 0 4px 10px rgba(0, 0, 0, 0.1);
    filter: brightness(1.05);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
}
.dos-promo-card:hover .dos-promo-cta::before {
    transform: translateX(120%);
}
@media (prefers-reduced-motion: reduce) {
    .dos-promo-cta::before {
        transition: none;
    }
}

@media (max-width: 900px) {
    .dos-promo { padding: 60px 0; }
    .dos-promo-card { grid-template-columns: 1fr; }
    .dos-promo-media { aspect-ratio: 16 / 10; min-height: 0; }
    .dos-promo-content { padding: 32px 28px; }
    .dos-promo-content h2 { font-size: 1.55rem; }
    .dos-promo-date { top: 16px; left: 16px; padding: 10px 16px; border-radius: 12px; }
    .dos-promo-date strong { font-size: 1.85rem; }
    .dos-promo-date span { font-size: 0.7rem; }
    .dos-promo-meta { gap: 14px; }
}

/* ============================================
   Hero event badge — День открытой стройки
   ============================================ */
.hero-event-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    padding: 6px 18px 6px 6px;
    margin-bottom: 24px;
    background: rgba(20, 30, 40, 0.55);
    border: 1px solid rgba(232, 167, 116, 0.55);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.hero-event-badge::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(circle at 0% 50%, rgba(232, 167, 116, 0.2) 0%, transparent 60%);
    pointer-events: none;
}
.hero-event-badge:hover {
    background: rgba(20, 30, 40, 0.75);
    border-color: #E8A774;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(232, 167, 116, 0.25);
}
.hero-event-badge-chip {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #E8A774;
    color: #fff;
    box-shadow: 0 6px 14px rgba(232, 167, 116, 0.4);
    animation: heroBadgePulse 2.6s ease-in-out infinite;
}
.hero-event-badge-chip strong {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
}
.hero-event-badge-chip span {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    margin-top: 2px;
}
@keyframes heroBadgePulse {
    0%, 100% { box-shadow: 0 6px 14px rgba(232, 167, 116, 0.4), 0 0 0 0 rgba(232, 167, 116, 0.5); }
    50% { box-shadow: 0 6px 14px rgba(232, 167, 116, 0.4), 0 0 0 10px rgba(232, 167, 116, 0); }
}
.hero-event-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}
.hero-event-badge-eyebrow {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
}
.hero-event-badge-title {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hero-event-badge-arrow {
    flex-shrink: 0;
    color: #E8A774;
    display: inline-flex;
    transition: transform 0.3s ease;
}
.hero-event-badge:hover .hero-event-badge-arrow {
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .hero-event-badge {
        gap: 10px;
        padding: 5px 14px 5px 5px;
        margin-bottom: 18px;
        width: 100%;
    }
    .hero-event-badge-chip { width: 40px; height: 40px; }
    .hero-event-badge-chip strong { font-size: 1rem; }
    .hero-event-badge-chip span { font-size: 0.55rem; }
    .hero-event-badge-eyebrow { font-size: clamp(0.62rem, 2.6vw, 0.78rem); letter-spacing: 1px; }
    .hero-event-badge-title { font-size: clamp(0.85rem, 3.6vw, 1.06rem); white-space: normal; }
    .hero-event-badge-text { flex: 1 1 auto; }
}


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

/* ============================================
   День открытой стройки 2026 — modal scroll popup
   ============================================ */
.dos-popup {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.dos-popup.active {
    opacity: 1;
    pointer-events: auto;
}
.dos-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 22, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}
.dos-popup-card {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    width: 100%;
    max-width: 1080px;
    max-height: calc(100vh - 40px);
    min-height: 540px;
    background: #1a2733;
    border-radius: 22px;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.dos-popup.active .dos-popup-card {
    transform: translateY(0) scale(1);
}
.dos-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    padding: 0;
    z-index: 3;
}
.dos-popup-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: rotate(90deg);
}
.dos-popup-media {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    background: #0f1620;
}
.dos-popup-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dos-popup-chip {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    background: #E8A774;
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(232, 167, 116, 0.45);
}
.dos-popup-chip strong {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
}
.dos-popup-chip span {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-align: center;
    margin-top: 4px;
    text-transform: uppercase;
}
.dos-popup-body {
    padding: 52px 52px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.dos-popup-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #E8A774;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    margin-bottom: 14px;
}
.dos-popup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E8A774;
    box-shadow: 0 0 0 4px rgba(232, 167, 116, 0.25);
}
.dos-popup-body h3 {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.25;
    padding-right: 32px;
}
.dos-popup-body p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    line-height: 1.55;
    margin: 0 0 18px;
}
.dos-popup-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dos-popup-meta li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    font-weight: 500;
}
.dos-popup-meta svg {
    color: #E8A774;
    flex-shrink: 0;
}
.dos-popup-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.dos-popup-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: #E8A774;
    color: #fff;
    border-radius: 10px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(232, 167, 116, 0.4);
    transition: background 0.2s ease, transform 0.2s ease, gap 0.2s ease, box-shadow 0.2s ease;
}
.dos-popup-btn:hover {
    background: #c99064;
    transform: translateY(-2px);
    gap: 12px;
    box-shadow: 0 14px 32px rgba(232, 167, 116, 0.5);
}
.dos-popup-skip {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.dos-popup-skip:hover {
    color: #fff;
}

@media (max-width: 720px) {
    .dos-popup { padding: 0; align-items: flex-end; }
    .dos-popup-card {
        grid-template-columns: 1fr;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        overflow-y: auto;
    }
    .dos-popup-media { aspect-ratio: 16 / 10; min-height: 0; }
    .dos-popup-chip { top: 14px; left: 14px; padding: 10px 14px; border-radius: 12px; }
    .dos-popup-chip strong { font-size: 1.6rem; }
    .dos-popup-chip span { font-size: 0.62rem; }
    .dos-popup-close { top: 12px; right: 12px; width: 34px; height: 34px; background: rgba(0, 0, 0, 0.5); }
    .dos-popup-body { padding: 26px 22px 24px; }
    .dos-popup-body h3 { font-size: 1.2rem; padding-right: 0; }
    .dos-popup-body p { font-size: 0.9rem; }
    .dos-popup-meta li { font-size: 0.85rem; }
    .dos-popup-actions { gap: 4px; }
    .dos-popup-btn { padding: 12px 20px; font-size: 1rem; width: 100%; justify-content: center; }
    .dos-popup-skip { width: 100%; padding: 14px; text-align: center; }
}



/* Hero event badge — Узнать подробнее label near arrow */
.hero-event-badge-arrow {
    align-items: center;
    gap: 8px;
    padding-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    margin-left: 4px;
}
.hero-event-badge-arrow-label {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .hero-event-badge-arrow-label { display: none; }
    .hero-event-badge-arrow {
        padding-left: 0;
        border-left: none;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-benefits,
    .projects.section,
    .gallery.section,
    .dos-promo,
    .quiz-section,
    .features.section,
    .mortgage.section,
    .excursion-full-bg,
    .custom-project,
    .process.section,
    .supervision.section,
    .founder.section,
    .faq.section,
    .final-cta.section,
    .footer {
        content-visibility: auto;
        contain-intrinsic-size: auto 900px;
    }

    .projects.section,
    .quiz-section,
    .features.section {
        contain-intrinsic-size: auto 1400px;
    }

    .gallery.section,
    .process.section,
    .faq.section {
        contain-intrinsic-size: auto 1100px;
    }
}

/* ==========================================
   5.1 Готовые проекты (кейсы) — секция #cases
   Переиспользует .project-card / .project-gallery,
   стили ниже повторяют поведение секции #projects.
   ========================================== */
.cases-subtitle {
    max-width: 720px;
    margin: -10px auto 40px;
    color: #6a7480;
    font-size: 1.05rem;
    line-height: 1.5;
}

#cases .projects-home-grid {
    row-gap: 70px;
}

#cases .project-card {
    contain-intrinsic-size: 0 720px;
}

/* Метка «Реализованный объект» — в левом верхнем углу фото */
#cases .case-card {
    position: relative;
}

#cases .project-card-labels {
    position: absolute;
    top: 14px;
    left: 14px;
    transform: none;
    display: flex;
    gap: 8px;
    z-index: 5;
    white-space: nowrap;
    pointer-events: none;
}

#cases .label-built {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
    background: #31434E;
    pointer-events: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Галерея — как в #projects */
#cases .project-gallery-viewport {
    height: auto;
    aspect-ratio: 5 / 3;
    contain: none;
}

#cases .project-gallery-arrow {
    display: flex;
    width: 42px;
    height: 74px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    opacity: 0.92;
    box-shadow: none;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.32));
}

/* Локация под названием */
#cases .case-location {
    margin: -6px 0 14px;
    color: #8a939e;
    font-size: 0.95rem;
}

/* Технические характеристики — приглушённый блок */
#cases .case-specs {
    color: #7a838e;
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 14px 0 0;
}

/* Призыв на экскурсию */
#cases .case-cta {
    margin-top: 22px;
}

#cases .case-cta .btn-project-request {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
}

#cases .case-cta-note {
    margin: 10px 0 0;
    text-align: center;
    color: #9aa3ae;
    font-size: 0.82rem;
}

@media (max-width: 768px) {
    .cases-subtitle {
        font-size: 0.98rem;
        margin-bottom: 28px;
    }

    #cases .projects-home-grid {
        row-gap: 48px;
    }
}

/* Cases refresh: horizontal object cards with technical details */
.cases-subtitle {
    max-width: 760px;
    margin: -10px auto 42px;
    color: #6a7480;
    font-size: 1.05rem;
    line-height: 1.55;
}

#cases .projects-home-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
}

#cases .project-card {
    contain: layout style;
    contain-intrinsic-size: 0 560px;
}

#cases .case-card {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    grid-template-areas:
        "gallery info"
        "specs   specs";
    grid-template-rows: auto auto;
    column-gap: 34px;
    row-gap: 0;
    align-items: stretch;
    padding: 20px;
    border: 1px solid rgba(49, 67, 78, 0.1);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(49, 67, 78, 0.08);
    overflow: hidden;
}

#cases .project-gallery {
    grid-area: gallery;
    border-radius: 8px;
    background: #243440;
}

#cases .project-gallery-viewport {
    height: auto;
    aspect-ratio: 16 / 10;
    contain: none;
}

#cases .project-gallery-arrow {
    display: flex;
    width: 48px;
    height: 72px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.95;
    box-shadow: none;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.32));
}

#cases .project-gallery-arrow svg {
    width: 34px;
    height: 34px;
    stroke-width: 3;
}

#cases .project-gallery-arrow:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

#cases .project-gallery-dots {
    display: none;
}

#cases .case-gallery-thumbs {
    grid-area: thumbs;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

#cases .case-gallery-thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #eef2f3;
    overflow: hidden;
    cursor: pointer;
}

#cases .case-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.01);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

#cases .case-gallery-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(49, 67, 78, 0.22);
    transition: opacity 0.25s ease;
}

#cases .case-gallery-thumb:hover img {
    transform: scale(1.05);
}

#cases .case-gallery-thumb.active {
    border-color: var(--accent-color);
}

#cases .case-gallery-thumb.active::after,
#cases .case-gallery-thumb:hover::after {
    opacity: 0;
}

#cases .project-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 8px 8px 4px 0;
}

#cases .project-title-left h3 {
    margin: 0 0 8px;
    color: #31434E;
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.12;
    text-transform: uppercase;
}

#cases .case-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #687780;
    font-size: 0.96rem;
    line-height: 1.35;
}

#cases .case-location::before {
    content: '';
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 21s7-5.2 7-12A7 7 0 1 0 5 9c0 6.8 7 12 7 12Z' stroke='%23E8A774' stroke-width='2' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='9' r='2.4' stroke='%23E8A774' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

#cases .project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 0 0 18px;
    align-items: center;
}

#cases .project-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: #31434E;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: normal;
}

#cases .project-badge::before {
    content: '';
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f6eadf;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px;
}

#cases .project-badge-area::before {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 20V9.5L12 3l8 6.5V20H4Z' stroke='%2331434E' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M9.5 20v-6h5v6' stroke='%2331434E' stroke-width='1.9' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#cases .project-badge-floors::before {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 21V5.5A2.5 2.5 0 0 1 7.5 3h9A2.5 2.5 0 0 1 19 5.5V21' stroke='%2331434E' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M8 8h2.5M13.5 8H16M8 12h2.5M13.5 12H16M8 16h2.5M13.5 16H16M3 21h18' stroke='%2331434E' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}

#cases .project-badge-time::before {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='8.5' stroke='%2331434E' stroke-width='1.9'/%3E%3Cpath d='M12 7.5V12l3.2 2' stroke='%2331434E' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#cases .project-badge-mortgage::before {
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 8.5h16v11H4v-11Z' stroke='%2331434E' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M4 10l8-6 8 6M9 15h6' stroke='%2331434E' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#cases .project-description {
    margin: 0 0 20px;
    color: #4a5d68;
    font-size: 0.94rem;
    line-height: 1.58;
}

#cases .case-specs {
    grid-area: specs;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    width: 100%;
    padding-top: 0;
    border-top: none;
}

#cases .case-spec {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1 1 0;
    min-width: 0;
    gap: 3px;
    min-height: 0;
    padding: 8px 10px;
    border: 1px solid rgba(49, 67, 78, 0.1);
    border-radius: 6px;
    background: transparent;
    color: #31434E;
}

#cases .case-spec::before {
    display: none;
}

#cases .case-spec span {
    display: block;
    color: #7d8890;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

#cases .case-spec strong {
    display: block;
    margin-top: 4px;
    color: #31434E;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.25;
}

#cases .case-spec-foundation::before {
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='21' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 17h16M5.5 13h13M7 9h10M8.5 5h7' stroke='%23E8A774' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M6 21h12' stroke='%2331434E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

#cases .case-spec-timber::before {
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='21' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7h14v5H5V7ZM7 12h14v5H7v-5Z' stroke='%2331434E' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M8.5 9.5h.01M12 9.5h.01M10.5 14.5h.01M15 14.5h.01' stroke='%23E8A774' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

#cases .case-spec-roof::before {
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='21' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 11 12 4l8.5 7' stroke='%23E8A774' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6 10.5V20h12v-9.5' stroke='%2331434E' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

#cases .case-spec-windows::before {
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='21' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 4h14v17H5V4Z' stroke='%2331434E' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M12 4v17M5 12h14' stroke='%23E8A774' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}

#cases .case-spec-finish::before {
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='21' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 5h10a3 3 0 0 1 0 6H9a3 3 0 0 0 0 6h7' stroke='%2331434E' stroke-width='1.9' stroke-linecap='round'/%3E%3Cpath d='M17 17v3M13 20h8' stroke='%23E8A774' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}

#cases .case-spec-walls::before {
    background-image: url("data:image/svg+xml,%3Csvg width='21' height='21' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 7h16v12H4V7Z' stroke='%2331434E' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M4 11h16M4 15h16M9 7v4M15 11v4M9 15v4' stroke='%23E8A774' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Hide gallery thumbs and excursion CTA button from case cards */
#cases .case-gallery-thumbs {
    display: none !important;
}

#cases .case-cta {
    display: none !important;
}

/* Fix horizontal overflow from absolutely positioned arrows */
#cases {
    overflow: hidden;
}

#cases > .container {
    overflow: visible;
}

/* Carousel arrows — positioned outside the card track */
#cases .cases-carousel {
    position: relative;
}

#cases .cases-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #31434E;
    box-shadow: 0 4px 18px rgba(49, 67, 78, 0.16);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#cases .cases-carousel-arrow:hover {
    background: #31434E;
    color: #fff;
    box-shadow: 0 8px 24px rgba(49, 67, 78, 0.28);
}

#cases .cases-carousel-arrow-prev {
    left: -26px;
}

#cases .cases-carousel-arrow-next {
    right: -26px;
}


/* Container padding provides room for outside arrows on desktop */
#cases > .container {
    padding-left: 52px;
    padding-right: 52px;
}

/* Two-column layout: stretch the image to match the text column height,
   so the full-width specs row sits right under both with no empty gaps. */
@media (min-width: 1121px) {
    #cases .project-gallery {
        align-self: stretch;
        height: 100%;
    }

    #cases .project-gallery-viewport {
        position: relative;
        height: 100%;
        min-height: 100%;
        aspect-ratio: auto;
    }

    #cases .project-gallery picture {
        display: block;
        height: 100%;
    }

    #cases .project-gallery-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #cases .project-info {
        padding-top: 0;
    }

    #cases .case-specs {
        margin-top: 18px;
    }
}

@media (max-width: 1120px) {
    #cases > .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 1120px) {
    #cases .case-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "gallery"
            "info"
            "specs";
        gap: 16px;
    }

    #cases .case-specs {
        margin: 0;
        padding-top: 0;
        border-top: none;
    }

    #cases .project-info {
        padding: 4px 2px 0;
    }
}

@media (max-width: 768px) {
    .cases-subtitle {
        font-size: 0.98rem;
        margin-bottom: 28px;
    }

    #cases .projects-home-grid {
        gap: 28px;
    }

    #cases .case-card {
        padding: 14px;
    }

    #cases .project-gallery-viewport {
        aspect-ratio: 4 / 3;
    }

    #cases .project-metrics {
        flex-wrap: wrap;
        gap: 8px;
    }

    #cases .case-specs {
        flex-wrap: wrap;
        gap: 6px;
    }

    #cases .case-spec {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
    }

    #cases .cases-carousel-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    #cases .case-card {
        padding: 10px;
        border-radius: 7px;
    }

    #cases .case-gallery-thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #cases .project-title-left h3 {
        font-size: 1.28rem;
    }

    #cases .project-description {
        font-size: 0.9rem;
    }
}

/* Thumbs hidden — display:none !important takes priority */
#cases .case-gallery-thumbs {
    display: none !important;
    overflow-x: hidden;
    scrollbar-width: none;
}

#cases .case-gallery-thumb {
    flex: 0 0 clamp(88px, 16vw, 112px);
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    #cases .case-gallery-thumb {
        flex-basis: 88px;
    }
}

/* Catalog CTA: desktop button back to standard sizing */
@media (min-width: 769px) {
    .projects-catalog-bridge .btn.btn-projects-all {
        min-width: 0;
        width: auto;
        padding: 14px 22px;
        border-radius: 8px;
        gap: 10px;
        font-size: 1rem;
        line-height: 1.2;
        animation: none;
        box-shadow: 0 8px 18px rgba(232, 167, 116, 0.28);
    }

    .projects-catalog-bridge .btn-projects-all-icon {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .projects-catalog-bridge .btn-projects-all-icon svg,
    .projects-catalog-bridge .btn-projects-all-arrow {
        width: 20px;
        height: 20px;
    }
}

/* Cases as a horizontal scroll lane */
#cases .cases-carousel {
    position: relative;
}

#cases .cases-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 38px;
    width: 96px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 84%);
    pointer-events: none;
    z-index: 2;
}

#cases .cases-carousel[data-at-end="true"]::after {
    opacity: 0;
}

#cases .projects-home-wrapper {
    display: block;
    overflow-x: auto;
    overflow-y: visible;
    margin-top: 28px;
    padding: 0 0 18px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#cases .projects-home-wrapper::-webkit-scrollbar {
    display: none;
}

#cases .projects-home-grid {
    display: flex;
    align-items: flex-start;
    grid-template-columns: none;
    width: max-content;
    max-width: none;
    gap: 24px;
}

#cases .case-card {
    flex: 0 0 min(980px, calc(100vw - 160px));
    scroll-snap-align: start;
    /* override global .project-card { margin: 0 -15px } on small screens */
    margin: 0;
}

#cases .cases-carousel-arrow {
    position: absolute;
    top: clamp(150px, 24vw, 320px);
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #31434E;
    color: #fff;
    box-shadow: 0 14px 30px rgba(49, 67, 78, 0.24);
    cursor: pointer;
    /* no vertical translate in base state, so hover doesn't jump */
    transform: none;
    transition: opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#cases .cases-carousel-arrow:hover {
    background: #253640;
    transform: none;
    box-shadow: 0 18px 36px rgba(49, 67, 78, 0.3);
}

#cases .cases-carousel-arrow:disabled {
    opacity: 0.42;
    cursor: default;
    pointer-events: none;
}

#cases .cases-carousel-arrow-prev {
    left: -18px;
}

#cases .cases-carousel-arrow-next {
    right: -18px;
}

#cases .cases-carousel-progress {
    width: min(240px, 52vw);
    height: 4px;
    margin: 0 auto;
    border-radius: 999px;
    background: rgba(49, 67, 78, 0.14);
    overflow: hidden;
}

#cases .cases-carousel-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent-color);
    transform: scaleX(0.08);
    transform-origin: left center;
    transition: transform 0.2s ease;
}

@media (max-width: 1120px) {
    #cases .case-card {
        flex-basis: min(760px, calc(100vw - 88px));
    }
}

@media (max-width: 768px) {
    #cases .projects-home-wrapper {
        margin-inline: -4px;
        padding: 0 4px 16px;
        scroll-padding-inline: 4px;
    }

    #cases .projects-home-grid {
        gap: 16px;
    }

    #cases .case-card {
        flex-basis: calc(100vw - 72px);
    }

    /* Mobile: replace nav arrows + edge fade with a swipe hint */
    #cases .cases-carousel-arrow {
        display: none;
    }

    #cases .cases-carousel::after {
        display: none;
    }
}

/* Swipe hint above the cards — visible on mobile only */
#cases .cases-swipe-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 14px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(49, 67, 78, 0.07);
    color: #5b6a74;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

#cases .cases-swipe-hint svg {
    flex: 0 0 auto;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    #cases .cases-swipe-hint {
        display: inline-flex;
    }
}

/* Cases carousel: full-width cards with controls above the track */
#cases > .container {
    padding-left: 20px;
    padding-right: 20px;
}

#cases .cases-carousel {
    width: 100%;
}

#cases .cases-carousel::after {
    display: none;
}

#cases .cases-carousel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: -14px 0 16px;
}

#cases .cases-swipe-hint {
    display: inline-flex;
    margin: 0;
}

#cases .cases-carousel-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

#cases .cases-carousel-arrow {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    z-index: 1;
    display: inline-flex;
    width: 44px;
    height: 44px;
    transform: none;
    background: #31434E;
    color: #fff;
    box-shadow: 0 12px 26px rgba(49, 67, 78, 0.2);
}

#cases .cases-carousel-arrow:hover {
    background: #253640;
    color: #fff;
    transform: none;
    box-shadow: 0 16px 30px rgba(49, 67, 78, 0.26);
}

#cases .projects-home-wrapper {
    width: 100%;
    margin-top: 0;
    padding: 0 0 18px;
    scroll-padding-inline: 0;
}

#cases .projects-home-grid {
    width: 100%;
    max-width: 100%;
    align-items: stretch;
}

#cases .case-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    #cases .cases-carousel-toolbar {
        margin-top: -6px;
    }

    #cases .cases-carousel-arrow {
        display: inline-flex;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 520px) {
    #cases .cases-carousel-toolbar {
        align-items: center;
        flex-direction: column;
        gap: 12px;
    }

    #cases .cases-swipe-hint {
        width: 100%;
    }
}

/* Case specs sit under the description in the right column, without framed chips. */
@media (min-width: 1121px) {
    #cases .case-card {
        grid-template-areas:
            "gallery info"
            "gallery specs";
        grid-template-rows: auto 1fr;
        row-gap: 18px;
    }
}

#cases .case-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    align-content: start;
    margin: 2px 0 0;
    padding: 0;
    border: none;
}

#cases .case-spec {
    display: block;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

#cases .case-spec-finish,
#cases .case-spec-walls {
    display: none;
}

@media (max-width: 1120px) {
    #cases .case-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 18px;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    #cases .case-specs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
    }

    #cases .case-spec span {
        font-size: 0.68rem;
    }

    #cases .case-spec strong {
        font-size: 0.8rem;
        line-height: 1.22;
    }
}

/* Final case card layout: media on the left, all object details on the right.
   Галерея занимает всю свободную высоту левой колонки (строка 1fr), а миниатюры
   прижаты к низу — так нет ни большого зазора, ни пустого места под карточкой,
   когда описание справа выше изображения. */
#cases .case-card {
    grid-template-areas:
        "gallery info"
        "thumbs  info";
    grid-template-rows: 1fr auto;
    align-items: start;
    row-gap: 12px;
}

#cases .project-gallery {
    align-self: start;
    height: auto;
}

#cases .project-gallery-viewport {
    position: relative;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    contain: none;
}

#cases .project-gallery-track {
    height: 100%;
}

#cases .project-gallery-slide {
    position: relative;
}

#cases .project-gallery-slide picture {
    display: block;
    height: 100%;
}

#cases .project-gallery-img {
    position: static;
    inset: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#cases .case-gallery-thumbs {
    grid-area: thumbs;
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: clamp(86px, 17vw, 112px);
    grid-template-columns: none;
    gap: 8px;
    margin: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

#cases .case-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

#cases .case-gallery-thumb {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #edf1f3;
    opacity: 0.72;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

#cases .case-gallery-thumb.active,
#cases .case-gallery-thumb:hover {
    opacity: 1;
}

#cases .case-gallery-thumb.active {
    border-color: var(--accent-color);
}

#cases .project-info .case-specs {
    grid-area: auto;
    width: 100%;
    margin: 0;
}

@media (max-width: 1120px) {
    #cases .case-card {
        grid-template-areas:
            "gallery"
            "thumbs"
            "info";
        grid-template-rows: auto auto auto;
        row-gap: 12px;
    }
}

@media (max-width: 768px) {
    #cases .case-gallery-thumbs {
        grid-auto-columns: 86px;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    #cases .case-card {
        display: flex !important;
        flex-direction: column;
        gap: 22px;
        grid-template-areas: none;
        grid-template-rows: none;
        row-gap: 22px;
    }

    #cases .case-gallery-thumbs {
        display: none !important;
    }

    #cases .project-gallery-dots {
        display: flex;
        bottom: 10px;
        gap: 7px;
        padding: 6px 9px;
        border-radius: 999px;
        background: rgba(16, 26, 34, 0.5);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    #cases .project-gallery-dot {
        width: 6px;
        height: 6px;
        background: rgba(255, 255, 255, 0.48);
    }

    #cases .project-gallery-dot.active {
        background: #fff;
        transform: scale(1.35);
    }

    #cases .project-gallery {
        margin: 0;
    }

    #cases .project-info {
        min-height: 0;
        margin: 0;
        padding: 0 2px;
    }

    #cases .project-title-row,
    #cases .project-title-left h3 {
        margin-top: 0;
    }
}

/* ── ПК: стрелки по вертикали в центре карточек, прогресс-бар убран ── */
@media (min-width: 1121px) {
    /* Боковые поля, чтобы стрелки встали в стороне от карточек */
    #cases > .container {
        padding-left: 78px;
        padding-right: 78px;
    }

    /* Подсказка «Карточки можно переключать» на ПК не нужна */
    #cases .cases-swipe-hint {
        display: none;
    }

    /* Тулбар схлопывается — стрелки вынесены из потока */
    #cases .cases-carousel-toolbar {
        margin: 0;
        min-height: 0;
    }

    #cases .projects-home-wrapper {
        margin-top: 6px;
    }

    /* Стрелки переключения: по центру карточек, в отдалении по бокам */
    #cases .cases-carousel-arrow {
        position: absolute;
        top: 50%;
        left: auto;
        right: auto;
        transform: translateY(-50%);
        z-index: 5;
    }

    #cases .cases-carousel-arrow:hover {
        transform: translateY(-50%);
    }

    #cases .cases-carousel-arrow-prev {
        left: -62px;
    }

    #cases .cases-carousel-arrow-next {
        right: -62px;
    }

    /* Тёмная полоска (прогресс-бар) убрана на ПК */
    #cases .cases-carousel-progress {
        display: none;
    }

    /* Галерея тянется на всю высоту левой колонки — нет пустого места внизу.
       Изображение позиционируется абсолютно, чтобы не задавать высоту строки:
       высоту карточки определяет колонка с описанием, а картинка заполняет
       оставшееся место (object-fit: cover). */
    #cases .project-gallery {
        align-self: stretch;
        height: 100%;
    }

    #cases .project-gallery-viewport {
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
        overflow: hidden;
    }

    #cases .project-gallery-slide {
        position: relative;
        height: 100%;
    }

    #cases .project-gallery-slide picture {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    #cases .project-gallery-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Кейсы: одинаковая высота всех карточек. Базовый .project-card включает
   content-visibility:auto — карточки вне экрана не раскладываются, и flex не
   выравнивает их по высоте (каждая подгоняется под высоту своего описания).
   Отключаем оптимизацию для карусели и убираем тень-«полоску» под карточкой. */
#cases .case-card {
    content-visibility: visible;
    contain: none;
    contain-intrinsic-size: auto;
    box-shadow: none;
}

/* Мобайл: карточки листаются свайпом — оставляем только подсказку, стрелки убираем */
@media (max-width: 768px) {
    #cases .cases-carousel-arrow,
    #cases .cases-carousel-controls {
        display: none;
    }

    #cases .cases-carousel-toolbar {
        justify-content: center;
    }

    /* Карточка строго по центру экрана: обёртка совпадает с контентом контейнера
       (отступ 20px по бокам даёт сам .container), карточка — во всю её ширину. */
    #cases .projects-home-wrapper {
        margin-inline: 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 16px;
        scroll-padding-inline: 0;
    }

    #cases .projects-home-grid {
        gap: 16px;
    }

    #cases .case-card {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        scroll-snap-align: center;
    }
}

/* ===========================================================
   Unified button hover effect (shine sweep + lift + glow)
   Mirrors the .btn-projects-all interaction across all CTAs.
   Placed last so it overrides per-button ripple ::before rules.
   =========================================================== */
.btn-primary,
.btn-header,
.dos-popup-btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

/* Diagonal shine that sweeps across on hover (behind the label) */
.btn-primary::before,
.btn-header::before,
.dos-popup-btn::before,
.btn-excursion-more::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
    transform: translateX(-120%);
    transition: transform 0.7s ease;
    pointer-events: none;
    z-index: -1;
}

.btn-primary:hover::before,
.btn-header:hover::before,
.dos-popup-btn:hover::before,
.btn-excursion-more:hover::before {
    width: auto;
    height: auto;
    transform: translateX(120%);
}

.btn-primary:hover,
.btn-header:hover,
.dos-popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(232, 167, 116, 0.5), 0 4px 10px rgba(0, 0, 0, 0.1);
    filter: brightness(1.05);
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
}

.btn-primary:active,
.btn-header:active,
.dos-popup-btn:active,
.btn-excursion-more:active {
    transform: translateY(0);
}

/* Outline CTA keeps its transparent fill but gains the same shine + glow */
.btn-excursion-more {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn-excursion-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(232, 167, 116, 0.45), 0 4px 10px rgba(0, 0, 0, 0.1);
    filter: brightness(1.05);
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary::before,
    .btn-header::before,
    .dos-popup-btn::before,
    .btn-excursion-more::before {
        transition: none;
    }
}

/* ===========================================================
   Uniform button typography — same medium weight & size on
   every CTA. !important is intentional: it overrides the mix
   of per-button sizes, #id selectors and responsive rules.
   =========================================================== */
.btn,
.btn-header,
.dos-popup-btn,
.dos-promo-cta,
.btn-project-request {
    font-size: 1rem !important;
    font-weight: 600 !important;
}

/* Header "Заказать звонок" — в 1.5 раза мельче общего размера */
.btn-header {
    font-size: 0.667rem !important;
}
