/* ===== SECTION TRANSITIONS ===== */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200, 169, 110, 0.08), transparent);
    z-index: 2;
    pointer-events: none;
}

.hero-overlay {
    background:
        linear-gradient(180deg, rgba(14, 17, 23, 0.55) 0%, rgba(14, 17, 23, 0.35) 50%, rgba(14, 17, 23, 0.65) 100%) !important;
}

.soft-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200, 169, 110, 0.12), transparent);
    z-index: 2;
    pointer-events: none;
}

/* ===== PARALLAX WRAPPER (Glass Premium) ===== */
.parallax-wrapper {
    position: relative;
    overflow: hidden;
    background: rgba(14, 17, 23, 0.7);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.parallax-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200, 169, 110, 0.12), transparent);
    z-index: 1;
    pointer-events: none;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/glavnaya_stranisa/paralax.png.webp') center center / auto 80% no-repeat;
    z-index: -1;
    opacity: 0.45;
    filter: brightness(0.8);
    will-change: transform;
}

.parallax-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(14, 17, 23, 0.9) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.parallax-wrapper .plan-section,
.parallax-wrapper .philosophy,
.parallax-wrapper .trust-bar,
.parallax-wrapper .audience-filter,
.parallax-wrapper .engineering-teaser {
    position: relative;
    z-index: 1;
}

/* ===== PHILOSOPHY (Glass Premium) ===== */
.philosophy {
    padding: 180px 0 120px;
    background: transparent;
    position: relative;
    scroll-margin-top: -100px;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.4;
}

.philosophy .section-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 64px;
    line-height: 1.2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 48px 36px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.philosophy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.philosophy-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(212, 168, 67, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.philosophy-card:hover::before {
    opacity: 1;
}

.philosophy-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-dark) 100%);
    border-radius: 16px;
    color: var(--bg-main);
}

.philosophy-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 16px;
    line-height: 1.4;
}

.philosophy-card p {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: rgba(var(--text-main-rgb), 0.7);
    line-height: 1.6;
    padding: 20px 24px 28px;
    margin: 0;
}

/* Philosophy card with image */
.philosophy-card-image {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.philosophy-card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.philosophy-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.philosophy-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    transition: background 0.4s ease;
}

.philosophy-card-title-overlay {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: rgba(var(--text-main-rgb), 0.9);
    line-height: 1.3;
    padding: 20px 20px;
    z-index: 2;
}

/* ===== TRUST BAR (Glass Premium) ===== */
.trust-bar {
    padding: 48px 0;
    background: transparent;
    position: relative;
}

.trust-bar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.trust-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: var(--glass-shadow);
}

.trust-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(200, 169, 110, 0.25);
    transform: translateY(-2px);
}

.trust-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ������ ��� ��������� (������ �����) */
.trust-card-quote {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #F0EEE5;
    margin-bottom: 8px;
    text-align: center;
    word-wrap: break-word;
}

/* ������� ������� ����� CSS, ��� ������ � HTML */
.trust-card-quote::before,
.trust-card-quote::after {
    display: none;
}



.trust-card-sub {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(240, 238, 229, 0.95);
    text-align: right;
    margin: 0;
    position: relative;
    padding-top: 10px;
}

.trust-card-sub::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 30px;
    height: 1px;
    background: rgba(240, 238, 229, 0.3);
}

.trust-card-number {
    font-family: 'Gilroy', sans-serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    color: #F0EEE5;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.trust-card-desc {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(240, 238, 229, 0.9);
    margin-bottom: 6px;
    word-wrap: break-word;
}

.trust-card-desc:last-child {
    margin-bottom: 0;
}

/* �������� � �������: ����� ������������� � ������� */
.trust-card:first-child {
    border-left: none;
    padding-left:0;
}

.trust-card:first-child .trust-card-content {
    text-align: left;
    width: 100%;
    padding-right: 8px;
}

/* �������� � ����� (pechat.png) � �������� �� ������, �������� ������� �������� */
/* ��������� - ����� */
.philosophy-card--estimate {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    min-height: 300px !important;
    padding: 24px !important;
    overflow: hidden !important;
}

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

.philosophy-estimate-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.philosophy-estimate-overlay {
    position: absolute;
    inset: 0;
    background: rgba(14,17,23,0.5);
    z-index: 2;
    pointer-events: none;
}

.philosophy-card--estimate .philosophy-card-title {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    margin: 0;
    text-align: center;
    width: 90%;
}

.philosophy-card--estimate p {
    position: relative;
    z-index: 3;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    margin-top: auto;
}

.philosophy-card--estimate .philosophy-card-text {
    margin-top: auto;
    position: relative;
    top: -24px;
}

.philosophy-card--estimate:first-child p {
    padding-top: 300px;
}

.philosophy-card--estimate:nth-child(2) p,
.philosophy-card--estimate:nth-child(3) p {
    padding-top: 200px;
}

.philosophy-card--estimate::after {
    content: '' !important;
    position: absolute !important;
    bottom: 50% !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    background: linear-gradient(to top, rgba(14,17,23,0.75) 0%, rgba(14,17,23,0) 100%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}



.trust-card:first-child .trust-card-content {
    text-align: left;
    width: 100%;
}

.trust-obligation {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(240, 238, 229, 0.65);
    margin-bottom: 6px;
}

.trust-card-title {
    font-family: 'Gilroy', sans-serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: #F0EEE5;
    margin-bottom: 6px;
    word-wrap: break-word;
}

.philosophy-card::after {
    display: none;
}

/* ������ ������� ��� ����������� �������� */
.philosophy .philosophy-card h3,
.philosophy-section .philosophy-card .philosophy-card-title {
    font-family: 'Gilroy', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
    color: #F0EEE5;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.philosophy .philosophy-card p,
.philosophy-section .philosophy-card > p {
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(240, 238, 229, 0.9);
    max-width: 34ch;
    margin: 0 auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .parallax-bg {
        display: none;
    }
    .parallax-wrapper {
        background: #0E1117;
        background-image:
            repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(200, 169, 110, 0.04) 30px, rgba(200, 169, 110, 0.04) 31px),
            repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(200, 169, 110, 0.04) 30px, rgba(200, 169, 110, 0.04) 31px);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .philosophy .philosophy-card p,
    .philosophy-section .philosophy-card > p {
        max-width: 100%;
    }
    
    .philosophy-card--estimate {
        min-height: auto !important;
    }
    
    .philosophy-estimate-img-wrapper {
        position: relative !important;
        height: 160px !important;
        width: auto !important;
        flex-shrink: 0;
        left: auto !important;
        right: auto !important;
        margin: -24px -24px 0 !important;
        border-radius: 20px 20px 0 0;
    }
    
    .philosophy-card--estimate .philosophy-card-title {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        text-align: center !important;
        margin-top: 16px !important;
        text-shadow: none !important;
        word-break: break-word;
    }
    
    .philosophy-card--estimate p {
        padding-top: 0 !important;
        margin: 12px 0 0 !important;
        text-shadow: none !important;
    }
    
    .philosophy-card--estimate .philosophy-card-text {
        margin-top: 31px !important;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-bar-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .philosophy .section-title {
        font-size: 26px;
    }

    .philosophy .philosophy-card h3,
    .philosophy-section .philosophy-card .philosophy-card-title {
        font-size: 20px;
    }
}

/* --- 480px and below --- */
@media (max-width: 480px) {
    .philosophy .section-title {
        font-size: 22px;
    }

    .philosophy .philosophy-card h3,
    .philosophy-section .philosophy-card .philosophy-card-title {
        font-size: 18px;
    }
    
    .hero .hero-title {
        font-size: 28px;
    }
    
    .hero .hero-subtitle {
        font-size: 15px;
    }
    
    .trust-card {
        padding: 20px 16px;
    }
    
    .trust-card-quote {
        font-size: 16px;
    }
    
    .trust-card-number {
        font-size: 22px;
    }
    
    .featured-project .featured-project-content h2 {
        font-size: 26px;
    }
    
    .soft-cta .section-title {
        font-size: 22px;
    }
}

/* --- Landscape on mobile --- */
@media (max-height: 480px) and (orientation: landscape) {
    .hero {
        min-height: 120vh;
    }
    
    .hero-title {
        font-size: 24px;
    }
}

/* ===== AUDIENCE FILTER (Glass Premium) ===== */
.audience-filter {
    padding: 100px 0;
    background: transparent;
    position: relative;
}

.filter-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto 48px;
    align-items: start;
}

.filter-side {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: var(--glass-shadow);
}

.filter-side-yes {
    border-color: rgba(200, 169, 110, 0.2);
}

.filter-side-no {
    opacity: 0.7;
}

.filter-side:hover {
    border-color: rgba(200, 169, 110, 0.4);
}

.filter-side-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 169, 110, 0.15);
    border-radius: 14px;
    color: var(--accent-gold);
}

.filter-icon-yes {
    background: rgba(200, 169, 110, 0.2);
}

.filter-icon-no {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.15);
}

.filter-icon svg {
    width: 28px;
    height: 28px;
}

.filter-side h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 0;
    letter-spacing: -0.5px;
}

.filter-side-no h3 {
    color: rgba(var(--text-main-rgb), 0.5);
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 17px;
    color: rgba(240, 238, 229, 0.9);
    transition: all 0.3s ease;
}

.filter-list li > span:last-child {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.5;
}

.filter-list li:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 168, 67, 0.2);
    transform: translateX(4px);
}

.filter-side-no .filter-list li:hover {
    border-color: rgba(231, 76, 60, 0.2);
}

.filter-list-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(200, 169, 110, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(200, 169, 110, 0.3);
}

.filter-side-no .filter-list-icon {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.filter-list-icon svg {
    width: 20px;
    height: 20px;
}

.filter-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 160px;
}

.filter-divider span {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: rgba(var(--text-main-rgb), 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.filter-cta .btn-outline {
    display: block;
    width: fit-content;
    margin: 0 auto;
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid rgba(212, 168, 67, 0.85);
    padding: 14px 32px;
    font-size: 15px;
}

.filter-cta .btn-outline:hover {
    background: rgba(212, 168, 67, 0.2);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(212, 168, 67, 0.25);
}

/* ===== ENGINEERING TEASER (Glass Premium) ===== */
.mobile-br {
    display: none;
}
.engineering-teaser {
    padding: 100px 0 40px;
    background: transparent;
    position: relative;
    text-align: center;
}

.engineering-teaser .section-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 56px;
    line-height:1.2;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.engineering-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 36px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.engineering-item {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
}

.engineering-item:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 169, 110, 0.4);
}

.engineering-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(200, 169, 110, 0.15);
}

.engineering-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.engineering-item-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(200, 169, 110, 0.3);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.engineering-item-nav:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #0E1117;
}

.engineering-item:hover .engineering-item-nav {
    opacity: 1;
}

.engineering-item-nav:hover {
    background: rgba(212, 168, 67, 0.8);
    border-color: #d4a843;
}

.engineering-item-nav.nav-prev {
    left: 8px;
}

.engineering-item-nav.nav-next {
    right: 8px;
}

.engineering-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 16px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

.engineering-caption {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    color: rgba(var(--text-main-rgb), 0.75);
    text-align: center;
    margin-bottom: 36px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
    .engineering-caption {
        font-size: 18px;
        text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
}



.engineering-teaser .btn-outline:hover {
    background: rgba(200, 169, 110, 0.1);
    border-color: var(--accent-gold);
    color: var(--text-main);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35), 0 0 25px rgba(212, 168, 67, 0.3);
}

/* ===== TIMELINE / GANTT ===== */
.timeline {
    padding: 100px 0;
    position: relative;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(200, 169, 110, 0.04) 30px, rgba(200, 169, 110, 0.04) 31px),
        repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(200, 169, 110, 0.04) 30px, rgba(200, 169, 110, 0.04) 31px);
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 169, 110, 0.2), transparent);
    z-index: 1;
}

.timeline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200, 169, 110, 0.12), transparent);
}

.timeline .section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 12px;
}

.timeline .section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.3;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.timeline .section-subtitle {
    font-size: 18px;
    color: rgba(240, 238, 229, 0.6);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

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

.timeline-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: rgba(240, 238, 229, 0.6);
    letter-spacing: 0.3px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
}

.legend-color--demo { background: #A58A5A; }
.legend-color--rough { background: #4A7A7A; }
.legend-color--engineering { background: #4E6E8A; }
.legend-color--finish { background: #708E6E; }
.legend-color--furniture { background: #9A8A72; }

.gantt-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    background: rgba(14, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    scrollbar-width: auto;
}
.gantt-scroll-wrap::-webkit-scrollbar {
    height: 10px;
}
.gantt-scroll-wrap::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 5px;
}
.gantt-scroll-wrap::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 5px;
}
.gantt-scroll-wrap::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

.timeline-table-wrap {
    max-width: 1560px;
}

.gantt-detailed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: fit-content;
}

.gantt-header-detailed,
.gantt-row-detailed {
    display: grid;
    grid-template-columns: 220px repeat(16, minmax(38px, 1fr));
    gap: 4px;
    align-items: center;
    margin-bottom: 0;
    font-size: 15px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gantt-header-detailed {
    background: rgba(255, 255, 255, 0.06);
    padding: 10px 0;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gantt-row-detailed:last-child {
    border-bottom: none;
}
.gantt-row-detailed:nth-child(even) {
    background: rgba(255,255,255,0.015);
    border-radius: 8px;
}

.gantt-header-detailed + .gantt-row-detailed {
    padding-top: 6px;
}

.gantt-week {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: rgba(var(--text-main-rgb), 0.5);
    padding: 4px 0;
    border-radius: 4px;
}
.gantt-week:nth-of-type(even) {
    background: rgba(255,255,255,0.04);
}
.gantt-week + .gantt-week {
    border-left: 1px solid rgba(255,255,255,0.05);
    padding-left: 4px;
}

.gantt-task-name {
    font-weight: 500;
    padding-left: 8px;
    padding-right: 12px;
    font-size: 15px;
    color: var(--text-main);
    border-right: 1px solid rgba(255,255,255,0.07);
}

.gantt-bar-detailed {
    padding: 10px 8px;
    border-radius: 12px;
    color: #fff;
    font-size: 13px;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    background: var(--accent-gold);
}

/* Gantt bar colors — matching legend */
.gantt-bar--demo { background: #A58A5A; }
.gantt-bar--rough { background: #4A7A7A; }
.gantt-bar--engineering { background: #4E6E8A; }
.gantt-bar--finish { background: #708E6E; }
.gantt-bar--furniture { background: #9A8A72; }

/* Gantt bar positions (grid-column spans) */
.gantt-bar--c2-4  { grid-column: 2 / 4; }
.gantt-bar--c2-6  { grid-column: 2 / 6; }
.gantt-bar--c3-5  { grid-column: 3 / 5; }
.gantt-bar--c5-8  { grid-column: 5 / 8; }
.gantt-bar--c6-10 { grid-column: 6 / 10; }
.gantt-bar--c7-11 { grid-column: 7 / 11; }
.gantt-bar--c9-13 { grid-column: 9 / 13; }
.gantt-bar--c11-14 { grid-column: 11 / 14; }
.gantt-bar--c12-15 { grid-column: 12 / 15; }
.gantt-bar--c14-16 { grid-column: 14 / 16; }
.gantt-bar--c15-17 { grid-column: 15 / 17; }
.gantt-bar--c16-18 { grid-column: 16 / 18; }
.gantt-bar--c17-18 { grid-column: 17 / 18; }

.timeline-note {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(14, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 14px;
    color: rgba(240, 238, 229, 0.7);
    line-height: 1.5;
    margin-top: 20px;
    width: fit-content;
    margin-inline: auto;
}

.timeline-note svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.timeline-cta {
    text-align: center;
    margin-top: 40px;
}

.timeline-small {
    font-size: 13px;
    color: rgba(240, 238, 229, 0.4);
    margin-top: 20px;
    letter-spacing: 0.2px;
}

/* ===== FEATURED PROJECT (Glass Premium) ===== */
.featured-project {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, #0E1117 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.featured-project::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #0E1117 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.featured-project-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(rgba(14,17,23,0.55), rgba(14,17,23,0.55)),
        url('../images/glavnaya_stranisa/collage-interiors.webp') center / cover no-repeat;
}

.featured-project-content {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 0 1 auto;
    align-self: center;
    padding: 60px 48px;
    border: 0.5px solid rgba(200, 169, 110, 0.06);
    border-radius: 16px;
    box-sizing: border-box;
}
.featured-project h2 {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    color: #F0EEE5;
    margin-bottom: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow:
        0 2px 20px rgba(0,0,0,0.95),
        0 8px 48px rgba(0,0,0,0.6);
}

.featured-project-teaser {
    font-family: 'Inter', sans-serif;
    font-size: clamp(18px, 2.2vw, 26px);
    color: #F0EEE5;
    margin-bottom: 48px;
    text-shadow:
        0 2px 20px rgba(0,0,0,0.95),
        0 6px 40px rgba(0,0,0,0.6);
}


/* ��������� �������� (btn--premium � styles.css) */

/* ������� */
@media (max-width: 768px) {
    .featured-project {
        min-height: 70vh;
    }
    .featured-project-content {
        padding: 32px 20px;
    }
    .featured-project h2 {
        font-size: 32px;
    }
    .featured-project-teaser {
    }
}

/* ===== SOFT CTA (Glass Premium) ===== */
.soft-cta {
    padding: 180px 0;
    position: relative;
    overflow: hidden;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(200, 169, 110, 0.04) 30px, rgba(200, 169, 110, 0.04) 31px),
        repeating-linear-gradient(-45deg, transparent, transparent 30px, rgba(200, 169, 110, 0.04) 30px, rgba(200, 169, 110, 0.04) 31px);
}

.soft-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 169, 110, 0.2), transparent);
    z-index: 1;
}

.soft-cta .container {
    position: relative;
    z-index: 2;
    text-align: center;
    width: fit-content;
}

.soft-cta-content {
    position: relative;
    padding: 80px 60px;
    border: 0.5px solid rgba(200, 169, 110, 0.06);
    border-radius: 16px;
    background: rgba(14, 17, 23, 0.92);
}
.soft-cta .section-title {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    text-shadow:
        0 2px 8px rgba(0,0,0,0.7),
        0 4px 20px rgba(0,0,0,0.35);
}

.soft-cta-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: rgba(240, 238, 229, 0.6);
    text-align: center;
    margin-bottom: 56px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.soft-cta-offer {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    color: rgba(240, 238, 229, 0.75);
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.soft-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    align-items: stretch; /* ����� ������ ���� ���������� ������ */
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    color: var(--text-main);
    box-shadow: var(--glass-shadow);
    min-width: 180px;
    text-align: center;
}

.cta-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.cta-btn:hover {
    background: rgba(200, 169, 110, 0.1);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* Telegram button */
.cta-telegram {
    border-color: rgba(240, 238, 229, 0.15);
    color: rgba(240, 238, 229, 0.85);
}

.cta-telegram::after {
    content: '→';
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s var(--transition-smooth);
}

.cta-telegram:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.cta-telegram:hover {
    border-color: rgba(240, 238, 229, 0.3);
    background: rgba(240, 238, 229, 0.04);
    color: rgba(240, 238, 229, 0.95);
}

/* MAX button */
.cta-max {
    border-color: rgba(240, 238, 229, 0.15);
    background: rgba(240, 238, 229, 0.03);
    color: rgba(240, 238, 229, 0.85);
}

.cta-max::after {
    content: '→';
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.3s var(--transition-smooth);
}

.cta-max:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.cta-max img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.cta-max:hover {
    border-color: rgba(240, 238, 229, 0.3);
    background: rgba(240, 238, 229, 0.06);
    color: rgba(240, 238, 229, 0.95);
}

.cta-max:hover img {
    opacity: 0.9;
}

/* Callback button */
.cta-callback {
    border-color: rgba(240, 238, 229, 0.15);
    color: rgba(240, 238, 229, 0.85);
}

.cta-callback:hover {
    border-color: rgba(240, 238, 229, 0.3);
    background: rgba(240, 238, 229, 0.04);
    color: rgba(240, 238, 229, 0.95);
}

.soft-cta-offer strong {
    color: var(--accent-gold);
    font-weight: 600;
}

.soft-cta-offer .modal-trigger {
    color: var(--accent-gold);
    cursor: pointer;
    border-bottom: 1px dotted rgba(200, 169, 110, 0.4);
    transition: border-color 0.2s ease;
}

.soft-cta-offer .modal-trigger:hover {
    border-bottom-color: var(--accent-gold);
}

/* ������� */
@media (max-width: 768px) {
    .soft-cta {
        padding: 80px 0;
    }
    .soft-cta-content {
        padding: 40px 24px;
    }
    .soft-cta .section-title {
        font-size: 26px;
    }
    .soft-cta-subtitle {
        font-size: 18px;
    }
    .soft-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* --- filter + engineering mobile --- */
@media (max-width: 1024px) {
    .engineering-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .filter-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .filter-side {
        padding: 28px 20px;
    }
    .filter-side h3 {
        font-size: 22px;
    }
    .filter-list li {
        padding: 14px 16px;
        font-size: 15px;
        gap: 12px;
    }
    .filter-divider {
        padding-top: 0;
        padding: 16px 0;
    }
}

@media (max-width: 768px) {
    .mobile-br {
        display: inline;
    }
    .engineering-teaser .btn--premium {
        font-size: 15px;
    }
    .engineering-item-nav {
        opacity: 1;
        width: 40px;
        height: 40px;
    }
    .engineering-item-nav svg {
        width: 20px;
        height: 20px;
    }
    .engineering-item-nav.nav-prev {
        left: 10px;
    }
    .engineering-item-nav.nav-next {
        right: 10px;
    }
}

@media (max-width: 600px) {
    .engineering-grid {
        grid-template-columns: 1fr;
    }
    .engineering-item {
        aspect-ratio: auto;
        max-width: 340px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .timeline { padding: 80px 0; }
    .timeline .section-label { font-size: 10px; letter-spacing: 2px; }
    .timeline .section-title { font-size: 24px; }
    .timeline .section-subtitle { font-size: 16px; margin-bottom: 36px; }
    .gantt-header-detailed,
    .gantt-row-detailed {
        font-size: 13px;
        grid-template-columns: 190px repeat(16, 32px);
        gap: 3px;
    }
    .gantt-week { font-size: 14px; padding: 3px 0; }
    .gantt-bar-detailed { font-size: 11px; padding: 6px 4px; }
    .gantt-task-name { font-size: 13px; }
    .gantt-scroll-wrap { overflow-x: scroll; }
    .timeline-note { border-radius: 16px; text-align: left; font-size: 13px; width: auto; margin-inline: 0; }
}

@media (max-width: 480px) {
    .timeline { padding: 60px 0; }
    .timeline .section-label { font-size: 9px; letter-spacing: 1.5px; }
    .timeline .section-title { font-size: 18px; }
    .timeline .section-subtitle { font-size: 15px; margin-bottom: 28px; }
    .gantt-task-name { font-size: 11px; min-width: 120px; }
    .gantt-week { font-size: 12px; width: 24px; }
    .gantt-header-detailed,
    .gantt-row-detailed { font-size: 11px; grid-template-columns: 120px repeat(16, 24px); gap: 3px; }
    .gantt-bar-detailed { font-size: 9px; padding: 5px 3px; }
    .gantt-scroll-wrap { padding: 12px; }
}

@media (max-width: 480px) {
    .filter-side {
        padding: 24px 16px;
    }
    .filter-side h3 {
        font-size: 20px;
    }
    .filter-list li {
        padding: 12px 14px;
        font-size: 14px;
        gap: 10px;
    }
    .filter-list-icon {
        width: 24px;
        height: 24px;
    }
    .filter-list-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* ===== SCROLL BUTTON ARROW ===== */
.btn-scroll {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-arrow {
    opacity: 0.7;
    transition: transform 0.3s var(--transition-smooth), opacity 0.3s ease;
}
.btn-scroll:hover .btn-arrow {
    transform: translateY(3px);
    opacity: 1;
}

/* Mobile: static gold borders without interaction */
@media (max-width: 1024px) {
    .philosophy-card {
        border-color: rgba(212, 168, 67, 0.25);
        transform: none;
    }
    .philosophy-card::before {
        opacity: 0.6;
    }
    .philosophy-card:hover {
        border-color: rgba(212, 168, 67, 0.25);
        transform: none;
        box-shadow: none;
    }
    .trust-card {
        border-color: rgba(200, 169, 110, 0.2);
    }
    .trust-card:hover {
        border-color: rgba(200, 169, 110, 0.2);
        transform: none;
    }
    .filter-side {
        border-color: rgba(200, 169, 110, 0.3);
    }
    .filter-side:hover {
        border-color: rgba(200, 169, 110, 0.3);
    }
    .engineering-item {
        border-color: rgba(200, 169, 110, 0.25);
    }
    .engineering-item:hover {
        border-color: rgba(200, 169, 110, 0.25);
    }
}
