@font-face {
    font-family: "Quasimoda";
    src: url("../fonts/Quasimoda/Quasimoda-Bold/Quasimoda-Bold.woff2") format("woff2"),
         url("../fonts/Quasimoda/Quasimoda-Bold/Quasimoda-Bold.woff") format("woff"),
         url("../fonts/Quasimoda/Quasimoda-Bold/Quasimoda-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Quasimoda";
    src: url("../fonts/Quasimoda/Quasimoda-Regular/Quasimoda-Regular.woff2") format("woff2"),
         url("../fonts/Quasimoda/Quasimoda-Regular/Quasimoda-Regular.woff") format("woff"),
         url("../fonts/Quasimoda/Quasimoda-Regular/Quasimoda-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* =====================================================
   Hörmann Storage Systems — hoermann-storage.css
   ===================================================== */

/* ---- Brand Color Overrides ---- */
.hoermann-article .section-title::after,
.hoermann-article .section-title::before {
    border-color: #004c8f;
}
.hoermann-article .dark-section .section-title::after,
.hoermann-article .dark-section .section-title::before {
    border-color: #e8a000;
}
.hoermann-article .main-article-section {
    border-color: #004c8f;
}
.hoermann-article .main-article-section::before,
.hoermann-article .main-article-section::after {
    display: none;
}
.hoermann-article .main-article-section > p:first-of-type::first-letter {
    color: #004c8f;
}
.hoermann-article .blue-text-block {
    background-color: #004c8f;
}
.hoermann-article a {
    color: #004c8f;
}
.hoermann-article .dark-section a {
    color: #e8c855;
}
.hoermann-article .section-title {
    font-family: 'Quasimoda', sans-serif;
}
.hoermann-article .big-points .point-column h3 {
    color: #004c8f;
}

/* ---- Hero ---- */
/* Use higher specificity than phoenix-3.css's .aubg-article .hero-section (0,2,0) */
.hoermann-article .hm-hero {
    background:
        linear-gradient(to bottom, rgba(0, 28, 62, 0.65) 0%, rgba(0, 28, 62, 0.4) 60%, rgba(0, 28, 62, 0.6) 100%),
        url('../images/hoermann/storage-hero.jpg') center 40% no-repeat !important;
    background-size: cover !important;
    height: 680px !important;
    padding: 60px 20px 180px !important;
    display: flex !important;
    align-items: flex-start !important;
}
.hm-logo-wrap {
    margin-bottom: 28px;
    text-align: center;
}
.hm-logo {
    height: 36px;
    width: auto;
    display: inline-block;
    opacity: 1;
    transition: opacity 0.2s ease;
}
.hm-logo-wrap a:hover .hm-logo {
    opacity: 0.7;
}
.hoermann-article.aubg-article .hm-hero h1 {
    font-family: 'Quasimoda', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.hm-hero .article-summary {
    color: rgba(255,255,255,0.92);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
@media (min-width: 992px) {
    .hoermann-article.aubg-article .hm-hero h1 {
        font-size: 3.2rem;
    }
    .hm-logo {
        height: 42px;
    }
}

/* ---- Dark Sections ---- */
.hm-dark {
    background: #00375e !important;
    min-height: auto;
}
.hm-dark .section-title,
.hm-dark p,
.hm-dark li {
    color: #fff;
}

/* ---- Badge ---- */
.hm-badge {
    display: inline-block;
    background: #e8a000;
    color: #fff;
    padding: 3px 12px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    border-radius: 2px;
}

/* ---- Advantages Strip ---- */
.hm-advantages-section {
    background: #f4f7fb;
    padding: 50px 20px 30px;
    margin-top: 40px;
}
.hm-advantages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1126px;
    margin: 0 auto;
}
.hm-adv-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    padding: 18px 20px 24px;
    text-align: center;
}
.hm-adv-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    color: #004c8f;
    flex-shrink: 0;
}
.hm-adv-icon svg {
    width: 100%;
    height: 100%;
}
.hm-adv-item p {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: #1a2a3a;
}
@media (min-width: 480px) {
    .hm-adv-item { width: 33.33%; }
}
@media (min-width: 992px) {
    .hm-adv-item {
        width: 16.66%;
        padding: 20px 18px 28px;
    }
    .hm-adv-icon { width: 64px; height: 64px; }
    .hm-adv-item p { font-size: 0.88rem; }
}

/* ---- Spec Boxes ---- */
.hm-specs-row {
    display: flex;
    gap: 16px;
    margin: 24px 0 0;
}
.hm-spec-box {
    flex: 1;
    padding: 16px 12px;
    background: rgba(0, 76, 143, 0.07);
    border-left: 4px solid #004c8f;
    text-align: center;
}
.hm-spec-box .hm-spec-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: #004c8f;
    line-height: 1;
    font-family: 'Quasimoda', sans-serif;
    white-space: nowrap;
}
.hm-spec-box p {
    font-size: 0.75rem;
    color: #555;
    margin: 6px 0 0;
    line-height: 1.35;
}
.hm-dark .hm-spec-box {
    background: rgba(255,255,255,0.1);
    border-left-color: #e8a000;
}
.hm-dark .hm-spec-box .hm-spec-num { color: #e8a000; }
.hm-dark .hm-spec-box p { color: rgba(255,255,255,0.7); }

/* ---- Spec List ---- */
.hm-spec-list {
    list-style: none !important;
    padding: 0;
    margin: 16px 0 80px;
}
.hm-spec-list li {
    list-style: none !important;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid rgba(0, 76, 143, 0.12);
    font-size: 0.92rem;
    position: relative;
    line-height: 1.5;
    color: #1a2a3a;
}
.hm-spec-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid #004c8f;
}
.hm-spec-list li:last-child { border-bottom: none; }
.hm-spec-list.on-dark li {
    color: rgba(255,255,255,0.9);
    border-bottom-color: rgba(255,255,255,0.15);
}
.hm-spec-list.on-dark li::before { border-left-color: #e8a000; }

/* ---- Section Images ---- */
.hm-section-img {
    width: 100%;
    display: block;
    margin-top: 20px;
    border-radius: 2px;
}

/* ---- Accessories Grid ---- */
.hm-accessories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.hm-accessories-grid img {
    width: 100%;
    display: block;
    border-radius: 2px;
}
@media (min-width: 768px) {
    .hm-accessories-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---- Sheds images grid (2 cols on mobile, 1 col tall on desktop inside article-right) ---- */
.hm-sheds-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 0;
}
.hm-sheds-grid img {
    width: 100%;
    display: block;
    border-radius: 2px;
}
@media (min-width: 992px) {
    .hm-sheds-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Accessories gallery (Принадлежности) ---- */

/* Right column — no overflow box, natural page scroll */
.hm-acc-right {
    /* nothing special — flows with the page */
}

/* Category label */
.hm-acc-cat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #004c8f;
    margin: 32px 0 14px;
    padding-left: 8px;
    border-left: 3px solid #004c8f;
}
.hm-acc-cat-label:first-child {
    margin-top: 0;
}

/* Grid: 3 cards per row */
.hm-acc-scroll {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 40px;
}

/* Individual accessory card — image on top, text below */
.hm-acc-item {
    flex: 0 0 calc(33.333% - 12px);
    margin: 0;
}
.hm-acc-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-radius: 3px;
    background: #f0f0f0;
}
.hm-acc-item figcaption {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #2a3a4a;
    padding-top: 8px;
}
.hm-acc-item figcaption strong {
    color: #004c8f;
    display: block;
    margin-bottom: 3px;
    font-size: 0.9rem;
}

/* Placeholder for items without a product photo */
.hm-acc-placeholder {
    width: 100%;
    height: 160px;
    background: #e8eef5;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hm-acc-placeholder::before {
    content: "—";
    font-size: 1.6rem;
    color: #b0bec5;
}

/* Hint text */
.hm-acc-hint {
    font-size: 0.72rem;
    color: #888;
    margin-top: 16px;
    letter-spacing: 0.04em;
}

/* ---- Intro section-title override (no side borders needed in main-article-section) ---- */
.hoermann-article .main-article-section .hm-intro-title {
    width: auto;
    min-height: auto;
    font-family: 'Quasimoda', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #004c8f;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    padding-right: 0;
}
.hoermann-article .main-article-section .hm-intro-title::before,
.hoermann-article .main-article-section .hm-intro-title::after {
    display: none;
}

/* ---- Color Palette ---- */
.hm-color-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}
.hm-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.hm-color-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.12);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.hm-color-label {
    font-size: 0.6rem;
    text-align: center;
    line-height: 1.25;
    max-width: 52px;
    color: #666;
}

/* ---- Icons in Dark Sections ---- */
.hm-spec-icon { width: 50px; height: 50px; }
.hoermann-article .hm-dark .icon-item p { color: rgba(255,255,255,0.9); }

/* ---- Warranty Section ---- */
.hm-warranty-section {
    background: #004c8f;
    padding: 70px 20px 80px;
    color: #fff;
    margin-top: 0;
}
.hm-warranty-inner {
    max-width: 1126px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}
.hm-warranty-years {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    color: #e8a000;
    font-family: 'Quasimoda', sans-serif;
    flex-shrink: 0;
}
.hm-warranty-text h2 {
    font-size: 1.5rem;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
    font-family: 'Quasimoda', sans-serif;
    letter-spacing: 0.02em;
}
.hm-warranty-text p {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}
.hm-warranty-text strong { color: #e8a000; }
@media (min-width: 768px) {
    .hm-warranty-inner {
        flex-direction: row;
        text-align: left;
        gap: 60px;
        align-items: center;
    }
    .hm-warranty-years { font-size: 9rem; }
}

/* ---- Section spacing tweaks ---- */
.hoermann-article .section { padding-top: 70px; }
.hoermann-article .dark-section { margin-top: 0; padding-top: 70px; padding-bottom: 50px; }
.hm-combine-section { padding-bottom: 80px; }
.hm-acc-section { padding-bottom: 80px; }

/* ---- Green sustainability strip ---- */
.hm-green-strip {
    background: #00375e;
    padding: 60px 20px 50px;
}
.hm-green-strip .small-inner-wrapper { max-width: 1126px; margin: 0 auto; }

/* =====================================================
   Desktop layout fixes — replace float columns with
   flexbox so article-right never overflows alongside
   article-left on 992-1100 px viewports.
   ===================================================== */
@media (min-width: 992px) {

    /* ----- Light sections: article-left/right are direct
             children of small-inner-wrapper ----- */
    .hoermann-article .section > .small-inner-wrapper {
        display: flex;
        align-items: flex-start;
        gap: 48px;
        width: 100%; /* ensure wrapper fills section even when article-right has minimal content */
    }
    .hoermann-article .section > .small-inner-wrapper > .article-left {
        float: none;
        flex: 0 0 auto;
        width: 42%;
        max-width: 480px;
    }
    .hoermann-article .section > .small-inner-wrapper > .article-right {
        float: none;
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    /* ----- Dark sections: article-left/right are inside
             an inner animate-block ----- */
    .hoermann-article .dark-section .small-inner-wrapper > .animate-block {
        display: flex;
        align-items: flex-start;
        gap: 48px;
    }
    .hoermann-article .dark-section .small-inner-wrapper > .animate-block > .article-left {
        float: none;
        flex: 0 0 auto;
        width: 42%;
        max-width: 480px;
    }
    .hoermann-article .dark-section .small-inner-wrapper > .animate-block > .article-right {
        float: none;
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }

    /* ----- blue-text-block inside article-right:
             fill the column width instead of fixed 525 px ----- */
    .hoermann-article .article-right .blue-text-block {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-top: 0;
    }

    /* ----- icons-wrapper: reset the negative margins that
             cause overflow in our layout ----- */
    .hoermann-article .icons-wrapper {
        margin-left: 0;
        margin-right: 0;
    }

    /* ----- hint-wrapper positioning in flex context ----- */
    .hoermann-article .article-right.hint-wrapper {
        position: relative; /* ensure absolute hint-toggle stays inside */
    }
}

/* Mobile: 1 per row, no image height limit */
@media (max-width: 439px) {
    .hm-acc-item {
        flex: 0 0 100%;
    }
    .hm-acc-item img {
        height: auto;
    }
}

/* Sticky left column bottom spacing */
.hoermann-article .hm-acc-section .article-left.sticky {
    margin-bottom: 40px;
}

/* ---- Кащички (sheds) gallery — dark section overrides ---- */
/* ---- Chests dark section ---- */
.hm-chests-section .hm-acc-cat-label {
    color: #e8a000;
    border-left-color: #e8a000;
}
.hm-chests-section .hm-acc-item figcaption {
    color: #c8d8e8;
}
.hm-chests-section .hm-acc-item figcaption strong {
    color: #ffffff;
}
.hm-chests-section .article-left.sticky {
    margin-bottom: 40px;
}
.hm-chests-section .hm-acc-item {
    flex: 0 0 calc(50% - 9px);
}
.hm-chests-section .hm-spec-list {
    margin-bottom: 40px;
}
@media (max-width: 439px) {
    .hm-chests-section .hm-acc-item {
        flex: 0 0 100%;
    }
    .hm-chests-section .hm-acc-item img {
        height: auto;
    }
}

/* ---- Sheds dark section ---- */
.hm-sheds-section .hm-acc-cat-label {
    color: #e8a000;
    border-left-color: #e8a000;
}
.hm-sheds-section .hm-acc-item figcaption {
    color: #c8d8e8;
}
.hm-sheds-section .hm-acc-item figcaption strong {
    color: #ffffff;
}
.hm-sheds-section .article-left.sticky {
    margin-bottom: 40px;
}
@media (max-width: 439px) {
    .hm-sheds-section .hm-acc-item {
        flex: 0 0 100%;
    }
    .hm-sheds-section .hm-acc-item img {
        height: auto;
    }
}

/* ---- Colors reveal (plus button) ---- */

/* combine section — stretch both columns to equal height */
.hm-combine-section > .small-inner-wrapper {
    align-items: stretch;
}

/* article-right vertically centered */
.hm-combine-section .article-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hm-colors-reveal {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Button — slightly under 2× size, fades out on click */
.hm-plus-btn {
    display: block;
    margin: 80px auto 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #004c8f;
    width: 115px;
    height: 115px;
    padding: 0;
    opacity: 1;
    max-height: 115px;
    transition: opacity 0.3s ease, color 0.2s, max-height 0s 0.35s, margin 0s 0.35s;
}
.hm-plus-btn:hover { color: #003070; }
.hm-plus-btn svg { width: 100%; height: 100%; display: block; }
.hm-plus-btn .hm-plus-v {
    transform-origin: 22px 22px;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

/* Button disappears when expanded */
.hm-plus-btn[aria-expanded="true"] {
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    margin: 0;
    overflow: hidden;
}

/* Grid fades in after button fades out */
.hm-colors-expandable {
    width: 100%;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease 0.3s;
}
.hm-colors-expandable.is-open {
    opacity: 1;
    max-height: 1000px;
    overflow: visible;
}

.hm-colors-reveal-text {
    font-size: 0.9rem;
    color: #1a2a3a;
    margin: 20px 0 4px;
    line-height: 1.5;
}
.hm-colors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 12px;
    margin-top: 4px;
    width: 100%;
    padding-bottom: 8px;
}
.hm-colors-grid .hm-color-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.hm-colors-grid .hm-color-circle {
    width: 48px;
    height: 48px;
    margin-bottom: 6px;
}
.hm-colors-grid .hm-color-label {
    font-size: 0.72rem;
    line-height: 1.3;
    color: #1a2a3a;
}
@keyframes hm-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Plus button tooltip ---- */
.hm-plus-btn {
    position: relative;
}
.hm-plus-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a2a3a;
    color: #fff;
    font-size: 0.7rem;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}
.hm-plus-btn[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a2a3a;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}
.hm-plus-btn[data-tooltip]:hover::after,
.hm-plus-btn[data-tooltip]:hover::before {
    opacity: 1;
}
/* Hide tooltip when expanded */
.hm-plus-btn[aria-expanded="true"][data-tooltip]::after,
.hm-plus-btn[aria-expanded="true"][data-tooltip]::before {
    display: none;
}

/* ---- Color swatch tooltip ---- */
.hm-color-swatch {
    position: relative;
}
.hm-color-swatch[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a2a3a;
    color: #fff;
    font-size: 0.7rem;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}
.hm-color-swatch[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a2a3a;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}
.hm-color-swatch[data-tooltip]:hover::after,
.hm-color-swatch[data-tooltip]:hover::before {
    opacity: 1;
}


