/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Visually hidden - for screen readers only (SEO/accessibility) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #c4a035 #e8e4df;
}

/* Custom Scrollbar — Light pages */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #e8e4df;
}

::-webkit-scrollbar-thumb {
    background: #c4a035;
    border-radius: 4px;
    border: 1px solid #e8e4df;
}

::-webkit-scrollbar-thumb:hover {
    background: #b5922e;
}

::-webkit-scrollbar-thumb:active {
    background: #a38428;
}

body {
    font-family: 'Open Sans', sans-serif;
    /* Фигма «Landing Ton»: вариативный Open Sans Condensed (wdth 75).
       font-stretch наследуется — condensed включается один раз здесь. */
    font-stretch: condensed;
    font-weight: 300;
    line-height: 1.6;
    color: #000;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography */
.section-title {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 40px;
    color: inherit;
}

/* Hero Section — геометрия из фигмы «Landing Ton», фрейм 1440×980:
   nav left 120 / top 40 / gap 136, лого top 125 / right 168 / h 123,
   заголовок left 120 / top 300 / 32px, подзаголовок 18px одной строкой.
   Горизонталь — в %/vw от ширины, вертикаль — в vh (hero = 100vh = фрейм). */
.hero {
    background-color: #DBD5D2;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: clamp(24px, 4.1vh, 48px) 60px 0 8.33%;
    position: relative;
    z-index: 10;
}

/* Navigation */
.nav {
    flex-shrink: 0;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: clamp(48px, 9.45vw, 180px);
}

.nav-list a {
    text-decoration: none;
    color: #000;
    font-size: clamp(14px, 1.25vw, 24px);
    font-weight: 300;
    line-height: 1;
    transition: opacity 0.3s;
}

.nav-list a:hover {
    opacity: 0.7;
}

/* Logo */
.logo {
    position: absolute;
    top: 12.75vh;
    right: 11.67%;
    z-index: 10;
}

.logo img {
    height: clamp(76px, 12.55vh, 150px);
    width: auto;
}

/* Hero Content */
.hero-content {
    position: absolute;
    left: 8.33%;
    top: 29.5vh;
    z-index: 5;
    padding: 0;
}

.hero-text {
    max-width: none;
}

.hero-title {
    font-size: clamp(24px, 2.222vw, 40px);
    font-weight: 300;
    line-height: 1.34;
    margin-bottom: 20px;
    color: #000;
    letter-spacing: 0;
}

.hero-subtitle {
    font-size: clamp(14px, 1.25vw, 24px);
    font-weight: 300;
    line-height: 1.4;
    color: #000;
}

/* Hero Illustration */
.hero-illustration {
    position: absolute;
    bottom: 0%;
    left: 0%;
    width: 100%;
    max-width: 1910px;
    z-index: 1;
}

.hero-illustration img {
    width: 100%;
    height: auto;
    display: block;
}

/* Benefits Section (Block 13) — фигма: заголовок left 122/top 88,
   ряд иконок left 140 / top 193 / высота 79, тексты 18px через 41px */
.benefits {
    width: 100%;
    background: #DBD5D2;
    padding: 88px 0 100px;
    box-sizing: border-box;
}

.benefits-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(24px, 2.222vw, 40px);
    line-height: 1.34;
    color: #000000;
    margin: 0 0 0 8.47%;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0 24px;
    margin: 71px 0 0 9.72%;
    padding: 0;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.benefit-icon {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    height: clamp(56px, 5.49vw, 100px);
    margin-bottom: 41px;
}

.benefit-icon img {
    width: auto;
    height: 100%;
    max-width: 100%;
}

.benefit-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 1.25vw, 24px);
    line-height: 1.33;
    color: #000000;
    margin: 0;
    max-width: clamp(150px, 13.8vw, 265px);
}

/* Projects Section (Block 14) */
.projects {
    width: 100%;
    background: #84878C;
    overflow: hidden;
}

.projects-header {
    background: #DBD5D2;
    padding: 30px 8.264% 56px;
}

.projects-title {
    display: block;
    max-width: none;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(18px, 2.222vw, 40px);
    line-height: 1.34;
    color: #000000;
    margin: 0;
    box-sizing: border-box;
}

/* Project Row */
.project-row {
    position: relative;
    width: 100%;
    display: flex;
}

/* Project Images */
.project-image {
    width: 43.056%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #D9D9D9;
    flex-shrink: 0;
}

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

.project-row-1 .project-image img {
    object-position: left center;
}

/* Ховер-виджет Яндекс.Браузера («поиск по картинке») не должен вылазить
   на контентных изображениях: убираем pointer-события с самих <img> —
   клики/драг обрабатывают контейнеры и ссылки поверх, им это не мешает */
.hero-illustration img,
.project-image img,
.about-photo img,
.pricing-illustration img,
.contacts-logo img,
.dark-strip-item img,
.dark-gallery-item img,
.dark-project-hero-image img,
.dark-related-card img,
.dark-logo-link img {
    pointer-events: none;
}

/* Project Category Text */
.project-category {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 13.889vw;
    line-height: 0.71;
    color: #DBD5D2;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-wrap: break-word;
    min-width: 0;
    width: 100%;
    text-align: right;
}

/* Фигма: все строки прижаты вправо; в 3-м ряду у каждой строки свой отступ
   (КОММЕР -4.86vw, ЧЕСКИЕ -0.83vw, ПРОЕКТЫ -24.65vw от правого края) */
.project-category-1 {
    text-align: right;
}

/* Правка заказчицы: «ЧАСТНЫЕ» тем же кеглем, что «ДОМА», без растяжения,
   но сдвинута влево — левый край слова (~34vw) находит на фото,
   правый край не дотягивается до края экрана (как в референсе) */
.project-category-1 span {
    display: block;
}

.project-category-1 span:nth-child(1) {
    text-align: left;
    padding-left: 10vw;
}

.project-category-2 {
    text-align: right;
}

.project-category-3 {
    text-align: right;
}

.project-category-3 span {
    display: block;
}

.project-category-3 span:nth-child(1) { margin-right: 4.86vw; }
.project-category-3 span:nth-child(2) { margin-right: 0.83vw; }
.project-category-3 span:nth-child(3) { margin-right: 24.65vw; }

/* Project Category Links - Clickable Areas */
.project-category-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: baseline;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    cursor: pointer;
}

/* Position adjustments for each row - percentage-based.
   Заголовки сознательно наезжают на фото (правка заказчицы) */
.project-row-1 .project-category-link {
    left: 24%;
    z-index: 2;
}

.project-row-2 .project-category-link {
    left: 10%;
    right: 0;
    z-index: 2;
}

.project-row-3 .project-category-link {
    left: 14%;
    right: 0;
    z-index: 2;
}

/* Hover state - gentle color shift */
.project-category-link:hover .project-category {
    color: #FFFFFF;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Image zoom effect on hover */
.project-row:hover .project-image img {
    transform: scale(1.03);
}

/* Reviews Section (Block 10) */
.reviews {
    position: relative;
    width: 100%;
    height: 1095px;
    background: #E6E6E6;
    overflow: hidden;
}

.reviews-title {
    position: absolute;
    right: 120px;
    top: 150px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 43px;
    color: #000000;
    margin: 0;
}

.reviews-slider-container {
    position: absolute;
    left: 0;
    right: 0;
    top: 234px;
    height: 750px;
    display: flex;
    align-items: flex-start;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 32px;
    color: #31373F;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slider-btn:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.slider-btn-prev {
    left: 30px;
}

.slider-btn-next {
    right: 30px;
}

.reviews-slider {
    width: 100%;
    overflow: hidden;
    padding: 0 120px;
}

.reviews-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.review-card {
    flex-shrink: 0;
    width: 325px;
    background: #FFFFFF;
    padding: 25px;
    box-sizing: border-box;
}

.review-card-tall {
    min-height: 553px;
}

.review-card-short {
    min-height: 335px;
}

.review-card-extra-tall {
    min-height: 645px;
}

.review-card-mini {
    min-height: 291px;
}

.review-quote-box {
    width: 65px;
    height: 65px;
    background: #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.review-quote {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 96px;
    line-height: 36px;
    color: #31373F;
    margin-top: 30px;
}

.review-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 21px;
    color: #000000;
    margin: 0;
}

.review-text strong {
    font-weight: 500;
    display: block;
    margin-top: 15px;
}

/* About Section (Block 9) */
/* About (Block 9) — фигма: серый фон, текст 505px 18/24, фото 373px (3:4)
   вровень с текстом, контакт-бокс прижат к низу фото, без тёмной кнопки */
.about {
    width: 100%;
    background-color: #84878C;
    display: grid;
    /* 373px фото на фрейме 1440 = 31.1% от контентной ширины (1440 − 2×120) */
    grid-template-columns: 1fr 31.1%;
    grid-template-rows: auto auto 1fr;
    padding: 90px 8.333%;
    gap: 0 40px;
}

.about-title {
    grid-column: 1;
    grid-row: 1;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(24px, 2.222vw, 40px);
    line-height: 1.34;
    color: #000000;
    margin: 0 0 14px 0;
}

.about-text {
    grid-column: 1;
    grid-row: 2;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 1.25vw, 24px);
    line-height: 1.33;
    color: #131212;
    margin: 0;
    max-width: clamp(360px, 35.1vw, 680px);
}

.about-photo {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: start;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-contact {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    justify-self: start;
    min-width: min(42.4vw, 611px);
    padding: 28px 33px;
    background: #B5B1AF;
    display: block;
    margin-top: 60px;
}

.about-contact-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(14px, 1.25vw, 22px);
    line-height: 1.5;
    color: #000000;
    margin: 0 0 8px;
}

.about-phone {
    display: inline-block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(17px, 1.53vw, 26px);
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.about-phone:hover {
    opacity: 0.65;
}

.about-contact-text a {
    color: #000000;
    text-decoration: none;
}

.about-contact-text a:hover {
    text-decoration: underline;
}

/* Pricing Section (Block 11) */
.pricing {
    width: 100%;
    background: #526275;
    padding: 90px 8.333% 100px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "title  title  title"
        "illu   item1  item2"
        "item3  item4  item5"
        "add    add    add"
        "partners partners partners";
    gap: 60px 56px;
    color: #FFFFFF;
}

.pricing-illustration {
    grid-area: illu;
    max-width: 460px;
    align-self: start;
}

.pricing-illustration img {
    width: 100%;
    height: auto;
}

.pricing-title {
    grid-area: title;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 43px;
    color: #FFFFFF;
    margin: 0;
}

.pricing-item {
    color: #FFFFFF;
    max-width: 380px;
}

.pricing-item-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #FFFFFF;
    margin: 0 0 10px 0;
}

.pricing-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0 0 15px 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #FFFFFF;
}

.pricing-list li {
    margin-bottom: 2px;
    font-weight: 300;
}

.pricing-item-price {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #FFFFFF;
    margin: 0 0 5px 0;
}

.pricing-small {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
    color: #FFFFFF;
    opacity: 0.8;
    margin: 0;
}

.pricing-item-1 { grid-area: item1; }
.pricing-item-2 { grid-area: item2; }
.pricing-item-3 { grid-area: item3; }
.pricing-item-4 { grid-area: item4; }
.pricing-item-5 { grid-area: item5; }

.pricing-additional {
    grid-area: add;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    margin: 0;
}

.pricing-partners {
    grid-area: partners;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
}

.pricing-partner-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 24px 28px;
    /* Правка заказчицы: без рамки и пульса — только мягкая заливка
       (border:none обязателен — карточка это <button>, иначе UA-стиль outset) */
    border: none;
    background: rgba(132, 135, 140, 0.12);
    text-decoration: none;
    color: #FFFFFF;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Квадрат под логотип/фото партнёра */
.partner-square {
    flex: none;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(213, 208, 205, 0.12);
    border: 1px solid rgba(213, 208, 205, 0.3);
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 34px;
    letter-spacing: 2px;
    color: rgba(213, 208, 205, 0.8);
}

.partner-square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.partner-text {
    display: flex;
    flex-direction: column;
}

.pricing-partner-card--text-left .partner-text {
    text-align: right;
    align-items: flex-end;
}

.pricing-partner-card--text-right .partner-text {
    text-align: left;
    align-items: flex-start;
}

.pricing-partner-card:hover {
    background: rgba(132, 135, 140, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.partner-name {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.partner-detail {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.75;
}

/* ============================================
   PARTNER MODALS — Coming Soon
   ============================================ */

.partner-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease-out,
                visibility 0.35s,
                background 0.35s ease-out,
                backdrop-filter 0.35s ease-out;
    padding: 24px;
}

.partner-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.partner-modal {
    position: relative;
    background: linear-gradient(145deg, #3d4148 0%, #33363c 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 2px;
    max-width: 420px;
    width: 100%;
    padding: 48px 40px 40px;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.partner-modal-overlay.active .partner-modal {
    transform: translateY(0) scale(1);
}

/* Close button */
.partner-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    padding: 0;
}

.partner-modal-close svg {
    width: 16px;
    height: 16px;
}

.partner-modal-close:hover {
    color: #D4AF37;
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.08);
}

/* Icon */
.partner-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 28px;
    color: #D4AF37;
    opacity: 0.7;
}

.partner-modal-icon svg {
    width: 100%;
    height: 100%;
}

/* Title */
.partner-modal-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    margin: 0 0 20px;
}

/* Gold divider */
.partner-modal-divider {
    width: 40px;
    height: 1px;
    background: #D4AF37;
    margin: 0 auto 24px;
    opacity: 0.6;
}

/* Body text */
.partner-modal-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 28px;
}

/* Status indicator */
.partner-modal-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: rgba(212, 175, 55, 0.8);
    text-transform: uppercase;
}

.partner-modal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #D4AF37;
    animation: modal-dot-pulse 2s ease-in-out infinite;
}

@keyframes modal-dot-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .partner-modal {
        transition: none;
    }
    .partner-modal-overlay {
        transition: opacity 0.15s, visibility 0.15s;
    }
    .partner-modal-dot {
        animation: none;
        opacity: 1;
    }
}

/* Modal responsive */
@media (max-width: 480px) {
    .partner-modal-overlay {
        padding: 16px;
    }
    .partner-modal {
        padding: 40px 24px 32px;
    }
    .partner-modal-title {
        font-size: 18px;
        letter-spacing: 1.5px;
    }
    .partner-modal-text {
        font-size: 14px;
    }
    .partner-modal-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 24px;
    }
}

@media (max-width: 360px) {
    .partner-modal {
        padding: 36px 20px 28px;
    }
    .partner-modal-title {
        font-size: 16px;
        letter-spacing: 1px;
    }
    .partner-modal-text {
        font-size: 13px;
    }
    .partner-modal-status {
        font-size: 12px;
    }
}

/* Contacts Section (Block 12) */
.contacts {
    position: relative;
    width: 100%;
    min-height: 510px;
    padding-bottom: 84px;
    background: #B5B1AF;
}

/* Нижняя строка широкого подвала: навигация + копирайт.
   Правка заказчицы: низ строки — по нижней грани бежевого квадрата
   (top 61 + 387 = 448), копирайт — левым краем по левой грани квадрата */
.contacts-footer-row {
    position: absolute;
    left: 5%;
    right: 120px;
    top: 448px;
    transform: translateY(-100%);
    display: block;
    z-index: 2;
}

.contacts-nav {
    list-style: none;
    display: flex;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.contacts-nav a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contacts-nav a:hover {
    opacity: 0.7;
}

.contacts-copy {
    /* Правка заказчицы: копирайт ПОД квадратом, по его правому краю
       (правый край строки футера = правая грань квадрата) */
    position: absolute;
    right: 0;
    top: calc(100% + 14px);
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: #000000;
    margin: 0;
}

.contacts-logo {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.contacts-logo img {
    width: 450px;
    height: auto;
    /* Фигма: вотермарк светлый — белые тонкие линии на бежевом */
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.contacts-box {
    position: absolute;
    width: 387px;
    height: 387px;
    right: 120px;
    top: 61px;
    background: #DBD5D2;
}

/* Правка заказчицы: текст немного левее и ровным левым краем —
   заголовок и строки анкорятся на 40px от левой грани квадрата
   (грань на 507px от правого края: right 120 + width 387) */
.contacts-title {
    position: absolute;
    left: calc(100% - 467px);
    top: 116px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 43px;
    color: #000000;
    margin: 0;
}

.contacts-info {
    position: absolute;
    left: calc(100% - 467px);
    top: 213px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 28px;
    color: #000000;
    margin: 0;
    text-align: left;
}

.contacts-info a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contacts-info a:hover {
    opacity: 0.7;
}

.contacts-social {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.contacts-social svg {
    width: 20px;
    height: 20px;
    fill: #000000;
}

/* Footer */
.footer {
    background: #31373F;
    padding: 30px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ============================================
   PROJECT CATEGORY PAGES STYLES
   ============================================ */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 34px 60px 34px 100px;
    background: #D5D0CD;
    position: relative;
    z-index: 10;
}

.page-header .logo {
    position: relative;
    right: auto;
    top: auto;
}

.page-header .logo img {
    height: 80px;
    width: auto;
    transition: opacity 0.3s;
}

.page-header .logo:hover img {
    opacity: 0.8;
}

/* Category Hero Section */
.category-hero {
    background: #84878C;
    padding: 80px 120px 100px;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
}

.category-hero-private-houses {
    background: linear-gradient(135deg, #84878C 0%, #6B7280 100%);
}

.category-hero-residential-interiors {
    background: linear-gradient(135deg, #84878C 0%, #526275 100%);
}

.category-hero-commercial {
    background: linear-gradient(135deg, #526275 0%, #31373F 100%);
}

.category-hero-content {
    max-width: 800px;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #DBD5D2;
    text-decoration: none;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #FFFFFF;
}

.back-link .back-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.back-link:hover .back-arrow {
    transform: translateX(-5px);
}

/* Category Hero Title */
.category-hero-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 72px;
    line-height: 1.1;
    color: #DBD5D2;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

.category-hero-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: 1.7;
    color: #FFFFFF;
    margin: 0;
    max-width: 600px;
}

/* Projects Grid Section */
.projects-grid-section {
    background: #E6E6E6;
    padding: 80px 120px;
    min-height: 600px;
}

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

/* Project Card */
.project-card {
    background: #FFFFFF;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.project-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card-image img {
    transform: scale(1.08);
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(49, 55, 63, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.project-card:hover .project-card-overlay {
    background: rgba(49, 55, 63, 0.4);
}

.project-card-view {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    padding: 12px 24px;
    border: 1px solid #FFFFFF;
}

.project-card:hover .project-card-view {
    opacity: 1;
    transform: translateY(0);
}

.project-card-content {
    padding: 30px;
}

.project-card-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.3;
    color: #000000;
    margin: 0 0 12px 0;
}

.project-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.project-card-area,
.project-card-year {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #84878C;
}

.project-card-divider {
    color: #D5D0CD;
}

.project-card-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    color: #31373F;
    margin: 0;
}

/* Projects Empty State */
.projects-empty {
    text-align: center;
    padding: 100px 40px;
}

.projects-empty p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #84878C;
}

/* Projects CTA Section */
.projects-cta {
    background: #B5B1AF;
    padding: 100px 120px;
}

.projects-cta-content {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.projects-cta-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.3;
    color: #000000;
    margin: 0 0 20px 0;
}

.projects-cta-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 17px;
    line-height: 1.6;
    color: #31373F;
    margin: 0 0 40px 0;
}

.projects-cta-phone {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 28px;
    color: #000000;
    text-decoration: none;
    margin-bottom: 25px;
    transition: opacity 0.3s;
}

.projects-cta-phone:hover {
    opacity: 0.7;
}

.projects-cta-telegram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #31373F;
    text-decoration: none;
    padding: 14px 28px;
    border: 1px solid #31373F;
    transition: all 0.3s ease;
}

.projects-cta-telegram:hover {
    background: #31373F;
    color: #FFFFFF;
}

.projects-cta-telegram svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive Styles for Project Pages */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .category-hero-title {
        font-size: 56px;
    }
}

@media (max-width: 900px) {
    .page-header {
        padding: 20px 30px;
    }

    .page-header .logo img {
        height: 60px;
    }

    .category-hero {
        padding: 60px 40px 80px;
        min-height: 300px;
    }

    .category-hero-title {
        font-size: 42px;
    }

    .category-hero-description {
        font-size: 16px;
    }

    .projects-grid-section {
        padding: 60px 40px;
    }

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

    .projects-cta {
        padding: 60px 40px;
    }

    .projects-cta-title {
        font-size: 26px;
    }

    .projects-cta-phone {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .page-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
    }

    .page-header .nav-list {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .category-hero {
        padding: 40px 20px 60px;
    }

    .category-hero-title {
        font-size: 32px;
    }

    .back-link {
        margin-bottom: 25px;
    }

    .projects-grid-section {
        padding: 40px 20px;
    }

    .project-card-image {
        height: 220px;
    }

    .project-card-content {
        padding: 20px;
    }

    .projects-cta {
        padding: 50px 20px;
    }
}

/* ============================================
   CONTACT WIDGET & SCROLL TO TOP
   ============================================ */

/* Contact Widget */
.contact-widget {
    position: fixed;
    /* Правка клиента: приподнят, чтобы не садился на меню футера */
    bottom: 100px;
    left: 30px;
    z-index: 1000;
}

.contact-widget-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #526275;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0 4px 20px rgba(82, 98, 117, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.contact-widget-btn:hover {
    background: #31373F;
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(49, 55, 63, 0.5);
}

.contact-widget-btn svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.contact-widget-btn .contact-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

.contact-widget.active .contact-widget-btn .contact-icon-default {
    opacity: 0;
    transform: rotate(90deg);
}

.contact-widget.active .contact-widget-btn .contact-icon-close {
    opacity: 1;
    transform: rotate(0);
}

.contact-widget-menu {
    position: absolute;
    bottom: 70px;
    left: 0;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.contact-widget.active .contact-widget-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-widget-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #31373F;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 15px;
    transition: all 0.2s ease;
}

.contact-widget-item:hover {
    background: #F5F5F5;
    color: #526275;
}

.contact-widget-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #D5D0CD;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #31373F;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #B5B1AF;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.scroll-to-top svg {
    width: 28px;
    height: 28px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .contact-widget {
        bottom: 20px;
        left: 20px;
    }

    .contact-widget-btn {
        width: 50px;
        height: 50px;
    }

    .contact-widget-btn svg {
        width: 22px;
        height: 22px;
    }

    .contact-widget-menu {
        min-width: 160px;
    }

    .contact-widget-item {
        padding: 12px 16px;
        font-size: 14px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .scroll-to-top svg {
        width: 24px;
        height: 24px;
    }
}

/* ============================================
   RESPONSIVE STYLES FOR MAIN PAGE SECTIONS
   ============================================ */

/* Benefits Section - Responsive */
@media (max-width: 1200px) {
    .benefits-grid {
        gap: 24px;
    }

    .benefit-text {
        max-width: 220px;
    }
}

@media (max-width: 1000px) {
    .benefits {
        padding: 50px 30px 70px;
    }

    .benefits-title {
        margin: 0;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 30px;
        margin: 40px 0 0;
        padding: 0;
    }

    .benefit-text {
        max-width: 260px;
    }
}

/* Мобила: 2 компактные колонки вместо длинного столбца — секция вдвое короче */
@media (max-width: 600px) {
    .benefits {
        padding: 40px 20px 48px;
    }

    .benefits-title {
        font-size: 24px;
        line-height: 1.3;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 18px;
        margin: 30px 0 0;
    }

    .benefit-icon {
        height: 52px;
        margin-bottom: 12px;
    }

    .benefit-icon img {
        height: 100%;
    }

    .benefit-text {
        font-size: 14px;
        line-height: 20px;
        max-width: none;
    }
}

@media (max-width: 400px) {
    .benefits {
        padding: 32px 16px 40px;
    }

    .benefits-title {
        font-size: 22px;
    }

    .benefits-grid {
        gap: 24px 14px;
        margin-top: 26px;
    }

    .benefit-icon {
        height: 48px;
        margin-bottom: 10px;
    }

    .benefit-icon img {
        height: 100%;
    }

    .benefit-text {
        font-size: 13px;
        line-height: 19px;
        max-width: none;
    }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .benefits {
        padding: 24px 12px 40px;
    }

    .benefits-title {
        font-size: 20px;
        line-height: 1.25;
        margin-bottom: 30px;
    }

    .benefits-grid {
        gap: 28px;
    }

    .benefit-icon {
        height: 56px;
        margin-bottom: 14px;
    }

    .benefit-icon img {
        height: 48px;
    }

    .benefit-text {
        font-size: 14px;
        line-height: 21px;
        max-width: 240px;
    }
}

/* ============================================
   BURGER MENU (hidden on desktop, visible on mobile)
   ============================================ */

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.burger-line {
    display: block;
    width: 28px;
    height: 2px;
    background: #000;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.2s ease;
}

.burger-line:nth-child(1) {
    transform: translateY(-5px);
}

.burger-line:nth-child(3) {
    transform: translateY(5px);
}

/* Burger open state — X */
.burger.active .burger-line:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}

.burger.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(213, 208, 205, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                visibility 0.4s;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

/* Close button inside mobile menu */
.mobile-menu-close {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close span {
    position: absolute;
    display: block;
    width: 28px;
    height: 2px;
    background: #000;
}

.mobile-menu-close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-menu-nav {
    text-align: center;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 48px 0;
}

.mobile-menu-list li {
    margin-bottom: 8px;
}

.mobile-menu-list a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.4;
    text-decoration: none;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    position: relative;
    transition: color 0.25s ease;
}

.mobile-menu-list a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: #000;
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mobile-menu-list a:hover::after {
    width: 100%;
}

.mobile-menu-list a:hover {
    color: #526275;
}

/* Staggered animation for menu items */
.mobile-menu.active .mobile-menu-list li {
    animation: menuItemSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.mobile-menu.active .mobile-menu-list li:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu.active .mobile-menu-list li:nth-child(2) { animation-delay: 0.14s; }
.mobile-menu.active .mobile-menu-list li:nth-child(3) { animation-delay: 0.20s; }
.mobile-menu.active .mobile-menu-list li:nth-child(4) { animation-delay: 0.26s; }

.mobile-menu.active .mobile-menu-contact {
    animation: menuItemSlide 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.34s;
}

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

/* Contact block inside mobile menu */
.mobile-menu-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mobile-menu-phone {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: #000;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.25s ease;
}

.mobile-menu-phone:hover {
    color: #526275;
}

.mobile-menu-tg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #526275;
    text-decoration: none;
    transition: color 0.25s ease;
}

.mobile-menu-tg svg {
    width: 22px;
    height: 22px;
}

.mobile-menu-tg:hover {
    color: #000;
}

/* Prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

/* ============================================
   HEADER & HERO - RESPONSIVE
   ============================================ */

/* ≥900px раскладка hero полностью флюидная (vw/vh от фигмы 1440×980) —
   отдельные брейкпоинты нужны только для планшета/мобилки */

/* Small tablet / large mobile */
@media (max-width: 900px) {
    .nav-list {
        gap: 32px;
    }

    .logo {
        top: 9vh;
        right: 24px;
    }

    .hero-text {
        max-width: 84vw;
    }
}

/* Mobile — burger activated */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav {
        display: none;
    }

    .header {
        padding: 20px 20px 0;
        align-items: center;
    }

    /* Лого возвращается в поток шапки (бургер слева, лого справа) */
    .logo {
        position: static;
    }

    .logo img {
        height: 60px;
    }

    .hero-content {
        left: 20px;
        top: 24vh;
    }

    .hero-title {
        margin-bottom: 12px;
    }

    .hero-text {
        max-width: 88vw;
    }

    .hero {
        min-height: 100svh;
    }
}

/* Small mobile */
@media (max-width: 550px) {
    .header {
        padding: 16px 16px 0;
    }

    .logo img {
        height: 52px;
    }

    .hero-content {
        left: 16px;
    }
    .hero-illustration {
        scale: 2.4;
        bottom: 13%;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
        line-height: 21px;
    }

    .hero-text {
        max-width: 75%;
    }

    .mobile-menu-list a {
        font-size: 32px;
    }

    .mobile-menu-close {
        top: 16px;
        left: 16px;
    }
}

/* Extra small */
@media (max-width: 400px) {
    .header {
        padding: 14px 14px 0;
    }

    .logo img {
        height: 46px;
    }

    .hero-content {
        left: 14px;
    }

    .hero-title {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 13px;
        line-height: 20px;
    }

    .mobile-menu-list a {
        font-size: 28px;
        letter-spacing: 1px;
    }

    .mobile-menu-phone {
        font-size: 18px;
    }

    .mobile-menu-tg {
        font-size: 15px;
    }

    .mobile-menu-close {
        top: 14px;
        left: 14px;
    }
}

@media (max-width: 320px) {
    .header {
        padding: 12px 12px 0;
    }

    .logo img {
        height: 40px;
    }

    .hero-content {
        padding: 32px 0 0 12px;
    }

    .hero-title {
        font-size: 20px;
    }

    .hero-subtitle {
        font-size: 13px;
        line-height: 19px;
    }

    .hero-text {
        max-width: 80%;
    }

    .mobile-menu-list a {
        font-size: 24px;
    }

    .mobile-menu-phone {
        font-size: 16px;
    }

    .mobile-menu-close {
        top: 12px;
        left: 12px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .burger-line {
        transition: none;
    }

    .mobile-menu {
        transition: none;
    }

    .mobile-menu.active .mobile-menu-list li,
    .mobile-menu.active .mobile-menu-contact {
        animation: none;
    }
}

/* Projects Section - Responsive */

/* Mobile layout - stacked */
@media (max-width: 900px) {
    .projects-header {
        padding: 20px 24px;
    }

    .projects-title {
        font-size: 24px;
        line-height: 1.35;
        max-width: 100%;
    }

    .project-row {
        flex-direction: column;
    }

    .project-image {
        width: 100%;
        aspect-ratio: 16 / 10;
    }

    .project-category-link {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        display: block;
        padding: 24px 30px;
    }

    .project-category {
        font-size: clamp(28px, 7vw, 56px);
        line-height: 1.1;
        text-align: center !important;
    }

    /* На мобиле разбитые строки снова в одну, без растяжений
       (!important — базовые правила со span:nth-child специфичнее) */
    .project-category-1 span,
    .project-category-3 span {
        display: inline !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: inherit !important;
        line-height: inherit !important;
        text-align: inherit !important;
        transform: none !important;
    }

    .project-category-1 span:nth-child(2)::before,
    .project-category-3 span:nth-child(3)::before {
        content: "\00a0";
    }
}

@media (max-width: 550px) {
    .projects-header {
        padding: 16px 20px;
    }

    .projects-title {
        font-size: 20px;
        line-height: 1.4;
        padding: 8px 10px;
    }

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

    .project-category-link {
        padding: 20px;
    }

    .project-category {
        font-size: clamp(22px, 7vw, 36px);
    }
}

@media (max-width: 400px) {
    .projects-header {
        padding: 14px 16px;
    }

    .projects-title {
        font-size: 18px;
        line-height: 1.4;
    }

    .project-category-link {
        padding: 16px;
    }

    .project-category {
        font-size: clamp(20px, 7vw, 28px);
    }
}

@media (max-width: 320px) {
    .projects-header {
        padding: 12px;
    }

    .projects-title {
        font-size: 16px;
        line-height: 1.4;
        padding: 6px 8px;
    }

    .project-category-link {
        padding: 12px;
    }

    .project-category {
        font-size: clamp(18px, 6.5vw, 22px);
    }
}

/* About Section - Responsive */
@media (max-width: 900px) {
    .about {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        padding: 60px 30px;
        gap: 30px;
    }

    .about-title {
        grid-column: 1;
        font-size: 28px;
    }

    .about-text {
        grid-column: 1;
        font-size: 16px;
        line-height: 26px;
    }

    .about-photo {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0;
        max-width: 500px;
        width: 100%;
    }

    .about-contact {
        grid-column: 1;
        grid-row: auto;
        min-width: 0;
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 550px) {
    .about {
        padding: 40px 20px;
        gap: 24px;
    }

    .about-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 0;
    }

    .about-text {
        font-size: 15px;
        line-height: 24px;
    }

    .about-contact {
        padding: 24px 20px;
    }

    .about-contact-text {
        font-size: 15px;
        line-height: 28px;
    }

    .about-phone {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .about {
        padding: 32px 16px;
        gap: 20px;
    }

    .about-title {
        font-size: 22px;
    }

    .about-text {
        font-size: 14px;
        line-height: 22px;
    }

    .about-contact {
        padding: 20px 16px;
    }

    .about-contact-text {
        font-size: 14px;
        line-height: 24px;
    }

    .about-phone {
        font-size: 17px;
    }
}

@media (max-width: 320px) {
    .about {
        padding: 24px 12px;
        gap: 16px;
    }

    .about-title {
        font-size: 20px;
        line-height: 1.25;
    }

    .about-text {
        font-size: 14px;
        line-height: 21px;
    }

    .about-contact {
        padding: 16px 12px;
    }

    .about-phone {
        font-size: 16px;
    }

    .about-contact-text {
        font-size: 13px;
        line-height: 22px;
    }
}

/* ============================================
   REVIEWS SECTION - RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .reviews {
        height: auto;
        padding: 60px 0 40px;
    }

    .reviews-title {
        position: relative;
        right: auto;
        top: auto;
        padding: 0 60px;
        margin-bottom: 40px;
    }

    .reviews-slider-container {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        height: auto;
    }

    .reviews-slider {
        padding: 0 60px;
    }

    .reviews-track {
        align-items: flex-start;
    }

    .review-card-tall,
    .review-card-short,
    .review-card-extra-tall,
    .review-card-mini {
        height: auto;
    }
}

@media (max-width: 768px) {
    .reviews {
        padding: 48px 0 32px;
    }

    .reviews-title {
        padding: 0 24px;
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 30px;
    }

    .reviews-slider {
        padding: 0 16px;
    }

    .reviews-track {
        gap: 16px;
    }

    .review-card {
        width: 280px;
        padding: 20px;
    }

    .review-quote-box {
        width: 50px;
        height: 50px;
        margin-bottom: 16px;
    }

    .review-quote {
        font-size: 72px;
        margin-top: 24px;
    }

    .review-text {
        font-size: 15px;
        line-height: 22px;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 26px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }

    .slider-btn-prev {
        left: 4px;
    }

    .slider-btn-next {
        right: 4px;
    }
}

@media (max-width: 550px) {
    .reviews {
        padding: 36px 0 24px;
    }

    .reviews-title {
        padding: 0 20px;
        font-size: 22px;
        margin-bottom: 24px;
    }

    .reviews-track {
        gap: 14px;
    }

    .review-card {
        width: clamp(220px, calc(100vw - 80px), 300px);
        padding: 18px;
    }

    .review-text {
        font-size: 14px;
        line-height: 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

@media (max-width: 400px) {
    .reviews {
        padding: 32px 0 20px;
    }

    .reviews-title {
        font-size: 20px;
        padding: 0 16px;
        margin-bottom: 20px;
    }

    .reviews-slider {
        padding: 0 12px;
    }

    .reviews-track {
        gap: 12px;
    }

    .review-quote-box {
        width: 44px;
        height: 44px;
        margin-bottom: 12px;
    }

    .review-quote {
        font-size: 56px;
        margin-top: 18px;
    }

    .review-text {
        font-size: 13px;
        line-height: 19px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .slider-btn-prev {
        left: 2px;
    }

    .slider-btn-next {
        right: 2px;
    }
}

@media (max-width: 320px) {
    .reviews-title {
        font-size: 18px;
        padding: 0 12px;
    }

    .reviews-slider {
        padding: 0 8px;
    }

    .review-card {
        width: calc(100vw - 48px);
        padding: 14px;
    }

    .review-text {
        font-size: 13px;
        line-height: 18px;
    }

    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
}

/* ============================================
   PRICING SECTION - RESPONSIVE
   ============================================ */

/* Laptop / fluid scaling down to 1100px */
@media (max-width: 1600px) {
    .pricing {
        gap: 48px 40px;
    }

    .pricing-title {
        font-size: 28px;
    }

    .pricing-item-title,
    .pricing-list {
        font-size: 15px;
        line-height: 20px;
    }

    .pricing-item-price {
        font-size: 15px;
    }

    .pricing-small {
        font-size: 14px;
        line-height: 19px;
    }

    .pricing-additional {
        font-size: 15px;
    }

    .pricing-partner-card {
        padding: 20px 22px;
        gap: 20px;
    }

    .partner-square {
        width: 96px;
        height: 96px;
        font-size: 28px;
    }
}

@media (max-width: 1100px) {
    .pricing {
        position: relative;
        height: auto;
        padding: 60px 40px 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .pricing-illustration {
        position: relative;
        left: auto;
        top: auto;
        width: 320px;
        max-width: 100%;
        margin: 0 auto 40px;
    }

    .pricing-title {
        position: relative;
        left: auto;
        top: auto;
        text-align: center;
        margin-bottom: 40px;
    }

    .pricing-item {
        position: relative;
        left: auto !important;
        top: auto !important;
        width: 100%;
        max-width: 600px;
        margin-bottom: 36px;
        text-align: center;
    }

    .pricing-item-title {
        font-size: 16px;
        line-height: 21px;
    }

    .pricing-list {
        display: inline-block;
        text-align: left;
        font-size: 16px;
        line-height: 21px;
    }

    .pricing-item-price {
        font-size: 16px;
    }

    .pricing-small {
        font-size: 16px;
        line-height: 21px;
    }

    .pricing-item-4 {
        width: 100%;
        max-width: 600px;
    }

    .pricing-additional {
        position: relative;
        left: auto;
        top: auto;
        text-align: center;
        font-size: 16px;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .pricing-partners {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .pricing-partner-card {
        width: min(480px, 100%);
        padding: 24px 28px;
    }
}

@media (max-width: 768px) {
    .pricing {
        padding: 48px 24px;
    }

    .pricing-illustration {
        width: min(400px, 84vw);
        margin-bottom: 32px;
    }

    .pricing-title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .pricing-item {
        margin-bottom: 32px;
    }

    .pricing-item-title {
        font-size: 15px;
    }

    .pricing-list {
        font-size: 15px;
    }

    .pricing-item-price {
        font-size: 15px;
    }

    .pricing-small {
        font-size: 14px;
    }

    .pricing-additional {
        font-size: 15px;
        line-height: 22px;
    }

    .pricing-additional br {
        display: none;
    }

    .pricing-partners {
        gap: 16px;
    }

    .pricing-partner-card {
        padding: 20px 22px;
        gap: 20px;
    }

    .partner-square {
        width: 96px;
        height: 96px;
        font-size: 28px;
    }

    .partner-name {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .partner-detail {
        font-size: 14px;
    }
}

@media (max-width: 550px) {
    .pricing {
        padding: 40px 20px;
    }

    .pricing-illustration {
        width: 86vw;
        max-width: 380px;
    }

    .pricing-title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .pricing-item-title {
        font-size: 15px;
    }

    .pricing-item-title br {
        display: none;
    }

    .pricing-small br {
        display: none;
    }

    .pricing-item-price br {
        display: none;
    }

    .pricing-partners {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .pricing-partner-card {
        width: 100%;
        max-width: 300px;
        padding: 24px 20px;
    }
}

@media (max-width: 400px) {
    .pricing {
        padding: 32px 16px;
    }

    .pricing-illustration {
        width: 88vw;
    }

    .pricing-title {
        font-size: 22px;
    }

    .pricing-item-title {
        font-size: 14px;
    }

    .pricing-list {
        font-size: 14px;
    }

    .pricing-item-price {
        font-size: 14px;
    }

    .pricing-small {
        font-size: 13px;
    }

    .pricing-additional {
        font-size: 14px;
    }

    .partner-name {
        font-size: 14px;
    }

    .partner-detail {
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .pricing {
        padding: 24px 12px;
    }

    .pricing-title {
        font-size: 20px;
    }

    .pricing-illustration {
        width: 88vw;
    }
}

/* ============================================
   CONTACTS SECTION - RESPONSIVE
   ============================================ */

@media (max-width: 1100px) {
    .contacts {
        position: relative;
        height: auto;
        padding: 60px 40px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .contacts-logo {
        position: absolute;
        left: 40px;
        top: 50%;
        transform: translateY(-50%);
    }

    .contacts-logo img {
        width: 220px;
    }

    .contacts-box {
        position: absolute;
        width: 300px;
        height: 230px;
        right: 40px;
        top: 30px;
    }

    .contacts-title {
        position: relative;
        left: auto;
        right: 50px;
        top: auto;
        margin-bottom: 24px;
        z-index: 1;
    }

    .contacts-info {
        position: relative;
        left: auto;
        right: 40px;
        top: auto;
        z-index: 1;
    }

    /* На планшете нижняя строка возвращается к прежнему поведению */
    .contacts-footer-row {
        top: auto;
        bottom: 24px;
        right: 110px;
        transform: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .contacts-copy {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }
}

/* Мобила: контакты грид-стеком — лого в потоке, бокс растягивается ровно
   под заголовок и инфо (те же ячейки грида), ничего ни на что не наезжает */
@media (max-width: 768px) {
    .contacts {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        align-content: start;
        min-height: 0;
        padding: 56px 24px 96px;
    }

    .contacts-logo {
        position: static;
        transform: none;
        margin: 0 0 22px;
    }

    .contacts-logo img {
        width: 160px;
        opacity: 0.55;
    }

    .contacts-box {
        position: static;
        grid-row: 2 / 4;
        grid-column: 1;
        width: min(320px, 88vw);
        height: auto;
        align-self: stretch;
        margin: 0;
        transform: none;
        opacity: 0.6;
    }

    .contacts-title {
        position: static;
        grid-row: 2;
        grid-column: 1;
        margin: 44px 0 20px;
        font-size: 30px;
        line-height: 1.3;
        text-align: center;
    }

    .contacts-info {
        position: static;
        grid-row: 3;
        grid-column: 1;
        margin: 0 0 48px;
        text-align: center;
        font-size: 16px;
        line-height: 32px;
    }

    .contacts-social {
        justify-content: center;
        margin-top: 8px;
    }

    /* Нижняя строка футера: в поток, столбиком по центру — не пересекается
       с плавающими кнопками (звонок слева, «наверх» справа) */
    .contacts-footer-row {
        position: static;
        grid-row: 4;
        grid-column: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 36px;
        width: 100%;
        transform: none;
    }

    .contacts-nav {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .contacts-nav a {
        font-size: 14px;
    }

    .contacts-copy {
        position: static;
        left: auto;
        bottom: auto;
        font-size: 13px;
    }
}

@media (max-width: 550px) {
    .contacts {
        padding: 48px 20px;
    }

    .contacts-logo {
        margin-bottom: 18px;
    }

    .contacts-logo img {
        width: 130px;
    }

    .contacts-box {
        width: min(280px, 90vw);
        opacity: 0.5;
    }

    .contacts-title {
        font-size: 26px;
        margin: 36px 0 16px;
    }

    .contacts-info {
        font-size: 15px;
        line-height: 30px;
    }
}

@media (max-width: 400px) {
    .contacts {
        padding: 40px 16px;
    }

    .contacts-logo {
        margin-bottom: 16px;
    }

    .contacts-logo img {
        width: 110px;
    }

    .contacts-box {
        width: min(240px, 92vw);
        opacity: 0.45;
    }

    .contacts-title {
        font-size: 24px;
        margin: 30px 0 14px;
    }

    .contacts-info {
        font-size: 14px;
        line-height: 28px;
    }

    .contacts-nav {
        gap: 14px;
    }
}

@media (max-width: 320px) {
    .contacts {
        padding: 32px 12px;
    }

    .contacts-logo img {
        width: 90px;
    }

    .contacts-box {
        width: min(200px, 94vw);
        opacity: 0.4;
    }

    .contacts-title {
        font-size: 22px;
    }

    .contacts-info {
        font-size: 13px;
        line-height: 26px;
    }
}

/* ============================================
   FOOTER - RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .footer-content {
        padding: 0 24px;
    }
}

@media (max-width: 550px) {
    .footer {
        padding: 24px 0;
    }

    .footer-content {
        padding: 0 20px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .footer-content {
        padding: 0 16px;
    }

    .footer-copy {
        font-size: 13px;
    }

    .footer-link {
        font-size: 13px;
    }
}

/* ============================================
   DARK THEMED PROJECT PAGES
   (Category listing & Project detail)
   UI/UX Pro Max -- Exaggerated Minimalism + OLED
   ============================================ */

/* --- Keyframes --- */
@keyframes darkFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes darkFadeInSubtle {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Custom Scrollbar — Dark pages */
.dark-body {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.4) rgba(50, 53, 58, 0.6);
}

.dark-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.dark-body::-webkit-scrollbar-track {
    background: rgba(50, 53, 58, 0.6);
}

.dark-body::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.35);
    border-radius: 4px;
    border: 1px solid rgba(50, 53, 58, 0.6);
}

.dark-body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.55);
}

.dark-body::-webkit-scrollbar-thumb:active {
    background: rgba(212, 175, 55, 0.7);
}

/* --- Dark Body --- */
.dark-body {
    background-color: #353B44;
    color: #ffffff;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dark-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: darkFadeIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* --- Dark Header --- */
.dark-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 56px 60px 24px;
    position: relative;
    z-index: 10;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.06); */
}

/* --- Back Link (dark theme) --- */
.dark-back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.25s ease;
    cursor: pointer;
}

.dark-back-link:hover {
    color: #ffffff;
}

/* Длинная линия-стрелка, как в фигме */
.dark-back-arrow {
    position: relative;
    width: 56px;
    height: 1px;
    background: currentColor;
    font-size: 0;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dark-back-arrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 9px;
    height: 9px;
    border-left: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: translateY(-50%) rotate(45deg);
}

.dark-back-link:hover .dark-back-arrow {
    transform: translateX(-6px);
}

/* --- Logo Link (dark theme) --- */
.dark-logo-link {
    flex-shrink: 0;
    cursor: pointer;
}

.dark-logo-link img {
    height: 96px;
    width: auto;
    transition: opacity 0.3s ease, filter 0.4s ease;
    filter: brightness(0) invert(1);
}

.dark-logo-link:hover img {
    opacity: 0.85;
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.dark-logo-link--small img {
    height: 60px;
}

/* ============================================
   CATEGORY PAGE - Dark Theme
   ============================================ */

.dark-categories-main {
    flex: 1;
    padding: 0 0 40px 0;
    animation: darkFadeInSubtle 0.5s ease both;
    animation-delay: 0.15s;
}

/* Category Section */
/* Свёрнутые категории — плотный столбик заголовков (фигма);
   развёрнутая (is-active) — с лентами и большим отступом снизу */
.dark-category-section {
    margin-bottom: 18px;
    padding-bottom: 0;
}

.dark-category-section.is-active {
    margin-bottom: 110px;
}

.dark-category-section:last-child {
    border-bottom: none;
}

/* Category Heading */
.dark-category-heading {
    padding: 0 60px;
    margin-bottom: 0;
}

.is-active .dark-category-heading {
    margin-bottom: 36px;
}

.dark-category-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 1.94vw, 32px);
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.42);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.dark-category-title--active {
    color: rgba(255, 255, 255, 0.88);
}

/* Фигма: активная категория без подчёркивания, просто светлее */

.dark-category-title-link {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.dark-category-title-link:hover .dark-category-title {
    color: rgba(255, 255, 255, 0.8);
}

/* --- Horizontal Scroll Wrapper --- */
.dark-projects-scroll-wrapper {
    position: relative;
    width: 100%;
}

.dark-projects-scroll {
    display: flex;
    gap: clamp(10px, 1.32vw, 24px);
    overflow-x: auto;
    overflow-y: hidden;
    /* Боковые отступы как у заголовков категорий — карточки не липнут к краю */
    padding: 0 60px 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.dark-projects-scroll::-webkit-scrollbar {
    height: 4px;
}

.dark-projects-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.dark-projects-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

.dark-projects-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.dark-projects-scroll.dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* --- Лента проектов категории (правка заказчицы): по горизонтали
   листаются РАЗНЫЕ проекты — заглавный кадр + своя подпись под каждым --- */
.dark-strip-item {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
}

.dark-strip-img {
    display: block;
    height: clamp(190px, 20.8vw, 380px);
    overflow: hidden;
    background: #2a2d32;
}

.dark-strip-img img {
    height: 100%;
    width: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

.dark-strip-item:hover img {
    transform: scale(1.03);
    filter: brightness(1.07);
}

/* width:0 + min-width:100% — подпись не распирает карточку шире фото */
.dark-strip-info {
    display: block;
    width: 0;
    min-width: 100%;
    margin-top: 20px;
}

.dark-strip-title {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(18px, 1.67vw, 28px);
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 6px;
    transition: color 0.25s ease;
}

.dark-strip-item:hover .dark-strip-title {
    color: rgba(255, 255, 255, 0.8);
}

.dark-strip-subtitle {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(13px, 0.97vw, 17px);
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}


/* --- Empty state (dark) --- */
.dark-projects-empty {
    padding: 60px 60px;
    text-align: center;
}

.dark-projects-empty p {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto;
}

/* Аккордеона нет: превью проектов видны сразу (правка заказчицы) */

/* --- Dark Footer --- */
.dark-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 72px 60px 64px;
    margin-top: auto;
}

.dark-footer a {
    transition: color 0.25s ease, opacity 0.25s ease;
    cursor: pointer;
}

.dark-footer a:hover {
    opacity: 0.8;
}

/* ============================================
   PROJECT DETAIL PAGE - Dark Theme
   ============================================ */

.dark-project-detail {
    flex: 1;
    padding: 0 8.33% 40px;
    animation: darkFadeIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.1s;
}

/* Project Title */
.dark-project-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(22px, 2.08vw, 38px);
    line-height: 1.25;
    color: #ffffff;
    margin: 0 0 44px 0;
    text-transform: none;
    letter-spacing: 0;
}

/* Hero Section: Image + Description */
.dark-project-hero {
    display: grid;
    /* Фигма: заглавная картинка 59.25% контента, текст справа через 6.67% */
    grid-template-columns: 59.25% 1fr;
    gap: 6.67%;
    margin-bottom: 70px;
    align-items: start;
}

.dark-project-hero-image {
    width: 100%;
    overflow: hidden;
    background: #2a2d32;
    border-radius: 4px;
}

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

.dark-project-hero-image:hover img {
    transform: scale(1.015);
}

.dark-project-hero-info {
    padding-top: 10px;
}

.dark-project-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 28px 0;
    font-style: italic;
}

.dark-project-description {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 36px 0;
}

.dark-project-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dark-project-meta-item {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
}

.dark-project-meta-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-right: 10px;
    letter-spacing: 0.2px;
}

/* --- Gallery Section --- */
.dark-project-gallery {
    display: flex;
    flex-direction: column;
    gap: 19px;
    /* Выравнивание по заглавной картинке (правка заказчицы):
       та же колонка 59.25%, что и hero-image, а не центр страницы */
    max-width: 59.25%;
    margin: 0;
}

.dark-gallery-row {
    display: flex;
    gap: 19px;
    width: 100%;
}

.dark-gallery-row--full {
    flex-direction: column;
}

.dark-gallery-row--half {
    flex-direction: row;
}

.dark-gallery-item {
    overflow: hidden;
    background: #2a2d32;
    border-radius: 4px;
}

.dark-gallery-item--full {
    width: 100%;
}

.dark-gallery-item--half {
    width: calc(50% - 10px);
    flex-shrink: 0;
}

.dark-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.4s ease;
    filter: brightness(1);
}

.dark-gallery-item--half img {
    max-height: 580px;
}

.dark-gallery-item:hover img {
    transform: scale(1.02);
    filter: brightness(1.06);
}

/* --- Связанные проекты: тот же объект в другой категории (правка заказчицы) --- */
.dark-related {
    max-width: 59.25%;
    margin: 70px 0 0;
    padding-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.dark-related-title {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(13px, 0.9vw, 15px);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 22px;
}

.dark-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dark-related-card {
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
}

.dark-related-img {
    display: block;
    flex-shrink: 0;
    width: clamp(150px, 15vw, 240px);
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: #2a2d32;
    border-radius: 4px;
}

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

.dark-related-card:hover img {
    transform: scale(1.04);
    filter: brightness(1.07);
}

.dark-related-info {
    display: block;
    min-width: 0;
}

.dark-related-cat {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(11px, 0.76vw, 13px);
    letter-spacing: 0.12em;
    color: #D4AF37;
    margin-bottom: 8px;
}

.dark-related-name {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.32vw, 24px);
    line-height: 1.3;
    color: #ffffff;
    transition: color 0.25s ease;
}

.dark-related-card:hover .dark-related-name {
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   DARK THEME - IMAGE PROTECTION
   ============================================ */

.dark-gallery-item img,
.dark-project-hero-image img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.dark-gallery-item,
.dark-project-hero-image {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

/* ============================================
   DARK THEME - LIGHTBOX
   ============================================ */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image-wrapper {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-wrapper img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox-image-wrapper img.loaded {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: background 0.2s ease;
}

.lightbox-close::before {
    transform: rotate(45deg);
}

.lightbox-close::after {
    transform: rotate(-45deg);
}

.lightbox-close:hover::before,
.lightbox-close:hover::after {
    background: #fff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-nav--prev {
    left: 16px;
}

.lightbox-nav--next {
    right: 16px;
}

.lightbox-nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lightbox-nav:hover svg {
    stroke: #fff;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    letter-spacing: 2px;
    z-index: 10001;
}

/* Lightbox mobile */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav--prev {
        left: 8px;
    }

    .lightbox-nav--next {
        right: 8px;
    }

    .lightbox-nav svg {
        width: 16px;
        height: 16px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }

    .lightbox-counter {
        bottom: 14px;
        font-size: 13px;
    }

    .lightbox-image-wrapper img {
        max-width: 96vw;
        max-height: 85vh;
    }
}

/* ============================================
   DARK THEME - FOCUS & ACCESSIBILITY
   ============================================ */

/* Keyboard focus outlines */
.dark-back-link:focus-visible,
.dark-logo-link:focus-visible,
.dark-category-title-link:focus-visible,
.dark-strip-item:focus-visible,
.dark-gallery-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
    border-radius: 2px;
}

/* Ensure sufficient contrast on interactive text */
.dark-back-link:focus-visible {
    color: #ffffff;
}

/* ============================================
   DARK THEME - HOVER-CAPABLE DEVICES ONLY
   ============================================ */

@media (hover: hover) and (pointer: fine) {
    .dark-project-card:hover {
        transform: translateY(-4px);
    }

    .dark-project-card:hover .dark-project-card-img img {
        transform: scale(1.04);
    }

    .dark-project-card:hover .dark-project-card-overlay {
        background: rgba(42, 45, 50, 0.45);
    }

    .dark-project-card:hover .dark-project-card-view {
        opacity: 1;
        transform: translateY(0);
    }

    .dark-gallery-item:hover img {
        transform: scale(1.02);
        filter: brightness(1.06);
    }

    .dark-project-hero-image:hover img {
        transform: scale(1.015);
    }

    .dark-logo-link:hover img {
        opacity: 0.85;
        filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    }

    .dark-category-title-link:hover .dark-category-title::after {
        width: 100%;
    }
}

/* Touch devices: disable hover transforms that feel unnatural */
@media (hover: none) {
    .dark-strip-item:hover img {
        transform: none;
    }

    .dark-project-card:hover .dark-project-card-img img {
        transform: none;
    }

    .dark-project-card:hover .dark-project-card-overlay {
        background: transparent;
    }

    .dark-project-card:hover .dark-project-card-view {
        opacity: 0;
    }

    .dark-gallery-item:hover img {
        transform: none;
        filter: brightness(1);
    }

    .dark-project-hero-image:hover img {
        transform: none;
    }
}

/* ============================================
   DARK THEME - REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .dark-page,
    .dark-categories-main,
    .dark-project-detail {
        animation: none;
    }

    .dark-project-card,
    .dark-project-card-img img,
    .dark-project-card-overlay,
    .dark-project-card-view,
    .dark-gallery-item img,
    .dark-project-hero-image img,
    .dark-back-arrow,
    .dark-back-link,
    .dark-logo-link img,
    .dark-category-title,
    .dark-category-title-link .dark-category-title::after {
        transition: none;
    }
}

/* ============================================
   DARK THEME - RESPONSIVE STYLES
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .dark-header {
        padding: 28px 40px;
    }

    .dark-category-heading {
        padding: 0 40px;
    }

    .dark-projects-scroll {
        padding: 0 40px 14px;
    }

    .dark-project-detail {
        padding: 0 40px 40px;
    }

    .dark-footer {
        padding: 48px 40px;
    }

    .dark-category-section.is-active {
        margin-bottom: 84px;
    }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
    .dark-header {
        padding: 24px 24px;
    }

    .dark-logo-link img {
        height: 60px;
    }

    .dark-category-heading {
        padding: 0 24px;
    }

    .is-active .dark-category-heading {
        margin-bottom: 22px;
    }

    .dark-projects-scroll {
        padding: 0 24px 12px;
        gap: 10px;
    }

    .dark-strip-img {
        height: clamp(150px, 46vw, 240px);
    }

    .dark-strip-info {
        margin-top: 12px;
    }

    .dark-category-section {
        margin-bottom: 12px;
    }

    .dark-category-section.is-active {
        margin-bottom: 56px;
    }

    /* Project Detail - stack hero on mobile */
    .dark-project-detail {
        padding: 0 24px 30px;
    }

    .dark-project-title {
        margin-bottom: 26px;
    }

    .dark-project-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }

    /* На мобиле галерея во всю ширину */
    .dark-project-gallery {
        max-width: 100%;
    }

    .dark-related {
        max-width: 100%;
        margin-top: 44px;
        padding-top: 26px;
    }

    .dark-related-card {
        gap: 16px;
    }

    .dark-related-img {
        width: 128px;
    }

    .dark-project-subtitle {
        font-size: 18px;
    }

    .dark-project-description {
        font-size: 15px;
    }

    .dark-gallery-row--half {
        flex-direction: column;
    }

    .dark-gallery-item--half {
        width: 100%;
    }

    .dark-gallery-item img {
        max-height: none;
    }

    .dark-gallery-item--half img {
        max-height: none;
    }

    .dark-gallery-row {
        gap: 12px;
    }

    .dark-project-gallery {
        gap: 12px;
    }

    .dark-footer {
        padding: 40px 24px 36px;
    }

    .dark-logo-link--small img {
        height: 50px;
    }

    .dark-projects-empty {
        padding: 48px 24px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .dark-header {
        padding: 20px 16px;
    }

    .dark-back-link {
        font-size: 14px;
        gap: 8px;
    }

    .dark-logo-link img {
        height: 50px;
    }

    .dark-category-heading {
        padding: 0 16px;
        margin-bottom: 0;
    }

    .expanded .dark-category-heading {
        margin-bottom: 16px;
    }

    .dark-category-title {
        font-size: 26px;
    }

    .dark-projects-scroll {
        padding: 0 16px 10px;
        gap: 8px;
    }

    .dark-strip-img {
        height: clamp(140px, 52vw, 210px);
    }

    .dark-project-card-overlay {
        border-radius: 6px;
    }

    .dark-project-card-info {
        padding: 12px 0;
    }

    .dark-project-card-title {
        font-size: 14px;
    }

    .dark-project-card-subtitle {
        font-size: 12px;
    }

    .dark-category-section {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }

    .dark-project-detail {
        padding: 0 16px 24px;
    }

    .dark-project-title {
        font-size: 28px;
        margin-bottom: 24px;
        letter-spacing: -0.3px;
    }

    .dark-project-hero {
        gap: 24px;
        margin-bottom: 30px;
    }

    .dark-project-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .dark-project-description {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 24px;
    }

    .dark-project-meta {
        padding-top: 20px;
        gap: 8px;
    }

    .dark-project-meta-item {
        font-size: 14px;
    }

    .dark-project-gallery {
        gap: 10px;
        max-width: 100%; /* hero одноколоночный — галерея на всю ширину */
    }

    .dark-gallery-row {
        gap: 10px;
    }

    .dark-footer {
        padding: 20px 16px;
    }

    .dark-logo-link--small img {
        height: 40px;
    }

    .dark-projects-empty {
        padding: 40px 16px;
    }
}

/* Extra small */
@media (max-width: 360px) {
    .dark-category-title {
        font-size: 22px;
    }

    .dark-project-card {
        width: 200px;
    }

    .dark-project-card-img {
        height: 140px;
    }

    .dark-project-title {
        font-size: 24px;
    }
}

/* Preloader styles are inlined in <head> via partials/preloader-styles.blade.php */

}
