@charset "UTF-8";
/* site.css - all global styles in cascade order: base, overrides, dark mode, modern layer
   (admin-only screens: css/admin.css, loaded after this file for admins) */

/* ---------- Open Sans, self-hosted (css/fonts/, OFL 1.1): no render-blocking request to
   fonts.googleapis.com and no flash of fallback text. Google's own woff2 subsets - one variable file per
   subset covers both weights we use, so "font-weight: 300 400" is a range, not two files.
   latin-ext is a separate file on purpose: it only downloads where the text needs it - polish needs both
   (o is in latin, a c e l n s z z in latin-ext), english-only pages fetch just latin ---------- */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('fonts/open-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ====================== base ====================== */

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

/* breakpoints (media queries cannot use variables) - only these:
     max-width: 380px   small phones (360 / 375)
     max-width: 600px   phones                       (min-width: 601px for the opposite)
     max-width: 900px   tablets and the mobile menu  (min-width: 901px; js-bottom.tpl: stellarnav breakpoint 900)
   plus three that follow the content or something else: 760px (product page, about intro, contact card - their
   two columns need the room), 768px (the menu library's css), 1150px (room for the logo in the bar) */

/* ---------- tokens: light values on :root, dark ones under body.dark-mode - use these, not ad-hoc values ---------- */

/* type scale (rem, so a label inside a title does not grow with it) */
:root {
  --fs-title: clamp(1.5rem, 1rem + 2vw, 1.9rem); /* page titles (h1) */
  --fs-heading: 1.1875rem;                     /* section and card headings */
  --fs-lead: 1.1rem;                           /* intro paragraph */
  --fs-text: 1rem;                             /* long-form text */
  --fs-small: 0.95rem;                         /* card and list text */
  --fs-label: 0.76rem;                         /* small capitals labels, dates, meta */
  --measure: 37.5rem;                          /* width of long-form text: about 75 characters per line */
}

:root {
  /* colours (light theme) */
  --page-bg: #fbfcfc;
  --card-bg: #f2f2f2;
  --card-text-muted: rgba(0, 0, 0, 0.6);
  --line: rgba(0, 0, 0, 0.15);
  --ink: #111;                      /* dark text and badges on white - also in dark mode, where cards stay white */
  --pill-active-bg: var(--ink);
  --pill-active-fg: #fff;
  --pill-hover-bg: rgba(0, 0, 0, 0.06);
  --color-hover: #5D6D7E;
  /* dark palette - body.dark-mode below and the dark-only rules */
  --dark-bg-color: #121212;
  --dark-secondary-bg: #191919;
  --dark-footer-bg: #252525;
  --dark-text-color: #e0e0e0;
  --dark-link-color: #c0c5d0;
  --dark-hover-color: #a0a5b0;
  --dark-border-color: #333;
  --dark-icon-color: #e8eaef;       /* menu icons in the dark bar */
  /* shapes */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --shadow-hairline: 0 0 0 1px rgba(0, 0, 0, 0.07); /* edge of a white tile on the light page */
  --shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.5);     /* menus and panels on the dark page */
}
body.dark-mode {
  --page-bg: var(--dark-bg-color);
  --card-bg: var(--dark-secondary-bg);
  --card-text-muted: rgba(224, 224, 224, 0.6);
  --line: rgba(255, 255, 255, 0.18);
  --pill-active-bg: var(--dark-text-color);
  --pill-active-fg: var(--dark-bg-color);
  --pill-hover-bg: rgba(255, 255, 255, 0.08);
}

.disabled {color: #f2f2f2;}

.background-white {background-color: #fff;}
.black {color: #000 !important;}

.white {color: #fff;}

.bold {font-weight: 400; letter-spacing: 0.5px;}

.left {text-align: left;}
.center {text-align: center;}

.fl {float: left;}

.br1 {border-radius: 5px;}

.m0 {margin: 0px;}
.mt1 {margin-top: 10px;}
.mb2 {margin-bottom: 20px;} .mr2 {margin-right: 20px;}
.mt3 {margin-top: 30px;}

.p0 {padding: 0px;}
.p2 {padding: 10px;}
.p3 {padding: 20px;}

.w100 {width: 100%;}

.client-logo-item {width: 150px; height: 150px; line-height: 110px; position: relative;}
.client-logo-item a img {vertical-align: middle;}

.footer, .footer a {color:#2e3444}
.footer {font-size: 0.9em; font-weight: 300; vertical-align:top; background: #f2f2f2;}

/* without javascript: a small note above the page */
.noscript-msg {
  margin: 0;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #f2f2f2;
  color: #333;
  font-size: 0.85em;
  text-align: center;
}
/* phones without javascript: the menu library hides the list until its script builds the "menu" button -
   show the main links as a wrapping row instead (sub-menus need the script).
   768px: the library's own breakpoint (stellarnav.min.css), not one of ours */
@media (max-width: 768px) {
  html:not(.js) .stellarnav > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 8px;
  }
  html:not(.js) .stellarnav ul ul {
    display: none;
  }
}
/* only when javascript runs, until the menu script has set it up (js-bottom.tpl adds .is-ready): invisible but
   keeping its 60px - with display: none the whole page jumped down when the bar appeared */
html.js .header:not(.is-ready) {visibility: hidden; height: 60px; overflow: hidden;}

/* page to page (filters, paging): a short cross-fade instead of a blank flash, the menu bar stays put
   (browsers without view transitions just load the page) */
@view-transition {navigation: auto;}
.wrapper > .header {view-transition-name: site-header;}
@media (prefers-reduced-motion: reduce) {
  @view-transition {navigation: none;}
}
.header {
  background-color: #d8dbd4; /* For browsers that do not support gradients */
  background-image: linear-gradient(#F2F3F4, #FBFCFC) /* Standard syntax (must be last) */
}

.icon {max-height: 36px;}
.inline {display: inline-block; vertical-align: middle;}




#progress {
  position: fixed; left: 0px; bottom: 0px; 
  display: none; padding: 1em 0 1em 0; font-size: 1.5em; background: rgba(229, 231, 233, 0.9); z-index: 100;
}

#scroll-top {position:fixed; display:none; width:40px; height:40px; right:-1px;
  background:#fff; bottom:350px; overflow:hidden; z-index:9; border:1px solid #D0D3D4;
  border-top-left-radius:3px; border-bottom-left-radius:3px; font-size:1.2em; line-height: 40px;}
/* both fixed buttons sit high enough to stay clear of the footer's contact column */

html {-ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%;}
body {background-attachment: fixed; background-color: var(--page-bg); 
  font-size: 0.95em; letter-spacing: -0.3px; line-height: 1.8em;
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;}

a, li, p, input, select {text-align: justify; text-decoration: none;}

a {color: #000; cursor: pointer; letter-spacing: 0px; font-weight: 300;}
a {transition: all 150ms ease-in-out;}
a:hover {color: var(--color-hover);}

h1 {font-size: 1.4em;}
h2 {font-size: 1.2em;}
h3 {font-size: 1.0em;}
h1, h2, h3, h1 a, h2 a, h3 a {margin: 0; font-weight: 400; text-indent:0px;}
hr {
  border: 0; height: 1px; 
  background-image: linear-gradient(to right, rgba(151, 154, 154, 0), rgba(151, 154, 154, 0.75), rgba(151, 154, 154, 0))
}

img {border-width: 0px; margin: 0; vertical-align: middle}
input {border-width: 0px;}

select, label {display: block;}

ul {list-style-type: none; margin: 0; padding: 0;}
ul.list {list-style-type: circle; margin-left: 35px;}

strong, b {
  font-weight: 400;
}

.c-heading,
.c-heading-with-bg {
  display: inline-block;
  position: relative;
  margin-bottom: 20px;
}

/* flex page lauout */

.wrapper {display: flex;flex-flow: row wrap}
.wrapper>* {flex: 1 0 100%; -ms-flex: 1 0 0;}

.header img#logo {
  margin: 15px;
  position: relative;
  max-width: 350px;
  height: auto;
}

.main {text-align: left}

@media (min-width: 601px) {
  .grid-container-2x2 {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
  }
  .grid-container-2x2 > div {
    display: block; 
    flex-basis: calc(50% - 40px);  
    justify-content: top;
    flex-direction: column;
  }
}

.logo img {max-width: 320px;}

 div[itemscope] span[itemprop="company"] {display:none;}

/* ====================== overrides ====================== */

.stellarnav, .stellarnav.fixed {z-index: 8000}
/* desktop menu stays on top while scrolling; sticky keeps its space in the page, so nothing jumps */
@media (min-width: 901px) {
  .wrapper > .header {position: sticky; top: 0; z-index: 8000;}
}

.stellarnav li#logo-navi {position: absolute; z-index: 1;}
.stellarnav li#page-global-navi {position: absolute; margin-top: 3px; right: 0px ;z-index: 1;}

.stellarnav.light {height: 60px;}
.stellarnav.light, .stellarnav.light ul ul, .stellarnav.mobile.light ul { background: rgba(242, 242, 242, 0.95)}
.stellarnav.light a:hover {color: var(--color-hover) !important;}

.stellarnav li a {font-size: 1em; padding-left: 30px; margin-top: 5px; font-weight: 400;}
.stellarnav li.has-sub>a:after {border-top: 5px solid #000;}
.stellarnav .menu-toggle {padding: 18px; font-weight: 400;}

.stellarnav>ul>li>a {padding: 18px 15px; margin: 0;}
.stellarnav ul ul {width: 290px;}
.stellarnav.mobile.right>ul {z-index: 10}
/* phones: the bar is not sticky - as its own layer above everything the slide-in menu (inside it) covers the
   dark-mode toggle (9999), cookie notice (10000), open dropdowns and the gallery */
@media (max-width: 900px) {
  .wrapper > .header {position: relative; z-index: 10001;}
}
.stellarnav.mobile>ul>li>a {padding-left: 20px; }
.stellarnav.mobile.right>ul {max-width: 300px !important;}

/* captions over the photo (inside the link) - the celebrities overview has its caption under it */
.grid li > a h3 {
    padding: 10px !important;
    color: #fff !important;
    letter-spacing: 0.8px !important;
    font-weight: 500 !important;
    font-size: 0.8em !important;
    line-height: 100% !important;
}
.grid li.shown:hover > a::before {
    border-width: 10px !important;
}
/* ============================================================
   MOBILE RESPONSIVE FIXES
   ============================================================ */

/* --- Gallery grid items: fluid on small screens --- */
@media (max-width: 600px) {
    .grid li {
        width: calc(50% - 14px);
    }
    .grid-wrap {
        padding: 0 5px;
    }
}
@media (max-width: 380px) {
    .grid li {
        width: calc(100% - 14px);
    }
}

/* --- Product cards: scale down on mobile --- */
@media (max-width: 600px) {
    /* Client logo boxes: slightly smaller, tighter margins */
    .client-logo-item {
        width: 120px;
        height: 120px;
        line-height: 90px;
        margin-left: 8px !important;
        margin-right: 8px !important;
        margin-bottom: 16px !important;
    }


    /* Typography: slightly smaller headings */
    h1 { font-size: 1.2em; }
    h2 { font-size: 1.1em; }
}

/* --- Touch-friendly tap targets --- */
@media (hover: none) and (pointer: coarse) {
    /* Navigation links in mobile menu */
    .stellarnav.mobile li a {
        padding: 14px 20px;
        min-height: 44px;
    }
}

/* ====================== dark mode ====================== */

/* Apply dark mode styles when .dark-mode class is on body */
body.dark-mode {
  background-color: var(--dark-bg-color);
  color: var(--dark-text-color);
}

body.dark-mode a, 
body.dark-mode li, 
body.dark-mode p, 
body.dark-mode div, 
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3,
body.dark-mode h1 a, 
body.dark-mode h2 a, 
body.dark-mode h3 a {
  color: var(--dark-text-color);
  text-shadow: none;
}

body.dark-mode a {
  color: var(--dark-link-color);
}

body.dark-mode a:hover {
  color: var(--dark-hover-color);
}

/* Footer */
body.dark-mode .footer {
  background: var(--dark-footer-bg);
  color: var(--dark-text-color);
}

body.dark-mode .footer a {
  color: var(--dark-link-color);
}

/* Header and navigation */
body.dark-mode .header {
  background-color: var(--dark-secondary-bg);
  background-image: none;
}

/* Stellarnav Menu in Dark Mode */
body.dark-mode .stellarnav {
  background: var(--dark-secondary-bg);
}

body.dark-mode .stellarnav ul {
  background: var(--dark-secondary-bg);
}

body.dark-mode .stellarnav li a {
  color: var(--dark-text-color);
}

body.dark-mode .stellarnav li a:hover {
  color: var(--dark-hover-color);
  background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .stellarnav > ul > li > a {
  color: var(--dark-text-color);
}

body.dark-mode .stellarnav.mobile,
body.dark-mode .stellarnav.mobile.active {
  background: var(--dark-secondary-bg);
}

body.dark-mode .stellarnav.mobile ul {
  background: var(--dark-bg-color);
}

body.dark-mode .stellarnav.mobile ul li {
  border-top: 1px solid var(--dark-border-color);
}

body.dark-mode .stellarnav .close-menu,
body.dark-mode .stellarnav .menu-toggle {
  color: var(--dark-icon-color);
}

/* stellarnav draws these in black for its .light theme */
body.dark-mode .stellarnav a.call-btn-mobile,
body.dark-mode .stellarnav a.location-btn-mobile {
  color: var(--dark-icon-color);
}

body.dark-mode .stellarnav a.dd-toggle .icon-plus:before,
body.dark-mode .stellarnav a.dd-toggle .icon-plus:after,
body.dark-mode .stellarnav .icon-close:before,
body.dark-mode .stellarnav .icon-close:after {
  border-color: var(--dark-icon-color);
}

body.dark-mode .stellarnav .half,
body.dark-mode .stellarnav .third {
  border-color: var(--dark-border-color);
}

body.dark-mode #scroll-top {
  background: var(--dark-secondary-bg);
  border: 1px solid var(--dark-border-color);
  color: var(--dark-text-color);
}

/* Progress indicator */
body.dark-mode #progress {
  background: rgba(30, 30, 30, 0.9);
  color: var(--dark-text-color);
}

/* HR elements */
body.dark-mode hr {
  background-image: linear-gradient(to right, rgba(100, 100, 100, 0), rgba(100, 100, 100, 0.75), rgba(100, 100, 100, 0));
}

/* Dark mode toggle button */
.dark-mode-toggle {
  position: fixed;
  bottom: 300px;
  right: -1px;
  width: 40px;
  height: 40px;
  background: #fff;
  z-index: 9;
  border: 1px solid #D0D3D4;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  transition: all 0.3s ease;
}

body.dark-mode .dark-mode-toggle {
  background: var(--dark-secondary-bg);
  border-color: var(--dark-border-color);
  color: var(--dark-text-color);
}

.dark-mode-toggle:hover {
  background-color: #f5f5f5;
}
.dark-mode-toggle:focus-visible {
  outline: 2px solid var(--pill-active-bg);
  outline-offset: 2px;
}

body.dark-mode .dark-mode-toggle:hover {
  background-color: #333;
}

/* phones: a round button in the bottom corner - the tab on the right edge sat on the cards' text halfway down the
   screen; !important beats the inline styles of js/darkmode.js */
@media (max-width: 600px) {
  .dark-mode-toggle {
    right: 12px !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
  }
}


/* Hamburger menu bars */
body.dark-mode .stellarnav .menu-toggle span.bars span {
  background-color: var(--dark-icon-color);
}

/* Logo inversion in dark mode */
body.dark-mode #logo-navi img,
body.dark-mode img[src*="logo-fpr.png"],
body.dark-mode img[src*="logo-header.png"] {
  filter: invert(1) brightness(0.9);
}

/* Elements that maintain their original styles in dark mode */

/* ====================== modern layer ====================== */

/* Modern layer: hero mosaic, article cards, typography. */

/* ---------- Shared components - use these on every page; page sections below only add layout ---------- */

/* page frame */
.page {
  max-width: 1100px;
  margin: 24px auto 48px;
  padding: 0 16px;
  text-align: start;
}
.page-narrow {
  max-width: 1000px;
}
/* full width (photo grids, event gallery): same space above and below, the grids keep their own edges */
.page-wide {
  max-width: none;
  padding: 0;
}
.page-head {
  margin-bottom: 28px;
  text-align: center;
}
.page-title {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 400;
  line-height: 1.25;
  text-align: inherit;
  overflow-wrap: anywhere;
}
/* a long title (events, news) in two or three even lines, as wide as the lead under it - not one line across the page */
.page-head .page-title {
  max-width: 24em;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}
.lead {
  margin: 18px 0 0;
  font-size: var(--fs-lead);
  line-height: 1.7;
  text-align: inherit; /* p is text-align:start - follow the header (centred in .page-head) */
  opacity: 0.9;
}
.page-head .lead {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.measure {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}
.section {
  margin-top: 44px;
}

/* small capitals label: dates, roles, section labels */
.label,
.section-label {
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--card-text-muted);
}
.section-label {
  display: block;
  margin: 0 0 18px;
  letter-spacing: 2px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 1px;
  opacity: 0.75;
}
.back-link:hover {
  opacity: 1;
}
/* breadcrumb row - product, article, event and celebrity pages. The crumbs are .back-link, so the first one
   keeps the arrow and the "back" look it had before */
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.crumbs .back-link {
  margin-bottom: 0;
}
.crumb-sep {
  font-size: var(--fs-label);
  opacity: 0.4;
}
/* a long brand or person name must not push what sits beside the row (previous / next) off it */
.crumbs .crumb {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* grey rounded box */
.card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--card-bg);
}

/* buttons */
.btn,
body.dark-mode .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
  font: inherit;
  font-weight: 400;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.btn:hover,
body.dark-mode .btn:hover {
  color: var(--pill-active-fg);
  opacity: 0.85;
}
.btn i {
  color: inherit;
}
.btn-outline,
body.dark-mode .btn-outline,
.btn-outline:hover,
body.dark-mode .btn-outline:hover {
  border-color: var(--line);
  background: transparent;
  color: inherit;
  opacity: 1;
}
.btn-outline:hover,
body.dark-mode .btn-outline:hover {
  border-color: var(--pill-active-bg);
}
.btn-block {
  justify-content: center;
  width: 100%;
}

/* forms (login, article admin) */
.form-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px;
}
/* the button closes the form - clear space above it */
.form-card .btn {
  margin-top: 10px;
}
.form-card .section-label {
  margin: 0;
  line-height: 1.6;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: var(--fs-small);
}
.field .label {
  font-size: var(--fs-label);
}
.input,
body.dark-mode .input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--page-bg);
  color: inherit;
  color-scheme: light;
  font: inherit;
  text-align: start;
}
/* native parts (date picker icon, option list) follow the site's theme, not the OS one */
body.dark-mode .input {
  color-scheme: dark;
}
.input:focus {
  border-color: var(--pill-active-bg);
  outline: none;
}
/* two fields next to each other */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .form-card {
    padding: 24px;
  }
}
.alert {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(200, 40, 40, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(200, 40, 40, 0.1);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
a.icon-btn:hover,
body.dark-mode a.icon-btn:hover {
  border-color: transparent;
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
}

/* long-form text */
.prose {
  font-size: var(--fs-text);
  font-weight: 400;
  line-height: 1.85;
}
.prose p,
.prose li {
  margin: 0 0 1.1em;
  text-align: start;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* rows of links / downloads */
.link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: start; /* links are justified site-wide in the base styles */
  transition: border-color 0.2s ease;
}
.link-list a:hover {
  border-color: var(--pill-active-bg);
}
.link-list img {
  width: 28px;
  height: auto;
}
.link-list a > i:first-child {
  width: 28px;
  font-size: 1.3em;
  text-align: center;
}
.link-list span {
  flex: 1;
  overflow-wrap: anywhere;
}
.link-list a > i:last-child {
  opacity: 0.6;
}

/* person: vertical by default (contact), .person-row for photo beside the text (about) */
.person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.person-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: 10px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.person-row {
  flex-direction: row;
  gap: 20px;
}
.person-row .person-photo {
  flex: 0 0 140px;
  width: 140px;
  height: 180px;
  aspect-ratio: auto;
  margin: 0;
}
.person-body {
  min-width: 0;
}
.person-name {
  margin: 0;
  font-size: var(--fs-heading);
  font-weight: 400;
}
.person-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 12px 0;
  font-size: 0.9em;
}
.person-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow-wrap: anywhere;
}
.person-contact i {
  width: 14px;
  text-align: center;
  opacity: 0.6;
}
.person-desc {
  font-size: var(--fs-small);
  line-height: 1.7;
}
.person-desc p {
  margin: 0 0 0.8em;
}

@media (max-width: 600px) {
  .page {
    margin-top: 12px;
  }
}
@media (max-width: 600px) {
  .person-row {
    flex-direction: column;
  }
  .person-row .person-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    flex-basis: auto;
  }
}

/* brand logo on a white tile - logos are made for white, also in dark mode */
.brand-logo img {
  display: block;
  width: auto;
  max-width: 260px;
  max-height: 120px;
  padding: 16px 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-hairline);
}

/* logo grid (clients page): white tiles, logos are made for white - also in dark mode.
   landscape, as most logos are wordmarks - squares were a wall of white on the dark page.
   narrow columns, so the 1fr stretch stays small (with 140px a 600px row got three 190px tiles) */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  padding: 16% 18%;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-hairline);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
a.logo-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hairline), 0 10px 24px rgba(0, 0, 0, 0.18);
}
/* a dark shadow is lost on the dark page - a soft light glow does the same job there */
body.dark-mode a.logo-tile:hover {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 6px 16px rgba(255, 255, 255, 0.4);
}
/* past clients: no tiles, grey logos - the current ones' white tiles above stay the main thing (faded white tiles
   were heavy grey blocks on the dark page); like the offer page's band */
.logo-grid-past {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;
}
.logo-grid-past .logo-tile {
  background: none;
  box-shadow: none;
}
.logo-grid-past .logo-tile img {
  filter: grayscale(1);
  opacity: 0.5;
  mix-blend-mode: multiply; /* a white logo background melts into the page */
}
body.dark-mode .logo-grid-past .logo-tile img {
  filter: grayscale(1) invert(1);
  opacity: 0.55;
  mix-blend-mode: screen;
}
/* the offer page: the current brands as a quiet band under the lead - no tiles, grey logos, colour on hover; the
   tiles of the clients page made 24 white boxes, too heavy above the offer */
.logo-grid.logo-grid-compact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 22px 40px;
  max-width: 1060px; /* 24 brands: three rows of eight */
  margin: 8px auto 0;
}
.logo-grid.logo-grid-compact .logo-tile {
  width: 96px;
  height: 44px;
  aspect-ratio: auto;
  padding: 0;
  background: none;
  box-shadow: none;
}
.logo-grid.logo-grid-compact .logo-tile img {
  filter: grayscale(1);
  opacity: 0.55;
  mix-blend-mode: multiply; /* some logos come on a white background - it disappears into the page */
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.logo-grid.logo-grid-compact a.logo-tile:hover {
  transform: none;
  box-shadow: none;
}
.logo-grid.logo-grid-compact a.logo-tile:hover img {
  filter: none;
  opacity: 1;
}
/* mostly dark logos - turned light on the dark page; a white background turns black and screen drops it */
body.dark-mode .logo-grid.logo-grid-compact .logo-tile img {
  filter: grayscale(1) invert(1);
  opacity: 0.6;
  mix-blend-mode: screen;
}
body.dark-mode .logo-grid.logo-grid-compact a.logo-tile:hover img {
  filter: grayscale(1) invert(1);
  opacity: 1;
}
@media (max-width: 600px) {
  .logo-grid.logo-grid-compact {
    gap: 18px 12px; /* four in a row on a 360px phone */
  }
  .logo-grid.logo-grid-compact .logo-tile {
    width: 64px;
    height: 32px;
  }
}
/* a short centred row of the same tiles (home: new packshots) */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logo-row > li {
  width: 160px;
}
@media (max-width: 600px) {
  /* three columns on a 360px phone, more on a wider one instead of stretching three */
  .logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }
  /* past clients: four columns, they are many and only secondary */
  .logo-grid-past {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
  }
  .logo-row {
    gap: 10px;
  }
  .logo-row > li {
    width: calc((100% - 20px) / 3);
    max-width: 120px;
  }
}

/* photo grid (image-grid.tpl) - item widths; js/samsung-grid/css loads after this file, hence .grid-wrap.x */
.grid-wrap.grid-photos .grid li {
  width: 260px;
}
/* one row - the component's 400px loading height would leave a gap under it */
.grid-wrap.grid-celebrities .grid {
  min-height: 0;
}
/* celebrities and product-placement covers: caption under the photo instead of a bar over it */
.grid-wrap.grid-celebrities .grid li,
.grid-wrap.grid-press .grid li {
  width: 240px;
}
.grid-wrap.grid-celebrities .grid li h3,
.grid-wrap.grid-celebrities .grid li.shown:hover h3,
.grid-wrap.grid-press .grid li h3,
.grid-wrap.grid-press .grid li.shown:hover h3 {
  position: static;
  width: auto;
  margin: -1px 7px 14px;
  padding: 0;
  background: none;
  color: inherit;
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  transform: none;
}
.grid-wrap.grid-celebrities .grid li h3 span {
  color: var(--card-text-muted);
}
.celeb-count {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: var(--fs-label);
  line-height: 1.3;
}
/* only once the photo has been revealed */
.js .grid li .celeb-count {
  visibility: hidden;
}
.grid li.shown .celeb-count {
  visibility: visible;
}

/* centred "show more" link/button under a list or grid */
.show-more {
  margin-top: 20px;
  text-align: center;
}
/* the same, closing the whole page (clients): apart from the grid above, like a section; the packshots and the offer
   side by side */
.show-more.page-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}
/* phones: one under the other at one width - wrapped they were two pills of different length */
@media (max-width: 600px) {
  .show-more.page-cta .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}
@media (max-width: 600px) {
  /* two columns; the photo grids sit inside .page, so leave room for both paddings */
  .grid-wrap.grid-photos .grid li,
  .grid-wrap.grid-celebrities .grid li,
  .grid-wrap.grid-press .grid li {
    width: calc(50vw - 27px);
  }
}

/* ---------- Typography ---------- */

/* justified text leaves rivers of white space in narrow columns */
p, li {
  text-align: start;
}
p {
  font-weight: 400;
  letter-spacing: 0;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ---------- Home hero mosaic ---------- */

/* flex children default to min-width:auto - the hero row and the article grid would widen the page */
.wrapper > .header,
.wrapper > .hero-split,
.wrapper > .main {
  min-width: 0;
}

/* text left, photos right; stacked below 900px. at most 1680px, centred like the content under it - on a wide screen
   the text (40rem at most) left a gap as wide as itself before the photos */
.hero-split {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 5fr) 7fr;
  align-items: start; /* text and photos start on one line, 24px under the menu */
  gap: clamp(24px, 4vw, 56px);
  padding: 24px clamp(16px, 3vw, 40px) 8px;
}
/* one column as wide as the title (about 40rem), the lead fills it - no ragged block of narrower text under the title */
.hero-intro {
  align-self: stretch; /* as tall as the mosaic - the figures sit on its bottom edge */
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  text-align: start;
}
.hero-kicker {
  margin: 0;
  color: var(--card-text-muted);
  text-transform: uppercase;
}
.hero-title,
body.dark-mode .hero-title {
  margin: 0;
  font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-lead {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.65;
  color: var(--card-text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 14px; /* the least room above the figures' line, when the text is taller than the mosaic */
}
/* figures under the buttons, at the bottom of the column and level with the mosaic's bottom edge; the line as wide
   as the text above it; number above its label (dd is first) */
.hero-stats {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(32px, 4vw, 64px);
  margin: auto 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
body.dark-mode .hero-stats {
  border-top-color: rgba(255, 255, 255, 0.14);
}
.hero-stats > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end; /* numbers on one line when one label wraps and the others don't */
  gap: 2px;
}
.hero-stats dd {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
  font-weight: 300;
  line-height: 1.1;
  white-space: nowrap;
}
.hero-stats dt {
  font-size: var(--fs-small);
  color: var(--card-text-muted);
}

/* featured tile on the left over two rows, four tiles 2 x 2 beside it */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(170px, 17vw, 270px));
  gap: 8px;
}
.hero-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #1e1e1e;
  /* packshots on white would melt into the light page - a hairline edge + soft shadow mark the tile */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.06);
}
body.dark-mode .hero-tile {
  box-shadow: none;
}
.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* mostly people - cropping round the middle cut off heads */
  transition: transform 0.6s ease;
}
.hero-tile:hover img {
  transform: scale(1.05);
}
.hero-tile-featured {
  grid-row: span 2;
}
.hero-tile:nth-child(n + 6) {
  display: none;
}

/* brand name on every photo */
.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 36px 12px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  text-align: start;
}
.hero-brand,
body.dark-mode .hero-brand {
  color: #fff;
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.3;
  text-transform: uppercase;
}
.hero-tile-featured .hero-brand {
  font-size: 0.85em;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-mosaic {
    grid-template-rows: repeat(2, clamp(130px, 26vw, 220px));
  }
}

/* phones: one swipeable row with every image */
@media (max-width: 600px) {
  /* both buttons one width - wrapped they were two pills of different length */
  .hero-actions {
    align-self: stretch;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
  }
  .hero-stats {
    margin-top: 6px;
    padding-top: 16px;
  }
  .hero-stats dd {
    font-size: 1.35rem;
  }
  .hero-stats dt {
    font-size: 0.8em;
    line-height: 1.35;
  }
  .hero-mosaic {
    display: flex;
    gap: 8px;
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hero-mosaic::-webkit-scrollbar {
    display: none;
  }
  .hero-tile,
  .hero-tile:nth-child(n + 6) {
    display: block;
    flex: 0 0 72%;
    height: 62vw;
    max-height: 340px;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tile img {
    transition: none;
  }
  .hero-tile:hover img {
    transform: none;
  }
}

/* ---------- Brand logo tiles ---------- */

.client-logo-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.client-logo-item:hover {
  transform: translateY(-3px);
}

/* ---------- Home article cards ---------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 28px;
  max-width: 1240px;
  margin: 30px auto;
  padding: 0 16px;
  text-align: start;
}
/* box from .card */
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.article-card-head {
  padding-right: 76px; /* room for the brand logo */
}
#headlines .article-card-head .pubDate {
  display: block;
  width: auto;
  margin-bottom: 4px;
  font-size: var(--fs-label);
  letter-spacing: 1.5px;
  color: var(--card-text-muted);
}
.article-card-title {
  margin: 0;
  font-size: var(--fs-heading);
  line-height: 1.35;
}
.article-card-title a {
  text-align: start;
}

.article-card-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: start;
}
.article-card-body > .article-card-summary:only-child {
  grid-column: 1 / -1;
}
.article-card-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.article-card-summary {
  line-height: 1.7;
  font-size: var(--fs-small);
  font-weight: 400;
}
/* four lines at most - one long lead made its card twice as tall as its neighbour */
.article-card-lead {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
}
.article-card-lead > * {
  display: inline;
  margin: 0;
}
.article-card-more {
  display: table;
  margin-top: 10px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.article-card-more i {
  margin-left: 4px;
  font-size: 0.8em;
  transition: transform 0.2s ease;
}
.article-card-more:hover i {
  transform: translateX(3px);
}

.article-card-gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.article-card-gallery:empty {
  display: none;
}
/* one row only - a second row of two made every card look unfinished; the hidden ones stay in the lightbox */
.article-card-gallery a:nth-child(n + 7) {
  display: none;
}
.article-card-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease;
}
.article-card-gallery a:hover img {
  opacity: 0.8;
}

.article-card-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: #fff;
}
.article-card-logo img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

@media (max-width: 600px) {
  .article-grid {
    gap: 20px;
    padding: 0 12px;
  }
  .article-card {
    padding: 18px;
  }
  .article-card-body {
    grid-template-columns: 1fr;
  }
  .article-card-cover img {
    aspect-ratio: 4 / 3;
    object-position: center 12%; /* portraits cut to 4:3 - round the middle it showed legs and no head */
  }
  .article-card-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .article-card-gallery a:nth-child(n + 4) {
    display: none;
  }
}

/* ---------- Language switch (PL | EN) ---------- */

.stellarnav li.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 0 0 12px;
  padding: 3px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-pill);
  vertical-align: middle;
}
.stellarnav li.lang-switch a {
  display: block;
  margin: 0;
  padding: 3px 11px;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: 0.8em;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.5;
}
.stellarnav li.lang-switch a:hover {
  background: rgba(0, 0, 0, 0.06);
}
.stellarnav li.lang-switch a.is-current,
.stellarnav li.lang-switch a.is-current:hover {
  background: #000;
  color: #fff !important;
  cursor: default;
}

body.dark-mode .stellarnav li.lang-switch {
  border-color: rgba(255, 255, 255, 0.25);
}
body.dark-mode .stellarnav li.lang-switch a:hover {
  background: rgba(255, 255, 255, 0.08);
}
body.dark-mode .stellarnav li.lang-switch a.is-current,
body.dark-mode .stellarnav li.lang-switch a.is-current:hover {
  background: var(--dark-text-color);
  color: var(--dark-bg-color) !important;
}

/* inside the mobile slide-out menu */
.stellarnav.mobile li.lang-switch {
  display: flex;
  width: max-content;
  margin: 14px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}
body.dark-mode .stellarnav.mobile li.lang-switch {
  border-top-color: rgba(255, 255, 255, 0.25);
}
.stellarnav.mobile li.lang-switch a {
  min-height: 0;
  padding: 6px 16px;
}

/* ---------- Cookie notice ---------- */

.cookie-notice {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10000; /* above the dark-mode toggle (inline z-index 9999) */
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 380px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 0.85em;
  line-height: 1.6;
  animation: cookie-in 0.35s ease both;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-notice p {
  margin: 0;
  color: inherit;
}
.cookie-notice a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cookie-notice button {
  padding: 8px 22px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
  font: inherit;
  font-weight: 400;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cookie-notice button:hover {
  background: #444;
}
.cookie-notice button:focus-visible {
  outline: 2px solid var(--pill-active-bg);
  outline-offset: 3px;
}
/* declining is as easy as accepting, but the quieter of the two */
.cookie-notice .cookie-actions button.cookie-decline {
  background: transparent;
  box-shadow: inset 0 0 0 1px currentColor;
  color: inherit;
}
.cookie-notice .cookie-actions button.cookie-decline:hover {
  background: rgba(127, 127, 127, 0.18);
}
/* phones: a slim bar along the bottom instead of a card over a third of the first screen */
@media (max-width: 600px) {
  .cookie-notice {
    right: 8px;
    bottom: 8px;
    left: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    max-width: none;
    padding: 12px 14px;
    font-size: 0.75em;
    line-height: 1.45;
  }
  .cookie-actions {
    margin-left: auto;
  }
  .cookie-notice button {
    padding: 6px 16px;
  }
}
.cookie-notice.is-hiding {
  opacity: 0;
  transform: translateY(12px);
}

body.dark-mode .cookie-notice {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(30, 30, 30, 0.96);
  box-shadow: var(--shadow-pop);
  color: var(--dark-text-color);
}
body.dark-mode .cookie-notice p,
body.dark-mode .cookie-notice a {
  color: var(--dark-text-color);
}
body.dark-mode .cookie-notice button:hover {
  background: #fff;
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (max-width: 600px) {
  .cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice {
    animation: none;
    transition: none;
  }
}

/* ---------- Showroom filters ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sr-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* room for all colour swatches in one row (about 1150px) - pills and selects keep their own widths */
  max-width: 1280px;
  margin: 10px auto 6px; /* + the page's 10px: 20px under the menu, the same as under the category pills */
  padding: 0 16px;
}

/* category pills */
.sr-cats {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  margin-bottom: 6px; /* + the 14px gap: 20px, the same as above the pills */
  padding: 4px;
  overflow-x: auto;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  scrollbar-width: none;
}
.sr-cats::-webkit-scrollbar {
  display: none;
}
.sr-cats a {
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-weight: 400;
  white-space: nowrap;
  text-align: center;
}
.sr-cats a:hover {
  background: var(--pill-hover-bg);
}
.sr-cats a.is-active,
.sr-cats a.is-active:hover {
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
}

/* dropdowns: native selects styled as pills */
.sr-selects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 230px));
  justify-content: center;
  gap: 10px;
  width: 100%;
}
select.sr-native {
  display: block;
  width: 100%;
  height: 38px;
  margin: 0;
  padding: 0 40px 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
  color: inherit;
  font: inherit;
  font-weight: 300;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease;
}
select.sr-native:hover {
  border-color: var(--pill-active-bg);
}
select.sr-native:focus-visible {
  outline: 2px solid var(--pill-active-bg);
  outline-offset: 2px;
}
select.sr-native.has-value {
  border-color: var(--pill-active-bg);
  font-weight: 400;
}
/* dark option list: color-scheme for Chrome/Safari; explicit colours for browsers that
   draw the list from the select's own background (a transparent one falls back to white) */
body.dark-mode select.sr-native {
  color-scheme: dark;
  background-color: var(--page-bg);
}
body.dark-mode select.sr-native option {
  background-color: var(--dark-secondary-bg);
  color: var(--dark-text-color);
}

/* searchable dropdowns (js/tom-select, desktop): closed - the same pill as select.sr-native; open - a card with a search field */
.sr-select .ts-wrapper {
  width: 100%;
}
.sr-select .ts-wrapper.single .ts-control,
.sr-select .ts-wrapper.single.input-active .ts-control {
  flex-wrap: nowrap;
  align-items: center;
  height: 38px;
  padding: 0 40px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 12px 8px;
  box-shadow: none;
  color: inherit;
  font: inherit;
  font-weight: 300;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.sr-select .ts-wrapper.single .ts-control:hover,
.sr-select .ts-wrapper.focus .ts-control,
.sr-select .ts-wrapper.has-items .ts-control {
  border-color: var(--pill-active-bg);
}
.sr-select .ts-wrapper.has-items .ts-control {
  font-weight: 400;
}
.sr-select .ts-control > .item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sr-select .ts-control > input,
.sr-select .ts-control > input::placeholder {
  color: inherit;
  font: inherit;
  font-weight: 300;
}
/* tom-select sets the right padding with !important - room for the arrow, and for the clear button when a value is set */
.sr-select .ts-wrapper.single .ts-control:not(.rtl) {
  padding-right: 40px !important;
}
.sr-select .ts-wrapper.plugin-clear_button.single .ts-control:not(.rtl) {
  padding-right: 64px !important;
}
.sr-select .ts-wrapper.plugin-clear_button.single .clear-button {
  right: 34px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 1.5l7 7M8.5 1.5l-7 7' fill='none' stroke='%23888' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 10px 10px !important;
}
.sr-select .ts-wrapper.plugin-clear_button.has-items .clear-button {
  opacity: 1;
  /* 2.7.0 keeps the button pointer-events: none until the control is focused or hovered (so it stops
     swallowing clicks meant to open the dropdown) - we show it whenever a filter is set, so it has to take
     the click whenever it is visible */
  pointer-events: auto;
}
.sr-select .ts-wrapper.plugin-clear_button.single .clear-button:hover {
  background-color: var(--pill-hover-bg) !important;
}
.sr-select .ts-dropdown {
  margin-top: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--page-bg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  color: inherit;
  font-size: inherit; /* tom-select default is 13px */
  font-weight: 300;
  line-height: 1.4;
  z-index: 7000;
}
body.dark-mode .sr-select .ts-dropdown {
  background: var(--dark-secondary-bg);
  box-shadow: var(--shadow-pop);
}
/* as wide as its longest option, so a sub-type and its grey main type stay on one line - at least the box,
   at most 420px; the last dropdown opens to the left so it stays on the screen */
.sr-select .ts-dropdown {
  width: max-content;
  min-width: 100%;
  max-width: min(420px, 90vw);
}
.sr-select:last-child .ts-dropdown {
  left: auto;
  right: 0;
}
.sr-select .ts-dropdown .ts-dropdown-content {
  max-height: 320px;
}
.sr-select .ts-dropdown .option,
.sr-select .ts-dropdown .no-results {
  padding: 8px 12px;
  border-radius: 8px;
}
.sr-select .ts-dropdown .option.is-sub {
  padding-left: 28px;
}
.sr-select .ts-dropdown .active {
  background: var(--pill-hover-bg);
  color: inherit;
}
.sr-select .ts-dropdown .selected {
  font-weight: 400;
}
.sr-select .ts-dropdown .no-results {
  color: var(--card-text-muted);
}
.sr-select .ts-dropdown .option-parent {
  color: var(--card-text-muted);
  font-size: 0.85em; /* the site's label size (chips, "na stronie") */
}
/* matched letters while searching */
.sr-select .ts-dropdown [data-selectable] .highlight {
  background: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* colour swatches */
.sr-colors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 4px;
}
.sr-swatch {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sr-swatch:hover {
  transform: scale(1.15);
}
.sr-swatch.is-active {
  box-shadow: inset 0 0 0 1px var(--line), 0 0 0 2px var(--page-bg), 0 0 0 3.5px var(--pill-active-bg);
}
/* colours a flat circle cannot show (dict_colors.color_id): transparent looked like a second white, gold like pale
   yellow - a checkerboard and metallic sheens instead */
.sr-swatch[data-color="18"] {
  background: repeating-conic-gradient(#d6d6d6 0 25%, #fff 0 50%) 50% / 10px 10px;
}
.sr-swatch[data-color="14"] {
  background: linear-gradient(135deg, #8a6514 0%, #e9c45c 35%, #fff3c4 50%, #d4a32f 65%, #7c5a10 100%);
}
.sr-swatch[data-color="5"] {
  background: linear-gradient(135deg, #7d7d7d 0%, #d4d4d4 35%, #fafafa 50%, #bdbdbd 65%, #6e6e6e 100%);
}
.sr-swatch[data-color="25"] {
  background: linear-gradient(135deg, #a8645a 0%, #e8a99c 35%, #fde4dc 50%, #d78f80 65%, #94524a 100%);
}

/* phones: "Filtry" button in front of the dropdowns and colours (wrapper: no box of its own elsewhere) */
.sr-more {
  display: contents;
}
.sr-toggle {
  display: none;
}
@media (max-width: 600px) {
  html.js .sr-filters:not(.is-open) .sr-more {
    display: none;
  }
  html.js .sr-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }
  /* the same arrow as the selects, up when open */
  .sr-toggle::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 4px;
    border: solid currentColor;
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
  }
  .sr-filters.is-open .sr-toggle::after {
    transform: translateY(2px) rotate(225deg);
  }
  .sr-toggle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--pill-active-bg);
    color: var(--pill-active-fg);
    font-size: 0.75em;
  }
}

/* active filter chips */
.sr-active {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.sr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--card-bg);
  font-size: 0.85em;
  font-weight: 400;
}
.sr-chip i {
  font-size: 0.85em;
  opacity: 0.6;
}
.sr-chip:hover i {
  opacity: 1;
}
.sr-clear {
  margin-left: 4px;
  font-size: 0.85em;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* count + pagination bar */
.sr-brand img {
  max-width: 160px;
  max-height: 52px;
  padding: 8px 14px;
}
.sr-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 1100px;
  margin: 18px auto 0; /* close to the filters it answers to; the cards below get more room */
  padding: 0 16px;
}
/* the brand's own note above its packshots - a readable column, centred like the toolbar above it.
   Short by design (FashionPR::brandIntro cuts it) so nothing needs clipping; the link at the end goes to
   the whole note on the brand's press page */
.sr-intro {
  max-width: var(--measure);
  margin: 14px auto 0;
  padding: 0 16px;
  font-size: var(--fs-small);
  line-height: 1.7;
  text-align: center;
  opacity: 0.85;
}
.sr-intro a {
  text-decoration: underline;
}
/* text style from .page-title, count from .label (favourites and news pages) */
.sr-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sr-title .sr-count {
  margin-top: 4px;
}
/* logo | count | favourites - a hairline between the items (a hidden favourites link takes its line with it) */
.sr-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0;
}
.sr-meta > * + * {
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.sr-meta .label {
  line-height: 1.2;
}
/* the favourites link in the same small capitals as the count (.fav-link sets its own size further down) */
.sr-meta .fav-link {
  font-size: var(--fs-label);
}
.sr-meta .fav-link .fav-heart {
  width: 13px;
  height: 13px;
}
/* phones: the logo on a row of its own (no line after it), count | favourites a bit tighter so they fit in one */
@media (max-width: 600px) {
  .sr-meta > * + * {
    margin-left: 10px;
    padding-left: 10px;
  }
  .sr-meta .label {
    letter-spacing: 1px;
  }
  .sr-meta .sr-brand {
    display: flex;
    flex-basis: 100%;
    justify-content: center;
  }
  .sr-meta .sr-brand + * {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}
.sr-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 18px;
}
.sr-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.sr-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1; /* page line-height is 1.8 - would push the digits off centre */
  white-space: nowrap;
}
.sr-page:hover {
  background: var(--pill-hover-bg);
}
.sr-page.is-current,
.sr-page.is-current:hover {
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
}
.sr-page-arrow i {
  font-size: 0.8em;
}
/* first / last page: the arrow stays in its place, faded */
.sr-page-arrow.is-disabled,
.sr-page-arrow.is-disabled:hover {
  background: none;
  opacity: 0.3;
}
.sr-page-gap {
  min-width: 20px;
  line-height: 1;
  text-align: center;
  opacity: 0.5;
}
/* 30px above and below, as between the top pager and the cards: above 6px left of the cards' bottom margin + 24px,
   below -4px + the page's 10px + the footer's 24px */
.sr-pager-bottom {
  justify-content: center;
  margin: 24px auto -4px;
}

/* gallery cards (showroom-gallery-packshots.tpl) - the card stays white in dark mode, so its icons keep fixed colours */
/* white card on the near-white page: a hairline edge + soft shadow mark the image area (was a grey glow);
   on the dark page the white card stands out by itself */
.product {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 6px 20px rgba(0, 0, 0, 0.1);
}
body.dark-mode .product {
  box-shadow: none;
}
/* zoom (top right) and heart (top left, .fav-card): the same quiet outline icons, full strength on hover */
.product .zoom,
.product .zoom:hover {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  right: 4px;
  top: 4px;
  width: 34px;
  height: 34px;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.15s ease;
}
.product .zoom:hover {
  opacity: 1;
}
.zoom-icon,
.shop-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
/* centred on the heart / zoom icons (34px boxes at top 4px - middle at 21px) */
.product .new {
  position: absolute;
  display: inline-flex;
  align-items: center;
  left: 50%;
  top: 11px;
  height: 20px;
  transform: translateX(-50%);
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1;
}
/* the grid: the full width, as many columns of at least 210px as fit (5 on a laptop, 10 on a wide screen), the same
   gap both ways; phones two */
.product-grid#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 32px; /* 24 made the white cards on the dark page one busy band */
  margin: 30px auto;
  padding: 0 clamp(16px, 3.5vw, 56px);
}
/* card: the image on a panel in the packshot's own background colour (js/packshot-panel.js reads it from the
   thumbnail's corners), so a grey or white packshot does not show as a box inside the card; brand and what it is
   under it, then downloads / shop / price */
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius);
  background: #fff;
  text-align: start;
}
.product .packshot-link {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  min-height: 0; /* the panel keeps its shape - a tall image shrinks instead of stretching it */
  overflow: hidden;
  padding: 40px 14px 14px; /* top: room for the heart / NEW / zoom row */
  border-radius: var(--radius) var(--radius) 0 0;
  background: #fff; /* until the script has read the packshot's colour - most are on white */
  transition: background-color 0.2s ease;
}
.product a img.packshot {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
}
.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
}
/* a packshot on a dark background: light icons and badge on its dark panel */
.product.is-dark .zoom,
.product.is-dark .fav-card {
  color: #fff;
}
.product.is-dark .new {
  background: #fff;
  color: #111;
}
/* the card stays white in dark mode - fixed colours, not the page's */
.product .product-brand {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis; /* only the longest brand on a phone */
  color: #111;
  font-size: 0.8125rem; /* brand and what it is one size - weight, case and colour tell them apart */
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.4;
  text-transform: uppercase;
}
.product .product-label {
  min-height: 1.4em; /* kept when empty - the price below stays in line with the other cards */
  overflow: hidden;
  color: #666;
  font-size: 0.8125rem;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.product .product-brand:hover,
.product .product-label:hover {
  color: #000;
}
/* bottom row: the downloads */
.product-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
/* small outlined buttons, the row to themselves - two with their sizes fit also on a 10-column card */
.product .download {
  display: flex;
  min-width: 0;
  gap: 4px;
  font-size: 0.7rem;
}
.product .download a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid #ddd;
  border-radius: var(--radius-pill);
  color: #333;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.product .download a:hover {
  border-color: #999;
}
.product .download i {
  font-size: 0.85em;
}
.product .download .file-size {
  color: #888;
}
/* price left, the product's shop right; the shop alone keeps to the right */
.product-price {
  display: flex;
  align-items: center;
  margin-top: 4px;
}
.product-price .shop-card {
  margin-left: auto;
}
.product .price {
  color: #111;
  font-size: 0.88rem; /* a touch above brand and type - the one number on the card */
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* phones: two columns; the file sizes go, the type is a little smaller */
@media (max-width: 600px) {
  .product-grid#gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 10px;
  }
  .product .packshot-link {
    padding: 44px 8px 8px;
  }
  .product-info {
    padding: 8px 10px 10px;
  }
  /* narrow cards: brand and type a size smaller, the price too */
  .product .product-brand,
  .product .product-label {
    font-size: 0.75rem;
  }
  .product .price {
    font-size: 0.82rem;
  }
  .product .product-brand {
    letter-spacing: 0.6px; /* more of a long brand fits */
  }
  .product .download .file-size {
    display: none;
  }
}

@media (max-width: 600px) {
  .sr-filters {
    align-items: stretch;
    gap: 12px;
    margin-top: 10px;
  }
  /* phones: a little shorter - 14px from the filters, 24px to the cards; narrower sides so the page buttons fit one
     row (below) */
  .sr-toolbar {
    margin-top: 14px;
    padding: 0 10px;
  }
  .sr-toolbar + #products > #gallery.center {
    margin-top: 24px; /* was -6px against the old cards' own 30px top margin - the grid has none */
  }
  .sr-cats {
    align-self: center;
    margin-bottom: 8px; /* + the 12px gap: 20px, as above the pills */
  }
  .sr-selects {
    grid-template-columns: 1fr;
  }
  /* one swipeable row of swatches */
  .sr-colors {
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: none;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sr-colors::-webkit-scrollbar {
    display: none;
  }
  /* one scrolling row - a bit bigger for fingers */
  .sr-swatch {
    width: 30px;
    height: 30px;
  }
  /* bigger for fingers, still 7 slots + 2 arrows in one row on a 360px phone
     (the widest, < 1 ... 173 174 175 176 177 >, ~314px of 320) */
  .sr-pages {
    justify-content: center;
    gap: 2px;
  }
  .sr-page {
    min-width: 38px;
    height: 38px;
    padding: 0 4px;
  }
  .sr-page-arrow {
    min-width: 28px;
  }
  .sr-page-gap {
    min-width: 14px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 40px;
  padding: 40px 24px 0;
  font-size: 0.9em;
  text-align: start;
}
.site-footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 28px;
}
.site-footer-brand p {
  max-width: 34ch;
  margin: 0 0 18px;
  line-height: 1.6;
  opacity: 0.75;
}
.site-footer-social {
  display: flex;
  gap: 10px;
}
.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer li,
.site-footer a {
  line-height: 1.5;
  text-align: start;
}
.site-footer-contact a {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.site-footer-contact i {
  width: 14px;
  text-align: center;
  opacity: 0.6;
}
.site-footer-contact a:hover span,
.site-footer-bottom a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid var(--line);
  font-size: 0.85em;
}
.site-footer-bottom .pfr img {
  display: block;
  width: auto;
  height: 44px;
  border-radius: 4px;
}

/* phones: one row of small icon buttons + a single line underneath */
@media (max-width: 600px) {
  .site-footer {
    margin-top: 24px;
    padding: 16px 16px 0;
    font-size: 0.8em;
  }
  .site-footer-cols {
    justify-content: center;
    gap: 8px;
    padding-bottom: 12px;
  }
  .site-footer-brand p,
  .site-footer-contact h2,
  .site-footer-contact span {
    display: none;
  }
  .site-footer-social,
  .site-footer-contact ul {
    flex-direction: row;
    gap: 8px;
  }
  .site-footer .site-footer-social a,
  .site-footer .site-footer-contact a {
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .site-footer-contact i {
    width: auto;
    opacity: 1;
  }
  .site-footer-bottom {
    padding: 8px 0 10px;
    font-size: 0.9em;
  }
  .site-footer-bottom .pfr img {
    height: 28px;
  }
}

/* ---------- Product page ---------- */
.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.pd-image {
  position: relative;
  display: block;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
}
/* white cards need an edge on the light page background */
.pd-image,
.pd-thumbs a,
.pd-brand img {
  box-shadow: var(--shadow-hairline);
}
.pd-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
}
.pd-zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.pd-image:hover .pd-zoom,
.pd-image:focus-visible .pd-zoom {
  opacity: 1;
}
body.dark-mode .pd-zoom i {
  color: #fff;
}
.pd-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.pd-thumbs a {
  width: 78px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: #fff;
  transition: opacity 0.2s ease;
}
.pd-thumbs a:hover {
  opacity: 0.8;
}
.pd-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}

.pd-info {
  position: sticky;
  top: 80px; /* below the sticky menu */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.pd-brand img {
  display: block;
  width: auto;
  max-width: 180px;
  max-height: 60px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #fff;
}
/* price and the shop button in one row, centred on each other; the button drops below on a narrow screen */
.pd-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.pd-price {
  font-size: 1.5em;
  font-weight: 400;
}
/* original model / file code under a generated product name */
.pd-code {
  margin-top: -6px;
  overflow-wrap: anywhere;
}
.pd-desc {
  line-height: 1.7;
  opacity: 0.85;
}

.pd-downloads {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin-top: 6px;
}
.pd-file {
  margin-left: auto;
  font-size: 0.8em;
  letter-spacing: 1px;
  opacity: 0.7;
}

@media (max-width: 760px) { /* content breakpoint: the two columns need ~760px */
  .pd-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pd-image {
    padding: 14px;
  }
  .pd-info {
    position: static;
  }
  .pd-downloads {
    max-width: none;
  }
}

/* product page: back link on the left, previous / next on the right */
.pd-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.pd-nav .back-link {
  margin-bottom: 0;
}
.pd-step {
  display: flex;
  gap: 8px;
}

/* product page: more from the brand - the gallery's cards (showroom-gallery-packshots.tpl), four in a row inside the
   page (two full rows of eight), three on a tablet, two on a phone */
.pd-more-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.pd-more-all {
  font-size: 0.9em;
  white-space: nowrap;
}
.pd-more-all i {
  margin-left: 6px;
}
.pd-more .product-grid#gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0 0;
  padding: 0;
}
@media (max-width: 900px) {
  .pd-more .product-grid#gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .pd-more .product-grid#gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* product page: the tags under the name - one quiet line like the product code above, dots between, each word a link
   to its filter (underlined on hover); outlined pills were a row of boxes competing with the price */
.pd-tags {
  margin: 2px 0 6px;
  color: var(--card-text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}
.pd-tags a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
.pd-tags a:hover {
  text-decoration-color: currentColor;
}
.pd-tags a + a::before {
  content: "\00b7";
  display: inline-block;
  margin: 0 8px;
  text-decoration: none;
}

/* product page: favourites + share in one row */
.pd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
/* phones: both full width, one under the other - side by side they did not fit, wrapped they were two widths */
@media (max-width: 600px) {
  .pd-actions > *,
  .pd-actions .share .btn {
    flex: 1 1 100%;
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Favourites (fav-button.tpl, favourites.tpl, js/favourites.js) ---------- */

.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.fav-heart {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: fill 0.15s ease;
}
/* saved: red - the one colour in the ui, so saved packshots stand out in the grid; the toolbar link is only a link */
.fav-btn[aria-pressed="true"] .fav-heart {
  fill: #d0103a;
  stroke: #d0103a;
}
.fav-link .fav-heart {
  fill: currentColor;
}
/* gallery card: top left (the zoom icon is top right); the card stays white in dark mode */
.product .fav-card {
  position: absolute;
  left: 4px;
  top: 4px;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.15s ease;
}
/* a saved one stays at full strength */
.product .fav-card:hover,
.product .fav-card[aria-pressed="true"] {
  opacity: 1;
}
/* the product's shop page: beside the price, the same quiet outline icon */
.product .shop-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; /* the row's height - a bigger box pushed the downloads away from the price */
  height: 24px;
  color: var(--ink);
  opacity: 0.55;
  transition: opacity 0.15s ease;
}
.product .shop-card:hover {
  opacity: 1;
}
/* phones: heart and zoom bigger for fingers - 40px boxes 2px from the edges, centred on the NEW badge as before
   (after the rules above, which would win otherwise) */
@media (max-width: 600px) {
  .product .zoom,
  .product .zoom:hover,
  .product .fav-card {
    top: 2px;
    width: 40px;
    height: 40px;
  }
  .product .zoom,
  .product .zoom:hover {
    right: 2px;
  }
  .product .fav-card {
    left: 2px;
  }
  .product .shop-card {
    width: 28px;
    height: 24px;
  }
  .product .zoom-icon,
  .product .shop-icon,
  .product .fav-card .fav-heart {
    width: 23px;
    height: 23px;
  }
}
/* counter: a pill in the menu, plain text elsewhere */
.stellarnav .fav-count {
  display: inline-block;
  min-width: 18px;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--pill-active-bg);
  color: var(--pill-active-fg);
  font-size: 0.75em;
  line-height: 1.4;
  text-align: center;
}
.fav-count[hidden],
.fav-total[hidden],
.fav-link[hidden],
.fav-actions[hidden],
.fav-empty[hidden],
.fav-share-url[hidden] {
  display: none;
}
/* gallery toolbar: link to the favourites page */
.fav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
}
.fav-link .fav-heart {
  width: 16px;
  height: 16px;
}
/* favourites page */
.fav-note {
  margin: 0;
  text-align: center;
}
.fav-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.fav-share-url {
  width: 100%;
  max-width: 520px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85em;
  text-align: center;
}
.fav-empty {
  max-width: 520px;
  margin: 32px auto;
  padding: 0 16px;
  text-align: center;
}

/* ---------- Share button (share-button.tpl) ---------- */

.share {
  position: relative;
  display: inline-block;
}
.share-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.share-menu[hidden] {
  display: none;
}
.share-menu a,
.share-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
}
.share-menu a:hover,
.share-menu button:hover {
  background: var(--pill-hover-bg);
}
.share-menu i {
  width: 16px;
  text-align: center;
}
body.dark-mode .share-menu {
  background: #1e1e1e;
  box-shadow: var(--shadow-pop);
}
body.dark-mode .share-menu a,
body.dark-mode .share-menu button {
  color: var(--dark-text-color);
}
.center .share-menu {
  left: 50%;
  transform: translateX(-50%);
}

/* ---------- Lightbox (js/lightbox.js) ---------- */

html.lightbox-open {
  overflow: hidden;
}
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 64px 76px 24px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: #fff;
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-in 0.25s ease;
}
.lightbox::backdrop {
  background: rgba(8, 8, 10, 0.88);
  backdrop-filter: blur(6px);
}
.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  margin: 0;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100% - 44px);
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-frame {
  display: none;
  width: min(1100px, 100%);
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.lightbox.is-frame .lightbox-img {
  display: none;
}
.lightbox.is-frame .lightbox-frame {
  display: block;
}
.lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 18px;
  max-width: 80ch;
  color: var(--dark-text-color);
  font-size: 0.9em;
  text-align: center;
}
.lightbox-caption[hidden] {
  display: none;
}
.lightbox-download,
body.dark-mode .lightbox-download {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.lightbox-close {
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  font-size: 28px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 50px;
  height: 50px;
  padding-bottom: 4px;
  font-size: 36px;
  transform: translateY(-50%);
}
.lightbox-prev {
  left: 14px;
}
.lightbox-next {
  right: 14px;
}
/* display:flex above would override the hidden attribute */
.lightbox-prev[hidden],
.lightbox-next[hidden] {
  display: none;
}

/* loading a big image: the thumbnail fills the space blurred, a progress pill sits on top.
   Without a thumbnail the empty <img> would show its alt text - keep it out of sight. */
.lightbox.is-loading .lightbox-img:not([src]) {
  visibility: hidden;
}
.lightbox.is-loading .lightbox-img {
  width: 100%;
  height: calc(100% - 44px);
  background: transparent;
  box-shadow: none;
  filter: blur(10px);
  opacity: 0.6;
}
.lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.85em;
  font-variant-numeric: tabular-nums;
  transform: translate(-50%, -50%);
}
.lightbox-loader[hidden] {
  display: none;
}
.lightbox-loader-track {
  position: relative;
  width: 160px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
}
.lightbox-loader-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 2px;
  background: #fff;
  transition: width 0.15s linear;
}
.lightbox-loader-pct {
  min-width: 3.5ch;
  text-align: right;
}
.lightbox-loader.is-indeterminate .lightbox-loader-bar {
  width: 35%;
  animation: lightbox-slide 1.1s ease-in-out infinite;
}
.lightbox-loader.is-indeterminate .lightbox-loader-pct {
  display: none;
}
@keyframes lightbox-slide {
  from {
    left: -35%;
  }
  to {
    left: 100%;
  }
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
}

@media (max-width: 600px) {
  .lightbox {
    padding: 64px 8px 76px; /* room for the arrows at the bottom */
  }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 16px;
    width: 44px;
    height: 44px;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox[open] {
    animation: none;
  }
}

/* ---------- Main menu (stellarnav) ---------- */

/* logo: vertically centred in the 60px bar */
.stellarnav li#logo-navi {
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
}
.stellarnav li#logo-navi img {
  display: block;
  height: 44px;
  margin: 0;
}
/* the logo links home - none of the menu link padding / bar height */
.stellarnav li#logo-navi > a,
.stellarnav.desktop > ul > li#logo-navi > a:not(.dd-toggle) {
  display: block;
  height: auto;
  margin: 0;
  padding: 0;
  background: none;
}
/* phones: logo on the right of the bar, next to MENU */
.header-logo {
  display: none;
}
@media (max-width: 900px) {
  .header-logo {
    display: block;
    position: absolute;
    top: 50%;
    right: 16px;
    z-index: 1;
    transform: translateY(-50%);
  }
  .header-logo img {
    display: block;
    height: 36px;
    width: auto;
  }
}
/* logout (logged-in users only): an icon in the bar, icon + label in the mobile menu */
.nav-logout i {
  margin-right: 8px;
}
.stellarnav.desktop .nav-logout i {
  margin-right: 0;
}
.stellarnav.desktop .nav-logout-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* logo and globe only when the bar has room for them (was fixBar() in js-bottom.tpl) - 1150px: where the
   menu links would run into them, not one of the layout breakpoints */
@media (max-width: 1150px) {
  .stellarnav li#logo-navi,
  .stellarnav li#page-global-navi {
    display: none;
  }
}

/* current page: underline instead of a "▶" icon */
.stellarnav a.is-current {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.stellarnav ul ul a.is-current {
  text-underline-offset: 5px;
}

/* dropdown arrow: small chevron next to the label */
.stellarnav.desktop li.has-sub > a:after,
.stellarnav.light li.has-sub > a:after {
  width: 6px;
  height: 6px;
  margin: 0 0 0 9px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.stellarnav.desktop li.has-sub:hover > a:after {
  transform: translateY(-1px) rotate(225deg);
}

/* top-level links fill the whole 60px bar, so the hover background reaches the bottom edge */
/* :not(.dd-toggle) - stellarnav's mobile "+" toggle is also a direct child link and must stay hidden */
.stellarnav.desktop > ul > li > a:not(.dd-toggle) {
  display: flex;
  align-items: center;
  height: 60px;
  padding-top: 0;
  padding-bottom: 0;
}
.stellarnav.desktop li#page-global-navi {
  margin-top: 0;
}

/* dropdown panel - attached to the bar (a gap would also close it while the mouse crosses it). The open tab and its
   panel are one shape: the same colour (white on the light bar, a step lighter on the dark one), the panel starts at
   the tab's left edge, is at least as wide, has no top edge and square top corners; the shadow only below */
.stellarnav.desktop > ul > li.has-sub:hover > a:not(.dd-toggle) {
  background: #fff;
}
.stellarnav.desktop ul ul {
  left: 0;
  width: auto;
  min-width: max(200px, 100%);
  box-sizing: border-box;
  margin-top: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  background: #fff;
  box-shadow: 0 16px 24px -10px rgba(0, 0, 0, 0.18);
}
.stellarnav.desktop ul ul li a {
  margin: 0;
  padding: 10px 14px;
  border-radius: 8px;
  white-space: nowrap;
}
.stellarnav.desktop ul ul li a:hover {
  background: var(--pill-hover-bg);
}
body.dark-mode .stellarnav.desktop > ul > li.has-sub:hover > a:not(.dd-toggle),
body.dark-mode .stellarnav.desktop ul ul,
body.dark-mode .stellarnav.desktop li:hover > ul {
  background: #242424;
}
body.dark-mode .stellarnav.desktop ul ul {
  border: 0;
  box-shadow: 0 16px 24px -10px rgba(0, 0, 0, 0.6);
}

/* ---------- News article (articles/viewArticle.tpl) ---------- */
.ar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 14px;
  font-size: var(--fs-label);
  letter-spacing: 1.5px;
  color: var(--card-text-muted);
  font-weight: 400;
}
/* english version of the polish site: "translated automatically" / "only in polish" beside the date - a quiet aside */
.ar-meta .tr-note {
  font-style: italic;
  letter-spacing: 0.3px;
}
/* body.dark-mode div would make it full white - keep it as muted as the dates on the news cards */
body.dark-mode .ar-meta {
  color: var(--card-text-muted);
}
.ar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 1px;
}
.ar-brand img {
  width: auto;
  height: 26px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #fff;
}

/* whole photo, centred, never taller than the screen */
.ar-hero {
  display: flex;
  justify-content: center;
  margin: 32px 0 14px;
}
.ar-hero img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
}
.ar-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* 8 photos = 2 rows of 4 */
  gap: 10px;
  margin-bottom: 36px;
}
.ar-gallery:empty {
  display: none;
}
.ar-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s ease;
}
.ar-gallery a:hover img {
  opacity: 0.85;
}

/* a comfortable reading width, as the text; photos may use the full 1000px */
.ar-foot {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .ar-hero {
    margin-top: 24px;
  }
  .ar-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .ar-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .ar-foot .share,
  .ar-foot .share > .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Brand page (client-details.tpl) ---------- */
.br-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0 32px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
/* the line in the middle: 32px under it too, as above it (a section's own top margin is 44px) */
.br-head + .section {
  margin-top: 32px;
}
/* press info in the same centred column as a news article (--measure: a readable line length) */
.br-note {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}
/* phones: the photos end 8px inside the page - the text too */
@media (max-width: 600px) {
  .br-note {
    max-width: none;
    padding: 0 8px;
  }
}
/* one press note after another: the same line as under the header, 32px on both sides */
.br-note-item + .br-note-item {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
/* exactly 32px above the line, and above the pdf button under the last note */
.br-note-item > :last-child {
  margin-bottom: 0;
}
.br-note .prose + .btn {
  margin-top: 32px;
}
.br-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
/* brand page: bigger than the shared 38px icon buttons */
.br-social .icon-btn {
  width: 46px;
  height: 46px;
  font-size: 1.25em;
}
.br-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.br-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 16px;
}
.br-videos iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-sm);
  background: #000;
}

/* brand news cards come from articles/homepage.tpl */
.section .article-grid {
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .br-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .br-actions .share,
  .br-actions .share > .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- 404 / 410 (404.tpl) ---------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 16px 72px;
  text-align: center;
}
.not-found-code {
  margin: 0;
  color: var(--card-text-muted);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  opacity: 0.5;
}
.not-found .lead {
  max-width: 46ch;
  margin: 12px 0 0;
}
/* the host name breaks at its hyphen otherwise */
.not-found-host {
  white-space: nowrap;
}
.not-found .hero-actions {
  justify-content: center;
  margin-top: 28px;
}

/* ---------- About page (showroom.tpl) ---------- */

/* intro: square photo next to the text, key figures and buttons - stacked on phones */
.ab-intro {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 40px;
  align-items: center;
}
.ab-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1; /* the full photo opens in the lightbox */
  object-fit: cover;
  border-radius: var(--radius);
}
.ab-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.ab-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* box from .card */
.ab-facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
}
.ab-fact-num {
  font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem);
  font-weight: 300;
  line-height: 1.1;
}
.ab-facts .label {
  line-height: 1.5;
}

/* team */
.ab-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); /* two per row on desktop */
  gap: 24px;
  margin-top: 48px;
}

/* service areas - the offer page (offer.tpl); three in a row, a shorter last row centred (five: 3 + 2) */
.ab-areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.ab-areas > .ab-area {
  flex: 1 1 300px;
  max-width: calc((100% - 32px) / 3);
}
@media (max-width: 1000px) {
  .ab-areas > .ab-area {
    max-width: calc((100% - 16px) / 2);
  }
}
@media (max-width: 660px) {
  .ab-areas > .ab-area {
    max-width: 100%;
  }
}
/* box from .card */
.ab-area {
  line-height: 1.7;
}
.ab-area h2 {
  margin: 0 0 10px;
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 2px;
}
.ab-area p,
.ab-area li {
  text-align: start;
}

/* asking for a proposal - the end of the offer page */
.of-ask {
  max-width: 900px;
  margin: 48px auto 0;
  padding: 32px 40px;
  text-align: center;
}
.of-ask-title {
  margin: 0 0 10px;
  font-size: var(--fs-heading);
  font-weight: 400;
}
.of-ask-lead {
  max-width: 36rem;
  margin: 0 auto;
  line-height: 1.65;
  color: var(--card-text-muted);
  text-align: center;
}
.of-ask-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 36px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.15em;
}
.of-ask-contact li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.of-ask-contact i {
  opacity: 0.6;
}
.of-ask-contact a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.of-ask-contact a:hover {
  text-decoration-color: currentColor;
}
@media (max-width: 600px) {
  .of-ask {
    padding: 24px 20px;
  }
}

@media (max-width: 760px) { /* content breakpoint: intro and facts side by side need ~760px */
  .ab-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .ab-facts {
    grid-template-columns: 1fr 1fr;
  }
  .ab-facts li:last-child {
    grid-column: span 2;
  }
}

/* ---------- Legacy headings (.c-heading-with-bg) in the new style ---------- */
/* still used by contact, home sections, clients, events, celebrities, 404 */

h1.c-heading-with-bg,
h2.c-heading-with-bg.is-lg {
  margin: 8px 0 24px;
  font-size: var(--fs-title);
  font-weight: 400;
  line-height: 1.25;
}
h2.c-heading-with-bg {
  margin: 0 0 12px;
  font-size: var(--fs-heading);
  font-weight: 400;
  line-height: 1.35;
}
h3.c-heading-with-bg {
  margin: 0 0 8px;
  font-size: 1em;
  font-weight: 400;
}
/* a heading used as a link ("pokaż więcej", 404 back link): outlined pill */
a > h3.c-heading-with-bg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.9em;
  line-height: 1.3;
  transition: border-color 0.2s ease;
}
a:hover > h3.c-heading-with-bg {
  border-color: var(--pill-active-bg);
}

/* ---------- Contact page (contact.tpl) ---------- */
.ct-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px 56px;
  max-width: 900px;
  margin: 32px auto 0;
  padding: 36px 40px;
}
.ct-logo {
  display: block;
  width: 220px;
  height: auto;
}
.ct-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ct-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1.5;
  text-align: start;
}
.ct-list i {
  width: 18px;
  text-align: center;
  opacity: 0.6;
}
.ct-list a {
  overflow-wrap: anywhere;
}
.ct-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.ct-team {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); /* 5 per row on desktop */
  gap: 28px 20px;
}

@media (max-width: 760px) { /* content breakpoint: logo and details side by side need ~760px */
  .ct-card {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 28px 22px;
  }
  .ct-logo {
    width: 180px;
  }
  .ct-actions {
    justify-content: center;
  }
  .ct-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
}
