/* Стили для страницы «Котельное оборудование» (page-kotly.php). Изолированы через CSS @scope. */
@scope (.kotly-page) {
        *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

        :scope {
            font-family: 'Manrope', sans-serif; /* как на остальном сайте */
            background: #000000;
            color: #FFFFFF;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* ===== HEADER ===== */
        .header {
            position: fixed; top: 0; left: 0;
            width: 100%; padding: 20px 0; z-index: 100;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
        .header__inner { display: flex; align-items: center; justify-content: space-between; }
        .logo { width: 160px; height: 32px; flex-shrink: 0; }
        .nav { display: flex; align-items: center; gap: 8px; }
        .nav__link {
            font-size: 14px; font-weight: 400; color: #A0A0A0;
            text-decoration: none; padding: 8px 18px; border-radius: 50px;
            border: 1px solid transparent; transition: all 0.25s ease; white-space: nowrap;
        }
        .nav__link:hover { color: #FFFFFF; border-color: rgba(255,255,255,0.15); }
        .nav__link--active { color: #FFFFFF; border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }

        /* ===== HERO ===== */
        .hero { position: relative; width: 100%; min-height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
        .hero__glow { position: absolute; top: -272px; right: -300px; width: 1200px; height: 800px; pointer-events: none; z-index: 0; }
        .hero__glow-ellipse-1 { position: absolute; width: 100%; height: 100%; background: #022D12; filter: blur(157px); border-radius: 50%; opacity: 0.8; }
        .hero__glow-ellipse-2 { position: absolute; width: 60%; height: 65%; right: 0; top: 15%; background: linear-gradient(297.55deg, #009C3D 39.57%, #132C13 53.06%, #009C3D 84.83%); filter: blur(127px); border-radius: 50%; opacity: 0.8; }
        .hero__circles { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 100%; height: 100%; pointer-events: none; z-index: 0; }
        .hero__circle { position: absolute; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; left: 50%; transform: translateX(-50%); }
        .hero__circle--1 { width: 1440px; height: 1440px; top: -800px; }
        .hero__circle--2 { width: 1440px; height: 1440px; top: -300px; }
        .hero__content { position: relative; z-index: 2; text-align: center; padding: 120px 20px 80px; }
        .hero__tag { display: inline-flex; align-items: center; padding: 5px 18px; border: 1px solid rgba(0,156,61,0.5); border-radius: 50px; font-size: 12px; font-weight: 600; color: #35FF4D; margin-bottom: 20px; letter-spacing: 0.08em; text-transform: uppercase; }
        .hero__title { font-weight: 800; font-size: 64px; line-height: 120%; letter-spacing: 0.02em; color: #FFFFFF; margin-bottom: 16px; }
        .hero__subtitle { font-weight: 300; font-size: 18px; line-height: 155%; color: #A0A0A0; max-width: 680px; margin: 0 auto; }
        .divider { width: 100%; height: 1px; background: rgba(255,255,255,0.2); }

        /* ===== SECTIONS ===== */
        .section { position: relative; padding: 80px 0; }
        .section__tag { display: inline-flex; align-items: center; padding: 6px 30px; border: 1px solid #A0A0A0; border-radius: 50px; font-size: 16px; font-weight: 500; letter-spacing: 0.02em; color: #FFFFFF; margin-bottom: 40px; }

        /* ===== INTRO ===== */
        .intro__text { font-size: 18px; font-weight: 300; line-height: 165%; color: #D0D0D0; max-width: 900px; margin-bottom: 40px; }
        .intro__text strong { color: #FFFFFF; font-weight: 600; }
        .brands-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .brands-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 28px 32px; }
        .brands-card__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #35FF4D; margin-bottom: 12px; }
        .brands-card__text { font-size: 15px; color: #C0C0C0; line-height: 165%; }

        /* ===== MARQUEE ===== */
        .marquee-wrap { overflow: hidden; margin-top: 40px; position: relative; }
        .marquee-wrap::before,
        .marquee-wrap::after { content: ''; position: absolute; top: 0; width: 80px; height: 100%; z-index: 2; pointer-events: none; }
        .marquee-wrap::before { left: 0; background: linear-gradient(to right, #000, transparent); }
        .marquee-wrap::after { right: 0; background: linear-gradient(to left, #000, transparent); }
        .marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 28s linear infinite; }
        .marquee-track:hover { animation-play-state: paused; }
        @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
        .logo-item { background: #FFFFFF; border-radius: 12px; padding: 14px 22px; display: flex; align-items: center; justify-content: center; height: 68px; width: 150px; flex-shrink: 0; transition: all 0.3s ease; }
        .logo-item:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,156,61,0.25); }
        .logo-item img { max-height: 36px; max-width: 106px; object-fit: contain; }
        .logo-item img.logo-lg { max-height: 50px; max-width: 120px; }

        /* ===== WORK LIST (text+icons) ===== */
        .works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
        .work-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 32px 28px; transition: all 0.3s ease; }
        .work-card:hover { background: rgba(0,156,61,0.07); border-color: rgba(0,156,61,0.25); transform: translateY(-2px); }
        .work-card__icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(8,156,62,0.18); border: 1px solid rgba(0,200,80,0.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-shrink: 0; }
        .work-card__icon svg { width: 24px; height: 24px; }
        .work-card__title { font-size: 17px; font-weight: 600; color: #FFFFFF; margin-bottom: 8px; line-height: 135%; }
        .work-card__text { font-size: 14px; color: #888; line-height: 160%; }

        /* ===== ADVANTAGES ===== */
        .adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
        .adv-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 32px 28px; transition: all 0.3s ease; }
        .adv-card:hover { background: rgba(0,156,61,0.07); border-color: rgba(0,156,61,0.25); }
        .adv-card__icon { width: 52px; height: 52px; border-radius: 50%; background: rgba(8,156,62,0.18); border: 1px solid rgba(0,200,80,0.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
        .adv-card__icon svg { width: 22px; height: 22px; }
        .adv-card__title { font-size: 16px; font-weight: 600; color: #FFFFFF; margin-bottom: 10px; line-height: 140%; }
        .adv-card__text { font-size: 14px; color: #888; line-height: 160%; }
        .price-block { margin-top: 40px; background: rgba(0,156,61,0.08); border: 1px solid rgba(0,156,61,0.25); border-radius: 16px; padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
        .price-block__label { font-size: 14px; color: #888; margin-bottom: 8px; }
        .price-block__value { font-size: 36px; font-weight: 800; color: #35FF4D; }
        .price-block__note { font-size: 13px; color: #666; margin-top: 6px; }
        .price-block__text { font-size: 16px; color: #C0C0C0; line-height: 165%; max-width: 560px; }

        /* ===== SCHEMA ===== */
        .schema-block { width: 100%; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; overflow: hidden; padding: 40px; }
        .schema-block img { width: 100%; display: block; }

        /* ===== GUARANTEE ===== */
        .guarantee-block { background: rgba(0,156,61,0.06); border: 1px solid rgba(0,156,61,0.2); border-radius: 20px; padding: 48px; text-align: center; position: relative; overflow: hidden; }
        .guarantee-block::before { content: '!'; position: absolute; top: -20px; right: 40px; font-size: 180px; font-weight: 900; color: rgba(0,156,61,0.06); line-height: 1; pointer-events: none; }
        .guarantee-block__title { font-size: 22px; font-weight: 700; color: #FFFFFF; margin-bottom: 16px; line-height: 140%; }
        .guarantee-block__title span { color: #35FF4D; }
        .guarantee-block__text { font-size: 16px; color: #A0A0A0; line-height: 165%; max-width: 700px; margin: 0 auto; }

        /* ===== CERTS ===== */
        .certs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
        .cert-item { background: #FFFFFF; border-radius: 12px; overflow: hidden; cursor: zoom-in; transition: all 0.3s ease; aspect-ratio: 3/4; }
        .cert-item:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,156,61,0.3); }
        .cert-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

        /* ===== LIGHTBOX ===== */
        .lightbox { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
        .lightbox.active { display: flex; }
        .lightbox__img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 8px; box-shadow: 0 0 60px rgba(0,0,0,0.8); }
        .lightbox__close { position: absolute; top: 24px; right: 32px; font-size: 32px; color: #fff; cursor: pointer; line-height: 1; opacity: 0.7; transition: opacity 0.2s; }
        .lightbox__close:hover { opacity: 1; }

        /* ===== GLOW ===== */
        .section--glow { position: relative; }
        .section--glow .glow { position: absolute; bottom: -200px; left: -400px; width: 1000px; height: 650px; pointer-events: none; z-index: 0; }
        .section--glow .glow-e1 { position: absolute; width: 100%; height: 100%; background: #089C3E; filter: blur(157px); border-radius: 50%; opacity: 0.22; }
        .section--glow .glow-e2 { position: absolute; width: 60%; height: 65%; left: 20%; top: 15%; background: linear-gradient(297.55deg, #009C3D 39.57%, #132C13 53.06%, #009C3D 84.83%); filter: blur(127px); border-radius: 50%; opacity: 0.22; }
        .section__inner { position: relative; z-index: 1; }

        /* ===== FOOTER ===== */
        .footer { position: relative; padding: 40px 0; z-index: 1; }
        .footer__divider { width: 100%; height: 1px; background: rgba(255,255,255,0.2); margin-bottom: 40px; }
        .footer__content { display: flex; justify-content: space-between; align-items: center; }
        .footer__copyright { font-size: 13px; color: #999; }
        .footer__company { font-size: 13px; color: #A0A0A0; }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1100px) {
            .container { padding: 0 24px; }
            .hero__title { font-size: 48px; }
            .works-grid { grid-template-columns: repeat(2, 1fr); }
            .adv-grid { grid-template-columns: repeat(2, 1fr); }
            .certs-grid { grid-template-columns: repeat(3, 1fr); }
        }
        @media (max-width: 768px) {
            .hero__title { font-size: 36px; }
            .hero__content { padding: 100px 20px 60px; }
            .section { padding: 50px 0; }
            .brands-grid, .works-grid, .adv-grid { grid-template-columns: 1fr; }
            .certs-grid { grid-template-columns: repeat(2, 1fr); }
            .price-block { flex-direction: column; text-align: center; }
            .schema-block { padding: 20px; }
            .nav { display: none; }
            .footer__content { flex-direction: column; gap: 12px; text-align: center; }
        }
}
