/* ==========================================================================
   Kaylite King — product pages
   Styled after the 2026 Company Profile and Cornice Catalogue.
   Everything is scoped under .kk so the rest of the site is unaffected.
   ========================================================================== */

.kk {
    --kk-blue: #0a6ba8;      /* brand: header start + footer */
    --kk-blue-700: #055391;  /* primary: hover */
    --kk-navy: #044373;      /* brand-dark: header end */
    --kk-navy-900: #033357;
    --kk-sky: #a6cdea;
    --kk-ice: #e7f1f9;
    --kk-ice-50: #f2f7fc;
    --kk-page: #f7f8fa;
    --kk-white: #ffffff;
    --kk-line: #d6e2ec;
    --kk-ink: #1d2733;
    --kk-body: #3a4856;
    --kk-muted: #5b6b7b;
    --kk-radius: 12px;
    --kk-radius-lg: 16px;
    --kk-shadow: 0 1px 2px rgba(4, 67, 115, .06), 0 10px 30px rgba(4, 67, 115, .08);
    --kk-shadow-lg: 0 2px 4px rgba(4, 67, 115, .06), 0 24px 48px rgba(4, 67, 115, .16);
    --kk-display: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    --kk-text: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

    background: var(--kk-page);
    color: var(--kk-ink);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

/* The site header sets Inter on every element; use the catalogue fonts here */
.kk, .kk * { font-family: var(--kk-text); }
.kk h1, .kk h2, .kk h3, .kk h4,
.kk .kk-eyebrow, .kk .kk-btn, .kk .kk-link, .kk th,
.kk .kk-display { font-family: var(--kk-display); }

.kk img { display: block; max-width: 100%; }
:where(.kk) a { color: inherit; }
.kk :focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; border-radius: 4px; }

.kk-icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Layout ---------- */
.kk-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .kk-wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .kk-wrap { padding: 0 32px; } }

.kk-section { padding: 56px 0; }
@media (min-width: 768px) { .kk-section { padding: 80px 0; } }
.kk-section--white { background: var(--kk-white); }
.kk-section--ice { background: var(--kk-ice-50); }
.kk-section--tight-top { padding-top: 32px; }
.kk-section--flush-top { padding-top: 0; }

.kk-section-head { max-width: 760px; margin-bottom: 32px; }
.kk-section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.kk-section-head--row > div { max-width: 720px; }

/* ---------- Type ---------- */
.kk-eyebrow {
    margin: 0 0 10px;
    font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--kk-muted);
}
.kk-eyebrow--light { color: var(--kk-sky); }

.kk-h2 {
    margin: 0;
    font-size: clamp(28px, 4.2vw, 42px); font-weight: 800; line-height: 1.1; letter-spacing: -.015em;
    color: var(--kk-blue);
    text-wrap: balance;
}
.kk-h3 { margin: 0 0 12px; font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--kk-blue); }
.kk-lead { margin: 16px 0 0; font-size: 17px; line-height: 1.7; color: var(--kk-body); max-width: 68ch; }
@media (min-width: 768px) { .kk-lead { font-size: 18px; } }
.kk-muted { color: var(--kk-muted); }
.kk-mono { font-variant-numeric: tabular-nums; letter-spacing: .01em; }

/* ---------- Buttons & links ---------- */
.kk-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px; border-radius: 999px;
    font-size: 15px; font-weight: 700; text-decoration: none; letter-spacing: .01em;
    border: 2px solid transparent;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.kk-btn:hover { transform: translateY(-1px); }
.kk-btn--primary { background: var(--kk-blue); color: #fff; box-shadow: 0 8px 20px rgba(10, 107, 168, .25); }
.kk-btn--primary:hover { background: var(--kk-blue-700); }
.kk-btn--outline { border-color: var(--kk-blue); color: var(--kk-blue); background: transparent; }
.kk-btn--outline:hover { background: var(--kk-blue); color: #fff; }
.kk-btn--white { background: #fff; color: var(--kk-blue); }
.kk-btn--white:hover { background: var(--kk-ice); }
.kk-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.kk-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.kk-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.kk-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 700; color: var(--kk-blue); text-decoration: none;
}
.kk-link .kk-icon { transition: transform .2s ease; }
.kk-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.kk-link:hover .kk-icon { transform: translateX(3px); }
.kk-link--quiet { color: var(--kk-muted); font-weight: 600; }
.kk-link--quiet:hover .kk-icon { transform: none; }

/* PDF download link (company profile / catalogue) */
.kk-download {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px 10px 12px;
    border: 1px dashed #9cc0dc; border-radius: 10px; background: #fff;
    font-family: var(--kk-display); font-size: 14px; font-weight: 700; color: var(--kk-blue); text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease;
}
.kk-btns .kk-download { margin-top: 0; }
.kk-download:hover { border-style: solid; border-color: var(--kk-blue); background: var(--kk-ice-50); }
.kk-download .kk-icon { width: 20px; height: 20px; }
.kk-download__meta { font-family: var(--kk-text); font-weight: 400; font-size: 13px; color: var(--kk-muted); white-space: nowrap; }
.kk-download--light { border-color: rgba(255, 255, 255, .45); background: transparent; color: #fff; }
.kk-download--light .kk-download__meta { color: var(--kk-sky); }
.kk-download--light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

.kk-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 13px; color: var(--kk-muted); }
.kk-crumbs a { color: var(--kk-blue); text-decoration: none; font-weight: 600; }
.kk-crumbs a:hover { text-decoration: underline; }
.kk-crumbs li + li::before { content: "/"; margin-right: 6px; color: #9aa8b5; }

/* ---------- Products hero (company profile cover) ---------- */
.kk-hero__media { position: relative; height: clamp(240px, 38vw, 440px); background: var(--kk-navy); }
.kk-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.kk-hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(3, 51, 87, .10) 0%, rgba(3, 51, 87, .35) 100%);
}
.kk-hero__band { background: var(--kk-blue); padding-bottom: 28px; }
@media (min-width: 768px) { .kk-hero__band { padding-bottom: 40px; } }
.kk-hero__card {
    position: relative; z-index: 2;
    margin-top: -72px; padding: 28px 22px;
    background: #fff; border-radius: var(--kk-radius-lg); box-shadow: var(--kk-shadow-lg);
    max-width: 880px;
}
@media (min-width: 768px) { .kk-hero__card { margin-top: -150px; padding: 40px 44px; } }
.kk-hero__title {
    margin: 0; font-size: clamp(36px, 6.4vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em;
    color: var(--kk-blue);
}
.kk-hero__card .kk-lead { margin-top: 18px; }

/* Sector filter (Building / Cold storage / Agriculture / Packaging) */
.kk-sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.kk-sectors .kk-sector:first-child { grid-column: 1 / -1; }
@media (min-width: 768px) {
    .kk-sectors { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 32px; }
    .kk-sectors .kk-sector:first-child { grid-column: auto; }
}
.kk-sector {
    display: flex; flex-direction: column; gap: 4px; text-align: left;
    padding: 14px 16px; border-radius: 10px; cursor: pointer;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
    color: #fff; text-decoration: none; transition: background-color .2s ease, border-color .2s ease;
}
.kk-sector:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); }
.kk-sector[aria-current="true"] { background: #fff; border-color: #fff; color: var(--kk-blue); }
.kk-sector__name { font-family: var(--kk-display); font-size: 17px; font-weight: 800; line-height: 1.2; }
.kk-sector__sub { font-size: 13px; line-height: 1.35; opacity: .9; }
.kk-sector[aria-current="true"] .kk-sector__sub { color: var(--kk-muted); opacity: 1; }

/* ---------- Product cards (company profile "What we make") ---------- */
.kk-range-count { margin: 0; font-size: 14px; color: var(--kk-muted); }
.kk-range-count strong { color: var(--kk-ink); }

.kk-grid-products { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .kk-grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }

.kk-card {
    display: grid; grid-template-columns: minmax(0, 1fr);
    background: #fff; border: 1px solid var(--kk-line); border-radius: var(--kk-radius);
    overflow: hidden; scroll-margin-top: 140px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.kk-card[hidden] { display: none; }
.kk-card:hover { border-color: #a9c9e2; box-shadow: var(--kk-shadow); transform: translateY(-2px); }
.kk-card:target { border-color: var(--kk-blue); box-shadow: 0 0 0 3px rgba(10, 107, 168, .2); }
@media (min-width: 640px) { .kk-card { grid-template-columns: minmax(180px, 38%) minmax(0, 1fr); } }

.kk-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--kk-ice-50); overflow: hidden; }
@media (min-width: 640px) { .kk-card__media { aspect-ratio: auto; min-height: 230px; } }
.kk-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kk-card:hover .kk-card__media img { transform: scale(1.04); }

.kk-card__body { display: flex; flex-direction: column; padding: 20px 20px 18px; }
@media (min-width: 768px) { .kk-card__body { padding: 24px 26px 20px; } }
.kk-card__cat { margin: 0 0 6px; font-family: var(--kk-display); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--kk-muted); }
.kk-card__title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--kk-blue); }
.kk-card__desc { margin: 8px 0 0; font-size: 15px; line-height: 1.6; color: var(--kk-body); }
.kk-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: auto; padding-top: 16px; }

.kk-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.kk-tags li {
    padding: 4px 10px; border-radius: 6px;
    background: var(--kk-ice); color: var(--kk-navy);
    font-size: 12.5px; font-weight: 600; line-height: 1.4;
}

.kk-placeholder {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: repeating-linear-gradient(135deg, var(--kk-ice-50) 0 12px, var(--kk-ice) 12px 24px);
    color: #7f93a6; font-family: var(--kk-display); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.kk-placeholder .kk-icon { width: 30px; height: 30px; }
.kk-placeholder--profile { gap: 10px; background: linear-gradient(135deg, var(--kk-ice) 0%, #f7fbfe 100%); color: var(--kk-blue); }
.kk-placeholder--profile svg { width: 58%; max-width: 180px; height: auto; }
.kk-placeholder__code { font-size: 18px; letter-spacing: .14em; color: var(--kk-navy); }

.kk-empty { padding: 40px 20px; text-align: center; color: var(--kk-muted); background: #fff; border: 1px dashed var(--kk-line); border-radius: var(--kk-radius); }

/* ---------- Feature band (cornice catalogue teaser) ---------- */
.kk-feature { display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--kk-radius-lg); overflow: hidden; box-shadow: var(--kk-shadow); }
@media (min-width: 960px) { .kk-feature { grid-template-columns: 1.15fr 1fr; } }
.kk-feature__media { position: relative; min-height: 240px; background: var(--kk-navy); }
.kk-feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kk-feature__panel { background: var(--kk-navy); color: #fff; padding: 32px 24px; }
@media (min-width: 768px) { .kk-feature__panel { padding: 48px 44px; } }
.kk-feature__panel .kk-h2 { color: #fff; }
.kk-feature__panel p { margin: 12px 0 0; color: rgba(255, 255, 255, .86); line-height: 1.7; }
.kk-feature__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.kk-feature__stats dt { order: 2; font-size: 13px; line-height: 1.35; color: var(--kk-sky); }
.kk-feature__stats div { display: flex; flex-direction: column; gap: 2px; }
.kk-feature__stats dd { order: 1; margin: 0; font-family: var(--kk-display); font-size: 26px; font-weight: 800; color: #fff; }

/* ---------- Panels (insulated sandwich panels page) ---------- */
.kk-photos { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 36px; }
.kk-photos figure { margin: 0; border-radius: var(--kk-radius); overflow: hidden; background: var(--kk-ice); aspect-ratio: 4 / 3; }
.kk-photos figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.kk-photos img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) {
    .kk-photos { grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
    .kk-photos figure, .kk-photos figure:first-child { grid-column: auto; aspect-ratio: auto; height: 320px; }
}

.kk-split { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .kk-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }

.kk-spec-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.kk-spec-table th, .kk-spec-table td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #fff; }
.kk-spec-table th { width: 38%; font-family: var(--kk-text); font-weight: 400; color: var(--kk-muted); background: var(--kk-ice); }
.kk-spec-table td { font-weight: 600; color: var(--kk-ink); background: var(--kk-ice); }
.kk-spec-table tr:first-child th { border-top-left-radius: 10px; }
.kk-spec-table tr:first-child td { border-top-right-radius: 10px; }
.kk-spec-table tr:last-child th { border-bottom-left-radius: 10px; }
.kk-spec-table tr:last-child td { border-bottom-right-radius: 10px; }

.kk-checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.kk-checklist li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.55; color: var(--kk-body); }
.kk-checklist .kk-icon { width: 20px; height: 20px; margin-top: 2px; color: var(--kk-blue); }

.kk-sector-band { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); margin-top: 40px; padding: 28px 24px; border-radius: var(--kk-radius-lg); background: var(--kk-navy); color: #fff; }
@media (min-width: 768px) { .kk-sector-band { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 32px 36px; } }
.kk-sector-band h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: #fff; }
.kk-sector-band p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--kk-sky); }

/* ---------- Manufacturing ---------- */
.kk-steps { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: none; }
@media (min-width: 768px) { .kk-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.kk-step { background: #fff; border: 1px solid var(--kk-line); border-radius: var(--kk-radius); overflow: hidden; }
.kk-step img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.kk-step__body { padding: 18px 20px 22px; }
.kk-step__label { margin: 0 0 6px; font-family: var(--kk-display); font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--kk-blue); }
.kk-step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--kk-body); }

/* position: relative keeps absolutely positioned bits (e.g. screen-reader labels) inside the scroll box */
.kk-table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--kk-radius); border: 1px solid var(--kk-line); background: #fff; }
.kk-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14.5px; }
.kk-table thead th { padding: 13px 16px; background: var(--kk-blue); color: #fff; font-size: 13.5px; font-weight: 700; text-align: right; white-space: nowrap; }
.kk-table thead th:first-child { text-align: left; }
.kk-table tbody th { padding: 12px 16px; text-align: left; font-family: var(--kk-text); font-weight: 400; color: var(--kk-body); }
.kk-table td { padding: 12px 16px; text-align: right; font-variant-numeric: tabular-nums; color: var(--kk-ink); white-space: nowrap; }
.kk-table tbody tr:nth-child(even) { background: var(--kk-ice-50); }
.kk-table tbody tr + tr { border-top: 1px solid var(--kk-line); }
.kk-table .kk-table__span { text-align: center; }
.kk-table-note { margin: 10px 0 0; font-size: 13.5px; color: var(--kk-muted); }

.kk-duo { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
@media (min-width: 768px) { .kk-duo { grid-template-columns: 1.1fr 1fr 1fr; gap: 20px; } }
.kk-duo__photo { position: relative; margin: 0; border-radius: var(--kk-radius); overflow: hidden; min-height: 220px; background: var(--kk-ice); }
.kk-duo__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kk-panel { padding: 24px; background: #fff; border: 1px solid var(--kk-line); border-radius: var(--kk-radius); }
.kk-panel h3 { margin: 0 0 10px; font-size: 20px; font-weight: 800; color: var(--kk-blue); }
.kk-panel p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--kk-body); }

/* ---------- Contact CTA ---------- */
.kk-cta { padding: 32px 24px; border-radius: 20px; background: var(--kk-navy); color: #fff; position: relative; overflow: hidden; }
@media (min-width: 768px) { .kk-cta { padding: 52px 56px; } }
.kk-cta::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(166, 205, 234, .16), transparent 70%); pointer-events: none;
}
.kk-cta__title { margin: 0; font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.15; color: #fff; }
.kk-cta__intro { margin: 12px 0 0; max-width: 62ch; color: rgba(255, 255, 255, .86); line-height: 1.7; }
.kk-cta__cols { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); margin-top: 30px; }
@media (min-width: 768px) { .kk-cta__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kk-cta__cols > div { display: flex; flex-direction: column; gap: 4px; font-size: 15.5px; }
.kk-cta__cols a { color: #fff; text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.kk-cta__cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.kk-cta__cols span { color: rgba(255, 255, 255, .9); }
.kk-cta__label { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-family: var(--kk-display); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--kk-sky); }
.kk-cta__label--sub { margin-top: 14px; }
.kk-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; position: relative; z-index: 1; }

/* ==========================================================================
   Cornice catalogue page
   ========================================================================== */

/* Cover: text on the left, photo on the right. The photo runs to the screen edge and,
   being a grid cell in the same row, is always at least as tall as the text. */
.kk-cover { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--kk-page); }
.kk-cover__content { padding: 28px 16px 44px; }
@media (min-width: 640px) { .kk-cover__content { padding: 36px 24px 52px; } }
.kk-cover__title {
    margin: 0; font-size: clamp(38px, 9vw, 72px); font-weight: 800; line-height: .98; letter-spacing: -.01em;
    text-transform: uppercase; color: var(--kk-blue);
}
.kk-cover__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--kk-line); }
.kk-cover__stats div { display: flex; flex-direction: column; gap: 4px; }
.kk-cover__stats dd { order: -1; margin: 0; font-family: var(--kk-display); font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.05; color: var(--kk-navy); }
.kk-cover__stats dt { font-size: 13px; line-height: 1.4; color: var(--kk-muted); }
.kk-cover__media { position: relative; order: -1; margin: 0; aspect-ratio: 4 / 3; min-height: 240px; background: var(--kk-navy); overflow: hidden; }
.kk-cover__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kk-cover__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3, 51, 87, 0) 55%, rgba(3, 51, 87, .5)); pointer-events: none; }
.kk-cover__badge {
    position: absolute; z-index: 1; left: 16px; bottom: 16px; padding: 10px 16px; border-radius: 10px;
    background: var(--kk-navy); color: #fff; box-shadow: var(--kk-shadow);
    font-family: var(--kk-display); font-size: 11px; font-weight: 800; letter-spacing: .16em; line-height: 1.6; text-transform: uppercase;
}
@media (min-width: 960px) {
    /* The text lines up with the 1200px page width; the photo fills the rest to the right edge */
    .kk-cover { grid-template-columns: minmax(32px, 1fr) minmax(0, 568px) minmax(0, 568px) minmax(32px, 1fr); min-height: min(640px, calc(100vh - 110px)); }
    .kk-cover__content { grid-column: 2; display: flex; flex-direction: column; justify-content: center; padding: 56px 48px 64px 0; }
    .kk-cover__media { grid-column: 3 / 5; order: 0; aspect-ratio: auto; min-height: 0; border-bottom-left-radius: 48px; }
    .kk-cover__badge { left: 32px; bottom: 32px; font-size: 12px; }
}

/* Why choose */
.kk-advantage { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .kk-advantage { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: stretch; } }
.kk-benefits { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .kk-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kk-benefit { padding: 20px; background: var(--kk-ice-50); border: 1px solid var(--kk-line); border-radius: var(--kk-radius); }
.kk-benefit .kk-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #fff; color: var(--kk-blue); box-shadow: 0 1px 2px rgba(4, 67, 115, .1); }
.kk-benefit h3 { margin: 14px 0 6px; font-size: 17px; font-weight: 700; color: var(--kk-ink); }
.kk-benefit p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--kk-muted); }
/* Photo beside text: fills the full height of the text column, caption on the photo */
.kk-figure { position: relative; margin: 0; min-height: 360px; border-radius: var(--kk-radius-lg); overflow: hidden; background: var(--kk-navy); box-shadow: var(--kk-shadow); }
.kk-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kk-figure figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 64px 20px 18px; background: linear-gradient(180deg, transparent, rgba(3, 51, 87, .9)); color: #fff; font-size: 14px; line-height: 1.5; }
@media (max-width: 1023px) { .kk-figure { aspect-ratio: 4 / 3; min-height: 0; } }

/* Range at a glance */
.kk-glance { margin-top: 48px; }
.kk-glance .kk-table { min-width: 560px; }
.kk-glance .kk-table thead th, .kk-glance .kk-table td { text-align: left; }
.kk-glance .kk-table td:last-child, .kk-glance .kk-table thead th:last-child { text-align: right; }
.kk-glance .kk-table tbody th { font-family: var(--kk-display); font-weight: 700; color: var(--kk-ink); }
.kk-glance .kk-table td { white-space: normal; }

/* Range headings with chips */
.kk-range-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.kk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kk-chips li { padding: 7px 16px; border-radius: 999px; border: 2px solid var(--kk-blue); font-family: var(--kk-display); font-size: 13px; font-weight: 700; color: var(--kk-blue); }
.kk-chips li:first-child { background: var(--kk-blue); color: #fff; }

/* Cornice profile cards */
.kk-profiles { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .kk-profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .kk-profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.kk-profile { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--kk-line); border-radius: var(--kk-radius); overflow: hidden; scroll-margin-top: 140px; transition: box-shadow .2s ease, border-color .2s ease; }
.kk-profile:hover { border-color: #a9c9e2; box-shadow: var(--kk-shadow); }
.kk-profile__media { position: relative; aspect-ratio: 16 / 9; background: var(--kk-ice-50); overflow: hidden; }
.kk-profile__media img { width: 100%; height: 100%; object-fit: cover; }
.kk-profile__body { padding: 18px 18px 20px; }
.kk-profile__code { margin: 0; font-family: var(--kk-display); font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--kk-blue); }
.kk-profile__name { margin: 2px 0 14px; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--kk-ink); }

.kk-specs { margin: 0; display: grid; gap: 2px; }
.kk-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; background: var(--kk-ice-50); }
.kk-specs div:nth-child(odd) { background: var(--kk-ice); }
.kk-specs div:first-child { border-radius: 8px 8px 0 0; }
.kk-specs div:last-child { border-radius: 0 0 8px 8px; }
.kk-specs dt { font-size: 14px; color: var(--kk-muted); }
.kk-specs dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--kk-ink); text-align: right; font-variant-numeric: tabular-nums; }

.kk-note { display: flex; flex-direction: column; justify-content: center; padding: 28px 26px; border-radius: var(--kk-radius); background: var(--kk-blue); color: #fff; }
/* The note fills whatever is left of the last row */
@media (min-width: 600px) and (max-width: 1023px) { .kk-note--md-full { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
    .kk-note--lg-2 { grid-column: span 2; padding: 36px 40px; }
    .kk-note--lg-3 { grid-column: 1 / -1; padding: 36px 40px; }
}
.kk-note h3 { margin: 0 0 12px; font-size: 24px; font-weight: 800; color: #fff; }
.kk-note p { margin: 0; font-size: 15.5px; line-height: 1.7; color: rgba(255, 255, 255, .92); }
.kk-note p + p { margin-top: 12px; color: rgba(255, 255, 255, .88); }

/* Plain cornices + glue: photos stretch to the height of the content beside them */
.kk-plain { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .kk-plain { grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; } }
.kk-plain__photo { position: relative; margin: 0; min-height: 240px; border-radius: var(--kk-radius); overflow: hidden; background: var(--kk-navy); }
.kk-plain__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kk-plain .kk-profile__body { padding: 22px; }

.kk-glue { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .kk-glue { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: stretch; } }
.kk-glue__photo { position: relative; margin: 0; min-height: 320px; border-radius: var(--kk-radius-lg); overflow: hidden; background: #123a6b; box-shadow: var(--kk-shadow); }
.kk-glue__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .kk-glue__photo { aspect-ratio: 4 / 3; min-height: 0; } }
.kk-glue .kk-table { min-width: 0; }
@media (max-width: 639px) { .kk-glue .kk-table th, .kk-glue .kk-table td { padding-left: 10px; padding-right: 10px; } }
.kk-glue .kk-table thead th:nth-child(2), .kk-glue .kk-table td:nth-child(2) { text-align: left; }

/* Install + calculator */
.kk-install { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 960px) { .kk-install { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; } }
.kk-howto { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.kk-howto li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; font-size: 15.5px; line-height: 1.6; color: var(--kk-body); }
.kk-howto__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--kk-blue); color: #fff; font-family: var(--kk-display); font-weight: 800; font-size: 15px; }
.kk-howto strong { color: var(--kk-ink); }

.kk-calc { padding: 28px 24px; border-radius: var(--kk-radius-lg); background: var(--kk-navy); color: #fff; }
@media (min-width: 768px) { .kk-calc { padding: 34px 32px; } }
.kk-calc h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; color: #fff; }
.kk-calc > p { margin: 0; color: rgba(255, 255, 255, .86); line-height: 1.65; font-size: 15px; }
.kk-calc__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.kk-calc label { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--kk-sky); }
.kk-calc input {
    width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08);
    color: #fff; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.kk-calc input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .14); box-shadow: 0 0 0 3px rgba(166, 205, 234, .35); }
.kk-calc__result { margin-top: 18px; padding: 20px; border-radius: 12px; background: var(--kk-blue); }
.kk-calc__big { display: flex; align-items: baseline; gap: 10px; margin: 0; font-family: var(--kk-display); }
.kk-calc__big strong { font-size: 44px; font-weight: 800; line-height: 1; }
.kk-calc__big span { font-size: 16px; font-weight: 700; color: rgba(255, 255, 255, .9); }
.kk-calc__lines { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
.kk-calc__lines b { color: #fff; }
.kk-calc__hint { margin: 14px 0 0; font-size: 13.5px; color: var(--kk-sky); }
.kk-calc .kk-btn { margin-top: 18px; width: 100%; }

/* Also from + where to buy */
.kk-buy { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .kk-buy { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.kk-also { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .kk-also { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kk-also a {
    display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 12px 10px 10px;
    background: #fff; border: 1px solid var(--kk-line); border-radius: var(--kk-radius);
    text-decoration: none; color: var(--kk-ink); transition: border-color .2s ease, box-shadow .2s ease;
}
.kk-also a:hover { border-color: var(--kk-blue); box-shadow: var(--kk-shadow); }
.kk-also img, .kk-also__thumb { flex: none; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--kk-ice); }
.kk-also__thumb { display: grid; place-items: center; color: #7f93a6; }
.kk-also__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.kk-also__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.kk-also__cat { font-size: 12.5px; color: var(--kk-muted); }
.kk-also__arrow { color: var(--kk-blue); opacity: .55; transition: opacity .2s ease, transform .2s ease; }
.kk-also a:hover .kk-also__arrow { opacity: 1; transform: translateX(2px); }

.kk-buy__card { background: #fff; border: 1px solid var(--kk-line); border-radius: var(--kk-radius-lg); overflow: hidden; box-shadow: var(--kk-shadow); }
.kk-buy__photo { position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--kk-navy); }
.kk-buy__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kk-buy__body { padding: 24px; }
@media (min-width: 768px) { .kk-buy__body { padding: 28px 32px 32px; } }
.kk-buy__title { margin: 0 0 14px; font-size: 24px; font-weight: 800; }
.kk-buy p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: var(--kk-body); }
.kk-buy .kk-fineprint { margin: 24px 0 0; font-size: 13px; line-height: 1.6; color: var(--kk-muted); }

.kk-fineprint { margin: 28px 0 0; font-size: 13px; line-height: 1.6; color: var(--kk-muted); }

@media (prefers-reduced-motion: reduce) {
    .kk *, .kk *::before, .kk *::after { transition: none !important; animation: none !important; }
    .kk-card:hover, .kk-btn:hover { transform: none; }
}
