/* ==========================================================================
   Uniplyt — consolidated stylesheet (single file, no @import).
   Order matches former style.css @import cascade: chrome -> pages.
   ========================================================================== */

/* Self-hosted Inter (variable). Замінили Google Fonts — менше render-blocking. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}


/* ===== style/body/base.css ===== */
:root {
    --primary: #1e4d2b;
    --border: #e2e8f0;
    --text-main: #1a202c;
    --text-muted: #5a6473;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
    overflow-x: hidden;
}

/* SR-only: для прихованого H1 на головній (видимий заголовок там — у слайдері) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1 {
    font-size: 45px;
    margin-bottom: 25px;
    color: var(--primary);
    font-weight: 700;
}

.description {
    font-size: 19px;
    line-height: 1.7;
    color: #4a5568;
    max-width: 900px;
}

.inline-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 767px) {
    h1 {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .description {
        font-size: 16px;
        line-height: 1.6;
    }
}


/* ===== style/body/header.css ===== */
header {
    height: 110px;
    display: flex;
    align-items: center;
    /* Контент хедера бундлится у 1200px на широких екранах (FullHD+, 4K),
       а декоративні підкреслення (::before/::after) йдуть на всю ширину viewport. */
    padding: 0 max(60px, calc((100% - 1200px) / 2));
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    width: 100%;
}

/* Нижняя линия хедера — двумя кусками, слева и справа от центрального кармана.
   Гэп под логотип = ширина .logo / 2 + невеликий запас */
header::before,
header::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 1px;
    background: var(--border);
}

header::before {
    left: 0;
    right: calc(50% + 135px);
}

header::after {
    left: calc(50% + 135px);
    right: 0;
}

.logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 270px;
    height: 195px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #fff;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 40px 40px;
    z-index: 5;
}

.logo img {
    height: 175px;
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.top-nav {
    display: flex;
    gap: 35px;
}

.top-nav > li {
    list-style: none;
    position: relative;
}

.top-nav > li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 110px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    transition: color 0.2s;
}

.top-nav > li > a:hover,
.top-nav > li:hover > a {
    color: var(--primary);
}

.top-nav .caret {
    font-size: 10px;
    transition: transform 0.2s;
}

.top-nav > li:hover .caret {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--primary);
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

/* Правый блок меню: дропдауны открываются влево, чтобы не вылетать за край */
.top-nav-right .dropdown {
    left: auto;
    right: 0;
}

.top-nav > li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a {
    display: block;
    padding: 14px 26px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1.3;
    transition: background 0.15s;
}

.dropdown li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.lang {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    padding: 6px 12px;
    border: 1px solid #000;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Перемикач мови — поточна мова жирна й темна, інша мова приглушена. */
.lang a {
    color: var(--text-muted);
    font-weight: 400;
    text-decoration: none;
}

.lang a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.lang-current {
    color: var(--text-main);
    font-weight: 700;
}

/* Burger and mobile menu — hidden on desktop, shown via mobile media queries */
.burger {
    display: none;
}

.mobile-menu {
    display: none;
}

/* ========== БУРГЕР-МЕНЮ ==========
   Показуємо бургер замість hover-випадайок, коли виконано хоча б одне:
   • ширина ≤1199px — десктоп-меню фізично не вміщується;
   • (hover: none) — пристрій без наведення (тач-екран) будь-якої ширини.
     На тачскріні тап по пункту меню вів би на сторінку, а не розкривав
     підменю, тож ловимо і широкі планшети (напр. iPad Pro в альбомній).
   Десктопне hover-меню лишається лише на мишачих пристроях ≥1200px. */
@media (max-width: 1199px), (hover: none) {
    header {
        height: 60px;
        padding: 0 16px;
        border-bottom: 1px solid var(--border);
    }

    /* На мобилке хедер плоский — линия рисуется border-bottom, а не пвсевдо-куски */
    header::before,
    header::after {
        display: none;
    }

    .logo {
        width: 120px;
        height: 88px;
        border-radius: 0 0 20px 20px;
    }

    .logo img {
        height: 72px;
    }

    /* На мобілці ховаємо обидва nav-блоки, але .header-right лишаємо
       видимим — у ньому живе перемикач мови UA|EN. */
    .top-nav {
        display: none;
    }

    .header-right {
        /* На мобілці UA|EN йде НА ЛІВИЙ край (order:-1 переставляє у flex),
           щоб максимально далеко від бургера — пальцем не зачепиш. */
        order: -1;
        gap: 0;
    }

    .lang {
        font-size: 13px;
        padding: 4px 9px;
    }

    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .burger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text-main);
        border-radius: 1px;
        transition: transform 0.25s, opacity 0.2s;
    }

    .burger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .burger.open span:nth-child(2) {
        opacity: 0;
    }
    .burger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile menu — slide-in panel from right */
    .mobile-menu {
        display: block;
        position: fixed;
        top: 60px;
        right: 0;
        bottom: 0;
        width: min(320px, 90vw);
        background: #fff;
        z-index: 200;
        padding: 24px 0;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
    }

    .mobile-menu.open {
        transform: translateX(0);
    }

    .mobile-menu-section + .mobile-menu-section {
        margin-top: 24px;
    }

    .mobile-menu-title {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--text-muted);
        padding: 16px 24px;
        margin-bottom: 0;
        cursor: pointer;
        list-style: none;
        position: relative;
        user-select: none;
    }

    .mobile-menu-title::-webkit-details-marker {
        display: none;
    }

    .mobile-menu-title::after {
        content: '';
        position: absolute;
        right: 28px;
        top: 50%;
        width: 8px;
        height: 8px;
        margin-top: -6px;
        border-right: 2px solid var(--text-muted);
        border-bottom: 2px solid var(--text-muted);
        transform: rotate(-45deg);
        transition: transform 0.2s ease;
    }

    .mobile-menu-section[open] .mobile-menu-title::after {
        margin-top: -2px;
        transform: rotate(45deg);
    }

    .mobile-menu-section[open] .mobile-menu-title {
        color: var(--primary);
    }

    .mobile-menu-section ul {
        padding-bottom: 8px;
    }

    .mobile-flag-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        padding: 32px 24px 24px;
        margin-top: 16px;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .mobile-flag-img {
        width: 120px;
        height: auto;
        border-radius: 3px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .mobile-flag-text {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--text-muted);
    }

    .mobile-menu ul {
        list-style: none;
    }

    .mobile-menu ul li a {
        display: block;
        padding: 14px 24px;
        text-decoration: none;
        color: var(--text-main);
        font-size: 16px;
        font-weight: 500;
        transition: background 0.15s, color 0.15s;
    }

    .mobile-menu ul li a:hover {
        background: rgba(30, 77, 43, 0.05);
        color: var(--primary);
    }

    /* Backdrop */
    body.no-scroll {
        overflow: hidden;
    }

    body.no-scroll::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 199;
        animation: backdrop-fade 0.3s ease;
    }
}

@keyframes backdrop-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}


/* ===== style/body/layout.css ===== */
/* Layout: main-wrapper — повноширинний flex-item у body, тримає футер внизу.
   Центрування контенту робить <main> як звичайний block-level елемент через
   margin auto. Це надійніше, ніж автомаржини на flex-item у column-флексі —
   на 4K browser некоректно центрував їх. */
.main-wrapper {
    flex: 1;
    width: 100%;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 105px 80px 60px;
}

@media (min-width: 768px) and (max-width: 1199px) {
    main {
        padding: 60px 36px 40px;
    }
}

@media (max-width: 767px) {
    main {
        padding: 24px 20px;
    }
}


/* ===== style/body/components.css ===== */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: #fff;
    color: var(--primary);
}

.btn-primary:hover {
    background: #b8e0c0;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-lg {
    padding: 20px 44px;
    font-size: 16px;
}

/* PDF download link */
.pdf-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.pdf-link:hover {
    text-decoration: underline;
}

.pdf-icon {
    flex-shrink: 0;
    display: block;
}

/* Section title (used inside views) */
.section-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 50px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

/* Contact card (used in contacts, zakupivli, sertyfikaty) */
.contact-card {
    padding: 24px;
    background: #fcfcfc;
    border: 1px solid var(--border);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    line-height: 1.3;
}

.contact-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 10px;
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

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

@media (max-width: 767px) {
    .section-title {
        font-size: 16px;
        margin-top: 40px;
        margin-bottom: 16px;
        letter-spacing: 0.8px;
    }

    .btn {
        padding: 16px 24px;
        font-size: 13px;
    }

    .btn-lg {
        padding: 16px 24px;
        font-size: 14px;
    }

    .contact-card h3 {
        font-size: 15px;
    }
}

/* Privacy / legal pages: підзаголовки секцій і списки.
   Стиль свідомо стриманий — це юридичний текст, не маркетинг. */
.privacy-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 22px;
    margin-bottom: 10px;
}

.privacy-list {
    list-style: disc;
    padding-left: 24px;
    margin: 8px 0 16px;
    max-width: 900px;
    color: #4a5568;
    font-size: 16px;
    line-height: 1.7;
}

.privacy-list li {
    margin-bottom: 6px;
}

.privacy-list li code,
.description code {
    background: #f1f5f9;
    padding: 1px 6px;
    border-radius: 4px;
    font-family: Consolas, 'SF Mono', Menlo, monospace;
    font-size: 14px;
    color: var(--primary);
}

.privacy-effective-date {
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
}

@media (max-width: 767px) {
    .privacy-subtitle {
        font-size: 16px;
        margin-top: 18px;
    }

    .privacy-list {
        font-size: 14px;
        padding-left: 20px;
    }
}

/* Спільне оформлення карток (каталог продукції + блок проектів).
   Page-стилі додають flex direction, padding, типографіку. */
.product-card-catalog,
.project-card {
    background: #fcfcfc;
    border: 1px solid var(--border);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card-catalog:hover,
.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(30, 77, 43, 0.1);
}

.product-card-catalog .product-card-media img,
.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox — повноекранне збільшення зображень при кліку.
   Розмітка створюється з JS при першому кліку; CSS-стан керується
   класом .is-open на оверлеї. */
.lightbox-img {
    cursor: zoom-in;
}

.lightbox-img:hover {
    opacity: 0.92;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
    padding: 60px 40px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 767px) {
    .lightbox {
        padding: 50px 16px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }
}


/* ===== style/body/footer.css ===== */
footer {
    background: var(--primary);
    color: #fff;
    margin-top: auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 50px 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .footer-uniplyt-logo {
    width: 140px;
}

.footer-made-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-flag {
    display: block;
    width: 100px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.footer-made {
    color: rgba(255, 255, 255, 0.85);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-main .footer-col-fsc-mobile {
    display: none;
}

.footer-brand + .footer-main {
    padding-top: 24px;
}

.footer-main {
    display: flex;
    gap: 40px;
    padding: 50px 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.footer-text {
    flex: 1;
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-text .footer-col {
    flex: 1;
}

.footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-col p {
    font-size: 15px;
    line-height: 1.5;
    color: #fff;
    margin: 0;
}

.footer-col a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 0.75;
}

.footer-col-fsc {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-uniplyt-logo {
    display: block;
    width: 110px;
}

.footer-uniplyt-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.footer-fsc {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s;
}

.footer-fsc img {
    display: block;
    height: 110px;
    width: auto;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
    transition: box-shadow 0.2s;
}

.footer-fsc-code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-fsc:hover {
    transform: translateY(-2px);
}

.footer-fsc:hover img {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Контент стискається у 1200px на широких екранах, border-top йде на всю ширину. */
    padding: 18px max(80px, calc((100% - 1200px) / 2));
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-legal-col {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-policy {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 1px;
    transition: color 0.2s, border-color 0.2s;
}

.footer-policy:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Планшет 768-1199: текст у 2×2 (flex-wrap), FSC справа — щоб не лишався пустий центр. */
@media (min-width: 768px) and (max-width: 1199px) {
    .footer-main {
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
        padding: 50px 60px 40px;
    }

    .footer-text {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 28px 50px;
    }

    .footer-text .footer-col {
        flex: 1 1 calc(50% - 25px);
    }

    .footer-bottom {
        padding: 18px 60px;
    }
}

/* Мобілка <768: текст стовпцем, FSC справа. */
@media (max-width: 767px) {
    .footer-brand,
    .footer-main .footer-col-fsc-desktop {
        display: none;
    }

    .footer-main .footer-col-fsc-mobile {
        display: flex;
        flex: 0 0 auto;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .footer-main {
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
        padding: 40px 24px 28px;
    }

    .footer-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .footer-fsc img {
        height: 90px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 16px 24px;
        font-size: 12px;
    }

    .footer-legal {
        width: 100%;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-legal-col {
        flex-direction: column;
        gap: 2px;
        text-align: left;
    }

    .footer-legal-col:last-child {
        text-align: right;
    }

    .footer-legal-sep {
        display: none;
    }
}


/* ===== style/body/fraud-modal.css ===== */
/* Антифрод-модалка. Дефолтно прихована — показується додаванням класу
   .show-fraud-modal на <html> (це робить inline-скрипт у <head>, до першого фарбу,
   щоб у вже бачивших користувачів модалка не миготіла). */

.fraud-modal {
    position: fixed;
    inset: 0;
    /* Темна заливка — фолбек для браузерів без backdrop-filter (~5%) */
    background: rgba(15, 23, 42, 0.55);
    /* Розмиття бекграунду: візуально гасить недозавантажений сайт за модалкою,
       працює як "загрузочний екран" на повільних з'єднаннях. saturate(0.7)
       додатково знебарвлює фон, щоб око не чіплялось за яскраві елементи. */
    backdrop-filter: blur(10px) saturate(0.7);
    -webkit-backdrop-filter: blur(10px) saturate(0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}

/* Якщо blur підтримується — заливку можна зробити легшою, бо blur і так гасить вміст.
   Інакше залишаємо щільнішу темну заливку (фолбек вище). */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .fraud-modal {
        background: rgba(15, 23, 42, 0.35);
    }
}

html.show-fraud-modal .fraud-modal {
    display: flex;
}

html.show-fraud-modal {
    overflow: hidden;
}

.fraud-modal-card {
    background: #fff;
    border-radius: 14px;
    max-width: 580px;
    width: 100%;
    padding: 36px 40px 28px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    margin: auto;
}

.fraud-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 20px;
}

.fraud-modal-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    /* Forces colored emoji rendering (а не моно-text-style) */
    font-variant-emoji: emoji;
}

.fraud-modal-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-main);
    margin-bottom: 24px;
}

.fraud-modal-body p + p {
    margin-top: 14px;
}

.fraud-modal-body em {
    font-style: italic;
    color: #475569;
}

.fraud-modal-body code {
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: Consolas, 'SF Mono', Menlo, monospace;
    font-size: 13.5px;
    color: var(--primary);
}

.fraud-modal-phone {
    text-align: center;
    margin-top: 18px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.fraud-modal-phone a {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 0.3px;
}

.fraud-modal-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.fraud-modal-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    transition: background 0.18s;
}

.fraud-modal-btn:hover {
    background: #163921;
}

.fraud-modal-btn:focus-visible {
    /* Білий outline всередині зеленої кнопки — щоб був видимий контраст */
    outline: 3px solid #fff;
    outline-offset: -6px;
}

@media (max-width: 767px) {
    .fraud-modal {
        padding: 16px;
    }

    .fraud-modal-card {
        padding: 28px 22px 22px;
        border-radius: 12px;
    }

    .fraud-modal-title {
        font-size: 18px;
        gap: 10px;
        margin-bottom: 16px;
    }

    .fraud-modal-icon {
        font-size: 22px;
    }

    .fraud-modal-body {
        font-size: 14px;
        line-height: 1.6;
    }

    .fraud-modal-phone a {
        font-size: 17px;
    }

    .fraud-modal-btn {
        padding: 13px;
        font-size: 14px;
    }
}


/* ===== style/pages/home.css ===== */
/* ========== HERO SLIDER (full-bleed, body-level) ==========
   Слайдер живе одразу під хедером, на всю ширину viewport, без обрізань.
   На MPA він фізично присутній лише на головній — інших сторінок не стосується. */
.hero-slider {
    position: relative;
    width: 100%;
    height: 620px;
    overflow: hidden;
    background: #1e4d2b;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* Перший слайд hero — окрема картинка для мобільного (легша) і десктопу.
   Браузер вибере одну з двох через media-query, преlosadi'тиме саме її. */
.slide[data-slide="0"] {
    background-image: url('/image/neutral-forest.jpg');
}
@media (max-width: 767px) {
    .slide[data-slide="0"] {
        background-image: url('/image/neutral-forest-mobile.jpg');
    }
}

/* Темний градієнт-оверлей поверх фото — щоб білий текст читався на будь-якій картинці */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(30, 77, 43, 0.5) 60%,
        rgba(0, 0, 0, 0.4) 100%);
}

.slide-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    max-width: 820px;
    padding: 0 60px;
}

.slide-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.slide-subtitle {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 36px;
    opacity: 0.95;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.slide-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Стрілки навігації по краях слайдера */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    z-index: 3;
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    padding: 0 0 4px;
    backdrop-filter: blur(8px);
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.slider-prev { left: 40px; }
.slider-next { right: 40px; }

/* Точки знизу */
.slider-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background 0.3s, width 0.3s, border-radius 0.3s;
    padding: 0;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.slider-dot.is-active {
    background: #fff;
    width: 36px;
    border-radius: 6px;
}

/* ========== Stats strip (всередині слайду 1, поверх фото) ==========
   Три факти-цифри між H1 і кнопками на першому слайді hero.
   Без карткового фону — текст напряму на фото (як H1 і кнопки). */
.hero-stats-strip {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin: 0 auto 36px;
}

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

.hero-stat-num {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -1px;
    margin-bottom: 6px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* CTA block */
.cta-block {
    margin-top: 40px;
    padding: 60px 50px;
    background: #fcfcfc;
    border: 1px solid var(--border);
    border-left: 6px solid var(--primary);
    border-radius: 10px;
    text-align: center;
}

.cta-block h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-block p {
    font-size: 17px;
    line-height: 1.6;
    color: #4a5568;
    max-width: 640px;
    margin: 0 auto 28px;
}

.cta-block .btn-primary {
    background: var(--primary);
    color: #fff;
}

.cta-block .btn-primary:hover {
    background: #2d6a3e;
}

/* Quick-links — 4 dark-green access tiles, видно на всіх екранах.
   Flex-wrap: на ПК і планшеті 2×2 (кожна картка 50%), на мобілі — стовпцем. */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 50px 0;
}

.quick-link {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    flex-direction: column;
    padding: 32px 30px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    position: relative;
    min-height: 180px;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.quick-link-alt {
    background: linear-gradient(135deg, #2d6a3e 0%, #3a7d4a 100%);
}

.quick-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(30, 77, 43, 0.22);
}

.quick-link-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    opacity: 0.7;
    margin-bottom: 14px;
}

.quick-link h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #fff;
}

.quick-link-meta {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: auto;
}

.quick-link-arrow {
    font-size: 28px;
    margin-top: 18px;
    align-self: flex-start;
    transition: transform 0.2s;
}

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

/* ========== TABLET / COMPACT DESKTOP (768 – 1199) ==========
   Між мобілкою і повним десктопом — переходна зона: всі секції візуально
   зменшуємо, щоб лізли і виглядали збалансовано. Стрілки слайдера ближче
   до краю, hero-stats збитіше. */
@media (min-width: 768px) and (max-width: 1199px) {
    .hero-slider {
        height: 520px;
    }

    .slide-content {
        max-width: 660px;
        padding: 0 32px;
    }

    .slide-title {
        font-size: 36px;
        margin-bottom: 18px;
    }

    .slide-subtitle {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .slider-arrow {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .slider-prev { left: 24px; }
    .slider-next { right: 24px; }

    .slider-dots {
        bottom: 24px;
    }

    /* Stats strip (всередині слайду 1) */
    .hero-stats-strip {
        gap: 32px;
        margin: 0 auto 28px;
    }

    .hero-stat-num {
        font-size: 36px;
    }

    .hero-stat-label {
        font-size: 11px;
    }

    /* CTA block */
    .cta-block {
        padding: 40px 32px;
    }

    .cta-block h2 {
        font-size: 26px;
    }

    .cta-block p {
        font-size: 15px;
    }
}

/* ========== MOBILE (≤ 767px) ==========
   Ритм: 40px між секціями, 16px між елементами, 24px внутрішній паддінг */
@media (max-width: 767px) {
    /* Hero slider — компактніше, без стрілок (свайп замість них) */
    .hero-slider {
        height: 480px;
    }

    .slide-content {
        padding: 0 24px;
    }

    .slide-title {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 16px;
        letter-spacing: -0.5px;
    }

    .slide-subtitle {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .slide-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .slide-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* На мобілі стрілки заважають, користувач свайпає */
    .slider-arrow {
        display: none;
    }

    .slider-dots {
        bottom: 20px;
    }

    /* Stats strip на мобілі (всередині слайду 1) */
    .hero-stats-strip {
        gap: 18px;
        margin: 0 auto 24px;
    }

    .hero-stat-num {
        font-size: 28px;
    }

    .hero-stat-label {
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    /* Quick-links — показуємо тільки на мобілі */
    .quick-links {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin: 40px 0;
    }

    .quick-link {
        flex: 1 1 auto;
        padding: 24px;
        min-height: auto;
    }

    .quick-link h3 {
        font-size: 20px;
    }

    .quick-link-meta {
        font-size: 13px;
    }

    .quick-link-arrow {
        font-size: 22px;
        margin-top: 16px;
    }

    /* CTA */
    .cta-block {
        margin-top: 40px;
        padding: 24px;
    }

    .cta-block h2 {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .cta-block p {
        font-size: 15px;
        margin-bottom: 24px;
    }
}


/* ===== style/pages/product.css ===== */
/* Заголовок по центру — на всіх сторінках розділу «Продукція». */
.product-title-center {
    text-align: center;
}

/* Шахматка: фото + текст поруч. Сторона фото визначається порядком
   у HTML — щоб фото було справа, текст пишемо першим, фото другим. */
.product-stagger {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Stagger-секція як окремий блок сторінки (не продовження
   вступного тексту) — з відступом зверху, як у решти секцій. */
.product-stagger-gap {
    margin-top: 64px;
}

.stagger-row {
    display: flex;
    align-items: flex-start;
    gap: 48px;
}

/* Коли текстова колонка вища за фото (напр. дві підсекції в колонці) —
   центруємо фото по висоті тексту. Flex перераховує це на кожній
   ширині екрана, тож фіксовані відступи не потрібні. На мобільному
   рядок стає колонкою — правило там ні на що не впливає. */
.stagger-row-center {
    align-items: center;
}

.stagger-media,
.stagger-text {
    flex: 1 1 50%;
    min-width: 0;
}

.stagger-media {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.stagger-media img {
    width: 100%;
    height: 380px;
    display: block;
    object-fit: cover;
}

.stagger-caption {
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    background: #fff;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
}

.stagger-text h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

/* Другий заголовок підсекції в тій самій текстовій колонці —
   відділяємо від абзацу попередньої підсекції. */
.stagger-text p + h2,
.stagger-text ul + h2 {
    margin-top: 32px;
}

.stagger-text p {
    font-size: 19px;
    line-height: 1.7;
    color: #4a5568;
}

.stagger-text p + p {
    margin-top: 14px;
}

.stagger-text p,
.product-lead,
.product-features p {
    text-indent: 32px;
}

/* Службовий рядок у текстовій колонці без червоного рядка — підпис до
   списку або технічна вказівка, а не абзац опису продукту. */
.stagger-text p.list-lead,
.stagger-text p.flush {
    text-indent: 0;
}

.stagger-text ul {
    margin-top: 12px;
    padding-left: 22px;
    color: #4a5568;
    line-height: 1.7;
    font-size: 19px;
}

.stagger-text ul li {
    margin-bottom: 6px;
}

.product-lead {
    margin-top: 32px;
    font-size: 19px;
    line-height: 1.7;
    color: #4a5568;
}

/* Абзац без червоного рядка. Без відступу абзаци гірше
   відділяються один від одного, тому такий абзац додатково
   отримує проміжок зверху. */
.product-lead-flush {
    text-indent: 0;
    margin-top: 24px;
}

/* Перелік усередині вступного блоку. text-indent від .product-lead
   успадковується у списки — тут скидаємо його. */
.product-lead ul {
    margin: 12px 0 14px;
    padding-left: 24px;
    list-style: disc;
    text-indent: 0;
}

.product-lead ul li {
    margin-bottom: 6px;
}

.product-meta {
    margin-top: 8px;
    font-size: 14px;
    color: #718096;
    font-style: italic;
}

.product-lead p {
    margin-bottom: 14px;
}

.product-lead p:last-child {
    margin-bottom: 0;
}

.stagger-text a,
.product-lead a {
    color: var(--primary);
    text-decoration: underline;
}

.stagger-text a:hover,
.product-lead a:hover {
    text-decoration: none;
}

/* Газетна верстка: фото обтікається текстом. Текст починається збоку
   від фото, а коли фото закінчується — продовжується на повну ширину.
   ::after скидає обтікання, щоб кнопка нижче стала під блоком. */
/* Вступний рядок прямо посилається на фото («На фото — ...»), тож блок
   тримаємо щільно під ним — без великого відступу. */
.product-article {
    margin-top: 8px;
}

/* Сторінка «Історія»: показуємо АБО скан сторінки книги (десктоп ≥1024px),
   АБО типографічний текст (планшет/мобілка <1024px). Скан нечитабельний на
   вузьких екранах, а на широких — це найкрасивіший спосіб подачі. */
.history-scan {
    display: block;
    width: 100%;
    margin: 16px 0 24px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

/* На сторінці історії заголовок розділу теж по центру (під ним — скан або текст). */
.history-page .product-article h2 {
    text-align: center;
}

@media (max-width: 1023px) {
    .history-scan {
        display: none;
    }
}

@media (min-width: 1024px) {
    .history-text {
        display: none;
    }
}

.product-article::after {
    content: "";
    display: block;
    clear: both;
}

.product-article-photo {
    float: left;
    width: 440px;
    max-width: 45%;
    margin: 6px 32px 14px 0;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.product-article p {
    font-size: 19px;
    line-height: 1.7;
    color: #4a5568;
    text-indent: 32px;
}

.product-article p + p {
    margin-top: 14px;
}

/* Короткі завершальні рядки — без червоного рядка (це вже не газетний
   абзац, а окремий короткий акцент). */
.product-article p.flush {
    text-indent: 0;
}

@media (max-width: 767px) {
    /* На вузькому екрані обтікання тісне — фото стає на повну ширину. */
    .product-article-photo {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 16px 0;
    }

    .product-article p {
        font-size: 16px;
    }

    .product-stagger {
        gap: 32px;
        margin-top: 24px;
    }

    .stagger-row {
        flex-direction: column;
        gap: 20px;
    }

    .stagger-media {
        width: 100%;
    }

    .stagger-media img {
        height: 220px;
    }

    .stagger-text h2 {
        font-size: 20px;
    }

    .stagger-text p,
    .stagger-text ul {
        font-size: 15px;
    }
}

.product-specs {
    margin-top: 64px;
}

.product-specs h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Пояснювальний рядок між заголовком секції та таблицею. */
.product-specs p {
    font-size: 19px;
    line-height: 1.7;
    color: #4a5568;
    text-indent: 32px;
    margin-bottom: 20px;
}

.spec-table-scroll {
    overflow-x: auto;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 520px;
}

.spec-table th,
.spec-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    color: #4a5568;
}

.spec-table thead th {
    background: #f4f7f5;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 2px solid #cbd5e0;
}

.spec-table th[colspan],
.spec-table td[colspan] {
    text-align: center;
}

.spec-table tbody td:first-child {
    font-weight: 500;
    color: #2d3748;
    width: 44%;
}

/* Таблиця з трьома стовпцями (Пиломатеріали) — перша колонка
   вужча, ніж у звичайній двостовпцевій таблиці характеристик. */
.spec-table-3col tbody td:first-child {
    width: 16%;
}

/* Таблиця, що стискається до свого вмісту, а не розтягується на всю
   ширину (RUF: поряд із фото). Без min-width — тому горизонтального
   скролу не виникає, а сама таблиця виходить компактнішою. */
.spec-table-auto {
    width: auto;
    min-width: 0;
}

.spec-table-auto tbody td:first-child {
    width: 220px;
}

/* Фото поряд із таблицею показників. На десктопі (контент ~1040px)
   фото займає 380px, таблиці лишається ~620px — цього вистачає.
   Нижче 1200px місця замало, тож блок стає стовпцем. */
.specs-with-photo {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.specs-photo {
    flex: 0 0 380px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.specs-photo img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.specs-with-photo .spec-table-scroll {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 1199px) {
    .specs-with-photo {
        flex-direction: column;
        gap: 20px;
    }

    .specs-photo {
        flex: 1 1 auto;
    }
}

.product-features {
    margin-top: 56px;
}

.product-features h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.product-features p {
    font-size: 19px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 8px;
}

/* Рядок, що вводить список одразу під собою — без червоного рядка. */
.product-features p.flush {
    text-indent: 0;
}

.product-features ul {
    list-style: disc;
    padding-left: 24px;
    color: #4a5568;
    line-height: 1.8;
    font-size: 19px;
}

/* Технічна примітка-рядок під блоком (напр. вказівка з експлуатації).
   Окреме коротке речення — дрібніше за основний текст і без червоного
   рядка: це службова вказівка, а не абзац опису продукту. */
.product-note {
    margin-top: 56px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-main);
}


@media (max-width: 767px) {
    .product-specs,
    .product-stagger-gap {
        margin-top: 48px;
    }

    /* Службовий рядок після фото-блоку: на мобільному 56px завеликі. */
    .product-note {
        margin-top: 28px;
    }

    .product-lead,
    .product-features p,
    .product-features ul,
    .product-specs p {
        font-size: 16px;
    }

    .product-specs h2,
    .product-features h2 {
        font-size: 20px;
    }

    .spec-table th,
    .spec-table td {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* Catalog "сітка" — два стовпчики на повному, один на мобілі.
   Реалізовано на flexbox, без display:grid і без fr-юнітів. */
.products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
}

.products-grid > * {
    flex: 1 1 calc(50% - 12px);
    min-width: 280px;
}

.product-card-catalog {
    display: flex;
    flex-direction: column;
}

.product-card-catalog .product-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef3ef;
}

.product-card-catalog .product-card-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-card-catalog .product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.product-card-catalog .product-card-media a:hover img {
    transform: scale(1.04);
}

.product-card-catalog .product-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card-catalog h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.product-card-catalog p {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    margin-bottom: 16px;
    flex: 1;
}

.product-card-link {
    align-self: flex-start;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.product-card-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .products-grid {
        gap: 16px;
        margin-top: 24px;
    }

    .products-grid > * {
        flex: 1 1 100%;
        min-width: 0;
    }

    .product-card-catalog h3 {
        font-size: 18px;
    }
}


/* ===== style/pages/projects.css ===== */
.projects-grid {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.project-card {
    display: flex;
    align-items: stretch;
}

.project-media {
    flex-shrink: 0;
    width: 320px;
    overflow: hidden;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    box-sizing: border-box;
}

.project-body {
    flex: 1;
    padding: 36px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
}

.project-card h3 a {
    color: inherit;
    text-decoration: none;
}

.project-card h3 a:hover {
    text-decoration: underline;
}

.project-card p {
    font-size: 15px;
    line-height: 1.65;
    color: #4a5568;
    margin-bottom: 18px;
    max-width: 720px;
}

.project-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.project-link:hover {
    text-decoration: underline;
}

/* Кнопка переходу на зовнішній сайт партнерського напрямку.
   Стоїть в кінці контенту /projects/<brand>/ як головний CTA. */
.external-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 48px;
    padding: 16px 32px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: 0.2px;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.external-cta:hover {
    background: #163a26;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(30, 77, 43, 0.18);
}

.external-cta-arrow {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 767px) {
    .external-cta {
        margin-top: 32px;
        padding: 14px 24px;
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .projects-grid {
        gap: 16px;
        margin-top: 24px;
    }

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

    .project-media {
        width: 100%;
        background: transparent;
        padding: 0;
    }

    .project-media img {
        width: 100%;
        height: auto;
        object-fit: unset;
    }

    .project-body {
        padding: 24px;
    }

    .project-card h3 {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .project-card p {
        font-size: 14px;
        margin-bottom: 16px;
    }
}


/* ===== style/pages/contacts.css ===== */
.contacts-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.contacts-grid > * {
    flex: 1;
    min-width: 220px;
}

@media (max-width: 767px) {
    .contacts-grid {
        gap: 16px;
    }

    .contacts-grid > * {
        flex: 1 1 100%;
        min-width: 0;
    }
}


/* ===== style/pages/zakupivli.css ===== */
.info-blocks {
    margin-top: 70px;
    display: flex;
    gap: 40px;
}

.info-blocks > * {
    flex: 1;
}

.info-block h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary);
}

.purchase-list {
    list-style: none;
}

.purchase-list li {
    padding: 12px 0 12px 22px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    position: relative;
}

.purchase-list li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateY(-50%);
}

@media (max-width: 767px) {
    .info-blocks {
        flex-direction: column;
        gap: 40px;
        margin-top: 40px;
    }
}

.finance-back {
    margin-bottom: 24px;
    font-size: 15px;
}

.finance-back a {
    color: var(--text-muted);
    text-decoration: none;
}

.finance-back a:hover {
    color: var(--primary);
}

.finance-archive-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.finance-archive-link:hover {
    text-decoration: underline;
}

.finance-year {
    margin-top: 48px;
}

.finance-year h2 {
    color: var(--primary);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.finance-year ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.finance-year ul li {
    flex: 1 1 360px;
    min-width: 0;
}

.finance-year .pdf-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-main);
    font-weight: 400;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: background 0.15s, border-color 0.15s;
}

.finance-year .pdf-link:hover {
    background: #f4f7f5;
    border-color: var(--primary);
    text-decoration: none;
}

.finance-year .pdf-link img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

