/* Final public UI layer: one grid, one control system, no legacy-file changes. */
.ap-site {
    --ap-content-width: 1344px;
    --ap-gutter: clamp(18px, 4vw, 48px);
    --ap-page-inset: max(var(--ap-gutter), calc((100% - var(--ap-content-width)) / 2));
    --ap-control-height: 48px;
    --ap-muted: #53616b;
    -webkit-font-smoothing: antialiased;
}
.ap-site .ap-wrap { padding-inline: var(--ap-page-inset); }
.ap-site [id] { scroll-margin-top: 24px; }
.ap-site a { text-underline-offset: .22em; }
.ap-site :focus-visible { outline-offset: 4px; }
.ap-site .ap-topline { padding-block: 7px; font-size: 12px; }
.ap-site .ap-header { padding-block: 12px; gap: 28px; }
.ap-site .ap-brand, .ap-site .ap-brand img { width: 216px; }
.ap-site .ap-header .ap-phone { margin-left: auto; font-size: 18px; white-space: nowrap; min-height: 44px; display: flex; align-items: center; }
.ap-site .ap-header-action { min-height: 44px; padding: 10px 16px; }
/* A continuous navigation band anchors the links between header and content. */
.ap-site .ap-navigation { padding-block: 0; gap: 4px; background: #edf1f5; border-block: 1px solid #d6dee7; }
.ap-site .ap-navigation a { position: relative; flex: 1 1 auto; justify-content: center; min-width: 0; min-height: 52px; padding: 8px 12px; font-size: 14px; text-align: center; text-decoration: none; transition: background-color 180ms ease, color 180ms ease; }
.ap-site .ap-navigation a:hover { color: var(--ap-blue); background: #e0e7f0; }
.ap-site .ap-navigation a[aria-current] { color: var(--ap-blue); background: #fff; }
.ap-site .ap-navigation a:focus-visible { outline: 2px solid var(--ap-blue); outline-offset: -4px; }
.ap-navigation a::after { content: ''; position: absolute; inset: auto 12px 0; height: 3px; background: var(--ap-blue); transform: scaleX(0); transform-origin: left; transition: transform 180ms ease; }
.ap-navigation a:hover::after, .ap-navigation a[aria-current]::after { transform: scaleX(1); }
.ap-site .ap-menu-toggle { border-color: var(--ap-line); color: var(--ap-ink); font-weight: 600; }
.ap-site .ap-menu-toggle[aria-expanded=true] { border-color: var(--ap-blue); background: var(--ap-paper); }

/* Keep the photograph full bleed; only its copy shares the page grid. */
.ap-site .ap-hero { display: flex; align-items: center; min-height: clamp(480px, calc(100svh - 168px), 640px); }
.ap-site .ap-hero-image { object-position: center; }
.ap-site .ap-hero-copy { width: 100%; max-width: none; padding: 48px var(--ap-page-inset); }
.ap-site .ap-hero h1 { font-size: clamp(44px, 4.7vw, 80px); line-height: 1.08; margin-block: 24px; max-width: 12ch; }
.ap-site .ap-hero-intro { font-size: 17px; line-height: 1.7; max-width: 34ch; }
.ap-site .ap-hero-actions { margin-top: 28px; gap: 16px 28px; }
.ap-site .ap-hero::after { background: linear-gradient(90deg, rgba(10,18,27,.86), rgba(10,18,27,.72) 44%, rgba(10,18,27,.24) 70%, rgba(10,18,27,.14)); }

/* Shared action geometry and readable focus, hover and disabled states. */
.ap-site .ap-button, .ap-site .ap-text-link { gap: 14px; line-height: 1.5; }
.ap-site .ap-button { min-height: var(--ap-control-height); padding: 12px 20px; justify-content: center; border-radius: 2px; }
.ap-site .ap-button:hover { text-decoration: none; }
.ap-site .ap-text-link { padding-block: 10px; text-decoration: none; transition: color 180ms ease; }
.ap-site .ap-text-link:hover { color: var(--ap-blue); }
.ap-site .ap-hero .ap-text-link:hover { color: var(--ap-sky); }
.ap-button > [aria-hidden], .ap-text-link > [aria-hidden] { flex-shrink: 0; font-size: 17px; line-height: 1; }
.ap-site button:disabled, .ap-site input:disabled, .ap-site select:disabled { cursor: not-allowed; }
.ap-site .ap-fields :disabled { background: #eef0ef; color: var(--ap-muted); opacity: 1; }
.ap-site input:not([type=checkbox]):not([type=radio]):focus, .ap-site select:focus, .ap-site textarea:focus { border-color: var(--ap-blue); }
.ap-site .ap-section { padding-block: clamp(40px, 4.4vw, 72px); }
.ap-site .ap-section-heading { margin-bottom: 32px; }
.ap-site .ap-section-heading h2 { max-width: 26ch; }
.ap-site .ap-section-heading > p { max-width: 32ch; font-size: 15px; }
.ap-site .ap-category { padding: 26px !important; transition: background 180ms ease; }
.ap-site .ap-category:hover { background: var(--ap-paper); }
.ap-site .ap-category h3 { font-size: 18px; line-height: 1.4; }
.ap-site .ap-category p { font-size: 14px; }
.ap-site .ap-category-arrow { color: var(--ap-blue); }
.ap-site .ap-catalog-shortcuts { gap: 8px 28px; }
.ap-site .ap-services { align-items: start; }
.ap-site .ap-services > div > a { padding-block: 26px; text-decoration: none; transition: color 180ms ease, border-color 180ms ease; }
.ap-site .ap-services > div > a:hover { color: var(--ap-blue); border-color: var(--ap-blue); }
.ap-site .ap-services > div > a strong { font-size: 18px; }
.ap-site .ap-directory-grid { gap: 32px 48px; }
.ap-site .ap-directory-grid > div { border-top: 1px solid var(--ap-line); padding-top: 20px; }
.ap-site .ap-directory-grid h3 { font-size: 17px; line-height: 1.5; }
.ap-site .ap-directory-grid h3 a { color: var(--ap-ink); }
.ap-site .ap-directory-grid > div > a { line-height: 1.6; padding-block: 8px; }
.ap-site .ap-news-grid { gap: 36px; }
.ap-site .ap-news-grid article { display: grid; grid-template-columns: 128px minmax(0,1fr); column-gap: 24px; align-content: start; border-top: 1px solid var(--ap-line); padding-top: 24px; }
.ap-site .ap-news-grid article > a { grid-row: 1 / 3; }
.ap-site .ap-news-grid article > a img { width: 128px; height: 100px; max-width: 100%; object-fit: cover; }
.ap-site .ap-news-grid article .ap-hint { margin: 0 0 8px !important; }
.ap-site .ap-news-grid article h3 { font-size: 17px; line-height: 1.5; }
.ap-site .ap-news-grid article h3 a { color: var(--ap-ink); }
.ap-site .ap-news-grid article:not(:has(> a)) { grid-template-columns: 1fr; }

/* No selectable offers: show the next useful action, not an unusable form. */
.ap-quote-request { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; padding-block: 12px; }
.ap-site .ap-quote-request h2, .ap-site .ap-quote-request h3 { font: 600 clamp(22px,2vw,28px)/1.4 var(--ap-font-heading); margin: 0 0 16px; max-width: 28ch; }
.ap-quote-request p { color: var(--ap-muted); max-width: 60ch; }
.ap-site .ap-quote-request .ap-inline-actions { margin-bottom: 0; }
.ap-quote-checklist { border-left: 1px solid var(--ap-line); padding: 4px 0 4px 36px; }
.ap-site .ap-quote-checklist ul { list-style: none; padding: 0; margin: 18px 0 0; }
.ap-quote-checklist li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--ap-line); font-size: 15px; }
.ap-quote-checklist li::before { content: ''; position: absolute; left: 0; top: 22px; width: 6px; height: 6px; background: var(--ap-blue); }
.ap-site .ap-result { align-self: start; padding: 28px; }
.ap-site .ap-calc-layout { gap: 40px; align-items: start; }
.ap-site .ap-fields label { color: var(--ap-ink); font-weight: 600; }
.ap-site .ap-fields input, .ap-site .ap-fields select { background: #fff; }
.ap-site .ap-hint { line-height: 1.7; }

/* Inner pages use the same vertical rhythm as the home page. */
.ap-site .ap-page-heading { padding-block: 24px 28px; border-bottom: 1px solid var(--ap-line); }
.ap-site .ap-page-heading h1 { font-size: clamp(30px,3.1vw,46px); line-height: 1.2; margin-top: 16px; max-width: 30ch; }
.ap-site .ap-breadcrumbs { font-size: 13px; gap: 4px 10px; }
.ap-site .ap-breadcrumbs a { min-height: 36px; }
.ap-site .ap-page-content { padding-block: 36px 64px; }
.ap-site .ap-page-content > h2:first-child, .ap-site .ap-page-content > .ap-legacy > h2:first-child { margin-top: 0; }
.ap-site .ap-catalog-layout { grid-template-columns: 224px minmax(0,1fr); gap: 40px; padding-block: 32px 64px; }
.ap-site .ap-sidebar { border-right: 1px solid var(--ap-line); padding-right: 24px; }
.ap-site .ap-sidebar > details > summary { font-size: 14px; margin-bottom: 8px; }
.ap-site .ap-sidebar a { border-bottom: 0; line-height: 1.5; padding: 10px 8px; font-size: 13px; }
.ap-site .ap-sidebar a:hover { background: var(--ap-paper); text-decoration: none; }
.ap-site .ap-sidebar ul ul { padding-left: 10px; }
.ap-site .ap-category-directory { gap: 0 36px; }
.ap-site .ap-category-directory a:hover { text-decoration: none; color: var(--ap-blue); }
.ap-site .ap-empty { padding: 28px; border-left: 3px solid var(--ap-blue); }
.ap-site .ap-empty h2 { font-size: 26px; line-height: 1.3; }
.ap-site .ap-empty p { color: var(--ap-muted); }
.ap-site .ap-filters { padding: 20px; background: var(--ap-paper); gap: 12px 16px; }
.ap-site .ap-filters label { margin-bottom: 0; font-size: 13px; font-weight: 600; }
.ap-site .ap-filters select { margin-top: 8px; min-height: var(--ap-control-height); font-size: 16px; border-radius: 2px; }
.ap-site .ap-filter-reset { padding: 10px 4px; min-height: var(--ap-control-height); font-size: 14px; }
.ap-site #catalog-table thead th { color: var(--ap-muted); font-size: 12px; font-weight: 600; }
.ap-site #catalog-table td, .ap-site #catalog-table th { padding: 18px 12px; }
@media (min-width: 701px) {
    .ap-site #catalog-table tbody tr td:first-child { padding-left: 12px; }
}
.ap-site #catalog-table .ap-cell-price { font-weight: 600; white-space: normal; }
.ap-site #catalog-table .ap-stock { color: var(--ap-muted); font-size: 13px; }
.ap-site #catalog-table tbody tr td a.ap-small-button { border-color: #c3cddd; background: #f2f5fa; color: var(--ap-blue); border-radius: 2px; padding: 10px 14px; }
.ap-site #catalog-table tbody tr td a.ap-small-button:hover { border-color: var(--ap-blue); background: var(--ap-blue); color: #fff; }
.ap-site .pagination { margin-top: 28px; }
.ap-site .pagination > li > a, .ap-site .pagination > li > span { border-radius: 2px; border-color: var(--ap-line); }
.ap-site .pagination > .active > a, .ap-site .pagination > .active > span { background: var(--ap-blue); border-color: var(--ap-blue); color: #fff; }
.ap-site .ap-product-top { grid-template-columns: minmax(180px,.8fr) minmax(0,1.2fr); gap: 36px; align-items: start; }
.ap-site .ap-product-image { background: var(--ap-paper); border: 0; padding: 24px; }
.ap-site .ap-product-top img { height: 240px; }
.ap-site .ap-product-price { line-height: 1.3; }
.ap-site .ap-product-top .ap-button { margin-top: 22px; }
.ap-product-terms { display: grid; grid-template-columns: .7fr 1.3fr; gap: 36px; border-top: 1px solid var(--ap-line); padding-top: 28px; font-size: 14px; color: var(--ap-muted); }
.ap-product-terms h2 { font: 700 17px/1.5 var(--ap-font-body); margin: 0 0 12px; color: var(--ap-ink); }
.ap-product-terms ul { padding-left: 18px; margin: 12px 0 0; }
.ap-product-terms li { margin-block: 6px; }
.ap-site .ap-contact-layout { gap: 72px; }
.ap-site .ap-contact-layout #contact-form form { padding: 28px; border-top: 3px solid var(--ap-blue); }
.ap-site #contact-form label { color: var(--ap-ink); line-height: 1.5; }
.ap-site #contact-form form input, .ap-site #contact-form form textarea { border-radius: 2px; }
.ap-site #contact-form .has-error input, .ap-site #contact-form .has-error textarea { border-color: #a12621; }
.ap-site .ap-contact-layout h2 { font-size: 28px; }
.ap-site .ap-news-item h2 { font-size: 24px; max-width: 38ch; }
.ap-site .ap-news-item p { max-width: 76ch; }
.ap-site.ap-editorial .ap-page-heading h1 { font-size: clamp(28px,3vw,40px); max-width: 36ch; }
.ap-site .vacancy-info .info-item { display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 24px; }
.ap-site .vacancy-info .info-item .left, .ap-site .vacancy-info .info-item .right { width: auto; float: none; }
.ap-site .vacancy-info .info-item .left { color: var(--ap-muted); font-size: 14px; }
.ap-site .vacancy-info .info-item .cc-1 { display: none; }
.ap-site .ap-footer { padding-block: 52px 24px; }
.ap-site .ap-footer h2 { font-size: clamp(26px,3vw,36px); }
.ap-site .ap-footer nav { gap: 8px 28px; font-size: 14px; }
.ap-site .ap-footer-bottom { margin-top: 24px; }

@media (max-width: 1100px) {
    .ap-site .ap-header-action { font-size: 13px; }
    .ap-site .ap-catalog-layout { grid-template-columns: 200px minmax(0,1fr); gap: 28px; }
    .ap-site .ap-sidebar { padding-right: 16px; }
    .ap-site #catalog-table tbody tr td { padding: 0; }
    .ap-site .ap-product-top { grid-template-columns: 1fr; }
    .ap-site .ap-product-top > div:last-child { grid-row: 1; }
    .ap-site .ap-product-image { max-width: 340px; }
    .ap-site .ap-contact-layout { gap: 40px; }
    .ap-site .ap-news-grid article { grid-template-columns: 96px minmax(0,1fr); column-gap: 18px; }
    .ap-site .ap-news-grid article > a img { width: 96px; height: 88px; }
}
@media (max-width: 700px) {
    .ap-site .ap-topline { font-size: 11px; }
    .ap-site .ap-header { padding-block: 10px; gap: 0 16px; }
    .ap-site .ap-brand, .ap-site .ap-brand img { width: 168px; }
    .ap-site .ap-header .ap-phone { margin: 0; font-size: 13px; padding-block: 6px; min-height: 44px; }
    .ap-site .ap-header-action { display: none; }
    .ap-site .ap-menu-toggle { min-height: 44px; padding: 8px 14px; }
    .ap-site .ap-navigation.ap-open { gap: 4px 8px; padding-block: 8px; }
    .ap-site .ap-navigation a { min-height: 48px; padding-inline: 8px; font-size: 13px; }
    .ap-site .ap-hero { min-height: 0; }
    .ap-site .ap-hero-image { object-position: 72% center; opacity: 1; }
    .ap-site .ap-hero::after { background: linear-gradient(90deg, rgba(10,18,27,.91), rgba(10,18,27,.78) 60%, rgba(10,18,27,.7)); }
    .ap-site .ap-hero-copy { padding-block: 32px 36px; }
    .ap-site .ap-hero h1 { font-size: clamp(38px,9vw,58px); margin-block: 20px; }
    .ap-site .ap-hero .ap-eyebrow { font-size: 10px; letter-spacing: .1em; gap: 10px; }
    .ap-site .ap-hero .ap-eyebrow::before { width: 20px; }
    .ap-site .ap-hero-intro { font-size: 15px; line-height: 1.65; }
    .ap-site .ap-hero-actions { gap: 12px 20px; margin-top: 24px; }
    .ap-site .ap-section-heading { margin-bottom: 24px; }
    .ap-site .ap-section-heading > p { margin-top: 14px; }
    .ap-site .ap-category { padding: 20px 16px !important; }
    .ap-site .ap-category h3 { font-size: 16px; }
    .ap-site .ap-category p { font-size: 12px; }
    .ap-site .ap-category img { margin-bottom: 18px; }
    .ap-site .ap-directory-grid { gap: 24px; }
    .ap-site .ap-directory-grid > div > a { min-height: 44px; }
    .ap-site .ap-news-grid { gap: 24px; }
    .ap-site .ap-news-grid article h3 { font-size: 16px; }
    .ap-quote-request { grid-template-columns: 1fr; gap: 28px; }
    .ap-quote-checklist { border-left: 0; border-top: 1px solid var(--ap-line); padding: 24px 0 0; }
    .ap-site .ap-quote-request .ap-inline-actions { gap: 12px 20px; }
    .ap-site .ap-calc-layout { gap: 24px; }
    .ap-site .ap-result { padding: 22px; }
    .ap-site .ap-page-heading { padding-block: 16px 20px; }
    .ap-site .ap-page-heading h1, .ap-site.ap-editorial .ap-page-heading h1 { font-size: clamp(24px,6.8vw,30px); margin-top: 12px; }
    .ap-site .ap-page-content { padding-block: 24px 44px; }
    .ap-site .ap-catalog-layout { grid-template-columns: 1fr; gap: 16px; padding-block: 8px 44px; }
    .ap-site .ap-sidebar { padding: 0 0 8px; border-right: 0; }
    .ap-site .ap-sidebar > details > summary { margin: 0; }
    .ap-site .ap-filters { padding: 16px; margin-bottom: 12px; }
    .ap-site .ap-filters label { flex-basis: calc(50% - 16px); min-width: 100px; }
    .ap-site .ap-subcategories { gap: 4px 16px; margin-bottom: 16px; }
    .ap-site .ap-subcategories > a { font-size: 14px; }
    .ap-site .ap-empty { padding: 22px 20px; }
    .ap-site .ap-empty h2 { font-size: 23px; }
    .ap-site .ap-product-top { gap: 24px; }
    .ap-site .ap-product-image { max-width: 280px; width: 100%; }
    .ap-site .ap-product-top img { height: 180px; }
    .ap-product-terms { grid-template-columns: 1fr; gap: 24px; }
    .ap-site .ap-contact-layout { gap: 36px; }
    .ap-site .ap-contact-layout #contact-form form { padding: 20px 16px; }
    .ap-site .ap-contact-layout h2 { font-size: 26px; }
    .ap-site .vacancy-info .info-item { grid-template-columns: 1fr; gap: 8px; }
    .ap-site .vacancy-info .info-item .left { font-weight: 600; margin-bottom: 0; }
    .ap-site .ap-footer { padding-block: 36px 20px; }
    .ap-site .ap-footer-top > div:last-child { margin-top: 24px; }
    .ap-site .ap-footer-top a { font-size: 24px; }
    .ap-site .ap-footer nav { gap: 4px 24px; }
}
@media (max-width: 380px) {
    .ap-site .ap-hero h1 { font-size: 36px; }
    .ap-site .ap-button { padding-inline: 16px; font-size: 13px; }
    .ap-site .ap-text-link { font-size: 13px; }
    .ap-site .ap-hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
    .ap-site .ap-category h3 { font-size: 15px; }
    .ap-site .ap-category-arrow { font-size: 20px; right: 14px; }
    .ap-site .ap-news-grid article { grid-template-columns: 80px minmax(0,1fr); gap: 8px 16px; }
    .ap-site .ap-news-grid article > a img { width: 80px; height: 80px; }
    .ap-site .ap-news-grid article h3 { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .ap-site .ap-navigation a, .ap-site .ap-navigation a::after, .ap-site .ap-text-link, .ap-site .ap-category, .ap-site .ap-services > div > a { transition: none; }
}
