/* --- Слайдер для мобильной версии секции "Центральное пылеудаление" --- */
@media (max-width: 700px) {
  .vacuum-gallery-grid {
    display: none !important;
  }
  .vacuum-photo-slider-mobile {
    display: block !important;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 0.5rem auto;
    position: relative;
    z-index: 2;
    background: none;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .vacuum-photo-slider-mobile .slider-wrapper {
    width: 100%;
    max-width: 480px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    box-sizing: border-box;
  }
  .vacuum-photo-slider-mobile .slider-image {
    width: 100%;
    max-width: 480px;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    z-index: 1;
    display: none;
    box-sizing: border-box;
    transition: opacity 0.5s cubic-bezier(.4,0,.2,1), transform 0.5s cubic-bezier(.4,0,.2,1);
  }
  .vacuum-photo-slider-mobile .slider-image.active {
    opacity: 1;
    display: block;
    z-index: 2;
    transform: translateX(0);
  }
  .vacuum-photo-slider-mobile .slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.2rem;
    width: 100%;
    position: relative;
    z-index: 3;
    /* Центрируем стрелки и точки */
    min-height: 38px;
  }
  .vacuum-photo-slider-mobile .slider-prev,
  .vacuum-photo-slider-mobile .slider-next {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Выравнивание по центру */
    vertical-align: middle;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .vacuum-photo-slider-mobile .slider-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    min-width: 60px;
  }
  .vacuum-photo-slider-mobile .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
    transition: background 0.2s;
  }
  .vacuum-photo-slider-mobile .slider-dot.active {
    background: var(--primary-color);
  }
}
@media (min-width: 701px) {
  .vacuum-photo-slider-mobile {
    display: none !important;
  }
}
/* --- Слайдер для мобильной версии секции "Умная вентиляция" --- */
@media (max-width: 700px) {
  .tech-photo-grid {
    display: none !important;
  }
  .tech-photo-slider-mobile {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 1.5rem auto;
    position: relative;
    z-index: 2;
    background: none;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .tech-photo-slider-mobile .slider-wrapper {
    width: 100%;
    max-width: 480px;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    box-sizing: border-box;
  }
  .tech-photo-slider-mobile .slider-image {
    width: 100%;
    max-width: 480px;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 0.4s;
    opacity: 0;
    z-index: 1;
    display: none;
    box-sizing: border-box;
  }
  .tech-photo-slider-mobile .slider-image.active {
    opacity: 1;
    display: block;
    z-index: 2;
  }
  .tech-photo-slider-mobile .slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.2rem;
    width: 100%;
    position: relative;
    z-index: 3;
    /* Центрируем стрелки и точки */
    min-height: 38px;
  }
  .tech-photo-slider-mobile .slider-prev,
  .tech-photo-slider-mobile .slider-next {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Выравнивание по центру */
    vertical-align: middle;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  .tech-photo-slider-mobile .slider-indicators {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    min-width: 60px;
  }
  .tech-photo-slider-mobile .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    display: inline-block;
    transition: background 0.2s;
  }
  .tech-photo-slider-mobile .slider-dot.active {
    background: var(--primary-color);
  }
}
@media (min-width: 701px) {
  .tech-photo-slider-mobile {
    display: none !important;
  }
}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
    --primary-color: #0a9396;
    --secondary-color: #005f73;
    --accent-color: #94d2bd;
    --dark-color: #001219;
    --light-bg: #f8f9fa;
}

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

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
}

/* Prevent horizontal scroll on mobile */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 60px;
    display: flex;
    align-items: center;
    background: var(--primary-color);
    padding: 5px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-left: -1px;
}

.logo img {
    height: 100%;
    width: auto;
    display: block;
    max-height: 40px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.logo:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.logo:hover img {
    filter: brightness(0) invert(0.9);
}

.section-logo {
    height: 100px;
    width: auto;
    vertical-align: middle;
    margin-left: 320px;
    margin-bottom: -30px;
}

.tech-logo-inline {
    height: 38px;
    width: auto;
    position: relative;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li a {
    text-decoration: none;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

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

.nav-cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 1rem;
}

.nav-cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Desktop: две фотки */
.hero {
    height: 100vh;
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    overflow: hidden;
    position: relative;
}

.hero-left {
    background: url('img/mainbaner/fam.jpg') center/cover;
    position: relative;
    display: block;
}

.hero-right {
    background: linear-gradient(rgba(10, 147, 150, 0.7), rgba(0, 95, 115, 0.7)), url('img/mainbaner/genius-fireplace.png') center/cover;
    position: relative;
    display: block;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    width: 80%;
    max-width: 800px;
    padding: 0 2rem;
    z-index: 2;
    align-items: center;
    justify-content: center;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 0.8;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    white-space: pre-line;
    text-align: center;
    width: 100%;
}

.hero-content h1 span {
    display: block;
    text-align: left;
    margin-bottom: -0.2em;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    white-space: nowrap;
}

.hero-features {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 2rem auto;
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
}

.hero-features span {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    text-align: center;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    min-width: 180px;
    max-width: fit-content;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Мобильная адаптация hero: только одна фотка */
@media (max-width: 700px) {
    .hero {
        min-height: 100vh;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .hero-left {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: url('img/mainbaner/fam.jpg') center center/cover no-repeat;
        z-index: 1;
    }

    .hero-right {
        display: none;
    }

    .hero-content {
        position: absolute;
        bottom: 30px;
        left: 50%;
        transform: translateX(-50%);
        width: 92%;
        max-width: 420px;
        margin: 0;
        padding: 1.5rem 1rem;
        border-radius: 18px;
        background: rgba(10, 147, 150, 0.85);
        backdrop-filter: blur(5px);
        text-align: center;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        text-align: center;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        white-space: normal;
        display: none;
    }

    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin: 0.5rem 0;
        white-space: normal;
        width: 100%;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    .hero-features span {
        background: rgba(255,255,255,0.2);
        border-radius: 12px;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
        color: #fff;
        width: auto;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 0;
        display: flex;
        align-items: center;
    }

    .hero-features span i {
        margin-right: 5px;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
        min-width: 120px;
        margin-top: 1rem;
        width: 100%;
        border-radius: 22px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    .air-ducts .overlay-image {
        display: none !important;
    }
    .comparison {
        display: none !important;
    }
    .comparison {
        padding: 2.5rem 0.5rem 2.5rem 0.5rem;
        background: #f8f9fa;
    }
    .comparison-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        max-width: 98vw;
        margin: 0 auto;
    }
    .comparison-card {
        display: none;
    }
    .comparison-card.our-system {
        display: block;
        padding: 2.5rem 1.2rem;
        border-radius: 26px;
        box-shadow: 0 8px 32px rgba(10,147,150,0.16), 0 2px 8px rgba(0,0,0,0.07);
        margin: 0 auto 0 auto;
        width: 97vw;
        min-width: 0;
        max-width: 520px;
        background: linear-gradient(120deg, var(--primary-color) 80%, var(--accent-color) 100%);
        color: #fff;
        border: none;
        text-align: left;
        position: relative;
        overflow: visible;
        font-size: 1.18rem;
        word-break: break-word;
    }
    .comparison-card.our-system h3 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        text-align: left;
        letter-spacing: 0.01em;
        font-weight: 700;
    }
    .comparison-card.our-system ul {
        margin-top: 0.7rem;
        padding: 0;
    }
    .comparison-card.our-system li {
        margin: 1.1rem 0;
        display: block;
        font-size: 1.13rem;
        line-height: 1.5;
        word-break: break-word;
        padding-left: 0;
        position: relative;
    }
    .comparison-card.our-system i {
        display: none !important;
    }
    .technology {
        padding: 2.5rem 0.5rem 2.5rem 0.5rem;
        background: #f8f9fa;
    }
    .technology h2 {
        font-size: 1.25rem;
        text-align: left;
        margin-bottom: 2rem;
        line-height: 1.2;
        display: flex;
        align-items: center;
        gap: 0.7rem;
        flex-wrap: wrap;
    }
    .tech-logo-inline {
        height: 35px !important;
        margin-left: 0px !important;
        margin-bottom: 250px !important;
        max-width: 1200px;
    }
    .tech-container {
        flex-direction: column;
        gap: 1.5rem;
        max-width: 98vw;
        margin: 0 auto;
        padding: 0;
    }
    .tech-photo-grid {
        flex-direction: column;
        gap: 0.7rem;
        width: 100%;
        min-width: 0;
    }
    .tech-photo-large,
    .tech-photo-right {
        width: 100%;
        min-width: 0;
        flex: unset;
    }
    .tech-photo-large img {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    .tech-photo-right {
        flex-direction: row;
        gap: 0.7rem;
        margin-top: 0.7rem;
    }
    .tech-photo-small-row {
        flex: 1 1 0;
        display: flex;
        gap: 0.7rem;
        flex-direction: column;
    }
    .tech-photo-small-row img {
        width: 100%;
        height: 90px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }
    .tech-info {
        width: 80%;
        margin-top: 1.5rem;
        padding: 0;
    }
    .tech-info h3 {
        font-size: 1.13rem;
        margin-bottom: 1rem;
        text-align: left;
    }
    .tech-features {
        padding: 0;
        margin: 0;
    }
    .tech-features li {
        margin: 0.8rem -2rem;
        display: flex;
        align-items: flex-start;
        gap: 0.7rem;
        font-size: 1.04rem;
        line-height: 1.4;
        word-break: break-word;
    }
    .tech-features i {
        color: var(--primary-color);
        font-size: 1.15em;
        margin-top: 0.15em;
        min-width: 1.4em;
        text-align: center;
    }
    .design-gallery {
        display: none !important;
    }
}

/* Планшетная адаптация (701px - 1100px) */
@media (min-width: 701px) and (max-width: 1200px) {
    .air-ducts {
        padding: 30px 8px;
    }
    .ducts-container {
        flex-direction: column;
        gap: 24px;
        max-width: 98vw;
    }
    .ducts-info, .ducts-image {
        min-width: 0;
        width: 100%;
    }
    .ducts-image {
        position: static;
        margin-top: 0;
        margin-bottom: 0;
        width: 100%;
        min-width: 0;
    }
    .ducts-image .ducts-logo {
        position: static;
        display: block;
        margin: 0 auto 18px auto;
        height: 70px;
        left: unset;
        top: unset;
    }
    .top-row {
        display: flex;
        flex-direction: row;
        gap: 18px;
        padding-top: 0;
        width: 100%;
    }
    .top-row img {
        width: 48%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    .overlay-image {
        display: none !important;
    }
    nav {
        padding: 0.7rem 2vw;
        max-width: 100vw;
    }
    .logo {
        height: 44px;
        padding: 2px 8px;
        border-radius: 18px;
    }
    .logo img {
        max-height: 28px;
    }
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 24px;
        cursor: pointer;
        z-index: 1001;
        margin-left: 10px;
    }
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 4px;
        background: var(--primary-color);
        border-radius: 2px;
        margin: 3px 0;
        transition: all 0.4s cubic-bezier(.68,-0.55,.27,1.55);
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-links {
        position: fixed;
        top: 12px;
        right: -100vw;
        width: 80vw;
        max-width: 320px;
        height: calc(100vh - 24px);
        background: #fff;
        box-shadow: -2px 0 16px rgba(0,0,0,0.08);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 24px 24px;
        transition: right 0.4s cubic-bezier(.4,0,.2,1), border-radius 0.4s cubic-bezier(.4,0,.2,1);
        z-index: 1000;
        gap: 0;
        opacity: 1;
        visibility: visible;
        border-radius: 32px 0 0 32px;
        will-change: right, border-radius;
    }
    .nav-links.active {
        right: 0;
        border-radius: 32px 0 0 32px;
        animation: menuSlideInRight 0.4s cubic-bezier(.4,0,.2,1);
    }
    @keyframes menuSlideInRight {
        0% {
            right: -100vw;
            opacity: 0.2;
        }
        100% {
            right: 0;
            opacity: 1;
        }
    }
    .nav-links li {
        margin: 0 0 1.2rem 0;
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.3s, transform 0.3s;
    }
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s;
    }
    .nav-links li a,
    .nav-cta-button {
        font-size: 1.3rem;
        color: var(--dark-color);
        padding: 0.8rem 0;
        width: 100%;
        display: block;
        text-align: left;
        background: none;
        border: none;
        outline: none;
        box-shadow: none;
    }
    .nav-cta-button {
        margin: 1.5rem 0 0 0;
        font-size: 1.15rem;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        background: var(--primary-color);
        color: #fff;
        font-weight: 600;
        width: 100%;
        text-align: center;
    }
    .nav-links li a.active {
        color: var(--primary-color);
    }
    .nav-links li:last-child {
        margin-bottom: 0;
    }
    .nav-links {
        flex-direction: column;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links {
        display: flex;
    }

    /* Hero section: как на телефоне, только шире */
    .hero {
        min-height: 100vh;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }
    .hero-left {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: url('img/mainbaner/fam.jpg') center center/cover no-repeat;
        z-index: 1;
    }
    .hero-right {
        display: none;
    }
    .hero-content {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: 96%;
        max-width: 600px;
        margin: 0;
        padding: 2rem 1.5rem;
        border-radius: 22px;
        background: rgba(10, 147, 150, 0.88);
        backdrop-filter: blur(7px);
        text-align: center;
        z-index: 2;
        display: flex;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
    }
    .hero-content h1 {
        font-size: 2.2rem;
        text-align: center;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
        white-space: normal;
        display: none;
    }
    .hero-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.7rem;
        margin: 0.7rem 0;
        white-space: normal;
        width: 100%;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    .hero-features span {
        background: rgba(255,255,255,0.2);
        border-radius: 14px;
        padding: 0.7rem 1.1rem;
        font-size: 1rem;
        color: #fff;
        width: auto;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 0;
        display: flex;
        align-items: center;
    }
    .hero-features span i {
        margin-right: 7px;
    }
    .cta-button {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
        min-width: 160px;
        margin-top: 1.2rem;
        width: 100%;
        border-radius: 26px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    }

    /* Меню и навигация как на телефоне */
    nav {
        padding: 0.7rem 2vw;
        max-width: 100vw;
    }
    .logo {
        height: 44px;
        padding: 2px 8px;
        border-radius: 18px;
    }
    .logo img {
        max-height: 28px;
    }
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 24px;
        cursor: pointer;
        z-index: 1001;
        margin-left: 10px;
    }
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 4px;
        background: var(--primary-color);
        border-radius: 2px;
        margin: 3px 0;
        transition: all 0.4s cubic-bezier(.68,-0.55,.27,1.55);
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-links {
        position: fixed;
        top: 12px;
        right: -100vw;
        width: 80vw;
        max-width: 320px;
        height: calc(100vh - 24px);
        background: #fff;
        box-shadow: -2px 0 16px rgba(0,0,0,0.08);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 24px 24px;
        transition: right 0.4s cubic-bezier(.4,0,.2,1), border-radius 0.4s cubic-bezier(.4,0,.2,1);
        z-index: 1000;
        gap: 0;
        opacity: 1;
        visibility: visible;
        border-radius: 32px 0 0 32px;
        will-change: right, border-radius;
    }
    .nav-links.active {
        right: 0;
        border-radius: 32px 0 0 32px;
        animation: menuSlideInRight 0.4s cubic-bezier(.4,0,.2,1);
    }
    @keyframes menuSlideInRight {
        0% {
            right: -100vw;
            opacity: 0.2;
        }
        100% {
            right: 0;
            opacity: 1;
        }
    }
    .nav-links li {
        margin: 0 0 1.2rem 0;
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.3s, transform 0.3s;
    }
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s;
    }
    .nav-links li a,
    .nav-cta-button {
        font-size: 1.3rem;
        color: var(--dark-color);
        padding: 0.8rem 0;
        width: 100%;
        display: block;
        text-align: left;
        background: none;
        border: none;
        outline: none;
        box-shadow: none;
    }
    .nav-cta-button {
        margin: 1.5rem 0 0 0;
        font-size: 1.15rem;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        background: var(--primary-color);
        color: #fff;
        font-weight: 600;
        width: 100%;
        text-align: center;
    }
    .nav-links li a.active {
        color: var(--primary-color);
    }
    .nav-links li:last-child {
        margin-bottom: 0;
    }
    .nav-links {
        flex-direction: column;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links {
        display: flex;
    }

    /* Наши услуги: одна колонка, как на телефоне, только шире */
    .services-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        max-width: 98vw;
        margin: 0 auto;
    }
    .service-card {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        padding: 2rem 1.5rem;
        font-size: 1.15rem;
    }
    .services-buttons {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
        position: relative;
        z-index: 2;
        margin-top: -1rem;
    }
    .services-buttons .detail-button:not(:first-child) {
        display: none !important;
    }
    .services-buttons .detail-button:first-child {
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
        width: 85vw;
        max-width: 340px;
        min-width: 120px;
        margin: 2rem auto 0 auto;
        border-radius: 22px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
        font-size: 1.08rem;
        pointer-events: auto;
        display: block;
    }
    .detail-button {
        background: var(--primary-color);
        color: white;
        border: none;
        padding: 0.4rem 2rem;
        font-size: 0.9rem;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-transform: uppercase;
        font-weight: 600;
        width: fit-content;
        margin: 0 auto;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        letter-spacing: 0.8px;
    }

    .detail-button:hover {
        background: var(--secondary-color);
        transform: translateY(-2px);
    }

    /* Остальные секции: как на телефоне, только шире */
    .design-gallery {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    .design-gallery .gallery-item {
        height: 240px;
    }
    .design-gallery .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
    .light-integration {
        grid-column: auto;
    }
    #central-vacuum .vacuum-gallery-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    #central-vacuum .vacuum-gallery-left,
    #central-vacuum .vacuum-gallery-right {
        display: contents;
    }
    #central-vacuum .gallery-item {
        height: 240px;
    }
    #central-vacuum .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
    .vacuum-logo {
        display: block !important;
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1rem;
        height: 50px !important;
    }
    .design-section, #central-vacuum {
        padding: 3.5rem 1.5rem;
        background: white !important;
    }
    .design-container, #central-vacuum .design-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .design-text, #central-vacuum .design-text {
        order: 2;
    }
    .design-gallery, #central-vacuum .vacuum-gallery-grid {
        order: 1;
    }
    .design-gallery .gallery-item img,
    #central-vacuum .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }
    .design-gallery .gallery-item,
    #central-vacuum .gallery-item {
        height: 240px;
        margin: 0;
    }
    /* Секции сравнения и overlay скрываем */
    .comparison {
        display: none !important;
    }
    .air-ducts .overlay-image {
        display: none !important;
    }
    /* Карта */
    .map-section {
        padding: 3rem 0 0 0;
    }
    .map-container {
        height: 350px;
    }

    /* Кнопка "Подробнее" на приветственном экране шире и по центру */
    .hero .cta-button {
        width: 90vw;
        max-width: 520px;
        min-width: 220px;
        margin: 1.5rem auto 0 auto;
        font-size: 1.25rem;
        border-radius: 28px;
        padding: 1.2rem 0;
        display: block;
    }

    /* Бокс "наши лучшие стороны" (hero-features) по размерам */
    .hero-features {
        width: 80vw;
        max-width: 520px;
        margin: 1.2rem auto 0 auto;
        gap: 1rem;
        flex-wrap: wrap;
    }
    .hero-features span {
        flex: 1 1 40%;
        min-width: 180px;
        max-width: 240px;
        margin: 0.3rem 0.5rem;
        justify-content: center;
        text-align: center;
    }

    /* Близард: уменьшить только картинки, не лого */
    #air-ducts .mobile-ducts-gallery img:not([alt="Blizzard Logo"]) {
        width: 220px !important;
        max-width: 60vw !important;
        height: auto !important;
        border-radius: 10px !important;
        margin: 0 auto 10px auto !important;
        display: block !important;
    }

    /* Сделать полоски меню видимыми */
    .mobile-menu-btn {
        display: flex !important;
    }
    .mobile-menu-btn span {
        display: block !important;
        width: 32px !important;
        height: 4px !important;
        background: var(--primary-color) !important;
        border-radius: 2px !important;
        margin: 3px 0 !important;
        opacity: 1 !important;
        transition: all 0.4s cubic-bezier(.68,-0.55,.27,1.55);
    }
    .mobile-menu-btn.active span {
        background: var(--secondary-color) !important;
    }

    /* Лого Flo прямо возле "Дизайнерские решения" */
    #design .section-header {
        flex-direction: row;
        align-items: center;
        gap: 0.7rem;
    }
    #design .section-header .section-logo {
        margin-left: 0 !important;
        margin-bottom: 0 !important;
        height: 44px !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }
}

/* --- COMFORT FEATURES --- */
.comfort-features {
    padding: 4rem 0 4rem 0;
    background: linear-gradient(120deg, #17989e 0%, #1a8b97 100%);
    position: relative;
    overflow: hidden;
}

.comfort-features h2 {
    text-align: center;
    width: 100%;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    z-index: 2;
    position: relative;
}

.comfort-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    z-index: 2;
    position: relative;
}

/* Исправление: ограничить размер и прозрачность svg/фоновых картинок внутри блока */
.comfort-features img.comfort-icon {
    max-width: 80px;
    max-height: 80px;
    margin-bottom: 1.2rem;
    opacity: 1;
    filter: none;
    z-index: 2;
    position: relative;
    pointer-events: none;
}

.comfort-card {
    background: rgba(255,255,255,0.10);
    border-radius: 18px;
    box-shadow: none;
    padding: 2.2rem 1.2rem 2.2rem 1.2rem;
    min-width: 240px;
    max-width: 320px;
    flex: 1 1 240px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border: none;
    backdrop-filter: blur(2px);
    z-index: 2;
    position: relative;
}

.comfort-card i {
    font-size: 2.5rem;
    color: #b5e0d3;
    margin-bottom: 1.2rem;
    display: block;
    z-index: 2;
    position: relative;
}

.comfort-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1.1rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.01em;
    z-index: 2;
    position: relative;
}

.comfort-card p {
    font-size: 1.08rem;
    color: #e6f7f7;
    margin-bottom: 0;
    font-weight: 400;
    z-index: 2;
    position: relative;
}

.comfort-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255,255,255,0.17);
    box-shadow: 0 8px 32px rgba(10,147,150,0.13);
}

@media (max-width: 1100px) {
    .comfort-grid {
        gap: 1.2rem;
    }
    .comfort-card {
        min-width: 180px;
        max-width: 100%;
        padding: 1.5rem 0.7rem;
    }
    .comfort-features img.comfort-icon {
        max-width: 60px;
        max-height: 60px;
    }
}

@media (max-width: 700px) {
    .comfort-features {
        padding: 2.2rem 0.2rem;
    }
    .comfort-features h2 {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    .comfort-grid {
        flex-direction: column;
        gap: 1.1rem;
        align-items: stretch;
    }
    .comfort-card {
        min-width: 0;
        max-width: 100%;
        padding: 1.1rem 0.5rem;
    }
    .comfort-card h3 {
        font-size: 1rem;
    }
    .comfort-card p {
        font-size: 0.95rem;
    }
    .comfort-features img.comfort-icon {
        max-width: 48px;
        max-height: 48px;
    }
}

/* --- QUALITY FOCUS --- */
.quality-focus {
    padding: 3.5rem 2rem 2.5rem 2rem;
    background: #fff;
}

.quality-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.quality-container h3 {
    font-size: 1.7rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

.quality-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 0;
}

.quality-card {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 2rem 1.5rem;
    min-width: 260px;
    max-width: 340px;
    flex: 1 1 260px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quality-card i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quality-card h4 {
    font-size: 1.15rem;
    color: var(--secondary-color);
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.quality-card p {
    font-size: 1.02rem;
    color: #222;
    margin-bottom: 0;
}

.quality-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    background: #f6fcfa;
}

@media (max-width: 900px) {
    .quality-focus {
        padding: 2rem 0.5rem 1.5rem 0.5rem;
    }
    .quality-cards {
        flex-direction: column;
        gap: 1.2rem;
    }
    .quality-card {
        max-width: 100%;
        padding: 1.2rem 0.7rem;
    }
    .quality-container h3 {
        font-size: 1.2rem;
    }
}

/* --- SERVICES SECTION --- */
.services {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
    position: relative;
    z-index: 2;
}

.services::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--light-bg));
    z-index: -1;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-left: 4px solid var(--accent-color);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-icon {
    height: 40px;
    width: auto;
    margin-bottom: 1rem;
}

.services-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 2;
    margin-top: -1rem;
}

.detail-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.4rem 2rem;
    font-size: 0.9rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    letter-spacing: 0.8px;
}

.detail-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* Мобильная адаптация: только одна кнопка "Подробнее" в услугах */
@media (max-width: 700px) {
    .services-buttons .detail-button:not(:first-child) {
        display: none !important;
    }
    .services-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-width: 100vw;
        margin: 0;
        padding: 0;
        position: static;
    }
    .services {
        position: relative;
        padding-bottom: 3.5rem;
    }
    .services-buttons .detail-button:first-child {
        position: relative;
        left: 0;
        right: 0;
        bottom: 0;
        width: 85vw;
        max-width: 340px;
        min-width: 120px;
        margin: 2rem auto 0 auto;
        border-radius: 22px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
        font-size: 1.08rem;
        pointer-events: auto;
        display: block;
    }
}

.tech-photo-caption {
    position: absolute;
    left: 0;
    right: 100px;
    bottom: -50px;
    text-align: center;
    font-size: 14px;
    color: #222;
    font-weight: 800;
    white-space: nowrap; /* Добавляем это свойство */
}

.tech-photo-caption-grid {
    position: absolute;
    left: 0;
    right: 10px;
    bottom: -50px;
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.caption-item {
    font-size: 15.5px;
    color: #222;
    font-weight: 800;
    text-align: center;
    flex: 1;
    white-space: normal;
    max-width: 200px;
}

@media (max-width: 900px) {
    .tech-photo-caption-grid {
        bottom: -80px;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .caption-item {
        font-size: 1.08rem;
        line-height: 1.3;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
    animation-play-state: paused;
}

.animate-up:nth-child(1) { animation-delay: 0.2s; }
.animate-up:nth-child(2) { animation-delay: 0.4s; }
.animate-up:nth-child(3) { animation-delay: 0.6s; }

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

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

/* Add Intersection Observer JavaScript to trigger animations */
.service-card.visible {
    animation-play-state: running;
}

.contact {
    padding: 5rem 2rem;
}

.contact-wrapper {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    flex: 0 0 600px; /* фиксированная ширина */
    max-width: 600px;
    margin: 0;
}

.contact-info {
    flex: 1;
    padding-left: 2rem;
    color: #2c3e50;
    padding-top: 0;
    min-height: 425px; /* примерная высота формы */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-item {
    margin-bottom: 1.8rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 3rem;
    }
    
    .contact-container {
        flex: none;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-info {
        min-height: auto;
        padding: 0;
    }

    .contact-item {
        margin-bottom: 2rem;
    }
}

contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input, textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

textarea {
    height: 150px;
    resize: vertical;
}

form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

form button:hover {
    background: var(--secondary-color);
}

footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 1.2rem 0 1.2rem 0;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

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

.footer-left {
    text-align: left;
}

.footer-links {
    text-align: right;
}

.footer-links a {
    color: #b5e0d3;
    text-decoration: underline;
    margin-left: 1.5rem;
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

@media (max-width: 700px) {
    .footer-content {
        flex-direction: column;
        gap: 0.7rem;
        padding: 0 1rem;
    }
    .footer-left, .footer-links {
        text-align: center;
    }
    .footer-links a {
        margin-left: 0;
        margin-right: 0.7rem;
        display: inline-block;
    }
}

.benefits {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.benefit-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.technology {
    padding: 5rem 2rem;
}

.tech-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 4rem;
    align-items: center;
}

.tech-image {
    flex: 1;
}

.tech-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.tech-info {
    flex: 1;
}

.tech-features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 2rem;
    max-width: 400px; /* увеличили с 180px до 400px */
    margin-left: 0; /* выравнивание по левому краю */
}

.tech-features li {
    background: white;
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start; /* выравнивание по верху для точного позиционирования */
    gap: 0.8rem; /* уменьшили отступ между иконкой и текстом */
    margin-bottom: 5px;
    width: 130%; /* растягиваем на всю ширину */
}

.tech-features i {
    color: var(--primary-color);
    font-size: 0.9em; /* уменьшили размер */
    margin-top: px; /* выравнивание по центру текста */
}

.tech-features i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tech-features h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.tech-photo-grid {
    display: flex;
    gap: 0;
    flex: 1;
    min-width: 0;
}

.tech-photo-large {
    flex: 0 0 65%;
    min-width: 0;
}

.tech-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 0;
    box-shadow: none;
}

.tech-photo-right {
    display: flex;
    flex-direction: column;
    flex: 0 0 35%;
    gap: 0;
    min-width: 200px;
}

.tech-photo-small-row {
      flex: 1 1 0;  display: flex;
    gap: 0;
}

.tech-photo-small-row img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 0;
    box-shadow: none;
}



.air-ducts {
    padding: 40px;
    background-color: #f9f9f9;
}

.ducts-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.ducts-info {
    flex: 1;
    min-width: 300px;
}

.ducts-features {
    list-style: none;
    padding: 0;
}

.ducts-features li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.ducts-features li i.fa-award {
    color: black;
    font-size: 1.4em;
    margin-top: 0.2em;
    
}

.ducts-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.ducts-image .ducts-logo {
    position: absolute;
    top: 10px;
    left: 0;
    height: 40px;
    width: auto;
    z-index: 2;
}

.top-row {
    display: grid;
    grid-template-columns: 70% 35%;
    gap: 0;
    padding-top: 30px; /* Added top padding */
}

.top-row img {
    width: 100%;
    height: 550px; /* Increased from 200px to 270px */
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.overlay-image {
    position: absolute;
    bottom: -70px; /* Adjusted to account for top padding */
    right: -30px;
    width: 300px;
    height: auto;
    z-index: 2;
    transition: transform 0.3s ease;
}

.bottom-row img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.bottom-row img {
    width: 100%;
}

.more-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 6px 32px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    letter-spacing: 1px;
}

.more-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.comparison {
    padding: 5rem 2rem;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-card {
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.comparison-card.our-system {
    background: var(--primary-color);
    color: white;
}

.comparison-card.traditional {
    background: #f8f9fa;
    color: var(--dark-color);
}

.comparison-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.comparison-card li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.our-system i {
    color: var(--accent-color);
}

.traditional i {
    color: #dc3545;
}

.design-section {
    padding: 5rem 2rem;
    background: linear-gradient(to right, var(--light-bg) 50%, white 50%);
}

.design-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.design-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.design-gallery {
    display: flex ;
    flex-direction: column ;
    gap: 1.5rem ;
    width: 100% !important;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* показываем всю картинку */
    display: block;
    border-radius: 0; /* убрано скругление */
    background: #eee;
}

@media (max-width: 900px) {
    .gallery-row:first-child .gallery-item {
        height: 260px;
    }
    .gallery-row:last-child .gallery-item {
        flex: 1 1 0;
        height: 360px; /* нижняя картинка больше */
        min-width: 0;
    }

    .gallery-item {
        overflow: hidden;
        border-radius: 0;
        background: transparent;
        display: flex;
        align-items: stretch;
        justify-content: stretch;
        box-shadow: none;
        border: none;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 0;
        background: transparent;
    }
}

/* --- MOBILE NAVIGATION --- */
@media (max-width: 768px) {
    nav {
        padding: 0.7rem 2vw;
        max-width: 100vw;
    }
    .logo {
        height: 44px;
        padding: 2px 8px;
        border-radius: 18px;
    }
    .logo img {
        max-height: 28px;
    }
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 24px;
        cursor: pointer;
        z-index: 1001;
        margin-left: 10px;
    }
    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 4px;
        background: var(--primary-color);
        border-radius: 2px;
        margin: 3px 0;
        transition: all 0.4s cubic-bezier(.68,-0.55,.27,1.55);
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .nav-links {
        position: fixed;
        top: 12px;
        right: -100vw;
        width: 80vw;
        max-width: 320px;
        height: calc(100vh - 24px);
        background: #fff;
        box-shadow: -2px 0 16px rgba(0,0,0,0.08);
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 80px 24px 24px 24px;
        transition: right 0.4s cubic-bezier(.4,0,.2,1), border-radius 0.4s cubic-bezier(.4,0,.2,1);
        z-index: 1000;
        gap: 0;
        opacity: 1;
        visibility: visible;
        border-radius: 32px 0 0 32px;
        will-change: right, border-radius;
    }
    .nav-links.active {
        right: 0;
        border-radius: 32px 0 0 32px;
        animation: menuSlideInRight 0.4s cubic-bezier(.4,0,.2,1);
    }
    @keyframes menuSlideInRight {
        0% {
            right: -100vw;
            opacity: 0.2;
        }
        100% {
            right: 0;
            opacity: 1;
        }
    }
    .nav-links li {
        margin: 0 0 1.2rem 0;
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.3s, transform 0.3s;
    }
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.2s;
    }
    .nav-links li a,
    .nav-cta-button {
        font-size: 1.3rem;
        color: var(--dark-color);
        padding: 0.8rem 0;
        width: 100%;
        display: block;
        text-align: left;
        background: none;
        border: none;
        outline: none;
        box-shadow: none;
    }
    .nav-cta-button {
        margin: 1.5rem 0 0 0;
        font-size: 1.15rem;
        padding: 0.8rem 1.5rem;
        border-radius: 25px;
        background: var(--primary-color);
        color: #fff;
        font-weight: 600;
        width: 100%;
        text-align: center;
    }
    .nav-links li a.active {
        color: var(--primary-color);
    }
    .nav-links li:last-child {
        margin-bottom: 0;
    }
    .nav-links {
        flex-direction: column;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links {
        display: flex;
    }

    /* Дизайнерские решения - показываем галерею */
    .design-gallery {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .design-gallery .gallery-item {
        height: 200px;
    }
    
    .design-gallery .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }
    
    .light-integration {
        grid-column: auto;
    }
    
    /* Центральное пылеудаление - показываем галерею */
    #central-vacuum .vacuum-gallery-grid {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    #central-vacuum .vacuum-gallery-left,
    #central-vacuum .vacuum-gallery-right {
        display: contents;
    }
    
    #central-vacuum .gallery-item {
        height: 200px;
    }
    
    #central-vacuum .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
                                    border-radius: 12px;
    }
    
    /* Показываем логотипы в мобильной версии */
    .vacuum-logo {
        display: block !important;
        position: relative;
        top: 0;
        left: 0;
        margin-bottom: 1rem;
        height: 40px !important;
    }
    
    /* Регулировка отступов */
    .design-section, #central-vacuum {
        padding: 3rem 1rem;
        background: white !important;
    }
    
    .design-container, #central-vacuum .design-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .design-text, #central-vacuum .design-text {
        order: 2;
    }
    
    .design-gallery, #central-vacuum .vacuum-gallery-grid {
        order: 1;
    }
    
    .design-gallery .gallery-item img,
    #central-vacuum .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }
    

    
    .design-gallery .gallery-item,
    #central-vacuum .gallery-item {
        height: 200px;
        margin: 0;
    }
}

/* --- МОБИЛЬНАЯ ВЕРСИЯ: Убрать пустой отступ перед Swegon Casa --- */
@media (max-width: 700px) {
    /* Убираем большой отступ перед секцией технологии */
    #technology {
        padding-top: 0!important;
        margin-top: 0 !important;
    }
    #technology > .swegon-logo-mobile-fix,
    #technology > div[style*="max-width:1240px"] {
        margin: 0 auto !important;
        padding-left: 0 !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
    }
    .tech-logo-inline {
        height: 32px !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        display: block !important;
        max-width: 160px !important;
    }
    #technology h2 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    /* Убираем лишний отступ между секциями */
    #technology {
        margin-bottom: 0 !important;
    }
}

/* Prevent nav from causing horizontal scroll */
@media (max-width: 900px) {
    body, html {
        max-width: 100vw;
        overflow-x: hidden;
    }
    nav, .nav-links {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Hide nav-links on mobile until menu is open */
@media (max-width: 900px) {
    .nav-links {
        pointer-events: none;
    }
    .nav-links.active {
        pointer-events: auto;
    }
}

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

/* Vacuum Gallery Grid */
.vacuum-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
    height: 100%;
    min-height: 320px;

}

.vacuum-gallery-left {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    height: 100%;
}

.vacuum-gallery-left .gallery-item,
.vacuum-gallery-right .gallery-item {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    height: 100%;
    min-height: 0;
    overflow: visible;
    display: flex;
}

.vacuum-gallery-left .gallery-item img,
.vacuum-gallery-right .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.vacuum-gallery-right {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vacuum-gallery-right .gallery-item {
    flex: 1 1 0;
    height: 100%;

}

.vacuum-gallery-left .gallery-item {
    position: relative;
    top: 58px;
}

.vacuum-logo {
    display: none;
}

.vacuum-logo {
    position: absolute;
    top: -40px;
    left: 0;
    height: 35px !important;
    width: auto !important;
}

@media (max-width: 768px) {
    .vacuum-logo {
        height: 28px !important;
        top: -30px;
    }
}

/* Section Header */
.section-header {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    display: inline-block;
    vertical-align: middle;
}

.section-header .section-logo {
    margin-left: 20px;
    margin-bottom: 0;
    height: 60px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* Fix for air-ducts layout */
.air-ducts .section-header {
    align-items: flex-start;
    gap: 2rem;
}

.bytenest-link {
    display: inline-block;
    color: var(--accent-color);

    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.bytenest-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: white;
}

.bytenest-link i {
    font-size: 0.8em;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.bytenest-link:hover i {
    transform: translateX(2px);
}

/* Map Section */
.map-section {
    padding: 5rem 0 0 0;
    background: var(--light-bg);
}

.map-container {
    width: 100%;
    height: 450px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    .map-section {
        padding: 3rem 0 0 0;
    }
    
    .map-container {
        height: 350px;
    }
}

.info-blocks {
    display: none;
}

.design-features .feature {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    opacity: 0.95;
}

.design-features .feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    opacity: 1;
}

.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-viewer img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close-viewer {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
   
    font-size: 30px;
   

    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-viewer:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.gallery-item {
    cursor: pointer;
}

.gallery-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Исключаем hover-эффект для лого */
.ducts-logo {
    cursor: default;
}

.ducts-logo:hover {
    transform: none;
}

.design-gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.gallery-row {
    display: flex;
    flex-direction: row;
    gap: 18px;
    width: 100%;
}

/* --- CENTRAL VACUUM GALLERY: показывать всё содержимое фото (object-fit: contain) --- */
#central-vacuum .vacuum-gallery-grid .gallery-item img:not(.vacuum-logo) {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}


/* --- CENTRAL VACUUM GALLERY: позволить управлять position: relative для нужной картинки --- */
#central-vacuum .vacuum-gallery-left .gallery-item img[alt="Трубы центрального пылеудаления"] {
    position: relative;
    bottom: 117px;
   
}

@media (max-width: 700px) {
  #central-vacuum .vacuum-gallery-grid {
    display: none !important;
  }
  .vacuum-photo-slider-mobile {
    margin-bottom: 1.2rem;
    margin-top: 35px !important;
  }
  .tech-photo-slider-mobile {
    margin-top: 10px !important;
  }
  .tech-photo-slider-mobile .slider-image:last-child {
    object-fit: cover !important;
    object-position: top center !important;
    background: #fff !important;
  }
  .tech-photo-slider-mobile .slider-image:nth-child(2) {
    object-position: 30% center !important;
  }
}

/* --- Позиционирование для air-ducts на больших экранах --- */
@media (min-width: 1000px) {
  .air-ducts .top-row {
    position: relative;
  }
  .air-ducts .top-row img {
    position: relative;
    top: 32px;
  }
  .tech-photo-grid {
    position: relative;
  }
  .tech-photo-grid img {
    position: relative;
    top: 80px;
  }
  #design .design-gallery {
    position: relative;
    top: 108px;
  }
  #design .section-logo {
    position: relative;
    top: 108px;
  }
}

/* --- CONTACT SECTION: Custom styles for clickable phone, email, and WhatsApp --- */
.contact-info a[href^="tel:"],
.contact-info a[href^="mailto:"],
.contact-info a[href^="https://wa.me"] {
    color: #0a9396;
    font-family: 'Segoe UI', 'Inter', 'Arial', sans-serif;
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s;
    font-size: 1.08em;
    letter-spacing: 0.01em;
}

.contact-info a[href^="tel:"]:hover,
.contact-info a[href^="mailto:"]:hover,
.contact-info a[href^="https://wa.me"]:hover {
    color: #005f73;
    text-decoration: underline;
}





