:root {
    --ink: #121417;
    --ink-soft: #3d4550;
    --muted: #7a8490;
    --line: #e4e8ec;
    --line-strong: #cfd6dd;
    --surface: #f5f7f9;
    --surface-2: #ffffff;
    --white: #ffffff;
    /* WDS-inspired palette */
    --accent: #00a3e0;
    --accent-hover: #008fc4;
    --accent-soft: rgba(0, 163, 224, 0.1);
    --brand: #0077a8;
    --brand-deep: #0b1c28;
    --shadow: 0 12px 40px rgba(11, 28, 40, 0.08);
    --radius: 2px;
    --container: 1200px;
    --header-h: 72px;
    --font-display: "Syne", sans-serif;
    --font-body: "DM Sans", sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    pointer-events: none;
}

/* —— Topbar / Header —— */
.topbar {
    background: var(--brand-deep);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.topbar-inner {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.topbar a:hover { color: #fff; }
.topbar-social { display: flex; gap: 0.85rem; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 4px 24px rgba(11, 28, 40, 0.04);
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
}

.brand-logo--compact {
    width: 42px;
    height: 42px;
}

.brand-logo--full {
    width: 72px;
    height: 72px;
}

.hero-feature {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.hero-logo-plate {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
}

.hero-logo {
    position: relative;
    z-index: 1;
    width: min(100%, 400px);
    height: auto;
    max-height: min(52vh, 420px);
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
    filter:
        drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45))
        drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4))
        drop-shadow(0 18px 28px rgba(11, 28, 40, 0.35));
    animation: logoFloat 5s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    from { transform: translateY(0) scale(1); }
    to { transform: translateY(-8px) scale(1.015); }
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.brand-text strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    line-height: 1.15;
    font-weight: 700;
    white-space: nowrap;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.72rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-nav > ul {
    display: flex;
    align-items: center;
    gap: 0.05rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav > ul > li { position: relative; }

.site-nav a {
    display: block;
    padding: 0.5rem 0.55rem;
    color: var(--ink-soft);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--accent); }

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin: 0;
    padding: 0.4rem;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: 0.2s var(--ease);
    z-index: 20;
}

.has-children:hover .submenu,
.has-children:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a { padding: 0.5rem 0.7rem; }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 1.5px;
    background: var(--ink);
}

/* —— Buttons —— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.25s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover { transform: translateY(-1px); }

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

.btn-primary:hover { background: var(--accent-hover); }

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

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

.btn-ghost.dark {
    color: var(--brand);
    border-color: var(--brand);
}

.btn-sm {
    min-height: 38px;
    padding: 0.45rem 0.95rem;
    font-size: 0.85rem;
}

.btn-block { width: 100%; }

/* —— Hero —— */
.hero {
    position: relative;
    min-height: calc(100svh - 34px - var(--header-h));
    display: grid;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

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

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    animation: heroZoom 20s var(--ease) infinite alternate;
}

.hero-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(11, 28, 40, 0.9) 0%, rgba(11, 28, 40, 0.62) 42%, rgba(11, 28, 40, 0.28) 100%),
        linear-gradient(180deg, transparent 40%, rgba(11, 28, 40, 0.45) 100%);
}

.hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
    padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.hero-content {
    max-width: 680px;
}

.hero-brand {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 4.6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.15;
    white-space: nowrap;
}

.hero-rule,
.section-rule {
    width: 56px;
    height: 2px;
    background: var(--accent);
    margin: 0 0 1.1rem;
}

.section-rule.light,
.hero-rule { background: var(--accent); }

.hero h1 {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    max-width: 20ch;
    color: rgba(255, 255, 255, 0.95);
}

.hero-sub {
    margin: 0 0 1.75rem;
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.02rem;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    z-index: 2;
}

.hero-scroll span {
    display: block;
    width: 3px;
    height: 3px;
    margin: 9px auto 0;
    border-radius: 50%;
    background: #fff;
    animation: scrollDot 1.6s ease infinite;
}

@keyframes heroZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.07); }
}

@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(14px); opacity: 0; }
    100% { opacity: 0; }
}

/* —— Sections —— */
.section {
    padding: clamp(3.75rem, 7vw, 6.5rem) 0;
    border-top: 1px solid var(--line);
}

.section:first-of-type,
.hero + .section { border-top: 0; }

.about,
.glass,
.hardware,
.forms-band,
.contacts { background: var(--surface); }

.about--accent {
    background:
        linear-gradient(180deg, rgba(0, 163, 224, 0.14), rgba(232, 246, 252, 0.85) 40%, #eaf6fb 100%);
    border-top: 1px solid rgba(0, 163, 224, 0.22);
    border-bottom: 1px solid rgba(0, 163, 224, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.windows,
.doors,
.products,
.glazing,
.related,
.works,
.calculate { background: var(--white); }

.section-head {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    max-width: 620px;
}

.section-head.compact {
    margin-bottom: 1.75rem;
}

.section-kicker {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-kicker.light { color: rgba(255, 255, 255, 0.7); }

.section-head h2,
.forms-intro h2,
.modal-dialog h2 {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.2vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.12;
    color: var(--ink);
}

.forms-intro h2 { color: #fff; }

.section-lead {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1.05rem;
    max-width: 48ch;
}

.section-cta {
    margin-top: 2rem;
    text-align: center;
}

.muted { color: var(--muted); }

/* —— About —— */
.about-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.about-copy > p {
    margin: 0 0 1.15rem;
    color: var(--ink-soft);
    font-size: 1.02rem;
    max-width: 58ch;
}

.about-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.about-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.about-meta strong {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
}

.about-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.about-points li {
    display: block;
    padding: 1.25rem 1.35rem 1.25rem 1.45rem;
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.14), rgba(0, 163, 224, 0.04));
    border: 1px solid rgba(0, 163, 224, 0.18);
    border-left: 8px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0, 119, 168, 0.06);
    transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.about-points li:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 119, 168, 0.12);
}

.about-points strong {
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
}

.about-points span { color: var(--ink-soft); font-size: 0.92rem; }

/* —— Info cards (text-first, no big photos) —— */
.info-grid {
    display: grid;
    gap: 1rem;
}

.info-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.info-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.info-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.info-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.5rem 1.4rem 1.6rem;
    transition: border-color 0.25s ease, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.about .info-card,
.glass .info-card,
.hardware .info-card,
.surface-card {
    background: var(--white);
}

.windows .info-card,
.doors .info-card,
.glazing .info-card,
.related .info-card {
    background: var(--surface);
}

.info-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.info-card-index {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.info-card h3 {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.info-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.45rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.specs {
    display: flex;
    gap: 0.45rem;
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    flex-wrap: wrap;
}

.specs li {
    background: var(--accent-soft);
    color: var(--brand);
    padding: 0.28rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* —— Windows catalog cards —— */
.profile-track {
    position: relative;
    padding-inline: 1.35rem;
}

.profile-rail,
.profile-grid {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0.45rem 0.15rem 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.profile-rail::-webkit-scrollbar,
.profile-grid::-webkit-scrollbar { display: none; }

.profile-product {
    flex: 0 0 min(300px, 82vw);
    scroll-snap-align: start;
    background: var(--white);
    border: 2px solid var(--line);
    overflow: hidden;
    display: grid;
    grid-template-rows: 200px auto;
    transition: border-color 0.25s ease, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.windows .profile-product {
    background: var(--surface);
}

.profile-product:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.2), var(--shadow);
    transform: translateY(-3px);
}

.profile-product-visual {
    background: #fff;
    display: grid;
    place-items: center;
    padding: 0.85rem;
    border-bottom: 1px solid var(--line);
}

.profile-product-visual img {
    max-width: 100%;
    max-height: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.profile-product-body {
    padding: 1.15rem 1.2rem 1.35rem;
}

.wds-badge {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.75rem;
    background: var(--accent);
    color: #fff !important;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.2;
    border-radius: 2px;
}

.profile-specs {
    margin: 0 0 0.7rem !important;
    color: var(--brand) !important;
    font-size: 0.86rem !important;
    font-weight: 600;
    line-height: 1.45;
}

.profile-product-body p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

/* —— Doors: static categories —— */
.door-static-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.door-static-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.door-static-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.door-static-visual {
    background: var(--surface);
}

.door-static-visual img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.door-static-body {
    padding: 1.15rem 1.2rem 1.3rem;
}

.door-static-card h3 {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.25;
}

.door-static-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

/* —— Doors: category tabs + model grid —— */
.door-tabbed {
    margin-bottom: 1.25rem;
}

.door-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.door-tab {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink-soft);
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.65rem 1.1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.door-tab:hover {
    border-color: var(--accent);
    color: var(--ink);
}

.door-tab.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.door-panel-intro {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.door-panel-visual {
    background: var(--surface);
    overflow: hidden;
    max-width: 320px;
}

.door-panel-visual img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.door-panel-intro p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.98rem;
    max-width: 60ch;
}

@media (min-width: 640px) {
    .door-panel-intro {
        grid-template-columns: 220px 1fr;
        align-items: center;
    }
}

.door-model-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.door-model {
    border: 1px solid var(--line);
    background: var(--white);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.door-model:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.door-model-visual {
    background: var(--surface);
}

.door-model-visual img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.door-model h4 {
    margin: 0;
    padding: 0.6rem 0.7rem 0.75rem;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

/* Generic "photo pending" placeholder styling — used wherever real client
   photos have not been supplied yet (door models, glass types, related items) */
.door-model-visual.is-placeholder img,
.related-card-visual.is-placeholder img {
    object-fit: contain;
    padding: 0.75rem;
    background: var(--surface);
    opacity: 0.9;
}

/* —— Reviews —— */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.review-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid var(--line);
    background: var(--white);
    padding: 1.4rem 1.5rem;
}

.review-avatar {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
}

.review-text {
    margin: 0 0 0.5rem;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.55;
}

.review-name {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 600;
}

.pending-note {
    font-style: italic;
    opacity: 0.85;
}

.door-note {
    margin-top: 0.25rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(0, 163, 224, 0.22);
    background: linear-gradient(135deg, rgba(0, 163, 224, 0.1), rgba(0, 163, 224, 0.03));
    border-left: 3px solid var(--accent);
    display: grid;
    gap: 1rem;
    align-items: start;
}

.door-note p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 1rem;
    max-width: 62ch;
    line-height: 1.55;
}

@media (min-width: 820px) {
    .door-note {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 1.5rem;
    }
}

.related-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-card {
    border: 1px solid var(--line);
    background: var(--white);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s ease, transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.related-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.related-card-visual {
    background: var(--surface);
}

.related-card-visual img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.related-card h3 {
    margin: 0;
    padding: 1.05rem 1.15rem 0;
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.25;
}

.related-card h3:last-child {
    padding-bottom: 1.2rem;
}

.related-card p {
    margin: 0.4rem 1.15rem 1.15rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.related-chip {
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 1.25rem 1.2rem;
    transition: border-color 0.2s ease, transform 0.25s var(--ease);
}

.related-chip:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.related-chip h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
}

.glass-copy {
    max-width: 70ch;
    margin-bottom: 1.75rem;
}

.glass-copy p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    font-size: 1.02rem;
}

.glass-gallery {
    margin-top: 0.5rem;
}

.footer-brand img.brand-logo--full {
    width: 72px;
    height: 72px;
    background: transparent;
}

.slider-btn {
    position: absolute;
    top: 42%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.slider-btn:hover {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--accent);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: default;
    transform: none;
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

/* —— Products jump —— */
.products-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.products-jump a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0.55rem 1.15rem;
    border: 1px solid var(--line);
    background: var(--surface);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.products-jump a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--white);
}

/* —— Works / gallery —— */
.works-stage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 168px;
    gap: 0.65rem;
}

.works-feature {
    margin: 0;
    min-height: 0;
    grid-column: 1;
    grid-row: span 2;
}

.works-video {
    position: relative;
    overflow: hidden;
    background: var(--brand-deep);
    border: 1px solid var(--line);
    height: 100%;
}

.works-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0b1c28;
}

.works-play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.65rem;
    border: 0;
    margin: 0;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(11, 28, 40, 0.05) 40%, rgba(11, 28, 40, 0.58) 100%);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: background 0.25s ease;
}

.works-play:hover,
.works-play:focus-visible {
    background: rgba(11, 28, 40, 0.4);
    outline: none;
}

.works-play-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent);
    position: relative;
}

.works-play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 53%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 8px 0 8px 13px;
    border-color: transparent transparent transparent #fff;
}

.works-play-meta {
    display: grid;
    gap: 0.15rem;
}

.works-play-meta strong {
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 700;
}

.works-play-meta em {
    font-style: normal;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
}

.works-video.is-playing .works-play {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
}

.works-stage .gallery-grid {
    display: contents;
}

.gallery-item {
    padding: 0;
    border: 1px solid var(--line);
    cursor: pointer;
    overflow: hidden;
    background: var(--surface);
    min-height: 0;
    aspect-ratio: 1;
}

.works-stage .gallery-item {
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease);
}

.gallery-item:hover img {
    transform: scale(1.04);
}

/* —— Forms —— */
.forms-band,
.calculate {
    background:
        linear-gradient(135deg, rgba(11, 28, 40, 0.94), rgba(0, 119, 168, 0.88)),
        var(--brand-deep);
    color: #fff;
    border-top: 0;
}

.forms-band .section-lead,
.calculate .section-lead {
    color: rgba(255, 255, 255, 0.78);
}

.forms-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.forms-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.forms-phone {
    display: inline-block;
    margin: 1.15rem 0 0.45rem;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.forms-panel {
    background: var(--white);
    color: var(--ink);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow);
}

.lead-form { display: grid; gap: 0.85rem; }

.field { display: grid; gap: 0.3rem; }

.field span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius);
    padding: 0.75rem 0.85rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.field-file em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
}

.form-status { margin: 0; font-size: 0.9rem; }
.form-status.is-ok { color: #0f7a45; }
.form-status.is-err { color: #b42318; }

/* —— Contacts —— */
.contacts-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: 1rem;
}

.contacts-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.5rem;
}

.contacts-card h3 {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.contacts-card p { margin: 0 0 0.65rem; }

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

.hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.4rem;
    font-size: 0.92rem;
}

.map-wrap,
.map-placeholder {
    min-height: 340px;
    background: var(--white);
    border: 1px solid var(--line);
    overflow: hidden;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 340px;
    border: 0;
}

.map-placeholder {
    display: grid;
    place-content: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
    color: var(--ink-soft);
}

/* —— Footer —— */
.site-footer {
    background: var(--brand-deep);
    color: rgba(255, 255, 255, 0.82);
    padding-top: 3rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.footer-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
}

.footer-brand strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    color: #fff;
    font-weight: 700;
}

.footer-col h3 {
    margin: 0 0 0.85rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.footer-links a:hover,
.footer-contacts a:hover { color: #fff; }

.footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.site-footer .hours li { border-color: rgba(255, 255, 255, 0.1); }

/* —— FAB + modal —— */
.fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0.7rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 12px 30px rgba(0, 163, 224, 0.35);
    cursor: pointer;
    animation: fabIn 0.7s var(--ease) both;
}

.fab:hover { background: var(--accent-hover); }

.fab-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9effd0;
    animation: pulse 1.8s ease infinite;
}

@keyframes fabIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(158, 255, 208, 0.55); }
    70% { box-shadow: 0 0 0 10px rgba(158, 255, 208, 0); }
    100% { box-shadow: 0 0 0 0 rgba(158, 255, 208, 0); }
}

.modal[hidden],
.lightbox[hidden],
[data-modal-calculate][hidden] { display: none !important; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 28, 40, 0.58);
    backdrop-filter: blur(3px);
}

.modal-dialog {
    position: relative;
    width: min(100%, 440px);
    background: #fff;
    padding: 1.5rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    animation: modalUp 0.35s var(--ease);
}

.modal-close,
.lightbox-close {
    position: absolute;
    top: 0.5rem;
    right: 0.65rem;
    border: 0;
    background: transparent;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

@keyframes modalUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(8, 14, 20, 0.92);
    display: grid;
    place-items: center;
    padding: 2rem;
}

.lightbox img {
    max-width: min(1100px, 100%);
    max-height: 85vh;
    object-fit: contain;
}

/* —— Reveal —— */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
    transition-delay: calc(var(--d, 0) * 55ms);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* —— Responsive —— */
@media (max-width: 1100px) {
    .brand-text strong {
        font-size: 0.82rem;
        white-space: normal;
        max-width: 11rem;
    }

    .works-stage {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 150px;
    }

    .info-grid.cols-4,
    .gallery-grid,
    .related-list,
    .door-static-grid,
    .door-model-grid,
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }

    .info-grid.cols-3,
    .info-grid.cols-2,
    .about-layout,
    .forms-layout,
    .contacts-grid,
    .footer-grid,
    .hero-layout { grid-template-columns: 1fr; }

    .hero-feature {
        justify-content: center;
        order: -1;
    }

    .hero-logo {
        width: min(100%, 280px);
        max-height: 36vh;
    }

    .header-cta { display: none; }
}

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }

    .site-nav {
        position: fixed;
        inset: calc(34px + var(--header-h)) 0 auto 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s var(--ease);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .site-nav > ul {
        flex-direction: column;
        align-items: stretch;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding-left: 0.5rem;
    }

    .brand-text small { display: none; }

    .about-meta { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .info-grid.cols-4,
    .info-grid.cols-3,
    .info-grid.cols-2,
    .gallery-grid,
    .related-list,
    .door-static-grid,
    .door-model-grid,
    .reviews-grid { grid-template-columns: 1fr; }

    .works-stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 140px;
    }

    .works-feature {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .works-video {
        aspect-ratio: 16 / 10;
        max-height: 240px;
    }

    .hero-actions { flex-direction: column; align-items: stretch; }

    .fab {
        right: 0.85rem;
        bottom: 0.85rem;
        font-size: 0.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-img,
    .fab-dot,
    .hero-scroll span,
    .hero-logo,
    .reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
