/*
Theme Name: PointX
Description: Каталог геодезического оборудования PointX.
Version: 1.4.24
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: pointx
*/
:root {
    --ink: #1b1e23;
    --muted: #535d68;
    --paper: #f3f4f6;
    --line: #dfe3e8;
    --orange: #ff651f;
    --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Inter, system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #ad3c00; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.038em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.7vw, 3.5rem); }
h3 { font-size: 1.35rem; }
.wrap { width: min(100% - 64px, 1220px); margin-inline: auto; }
.section { padding-block: 76px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 5px; background: var(--orange); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.button, .menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 20px; border: 0; border-radius: 12px; font-weight: 750; }
.orange { background: var(--orange); color: var(--ink); }
.dark { background: var(--ink); color: var(--white); }
.button:hover { filter: brightness(.94); text-decoration: none; }
.text-link { font-weight: 750; white-space: nowrap; }
.site-header { position: relative; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; gap: 32px; min-height: 84px; }
.brand, .custom-logo-link { display: inline-flex; flex: none; align-items: center; }
.brand img, .custom-logo { width: 218px; max-height: 68px; object-fit: contain; }
.search { display: flex; align-items: center; flex: 1; max-width: 560px; min-width: 0; background: var(--paper); border-radius: 13px; padding: 5px; }
.search input { border: 0; background: transparent; flex: 1; min-width: 0; min-height: 39px; padding-inline: 12px; }
.search button { display: grid; place-items: center; width: 42px; height: 40px; border: 0; border-radius: 9px; background: var(--ink); color: white; }
.header-contact { margin-left: auto; }
#primary-nav { border-top: 1px solid var(--line); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; padding: 0; margin: 0; list-style: none; }
.links a { display: block; padding: 13px 0; font-size: .95rem; font-weight: 700; }
.links .current-menu-item a { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; }
.menu-toggle { display: none; background: var(--paper); }
.hero { padding: 46px 0 38px; background: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 48px; align-items: center; }
.hero-copy .lead { margin: 19px 0 26px; }
.stage { isolation: isolate; position: relative; overflow: hidden; display: grid; place-items: center; min-height: 420px; aspect-ratio: 1.16; border-radius: 34px; background: repeating-radial-gradient(circle at 74% 72%, transparent 0 24px, #1b1e230a 25px 26px), #f0f1f3; }
.stage::before { content: ""; position: absolute; z-index: -1; width: 63%; aspect-ratio: 1; border-radius: 50%; background: var(--orange); }
.stage-scanner::before { background: #d9eb78; }
.stage svg { width: 92%; height: 92%; filter: drop-shadow(0 18px 19px #181a2437); }
.stage-tag { position: absolute; right: 6%; bottom: 8%; background: white; border-radius: 30px; padding: 8px 16px; font-size: .82rem; font-weight: 750; box-shadow: 0 6px 20px #0001; }
.hero-switch { display: flex; gap: 16px; margin-top: 22px; }
.hero-switch button { background: transparent; border: 0; border-top: 3px solid var(--line); text-align: left; padding: 11px 10px 0 0; min-width: 142px; font-weight: 750; }
.hero-switch [aria-pressed="true"] { border-color: var(--orange); }
.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 8px; min-width: 0; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 18px; }
.category svg { grid-column: 1 / -1; width: 100%; height: 125px; background: var(--paper); border-radius: 12px; }
.category span { color: #a23a08; }
.category strong { line-height: 1.3; overflow-wrap: anywhere; }
.catalog-home { padding-top: 0; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.product { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.product-visual { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: #e9ecf0; overflow: hidden; }
.product-visual img, .product-visual svg { width: 100%; height: 100%; object-fit: contain; }
.badge { align-self: flex-start; border: 1px solid var(--line); padding: 4px 10px; border-radius: 20px; background: white; font-size: .8rem; font-weight: 750; }
.image-placeholder { color: #535d68; font-weight: 800; }
.product-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 17px; }
.product-body small, .product-body p { color: var(--muted); }
.product-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding-top: 8px; margin-top: auto; }
.product-bottom .text-link { font-size: .86rem; }
.empty { padding: 24px; border: 1px dashed #a9b0b9; border-radius: 16px; color: var(--muted); }
.scan-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: center; gap: clamp(16px, 3vw, 42px); padding: clamp(22px, 4vw, 52px); border-radius: 30px; background: #14171c; color: white; }
.scan-copy .eyebrow, .scan-copy .lead { color: #d5d9e0; }
.scan-copy .lead { margin: 14px 0 20px; }
.scan-visual { position: relative; display: grid; justify-items: end; padding: 8px; border: 1px solid #343942; border-radius: 18px; background: radial-gradient(ellipse at 54% 45%, #29313c, #111419 73%); }
.scan-visual canvas { display: block; width: 100%; height: auto; }
.scan-replay { margin: 0 6px 6px; min-height: 40px; padding: 6px 12px; border: 1px solid #626a75; border-radius: 9px; background: #20252d; color: white; font-size: .84rem; }
.scan-replay:disabled { cursor: default; opacity: .7; }
.used-section { background: #ffe8da; }
.used-grid, .single-product { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 36px; }
.used-art { display: grid; place-items: center; background: #fff8f2; border-radius: 24px; }
.used-art svg { width: 100%; max-height: 280px; }
.prose { margin-block: 18px; max-width: 72ch; overflow-wrap: anywhere; }
.prose p + p { margin-top: 1em; }
.prose a { text-decoration: underline; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 23px; }
.services a { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: white; }
.services h3 { display: flex; justify-content: space-between; gap: 10px; }
.services p { margin-top: 9px; color: var(--muted); }
.faq { max-width: 830px; padding-top: 0; }
.faq h2 { margin-bottom: 24px; }
.faq details { background: white; border: 1px solid var(--line); border-radius: 14px; margin-top: 9px; }
.faq summary { cursor: pointer; font-weight: 750; padding: 16px 20px; }
.faq .prose { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.site-footer { background: var(--ink); color: white; padding-block: 32px; }
.inner { min-height: 55vh; }
.inner h1 { font-size: clamp(2rem, 4.5vw, 4.1rem); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-block: 25px; }
.filters label { display: grid; gap: 4px; font-weight: 650; }
.filters select, .filters input { min-height: 48px; min-width: 0; width: 100%; max-width: 100%; padding: 8px 10px; background: white; border: 1px solid #a6adb5; border-radius: 10px; }
.filters .text-link { padding-bottom: 11px; }
.pagination { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 24px; }
.pagination .page-numbers { padding: 6px 12px; border-radius: 8px; background: white; }
.pagination .current { background: var(--ink); color: white; }
.single-product { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.single-product h1 { overflow-wrap: anywhere; font-size: clamp(1.85rem, 3.5vw, 3.35rem); }
.single-product .product-visual { border-radius: 22px; }
.price { margin-top: 14px; font-size: 1.4rem; font-weight: 800; }
.availability { margin-top: 5px; }
.single-product .button { margin-top: 14px; }
.screen-reader-text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
.screen-reader-text:focus { clip-path: none; width: auto; height: auto; z-index: 3; background: white; padding: 10px; }
@media (max-width: 1000px) {
    .stage { min-height: 0; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .wrap { width: calc(100% - 34px); }
    .section { padding-block: 42px; }
    .masthead { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-block: 11px; }
    .brand img, .custom-logo { width: 165px; }
    .header-contact { display: none; }
    .menu-toggle { display: inline-flex; grid-area: 1 / 2; min-height: 42px; padding: 6px 13px; }
    .search { grid-column: 1 / -1; max-width: none; }
    #primary-nav { display: none; border: 0; }
    #primary-nav.open { display: block; position: absolute; top: calc(100% + 6px); inset-inline: 0; }
    #primary-nav .links { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; background: white; padding: 6px 14px; box-shadow: 0 14px 36px #1b1e2326; }
    #primary-nav li + li { border-top: 1px solid var(--line); }
    .hero { padding: 26px 0 20px; }
    .hero-grid, .used-grid, .scan-panel, .single-product { grid-template-columns: 1fr; gap: 20px; }
    .stage { border-radius: 22px; }
    .hero-copy .lead { margin: 13px 0 16px; }
    .hero-switch { margin-top: 16px; }
    .hero-switch button { min-width: 0; flex: 1; }
    .section-head { align-items: start; flex-direction: column; gap: 10px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .category { padding: 9px; }
    .category svg { height: 100px; }
    .services { grid-template-columns: 1fr; }
    .catalog-home, .faq { padding-top: 0; }
}
@media (max-width: 430px) {
    .product-grid { grid-template-columns: 1fr; }
    .stage-tag { font-size: .72rem; }
}

/* Catalog navigation and equipment tabs */
.hero-number { display: block; margin-bottom: 4px; color: var(--muted); font: 700 .72rem/1.3 ui-monospace, monospace; letter-spacing: .08em; }
.hero-switch [aria-pressed="true"] .hero-number { color: #a23a08; }
.stage-level::before { background: #ffc5a5; }
.stage-gnss::before { background: #c6d7ff; }
.category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Measurement display */
.motion-switch { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.motion-switch button { min-height: 42px; padding: 7px 14px; border-radius: 9px; border: 1px solid #626a75; background: transparent; color: white; }
.motion-switch [aria-pressed="true"] { background: #ff8b50; border-color: #ff8b50; color: var(--ink); font-weight: 700; }

/* Contact and footer */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 28px; }
.contact-card { display: flex; flex-direction: column; align-items: start; gap: 12px; min-height: 165px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; overflow-wrap: anywhere; }
.contact-card h2 { font-size: 1.35rem; }
.contact-card strong { margin-top: auto; color: #973400; }
.contact-value { color: var(--muted); }
.site-footer { background: #fff; color: var(--ink); border-top: 1px solid var(--line); }

/* Cart and checkout */
.masthead { gap: clamp(12px, 2vw, 28px); }
.cart-link { flex: none; background: #ffe7d8; }
.cart-icon { flex: none; }
.cart-link span { background: var(--ink); color: white; padding: 1px 7px; border-radius: 16px; }
.product-body .add-to-cart { align-self: start; }
.cart { max-width: 780px; }
.cart-items { padding: 0; list-style: none; }
.cart-items li { display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; align-items: center; gap: 12px; margin-bottom: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.cart-items li span { overflow-wrap: anywhere; }
.cart-items li small { display: block; color: var(--muted); }
.cart-items button { background: transparent; border: 0; text-decoration: underline; }
.cart-form { display: grid; gap: 14px; max-width: 620px; margin-top: 24px; padding: clamp(16px, 4vw, 30px); border: 1px solid var(--line); border-radius: 18px; background: white; }
.cart-form h2 { font-size: 1.45rem; }
.cart-form label { display: grid; gap: 5px; }
.cart-form input:not([type="checkbox"]), .cart-form textarea, .cart-form select, .cart-items input { width: 100%; min-height: 42px; border: 1px solid #a6adb5; border-radius: 8px; padding: 6px 10px; font: inherit; }
.cart-form .cart-consent { grid-template-columns: auto 1fr; align-items: start; }
.cart-consent a { text-decoration: underline; }
.cart-status { margin-top: 12px; font-weight: 700; }
@media (max-width: 760px) {
    .masthead { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; }
    .menu-toggle { grid-area: 1 / 3; padding-inline: 8px; gap: 4px; }
    .cart-link { grid-area: 1 / 2; min-height: 42px; gap: 4px; padding-inline: 7px; font-size: .83rem; }
    .cart-icon { width: 15px; height: 15px; }
    .masthead .brand img, .masthead .custom-logo { width: min(165px, 100%); }
    .hero-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.category-picker { position: relative; min-width: min(100%, 145px); max-width: 100%; }
.category-picker:first-of-type { min-width: min(100%, 210px); }
.category-picker summary { display: grid; gap: 4px; list-style: none; cursor: pointer; font-weight: 650; }
.category-picker summary::-webkit-details-marker { display: none; }
.category-picker summary strong { position: relative; display: flex; align-items: center; min-height: 48px; padding: 8px 38px 8px 12px; border: 1px solid #a6adb5; border-radius: 10px; background: white; }
.category-picker summary strong::after { content: ""; position: absolute; right: 16px; width: 7px; height: 7px; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); transition: transform .18s ease; }
.category-picker[open] summary strong::after { transform: rotate(225deg); }
.category-picker nav { position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 1; display: grid; gap: 3px; max-height: 18rem; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 12px 30px #1b1e2320; }
.category-picker[open] nav { animation: category-open .18s ease-out; }
.category-picker nav a { padding: 8px 10px; border-radius: 7px; font-size: .92rem; }
.category-picker nav a:hover, .category-picker [aria-current] { background: #fff0e6; color: #873200; text-decoration: none; }
@keyframes category-open { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
    .category-picker[open] nav { animation: none; }
    .category-picker summary strong::after { transition: none; }
}
.availability { align-self: flex-start; display: inline-block; width: fit-content; padding: 4px 9px; border-radius: 7px; background: #fff0e6; color: #873200; font-size: .85rem; font-weight: 700; }
.availability.availability-stock { background: #e7f4eb; color: #235f35; }
@media (max-width: 560px) { .category-picker { flex-basis: 100%; } }

.contact-map { margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; }
.contact-map-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; }
.contact-map-heading h2 { font-size: 1.45rem; }
.contact-map-heading p { margin-top: 5px; color: var(--muted); }
.contact-map iframe { display: block; width: 100%; height: clamp(280px, 48vw, 400px); border: 0; }



.pointx-icon { flex: none; vertical-align: middle; }
#primary-nav .links a { display: flex; align-items: center; gap: 7px; }
#primary-nav .pointx-icon { color: #9b390c; }

.category-picker .picker-empty { padding: 7px 10px; color: var(--muted); font-size: .86rem; }


.catalog-heading { margin-top: 28px; }
.catalog-heading h2, .brand-strip h2 { font-size: 1.4rem; }
.catalog-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.catalog-category-grid .category { transition: transform .18s ease, border-color .18s ease; }
.catalog-category-grid .category:hover { transform: translateY(-3px); border-color: var(--orange); text-decoration: none; }
.catalog-category-grid .category svg { height: clamp(112px, 22vw, 260px); }
.catalog-category-grid .category strong { padding: 5px 0; font-size: clamp(.95rem, 1.8vw, 1.35rem); }
.catalog-category-grid .category > span[aria-hidden] { align-self: center; }
@media (min-width: 900px) {
    .catalog-category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .catalog-category-grid .category { grid-column: span 2; padding: 17px; }

}
.category-art-fallback { grid-column: 1 / -1; display: grid; place-items: center; background: var(--paper); border-radius: 12px; }
.catalog-category-grid .category-art-fallback svg { width: 32px; }
.catalog-back { display: inline-block; margin-top: 5px; }
.brand-strip { margin-top: 22px; }
.brand-tiles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.brand-tiles a { display: grid; align-content: center; justify-items: center; gap: 4px; padding: 8px 14px; min-height: 58px; border: 1px solid var(--line); border-radius: 12px; background: white; font-weight: 700; }
.brand-tiles img { width: 104px; height: 34px; object-fit: contain; }
.brand-tiles [aria-current] { border-color: #cf652c; background: #fff0e6; }
@media (prefers-reduced-motion: reduce) {
    .catalog-category-grid .category { transition: none; }
    .catalog-category-grid .category:hover { transform: none; }
}

.catalog-category-header { display: grid; justify-items: start; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.catalog-category-header a { color: var(--muted); font-size: .92rem; font-weight: 700; }
.catalog-category-header h1 { font-size: clamp(2.1rem, 4.2vw, 3.7rem); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
}


.product-spec-section { max-width: 760px; margin-top: 34px; }
.product-spec-section h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.product-spec-table, .product-spec-summary { margin: 10px 0; overflow-wrap: anywhere; }
.product-spec-table { border: 1px solid var(--line); border-radius: 14px; background: white; }
.product-spec-table > div, .product-spec-summary > div { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.product-spec-table > div { padding: 12px 16px; }
.product-spec-table > div + div { border-top: 1px solid var(--line); }
.product-spec-summary { font-size: .85rem; }
.product-spec-summary > div { border-top: 1px solid var(--line); padding: 5px 0; }
.product-spec-table dt, .product-spec-summary dt { color: var(--muted); }
.product-spec-table dd, .product-spec-summary dd { margin: 0; font-weight: 700; }

/* Equipment switcher */
.hero-switch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hero-switch .hero-tab { position: relative; isolation: isolate; display: grid; align-content: center; gap: 4px; min-width: 0; min-height: 84px; padding: 11px 32% 11px 13px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; transition: background .2s ease, border-color .2s ease; }
.hero-tab-tachy { --tab-accent: #ee6428; --tab-surface: #fff1e8; }
.hero-tab-level { --tab-accent: #56794e; --tab-surface: #eef6e9; }
.hero-tab-scanner { --tab-accent: #78862c; --tab-surface: #f4f7df; }
.hero-tab-gnss { --tab-accent: #536ca2; --tab-surface: #eef3ff; }
.hero-switch .hero-tab:hover, .hero-switch .hero-tab[aria-pressed="true"] { border-color: var(--tab-accent); background: var(--tab-surface); }
.hero-tab .hero-number { margin: 0; }
.hero-tab-label { line-height: 1.18; overflow-wrap: anywhere; }
.hero-tab svg { position: absolute; z-index: -1; inset: auto -5px 3px auto; width: 39%; height: 70px; opacity: .75; pointer-events: none; }
.hero-tab[aria-pressed="true"] svg { opacity: 1; }
.stage-trace { position: absolute; inset: 9%; border: 1px solid #25293222; border-radius: 50%; pointer-events: none; }
.stage-level .stage-trace { border-radius: 14px; transform: rotate(-8deg); }
.stage-scanner .stage-trace { border-style: dashed; }
.stage-gnss .stage-trace { inset: 17% 5%; transform: rotate(-24deg); }
.hero-grid:not([hidden]) .stage > svg { animation: equipment-enter .38s ease-out both; }
@keyframes equipment-enter { from { opacity: .35; transform: translateY(9px) scale(.98); } to { opacity: 1; transform: none; } }

/* Category filters */
@media (max-width: 760px) {
    .hero-switch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-switch .hero-tab { min-height: 72px; }
    .hero-tab svg { height: 58px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-switch .hero-tab { transition: none; }
    .hero-grid:not([hidden]) .stage > svg { animation: none; }
}

.brand-tiles a { position: relative; isolation: isolate; }
.brand-glow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: #ef731f; stroke-width: 1.6; stroke-dasharray: 101 101; stroke-dashoffset: 101; opacity: 0; transition: stroke-dashoffset .65s ease, opacity .24s ease; }
.brand-glow rect { stroke-linecap: round; }
.brand-tiles a:hover .brand-glow, .brand-tiles a:focus-visible .brand-glow { opacity: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 3px #ff9b56); }
@media (prefers-reduced-motion: reduce) { .brand-glow { transition: none; } }

.site-footer { padding-block: 40px 20px; background: #f7f6f3; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.footer-signature { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 14px; font-size: 2rem; font-weight: 850; letter-spacing: -.065em; line-height: 1; }
.footer-signature:hover { text-decoration: none; }
.footer-emblem { flex: none; }
.footer-signature-x { color: #aa3b0b; }
.footer-contacts { display: grid; justify-items: start; gap: 3px; overflow-wrap: anywhere; }
.footer-contact { display: inline-flex; gap: 8px; align-items: center; min-height: 36px; font-weight: 700; }
.footer-nav .pointx-icon, .footer-contact .pointx-icon { color: #9b390c; }
.footer-nav .links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.footer-nav .links a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-block: 8px; border-bottom: 1px solid #dedbd5; }
.footer-nav .links a:hover, .footer-nav .links a:focus-visible { color: #9b390c; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 26px; padding-top: 15px; border-top: 1px solid #dedbd5; color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.search:focus-within { outline: 2px solid #ad3c00; outline-offset: 2px; }
.search input:focus { outline: none; }
.search button:focus-visible { outline: 2px solid white; outline-offset: -4px; }

.product-visual > img, .product-visual > svg { position: absolute; inset: 0; }

.product-visual.product-photo { aspect-ratio: 1; }
.product-visual.product-photo > img { object-fit: cover; }

.quick-view { width: min(680px, calc(100% - 24px)); max-height: 90dvh; padding: clamp(14px, 3vw, 26px); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); }
.quick-view::backdrop { background: #15191ec0; }
.quick-head, .quick-actions, .quick-navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quick-head h2 { font-size: clamp(1.3rem, 4vw, 1.9rem); overflow-wrap: anywhere; }
.quick-head .button, .quick-navigation .button { background: var(--paper); min-width: 44px; padding: 6px 12px; }
.quick-gallery { margin: 14px 0; }
.quick-gallery img { display: block; width: 100%; height: clamp(210px, 48vh, 410px); object-fit: contain; background: var(--paper); border-radius: 12px; }
.quick-navigation { justify-content: center; margin-top: 8px; }
.quick-content { margin: 14px 0; overflow-wrap: anywhere; }
.quick-description img { max-width: 100%; height: auto; }
.quick-actions { flex-wrap: wrap; margin: 14px 0; }

.single-product .product-visual:has(> img) {
    aspect-ratio: auto;
    height: clamp(220px, 60vh, 560px);
    background: transparent;
}
.quick-gallery img {
    height: clamp(210px, 54vh, 480px);
    background: transparent;
}

.product-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.badge-warranty { background: #eaf4ee; color: #245b3c; border-color: #c9dfd0; }
.product-cost { display: grid; gap: 2px; }
.product-cost > span { color: var(--muted); font-size: .8rem; }
.product-cost > strong { font-size: 1.13rem; line-height: 1.2; overflow-wrap: anywhere; }
.single-product .product-cost, .quick-actions .product-cost { margin-top: 14px; padding: 10px 15px; border-left: 3px solid var(--orange); background: #fff; border-radius: 0 10px 10px 0; }
.single-product .product-cost > strong, .quick-actions .product-cost > strong { font-size: 1.55rem; }
.photo-enlarge { display: block; width: fit-content; margin: 8px auto 0; font-size: .9rem; }
.quick-gallery img, .product-photo-column .product-visual img { cursor: zoom-in; }

.photo-viewer { box-sizing: border-box; width: min(96vw, 1440px); height: 94dvh; max-width: none; max-height: none; padding: 16px 62px 14px; border: 0; border-radius: 15px; background: transparent; }
.photo-viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; }
.photo-viewer::backdrop { background: #0c0e12d9; }
.photo-viewer-frame { position: relative; max-width: 100%; }
.photo-viewer img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(94dvh - 118px); object-fit: contain; color: white; }
.photo-viewer .photo-viewer-close { position: absolute; z-index: 2; top: 4px; left: calc(100% + 10px); display: grid; place-items: center; }
.photo-viewer button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #17191d; font-size: 1.6rem; line-height: 1; }

.photo-viewer-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; color: white; font-variant-numeric: tabular-nums; }
.photo-viewer-controls span { min-width: 62px; text-align: center; }

.product-details { max-width: 760px; }
.product-details .prose { max-width: none; }

.photo-close-ring { position: absolute; inset: -4px; width: 48px; height: 48px; overflow: visible; pointer-events: none; transform: rotate(-90deg); }
.photo-close-ring circle { fill: none; stroke: #ff894b; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 101 101; stroke-dashoffset: 101; opacity: 0; transition: stroke-dashoffset .48s ease, opacity .18s ease; }
.photo-viewer-close button.ring-hover:hover circle, .photo-viewer.keyboard-navigation .photo-viewer-close button:focus-visible circle { stroke-dashoffset: 0; opacity: 1; }
@media (max-width: 600px) {
    .photo-viewer { padding: 60px 14px 14px; }
    .photo-viewer .photo-viewer-close { top: auto; bottom: calc(100% + 8px); left: auto; right: 4px; }
}
@media (prefers-reduced-motion: reduce) { .photo-close-ring circle { transition: none; } }

.photo-viewer-close button { position: relative; display: grid; place-items: center; }
.photo-viewer-close button:focus-visible { outline: none; }

.photo-viewer:focus { outline: none; }

.product-back { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 6px 14px 6px 7px; border: 1px solid var(--line); border-radius: 999px; background: white; font-size: .9rem; font-weight: 700; }
.product-back span { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #fff0e6; color: #9b390c; }
.product-back:hover { border-color: #edba9e; text-decoration: none; }
.cart-item-summary { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cart-item-summary img { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 8px; }
@media (max-width: 480px) { .cart-item-summary { grid-column: 1 / -1; } }

.cart-items li { grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px 18px; padding: 14px; border-radius: 16px; }
.cart-item-summary { gap: 14px; font-weight: 750; line-height: 1.3; }
.cart-item-summary img { width: 76px; height: 76px; border-radius: 11px; }
.cart-item-summary small { margin-top: 5px; color: var(--ink); font-size: 1rem; font-weight: 800; }
.cart-stepper { display: grid; grid-template-columns: 36px 36px 36px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #f7f8fa; }
.cart-stepper button { min-height: 40px; padding: 0; font-weight: 700; text-decoration: none; }
.cart-stepper button:hover { color: #9b390c; }
.cart-stepper input { min-height: 40px; appearance: textfield; border: 0; padding: 0; text-align: center; background: transparent; }
.cart-stepper input::-webkit-inner-spin-button, .cart-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.cart-items .cart-remove { min-height: 40px; padding: 4px 2px; color: var(--muted); font-size: .85rem; text-decoration: none; }
.cart-items .cart-remove:hover { color: #9b390c; text-decoration: underline; }
@media (max-width: 480px) {
    .cart-items li { grid-template-columns: 1fr auto; }
    .cart-stepper { justify-self: start; }
    .cart-item-summary img { width: 64px; height: 64px; }
}

.cart[data-cart] { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; gap: 20px 24px; max-width: none; margin-top: 24px; }
.cart-products, .cart[data-cart] .cart-form { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 20px; }
.cart-products { padding: clamp(14px, 2vw, 24px); }
.cart-products-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.cart-products-head h2 { font-size: 1.45rem; }
.cart-products-head a { color: #923b12; font-size: .9rem; font-weight: 700; }
.cart-items { margin: 0; }
.cart-items li { grid-template-columns: minmax(0, 1fr) auto; margin: 0; padding: 16px 0; border: 0; border-radius: 0; }
.cart-items li + li { border-top: 1px solid var(--line); }
.cart-items li:last-child { padding-bottom: 0; }
.cart-item-summary { grid-column: auto; }
.cart-item-summary img { width: 78px; height: 78px; object-fit: contain; background: #f3f4f6; }
.cart-item-actions { display: grid; justify-items: center; gap: 3px; }
.cart[data-cart] .cart-form { margin: 0; max-width: none; }
.cart[data-cart] .cart-status, .cart[data-cart] [data-cart-empty] { grid-column: 1 / -1; }
.cart-status:empty { display: none; }
@media (max-width: 800px) { .cart[data-cart] { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
    .cart-items li { grid-template-columns: minmax(0, 1fr); }
    .cart-item-actions { display: flex; align-items: center; gap: 14px; }
    .cart-item-summary img { width: 64px; height: 64px; }
}
