/* ============================================
   SURFACHEM: LAYOUT + COMPONENTS
   Colours, fonts, radii and shadows come from tokens in themes.css.
   Direction (ui-ux-pro-max): Trust & Authority, accessible B2B catalog:
   visible focus, 44px targets, 4.5:1 text, reduced-motion respected.
   ============================================ */

:root {
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --radius: 14px;
    --radius-sm: 10px;
    --header-h: 72px;
    --section-y: clamp(56px, 8vw, 96px);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --dur: 200ms;
    --font-sys: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    --fs-h1: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
    --fs-h2: clamp(1.6rem, 1.2rem + 1.7vw, 2.4rem);
    --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-main);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--color-text);
    text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
img, svg { max-width: 100%; }

.container {
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Accessibility primitives ---------- */
:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.hero, .page-header, .cta { --color-focus: var(--focus-on-hero, #fff); }
.footer { --color-focus: #fff; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 2000;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-weight: 600;
    text-decoration: none;
    transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.icon--sm { width: 1.125rem; height: 1.125rem; }

/* ---------- Header ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow var(--dur) var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-md); }

.header__bar {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: none;
    padding: 4px 8px;
    margin-left: -8px;
    border-radius: var(--radius-sm);
    background: var(--logo-bg);
    text-decoration: none;
}
.logo__img { display: block; height: 48px; width: auto; max-width: 100%; object-fit: contain; }

.nav { margin-left: auto; }

.nav__list {
    display: flex;
    gap: 4px;
    list-style: none;
}

.nav__list a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    min-height: 44px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    text-decoration: none;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__list a:hover { background: var(--color-bg-alt); color: var(--color-text); }
.nav__list a[aria-current="page"] {
    background: var(--color-primary);
    color: var(--color-on-primary);
}

.header__actions { display: flex; align-items: center; gap: 10px; }

/* Phone */
.header__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
    color: var(--color-text);
    text-decoration: none;
    transition: background var(--dur) var(--ease);
}
.header__phone .icon { color: var(--color-accent-text); }
.header__phone:hover { background: var(--color-bg-alt); }

/* Language switch */
.lang {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-card);
}
.lang a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 38px;
    padding: 0 10px;
    border-radius: calc(var(--radius-sm) - 3px);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang a:hover { color: var(--color-text); background: var(--color-bg-alt); }
.lang a[aria-current="true"] { background: var(--color-primary); color: var(--color-on-primary); }

/* Burger */
.menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-card);
    color: var(--color-text);
    cursor: pointer;
}
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font: 600 0.9375rem/1.2 var(--font-main);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
                color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn--primary {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-on-accent);
}
.btn--primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.btn--primary:active { transform: none; box-shadow: none; }

/* On a coloured hero / CTA */
.btn--outline {
    background: transparent;
    border-color: var(--hero-line);
    color: var(--hero-fg);
}
.btn--outline:hover { background: var(--hero-card-bg); border-color: var(--hero-fg); }

/* On a plain surface */
.btn--ghost {
    background: transparent;
    border-color: var(--color-border-strong);
    color: var(--color-text);
}
.btn--ghost:hover { border-color: var(--color-text); background: var(--color-bg-alt); }

.btn--large { min-height: 56px; padding: 16px 40px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    color: var(--color-accent-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
}
.text-link:hover { text-decoration-thickness: 3px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 9vw, 112px) 0 calc(clamp(56px, 9vw, 112px) + clamp(36px, 5.5vw, 84px));
    /* catalog photo under a tinted overlay; the plain gradient is the fallback if the image is missing */
    background: var(--hero-overlay), url('../images/photos/hero.jpg') center 40% / cover no-repeat, var(--hero-gradient);
    color: var(--hero-fg);
}

/* Wave divider from the catalog cover: graphite band, then the next section's colour */
.hero__wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 1;
    display: block;
    width: 100%;
    height: clamp(44px, 6.5vw, 100px);
    pointer-events: none;
}
.hero__wave .w1 { fill: var(--hero-wave); }
.hero__wave .w2 { fill: var(--color-bg-alt); }

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -8%;
    width: 640px;
    height: 640px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hero-glow) 0%, transparent 68%);
    pointer-events: none;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--hero-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-grid) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 75% 30%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 90% at 75% 30%, #000 0%, transparent 75%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid var(--hero-card-border);
    border-radius: 999px;
    background: var(--hero-card-bg);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
}

.hero h1 {
    margin-bottom: 20px;
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.12;
    color: var(--hero-fg);
}

.hero__subtitle {
    max-width: 52ch;
    margin-bottom: 36px;
    font-size: var(--fs-lead);
    line-height: 1.7;
    color: var(--hero-fg-muted);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats { display: grid; gap: 14px; }

.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 20px 26px;
    border: 1px solid var(--hero-card-border);
    border-radius: var(--radius);
    background: var(--hero-card-bg);
    color: var(--hero-fg);
    text-decoration: none;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.stat-card__title {
    font-family: var(--font-heading);
    font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.25rem);
    font-weight: 700;
    line-height: 1.3;
}
.stat-card .icon { transition: transform var(--dur) var(--ease); }
.stat-card:hover { border-color: var(--hero-fg); }
.stat-card:hover .icon { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--color-bg-alt); }

.section-head { max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }

.section-title {
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head .section-title { margin-bottom: 12px; }
.section-lead { font-size: var(--fs-lead); color: var(--color-text-light); }

.section-actions { margin-top: clamp(28px, 4vw, 48px); text-align: center; }

/* ---------- Cards (shared surface) ---------- */
.priority-card,
.tech-card,
.chem-card,
.news-card,
.contact-form,
.catalog-sidebar {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.icon-tile {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: calc(var(--radius) - 2px);
    background: var(--color-bg-alt);
    background: color-mix(in srgb, var(--color-accent-text) 12%, var(--color-card));
    color: var(--color-accent-text);
}
.icon-tile .icon { width: 1.625rem; height: 1.625rem; }

/* Priorities */
.priorities__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.priority-card {
    padding: 32px 26px;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.priority-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.priority-card .icon-tile { margin-bottom: 20px; }
.priority-card h3 { margin-bottom: 10px; font-size: 1.1875rem; font-weight: 700; }
.priority-card p { font-size: 0.9375rem; color: var(--color-text-light); line-height: 1.65; }

/* Products */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }

.tech-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    overflow: hidden;
    color: var(--color-text);
    text-decoration: none;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tech-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--color-accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 280ms var(--ease);
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--color-border-strong); }
.tech-card:hover::before, .tech-card:focus-visible::before { transform: scaleY(1); }

.tech-card h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.tech-card p { flex: 1; font-size: 0.9375rem; color: var(--color-text-light); line-height: 1.65; }

.tech-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; margin-top: 4px; }

.price {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-bg-alt);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-accent-text);
}

.tech-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent-text);
}
.tech-card__more .icon { transition: transform var(--dur) var(--ease); }
.tech-card:hover .tech-card__more .icon { transform: translateX(4px); }

/* Categories */
.chem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.home-technologies .chem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.home-technologies .tech-card__foot { flex-wrap: wrap; margin-top: auto; }

.chem-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    color: var(--color-text);
    text-decoration: none;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.chem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--color-border-strong); }
.chem-card h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.chem-card p { flex: 1; font-size: 0.9375rem; color: var(--color-text-light); line-height: 1.6; }
.chem-card__arrow { color: var(--color-accent-text); transition: transform var(--dur) var(--ease); }
.chem-card:hover .chem-card__arrow { transform: translateX(4px); }

.chem-card__media {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--hero-gradient);
    color: var(--hero-fg);
}
.chem-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.chem-card:hover .chem-card__media img { transform: scale(1.04); }
.chem-card__media .icon { width: 2.5rem; height: 2.5rem; stroke-width: 1.5; opacity: 0.9; }
.chem-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }

/* About preview */
.about-preview .container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}
.about-preview .section-title { text-align: left; margin-bottom: 20px; }
.about-preview__image {
    margin: 0;
    min-height: 320px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.about-preview__image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 320px;
    padding: 32px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    background-image: linear-gradient(135deg, transparent 0%, color-mix(in srgb, var(--color-accent) 14%, transparent) 100%);
    color: var(--color-text-muted);
    text-align: center;
}
.image-placeholder .icon { width: 64px; height: 64px; stroke-width: 1.25; color: var(--color-accent-text); }
.image-placeholder p { font-size: 0.9375rem; font-weight: 500; }

/* CTA */
.cta {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 9vw, 112px) 0;
    background: var(--cta-gradient);
    color: var(--hero-fg);
    text-align: center;
}
.cta::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -8%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hero-glow) 0%, transparent 68%);
    pointer-events: none;
}
.cta .container { position: relative; }
.cta h2 { margin-bottom: 14px; font-size: var(--fs-h2); font-weight: 700; color: var(--hero-fg); }
.cta p { max-width: 56ch; margin: 0 auto 36px; font-size: var(--fs-lead); color: var(--hero-fg-muted); }

/* ---------- Footer ---------- */
.footer {
    padding: clamp(48px, 7vw, 80px) 0 28px;
    background: var(--footer-bg);
    color: var(--footer-fg);
}
/* The footer is dark in every theme, so it carries the white version of the logo with no plate behind it */
.footer .logo { background: transparent; margin-left: 0; padding-left: 0; }

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.4fr;
    gap: clamp(32px, 5vw, 64px);
    margin-bottom: 48px;
}
.footer__col--about p { margin-top: 18px; max-width: 46ch; font-size: 0.9375rem; line-height: 1.7; }

.footer__title {
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.footer__col > a:not(.logo) {
    display: flex;
    align-items: center;
    min-height: 40px;
    color: var(--footer-fg);
    text-decoration: none;
    transition: color var(--dur) var(--ease);
}
.footer a:hover { color: #fff; }

.footer-contacts { display: grid; gap: 10px; list-style: none; }
.footer-contacts li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; line-height: 1.5; }
.footer-contacts .icon { width: 1.25rem; height: 1.25rem; margin-top: 2px; color: var(--footer-accent); }
.footer-contacts a { display: inline-flex; align-items: center; min-height: 28px; color: var(--footer-fg); text-decoration: none; }

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--footer-line);
    font-size: 0.875rem;
    text-align: center;
}

/* ---------- Inner pages ---------- */
.page-header {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 88px) 0;
    background: var(--hero-gradient);
    color: var(--hero-fg);
    text-align: center;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -6%;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hero-glow) 0%, transparent 68%);
    pointer-events: none;
}
.page-header--photo {
    /* background-image is set inline (see sf_page_header) so the photo path resolves from the page, not from css/ */
    background-size: auto, auto, cover, auto;
    background-position: 0 0, 0 0, center 45%, 0 0;
    background-repeat: no-repeat;
}
.page-header .container { position: relative; }
.page-header h1 { margin-bottom: 12px; font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3rem); font-weight: 800; line-height: 1.15; color: var(--hero-fg); }
.page-header p { max-width: 62ch; margin: 0 auto; font-size: var(--fs-lead); color: var(--hero-fg-muted); }

.breadcrumbs { padding: 6px 0; background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; list-style: none; font-size: 0.875rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text-muted); }
.breadcrumbs li + li::before { content: '/'; color: var(--color-text-muted); }
.breadcrumbs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--color-accent-text);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-section { padding: clamp(40px, 6vw, 80px) 0; }
.content-section h2 { margin-bottom: 20px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; }
.content-section h3 { margin: 40px 0 14px; font-size: 1.375rem; font-weight: 600; }
.content-section p { margin-bottom: 16px; color: var(--color-text-light); line-height: 1.8; }
.content-section ul, .content-section ol { margin: 16px 0 20px 1.25rem; color: var(--color-text-light); }
.content-section li { margin-bottom: 8px; line-height: 1.7; }
.prose > p, .prose > ul, .prose > ol { max-width: 72ch; }
.prose .priorities__grid { margin-top: 24px; margin-bottom: 8px; }
.prose .priority-card h3 { margin: 0 0 10px; font-size: 1.1875rem; font-weight: 700; }
.prose .priority-card p { margin: 0; }

/* Catalog */
.catalog-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; }

.catalog-sidebar { position: sticky; top: calc(var(--header-h) + 20px); padding: 20px; }
.catalog-sidebar h2 { margin-bottom: 10px; padding: 0 8px; font-size: 1rem; font-weight: 700; }
.catalog-sidebar a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.catalog-sidebar a:hover { background: var(--color-bg-alt); color: var(--color-text); }
.catalog-sidebar a[aria-current="page"] { background: var(--color-primary); color: var(--color-on-primary); font-weight: 600; }
.catalog-sidebar__group { display: grid; margin-top: 4px; }
.catalog-sidebar a.catalog-sidebar__kind { font-weight: 700; color: var(--color-text); }
.catalog-sidebar a.catalog-sidebar__sub { padding-left: 28px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
}
.pagination a { border: 1px solid var(--color-border); background: var(--color-card); color: var(--color-text-light); transition: background var(--dur) var(--ease); }
.pagination a:hover { background: var(--color-bg-alt); color: var(--color-text); }
.pagination span { background: var(--color-primary); border: 1px solid var(--color-primary); color: var(--color-on-primary); }

.empty-state { padding: 56px 0; text-align: center; color: var(--color-text-muted); }

/* Product */
.product-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.product-image .image-placeholder { min-height: 400px; }

.product-title { margin-bottom: 20px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 700; line-height: 1.2; }

.product-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.product-meta-item { padding: 12px 18px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-alt); }
.meta-label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.meta-value { display: block; margin-top: 4px; font-weight: 600; color: var(--color-text); }
.meta-value a { color: var(--color-accent-text); text-underline-offset: 3px; }

.product-price { margin-bottom: 24px; font-family: var(--font-heading); font-size: 2rem; font-weight: 800; color: var(--color-accent-text); }
.product-price small { font-family: var(--font-main); font-size: 1.125rem; font-weight: 500; color: var(--color-text-muted); }

.product-description h3 { margin: 0 0 10px; font-size: 1.125rem; }
.product-description p { max-width: 62ch; }
.product-actions { margin-top: 28px; }
.related { margin-top: clamp(48px, 7vw, 80px); }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info h2 { margin-bottom: 28px; }
.contact-info__item { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
.contact-info__item h3 { margin: 0 0 4px; font-size: 1.0625rem; font-weight: 700; }
.contact-info__item p { margin: 0; color: var(--color-text-light); line-height: 1.6; }
.contact-info__item a { display: inline-block; padding: 4px 0; color: var(--color-accent-text); font-weight: 600; text-underline-offset: 3px; }

.contact-form { padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow-md); }
.contact-form h2 { margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; color: var(--color-text); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font: 400 1rem/1.4 var(--font-main);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--color-text-muted); opacity: 1; }
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible {
    outline: none;
    border-color: var(--color-text);
    box-shadow: 0 0 0 3px var(--color-focus);
}
.form-group textarea { min-height: 140px; resize: vertical; }

.form-status {
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid var(--color-border-strong);
    border-left-width: 4px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 0.9375rem;
}
.form-status[hidden] { display: none; }
.form-status a { color: var(--color-accent-text); font-weight: 600; }
.form-status--ok { border-left-color: #276749; }
.form-status--err { border-left-color: #c53030; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; font-size: 0.875rem; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.consent a { color: var(--color-accent-text); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* News */
.news-grid { display: grid; gap: 20px; max-width: 880px; margin: 0 auto; }
.news-card { padding: clamp(24px, 4vw, 40px); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.news-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.news-card__date { display: inline-block; margin-bottom: 12px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; color: var(--color-accent-text); }
.news-card h2 { margin-bottom: 12px; font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem); font-weight: 700; }
.news-card p { color: var(--color-text-light); line-height: 1.75; }
.news-card .text-link { margin-top: 8px; }

.news-card--media { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: start; }
.news-card__media { display: block; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--color-border); background: var(--color-bg-alt); }
.news-card__media img { display: block; width: 100%; height: auto; }
.news-card h2 a { color: inherit; text-decoration: none; }
.news-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Article page: date, cover, tables and figures pasted from the editor */
.article-meta { margin-bottom: 20px; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.04em; color: var(--color-accent-text); }
.article-cover { float: left; max-width: min(100%, 320px); height: auto; margin: 4px 28px 16px 0; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.prose img { max-width: 100%; height: auto; }
.table-scroll { max-width: 100%; margin: 20px 0 28px; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--color-border-strong); vertical-align: top; color: var(--color-text-light); line-height: 1.5; }
.table-scroll th, .table-scroll td { padding: 6px 8px; font-size: 0.875rem; }   /* wide tables (results) fit the column without the scroll bar under them */
.prose th { background: var(--color-bg-alt); color: var(--color-text); font-weight: 600; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--color-border-strong); color: var(--color-text-light); }
.article-actions { clear: both; margin-top: 36px; }

/* Catalog sections of the home page: technologies and reagents */
.kind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kind-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.kind-card:hover { box-shadow: var(--shadow-lg); border-color: var(--color-border-strong); }
.kind-card__media { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: var(--hero-gradient); }
.kind-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.kind-card:hover .kind-card__media img { transform: scale(1.04); }
.kind-card__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: 24px 28px 28px; }
.kind-card h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.3; }
.kind-card h3 a { color: inherit; text-decoration: none; }
.kind-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.kind-card p { color: var(--color-text-light); line-height: 1.6; }
.kind-card__sections { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.kind-card__sections a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-size: 0.9375rem;
    text-decoration: none;
}
.kind-card__sections a:hover { background: var(--color-bg-alt); }
.kind-card__count { color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.kind-card .text-link { margin-top: auto; padding-top: 6px; }

/* Technologies / reagents switch above the catalog grid */
.kind-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.kind-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    background: var(--color-card);
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}
.kind-tabs a:hover { background: var(--color-bg-alt); }
.kind-tabs a[aria-current="page"] { border-color: var(--color-primary); background: var(--color-primary); color: var(--color-on-primary); }
.kind-tabs span { font-weight: 500; font-variant-numeric: tabular-nums; opacity: 0.85; }

/* ---------- Scroll reveal (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js .reveal {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity 500ms var(--ease), transform 500ms var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
    }
    .js .reveal.is-visible { opacity: 1; transform: none; }
    .js .reveal.is-visible:hover { transform: translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    .priority-card:hover, .tech-card:hover, .chem-card:hover, .news-card:hover, .btn--primary:hover { transform: none; }
    .chem-card:hover .chem-card__media img, .kind-card:hover .kind-card__media img { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .nav__list a { padding: 0 12px; }
    .header__bar { gap: 14px; }

    .header__phone { justify-content: center; width: 44px; padding: 0; border: 1px solid var(--color-border); background: var(--color-card); }
    .header__phone:hover { background: var(--color-bg-alt); }
    .header__phone-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (max-width: 1100px) {
    .priorities__grid,
    .home-technologies .chem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
    .hero .container { grid-template-columns: minmax(0, 1fr); }
    .about-preview .container,
    .contacts-grid,
    .product-detail { grid-template-columns: minmax(0, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__col--about { grid-column: 1 / -1; }

    /* Categories become a horizontal chip row instead of a long stacked list */
    .catalog-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .catalog-sidebar { position: static; padding: 12px; }
    .catalog-sidebar h2 { display: none; }
    .catalog-sidebar nav, .catalog-sidebar .catalog-sidebar__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
    .catalog-sidebar__group { display: contents; }
    .catalog-sidebar a { flex: none; white-space: nowrap; border: 1px solid var(--color-border); }
    .catalog-sidebar a.catalog-sidebar__sub { padding-left: 12px; }
}

@media (max-width: 960px) {
    .menu-btn { display: inline-flex; }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        max-height: calc(100vh - var(--header-h));
        overflow-y: auto;
        padding: 12px var(--gutter) 24px;
        border-bottom: 1px solid var(--color-border);
        background: var(--color-bg);
        box-shadow: var(--shadow-lg);
    }
    .nav.is-open { display: block; }
    .nav__list { flex-direction: column; gap: 2px; }
    .nav__list a { width: 100%; min-height: 48px; font-size: 1rem; }
}

@media (max-width: 860px) {
    .kind-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
    .news-card--media { grid-template-columns: minmax(0, 1fr); }
    .news-card__media { max-width: 260px; }
    .article-cover { float: none; display: block; margin: 0 0 20px; }
    .priorities__grid,
    .home-technologies .chem-grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: minmax(0, 1fr); }
    .logo__img { height: 40px; }
    .hero__actions .btn { flex: 1 1 100%; }
    .contact-form { padding: 22px; }
}

@media (max-width: 420px) {
    .stat-card { padding: 16px; }
    .header__bar { gap: 10px; }
    .lang a { min-width: 40px; padding: 0 8px; }
}

@media print {
    .header, .skip-link, .cta, .menu-btn { display: none !important; }
    body { background: #fff; color: #000; }
}

/* ---------- Photos and documents (added with the admin uploads) ---------- */
.tech-card__media {
    display: block;
    margin: -28px -28px 4px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-bg-alt);
}
.tech-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.product-photo {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-card);
}
.product-description > :first-child { margin-top: 0; }
.product-description img { max-width: 100%; height: auto; }
.product-doc { margin-top: 24px; }

/* Product without a photo: the text takes the width of a page, not half of it */
.product-detail--text { grid-template-columns: minmax(0, 880px); }
.product-image { position: sticky; top: calc(var(--header-h) + 20px); }

/* Card texts of the catalog: purpose, description, advantages, results, figures */
.product-description h4 { margin: 28px 0 8px; font-size: 1.0625rem; font-weight: 700; color: var(--color-text); }
.product-description p { max-width: 72ch; }
.product-description ul { max-width: 72ch; }
.product-description figure { margin: 20px 0 24px; }
.product-description figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; }
.product-description figcaption { max-width: 72ch; margin-top: 8px; font-size: 0.875rem; line-height: 1.5; color: var(--color-text-muted); }

/* Catalog page: one block per section, in the order of the 2026 catalog */
.catalog-group + .catalog-group { margin-top: clamp(32px, 5vw, 52px); }
.catalog-group__title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--color-border-strong); font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); font-weight: 700; }
.catalog-group__title a { color: var(--color-text); text-decoration: none; }
.catalog-group__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.catalog-group__title span { font-size: 0.9375rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--color-text-muted); }
.catalog-doc { margin: 0 0 28px; }

.section-body { margin-bottom: clamp(28px, 4vw, 48px); }
.section-body > :last-child { margin-bottom: 0; }

.footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 8px; }
.footer__legal a { display: inline-flex; align-items: center; min-height: 32px; color: var(--footer-fg); text-underline-offset: 3px; }
.footer__legal a:hover { color: #fff; }

.cookie-bar {
    position: fixed;
    z-index: 40;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 880px;
    margin: 0 auto;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--footer-bg, #0f172a);
    color: var(--footer-fg, #e2e8f0);
    box-shadow: var(--shadow-lg);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 0.9375rem; line-height: 1.45; }
.cookie-bar a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.cookie-bar .btn { flex: 0 0 auto; }
@media (max-width: 640px) {
    .cookie-bar { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
}
@media print {
    .cookie-bar { display: none !important; }
}

.footer__made { margin-top: 8px; font-size: 0.8125rem; opacity: 0.85; }
.footer__made a { color: var(--footer-fg); text-underline-offset: 3px; }
.footer__made a:hover { color: #fff; }
