/* =====================================================================
   AD Security Gates - main stylesheet (Bootstrap 5.3 + site styles)
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --ink: #1C232B;          /* forged iron: text, top bar */
    --steel: #5A6672;        /* secondary text */
    --line: #DCE1E6;         /* borders */
    --zinc: #EEF1F4;         /* galvanized: light surfaces */
    --blue: #3D65B0;         /* logo blue: links, accents */
    --blue-dark: #2C4D8E;
    --amber: #F2B01E;        /* safety amber: main call to action */
    --amber-dark: #DB9A08;

    --radius: 6px;
    --topbar-h: 38px;
    --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    /* Bootstrap overrides */
    --bs-body-font-family: var(--font);
    --bs-body-color: var(--ink);
    --bs-body-bg: #fff;
    --bs-primary: var(--blue);
    --bs-primary-rgb: 61, 101, 176;
    --bs-link-color: var(--blue);
    --bs-link-color-rgb: 61, 101, 176;
    --bs-link-hover-color: var(--blue-dark);
    --bs-link-hover-color-rgb: 44, 77, 142;
    --bs-border-color: var(--line);
    --bs-border-radius: var(--radius);
}

/* ---------- Base ---------- */
body {
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    font-weight: 700;
    font-stretch: 88%;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--ink);
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }

:focus-visible {
    outline: 3px solid rgba(61, 101, 176, .55);
    outline-offset: 2px;
}

main:focus { outline: none; }

.icon { flex-shrink: 0; vertical-align: -0.2em; }

.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 2000;
    padding: .6rem 1rem;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
}

/* ---------- Buttons ---------- */
.btn-cta {
    --bs-btn-bg: var(--amber);
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--amber);
    --bs-btn-hover-bg: var(--amber-dark);
    --bs-btn-hover-color: var(--ink);
    --bs-btn-hover-border-color: var(--amber-dark);
    --bs-btn-active-bg: var(--amber-dark);
    --bs-btn-active-color: var(--ink);
    --bs-btn-active-border-color: var(--amber-dark);
    --bs-btn-disabled-bg: var(--amber);
    --bs-btn-disabled-color: var(--ink);
    --bs-btn-disabled-border-color: var(--amber);
    --bs-btn-padding-x: 1.15rem;
    --bs-btn-padding-y: .6rem;
    --bs-btn-font-weight: 600;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.btn-call {
    --bs-btn-color: var(--ink);
    --bs-btn-border-color: var(--ink);
    --bs-btn-hover-bg: var(--ink);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: var(--ink);
    --bs-btn-active-bg: var(--ink);
    --bs-btn-active-color: #fff;
    --bs-btn-padding-x: 1.15rem;
    --bs-btn-padding-y: .6rem;
    --bs-btn-font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.btn-primary {
    --bs-btn-bg: var(--blue);
    --bs-btn-border-color: var(--blue);
    --bs-btn-hover-bg: var(--blue-dark);
    --bs-btn-hover-border-color: var(--blue-dark);
    --bs-btn-active-bg: var(--blue-dark);
    --bs-btn-active-border-color: var(--blue-dark);
    --bs-btn-disabled-bg: var(--blue);
    --bs-btn-disabled-border-color: var(--blue);
}

/* =====================================================================
   Header
   ===================================================================== */

/* The whole header is sticky; the top bar scrolls away, the main bar stays. */
.site-header {
    position: sticky;
    top: calc(var(--topbar-h) * -1);
    z-index: 1030;
    background: #fff;
    transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 24px -18px rgba(28, 35, 43, .45);
}

@media (max-width: 991.98px) {
    .site-header { top: 0; }
}

/* ---------- Top bar ---------- */
.topbar {
    height: var(--topbar-h);
    background: var(--ink);
    color: #C6CED6;
    font-size: .875rem;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.topbar-info {
    display: flex;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.topbar-info li,
.topbar-info a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.topbar-info .icon { width: 16px; height: 16px; color: var(--amber); }

.topbar a {
    color: inherit;
    text-decoration: none;
}

.topbar a:hover { color: #fff; }

.social-links {
    display: flex;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.topbar .social-links .icon { width: 18px; height: 18px; }

/* ---------- Main bar ---------- */
.mainbar {
    position: relative; /* anchors the full-width mega menu */
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.mainbar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 76px;
}

.brand { display: block; flex-shrink: 0; }

.brand img {
    display: block;
    width: auto;
    height: 45px;
}

.main-nav {
    align-self: stretch;      /* items fill the bar height: no hover gap to the menus */
    align-items: stretch;
    gap: .15rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.main-nav > .nav-item { display: flex; }

.main-nav .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .65rem .8rem;
    border: 0;
    background: none;
    color: var(--ink);
    font-weight: 500;
    font-stretch: 94%;
    white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link[aria-expanded="true"] { color: var(--blue); }

/* Current section: a short amber bar under the link */
.main-nav .nav-link.is-active::after {
    content: "";
    position: absolute;
    left: .8rem;
    right: .8rem;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--amber);
}

.caret {
    width: 16px;
    height: 16px;
    transition: transform .2s ease;
}

[aria-expanded="true"] > .caret { transform: rotate(180deg); }

.mainbar-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-left: auto;
}

@media (min-width: 1200px) {
    .mainbar-actions { margin-left: 0; }
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.header-phone .icon { color: var(--blue); }

.header-phone:hover { color: var(--blue); }

/* Phone becomes an icon button on small screens */
@media (max-width: 767.98px) {
    .header-phone {
        justify-content: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
    }
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
}

.menu-toggle .icon { width: 24px; height: 24px; }

/* Full menu from 1200px; between 1200 and 1400 it is compacted to fit */
@media (max-width: 1399.98px) and (min-width: 1200px) {
    .brand img { height: 38px; }
    .main-nav .nav-link { padding-inline: .55rem; }
    .main-nav .nav-link.is-active::after { left: .55rem; right: .55rem; }
    .header-phone span { display: none !important; }
}

/* ---------- Standard dropdowns ---------- */
.main-nav .dropdown-menu {
    --bs-dropdown-link-active-bg: var(--zinc);
    --bs-dropdown-link-active-color: var(--blue);
    --bs-dropdown-link-hover-bg: var(--zinc);
    min-width: 15rem;
    margin-top: 0;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 36px -20px rgba(28, 35, 43, .4);
}

.main-nav .dropdown-item {
    padding: .55rem .75rem;
    border-radius: 4px;
}

.main-nav .dropdown-item-count { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.main-nav .dropdown-item .count { color: var(--steel); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.main-nav .dropdown-item .menu-icon { width: 14px; height: 14px; margin-right: .3rem; color: var(--amber); }

/* ---------- Products mega menu ---------- */
.main-nav .dropdown-menu.mega {
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 30px 40px -30px rgba(28, 35, 43, .45);
}

.mega-inner {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2.5rem;
    padding-block: 1.75rem 2rem;
}

.mega-tabs {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding-right: 1.25rem;
    border-right: 1px solid var(--line);
}

.mega-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .65rem .85rem;
    border: 0;
    border-radius: var(--radius);
    background: none;
    color: var(--ink);
    font-weight: 500;
    text-align: left;
}

.mega-tab .count {
    color: var(--steel);
    font-size: .875rem;
    font-variant-numeric: tabular-nums;
}

.mega-tab:hover { background: var(--zinc); }

.mega-tab.active {
    background: var(--zinc);
    color: var(--blue);
    box-shadow: inset 3px 0 0 var(--amber);
}

.mega-extra {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin-top: .75rem;
    padding: .9rem .85rem 0;
    border-top: 1px solid var(--line);
    font-size: .9375rem;
}

.mega-extra a {
    color: var(--blue);
    font-weight: 500;
    text-decoration: none;
}

.mega-extra a:hover { text-decoration: underline; }

.mega-pane-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 1200px) {
    .mega-pane-grid { grid-template-columns: 1fr 300px; }
}

.mega-pane-title {
    display: inline-block;
    margin-bottom: .85rem;
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 700;
    font-stretch: 90%;
    text-decoration: none;
}

.mega-pane-title:hover {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mega-list {
    columns: 13rem auto;
    column-gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mega-list li { break-inside: avoid; }

.mega-list a {
    display: block;
    padding: .32rem 0;
    color: #39434D;
    text-decoration: none;
}

.mega-list a:hover { color: var(--blue); }

.mega-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

/* =====================================================================
   Mobile menu (off-canvas)
   ===================================================================== */
.mobile-nav {
    --bs-offcanvas-width: min(380px, 90vw);
}

.mobile-nav .offcanvas-header {
    justify-content: space-between;
    min-height: 76px;
    border-bottom: 1px solid var(--line);
}

.m-nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

.m-nav > li { border-bottom: 1px solid var(--line); }

.m-nav > li > a,
.m-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .9rem 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 1.0625rem;
    font-weight: 500;
    text-align: left;
    text-decoration: none;
}

.m-nav a[aria-current="page"] { color: var(--blue); }

.m-sub {
    margin: 0;
    padding: 0 0 .75rem .9rem;
    list-style: none;
}

.m-sub a {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    color: #39434D;
    text-decoration: none;
}

.m-sub .count { color: var(--steel); font-size: .875rem; }

.m-contact {
    display: grid;
    gap: .75rem;
    margin-top: 1.75rem;
}

.m-email {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .25rem;
    color: var(--steel);
    text-decoration: none;
    word-break: break-all;
}

.m-contact .social-links a { color: var(--ink); border: 1px solid var(--line); width: 44px; height: 44px; }

/* ---------- Mobile action bar (phones only) ---------- */
.mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: .6rem;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px -18px rgba(28, 35, 43, .45);
}

@media (max-width: 575.98px) {
    body { padding-bottom: 72px; }
}

/* =====================================================================
   Free estimate modal
   ===================================================================== */
.estimate .modal-header {
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem .5rem;
    border-bottom: 0;
}

.estimate .modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    font-stretch: 88%;
}

.estimate-lead {
    margin: .4rem 0 0;
    color: var(--steel);
}

.estimate .modal-body { padding: 1rem 1.5rem 1.5rem; }

.estimate .form-label { font-weight: 500; }

.estimate .optional {
    margin-left: .25rem;
    color: var(--steel);
    font-size: .875rem;
    font-weight: 400;
}

.estimate-note {
    margin: .85rem 0 0;
    color: var(--steel);
    font-size: .8125rem;
    text-align: center;
}

.estimate-alert {
    margin-bottom: 1rem;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    background: #FDECEC;
    color: #9B1C1C;
}

.estimate-success { padding: 2.5rem 1.5rem; text-align: center; }

.estimate-success .success-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    color: #2E8B57;
}

/* Spam trap field, invisible to people */
.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =====================================================================
   Home slider
   ===================================================================== */
.hero { background: var(--ink); }

.hero .carousel-item {
    position: relative;
    /* --hero-h is set from the admin (% of screen height); min/max keep it usable */
    height: clamp(380px, calc(var(--hero-h, 78) * 1vh), 1000px);
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

/* Text block: anchored by align_h / align_v, then moved by offset_x / offset_y (% of slide) */
.hero-content {
    position: absolute;
    inset: 0;
    display: grid;
    justify-items: var(--hero-justify, start);
    align-items: var(--hero-align, center);
    padding-block: 4.5rem;
}

.hero-text {
    position: relative;
    left: calc(var(--hero-x, 0) * 1%);
    top: calc(var(--hero-y, 0) * 1%);
    max-width: 44rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}

.hero-title {
    margin-bottom: .75rem;
    color: inherit;
    font-weight: 700;
    font-stretch: 85%;
    letter-spacing: -0.015em;
    line-height: 1.05;
}

.hero-subtitle {
    max-width: 36rem;
    margin-bottom: 1.75rem;
    font-size: 1.2rem;
    line-height: 1.5;
}

.hero-text[style*="text-align: center"] .hero-subtitle { margin-inline: auto; }
.hero-text[style*="text-align: right"] .hero-subtitle { margin-left: auto; }

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    text-shadow: none;
}

.hero-buttons .btn-lg {
    --bs-btn-font-size: 1.0625rem;
    --bs-btn-padding-y: .8rem;
    --bs-btn-padding-x: 1.5rem;
}

/* Arrows */
.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: 4.5rem;
    opacity: 1;
}

.hero-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(28, 35, 43, .35);
    color: #fff;
    transition: background-color .2s ease;
}

.hero-arrow .icon { width: 22px; height: 22px; }
.carousel-control-prev .hero-arrow .icon { transform: rotate(90deg); }
.carousel-control-next .hero-arrow .icon { transform: rotate(-90deg); }

.hero .carousel-control-prev:hover .hero-arrow,
.hero .carousel-control-next:hover .hero-arrow { background: rgba(28, 35, 43, .7); }

/* Indicators: short bars */
.hero .carousel-indicators { margin-bottom: 1.5rem; }

.hero .carousel-indicators [data-bs-target] {
    width: 36px;
    height: 4px;
    margin-inline: 4px;
    border: 0;
    border-radius: 2px;
    background-color: #fff;
    opacity: .45;
}

.hero .carousel-indicators .active { opacity: 1; background-color: var(--amber); }

/* Pause / play */
.hero-pause {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(28, 35, 43, .35);
    color: #fff;
}

.hero-pause .icon { width: 18px; height: 18px; }
.hero-pause .when-paused,
.hero-pause[aria-pressed="true"] .when-playing { display: none; }
.hero-pause[aria-pressed="true"] .when-paused { display: inline; }

/* Phones: no fine offsets (screen too narrow), arrows hidden (swipe instead) */
@media (max-width: 767.98px) {
    .hero .carousel-item { height: clamp(420px, calc(var(--hero-h-mobile, 74) * 1svh), 900px); }
    .hero-content { padding-block: 3rem 4rem; }
    .hero-text { left: 0; top: 0; }
    .hero-subtitle { font-size: 1.05rem; }
    .hero .carousel-control-prev,
    .hero .carousel-control-next { display: none; }
}

/* =====================================================================
   Home: company advantages strip (directly under the slider)
   ===================================================================== */
.advantages {
    padding-block: 2rem;
    background: var(--zinc);
    border-bottom: 1px solid var(--line);
}

.advantages-list {
    display: grid;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .advantages-list { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 2.5rem; }
}

@media (min-width: 1200px) {
    .advantages { padding-block: 2.25rem; }
    .advantages-list { grid-template-columns: repeat(var(--advantages-count, 4), 1fr); gap: 0; }
    /* thin dividers between the points */
    .advantage { padding-inline: 1.75rem; border-left: 1px solid var(--line); }
    .advantage:first-child { padding-left: 0; border-left: 0; }
    .advantage:last-child { padding-right: 0; }
}

.advantage {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.advantage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--line);
    color: var(--blue);
}

.advantage-icon .icon { width: 26px; height: 26px; }

.advantage-title {
    margin: .1rem 0 .3rem;
    font-size: 1.0625rem;
    font-weight: 700;
    font-stretch: 92%;
    letter-spacing: 0;
}

.advantage-text {
    margin: 0;
    color: var(--steel);
    font-size: .9375rem;
    line-height: 1.5;
}

/* =====================================================================
   Section heading row (title + link on the right)
   ===================================================================== */
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    margin-bottom: 1.75rem;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
}

.section-link {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
    text-underline-offset: 4px;
}

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

/* =====================================================================
   Home: product catalog grid (widths come from the admin)
   ===================================================================== */
.catalog { padding-block: 3.5rem 4rem; }

@media (min-width: 1200px) {
    .catalog { padding-block: 5rem; }
}

.cat-tile,
.cat-estimate {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .cat-tile, .cat-estimate { height: 280px; }
}

@media (min-width: 1200px) {
    .cat-tile, .cat-estimate { height: 320px; }
}

.cat-tile {
    background: var(--ink);
    color: #fff;
    text-decoration: none;
}

.cat-tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-tile-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 35, 43, .88) 0%, rgba(28, 35, 43, .35) 45%, rgba(28, 35, 43, 0) 75%);
}

.cat-tile-body {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem 1rem;
}

@media (min-width: 1200px) {
    .cat-tile-body { left: 2rem; right: 2rem; bottom: 1.8rem; }
}

.cat-tile-title {
    flex-basis: 100%;
    margin: 0 0 .35rem;
    color: #fff;
    font-size: clamp(1.4rem, 1.15rem + .8vw, 1.9rem);
}

.cat-tile-meta {
    color: rgba(255, 255, 255, .8);
    font-size: .9375rem;
}

/* The "button" inside the card fills with amber when the card is hovered or focused */
.cat-tile-link {
    display: inline-flex;
    align-items: center;
    padding: .4rem .85rem;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: var(--radius);
    font-size: .9375rem;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.cat-tile:hover .cat-tile-link,
.cat-tile:focus-visible .cat-tile-link {
    border-color: var(--amber);
    background: var(--amber);
    color: var(--ink);
}

/* Request box */
.cat-estimate {
    display: flex;
    align-items: center;
    background: var(--zinc);
    box-shadow: inset 0 0 0 1px var(--line);
}

.cat-estimate-body {
    position: relative;
    z-index: 1;
    max-width: 58%;
    padding: 1.5rem;
}

@media (min-width: 1200px) {
    .cat-estimate-body { padding: 2rem 2.25rem; }
}

.cat-estimate-title {
    margin-bottom: .6rem;
    font-size: clamp(1.4rem, 1.15rem + .8vw, 1.9rem);
}

.cat-estimate-body p {
    margin-bottom: 1.25rem;
    color: var(--steel);
}

.cat-estimate-img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: auto;
    height: 92%;
    max-width: 48%;
    object-fit: contain;
    object-position: right bottom;
}

/* Phones, and narrow boxes (1/3 or 1/4) on desktop: text only */
@media (max-width: 575.98px) {
    .cat-estimate { height: auto; }
    .cat-estimate-body { max-width: none; }
    .cat-estimate-img { display: none; }
}

@media (min-width: 1200px) {
    .cat-estimate.is-narrow .cat-estimate-body { max-width: none; }
    .cat-estimate.is-narrow .cat-estimate-img { display: none; }
}

/* =====================================================================
   Home: "Our works" (1 large + 3 small photos, cross-fading)
   ===================================================================== */
.btn-ink {
    --bs-btn-bg: var(--ink);
    --bs-btn-color: #fff;
    --bs-btn-border-color: var(--ink);
    --bs-btn-hover-bg: #000;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-border-color: #000;
    --bs-btn-active-bg: #000;
    --bs-btn-active-color: #fff;
    --bs-btn-padding-x: 1.3rem;
    --bs-btn-padding-y: .7rem;
    --bs-btn-font-weight: 600;
}

.works { padding-block: 0 4rem; }

@media (min-width: 1200px) {
    .works { padding-bottom: 5rem; }
}

.works-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 240px 110px;
    grid-template-areas:
        "head head head"
        "a    a    a"
        "b    c    d";
}

@media (min-width: 768px) {
    .works-grid {
        gap: 1rem;
        grid-template-rows: auto 360px 200px;
    }
}

@media (min-width: 1200px) {
    .works-grid {
        gap: 1.25rem;
        grid-template-columns: 2fr 1fr 1fr;
        grid-template-rows: 290px 290px;
        grid-template-areas:
            "a b head"
            "a c d";
    }
}

.works-head {
    grid-area: head;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: .5rem;
}

@media (min-width: 1200px) {
    .works-head { padding: 0 0 0 1.25rem; }
}

.works-head h2 {
    margin-bottom: .6rem;
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
}

.works-head p {
    max-width: 30ch;
    margin-bottom: 1.25rem;
    color: var(--steel);
}

.works-tile {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--zinc);
}

.works-tile-1 { grid-area: a; }
.works-tile-2 { grid-area: b; }
.works-tile-3 { grid-area: c; }
.works-tile-4 { grid-area: d; }

.works-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.works-img.is-visible { opacity: 1; }

/* =====================================================================
   Home: videos slider (scroll-snap track + arrows)
   ===================================================================== */
.videos { padding-block: 0 4rem; }

@media (min-width: 1200px) {
    .videos { padding-bottom: 5rem; }
}

/* Width of one video depends on how many are visible; the slider is a
   size container so the arrows can be exactly as tall as the videos. */
.vslider {
    --gap: 1rem;
    --item-w: 86cqw;   /* phones: one video + a peek of the next */
    position: relative;
    container-type: inline-size;
}

@media (min-width: 768px) {
    .vslider {
        --gap: 1.25rem;
        --item-w: calc((100cqw - (var(--per-tablet) - 1) * var(--gap)) / var(--per-tablet));
    }
}

@media (min-width: 1200px) {
    .vslider {
        --item-w: calc((100cqw - (var(--per-desktop) - 1) * var(--gap)) / var(--per-desktop));
    }
}

.vslider-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--item-w);
    gap: var(--gap);
    margin: 0;
    padding: 0 0 .25rem;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.vslider-track::-webkit-scrollbar { display: none; }

/* Arrows: full video height, over the left / right edge, icon centered */
.vslider-arrow {
    position: absolute;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: calc(var(--item-w) * 9 / 16);   /* same 16:9 height as the videos */
    padding: 0;
    border: 0;
    color: #fff;
    cursor: pointer;
    transition: opacity .2s ease;
}

.vslider-arrow.is-prev {
    left: 0;
    border-radius: 10px 0 0 10px;
    background: linear-gradient(to right, rgba(14, 18, 22, .7), rgba(14, 18, 22, 0));
}

.vslider-arrow.is-next {
    right: 0;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(to left, rgba(14, 18, 22, .7), rgba(14, 18, 22, 0));
}

.vslider-arrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    background: rgba(14, 18, 22, .45);
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.vslider-arrow-icon .icon { width: 22px; height: 22px; }
.vslider-arrow.is-prev .icon { transform: rotate(90deg); }
.vslider-arrow.is-next .icon { transform: rotate(-90deg); }

.vslider-arrow:hover .vslider-arrow-icon,
.vslider-arrow:focus-visible .vslider-arrow-icon {
    border-color: var(--amber);
    background: var(--amber);
    color: var(--ink);
}

/* Nothing more in that direction: hide the arrow so it does not cover the video */
.vslider-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

/* Phones: swipe instead of arrows */
@media (max-width: 767.98px) {
    .vslider-arrows { display: none !important; }
}

.vslider-item { scroll-snap-align: start; min-width: 0; }

.video {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: var(--ink);
}

.video-play {
    position: absolute;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.video-play img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* crops YouTube's black bars */
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgba(28, 35, 43, .72);
    color: #fff;
    transition: background-color .15s ease, transform .15s ease;
}

.video-play-icon .icon { width: 26px; height: 26px; margin-left: 3px; }

.video-play:hover .video-play-icon,
.video-play:focus-visible .video-play-icon { background: var(--amber); color: var(--ink); }

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-title {
    margin: .65rem 0 0;
    font-weight: 500;
    line-height: 1.35;
}

/* Video player window */
.video-modal .modal-content {
    border: 0;
    background: #0E1216;
    color: #fff;
}

.video-modal .modal-header {
    padding: .75rem 1rem;
    border-bottom: 0;
}

.video-modal .modal-title {
    overflow: hidden;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    font-stretch: 100%;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-modal .modal-body {
    display: flex;
    align-items: center;
    padding: 0 1rem 1rem;
}

.video-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 7rem);
    margin-inline: auto;
    background: #000;
}

.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.videos-more {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* =====================================================================
   Home: reviews ("Customers trust us")
   ===================================================================== */
.reviews {
    padding-block: 3.5rem 4rem;
    background: var(--zinc);
    border-block: 1px solid var(--line);
}

@media (min-width: 1200px) {
    .reviews { padding-block: 4.5rem; }
}

.reviews-layout {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 1200px) {
    .reviews-layout {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 3rem;
        align-items: center;
    }
}

.reviews-summary h2 {
    margin-bottom: .85rem;
    font-size: clamp(1.4rem, 1.2rem + .7vw, 1.75rem);
    text-wrap: balance;   /* no single word left alone on the second line */
}

.reviews-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reviews-score-value {
    font-size: 3.6rem;
    font-weight: 700;
    font-stretch: 85%;
    line-height: 1;
}

.reviews-score-count {
    margin: .3rem 0 0;
    color: var(--steel);
    font-size: .9375rem;
}

.reviews-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.5rem;
}

.reviews-empty {
    padding: 2rem;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--steel);
}

.reviews-empty p { margin: 0; }

/* Stars (display) */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars .icon { width: 18px; height: 18px; fill: currentColor; stroke-width: 1.2; }
.stars .is-on { color: var(--amber); }
.stars .is-off { color: #C9D0D7; }
.stars.is-large .icon { width: 22px; height: 22px; }

/* Card slider variant: full card height, buttons sit on the card edges (text stays readable) */
.vslider.is-cards .vslider-arrow { width: 44px; height: 100%; background: none; }
.vslider.is-cards .vslider-arrow.is-prev { left: -22px; }
.vslider.is-cards .vslider-arrow.is-next { right: -22px; }
.vslider.is-cards .vslider-arrow-icon {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 6px 16px -8px rgba(28, 35, 43, .45);
}

/* Review card */
.review-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.4rem 1.4rem 1.2rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.review-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.review-card-head time { color: var(--steel); font-size: .875rem; }

.review-card-text {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-height: 1.55;
}

.review-card.is-full { padding: 0; border: 0; }
.review-card.is-full .review-card-text { display: block; overflow: visible; -webkit-line-clamp: unset; }

.review-more {
    align-self: flex-start;
    margin-top: .5rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.review-card-foot {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-top: auto;
    padding-top: 1.1rem;
}

.review-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
}

.review-author { font-weight: 600; }

.review-photos {
    display: inline-flex;
    gap: 4px;
    margin-left: auto;
}

.review-photos img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

/* Google reviews strip (inside the reviews section) */
.greviews {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.greviews-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.75rem;
    margin-bottom: 1.25rem;
}

.greviews-title {
    margin: 0;
    font-size: 1.2rem;
}

.greviews-score {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.greviews-value { font-size: 1.35rem; font-weight: 700; }
.greviews-count { color: var(--steel); font-size: .9375rem; }

.greviews-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1.25rem;
    margin-left: auto;
}

@media (max-width: 767.98px) {
    .greviews-links { margin-left: 0; }
}

.review-card.is-google { border-top: 3px solid var(--blue); }
.review-when { color: var(--steel); font-size: .875rem; }
.review-avatar.is-google { background: var(--steel); }
a.review-author { color: var(--ink); text-decoration: none; }
a.review-author:hover { text-decoration: underline; }

.review-source {
    margin-left: auto;
    color: var(--steel);
    font-size: .8125rem;
    white-space: nowrap;
}

.greviews-note {
    margin: .75rem 0 0;
    color: var(--steel);
    font-size: .8125rem;
}

/* =====================================================================
   Form modals (review form; shared look)
   ===================================================================== */
.form-modal .modal-header {
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.5rem .5rem;
    border-bottom: 0;
}

.form-modal .modal-title { font-size: 1.6rem; font-weight: 700; font-stretch: 88%; }
.form-modal-lead { margin: .4rem 0 0; color: var(--steel); }
.form-modal .modal-body { padding: 1rem 1.5rem 1.5rem; }
.form-modal .form-label { font-weight: 500; }
.form-modal .optional { margin-left: .25rem; color: var(--steel); font-size: .875rem; font-weight: 400; }
.form-hint { margin-top: .3rem; color: var(--steel); font-size: .8125rem; }

.form-alert {
    margin-top: 1rem;
    padding: .75rem 1rem;
    border-radius: var(--radius);
    background: #FDECEC;
    color: #9B1C1C;
}

.form-success { padding: 2.5rem 1.5rem; text-align: center; }
.form-success .success-icon { width: 56px; height: 56px; margin-bottom: 1rem; color: #2E8B57; }

/* Star rating input: 5 radio buttons drawn as stars */
.rating-input { margin: 0; padding: 0; border: 0; }
.rating-input legend { float: none; margin-bottom: .25rem; font-size: 1rem; }

.rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;   /* DOM order is 5..1 so "~" can light up lower stars */
    gap: 4px;
}

.rating-stars label {
    padding: 2px;
    color: #C9D0D7;
    cursor: pointer;
    transition: color .1s ease, transform .1s ease;
}

.rating-stars .icon { width: 36px; height: 36px; fill: currentColor; stroke-width: 1; }

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label { color: var(--amber); }

.rating-stars input:focus-visible + label { outline: 3px solid rgba(61, 101, 176, .55); outline-offset: 2px; border-radius: 4px; }

/* Photo picker */
.photo-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    padding: 1.1rem;
    border: 1.5px dashed #B9C2CB;
    border-radius: 10px;
    background: var(--zinc);
    color: var(--ink);
    text-align: center;
    cursor: pointer;
}

.photo-drop:hover { border-color: var(--blue); }
.photo-drop .icon { width: 28px; height: 28px; color: var(--blue); }
.photo-drop small { color: var(--steel); }
#rv-photos:focus-visible + .photo-previews,
.photo-drop:focus-within { outline: 3px solid rgba(61, 101, 176, .55); }

.photo-previews {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .6rem 0 0;
    padding: 0;
    list-style: none;
}

.photo-previews:empty { display: none; }

.photo-previews li { position: relative; }

.photo-previews img {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    object-fit: cover;
}

.photo-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
}

/* =====================================================================
   Home: latest blog posts (title, date and tags on the photo)
   ===================================================================== */
.blog-home { padding-block: 3.5rem 4rem; }

@media (min-width: 1200px) {
    .blog-home { padding-block: 5rem; }
}

/* Layout adapts to the number of posts (setting "count") */
.blog-grid { display: grid; gap: 1rem; }
.blog-card { min-height: 240px; }
.blog-card.is-lead { min-height: 320px; }

@media (min-width: 768px) {
    .blog-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    .blog-card { min-height: 250px; }
    .blog-card.is-lead { grid-column: 1 / -1; min-height: 380px; }
    .blog-grid.is-count-1 { grid-template-columns: 1fr; }
}

@media (min-width: 1200px) {
    /* lead card on the left (2/3 width), the others stacked on the right */
    .blog-grid { grid-template-columns: 2fr 1fr; }
    .blog-card { min-height: 270px; }
    .blog-card.is-lead { grid-column: 1; grid-row: span 2; min-height: 0; }

    .blog-grid.is-count-1 .blog-card { min-height: 420px; }

    .blog-grid.is-count-2 { grid-template-columns: 1fr 1fr; }
    .blog-grid.is-count-2 .blog-card { min-height: 400px; }
    .blog-grid.is-count-2 .is-lead { grid-row: auto; }

    .blog-grid.is-count-4 .blog-card { min-height: 180px; }
    .blog-grid.is-count-4 .is-lead { grid-row: span 3; }

    .blog-grid.is-count-5 { grid-template-columns: 2fr 1fr 1fr; }
}

.blog-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}

.blog-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.blog-card:hover .blog-card-img { transform: scale(1.04); }

.blog-card-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(14, 18, 22, .92) 0%, rgba(14, 18, 22, .55) 38%, rgba(14, 18, 22, 0) 68%),
        linear-gradient(to bottom, rgba(14, 18, 22, .35) 0%, rgba(14, 18, 22, 0) 22%);
}

.blog-card-top {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.blog-chip {
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--ink);
    font-size: .8125rem;
    font-weight: 600;
    line-height: 1.2;
    backdrop-filter: blur(6px);
}

.blog-chip.is-type { background: rgba(14, 18, 22, .55); color: #fff; }
.blog-chip.is-promo { background: var(--amber); color: var(--ink); }

.blog-card-body {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.blog-card.is-lead .blog-card-body { left: 1.75rem; right: 1.75rem; bottom: 1.6rem; gap: .65rem; }

.blog-tags { display: flex; flex-wrap: wrap; gap: .35rem; }

.blog-tag {
    padding: .2rem .55rem;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    color: rgba(255, 255, 255, .92);
    font-size: .75rem;
    font-weight: 500;
}

.blog-card-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.25;
    text-wrap: balance;
}

.blog-card.is-lead .blog-card-title {
    max-width: 30ch;
    font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem);
    line-height: 1.12;
}

.blog-card:hover .blog-card-title,
.blog-card:focus-visible .blog-card-title {
    text-decoration: underline;
    text-decoration-color: var(--amber);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.blog-card-excerpt {
    display: -webkit-box;
    max-width: 60ch;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: rgba(255, 255, 255, .82);
    font-size: .975rem;
}

@media (max-width: 767.98px) {
    .blog-card-excerpt { display: none; }
}

/* =====================================================================
   Home: contacts + map
   ===================================================================== */
.contacts-home { padding-block: 0 4rem; }

@media (min-width: 1200px) {
    .contacts-home { padding-bottom: 5rem; }
}

.contacts-layout {
    display: grid;
    gap: 1rem;
}

@media (min-width: 992px) {
    .contacts-layout { grid-template-columns: 400px minmax(0, 1fr); gap: 1.25rem; }
}

.contacts-card {
    padding: 2rem 1.75rem;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
}

.contacts-card h2 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.6rem);
}

.contact-list {
    display: grid;
    gap: 1.15rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
}

.contact-list li { display: flex; gap: .9rem; }

.contact-list > li > .icon {
    width: 22px;
    height: 22px;
    margin-top: 1.35rem;
    color: var(--amber);
}

.contact-label {
    display: block;
    margin-bottom: .1rem;
    color: #9AA6B2;
    font-size: .8125rem;
    font-weight: 500;
    letter-spacing: .02em;
}

.contact-list a {
    color: #fff;
    font-size: 1.0625rem;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.contact-list a:hover { color: var(--amber); }

.contact-list address { margin: 0; font-size: 1.0625rem; }

.contact-list a.contact-directions {
    display: inline-block;
    margin-top: .3rem;
    color: var(--amber);
    font-size: .9375rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contacts-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.contacts-card .social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
}

.contacts-card .social-links a:hover { border-color: var(--amber); color: var(--amber); }

/* Map: placeholder until the visitor loads it */
.map-box {
    position: relative;
    min-height: 340px;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--zinc);
    /* light "street grid" drawing so the placeholder reads as a map */
    background-image:
        linear-gradient(115deg, transparent 47%, rgba(255, 255, 255, .95) 47%, rgba(255, 255, 255, .95) 53%, transparent 53%),
        linear-gradient(25deg, transparent 48.5%, rgba(255, 255, 255, .9) 48.5%, rgba(255, 255, 255, .9) 51.5%, transparent 51.5%),
        linear-gradient(rgba(201, 208, 215, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 208, 215, .45) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 46px 46px, 46px 46px;
}

@media (min-width: 992px) {
    .map-box { min-height: 0; }
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: 1.5rem;
    text-align: center;
}

.map-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50% 50% 50% 0;
    background: var(--blue);
    color: #fff;
    transform: rotate(-45deg);
    box-shadow: 0 10px 20px -10px rgba(28, 35, 43, .6);
}

.map-pin .icon { width: 26px; height: 26px; transform: rotate(45deg); }

.map-address {
    margin: .4rem 0 .4rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: #fff;
    font-weight: 600;
}

.map-note { margin: 0; color: var(--steel); font-size: .8125rem; }

.map-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-box.is-loaded .map-placeholder { display: none; }

/* =====================================================================
   Breadcrumbs
   ===================================================================== */
.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
    color: var(--steel);
    font-size: .875rem;
}

.crumbs li + li::before {
    content: "/";
    margin-right: .25rem;
    color: #B9C2CB;
}

.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* =====================================================================
   Product listing pages
   ===================================================================== */
.catalog-page { padding-block: 1.75rem 4rem; }

.catalog-head { max-width: 760px; margin-bottom: 1.5rem; }
.catalog-head h1 { margin-bottom: .6rem; }
.catalog-intro { margin: 0; color: var(--steel); font-size: 1.0625rem; line-height: 1.6; }

/* Chips: one scrollable row on phones, wrapping on larger screens */
.chips {
    display: flex;
    gap: .5rem;
    margin: 0 -16px 1rem;
    padding: 0 16px .25rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.chips::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
    .chips { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
}

.chip {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: .45rem;
    padding: .5rem .95rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.chip:hover { border-color: var(--ink); color: var(--ink); }

.chip-count {
    min-width: 1.5rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: var(--zinc);
    color: var(--steel);
    font-size: .8125rem;
    text-align: center;
}

.chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip.is-active .chip-count { background: rgba(255, 255, 255, .16); color: #fff; }
.chip.is-new { border-color: var(--amber); }

.chips.is-sub .chip { padding: .35rem .8rem; font-size: .9375rem; }
.chips.is-sub .chip.is-active { border-color: var(--blue); background: var(--blue); }

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin: .5rem 0 1rem;
}

.catalog-count { margin: 0; color: var(--steel); font-size: .9375rem; }

.catalog-sort { display: flex; align-items: center; gap: .6rem; }
.catalog-sort label { color: var(--steel); font-size: .9375rem; white-space: nowrap; }
.catalog-sort .form-select { width: auto; min-width: 11rem; border-radius: 999px; font-weight: 500; }

/* Product grid */
.pgrid {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 576px)  { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .pgrid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.pcard-item { display: flex; }

.pcard {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.pcard:hover,
.pcard:focus-visible {
    border-color: #C9D0D7;
    box-shadow: 0 18px 34px -22px rgba(28, 35, 43, .45);
    transform: translateY(-2px);
}

.pcard-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--zinc);
}

.pcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.pcard:hover .pcard-media img { transform: scale(1.04); }

.pcard-noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B9C2CB;
}

.pcard-noimg .icon { width: 56px; height: 56px; }

.pcard-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    padding: .25rem .6rem;
    border-radius: 999px;
    background: var(--amber);
    color: var(--ink);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.pcard-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .4rem;
    padding: 1.1rem 1.2rem 1.15rem;
}

.pcard-sub {
    color: var(--blue);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.pcard-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.25;
}

.pcard-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--steel);
    font-size: .9375rem;
    line-height: 1.5;
}

.pcard-more {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    margin-top: auto;
    padding-top: .5rem;
    color: var(--blue);
    font-weight: 600;
    font-size: .9375rem;
}

.pcard-more .icon { width: 18px; height: 18px; transform: rotate(-90deg); transition: transform .15s ease; }
.pcard:hover .pcard-more .icon { transform: rotate(-90deg) translateY(3px); }

.catalog-more {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .75rem;
    margin-top: 2rem;
}

.catalog-empty {
    padding: 2.5rem 1.5rem;
    border: 1px dashed var(--line);
    border-radius: 10px;
    color: var(--steel);
    text-align: center;
}

.catalog-empty p { margin: 0; }

/* Free estimate band */
.catalog-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 2rem;
    margin-top: 3.5rem;
    padding: 2rem 1.75rem;
    border-radius: 10px;
    background: var(--ink);
    color: #C6CED6;
}

.catalog-cta h2 { margin-bottom: .4rem; color: #fff; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); }
.catalog-cta p { max-width: 56ch; margin: 0; }

.catalog-cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.catalog-cta .btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    --bs-btn-padding-x: 1.15rem;
    --bs-btn-padding-y: .6rem;
    --bs-btn-font-weight: 600;
}

/* =====================================================================
   Product page
   ===================================================================== */
.product-page { padding-top: 1.75rem; }

.product-top {
    display: grid;
    gap: 1.75rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 992px) {
    .product-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
}

/* ---------- Photo gallery ---------- */
.pgallery { min-width: 0; }

.pgallery-main {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--zinc);
}

.pgallery-track {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

.pgallery-track::-webkit-scrollbar { display: none; }

.pgallery-slide {
    flex: 0 0 100%;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
}

.pgallery-slide a { display: block; height: 100%; cursor: zoom-in; }

.pgallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Arrows are always visible: nobody has to guess there are more photos */
.pgallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    box-shadow: 0 6px 18px -6px rgba(14, 18, 22, .5);
    transition: background-color .15s ease, transform .15s ease;
}

.pgallery-nav:hover { background: var(--amber); }
.pgallery-nav:active { transform: scale(.94); }
.pgallery-nav.is-prev { left: .85rem; }
.pgallery-nav.is-next { right: .85rem; }
.pgallery-nav .icon { width: 22px; height: 22px; }
.pgallery-nav.is-prev .icon { transform: rotate(90deg); }
.pgallery-nav.is-next .icon { transform: rotate(-90deg); }

.pgallery-count {
    position: absolute;
    left: .85rem;
    bottom: .85rem;
    padding: .3rem .7rem;
    border-radius: 999px;
    background: rgba(14, 18, 22, .7);
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pgallery-expand {
    position: absolute;
    right: .85rem;
    bottom: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(14, 18, 22, .7);
    color: #fff;
}

.pgallery-expand .icon { width: 20px; height: 20px; }

.pgallery-thumbs {
    display: flex;
    gap: .5rem;
    margin: .75rem 0 0;
    padding: 0 0 .25rem;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: thin;
}

.pgallery-thumbs button {
    display: block;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: none;
    opacity: .6;
    transition: opacity .15s ease, border-color .15s ease;
}

.pgallery-thumbs button:hover { opacity: 1; }
.pgallery-thumbs button[aria-current="true"] { border-color: var(--amber); opacity: 1; }

.pgallery-thumbs img {
    display: block;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.pgallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    background: var(--zinc);
    color: #B9C2CB;
}

.pgallery-empty .icon { width: 72px; height: 72px; }

/* Photo captions (product gallery and full-screen viewer) */
.pgallery-slide { position: relative; }

.pgallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 2.5rem 4.5rem .9rem 1rem;   /* room for the full-screen button on the right */
    background: linear-gradient(to top, rgba(14, 18, 22, .85), rgba(14, 18, 22, 0));
    color: #fff;
    font-size: .9375rem;
    line-height: 1.4;
    pointer-events: none;                 /* clicks still open the viewer */
}

/* With captions the photo counter moves to the top */
.pgallery-main:has(.pgallery-caption) .pgallery-count { top: .85rem; bottom: auto; }

.lightbox-figure { display: flex; flex-direction: column; align-items: center; margin: 0; max-width: 100%; }
.lightbox-figure img { max-height: calc(100vh - 8.5rem); }

.lightbox-caption {
    max-width: 70ch;
    margin-top: .85rem;
    color: #D5DCE2;
    font-size: .9375rem;
    text-align: center;
}

/* ---------- Summary column ---------- */
@media (min-width: 992px) {
    .pinfo { position: sticky; top: calc(76px + 1.5rem); }
}

.pinfo-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-bottom: .75rem; }

.pinfo-cat {
    padding: .25rem .7rem;
    border-radius: 999px;
    background: var(--zinc);
    color: var(--ink);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
}

.pinfo-cat:hover { background: var(--ink); color: #fff; }
.pinfo-sub { color: var(--blue); font-size: .875rem; font-weight: 600; }
.pcard-badge.is-inline { position: static; }

.pinfo-title { margin-bottom: .5rem; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); }
.pinfo-subtitle { margin-bottom: 1rem; color: var(--steel); font-size: 1.15rem; }

.pinfo-desc {
    max-height: 9.6em;           /* about 6 lines */
    overflow: hidden;
    line-height: 1.6;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
            mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

.pinfo-desc p { margin: 0; }
.pinfo-desc.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }

.pinfo-desc:not(.is-open):has(+ .pinfo-more[hidden]) { -webkit-mask-image: none; mask-image: none; }

.pinfo-more {
    margin-top: .35rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pinfo-label { display: block; margin-bottom: .5rem; font-weight: 600; }
.pinfo-colors { margin-top: 1.25rem; }

.swatches { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0; padding: 0; list-style: none; font-size: .9375rem; }
.swatches li { display: inline-flex; align-items: center; gap: .45rem; }
.swatch { width: 26px; height: 26px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }

.pinfo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.pinfo-actions .btn-lg { --bs-btn-font-size: 1.05rem; --bs-btn-padding-y: .8rem; --bs-btn-padding-x: 1.4rem; }

.pinfo-trust {
    display: grid;
    gap: .65rem 1rem;
    margin: 1.5rem 0 0;
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

@media (min-width: 576px) {
    .pinfo-trust { grid-template-columns: 1fr 1fr; }
}

.pinfo-trust li { display: flex; align-items: center; gap: .55rem; font-weight: 500; font-size: .9375rem; }
.pinfo-trust .icon { color: var(--blue); }

/* ---------- Section tabs (sticky under the header) ---------- */
.ptabs {
    position: sticky;
    top: 76px;
    z-index: 1010;
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
}

.ptabs ul {
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}

.ptabs a {
    display: block;
    padding: .9rem 0;
    border-bottom: 3px solid transparent;
    color: var(--steel);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.ptabs a:hover { color: var(--ink); }
.ptabs a.is-active { border-bottom-color: var(--amber); color: var(--ink); }

@media (max-width: 991.98px) {
    .ptabs { top: 76px; }
}

.psection { padding-block: 3rem 0; scroll-margin-top: 150px; }

.psection-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.psection-title { margin-bottom: 1.25rem; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }

/* Text from Markdown */
.prose { line-height: 1.7; }
.prose h2, .prose h3, .prose h4 { margin: 1.75rem 0 .75rem; font-size: 1.3rem; }
.prose h3, .prose h4 { font-size: 1.15rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--blue); }
.prose img { max-width: 100%; height: auto; border-radius: 8px; }
.prose blockquote { margin: 1.25rem 0; padding: .75rem 1.25rem; border-left: 4px solid var(--amber); background: var(--zinc); border-radius: 0 8px 8px 0; }
.prose blockquote p { margin: 0; }
.prose table { margin: 1rem 0; }

/* Videos inside editor content (e.g. product details) */
.content-videos {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.content-videos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.prose .video-play img { border-radius: 0; }

/* Advantages grid */
.feature-grid {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 576px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature-grid li {
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: .9rem;
    border-radius: 12px;
    background: var(--zinc);
    color: var(--blue);
}

.feature-icon .icon { width: 24px; height: 24px; }
.feature-grid h3 { margin-bottom: .4rem; font-size: 1.05rem; }
.feature-grid p { margin: 0; color: var(--steel); font-size: .9375rem; line-height: 1.55; }

/* Work stages: numbered steps */
.steps {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

@media (min-width: 768px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.steps li { display: flex; gap: 1rem; }

.step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 700;
}

.steps h3 { margin: .55rem 0 .35rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--steel); font-size: .9375rem; line-height: 1.55; }
.step-items { margin: .25rem 0 0; padding-left: 1.1rem; color: var(--steel); font-size: .9375rem; line-height: 1.55; }
.step-items li + li { margin-top: .2rem; }

/* Photos of works */
.works-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px)  { .works-photos { grid-template-columns: repeat(3, 1fr); gap: .9rem; } }
@media (min-width: 1200px) { .works-photos { grid-template-columns: repeat(4, 1fr); } }

.works-photos a { display: block; overflow: hidden; border-radius: 8px; cursor: zoom-in; }

.works-photos img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .4s ease;
}

.works-photos a:hover img { transform: scale(1.05); }

/* ---------- Full-screen photo viewer ---------- */
.lightbox .modal-content { background: #0B0E11; color: #fff; }

.lightbox-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .75rem 1rem;
}

.lightbox-count { font-weight: 600; font-variant-numeric: tabular-nums; }

.lightbox-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

.lightbox-btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox-btn .icon { width: 24px; height: 24px; }

.lightbox-stage {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0 1rem 1rem;
}

.lightbox-stage img {
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    object-fit: contain;
    user-select: none;
}

.lightbox-nav { position: absolute; top: 50%; margin-top: -24px; }
.lightbox-nav.is-prev { left: 1rem; }
.lightbox-nav.is-next { right: 1rem; }
.lightbox-nav.is-prev .icon { transform: rotate(90deg); }
.lightbox-nav.is-next .icon { transform: rotate(-90deg); }

/* =====================================================================
   Portfolio
   ===================================================================== */
.toggle-group {
    display: inline-flex;
    padding: 4px;
    border-radius: 999px;
    background: var(--zinc);
}

.toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem 1rem;
    border-radius: 999px;
    color: var(--steel);
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
}

.toggle .icon { width: 14px; height: 14px; }
.toggle:hover { color: var(--ink); }
.toggle.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px -2px rgba(28, 35, 43, .25); }

.catalog-toolbar-end { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }

/* Project cards: photo with title on it */
.wgrid {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 576px)  { .wgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px)  { .wgrid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.wcard {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 10px;
    background: var(--zinc);
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}

.wcard-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.wcard:hover .wcard-img { transform: scale(1.05); }

.wcard-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 18, 22, .88) 0%, rgba(14, 18, 22, .35) 40%, rgba(14, 18, 22, 0) 65%);
}

.wcard-badges {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: flex;
    gap: .35rem;
}

.wcard-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: rgba(14, 18, 22, .65);
    color: #fff;
    font-size: .8125rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.wcard-badge .icon { width: 14px; height: 14px; }
.wcard-badge.is-video { background: var(--amber); color: var(--ink); }

.wcard-body {
    position: absolute;
    left: 1.15rem;
    right: 1.15rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.wcard-cat { color: rgba(255, 255, 255, .8); font-size: .8125rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }

.wcard-title {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.25;
}

.wcard:hover .wcard-title { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }

/* Project page */
.work-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}

.work-head .pinfo-title { margin-bottom: 0; }
.work-meta { color: var(--steel); font-size: .9375rem; }

.work-gallery .pgallery-slide { aspect-ratio: 16 / 9; }

@media (max-width: 767.98px) {
    .work-gallery .pgallery-slide { aspect-ratio: 4 / 3; }
}

.video.is-file { background: #000; }
.video.is-file video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }

.work-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.work-pager-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    max-width: 48%;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.work-pager-link small { display: block; color: var(--steel); font-size: .8125rem; font-weight: 500; }
.work-pager-link.is-next { margin-left: auto; text-align: right; }
.work-pager-link .icon { flex-shrink: 0; width: 22px; height: 22px; }
.work-pager-link.is-prev .icon { transform: rotate(90deg); }
.work-pager-link.is-next .icon { transform: rotate(-90deg); }
.work-pager-link:hover { color: var(--blue); }

/* =====================================================================
   Blog (editorial look: white cards, type labels, reading layout)
   ===================================================================== */
.blog-page { padding-block: 1.75rem 4rem; }
.blog-head { max-width: 760px; margin-bottom: 1.5rem; }
.blog-head h1 { margin-bottom: .6rem; }

/* Underlined section tabs (different from the chips of catalog / portfolio) */
.blog-tabs {
    display: flex;
    gap: 1.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

.blog-tabs a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: -1px;
    padding: .75rem 0;
    border-bottom: 3px solid transparent;
    color: var(--steel);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.blog-tabs a span { color: #9AA6B2; font-size: .8125rem; font-weight: 500; }
.blog-tabs a:hover { color: var(--ink); }
.blog-tabs a.is-active { border-bottom-color: var(--ink); color: var(--ink); }
.blog-tabs a.is-promo.is-active { border-bottom-color: var(--amber); }

.blog-filter { display: inline-flex; align-items: center; gap: .5rem; margin: -1rem 0 1.5rem; padding: .35rem .5rem .35rem .9rem; border-radius: 999px; background: var(--zinc); }
.blog-filter a { display: inline-flex; color: var(--steel); }
.blog-filter .icon { width: 16px; height: 16px; }

/* Type label: coloured dot + word */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .9rem;
    margin: 0 0 .6rem;
    color: var(--steel);
    font-size: .875rem;
}

.post-type {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--ink);
    font-weight: 700;
    font-size: .8125rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
}

.post-type::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--steel); }
.post-type.is-news::before    { background: var(--blue); }
.post-type.is-article::before { background: #2E8B57; }
.post-type.is-promo::before   { background: var(--amber); }

/* Featured post: picture left, text right */
.post-lead {
    position: relative;
    display: grid;
    margin-bottom: 2.5rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

@media (min-width: 992px) {
    .post-lead { grid-template-columns: 1.35fr 1fr; }
}

.post-lead-media { position: relative; aspect-ratio: 16 / 10; background: var(--zinc); }
.post-lead-media { overflow: hidden; }
.post-lead-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 992px) {
    .post-lead-media { aspect-ratio: auto; min-height: 380px; }
}

.post-lead-body { display: flex; flex-direction: column; justify-content: center; padding: 1.75rem 1.75rem 2rem; }

@media (min-width: 1200px) {
    .post-lead-body { padding: 2.5rem 2.75rem; }
}

.post-lead-title { margin-bottom: .85rem; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem); line-height: 1.15; }
.post-lead-title a { color: var(--ink); text-decoration: none; }
.post-lead-title a::after { content: ""; position: absolute; inset: 0; } /* whole card is clickable */
.post-lead:hover .post-lead-title a { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 5px; }
.post-lead-excerpt { margin-bottom: 1rem; color: var(--steel); font-size: 1.0625rem; line-height: 1.6; }

.post-read { display: inline-flex; align-items: center; gap: .25rem; margin-top: .5rem; color: var(--blue); font-weight: 700; }
.post-read .icon { width: 18px; height: 18px; transform: rotate(-90deg); }

.post-tags { display: flex; flex-wrap: wrap; gap: .4rem .75rem; margin: 0 0 .5rem; }
.post-tags a { position: relative; z-index: 2; color: var(--steel); font-size: .875rem; font-weight: 500; text-decoration: none; }
.post-tags a:hover { color: var(--blue); }

/* Ribbon on promotions */
.post-ribbon {
    position: absolute;
    top: 1rem;
    left: 0;
    padding: .3rem .85rem .3rem .75rem;
    border-radius: 0 999px 999px 0;
    background: var(--amber);
    color: var(--ink);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.post-card.is-ended .post-ribbon { background: #C9D0D7; }

/* Post cards grid */
.post-grid {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px)  { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.post-item { display: flex; }

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}

.post-card:hover { box-shadow: 0 18px 34px -24px rgba(28, 35, 43, .5); transform: translateY(-2px); }
.post-card.is-promo { border-top: 4px solid var(--amber); }
.post-card.is-ended { opacity: .8; }

.post-card-media { position: relative; flex-shrink: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--zinc); }
.post-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.post-card-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #B9C2CB; }
.post-card-noimg .icon { width: 48px; height: 48px; }

.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.15rem 1.25rem 1.1rem; }

.post-card-title { margin-bottom: .5rem; font-size: 1.15rem; line-height: 1.3; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-card-title a { color: var(--blue); }

.post-card-excerpt {
    display: -webkit-box;
    margin-bottom: 1rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: var(--steel);
    font-size: .9375rem;
    line-height: 1.55;
}

.post-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: auto 0 0;
    padding-top: .85rem;
    border-top: 1px solid var(--line);
    color: var(--steel);
    font-size: .875rem;
}

.post-ends { display: inline-flex; align-items: center; gap: .35rem; color: #8A5A00; font-weight: 600; }
.post-ends .icon { width: 16px; height: 16px; }

.post-card-arrow .icon { width: 18px; height: 18px; transform: rotate(-90deg); color: var(--blue); transition: transform .15s ease; }
.post-card:hover .post-card-arrow .icon { transform: rotate(-90deg) translateY(3px); }

/* ---------- Single post: reading layout ---------- */
.post-page { padding-block: 1.75rem 4rem; }
.post-header, .post-body { max-width: 760px; margin-inline: auto; }
.post-header { margin-bottom: 1.75rem; text-align: center; }
.post-header .post-meta { justify-content: center; }
.post-title { margin-bottom: 1rem; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.1; text-wrap: balance; }
.post-lead-text { margin: 0 auto; max-width: 62ch; color: var(--steel); font-size: 1.2rem; line-height: 1.55; }

.post-cover { max-width: 1000px; margin: 0 auto 2.25rem; }
.post-cover a { display: block; overflow: hidden; border-radius: 14px; cursor: zoom-in; }
.post-cover img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; }

.post-prose { font-size: 1.0938rem; line-height: 1.75; }
.post-prose p { margin-bottom: 1.15rem; }

.post-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .6rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.post-photos a { display: block; overflow: hidden; border-radius: 8px; cursor: zoom-in; }
.post-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.post-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.post-footer .post-tags { margin: 0; }
.post-footer .post-tags a { padding: .3rem .7rem; border-radius: 999px; background: var(--zinc); color: var(--ink); }

.post-share { display: flex; align-items: center; gap: .4rem; color: var(--steel); font-size: .875rem; font-weight: 600; }
.post-share span:first-child { margin-right: .35rem; }

.post-share a,
.post-share button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
}

.post-share a:hover, .post-share button:hover { border-color: var(--ink); }
.post-share .icon { width: 18px; height: 18px; }
.post-share .copied { position: absolute; top: -1.9rem; left: 50%; transform: translateX(-50%); padding: .15rem .5rem; border-radius: 4px; background: var(--ink); color: #fff; font-size: .75rem; white-space: nowrap; }

/* Offer box on promotions */
.offer-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.25rem;
    max-width: 760px;
    margin: 0 auto 2rem;
    padding: 1.1rem 1.25rem;
    border: 1px solid #F3D489;
    border-radius: 12px;
    background: #FFF8E6;
}

.offer-box > div { flex: 1; min-width: 14rem; }
.offer-box strong { display: block; font-size: 1.05rem; }
.offer-box span { color: #6B5A2E; }
.offer-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--amber); color: var(--ink); }
.offer-box.is-ended { border-color: var(--line); background: var(--zinc); }
.offer-box.is-ended .offer-icon { background: #C9D0D7; }

/* Menu: amber dot next to "Promotions" */
.menu-dot { display: inline-block; width: 7px; height: 7px; margin-left: .25rem; border-radius: 50%; background: var(--amber); vertical-align: middle; }

/* =====================================================================
   Gallery
   ===================================================================== */
.gallery-page { padding-block: 1.75rem 4rem; }
.gallery-group { padding-top: 2rem; }
.gallery-group .psection-title { margin-bottom: 1rem; }

.ggrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px)  { .ggrid { grid-template-columns: repeat(3, 1fr); gap: .75rem; } }
@media (min-width: 1200px) { .ggrid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }

.gtile a {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    background: var(--zinc);
    cursor: zoom-in;
}

.gtile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.gtile a:hover img { transform: scale(1.05); }

.gtile-tag {
    position: absolute;
    top: .5rem;
    left: .5rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: rgba(14, 18, 22, .65);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
}

/* Caption: always visible on phones, slides up on hover on computers */
.gtile-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem .75rem .6rem;
    background: linear-gradient(to top, rgba(14, 18, 22, .85), rgba(14, 18, 22, 0));
    color: #fff;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.3;
}

@media (hover: hover) and (min-width: 992px) {
    .gtile-cap { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; }
    .gtile a:hover .gtile-cap, .gtile a:focus-visible .gtile-cap { opacity: 1; transform: none; }
}

/* =====================================================================
   Content pages (About, Order, Warranty ...), FAQ, Reviews, Contacts
   ===================================================================== */
.content-page, .list-page { padding-block: 1.75rem 4rem; }
.content-page h1, .list-page h1 { margin-bottom: .6rem; }
.content-intro { max-width: 760px; color: #5b6472; font-size: 1.1rem; }

.content-hero { margin-bottom: 2rem; }
.content-hero.has-cover { display: grid; gap: 1.5rem; align-items: center; }
.content-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
@media (min-width: 992px) {
    .content-hero.has-cover { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.content-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 992px) {
    .content-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; }
    .content-layout.is-legal { grid-template-columns: minmax(0, 860px); }
    .content-side { position: sticky; top: calc(var(--header-h, 72px) + 1.25rem); }
}
.content-body > :first-child { margin-top: 0; }

.side-card { padding: 1.5rem; border-radius: 12px; background: var(--ink); color: #fff; }
.side-card h2 { font-size: 1.25rem; margin-bottom: .5rem; color: #fff; }
.side-card p { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.side-card .btn-call { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); color: #fff; }
.side-card .btn-call:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.side-card .btn svg { width: 18px; height: 18px; margin-right: .35rem; vertical-align: -3px; }

.side-links { margin-top: 1.25rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: 12px; }
.side-links h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #5b6472; margin-bottom: .5rem; }
.side-links ul { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a svg { width: 14px; height: 14px; opacity: .4; transform: rotate(-90deg); transition: transform .2s; }
.side-links a:hover { color: var(--blue); }
.side-links a:hover svg { transform: rotate(-90deg) translateY(3px); opacity: 1; }
.side-links a[aria-current] { color: var(--blue); font-weight: 600; }

.draft-note { margin: 0 0 1rem; padding: .6rem 1rem; border-radius: 8px; background: #FFF4D6; color: #6B4A00; font-size: .9rem; }
.draft-note a { font-weight: 600; color: inherit; }

/* Request form on a page */
.request-block { display: grid; gap: 1.5rem; margin-top: 3.5rem; padding: 1.75rem; border-radius: 16px; background: var(--zinc); scroll-margin-top: calc(var(--header-h, 72px) + 1rem); }
@media (min-width: 992px) {
    .request-block { grid-template-columns: 5fr 7fr; gap: 3rem; padding: 2.5rem 3rem; }
}
.request-block h2 { font-size: 1.6rem; scroll-margin-top: calc(var(--header-h, 72px) + 2rem); }
.request-block-intro p { color: #5b6472; }
.request-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.request-phone svg { width: 20px; height: 20px; color: var(--blue); }
.request-block .form-control { background: #fff; }
.request-block .optional { color: #8a929e; font-weight: 400; font-size: .85em; }
.request-block .form-success { background: #fff; border-radius: 12px; }
.request-block .form-success:focus { outline: none; }

/* FAQ */
.faq-layout { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 992px) {
    .faq-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; }
}
.faq-tools { display: grid; gap: .9rem; margin: 1.5rem 0; }
.faq-search { max-width: 460px; }
.faq-group { margin-bottom: 2rem; }
.faq-group h2 { font-size: 1.2rem; margin-bottom: .75rem; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .6rem; background: #fff; scroll-margin-top: calc(var(--header-h, 72px) + 1rem); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; width: 16px; height: 16px; transition: transform .2s; color: var(--blue); }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item summary:hover { color: var(--blue); }
.faq-item[open] { border-color: #c9d3e6; box-shadow: 0 6px 20px rgba(20, 30, 50, .06); }
.faq-answer { padding: 0 1.25rem 1.1rem; }
.faq-answer > :last-child { margin-bottom: 0; }
.faq-none { color: #5b6472; }

/* Reviews page */
.reviews-page-head { display: grid; gap: 2rem; align-items: center; margin-bottom: 2.5rem; }
@media (min-width: 992px) {
    .reviews-page-head { grid-template-columns: 1fr 420px; gap: 4rem; }
}
.reviews-board { padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.reviews-bars { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .4rem; }
.reviews-bars li { display: grid; grid-template-columns: 2.5rem 1fr 2.5rem; align-items: center; gap: .6rem; font-size: .9rem; }
.reviews-bars li > span:first-child { display: inline-flex; align-items: center; gap: .2rem; }
.reviews-bars li svg { width: 13px; height: 13px; color: var(--amber); fill: currentColor; }
.reviews-bars .bar { height: 8px; border-radius: 4px; background: var(--zinc); overflow: hidden; }
.reviews-bars .bar span { display: block; height: 100%; background: var(--amber); border-radius: 4px; }
.reviews-bars .count { text-align: right; color: #5b6472; }
.review-wall { list-style: none; margin: 2rem 0 0; padding: 0; columns: 1; column-gap: 1.25rem; }
.review-wall > li { break-inside: avoid; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .review-wall { columns: 2; } }
@media (min-width: 1200px) { .review-wall { columns: 3; } }
.review-wall .review-card { height: auto; border-color: #dfe3e8; box-shadow: 0 4px 18px -10px rgba(28, 35, 43, .25); }

/* Contacts page */
.contacts-page { padding-bottom: 1.5rem; }
.contacts-extra { padding-bottom: 4rem; }
.contacts-extra .request-block { margin-top: 2rem; }
.company-details { padding: 1.5rem 1.75rem; border: 1px solid var(--line); border-radius: 14px; }
.company-details h2 { font-size: 1.2rem; }
.company-details ul { list-style: none; margin: 0; padding: 0; color: #5b6472; }
.company-details li + li { margin-top: .25rem; }
.company-details li:first-child { color: var(--ink); font-weight: 600; }

/* =====================================================================
   Temporary pages and footer (replaced in later steps)
   ===================================================================== */
.placeholder-page { min-height: 55vh; }
.placeholder-page .lead { max-width: 60ch; color: var(--steel); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
    padding-top: 3.5rem;
    background: var(--ink);
    color: #AEB8C2;
    font-size: .9375rem;
}

.footer-grid {
    display: grid;
    gap: 2.25rem 1.5rem;
    grid-template-columns: 1fr 1fr;
    padding-bottom: 2.5rem;
}

.footer-brand,
.footer-contacts { grid-column: 1 / -1; }

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-contacts { grid-column: auto; }
}

@media (min-width: 1200px) {
    .footer-grid { grid-template-columns: 1.4fr .9fr 1.1fr .8fr 1.5fr; gap: 2.25rem; }
    .footer-brand { grid-column: auto; }
}

/* Logo on dark: the dark part of the logo becomes white */
.footer-logo img {
    display: block;
    width: auto;
    height: 42px;
    filter: brightness(0) invert(1);
}

.footer-about {
    max-width: 34ch;
    margin: 1.1rem 0 1.4rem;
    line-height: 1.6;
}

.footer-title {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    font-stretch: 95%;
    letter-spacing: .02em;
}

.footer-links,
.footer-contact-list,
.footer-legal {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links li + li { margin-top: .55rem; }

.site-footer a {
    color: #D5DCE2;
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--amber);
}

.footer-contact-list li {
    display: flex;
    gap: .65rem;
    margin-bottom: .8rem;
    line-height: 1.45;
}

.footer-contact-list .icon {
    width: 18px;
    height: 18px;
    margin-top: .15rem;
    color: var(--amber);
}

.footer-contact-list a { font-weight: 600; overflow-wrap: anywhere; }
.footer-contact-list a[href^="mailto:"] { font-weight: 400; }
.footer-contact-list address { margin: 0; }

.footer-contacts .social-links { margin-top: 1.1rem; gap: .5rem; }

.footer-contacts .social-links a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
}

.footer-contacts .social-links a:hover { border-color: var(--amber); color: var(--amber); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .875rem;
}

.footer-bottom p { margin: 0; }

.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

.review-card-text.is-rating-only { color: #8A929E; font-style: italic; }
