/* =====================================================================
   f4l-site.css - Изолированные стили редизайна acrylglas-plexiglas-schilder.de
   ===================================================================== */

:root {
    --f4l-navy: #0f172a;
    --f4l-text: #1e293b;
    --f4l-muted: #64748b;
    --f4l-line: #e2e8f0;
    --f4l-orange: #e0562c;
    --f4l-orange-d: #c8451d;
    --f4l-blue: #1769c9;
    --f4l-blue-d: #0b5fb3;
    --f4l-green: #5cb85c;
    --f4l-green-d: #4cae4c;
    --f4l-bg: #ffffff;
    --f4l-box-gray: #e2e7ee;
    --f4l-bar: #3b4656;
    --f4l-bar-active: #27303f;
    --f4l-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    --f4l-block-shadow: 0 12px 36px rgba(15, 23, 42, 0.09), 0 2px 10px rgba(15, 23, 42, 0.05);
    --f4l-radius: 14px;
    --f4l-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --bs-body-bg: #ffffff !important;
    --bs-body-bg-rgb: 255, 255, 255 !important;
}

html,
body,
body.bg-body,
.main-form {
    background-color: #ffffff !important;
    font-family: var(--f4l-font);
    color: var(--f4l-text);
}

.f4l-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- HEADER (ШАПКА САЙТА) ---------- */
.f4l-header {
    background: #ffffff;
    font-family: var(--f4l-font);
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--f4l-line);
}

.f4l-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.f4l-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none !important;
    color: var(--f4l-navy);
}

.f4l-brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: transparent !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f4l-brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.f4l-brand-title {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--f4l-navy);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.f4l-brand-sub {
    display: block;
    font-size: 12.5px;
    color: var(--f4l-muted);
    line-height: 1.3;
    margin-top: 2px;
}

.f4l-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.f4l-ts-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 14px;
    background: #ffffff;
    line-height: 1.15;
    white-space: nowrap;
}

.f4l-ts-stars {
    color: #f59e0b;
    font-size: 12px;
    letter-spacing: 1px;
}

.f4l-ts-score {
    color: var(--f4l-navy);
    font-weight: 800;
    font-size: 12px;
    margin-left: 4px;
}

.f4l-ts-label {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--f4l-muted);
}

.f4l-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--f4l-navy) !important;
    text-decoration: none !important;
    background: #ffffff;
    white-space: nowrap;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.f4l-cart:hover {
    border-color: var(--f4l-blue);
    background: #f8fafc;
}

.f4l-cart svg {
    width: 18px;
    height: 18px;
    color: #475569;
}

/* ---------- НАВИГАЦИОННАЯ ПАНЕЛЬ ---------- */
.f4l-nav {
    background: var(--f4l-bar);
    font-family: var(--f4l-font);
    position: relative;
}

.f4l-nav-inner {
    position: relative;
}

.f4l-nav-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.f4l-nav-burger {
    display: none;
    cursor: pointer;
    padding: 11px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.f4l-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.f4l-nav-list > li {
    margin: 0;
    position: relative;
}

.f4l-nav-list > li.f4l-nav-spacer {
    flex: 1;
}

.f4l-nav-list > li > a,
.f4l-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap;
    background: none;
    border: 0;
    cursor: pointer;
    line-height: 1.3;
    transition: background-color 0.12s ease;
}

.f4l-nav-list > li > a:hover,
.f4l-drop-btn:hover,
.f4l-has-drop.open > .f4l-drop-btn {
    background: rgba(255, 255, 255, 0.08);
}

.f4l-nav-list > li > a.is-active {
    background: var(--f4l-bar-active);
    box-shadow: inset 0 -3px 0 var(--f4l-orange);
}

.f4l-drop-btn svg {
    width: 12px;
    height: 12px;
    transition: transform 0.12s ease;
}

.f4l-has-drop.open > .f4l-drop-btn svg,
.f4l-has-drop:hover > .f4l-drop-btn svg {
    transform: rotate(180deg);
}

/* Выпадающий список (Branchen & Beispiele) */
.f4l-drop {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 260px;
    background: #ffffff;
    border: 1px solid var(--f4l-line);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.15);
    padding: 8px !important;
    list-style: none;
    margin: 0;
    z-index: 200;
}

.f4l-drop li {
    margin: 0;
}

.f4l-drop a {
    display: block;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--f4l-text) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.f4l-drop a:hover {
    background: #f1f5f9;
    color: var(--f4l-orange) !important;
}

/* 3-колоночное мега-меню (Info & Montage) */
.f4l-mega {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: auto;
    min-width: 680px;
    max-width: calc(100vw - 32px);
    background: #ffffff;
    border: 1px solid var(--f4l-line);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
    padding: 20px 26px;
    z-index: 210;
}

.f4l-mega-grid {
    display: grid;
    grid-template-columns: auto auto auto;
    gap: 36px;
}

.f4l-mega-col-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--f4l-line);
    white-space: nowrap;
}

.f4l-mega-col-title--orange { color: var(--f4l-orange); }
.f4l-mega-col-title--blue   { color: var(--f4l-blue); }
.f4l-mega-col-title--green  { color: #15803d; }

.f4l-mega-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.f4l-mega-list li {
    margin-bottom: 2px;
}

.f4l-mega-list a {
    display: block;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--f4l-text) !important;
    text-decoration: none !important;
    line-height: 1.35;
    white-space: nowrap;
}

.f4l-mega-list a:hover {
    background: #f1f5f9;
    color: var(--f4l-orange) !important;
}

@media (min-width: 1000px) {
    .f4l-has-drop:hover > .f4l-drop,
    .f4l-has-drop:focus-within > .f4l-drop,
    .f4l-has-drop.open > .f4l-drop {
        display: block;
    }
    .f4l-has-drop:hover > .f4l-mega,
    .f4l-has-drop:focus-within > .f4l-mega,
    .f4l-has-drop.open > .f4l-mega {
        display: block;
    }
}

/* ---------- МОДАЛЬНОЕ ОКНО ПРОСМОТРА ФОТО ---------- */
.img-modal.modal.fade .modal-dialog {
    transition: transform 0.1s ease-out;
}

.img-modal,
.img-modal .modal-dialog,
.img-modal .modal-content,
.img-modal .modal-body {
    cursor: pointer;
}

.img-modal #imgModalContainer {
    cursor: zoom-out;
    max-height: 86vh;
    width: auto;
}

/* ---------- ГЛАВНАЯ СТРАНИЦА (DEFAULT.ASPX) ---------- */
.f4l-home-hero {
    background: var(--f4l-box-gray);
    border-radius: 16px;
    padding: 30px 36px;
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 24px;
    box-shadow: var(--f4l-shadow);
}

.f4l-home-hero h1 {
    font-size: 2.3rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 14px 0;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.f4l-home-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 22px 0;
}

.f4l-home-bullets li {
    font-size: 1.02rem;
    font-weight: 700;
    color: #334155;
    line-height: 1.55;
    margin-bottom: 3px;
}

.f4l-home-ctas {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.f4l-btn-orange {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--f4l-orange);
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 11px 22px;
    border-radius: 9px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(224, 86, 44, 0.28);
    transition: background-color 0.12s ease;
    border: none;
    cursor: pointer;
}

.f4l-btn-orange:hover {
    background: var(--f4l-orange-d);
    color: #ffffff !important;
}

.f4l-btn-white-outline {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid #94a3b8;
    border-radius: 10px;
    padding: 8px 22px;
    text-decoration: none !important;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.f4l-btn-white-outline:hover {
    border-color: var(--f4l-navy);
    background: #f8fafc;
}

.f4l-btn-white-main {
    font-size: 0.94rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}

.f4l-btn-white-sub {
    font-size: 0.78rem;
    font-weight: 700;
    color: #15803d;
    line-height: 1.25;
    margin-top: 2px;
}

.f4l-home-hero-media {
    position: relative;
    background: #8fa0b8;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
}

.f4l-home-hero-media img {
    width: auto;
    max-width: 100%;
    max-height: 230px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    background: #ffffff;
}

.f4l-made-badge {
    position: absolute;
    left: -14px;
    bottom: 12px;
    background: #3f4756;
    color: #ffffff;
    padding: 9px 20px;
    border-radius: 10px;
    transform: rotate(-14deg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    text-align: center;
    line-height: 1.2;
}

.f4l-made-badge-top {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
}

.f4l-made-badge-sub {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    color: #f97316;
}

/* 3 карточки выбора оптики на Главной */
.f4l-optic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 28px;
}

.f4l-optic-card {
    background: #ffffff;
    border: 1px solid var(--f4l-line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--f4l-shadow);
    transition: border-color 0.12s ease;
}

.f4l-optic-card:hover {
    border-color: #cbd5e1;
}

.f4l-optic-img-wrap {
    background: var(--f4l-box-gray);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 215px;
}

.f4l-optic-img-wrap img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.f4l-optic-body {
    padding: 18px 22px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.f4l-optic-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
    margin: 0 0 8px 0;
}

.f4l-optic-desc {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.45;
    margin: 0 0 12px 0;
}

.f4l-optic-link {
    font-size: 0.92rem;
    font-weight: 700;
    color: #d97706 !important;
    text-decoration: none !important;
}

.f4l-optic-link:hover {
    color: var(--f4l-orange) !important;
    text-decoration: underline !important;
}

/* ---------- СТРАНИЦА КОНФИГУРАТОРА ---------- */
.f4l-conf-top-card {
    background: #ffffff;
    border: 1px solid var(--f4l-line);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.f4l-conf-h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--f4l-navy);
    margin: 0 0 2px 0;
    line-height: 1.2;
}

.f4l-conf-sub {
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.f4l-gratis-badge {
    border: 1.5px solid var(--f4l-orange);
    border-radius: 10px;
    padding: 5px 12px;
    text-align: center;
    background: #ffffff;
    flex-shrink: 0;
    line-height: 1.15;
    cursor: pointer;
    transition: background-color 0.12s ease;
    user-select: none;
}

.f4l-gratis-badge:hover,
.f4l-gratis-badge.offen {
    background: #fff7ed;
}

.f4l-gratis-top {
    font-size: 0.68rem;
    color: var(--f4l-muted);
    font-weight: 600;
}

.f4l-gratis-main {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--f4l-orange);
}

.f4l-gratis-bot {
    font-size: 0.68rem;
    color: var(--f4l-muted);
    font-weight: 600;
}

.f4l-editor-banner {
    background: #ffffff;
    border: 1px solid var(--f4l-line);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.f4l-editor-banner-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--f4l-navy);
    margin: 0;
}

.f4l-editor-banner-sub {
    font-size: 0.95rem;
    font-weight: 500;
    color: #334155;
    margin: 0;
}

.f4l-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.f4l-trust-pill {
    background: #ffffff;
    border: 1px solid var(--f4l-line);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--f4l-navy);
    line-height: 1.2;
}

.f4l-main-photo-wrap {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--f4l-line);
    background: #f5f6f8;
    box-shadow: var(--f4l-shadow);
}

.f4l-main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.f4l-thumbs-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.f4l-thumb-nav {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.f4l-thumb-nav:hover {
    background: #f1f5f9;
    color: var(--f4l-navy);
}

.f4l-thumb-item {
    width: 64px;
    height: 45px;
    border: 1.5px solid var(--f4l-line);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    flex-shrink: 0;
}

.f4l-thumb-item.active {
    border: 2px solid var(--f4l-navy);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.f4l-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.f4l-usps-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.f4l-usp-card {
    background: #ffffff;
    border: 1px solid var(--f4l-line);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--f4l-shadow);
}

.f4l-usp-ic {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff4ee;
    color: var(--f4l-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.f4l-usp-ic svg {
    width: 18px;
    height: 18px;
}

.f4l-usp-t {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--f4l-navy);
    line-height: 1.2;
}

.f4l-usp-s {
    font-size: 0.76rem;
    color: var(--f4l-muted);
    line-height: 1.25;
    margin-top: 2px;
}

/* Правая панель конфигуратора */
.f4l-config-panel {
    background: #ffffff;
    border: 1.5px solid var(--f4l-line);
    border-radius: 16px;
    padding: 6px 20px 18px 20px;
    box-shadow: var(--f4l-shadow);
}

.f4l-tabs-bar {
    display: flex;
    border-bottom: 1px solid var(--f4l-line);
    margin-bottom: 10px;
}

.f4l-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 4px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--f4l-muted);
    text-align: center;
    border-right: 1px solid var(--f4l-line);
    cursor: pointer;
    line-height: 1.15;
    transition: color 0.12s ease;
}

.f4l-tab-btn:last-child {
    border-right: none;
}

.f4l-tab-btn.active {
    color: var(--f4l-orange);
    border-bottom: 2.5px solid var(--f4l-orange);
    margin-bottom: -1px;
}

.f4l-btn-blue-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--f4l-blue);
    color: #ffffff !important;
    border: 0;
    border-radius: 7px;
    padding: 7px 14px;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    line-height: 1.2;
    transition: background-color 0.12s ease;
}

.f4l-btn-blue-action:hover {
    background: var(--f4l-blue-d);
}

/* Тонкая зелёная кнопка на всю ширину блока в одну строку на всех трёх вкладках */
.f4l-btn-green-help {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    background: var(--f4l-green);
    color: #ffffff !important;
    border: 0;
    border-radius: 6px;
    padding: 5px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none !important;
    cursor: pointer;
    line-height: 1.25;
    transition: background-color 0.12s ease;
}

.f4l-btn-green-help:hover {
    background: var(--f4l-green-d);
}

/* 3 плитки скидок (300 / 800 / 2000 Euro Netto) */
.f4l-discount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.f4l-discount-tile {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 7px 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.f4l-discount-tile:hover {
    border-color: var(--f4l-blue);
    background: #f8fafc;
}

.f4l-discount-tile.active {
    border: 2px solid var(--f4l-orange);
    background: #fff7ed;
    box-shadow: 0 3px 10px rgba(224, 86, 44, 0.22);
}

.f4l-discount-tier {
    font-size: 0.74rem;
    color: var(--f4l-muted);
    font-weight: 600;
}

.f4l-discount-val {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--f4l-navy);
    margin-top: 1px;
}

.f4l-discount-val span {
    color: #16a34a;
}

/* Карточка с 3 зелёными галочками под конфигуратором */
.f4l-check-card {
    background: #ffffff;
    border: 1px solid var(--f4l-line);
    border-radius: 14px;
    padding: 14px 18px;
    margin-top: 12px;
    box-shadow: var(--f4l-shadow);
}

.f4l-check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.f4l-check-list li {
    position: relative;
    padding-left: 24px;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.4;
    margin-bottom: 5px;
}

.f4l-check-list li:last-child {
    margin-bottom: 0;
}

.f4l-check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: #16a34a;
    font-weight: 800;
}

/* Всплывающее окошко i-подсказок (.f4l-pop) */
.f4l-pop {
    position: absolute;
    z-index: 2050;
    width: 390px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
    padding: 16px 20px 15px 20px;
    font-size: 0.88rem;
    line-height: 1.52;
    color: #334155;
}

.f4l-pop p {
    margin: 0 0 8px 0;
}

.f4l-pop p:last-child {
    margin-bottom: 0;
}

.f4l-pop ul {
    padding-left: 18px;
    margin: 4px 0 8px 0;
}

.f4l-pop li {
    margin-bottom: 5px;
}

.f4l-pop a {
    color: var(--f4l-orange);
    font-weight: 700;
    text-decoration: none;
}

.f4l-pop a:hover {
    text-decoration: underline;
}

.f4l-pop-close {
    position: absolute;
    top: 6px;
    right: 10px;
    border: 0;
    background: none;
    font-size: 20px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}

.f4l-pop-close:hover {
    color: #0f172a;
}

/* ---------- 3 КОЛОНКИ В КАТЕГОРИЯХ ПРИМЕРОВ ---------- */
.f4l-example-col {
    margin-bottom: 20px;
}

@media (min-width: 992px) {
    .f4l-example-col {
        flex: 0 0 auto !important;
        width: 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

.f4l-example-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 4px;
}

.f4l-example-specs {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.84rem;
    line-height: 1.38;
    color: #1e293b;
}

.f4l-example-specs p,
.f4l-example-specs div {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.38;
}

.f4l-example-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--f4l-orange) !important;
    color: #ffffff !important;
    border: 0 !important;
    border-radius: 8px !important;
    padding: 9px 14px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    box-shadow: 0 3px 10px rgba(224, 86, 44, 0.25);
    transition: background-color 0.12s ease;
}

.f4l-example-btn:hover {
    background: var(--f4l-orange-d) !important;
    color: #ffffff !important;
}

/* ---------- БЕЛЫЕ ТЕКСТОВЫЕ БЛОКИ С ТЕНЬЮ И ИЛЛЮСТРАЦИЯМИ У КРАЯ ---------- */
.f4l-content-block {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 30px 36px !important;
    margin-bottom: 24px !important;
    box-shadow: var(--f4l-block-shadow) !important;
    border: 1px solid rgba(226, 232, 240, 0.75) !important;
    width: 100%;
}

.f4l-content-block-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    width: 100%;
}

.f4l-content-block--reverse .f4l-content-block-row {
    flex-direction: row-reverse;
}

.f4l-content-text {
    flex: 1 1 auto;
    min-width: 0;
    color: #334155;
    font-size: 0.98rem;
    line-height: 1.66;
}

.f4l-content-text h1,
.f4l-content-text h2,
.f4l-content-text h3,
.f4l-content-text h4,
.f4l-content-text h5 {
    color: #0f172a;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 12px;
    line-height: 1.28;
}

.f4l-content-text p:last-child,
.f4l-content-text ul:last-child {
    margin-bottom: 0;
}

/* Иллюстрация или фото всегда строго у правого или левого края блока */
.f4l-content-illus {
    flex: 0 0 260px;
    width: 260px;
    max-width: 260px;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.f4l-content-block--reverse .f4l-content-illus {
    margin-left: 0;
    margin-right: auto;
    align-items: center;
}

.f4l-content-illus > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--f4l-muted);
    font-size: 0.82rem;
    text-align: center;
    width: 100%;
    max-width: 250px;
}

.f4l-content-illus img,
.f4l-content-illus svg {
    width: 100%;
    max-width: 250px;
    max-height: 240px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

/* Уменьшение в 2 раза (worauf-beim-druck-achten, schilderhersteller) */
.f4l-content-illus img.f4l-illus-half {
    width: 125px !important;
    max-width: 125px !important;
    max-height: 120px !important;
    margin: 0 auto;
}

/* На /schilder-editor-hilfe.htm: 2 элемента с синими точками (п. 6 и п. 7) */
.f4l-content-illus img.f4l-illus-third {
    width: 92px !important;
    max-width: 92px !important;
    max-height: 90px !important;
    margin: 0 auto;
}

/* На /schilder-editor-hilfe.htm: единый размер всех остальных иллюстраций как в п. 9 */
.f4l-content-illus img.f4l-illus-editor-std {
    width: 175px !important;
    max-width: 175px !important;
    max-height: 165px !important;
    margin: 0 auto;
}

.f4l-block-cta-wrap {
    margin-top: 16px;
}

.f4l-block-top-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

/* ---------- КНОПКА ЗАКАЗА В WARENKORB ---------- */
.f4l-cart-orange-btn {
    background-color: var(--f4l-orange) !important;
    border-color: var(--f4l-orange) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(224, 86, 44, 0.25);
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

.f4l-cart-orange-btn:hover {
    background-color: var(--f4l-orange-d) !important;
    border-color: var(--f4l-orange-d) !important;
    color: #ffffff !important;
}








/* ---------- FOOTER ---------- */
footer.f4l-footer {
    display: block !important;
    margin-top: 20px !important;
    background: #f8fafc !important;
    border-top: 1px solid var(--f4l-line) !important;
    font-family: var(--f4l-font) !important;
    text-align: center !important;
    color: var(--f4l-text) !important;
    padding-bottom: 16px !important;
}

.f4l-footer-bar {
    background: var(--f4l-bar) !important;
    padding: 9px 12px !important;
    font-size: 13px !important;
    color: #ffffff !important;
}

.f4l-footer-bar a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.f4l-footer-bar a:hover {
    text-decoration: underline !important;
}

.f4l-footer-inner {
    display: block !important;
    padding: 12px 16px 8px 16px !important;
    background: #f8fafc !important;
}

.f4l-footer-inner p {
    display: block !important;
    margin: 0 0 6px 0 !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    color: #334155 !important;
}

.f4l-footer-inner a {
    color: #0f172a !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.f4l-footer-inner a:hover {
    color: var(--f4l-orange) !important;
    text-decoration: underline !important;
}

.f4l-sep {
    color: #94a3b8 !important;
    margin: 0 8px !important;
}








/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 999px) {
    .f4l-nav-burger {
        display: block;
    }
    .f4l-nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 12px;
    }
    .f4l-nav-toggle:checked ~ .f4l-nav-list {
        display: flex;
    }
    .f4l-nav-list > li.f4l-nav-spacer {
        display: none;
    }
    .f4l-drop,
    .f4l-mega {
        position: static;
        width: 100%;
        min-width: 0;
        box-shadow: none;
        border: 0;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        padding: 10px 14px !important;
    }
    .f4l-has-drop.open > .f4l-drop,
    .f4l-has-drop.open > .f4l-mega {
        display: block;
    }
    .f4l-mega-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .f4l-drop a,
    .f4l-mega-list a {
        color: #ffffff !important;
        white-space: normal;
    }
    .f4l-mega-col-title {
        color: #fdba74 !important;
        border-bottom-color: rgba(255, 255, 255, 0.15);
    }
}

@media (max-width: 991px) {
    .f4l-home-hero {
        grid-template-columns: 1fr;
        padding: 24px 20px;
    }
    .f4l-home-hero h1 {
        font-size: 1.85rem;
    }
    .f4l-made-badge {
        left: 10px;
    }
    .f4l-optic-grid,
    .f4l-trust-row,
    .f4l-usps-3 {
        grid-template-columns: 1fr;
    }
    .f4l-content-block {
        padding: 24px 22px !important;
    }
    .f4l-content-block-row,
    .f4l-content-block--reverse .f4l-content-block-row {
        flex-direction: column;
        gap: 20px;
    }
    .f4l-content-illus,
    .f4l-content-block--reverse .f4l-content-illus {
        flex: 0 0 auto;
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
        align-items: center;
    }
}

@media (max-width: 575px) {
    .f4l-brand-title {
        font-size: 15px;
    }
    .f4l-brand-sub,
    .f4l-ts-badge {
        display: none;
    }
    .f4l-discount-grid {
        grid-template-columns: 1fr;
    }
    .f4l-example-footer {
        flex-direction: column;
        align-items: stretch;
    }
}