/* ==========================================================================
   DevServices — Editorial Tech UI
   Monochrome + indigo accent, Roboto, light theme
   ========================================================================== */

/* ---------- Self-hosted Roboto (variable, weights 400-700) ---------- */
/* Roboto v51 is a variable font; one woff2 per subset covers every weight. */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/roboto-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/roboto-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ---------- Design tokens ---------- */
:root {
    --color-bg: #fafaf9;
    --color-surface: #ffffff;
    --color-surface-muted: #f5f5f4;

    --color-text: #0a0a0a;
    --color-text-hover: #262626;
    --color-text-pressed: #000;
    --color-text-2: #44403c;
    --color-text-3: #78716c;
    --color-text-muted: #a8a29e;

    --color-border: #e7e5e4;
    --color-border-2: #d6d3d1;
    --color-border-strong: #0a0a0a;

    --color-accent: #4f46e5;
    --color-accent-hover: #4338ca;
    --color-accent-soft: rgba(79, 70, 229, 0.12);

    --color-danger: #dc2626;
    --color-success: #059669;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(10, 10, 10, 0.04);
    --shadow-sm: 0 2px 6px rgba(10, 10, 10, 0.05);
    --shadow-md: 0 8px 24px rgba(10, 10, 10, 0.07);

    --t-fast: 150ms cubic-bezier(.4, 0, .2, 1);
    --t-med:  200ms cubic-bezier(.4, 0, .2, 1);

    --header-h: 96px;
    --container-max: 1200px;
}

/* ---------- Base ---------- */
html {
    font-size: 15.5px;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-width: 320px;
    padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern", "liga", "calt";
}

img {
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--color-accent);
    color: #fff;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--color-text);
    font-weight: 600;
    letter-spacing: -0.011em;
    line-height: 1.25;
}

h1, .h1 { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; }
h2, .h2 { font-size: 1.625rem; }
h3, .h3 { font-size: 1.25rem; }
h4, .h4 { font-size: 1.0625rem; }
h5, .h5 { font-size: 0.9375rem; }
h6, .h6 { font-size: 0.875rem; }

@media (max-width: 767px) {
    h1, .h1 { font-size: 1.75rem; }
    h2, .h2 { font-size: 1.375rem; }
}

p { margin-bottom: 1rem; }

.text-muted { color: var(--color-text-3) !important; }

/* ---------- Links ---------- */
a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast);
}
a:hover,
a:focus {
    color: var(--color-accent);
    text-decoration: none;
}

.link-accent {
    color: var(--color-accent);
}
.link-accent:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Utilities ---------- */
.relative { position: relative; }

.image-style-align-center { text-align: center; }
.image-style-align-left   { float: left; margin-right: 20px; max-width: 50%; }
.image-style-align-right  { float: right; margin-left: 20px; max-width: 50%; }

.category-desc::after {
    content: "";
    clear: both;
    display: block;
}

label.required::before {
    content: "* ";
    color: var(--color-danger);
    font-weight: 600;
}

/* ---------- Sections ---------- */
section {
    padding: 64px 0;
}
@media (max-width: 767px) {
    section { padding: 40px 0; }
}

.section-title {
    overflow: visible;
    text-transform: none;
    color: var(--color-text);
    margin-bottom: 32px;
    text-align: left;
    font-size: 1.625rem;
    font-weight: 600;
    letter-spacing: -0.011em;
}
.section-title::before,
.section-title::after {
    content: none;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
    position: relative;
    overflow: visible;
    font-weight: 500;
    border-radius: var(--radius-md);
    padding: 0.625rem 1.125rem;
    transition: background-color var(--t-fast), color var(--t-fast),
                border-color var(--t-fast), transform var(--t-fast),
                box-shadow var(--t-fast);
}
.btn:focus,
.btn:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.btn:active {
    transform: translateY(1px);
}
/* kill legacy ripple */
.btn::before { content: none !important; }

.btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
}
.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

/* .btn-primary is the project's primary CTA — monochrome black, not Bootstrap blue.
   (.btn-danger keeps its conventional Bootstrap red for admin destructive actions.) */
.btn-primary,
.btn-primary:focus {
    background-color: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--color-text-hover);
    border-color: var(--color-text-hover);
    color: #fff;
}
.btn-primary:active,
.btn-primary:focus:active {
    background-color: var(--color-text-pressed);
    border-color: var(--color-text-pressed);
    color: #fff;
}

/* .btn-outline-primary — used on cards: subtle ghost with arrow cue on hover */
.btn-outline-primary {
    background: transparent;
    border: 1px solid var(--color-border-2);
    color: var(--color-text);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}
.btn-outline-primary .icon-arrow-right {
    transition: transform var(--t-fast);
    margin-left: 0.25rem;
}
.btn-outline-primary:hover .icon-arrow-right {
    transform: translateX(3px);
}

/* SVG-sprite icons (replaces FontAwesome) */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
    flex-shrink: 0;
}

/* ---------- Forms ---------- */
.form-control,
.form-select {
    border-color: var(--color-border-2);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus,
.form-select:focus {
    color: var(--color-text);
    background-color: #fff;
    border-color: var(--color-accent);
    outline: 0;
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.input-group-text {
    background: var(--color-surface-muted);
    border-color: var(--color-border-2);
    color: var(--color-text-2);
    font-size: 0.9375rem;
}

/* ---------- Header ---------- */
header.fixed-top {
    background-color: rgba(250, 250, 249, 0.88);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: none;
}

.header-top {
    position: relative;
    padding: 0.5rem 0;
    color: var(--color-text-2);
}

.header-top-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.5rem;
}

/* Brand block: logo mark + (name on top, tagline below) */
.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0;
    margin: 0;
    text-decoration: none;
    color: var(--color-text);
    line-height: 1;
}
.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
    min-width: 0;
}
.brand-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-text);
    white-space: nowrap;
}
.brand-tagline {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--color-text-3);
    letter-spacing: 0;
    white-space: nowrap;
}

/* Brand mark — indigo disc with white pupil. Pupil position via CSS vars
   so a tiny JS can track the cursor on desktop (see brand-mark-pupil.js). */
.brand-mark {
    --pupil-x: 5px;
    --pupil-y: -5px;
    display: inline-block;
    width: 26px;
    height: 26px;
    background: var(--color-accent);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    transition: transform var(--t-med), background var(--t-fast);
}
.brand-mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    background: var(--color-bg);
    border-radius: 50%;
    transform: translate(var(--pupil-x), var(--pupil-y));
    transition: transform 80ms ease-out;
}
.navbar-brand:hover {
    color: var(--color-text);
}
.navbar-brand:hover .brand-mark {
    transform: rotate(-18deg);
    background: var(--color-accent-hover);
}

/* Right-side utilities cluster */
.header-utilities {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    justify-self: end;
}
.header-utilities .open-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: var(--radius-sm);
    color: var(--color-text-2);
    transition: background-color var(--t-fast), color var(--t-fast);
}
.header-utilities .open-search:hover,
.header-utilities .open-search:focus {
    background: var(--color-surface-muted);
    color: var(--color-text);
}
.header-utilities .open-search:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

/* Header CTA button — primary action, indigo filled */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    border-radius: var(--radius-md);
    white-space: nowrap;
}
.header-cta .icon { width: 14px; height: 14px; }

/* Hamburger sits left of brand on mobile/tablet */
.header-top-grid > .navbar-toggler {
    border-color: var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.5rem;
    margin-right: 0.25rem;
    color: var(--color-text);
}
.header-top-grid > .navbar-toggler:hover {
    border-color: var(--color-border-strong);
}
.header-top-grid > .navbar-toggler:focus {
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}
/* Bootstrap rules SVG в .navbar-toggler-icon только при родителе .navbar-light/dark.
   Тут toggler — снаружи .navbar (он на header-grid), поэтому даём свой фон. */
.header-top-grid > .navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%2344403c' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ---------- Language switcher ---------- */
.lang-switcher {
    position: relative;
}
.lang-switcher .lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--color-text-2);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
    cursor: pointer;
    text-decoration: none;
}
.lang-switcher .lang-toggle:hover,
.lang-switcher .lang-toggle:focus,
.lang-switcher.show .lang-toggle {
    color: var(--color-text);
    border-color: var(--color-border-strong);
    background: var(--color-surface);
}
.lang-switcher .lang-toggle:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}
/* bootstrap adds a ::after caret on .dropdown-toggle; retune it */
.lang-switcher .lang-toggle::after {
    margin-left: 2px;
    border-top-color: currentColor;
    opacity: 0.7;
    vertical-align: middle;
    transition: transform var(--t-fast);
}
.lang-switcher.show .lang-toggle::after {
    transform: rotate(180deg);
}
.lang-switcher .lang-flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}
.lang-switcher .lang-code {
    line-height: 1;
}

.lang-menu {
    min-width: 180px;
    padding: 6px;
    margin-top: 8px !important;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: var(--color-surface);
}
.lang-menu .lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text);
    font-size: 0.9375rem;
    text-align: left;
    cursor: pointer;
    transition: background var(--t-fast);
}
.lang-menu .lang-item:hover,
.lang-menu .lang-item:focus {
    background: var(--color-surface-muted);
    color: var(--color-text);
    outline: 0;
}
.lang-menu .lang-item .lang-flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.lang-menu .lang-item .lang-code {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text-3);
    min-width: 22px;
}
.lang-menu .lang-item .lang-title {
    font-weight: 500;
}

/* ---------- Search overlay (toggled by JS .active) ---------- */
.header-top #search {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: opacity var(--t-med), transform var(--t-med);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    background-color: rgba(250, 250, 249, 0.96);
    backdrop-filter: saturate(160%) blur(8px);
    -webkit-backdrop-filter: saturate(160%) blur(8px);
    z-index: 2;
    padding: 0 56px;
}
.header-top #search.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.header-top #search .form-control {
    border: 0;
    background: transparent;
    font-size: 1rem;
    color: var(--color-text);
    padding: 0 0.5rem;
    height: 44px;
    flex: 0 1 520px;
    min-width: 0;
}
.header-top #search .form-control::placeholder {
    color: var(--color-text-muted);
}
.header-top #search .form-control:focus {
    box-shadow: none;
    background: transparent;
}
.header-top #search .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--color-text-3);
    flex-shrink: 0;
    transition: background var(--t-fast), color var(--t-fast);
}
.header-top #search .btn:hover,
.header-top #search .btn:focus {
    background: var(--color-surface-muted);
    color: var(--color-text);
    outline: 0;
}
.header-top #search .btn:focus-visible {
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.header-top #search .btn i { font-size: 15px; }
/* Close button floats at far right of overlay, independent of centered group */
.header-top #search .close-search {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

/* Header bottom — nav only */
.header-bottom {
    background-color: transparent;
    box-shadow: none;
    padding: 0.125rem 0 0.25rem;
}

.header-bottom .navbar-nav {
    gap: 0.125rem;
}
.header-bottom .navbar-nav li a.nav-link {
    color: var(--color-text-2);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    padding: 0.45rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: color var(--t-fast), background-color var(--t-fast);
}
.header-bottom .navbar-nav li a.nav-link:hover,
.header-bottom .navbar-nav li a.nav-link:focus {
    color: var(--color-text);
    background: var(--color-surface-muted);
}

/* Dropdown */
li a.dropdown-item {
    color: var(--color-text);
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
}
li a.dropdown-item:focus,
li a.dropdown-item:hover {
    background-color: var(--color-surface-muted);
    color: var(--color-text);
}
.dropdown-menu {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 0.375rem;
}

/* ---------- Modals ---------- */
.modal-content {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.modal-header {
    background-color: transparent;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-body img { max-width: 100px; }
.modal-body a {
    color: var(--color-accent);
}
.modal-body a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cart-table img { max-height: 50px; }

/* ---------- Carousel ---------- */
/* ---------- Hero tagline ---------- */
.hero-tagline {
    background: transparent;
    border-bottom: 1px solid var(--color-border);
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    text-align: center;
}
.hero-tagline h1,
.hero-tagline .h3 {
    color: var(--color-text);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}
.hero-tagline p {
    color: var(--color-text-3);
    font-size: 1.0625rem;
    max-width: 640px;
    margin: 0 auto;
}
@media (max-width: 767px) {
    .hero-tagline h1,
    .hero-tagline .h3 { font-size: 1.5rem; }
    .hero-tagline p { font-size: 0.9375rem; }
}

/* ---------- Error pages (404 / 500 inside layout) ---------- */
.error-page {
    padding: 3.5rem 0 4rem;
    text-align: center;
}
.error-page-code {
    font-size: clamp(5rem, 18vw, 9rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-accent);
    margin: 0 0 0.5rem;
}
.error-page-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin: 0 0 0.75rem;
    color: var(--color-text);
}
.error-page-desc {
    color: var(--color-text-3);
    max-width: 540px;
    margin: 0 auto 2rem;
}

/* ---------- Hero (Wave 4 — homepage primary) ---------- */
.hero {
    position: relative;
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid var(--color-border);
    background: linear-gradient(180deg, transparent, var(--color-surface-muted));
}
.hero .container {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}
.hero-highlight {
    color: var(--color-accent);
    white-space: nowrap;
}
.hero-subtitle {
    font-size: clamp(1rem, 0.6vw + 0.875rem, 1.1875rem);
    color: var(--color-text-3);
    max-width: 640px;
    margin: 0 auto 1.75rem;
    line-height: 1.55;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.hero-actions .btn {
    min-width: 220px;
}
@media (max-width: 767px) {
    .hero { padding: 2.5rem 0 2rem; }
    .hero-actions .btn { min-width: 0; width: 100%; }
}

/* ---------- Hero with slider background ---------- */
.hero.has-slides {
    overflow: hidden;
    border-bottom: 0;
    padding: 11rem 0 10.5rem;
    background: var(--color-text);
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
}
.hero.has-slides .hero-slide:first-child {
    opacity: 1;
}
/* Soft radial overlay — a light spot under the text where the slider
   image is washed out toward the page background colour, fading to
   transparent at the edges so the slider stays vivid on the sides.
   Text keeps the default dark colours; no shadow needed. */
.hero.has-slides::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 95% at center,
        rgba(250, 250, 249, 0.92) 0%,
        rgba(250, 250, 249, 0.7)  40%,
        rgba(250, 250, 249, 0)    85%
    );
    z-index: 1;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .hero.has-multi-slides .hero-slide { animation: none !important; }
    .hero.has-multi-slides .hero-slide:first-child { opacity: 1; }
}
@media (max-width: 767px) {
    .hero.has-slides { padding: 3rem 0 2.5rem; }
    .hero.has-slides::after {
        background: radial-gradient(
            ellipse 90% 100% at center,
            rgba(250, 250, 249, 0.88) 0%,
            rgba(250, 250, 249, 0.65) 60%,
            rgba(250, 250, 249, 0.25) 100%
        );
    }
}

/* ---------- Trust row ---------- */
.trust-row {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--color-border);
}
.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}
.trust-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 20px;
}
.trust-item-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.trust-item-label {
    font-size: 0.875rem;
    color: var(--color-text-3);
    line-height: 1.4;
}
@media (max-width: 767px) {
    .trust-row { padding: 1.5rem 0; }
    .trust-item-icon { width: 40px; height: 40px; font-size: 16px; }
    .trust-item-value { font-size: 1.125rem; }
    .trust-item-label { font-size: 0.8125rem; }
}

/* ---------- Product metrics (popularity + recency) ---------- */
.product-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    margin: 0 0 0.75rem;
    padding: 0.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.product-metrics li {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.product-metric-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: -0.01em;
}
.product-metric-label {
    font-size: 0.75rem;
    color: var(--color-text-3);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- Testimonials (curated, displayed on home) ---------- */
.testimonials {
    padding: 3rem 0;
    background: var(--color-surface-muted);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.testimonials-subtitle {
    color: var(--color-text-3);
    margin: -0.5rem auto 1.75rem;
    max-width: 580px;
}
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.testimonial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.testimonial-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-xs);
}
.testimonial-quote {
    position: relative;
    color: var(--color-text-2);
    line-height: 1.55;
    font-size: 0.9375rem;
    flex-grow: 1;
}
.testimonial-quote::before {
    content: "\201C"; /* curly opening quote */
    position: absolute;
    top: -0.6rem;
    left: -0.5rem;
    font-size: 2.25rem;
    line-height: 1;
    color: var(--color-accent);
    font-family: Georgia, serif;
    opacity: 0.65;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}
.testimonial-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.testimonial-photo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
}
.testimonial-name {
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
    font-size: 0.9375rem;
}
.testimonial-role {
    color: var(--color-text-3);
    font-size: 0.8125rem;
    line-height: 1.3;
}
@media (max-width: 991px) {
    .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .testimonials { padding: 2rem 0; }
    .testimonials-grid {
        grid-template-columns: 100%;
        scroll-snap-type: x mandatory;
        overflow-x: auto;
        grid-auto-flow: column;
        grid-auto-columns: 88%;
        margin: 0 -0.75rem;
        padding: 0 0.75rem 0.5rem;
    }
    .testimonial-card { scroll-snap-align: start; }
}

/* ---------- Lead form (inline, home + product) ---------- */
.lead-form {
    padding: 3rem 0;
    border-top: 4px solid var(--color-accent);
    background: var(--color-surface);
    scroll-margin-top: calc(var(--header-h) + 16px);
}
.lead-form-compact {
    padding: 1.75rem 0 0;
    margin-top: 1.5rem;
    border-top-width: 1px;
    border-top-color: var(--color-border);
    background: transparent;
}
.lead-form-subtitle {
    color: var(--color-text-3);
    margin-bottom: 1.5rem;
}
.lead-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.lead-form-grid .form-group { margin-bottom: 0; }
.lead-form-name    { grid-column: 1; }
.lead-form-contact { grid-column: 2; }
.lead-form-message { grid-column: 1 / -1; }
.lead-form-actions { grid-column: 1 / -1; text-align: center; margin-top: 0.5rem; }
.lead-form-actions .btn { min-width: 220px; }
.lead-form-fallback a { color: var(--color-accent); }
.lead-form-fallback a:hover { color: var(--color-accent-hover); }

/* Honeypot — спрятан и от глаз, и от screen-reader (через aria-hidden на родителе). */
.lead-form-honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 575px) {
    .lead-form { padding: 2rem 0; }
    .lead-form-grid { grid-template-columns: 1fr; }
    .lead-form-name, .lead-form-contact { grid-column: 1; }
    .lead-form-actions .btn { width: 100%; min-width: 0; }
}

/* ---------- FAQ accordion (native <details>) ---------- */
.faq {
    padding: 3rem 0;
}
.faq .section-title {
    margin-bottom: 1.75rem;
}
.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    margin-bottom: 0.75rem;
    transition: border-color var(--t-fast);
}
.faq-item[open] {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-xs);
}
.faq-q {
    cursor: pointer;
    list-style: none;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    line-height: 1.4;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-accent);
    border-bottom: 2px solid var(--color-accent);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--t-fast);
}
.faq-item[open] .faq-q::after {
    transform: rotate(-135deg) translate(-2px, -2px);
}
.faq-q:hover { color: var(--color-accent); }
.faq-q:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: calc(var(--radius-md) - 2px);
}
.faq-a {
    padding: 0 1.25rem 1.25rem;
    color: var(--color-text-2);
    line-height: 1.65;
}
@media (max-width: 767px) {
    .faq { padding: 2rem 0; }
    .faq-q { padding: 0.875rem 1rem; font-size: 0.9375rem; }
    .faq-a { padding: 0 1rem 1rem; font-size: 0.9375rem; }
}

/* ---------- Sticky CTA bar (Product page, mobile) ---------- */
/* :has() lifts body padding only when the bar is rendered (Product page);
   other pages stay untouched. Cookie-banner sits at z-index 1090 and wins
   on first visit. */
.sticky-cta-bar {
    display: none;
}
@media (max-width: 767px) {
    .sticky-cta-bar {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        padding: 0.625rem 0.875rem;
        padding-bottom: calc(0.625rem + env(safe-area-inset-bottom, 0px));
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        box-shadow: 0 -4px 16px rgba(10, 10, 10, 0.06);
        transform: translateY(0);
        transition: transform var(--t-med), opacity var(--t-fast);
    }
    .sticky-cta-bar.is-hidden {
        transform: translateY(110%);
        opacity: 0;
        pointer-events: none;
    }
    .sticky-cta-price {
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--color-text);
        letter-spacing: -0.01em;
        flex-shrink: 0;
    }
    .sticky-cta-btn {
        flex: 1;
        white-space: nowrap;
    }
    body:has(.sticky-cta-bar) {
        padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
    }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumb.bg-light {
    background: transparent !important;
    padding: 0.75rem 0 !important;
    margin-bottom: 0;
    font-size: 0.875rem;
}
.breadcrumb-item,
.breadcrumb-item a {
    color: var(--color-text-3);
}
.breadcrumb-item a:hover {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.breadcrumb-item.active {
    color: var(--color-text);
}
.breadcrumb-item + .breadcrumb-item::before {
    color: var(--color-text-muted);
    content: "/";
}

/* ---------- Empty state ---------- */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--color-text-3);
}
.empty-state .icon {
    font-size: 2rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    display: block;
    margin-inline: auto;
}
.empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* ---------- Service cards (витрина услуг) ---------- */
.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color var(--t-med), box-shadow var(--t-med);
}
.service-card:hover {
    border-color: var(--color-border-strong);
    box-shadow: var(--shadow-sm);
}
.service-card .service-thumb {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-surface-muted);
}
.service-card .service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms cubic-bezier(.4, 0, .2, 1);
}
.service-card:hover .service-thumb img {
    transform: scale(1.03);
}
.service-card .service-body {
    padding: 1.25rem !important;
}
.service-card h3,
.service-card h4 {
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-card h3 a,
.service-card h4 a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
}
.service-card h3 a:hover,
.service-card h4 a:hover {
    color: var(--color-text);
}
.service-card .service-card h3,
.service-card .service-card h4 { color: var(--color-text); }
.service-card p.text-muted {
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--color-text-3) !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.service-card .service-footer {
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    margin-top: 0.75rem;
}
.service-card .service-price {
    color: var(--color-text);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* ---------- Service page (лендинг услуги) ---------- */
.service-page { padding-top: 1rem; }

.service-page h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.service-page .service-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    top: calc(var(--header-h) + 16px);
    box-shadow: var(--shadow-xs);
}
.service-page .service-summary .text-muted {
    font-size: 0.9375rem;
}
.service-page .service-price-block {
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin: 1rem 0 1.25rem !important;
}
.service-page .service-price {
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.service-page .service-cta {
    padding: 0.875rem 1rem;
    font-weight: 600;
    font-size: 0.9375rem;
}
.service-page .service-summary ul li {
    padding: 0.25rem 0;
    color: var(--color-text-2);
    font-size: 0.875rem;
}
.service-page .service-summary ul li i {
    width: 16px;
    margin-right: 6px;
}
.service-page .service-summary ul li i.text-success {
    color: var(--color-success) !important;
}
.service-page .service-summary .service-trust li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.375rem 0;
    color: var(--color-text-2);
}
.service-page .service-summary .service-trust .icon {
    width: 16px;
    height: 16px;
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.text-accent {
    color: var(--color-accent) !important;
}

.service-page .service-section {
    margin-top: 2rem;
    padding: 0;
}
.service-page .service-section h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: 0;
    display: block;
    position: relative;
    padding-left: 0.875rem;
}
.service-page .service-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-accent);
    border-radius: var(--radius-pill);
}
.service-page .service-section-body {
    line-height: 1.65;
    color: var(--color-text-2);
}
.service-page .service-section-body p {
    margin-bottom: 0.75rem;
}
.service-page .service-section-body p:last-child {
    margin-bottom: 0;
}
.service-page .service-section-body h3,
.service-page .service-section-body h4,
.service-page .service-section-body h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 1rem 0 0.375rem;
}
.service-page .service-section-body h3:first-child,
.service-page .service-section-body h4:first-child,
.service-page .service-section-body h5:first-child {
    margin-top: 0;
}
.service-page .service-section-body ul,
.service-page .service-section-body ol {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}
.service-page .service-section-body li {
    padding: 0.1rem 0;
}

.service-page .service-bottom-cta {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface) !important;
    padding: 2rem !important;
}
.service-page .service-bottom-cta h3 {
    margin-bottom: 0.5rem;
}

/* ---------- Thumbnails / gallery ---------- */
.thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.thumbnail {
    display: block;
    padding: 8px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: border-color var(--t-med);
}
a.thumbnail.active,
a.thumbnail:focus,
a.thumbnail:hover {
    border-color: var(--color-border-strong);
}
a.thumbnail:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}
.thumbnails .thumb-main {
    flex: 0 0 100%;
}
.thumbnails .thumb-main a {
    padding: 1.25rem;
}
.thumbnails .thumb-main img {
    max-width: 320px;
}
.thumbnails .thumb-additional {
    flex: 0 0 auto;
    width: 96px;
    max-width: 96px;
}
.thumbnails .thumb-additional img,
.thumbnails .thumb-additional video {
    display: block;
    width: 100%;
    height: auto;
    background: var(--color-surface);
}
.thumbnails .thumb-additional video {
    background: #000;
}
.thumbnails .thumb-video .thumbnail {
    position: relative;
}
.thumbnails .thumb-video .thumbnail::after {
    content: "▶";
    position: absolute;
    inset: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 22px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    pointer-events: none;
}

/* ---------- Pagination ---------- */
.pagination {
    gap: 2px;
}
.page-link {
    color: var(--color-text-2);
    border-color: var(--color-border);
    border-radius: var(--radius-sm) !important;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.4;
    margin: 0 2px;
    min-height: 40px;
    min-width: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.page-link:hover {
    background-color: var(--color-surface-muted);
    border-color: var(--color-border-2);
    color: var(--color-text);
}
.page-link:focus {
    box-shadow: 0 0 0 3px var(--color-accent-soft);
    border-color: var(--color-accent);
}
.page-item.active .page-link {
    background-color: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}
.page-item.disabled .page-link {
    color: var(--color-text-muted);
    background: transparent;
}

/* ---------- Footer (mirrors header) ---------- */
footer {
    margin-top: 4rem;
}
.footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 3rem 0 !important;
    color: var(--color-text-2);
}
.footer h4 {
    color: var(--color-text);
    text-transform: none;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 1rem;
}
.footer a,
.footer li {
    color: var(--color-text-2);
    font-size: 0.9375rem;
}
.footer ul {
    padding-left: 0;
}
.footer ul li {
    padding: 0.2rem 0;
    list-style: none;
}
.footer a:hover {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer ul li a {
    display: block;
}

.footer-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 8px;
    font-size: 16px;
    color: var(--color-text-2);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.footer-icons a:hover {
    color: var(--color-text);
    border-color: var(--color-border-strong);
    background: var(--color-surface);
    text-decoration: none;
}

/* ---------- Scroll-to-top ---------- */
#top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--color-text);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 0;
    font-size: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    box-shadow: var(--shadow-sm);
    transition: opacity var(--t-fast), transform var(--t-fast), background-color var(--t-fast);
}
#top.is-visible {
    display: flex;
    opacity: 0.9;
}
#top:hover {
    opacity: 1;
    transform: translateY(-2px);
    background-color: var(--color-text-pressed);
}
#top:focus {
    outline: 0;
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

/* ---------- Native dialog lightbox (product gallery) ---------- */
.lightbox {
    border: 0;
    padding: 0;
    margin: 0;
    inset: 0;
    background: transparent;
    color: #fff;
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    overflow: hidden;
}
.lightbox::backdrop {
    background: rgba(11, 11, 11, 0.88);
}
.lightbox__img,
.lightbox__video {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}
.lightbox__video {
    background: #000;
}
.lightbox__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 72px 88px;
    box-sizing: border-box;
}
.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.lightbox__close:hover,
.lightbox__nav:hover,
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
    background: rgba(0, 0, 0, 0.78);
    border-color: rgba(255, 255, 255, 0.85);
    outline: none;
}
.lightbox__close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 28px;
}
.lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    font-size: 32px;
}
.lightbox__nav:hover {
    transform: translateY(-50%) scale(1.05);
}
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav[hidden] { display: none; }
@media (max-width: 575px) {
    .lightbox__stage { padding: 56px 56px; }
    .lightbox__close { top: 8px; right: 8px; width: 36px; height: 36px; font-size: 24px; }
    .lightbox__nav { width: 40px; height: 40px; font-size: 28px; }
    .lightbox__nav--prev { left: 8px; }
    .lightbox__nav--next { right: 8px; }
}

/* ---------- Responsive ---------- */
@media all and (min-width: 992px) {
    .navbar .nav-item .dropdown-menu { display: none; }
    .navbar .nav-item:hover .dropdown-menu { display: block; }
    .navbar .nav-item .dropdown-menu { margin-top: 0; }
}

@media (max-width: 991px) {
    /* Mobile/tablet: nav row collapses to 0 height; expanded menu drops as floating panel */
    :root { --header-h: 64px; }
    .header-bottom {
        padding: 0;
    }
    .header-bottom .navbar-collapse {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: 0.5rem 1rem;
        z-index: 1;
    }
    .header-bottom .navbar-collapse:not(.show):not(.collapsing) {
        display: none;
    }
}

@media (max-width: 575px) {
    .brand-tagline { display: none; }
    .header-cta-label { display: none; }
    .header-cta { padding: 0.5rem 0.625rem; }
    .header-cta .icon { width: 16px; height: 16px; }
    .header-utilities { gap: 0.25rem; }
    .lang-switcher .lang-code { display: none; }
    .lang-switcher .lang-toggle { padding: 0 8px; }
}

@media only screen and (max-width: 767px) {
    .service-page .service-summary {
        position: static !important;
        margin-bottom: 1.5rem;
    }
}

@media only screen and (max-width: 420px) {
    .section-title { font-size: 1.25rem; }
    #top { width: 40px; height: 40px; bottom: 16px; right: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
    .service-card:hover .service-thumb img,
    .navbar-brand:hover .brand-mark,
    #top:hover,
    .btn:active,
    .btn-outline-primary:hover .icon-arrow-right {
        transform: none !important;
    }
    .brand-mark::after {
        transform: translate(5px, -5px) !important;
    }
    .consent-banner.is-visible { transform: none; }
    .sticky-cta-bar.is-hidden { transform: none; display: none; }
}

/* ---------- Cookie consent banner ---------- */
.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* Above Bootstrap sticky (1020), fixed (1030), modal (1050), popover/tooltip
       (1070-1080) — banner must always be the topmost layer until acknowledged. */
    z-index: 1090;
    background: var(--color-surface);
    color: var(--color-text-2);
    border-top: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 1rem 1.25rem;
    transform: translateY(100%);
    transition: transform var(--t-med);
}
.consent-banner.is-visible {
    transform: translateY(0);
}
.consent-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.25rem;
}
.consent-banner__text {
    flex: 1 1 320px;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}
.consent-banner__text a {
    color: var(--color-accent);
    text-decoration: underline;
}
.consent-banner__text a:hover {
    color: var(--color-accent-hover);
}
.consent-banner__options {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.875rem;
    line-height: 1.4;
}
.consent-banner__option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}
.consent-banner__option input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--color-accent);
    flex-shrink: 0;
}
.consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.consent-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.4rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.consent-banner__btn--accept {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.consent-banner__btn--accept:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
}
.consent-banner__btn--decline {
    background: transparent;
    color: var(--color-text-2);
    border-color: var(--color-border-2);
}
.consent-banner__btn--decline:hover {
    background: var(--color-surface-muted);
    color: var(--color-text);
}
.consent-banner__btn:focus {
    outline: 0;
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}
@media (max-width: 575px) {
    .consent-banner__inner {
        align-items: stretch;
    }
    .consent-banner__actions {
        width: 100%;
    }
    .consent-banner__btn {
        flex: 1 1 0;
    }
}

/* ---------- Page prose (long-form admin-authored content) ---------- */
.page-prose {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-2);
}
.page-prose h2,
.page-prose h3,
.page-prose h4 {
    color: var(--color-text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.011em;
}
.page-prose h2 { font-size: 1.5rem; }
.page-prose h3 { font-size: 1.25rem; }
.page-prose h4 { font-size: 1.0625rem; }
.page-prose p,
.page-prose ul,
.page-prose ol,
.page-prose blockquote,
.page-prose table {
    margin-bottom: 1rem;
}
.page-prose ul,
.page-prose ol {
    padding-left: 1.5rem;
}
.page-prose li + li {
    margin-top: 0.25rem;
}
.page-prose a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.page-prose a:hover {
    color: var(--color-accent-hover);
}
.page-prose blockquote {
    border-left: 3px solid var(--color-border-2);
    padding: 0.25rem 0 0.25rem 1rem;
    color: var(--color-text-3);
    font-style: italic;
}
.page-prose code {
    background: var(--color-surface-muted);
    padding: 0.1em 0.35em;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}
.page-prose pre {
    background: var(--color-surface-muted);
    padding: 1rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
}
.page-prose pre code {
    background: transparent;
    padding: 0;
}
.page-prose img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
.page-prose table {
    width: 100%;
    border-collapse: collapse;
}
.page-prose th,
.page-prose td {
    border: 1px solid var(--color-border);
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.page-prose th {
    background: var(--color-surface-muted);
    color: var(--color-text);
    font-weight: 600;
}

/* Services catalog (/services) — flat grouped list */
.services-catalog-lead {
    margin-bottom: 2rem;
    max-width: 60ch;
}
.services-catalog-group {
    padding: 0;
    margin-bottom: 2rem;
}
.services-catalog-group__title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}
.services-catalog-group__title a {
    color: var(--color-text);
    text-decoration: none;
}
.services-catalog-group__title a:hover {
    color: var(--color-accent);
}
.services-catalog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.services-catalog-row {
    position: relative;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.75rem;
    margin: 0 -0.75rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0.375rem;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.services-catalog-row:last-child {
    border-bottom: 0;
}
.services-catalog-row:hover {
    background: var(--color-surface-muted);
}
.services-catalog-row:hover .services-catalog-row__title {
    color: var(--color-accent);
}
.services-catalog-row__main {
    flex: 1 1 auto;
    min-width: 0;
}
.services-catalog-row__title {
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}
.services-catalog-row__title::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}
.services-catalog-row__title:focus-visible::after {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.services-catalog-row__badge {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    border-radius: 0.25rem;
    vertical-align: middle;
}
.services-catalog-row__exerpt {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: var(--color-text-3);
}
.services-catalog-row__price {
    flex: 0 0 auto;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}
.featured-products__more {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}
