/* Redesigned home page (dark product hero, finder, stats, application tiles, category carousel).
   Loaded after the other stylesheets; catalogue, dialogs and contact keep their base styles. */
:root {
  --x-night: #17191b;
  --x-graphite: #232629;
  --x-steel: #393c40;
  --x-text-light: #f3f1ec;
  --x-muted-light: #a9aeaf;
  --x-ease: cubic-bezier(.2, .7, .1, 1);
}

/* Header: transparent over the hero, solid after scrolling */
.has-x-hero .utility-bar { display: none; }
.has-x-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; transition: background .35s, border-color .35s, box-shadow .35s; }
.has-x-hero .site-header:not(.is-solid) { color: var(--x-text-light); }
.has-x-hero .site-header:not(.is-solid) .language-switch button { color: #8f9597; }
.has-x-hero .site-header:not(.is-solid) .language-switch button[aria-pressed=true] { color: #fff; }
.has-x-hero .site-header:not(.is-solid) .inquiry-toggle { background: #ffffff10; border-color: #ffffff2e; color: #fff; }
.has-x-hero .site-header:not(.is-solid) .menu-toggle span { background: #fff; }
.has-x-hero .site-header:not(.is-solid) .mobile-nav { background: var(--x-night); border-top-color: #ffffff1a; }
.has-x-hero .site-header.is-solid { background: rgba(255, 255, 255, .94); border-bottom-color: #e8e5de; backdrop-filter: blur(14px); box-shadow: 0 10px 30px #0000000d; }
.logo-on-dark { display: none; }
.has-x-hero .site-header:not(.is-solid) .logo-on-light { display: none; }
.has-x-hero .site-header:not(.is-solid) .logo-on-dark { display: block; }
.has-x-hero .header-inner { height: 86px; }

/* Hero */
.x-hero {
  position: relative; min-height: max(680px, 100svh); color: var(--x-text-light); overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse 70% 80% at 72% 48%, #45484c 0%, #2b2e31 42%, var(--x-night) 100%);
  display: flex; align-items: center;
}
.x-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse 60% 60% at 70% 50%, #000, transparent 75%); }
.x-hero-stage { position: absolute; z-index: -1; right: max(-4vw, -60px); top: 50%; width: min(64vw, 900px); aspect-ratio: 1; transform: translateY(-46%); }
.x-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s var(--x-ease); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 38%, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000 38%, transparent 70%); }
.x-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) rotate(-2deg); transition: transform 7.5s linear; filter: contrast(1.06) saturate(1.05); }
.x-slide.is-active { opacity: 1; }
.x-slide.is-active img { transform: scale(1) rotate(0); }
.x-arc { position: absolute; inset: 6%; width: 88%; height: 88%; fill: none; pointer-events: none; transform: rotate(-120deg); }
.x-arc circle { stroke: var(--orange); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1700; stroke-dashoffset: 1700; animation: x-draw 2.6s .4s var(--x-ease) forwards, x-spin 60s linear 3s infinite; transform-origin: 50% 50%; }
.x-arc .x-arc-thin { stroke: #ffffff26; stroke-width: 1; stroke-dasharray: 4 10; animation: x-spin 90s linear infinite reverse; stroke-dashoffset: 0; }
@keyframes x-draw { to { stroke-dashoffset: 1060; } }
@keyframes x-spin { to { transform: rotate(360deg); } }

.x-hero-inner { position: relative; padding: 150px 0 120px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px; min-height: inherit; }
.x-hero-copy { max-width: 980px; align-self: center; container-type: inline-size; }
/* Darkens the photo behind the headline so the outlined line stays readable */
.x-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, #17191be6 0%, #17191bb3 36%, #17191b00 64%); }
.x-kicker { display: flex; align-items: center; gap: 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #d8d3c9; margin: 0 0 28px; }
.x-kicker-line { width: 44px; height: 2px; background: var(--orange); }
.x-title { font-size: clamp(34px, 5.2vw, 84px); font-size: clamp(34px, calc(97cqi / var(--x-line-em, 11.8)), 112px); line-height: .94; letter-spacing: -.045em; font-weight: 700; text-transform: uppercase; margin: 0 0 22px; }
.x-line { display: block; overflow: hidden; padding-bottom: .14em; } /* room for the descenders of Д, Ц, Щ */
.x-line > span { display: inline-block; animation: x-rise 1.1s var(--x-ease) both; }
.x-line + .x-line > span { animation-delay: .14s; }
.x-line-accent > span { color: transparent; -webkit-text-stroke: 1.5px var(--x-text-light); padding-bottom: .16em; background: linear-gradient(90deg, var(--orange), var(--orange)) no-repeat 0 100% / 0 .07em; animation: x-rise 1.1s .14s var(--x-ease) both, x-underline 1s 1.1s var(--x-ease) forwards; }
@keyframes x-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes x-underline { to { background-size: 100% .07em; } }
.x-lead { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: #c5c8c6; max-width: 520px; margin: 0 0 38px; animation: x-fade 1s .5s both; }
.x-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: x-fade 1s .7s both; }
@keyframes x-fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.x-button { position: relative; display: inline-flex; align-items: center; gap: 22px; min-height: 54px; padding: 0 26px; font-size: 14px; font-weight: 700; letter-spacing: .02em; border-radius: 2px; overflow: hidden; isolation: isolate; transition: color .3s, border-color .3s, transform .3s var(--x-ease); }
.x-button > span[aria-hidden=true] { font-size: 19px; transition: transform .3s var(--x-ease); }
.x-button:hover > span[aria-hidden=true] { transform: translateX(5px); }
.x-button::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--x-ease); }
.x-button:hover::before { transform: scaleX(1); transform-origin: left; }
.x-button-primary { background: var(--orange); color: #1b1d1f; }
.x-button-primary::before { background: #fff; }
.x-button-ghost { border: 1px solid #ffffff40; color: #fff; }
.x-button-ghost::before { background: #ffffff14; }
.x-button-outline-light { border: 1px solid #ffffff33; color: #fff; margin-top: 44px; }
.x-button-outline-light::before { background: var(--orange); }
.x-button-outline-light:hover { color: #1b1d1f; }

.x-slide-caption { justify-self: end; text-align: right; min-width: 230px; animation: x-fade 1s .9s both; }
.x-slide-brand { margin: 0 0 6px; font-size: 11px; letter-spacing: .2em; color: var(--orange); font-weight: 700; }
.x-slide-name { background: none; border: 0; padding: 0; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.01em; text-transform: uppercase; }
.x-slide-name:hover { color: var(--orange); }
.x-progress { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.x-progress button { width: 46px; height: 14px; padding: 6px 0; border: 0; background: none; }
.x-progress button span { display: block; height: 2px; background: #ffffff33; position: relative; overflow: hidden; }
.x-progress button span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.x-progress button.is-done span::after { transform: scaleX(1); }
.x-progress button.is-active span::after { animation: x-progress 6.5s linear forwards; }
@keyframes x-progress { to { transform: scaleX(1); } }

/* Finder (glass panel) */
.x-finder { position: absolute; z-index: 3; right: max(24px, calc((100vw - var(--container, 1240px)) / 2)); top: 132px; width: 300px; padding: 18px 20px 6px; border-radius: 18px; background: #ffffffe6; color: #1d2023; box-shadow: 0 30px 80px #0000004d; backdrop-filter: blur(18px); animation: x-fade 1s 1.1s both; }
.x-finder-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.x-finder-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.x-finder-icon svg { width: 26px; height: 26px; fill: none; stroke: #1d2023; stroke-width: 1.6; }
.x-finder input { width: 100%; margin: 12px 0 10px; height: 42px; border: 1px solid #d9d6cf; border-radius: 10px; padding: 0 14px; font-size: 14px; background: #fff; }
.x-finder input:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.x-finder-results { list-style: none; margin: 0 0 10px; padding: 0; max-height: 300px; overflow: auto; }
.x-finder-results button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 7px 8px; }
.x-finder-results button:hover, .x-finder-results button:focus-visible { background: #f2efe8; }
.x-finder-results strong { display: block; font-size: 13px; line-height: 1.25; }
.x-finder-results small { font-size: 11px; color: #73787a; }
.x-hit-img { flex: 0 0 40px; height: 40px; border-radius: 8px; background: #ecebe6; overflow: hidden; }
.x-hit-img img { width: 100%; height: 100%; object-fit: cover; }
.x-hit-empty { font-size: 12px; color: #73787a; padding: 6px 8px 10px; }
.x-finder-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #e3e0d9; padding: 14px 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.x-finder-dial { width: 26px; height: 26px; border: 1.6px solid #1d2023; border-radius: 50%; position: relative; transition: transform .5s var(--x-ease); }
.x-finder-dial::after { content: ""; position: absolute; left: 50%; top: 3px; width: 1.6px; height: 9px; background: #1d2023; transform-origin: 50% 100%; transform: translateX(-50%) rotate(30deg); }
.x-finder-link:hover .x-finder-dial { transform: rotate(120deg); }

.x-scroll { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 1.5px solid #ffffff59; border-radius: 14px; transform: translateX(-50%); }
.x-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px; background: var(--orange); transform: translateX(-50%); animation: x-scroll 1.8s infinite; }
@keyframes x-scroll { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* Stats + marquee */
.x-stats { background: var(--x-night); color: var(--x-text-light); padding: 70px 0 0; border-top: 1px solid #ffffff12; }
.x-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.x-stat { padding: 0 28px 54px; border-left: 1px solid #ffffff1a; }
.x-stat:first-child { border-left: 0; padding-left: 0; }
.x-stat strong { font-size: clamp(48px, 5.4vw, 78px); line-height: 1; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.x-plus { font-size: clamp(30px, 3vw, 44px); color: var(--orange); font-weight: 700; vertical-align: top; margin-left: 2px; }
.x-stat p { margin: 12px 0 0; font-size: 13px; color: var(--x-muted-light); letter-spacing: .02em; }
.x-marquee { overflow: hidden; border-top: 1px solid #ffffff12; padding: 26px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.x-marquee-track { display: flex; align-items: center; gap: 46px; width: max-content; animation: x-marquee 38s linear infinite; }
.x-marquee-track span { font-size: clamp(24px, 3vw, 40px); font-weight: 800; font-style: italic; letter-spacing: -.03em; color: #ffffff2e; -webkit-text-stroke: 0; white-space: nowrap; transition: color .3s; }
.x-marquee-track span:hover { color: #fff; }
.x-marquee-track i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }
@keyframes x-marquee { to { transform: translateX(-50%); } }

/* Section headings */
.x-heading { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.x-heading h2 { display: inline-block; font-size: clamp(32px, 4vw, 58px); line-height: 1.02; letter-spacing: -.04em; text-transform: uppercase; font-weight: 700; margin: 0 0 20px; padding-bottom: 10px; background: linear-gradient(var(--orange), var(--orange)) no-repeat 50% 100% / 0 3px; transition: background-size 1s .3s var(--x-ease); }
.x-heading.is-in h2, html:not(.x-motion) .x-heading h2 { background-size: 100% 3px; }
.x-heading p { font-size: 16px; line-height: 1.7; color: var(--muted); margin: 0 auto; max-width: 560px; }
.x-heading-light h2 { color: #fff; }
.x-heading-light p { color: var(--x-muted-light); }

/* Applications: coloured tiles with photo reveal */
.x-apps { padding: 120px 0; background: #fff; }
.x-app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.x-app { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 300px; padding: 26px 28px 24px; text-align: left; color: #fff; border: 0; border-radius: 4px; overflow: hidden; isolation: isolate; background: var(--app); transition: transform .5s var(--x-ease), box-shadow .5s; }
.x-app-img { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; opacity: 0; transform: scale(1.15); transition: opacity .6s, transform 1.2s var(--x-ease); }
.x-app-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--app) 55%, transparent), color-mix(in srgb, var(--app) 92%, #000)); }
.x-app:hover, .x-app:focus-visible { transform: translateY(-6px); box-shadow: 0 26px 50px #0000002e; }
.x-app:hover .x-app-img, .x-app:focus-visible .x-app-img { opacity: 1; transform: scale(1); }
.x-app-num { font-size: 12px; font-weight: 700; letter-spacing: .16em; opacity: .7; }
.x-app-title { margin-top: auto; font-size: clamp(22px, 2vw, 28px); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; text-transform: uppercase; }
.x-app-desc { margin-top: 10px; font-size: 14px; line-height: 1.55; opacity: .82; max-width: 320px; }
.x-app-foot { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 16px; border-top: 1px solid #ffffff38; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.x-app-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #ffffff66; display: grid; place-items: center; font-size: 17px; transition: background .3s, color .3s, transform .4s var(--x-ease); }
.x-app:hover .x-app-arrow { background: #fff; color: var(--app); transform: rotate(-45deg); }

/* Category carousel on dark */
.x-cats { background: var(--x-graphite); padding: 120px 0 110px; text-align: center; }
.x-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, calc((100% - 60px) / 4)); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 10px; text-align: left; }
.x-carousel::-webkit-scrollbar { display: none; }
.x-cat { scroll-snap-align: start; background: none; border: 0; padding: 0; color: #fff; text-align: center; }
.x-cat-img { display: block; aspect-ratio: 1; border-radius: 3px; overflow: hidden; background: #2f3337; }
.x-cat-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) brightness(.88); transform: scale(1.02); transition: transform .9s var(--x-ease), filter .6s; }
.x-cat:hover .x-cat-img img, .x-cat:focus-visible .x-cat-img img { transform: scale(1.1); filter: none; }
.x-cat-name { display: block; margin-top: 18px; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.x-cat-count { display: block; margin-top: 4px; font-size: 12px; color: var(--x-muted-light); }
.x-carousel-controls { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.x-arrow { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid #ffffff38; background: none; color: #fff; font-size: 18px; transition: background .3s, color .3s; }
.x-arrow:hover { background: var(--orange); border-color: var(--orange); color: #1b1d1f; }
.x-carousel-bar { flex: 1; height: 2px; background: #ffffff1f; overflow: hidden; }
.x-carousel-bar span { display: block; height: 100%; background: var(--orange); transition: transform .2s; }

/* Catalogue: centred heading like the other sections; applications as tabs side by side above the grid */
.x-catalog-note { margin-top: 2px; }
.catalog-section .catalog-layout { display: block; }
.catalog-section .catalog-sidebar { position: static; margin: 0 0 28px; }
.catalog-section #catalog-navigation > summary, .catalog-section .catalog-nav-label, .catalog-section .catalog-breadcrumb { display: none; }
#application-navigation { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; margin-inline: auto; } /* home.js balances the rows when the tabs wrap */
.catalog-section .application-filter { width: auto; min-height: 44px; padding: 0 6px 0 16px; gap: 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .25s, border-color .25s, color .25s, transform .25s var(--x-ease); }
.catalog-section .application-filter:hover { border-color: var(--ink); background: #fff; transform: translateY(-1px); }
.catalog-section .application-filter[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.catalog-section .filter-count { min-width: 28px; height: 28px; padding: 0 7px; border-radius: 14px; display: inline-grid; place-items: center; background: var(--paper); color: var(--muted); font-size: 12px; font-weight: 700; }
.catalog-section .application-filter[aria-pressed=true] .filter-count { background: var(--orange); color: var(--ink); }
.catalog-section .catalog-sidebar .category-filters { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 26px; padding: 14px 0 0; margin: 0; border: 0; }
.catalog-section .catalog-sidebar .category-filters p { margin: 0; font-size: 12px; }
.catalog-section .catalog-sidebar .category-filter { min-height: 44px; padding: 10px 2px; border-bottom: 2px solid transparent; }
.catalog-section .catalog-sidebar .category-filter[aria-pressed=true] { color: var(--ink); border-bottom-color: var(--orange); }
.catalog-section .catalog-context { text-align: center; max-width: 620px; margin: 0 auto 26px; }
.catalog-section .catalog-tools { justify-content: center; }
.catalog-section .catalog-content .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.catalog-section .catalog-footer { justify-content: center; }
.catalog-section .catalog-footer p { display: none; } /* "selected families for this design version" no longer applies: the CMS holds the full catalogue */

/* Contact: two equal columns that end level; contact tiles, a compact dark map that fills the
   remaining height of the left column, and a form with paired fields */
.contact-section { padding: 110px 0; background: #1d2023; }
.contact-section .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: stretch; }
.x-contact-info { display: flex; flex-direction: column; min-width: 0; }
.contact-section .eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.contact-section .eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--orange); }
.contact-section h2 { font-size: clamp(32px, 3.3vw, 48px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; text-transform: uppercase; margin: 0 0 20px; }
.contact-section .contact-description { font-size: 16px; line-height: 1.75; color: var(--x-muted-light); max-width: 520px; margin: 0 0 30px; }
.x-contact-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 12px; margin-bottom: 12px; }
.x-contact-tile { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 16px 16px 16px 18px; border: 1px solid #ffffff14; border-radius: 12px; background: #ffffff08; color: #fff; transition: background .3s, border-color .3s, transform .3s var(--x-ease); }
.x-contact-tile:hover, .x-contact-tile:focus-visible { background: #ffffff0f; border-color: #ffffff30; transform: translateY(-2px); }
.x-contact-tile-wide { grid-column: 1 / -1; }
.x-tile-icon { flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #f5a6231f; color: var(--orange); }
.x-tile-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.x-tile-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.x-tile-text small { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--x-muted-light); }
.x-tile-text strong { font-size: 16px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.contact-section .x-tile-text address { font-size: 15px; line-height: 1.5; font-style: normal; color: #fff; }
.x-tile-arrow { flex: none; margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ffffff26; display: grid; place-items: center; color: var(--orange); transition: transform .35s var(--x-ease), background .3s, color .3s, border-color .3s; }
.x-contact-tile:hover .x-tile-arrow, .x-contact-tile:focus-visible .x-tile-arrow { background: var(--orange); border-color: var(--orange); color: #1b1d1f; transform: translate(2px, -2px); }
.contact-section .contact-map { position: relative; flex: 1 1 220px; min-height: 220px; max-height: 380px; max-width: none; margin: 0; border: 1px solid #ffffff14; border-radius: 12px; overflow: hidden; background: #24282c; }
.contact-section .contact-map-canvas { position: absolute; inset: 0; height: auto; background: #24282c; }
/* Dark map to match the section: invert the light Google tiles and turn the hues back */
.contact-section .contact-map-canvas iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95) contrast(.95); }
.contact-section .contact-map-overlay { inset: 0; }
.contact-section .contact-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; align-content: start; padding: 34px; border: 1px solid #ffffff14; border-radius: 14px; background: #262a2e; }
.contact-form > * { grid-column: 1 / -1; }
/* Paired fields: name | email, phone + callback | date needed */
.contact-form > label:nth-of-type(1) { grid-column: 1; }
.contact-form > label:nth-of-type(2) { grid-column: 2; }
.contact-form > .contact-phone-group { grid-column: 1; margin-bottom: 21px; }
.contact-form > .required-date-field { grid-column: 2; }
.contact-section .form-heading h3 { font-size: 22px; font-weight: 700; }

/* Sending the enquiry (app.js): error with the email fallback, confirmation with the reference number */
.contact-form button[type=submit][aria-busy=true] { opacity: .75; cursor: progress; transform: none; }
.contact-form .form-alert { margin: 16px 0 0; padding: 16px 18px; border: 1px solid #ffaf9159; border-radius: 10px; background: #ffaf9112; color: #fff; }
.form-alert p { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.form-alert-fallback { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px; border: 1px solid #ffffff4d; border-radius: 999px; background: none; color: #fff; font-size: 14px; font-weight: 700; transition: border-color .25s, background .25s; }
.form-alert-fallback:hover, .form-alert-fallback:focus-visible { border-color: #fff; background: #ffffff12; }
.form-alert small { display: block; margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--x-muted-light); }
.contact-form.is-sent > :not(.form-success) { display: none; }
.form-success { padding: 8px 0 4px; outline: none; }
.form-success-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 50%; background: #f5a62326; color: var(--orange); font-size: 24px; font-weight: 700; }
.form-success h3 { margin: 0 0 18px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.form-success-reference { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 16px; padding: 14px 16px; border: 1px solid #ffffff1f; border-radius: 10px; background: #ffffff08; }
.form-success-reference span { font-size: 13px; color: var(--x-muted-light); }
.form-success-reference strong { font-size: 20px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: #fff; }
.form-success p:not(.form-success-reference) { margin: 0 0 24px; font-size: 15px; line-height: 1.7; color: #d1d5d0; overflow-wrap: anywhere; }
.form-success-new { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 20px; border: 1px solid #ffffff4d; border-radius: 999px; background: none; color: #fff; font-size: 14px; font-weight: 700; transition: border-color .25s, background .25s; }
.form-success-new:hover, .form-success-new:focus-visible { border-color: var(--orange); background: #f5a6231a; }
/* Further sizes of a product in the enquiry list and quantity dialog */
.inquiry-add-size { display: inline-block; margin-top: 10px; padding: 4px 0; border: 0; background: none; color: var(--accent-ink); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.inquiry-add-size:hover { color: var(--ink); }
.request-in-list { margin: 0 0 18px; padding: 12px 14px; border-radius: 6px; background: var(--surface); font-size: 13px; line-height: 1.6; }
.request-open-list { padding: 0; border: 0; background: none; color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Map consent: the Google map loads only after the visitor agrees (consent.js) */
.x-map-consent { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; gap: 16px; padding: 20px 22px; color: #fff; background: radial-gradient(circle at 18% 30%, #f5a62314, transparent 55%), repeating-linear-gradient(0deg, #ffffff06 0 1px, transparent 1px 32px), repeating-linear-gradient(90deg, #ffffff06 0 1px, transparent 1px 32px), #24282c; }
.contact-map.is-loaded .x-map-consent { display: none; }
.contact-map:not(.is-loaded) .contact-map-overlay { display: none; }
.x-map-consent-icon { flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #f5a6231f; color: var(--orange); }
.x-map-consent-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.x-map-consent-body { min-width: 0; }
.x-map-consent-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.x-map-consent-text { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: var(--x-muted-light); max-width: 440px; }
.x-map-consent-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.x-map-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.x-map-consent-load { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--orange); color: #1b1d1f; font-size: 13px; font-weight: 700; transition: background .25s, transform .25s var(--x-ease); }
.x-map-consent-load:hover { background: #fff; transform: translateY(-1px); }
.x-map-consent-remember { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--x-muted-light); cursor: pointer; }
.x-map-consent-remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--orange); }

/* Privacy settings dialog (footer link "Cookie settings") */
.x-footer-link { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: right; cursor: pointer; }
.x-footer-link:hover { color: var(--orange); }
.x-privacy-dialog { width: 560px; padding: 28px; border-radius: 14px; }
.x-privacy-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; padding-right: 36px; }
.x-privacy-head h2 { font-size: 24px; letter-spacing: -.03em; margin: 0; }
.x-privacy-head .dialog-close { top: 22px; right: 22px; }
.x-privacy-intro { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 0 0 18px; }
.x-privacy-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); cursor: default; }
label.x-privacy-row { cursor: pointer; }
.x-privacy-row strong { font-size: 15px; }
.x-privacy-row p { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }
.x-privacy-always { flex: none; font-size: 12px; font-weight: 700; color: var(--accent-ink); }
.x-switch { appearance: none; flex: none; position: relative; width: 46px; height: 26px; margin: 0; border-radius: 13px; background: #cfccc4; cursor: pointer; transition: background .25s; }
.x-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .25s var(--x-ease); }
.x-switch:checked { background: var(--orange); }
.x-switch:checked::after { transform: translateX(20px); }
.x-switch:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
.x-privacy-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.x-privacy-actions a { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.x-privacy-save { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.x-privacy-save:hover { background: #000; }

/* Legal pages (privacy.html) */
.x-legal-page .site-header { position: sticky; }
.x-legal { max-width: 780px; padding: 70px 0 100px; }
.x-legal h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.04em; text-transform: uppercase; font-weight: 700; margin: 0 0 14px; }
.x-legal .x-legal-date { color: var(--muted); font-size: 14px; margin: 0 0 40px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.x-legal h2 { font-size: 22px; letter-spacing: -.02em; margin: 40px 0 12px; }
.x-legal h3 { font-size: 17px; margin: 26px 0 8px; }
.x-legal p, .x-legal li { font-size: 16px; line-height: 1.75; color: #3a3f42; }
.x-legal ul { padding-left: 20px; }
.x-legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.x-legal-back { font-size: 14px; font-weight: 600; }
.x-legal-back:hover { color: var(--accent-ink); }

/* Pause control for the slideshow and moving brand band (WCAG 2.2.2) */
.x-slide-controls { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; }
.x-slide-controls .x-progress { margin-top: 0; }
.x-pause { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px 0 11px; border: 1px solid #ffffff38; border-radius: 999px; background: #ffffff0d; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; transition: border-color .25s, background .25s; }
.x-pause:hover, .x-pause:focus-visible { border-color: #fff; background: #ffffff1a; }
.x-pause i { width: 9px; height: 10px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.x-paused .x-pause i { width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent currentColor; }
.x-paused .x-progress button.is-active span::after, .x-paused .x-marquee-track, .x-paused .x-arc circle, .x-paused .x-scroll span, .x-marquee:hover .x-marquee-track { animation-play-state: paused; }

/* Readability: explanatory texts were 12–13 px */
.product-description { font-size: 14px; line-height: 1.55; }
.catalog-section .catalog-context { font-size: 15px; }
.contact-section .callback-hint, .contact-section .required-date-field small, .contact-section .form-note { font-size: 14px; line-height: 1.6; }
.x-form-legal { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: #fff; }
.x-form-legal a { color: var(--x-muted-light); text-decoration: underline; text-underline-offset: 3px; }
.x-form-legal a:hover { color: #fff; }
.site-footer .footer-main > p, .site-footer .footer-navigation { font-size: 14px; }
.site-footer .footer-bottom { font-size: 12px; }

/* Catalogue, company, contact: lighter polish */
.catalog-section { padding-top: 110px; }
.product-card { border-radius: 4px; transition: transform .45s var(--x-ease), box-shadow .45s; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 22px 44px #1a1d1f1a; }
.product-image-area img { transition: transform .8s var(--x-ease); }
.product-card:hover .product-image-area img { transform: scale(1.08); }

/* Scroll reveal (only when home.js enabled motion) */
.x-motion .x-reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--x-ease) var(--delay, 0s), transform .9s var(--x-ease) var(--delay, 0s); }
.x-motion .x-reveal.is-in { opacity: 1; transform: none; }
.x-motion .x-app.x-reveal { transition: opacity .9s var(--x-ease) var(--delay, 0s), transform .9s var(--x-ease) var(--delay, 0s), box-shadow .5s; }
.x-motion .x-app.x-reveal.is-in:hover { transform: translateY(-6px); }

@media (max-width: 1100px) {
  .x-finder { display: none; }
  .x-app-grid { grid-template-columns: repeat(2, 1fr); }
  .x-hero-stage { width: 80vw; right: -18vw; opacity: .75; }
}
@media (max-width: 1100px) {
  .catalog-section .catalog-content .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1179px) {
  /* Contact stacks: info and map full width above the form */
  .contact-section .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .x-contact-tile-wide { grid-column: auto; }
  .contact-section .contact-map { flex: none; height: 280px; max-height: none; }
}
@media (max-width: 900px) {
  .x-contact-tile-wide { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .contact-section .contact-map:not(.is-loaded) { height: 300px; }
  .x-map-consent { align-items: flex-start; flex-direction: column; gap: 12px; }
  .x-privacy-dialog { padding: 22px 18px; }
  .contact-section { padding: 70px 0; }
  .contact-section .contact-map { height: 220px; }
  .contact-section .contact-form { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .contact-form > label:nth-of-type(1), .contact-form > label:nth-of-type(2), .contact-form > .contact-phone-group, .contact-form > .required-date-field { grid-column: 1; }
}
@media (max-width: 860px) {
  .catalog-section .catalog-content .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* Tablet portrait: one column so the headline gets the full width */
  .x-hero-inner { grid-template-columns: 1fr; }
  .x-slide-caption { justify-self: start; text-align: left; }
  .x-progress, .x-slide-controls { justify-content: flex-start; }
}
@media (max-width: 760px) {
  /* Application tabs: one swipeable row instead of several wrapped lines */
  #application-navigation { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin: 0 -20px; padding: 2px 20px 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 32px), transparent); }
  #application-navigation::-webkit-scrollbar { display: none; }
  .catalog-section .application-filter { flex: none; scroll-snap-align: start; }
  .catalog-section .catalog-sidebar .category-filters { justify-content: flex-start; gap: 0 20px; }
  .has-x-hero .header-inner { height: 72px; }
  .x-hero { min-height: 100svh; align-items: flex-end; }
  .x-hero-stage { width: 120vw; right: -38vw; top: 30%; opacity: .6; }
  .x-hero-inner { grid-template-columns: 1fr; padding: 120px 0 90px; }
  .x-title { font-size: clamp(34px, 11vw, 52px); font-size: clamp(32px, calc(97cqi / var(--x-word-em, 6.8)), 64px); }
  .x-hero::before { background: linear-gradient(0deg, #17191bf2 0%, #17191bb3 50%, #17191b40 100%); }
  .x-slide-caption { justify-self: start; text-align: left; }
  .x-progress { justify-content: flex-start; }
  .x-actions .x-button { flex: 1 1 auto; justify-content: space-between; }
  .x-stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .x-stat { padding: 0 0 0 18px; }
  .x-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .x-stats { padding-top: 50px; }
  .x-stats-grid { padding-bottom: 44px; }
  .x-apps, .x-cats { padding: 80px 0; }
  .x-app-grid { grid-template-columns: 1fr; }
  .x-app { min-height: 230px; }
  .x-app-img { opacity: .55; transform: none; }
  .x-carousel { grid-auto-columns: 72%; }
  .x-scroll { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .x-hero *, .x-marquee-track { animation: none !important; transition: none !important; }
  .x-line-accent > span { background-size: 100% .07em; }
  .x-arc circle { stroke-dashoffset: 1060; }
  .x-slide img { transform: none; }
}
