:root {
  --bg: oklch(0.982 0.004 247);
  --surface: oklch(1 0 0);
  --surface-soft: oklch(0.965 0.006 247);
  --ink: oklch(0.2 0.035 257);
  --muted: oklch(0.42 0.028 255);
  --line: oklch(0.88 0.014 248);
  --brand: oklch(0.57 0.19 255);
  --brand-dark: oklch(0.43 0.17 255);
  --green: oklch(0.52 0.13 155);
  --red: oklch(0.56 0.18 28);
  --radius: 12px;
  --header: 0 2px 0 oklch(0.89 0.012 247 / 0.65);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Montserrat, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { max-width: 100%; margin: 0; letter-spacing: -0.025em; line-height: 1.08; overflow-wrap: anywhere; text-wrap: balance; }
p { text-wrap: pretty; }
button, input, textarea, select { font: inherit; }
.container { width: min(1240px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: var(--surface); color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.topbar__inner { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 6px; }
.topbar a { color: var(--brand); text-decoration: none; font-weight: 800; }
.topbar__links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 30; background: white; box-shadow: var(--header); }
.main-header { min-height: 96px; display: grid; grid-template-columns: auto minmax(260px, 1fr) auto; gap: 24px; align-items: center; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-size: 26px; font-weight: 900; text-decoration: none; }
.brand img { width: 18px; height: 18px; }
.search { position: relative; display: flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; overflow: visible; }
.search input { min-width: 0; width: 100%; height: 46px; border: 0; outline: 0; background: transparent; padding: 0 14px; color: var(--ink); font-weight: 700; }
.search input::placeholder { color: oklch(0.38 0.026 255); opacity: 1; }
.search > button { flex: 0 0 50px; width: 50px; height: 46px; border: 0; background: var(--brand); color: white; cursor: pointer; border-radius: 0 9px 9px 0; }
.search-suggestions { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80; display: grid; max-height: 360px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 12px 26px oklch(0.18 0.03 255 / 0.14); }
.search .search-suggestion { width: 100%; min-height: 0; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover, .search-suggestion:focus-visible { background: var(--surface-soft); outline: none; }
.search-suggestion strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.search-suggestion span { display: block; min-width: 0; }
.search-suggestion strong + span { margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestion b { color: var(--brand-dark); font-size: 13px; white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 0 12px; text-decoration: none; font-weight: 900; color: var(--ink); }
.icon-link:hover, .icon-link:focus-visible { border-color: var(--brand); color: var(--brand); }
.cart-count { min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--brand); color: white; font-size: 12px; padding: 0 6px; }
.nav { border-top: 0; background: var(--brand); }
.nav__inner { min-height: 48px; display: flex; align-items: center; gap: 22px; overflow: visible; }
.nav a { flex: 0 0 auto; text-decoration: none; color: white; font-weight: 900; font-size: 14px; opacity: 0.95; }
.nav a.is-strong { color: white; background: var(--brand-dark); border-radius: 0; padding: 14px 18px; }
.nav a:hover, .nav a:focus-visible { color: white; opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav a.is-strong:hover, .nav a.is-strong:focus-visible { color: white; background: color-mix(in oklch, var(--brand-dark) 86%, black); text-decoration: none; }
.nav-drop { position: relative; flex: 0 0 auto; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }
.nav-menu { position: absolute; top: 100%; left: 0; min-width: 310px; max-height: min(620px, calc(100vh - 150px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: none; background: white; border: 1px solid var(--line); box-shadow: 0 8px 16px oklch(0.18 0.03 255 / 0.12); z-index: 40; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu, .nav-drop.is-open .nav-menu { display: grid; }
.nav-menu a { color: var(--ink); padding: 12px 16px; border-bottom: 1px solid var(--line); opacity: 1; }
.nav-menu a:hover { color: var(--brand); background: var(--surface-soft); text-decoration: none; }
.nav-drop--mega { position: static; }
.catalog-mega { left: max(16px, calc((100vw - 1240px) / 2)); right: max(16px, calc((100vw - 1240px) / 2)); min-width: 0; width: auto; height: min(620px, calc(100vh - 150px)); max-height: min(620px, calc(100vh - 150px)); grid-template-columns: 300px minmax(0, 1fr); border-radius: 0 0 14px 14px; overflow: hidden; }
.catalog-mega:not(.is-ready) .mega-side, .catalog-mega:not(.is-ready) .mega-content { visibility: hidden; }
.mega-side { min-height: 0; max-height: 100%; background: white; border-right: 1px solid var(--line); padding: 10px 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mega-side a { display: flex; justify-content: space-between; gap: 14px; padding: 12px 18px; font-size: 15px; border: 0; color: var(--ink); }
.mega-side a::after { content: "›"; color: oklch(0.72 0.01 255); font-size: 28px; line-height: 1; }
.mega-side a:hover, .mega-side a.is-active { color: var(--ink); background: var(--surface-soft); }
.mega-content { min-height: 0; max-height: 100%; padding: 24px 28px 30px; background: oklch(0.985 0.004 255); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.mega-panel { display: none; }
.mega-panel.is-active { display: block; }
.mega-panel h3 { margin: 0 0 22px; font-size: 26px; letter-spacing: -0.02em; }
.mega-links { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); column-gap: 64px; row-gap: 16px; }
.mega-links a { border: 0; padding: 0; color: var(--ink); font-size: 17px; font-weight: 700; white-space: normal; line-height: 1.35; }
.mega-links a:hover { color: var(--brand); background: transparent; }
.hero { padding: clamp(28px, 5vw, 58px) 0 34px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); gap: 18px; align-items: stretch; }
.hero-main { min-height: 430px; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.72fr); gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.hero-main > *, .hero-grid > *, .catalog-layout > *, .detail > *, .cart-layout > *, .account-grid > * { min-width: 0; }
.hero-copy { padding: clamp(24px, 4vw, 48px); }
.hero-copy p { overflow-wrap: anywhere; }
.label { display: inline-flex; width: fit-content; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--brand); font-size: 13px; font-weight: 900; padding: 7px 10px; }
.label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 5vw, 4.4rem); max-width: 760px; }
.hero p { margin: 20px 0 0; max-width: 62ch; color: var(--muted); font-size: 17px; }
.hero-media { height: 100%; min-height: 360px; background: var(--surface-soft); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero { background: linear-gradient(90deg, oklch(0.96 0.006 255), oklch(0.91 0.015 255)); border-bottom: 1px solid var(--line); }
.shop-hero__inner { min-height: 430px; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.1fr); align-items: center; gap: 28px; }
.shop-hero__copy { padding: 34px 0; }
.shop-hero__copy h1 { margin-top: 16px; font-size: clamp(2.1rem, 4vw, 3.35rem); max-width: 680px; }
.shop-hero__copy p { color: var(--muted); max-width: 58ch; margin: 18px 0 0; font-size: 17px; }
.shop-hero__media { align-self: stretch; display: flex; align-items: end; justify-content: center; padding-top: 28px; }
.shop-hero__media img { width: 100%; max-height: 420px; object-fit: contain; }
.hero-dots { display: flex; gap: 9px; margin-top: 28px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; padding: 0; background: white; border: 1px solid oklch(0.75 0.02 292); cursor: pointer; transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }
.hero-dots button.is-active, .hero-dots button[aria-current="true"] { background: var(--brand); border-color: var(--brand); }
.hero-dots button:hover, .hero-dots button:focus-visible { border-color: var(--brand); transform: scale(1.12); outline: none; }
.home-shop { padding: 28px 0 18px; }
.home-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.catalog-box { height: 460px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); overflow: hidden; }
.catalog-box__title { background: var(--brand); color: white; padding: 14px 18px; font-weight: 900; }
.catalog-box__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.catalog-box a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; }
.catalog-box a:last-child { border-bottom: 0; }
.catalog-box a:hover { color: var(--brand); background: var(--surface-soft); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 26px 0 18px; color: var(--muted); font-weight: 600; }
.breadcrumbs a { color: var(--brand); text-decoration: none; }
.category-shell { display: block; padding-bottom: 44px; }
.category-filter-shell { margin-bottom: 22px; }
.side-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; margin-bottom: 20px; }
.side-card h2, .side-card h3 { padding: 18px 20px; background: oklch(0.9 0 0); font-size: 24px; }
.side-card a { display: block; padding: 16px 20px; color: var(--brand); text-decoration: none; border-top: 1px solid var(--line); font-size: 17px; }
.filter-mobile-toggle { display: inline-flex; width: auto; justify-content: center; min-width: 178px; margin: 0 0 18px; padding: 0 16px; border-color: color-mix(in oklch, var(--brand) 55%, var(--line)); background: white; color: var(--brand-dark); box-shadow: 0 1px 0 oklch(0.9 0.01 255); }
.filter-mobile-toggle:hover, .filter-mobile-toggle:focus-visible { background: oklch(0.96 0.025 255); border-color: var(--brand); color: var(--brand); }
.filter-mobile-toggle.is-open { background: var(--brand); border-color: var(--brand); color: white; }
.category-filter-shell.is-mobile-collapsed { display: none; }
.filter-toggle-icon { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; color: currentColor; }
.filter-toggle-icon svg { width: 18px; height: 18px; display: block; }
.parameter-filter { border: 1px solid var(--line); border-radius: 14px; background: white; overflow: hidden; min-width: 0; }
.filter-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px; }
.filter-panel-head h3 { margin: 0; font-size: 24px; }
.filter-panel-toggle { min-height: 40px; border-radius: 10px; border: 1px solid color-mix(in oklch, var(--brand) 45%, var(--line)); background: white; color: var(--brand-dark); padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 900; cursor: pointer; }
.filter-panel-toggle:hover, .filter-panel-toggle:focus-visible { background: oklch(0.96 0.025 255); border-color: var(--brand); color: var(--brand); }
.filter-panel-toggle svg { width: 17px; height: 17px; }
.parameter-filter.is-panel-collapsed .filter-block, .parameter-filter.is-panel-collapsed .filter-actions { display: none; }
.parameter-filter.is-panel-collapsed .filter-panel-toggle svg { transform: rotate(180deg); }
.parameter-filter input[type="checkbox"] { accent-color: var(--brand); }
.filter-block { padding: 18px 20px; border-top: 1px solid var(--line); }
.filter-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 20px; margin-bottom: 14px; }
.filter-title button { width: 34px; height: 34px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 900; }
.filter-title button:hover, .filter-title button:focus-visible { color: var(--brand); border-color: var(--line); background: var(--surface-soft); }
.filter-block.is-collapsed .filter-content { display: none; }
.filter-block.is-collapsed .filter-title button { transform: rotate(180deg); }
.range-inputs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; max-width: 100%; }
.range-inputs input { width: 100%; min-width: 0; box-sizing: border-box; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.range-slider { position: relative; height: 26px; margin-top: 16px; }
.range-track { --range-start: 0%; --range-end: 100%; position: absolute; left: 0; right: 0; top: 10px; height: 6px; background: linear-gradient(90deg, oklch(0.88 0.014 248) 0 var(--range-start), var(--brand) var(--range-start) var(--range-end), oklch(0.88 0.014 248) var(--range-end) 100%); border-radius: 999px; }
.range-slider input[type="range"] { position: absolute; inset: 0; width: 100%; height: 26px; padding: 0; border: 0; background: transparent; pointer-events: none; appearance: none; }
.range-slider input[type="range"]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid white; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); cursor: pointer; pointer-events: auto; }
.range-slider input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; border: 3px solid white; background: var(--brand); box-shadow: 0 0 0 1px var(--brand); cursor: pointer; pointer-events: auto; }
.range-scale { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 12px; font-weight: 800; }
.filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px 20px; border-top: 1px solid var(--line); }
.category-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.category-toolbar select { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 42px 0 14px; font-size: 15px; font-weight: 900; color: var(--ink); background: white; box-shadow: 0 1px 0 oklch(0.9 0.01 255); cursor: pointer; }
.category-toolbar select:hover, .category-toolbar select:focus-visible { border-color: var(--brand); outline: 0; }
.category-intro { margin: 0 0 18px; color: var(--muted); }
.category-intro h1 { margin: 0 0 10px; color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.015em; }
.category-intro p { margin: 0; max-width: 86ch; }
.implantshop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: white; }
.implantshop-card { min-height: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.implantshop-card__media { width: 100%; height: 150px; flex: 0 0 150px; display: flex; align-items: center; justify-content: center; background: white; margin-bottom: 10px; padding: 10px; overflow: hidden; }
.implantshop-card__media img { max-width: 82%; max-height: 82%; width: auto; height: auto; object-fit: contain; }
.implantshop-card__media img.is-tall-image { max-width: 64%; max-height: 64%; }
.implantshop-card .price-line { margin-top: auto; }
.implantshop-card .price { color: var(--brand-dark); font-size: 18px; }
.implantshop-card .product-title { margin: 8px 0 8px; min-height: 3.9em; font-size: 12px; line-height: 1.3; color: var(--ink); letter-spacing: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-row { display: grid; gap: 4px; margin-bottom: 12px; color: var(--muted); font-size: 10px; line-height: 1.22; }
.card-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-stock { color: oklch(0.55 0.16 145); font-weight: 900; }
.implantshop-card .button { width: auto; min-width: 86px; min-height: 34px; align-self: center; border-radius: 8px; padding: 0 12px; font-size: 12px; }
.home-main { display: grid; gap: 16px; }
.main-banner { height: 460px; display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(320px, 0.72fr); gap: 18px; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(90deg, white, oklch(0.955 0.006 255)); overflow: hidden; }
.main-banner__copy { min-width: 0; height: 100%; display: grid; grid-template-rows: auto minmax(0, auto) minmax(0, 1fr) auto auto; align-content: center; padding: clamp(24px, 4vw, 42px); overflow: hidden; }
.main-banner h1 { max-width: 620px; max-height: 3.2em; margin: 14px 0 0; font-size: clamp(2rem, 3.65vw, 3.15rem); line-height: 1.04; overflow: hidden; text-wrap: balance; }
.main-banner p { color: var(--muted); max-width: 58ch; max-height: 4.8em; margin: 16px 0 0; font-size: clamp(1rem, 1.5vw, 1.2rem); overflow: hidden; }
.main-banner__media { min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; overflow: hidden; }
.main-banner__media img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; }
.promo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini-promo { min-height: 108px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 18px; text-decoration: none; }
.mini-promo strong { display: block; font-size: 17px; }
.mini-promo span { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.side-promos { display: grid; gap: 18px; }
.promo { min-height: 206px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; }
.promo strong { font-size: 24px; line-height: 1.1; }
.promo span { color: var(--muted); font-weight: 700; margin-top: 8px; display: block; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; padding: 0 16px; font-weight: 900; cursor: pointer; }
.button--primary { border-color: var(--brand); background: var(--brand); color: white; }
.button--primary:hover, .button--primary:focus-visible { background: var(--brand-dark); border-color: var(--brand-dark); }
.button--wide { width: 100%; }
.button.filter-mobile-toggle { display: inline-flex; }
.section { padding: clamp(28px, 4vw, 52px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.section-copy { max-width: 68ch; color: var(--muted); margin: 10px 0 0; }
.benefits { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.benefit { padding: 20px; border-right: 1px solid var(--line); }
.benefit::before { content: "▣"; display: block; color: var(--brand); font-size: 28px; line-height: 1; margin-bottom: 16px; }
.benefit:last-child { border-right: 0; }
.benefit strong { display: block; font-size: 17px; }
.benefit span { color: var(--muted); font-size: 14px; display: block; margin-top: 5px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.category-card { min-height: 124px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; text-decoration: none; }
.category-card:hover, .category-card:focus-visible { border-color: var(--brand); }
.category-card strong { font-size: 21px; }
.category-card span { color: var(--muted); margin-top: 8px; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.product-card:hover { border-color: color-mix(in oklch, var(--brand) 55%, var(--line)); }
.product-media { width: 100%; height: 150px; flex: 0 0 150px; background: white; display: flex; align-items: center; justify-content: center; padding: 10px; border-bottom: 1px solid var(--line); overflow: hidden; }
.product-media img { max-width: 82%; max-height: 82%; width: auto; height: auto; object-fit: contain; }
.product-media img.is-tall-image { max-width: 64%; max-height: 64%; }
.product-info { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 12px; font-weight: 900; line-height: 1.35; }
.product-top > span:first-child { min-width: 0; flex: 1 1 auto; }
.badge { flex: 0 0 auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 30px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--brand); background: color-mix(in oklch, var(--brand) 7%, white); line-height: 1; white-space: nowrap; }
.product-title { display: block; min-width: 0; color: var(--ink); font-size: 13px; line-height: 1.25; font-weight: 900; text-decoration: none; overflow-wrap: anywhere; }
.product-title:hover { color: var(--brand); }
.product-desc { color: var(--muted); font-size: 11px; min-height: 38px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-bottom { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
.product-bottom > div { min-width: 0; }
.price-line { min-height: 42px; display: grid; align-content: start; gap: 2px; }
.price { font-size: 18px; font-weight: 900; line-height: 1.05; }
.product-card .button { min-height: 34px; border-radius: 8px; padding: 0 10px; font-size: 12px; }
.old-price-row { min-height: 18px; display: flex; align-items: center; gap: 6px; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: 12px; line-height: 1; }
.discount-badge { display: inline-flex; width: fit-content; border-radius: 999px; background: oklch(0.95 0.05 35); color: oklch(0.45 0.14 35); padding: 2px 7px; font-size: 10px; font-weight: 900; line-height: 1.2; }
.stock { color: var(--green); font-size: 13px; font-weight: 900; }
.catalog-layout { display: block; }
.catalog-filter-toggle { margin-bottom: 16px; }
.filters { position: static; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 18px; margin-bottom: 20px; }
.filters.is-catalog-collapsed { display: none; }
.filters h3 { font-size: 18px; margin-bottom: 14px; }
.filter-group { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; display: grid; gap: 8px; }
.filter-group label { display: flex; gap: 9px; align-items: center; color: var(--muted); font-weight: 800; }
.filter-more { width: fit-content; min-height: 34px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--brand); padding: 0 10px; font-weight: 900; cursor: pointer; }
.filter-more:hover, .filter-more:focus-visible { border-color: var(--brand); background: oklch(0.96 0.025 255); }
.sort-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.sort-row select { height: 42px; min-width: 190px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); padding: 0 40px 0 14px; font-weight: 900; box-shadow: 0 1px 0 oklch(0.9 0.01 255); cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 17px, calc(100% - 12px) 17px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.sort-row select:hover, .sort-row select:focus-visible { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in oklch, var(--brand) 16%, white); }
.page-hero { padding: 46px 0 18px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.page-hero p { color: var(--muted); max-width: 76ch; }
.detail { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.65fr); gap: 24px; align-items: start; }
.detail-media { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: clamp(20px, 5vw, 48px); }
.detail-media img { width: 100%; max-height: 520px; object-fit: contain; }
.detail-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 24px; position: sticky; top: 138px; }
.detail-panel h1 { font-size: clamp(2rem, 4vw, 3rem); }
.detail-specs { display: grid; gap: 10px; margin: 22px 0; }
.spec { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; color: var(--muted); }
.spec strong { color: var(--ink); text-align: right; }
.product-page { padding-bottom: 54px; }
.product-detail-shop { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(380px, 0.7fr); gap: 34px; align-items: start; }
.product-gallery { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 34px; min-height: 520px; display: flex; align-items: center; justify-content: center; }
.product-gallery img { max-height: 450px; object-fit: contain; }
.product-summary h1 { font-size: clamp(2rem, 3vw, 3rem); margin-bottom: 18px; }
.product-summary ul { list-style: none; padding: 0; margin: 0 0 24px; color: var(--muted); }
.product-summary li { margin: 8px 0; }
.product-buy-box { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 22px; }
.product-buy-box .price { color: var(--brand-dark); font-size: 34px; display: block; margin-bottom: 18px; }
.product-buy-box .field { display: block; margin-bottom: 14px; }
.product-buy-box .field > span { display: block; margin-bottom: 8px; font-weight: 800; }
.product-tabs { margin-top: 34px; border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.tab-head { display: flex; border-bottom: 1px solid var(--line); }
.tab-head button { padding: 16px 20px; font-weight: 900; border: 0; border-right: 1px solid var(--line); background: white; color: var(--ink); cursor: pointer; }
.tab-head button.is-active { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.tab-body { padding: 24px; color: var(--muted); }
.tab-body h2, .tab-body h3 { color: var(--ink); margin: 18px 0 10px; }
.notice { margin-top: 22px; padding: 18px 20px; border-radius: 10px; background: oklch(0.96 0.01 255); color: var(--muted); }
.qty, .quantity-stepper { display: inline-grid; grid-template-columns: 40px 64px 40px; gap: 8px; width: auto; max-width: 100%; align-items: center; background: transparent; border: 0; }
.product-buy-box .qty, .product-buy-box .quantity-stepper { width: auto; }
.quantity-stepper > button, .qty > button { width: 40px; height: 40px; border: 1px solid var(--line) !important; border-radius: 8px; background: white !important; color: var(--brand) !important; cursor: pointer; font-size: 22px; line-height: 1; font-weight: 900; box-shadow: 0 1px 0 oklch(0.9 0.01 255); transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.quantity-stepper > button:hover, .qty > button:hover { background: oklch(0.97 0.018 255) !important; border-color: var(--brand) !important; color: var(--brand-dark) !important; transform: translateY(-1px); }
.quantity-stepper > button:focus, .qty > button:focus { outline: none; }
.quantity-stepper > button:focus-visible, .qty > button:focus-visible { outline: 2px solid color-mix(in oklch, var(--brand) 60%, white); outline-offset: 2px; }
.quantity-stepper > button:active, .qty > button:active { background: oklch(0.94 0.03 255) !important; border-color: var(--brand) !important; transform: translateY(0); }
.quantity-stepper input, .qty input { width: 64px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); text-align: center; font-weight: 900; color: var(--ink); outline: 0; }
.quantity-stepper input:focus, .qty input:focus { border-color: var(--brand); background: white; }
@media (hover: none) {
  .quantity-stepper > button:hover, .qty > button:hover { background: white !important; border-color: var(--line) !important; color: var(--brand) !important; transform: none; }
}
.button.is-added { background: var(--green); border-color: var(--green); color: white; }
.pagination { margin-top: 22px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; }
.pagination.hidden { display: none; }
.pagination button { min-width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font-weight: 900; cursor: pointer; transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease; }
.pagination button:hover:not(:disabled), .pagination button.is-active { background: var(--brand); border-color: var(--brand); color: white; }
.pagination button:disabled { opacity: 0.45; cursor: default; }
.pagination button:focus-visible { outline: 2px solid color-mix(in oklch, var(--brand) 60%, white); outline-offset: 2px; }
.pagination span { min-width: 28px; text-align: center; color: var(--muted); font-weight: 900; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 0.45fr); gap: 20px; align-items: start; }
.cart-list, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cart-item { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 14px; padding: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 82px; height: 82px; object-fit: contain; background: var(--surface-soft); border-radius: 10px; }
.cart-item h3 { font-size: 18px; }
.cart-item p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.panel { padding: 20px; }
.form { display: grid; gap: 12px; }
.field label { display: block; margin-bottom: 6px; font-weight: 900; font-size: 14px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--ink); padding: 12px; outline: 0; font-weight: 700; }
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.36 0.028 255); opacity: 1; }
.form-status { min-height: 22px; color: var(--muted); font-weight: 800; }
.account-grid { display: grid; grid-template-columns: minmax(320px, 0.42fr) minmax(0, 1fr); gap: 20px; }
.orders { display: grid; gap: 12px; }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); }
.content-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.content-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; }
.admin-page { padding: 34px 0 60px; }
.admin-shell { display: grid; gap: 18px; }
.admin-login { max-width: 420px; margin: 40px auto; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 24px; box-shadow: var(--shadow); }
.admin-panel { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.admin-panel__head { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.admin-panel__body { padding: 18px 20px; }
.admin-grid { display: grid; grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.admin-form { display: grid; gap: 12px; }
.admin-form label { display: grid; gap: 6px; color: var(--muted); font-weight: 800; font-size: 13px; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font: inherit; font-weight: 700; background: white; color: var(--ink); }
.admin-form textarea { min-height: 88px; resize: vertical; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 860px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 13px; }
.admin-table th { background: var(--surface-soft); font-weight: 900; position: sticky; top: 0; z-index: 1; }
.admin-table tr:hover td { background: oklch(0.98 0.01 255); }
.admin-table button { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: white; color: var(--brand); font-weight: 900; cursor: pointer; }
.admin-list { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.admin-list__item { border: 1px solid var(--line); border-radius: 9px; padding: 10px; display: grid; gap: 8px; }
.admin-list__item strong { font-size: 14px; }
.admin-subcats { color: var(--muted); font-size: 12px; line-height: 1.45; }
.admin-subcategory-editor { display: grid; gap: 8px; max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: var(--surface-soft); }
.admin-subcategory-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.admin-subcategory-row input { background: white; }
.admin-subcategory-row button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: white; color: oklch(0.5 0.18 25); font-weight: 900; cursor: pointer; }
.admin-status { min-height: 22px; color: var(--muted); font-weight: 800; }
.admin-danger { color: oklch(0.5 0.18 25); }
.content-card h3 { font-size: 22px; margin-bottom: 10px; }
.content-card p, .content-card li { color: var(--muted); }
.brand-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-pill { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 10px 14px; text-decoration: none; font-weight: 900; }
.site-footer { margin-top: 50px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1.1fr repeat(3, 1fr); gap: 30px; padding: 44px 0; }
.site-footer a { color: oklch(0.88 0.02 260); text-decoration: none; display: block; margin-top: 8px; }
.site-footer p { color: oklch(0.86 0.02 260); }
.hidden { display: none !important; }
.empty { padding: 30px; text-align: center; color: var(--muted); font-weight: 800; }
.success-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: oklch(0.18 0.03 255 / 0.46); }
.success-modal.hidden { display: none !important; }
.success-modal__box { width: min(460px, 100%); border: 1px solid var(--line); border-radius: 14px; background: white; padding: 28px; box-shadow: 0 24px 70px oklch(0.18 0.03 255 / 0.28); text-align: center; }
.success-modal__box h2 { margin-bottom: 10px; }
.success-modal__box p { color: var(--muted); margin-bottom: 18px; }
.catalog-loader { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; background: oklch(0.98 0.004 255 / 0.9); backdrop-filter: blur(4px); }
.catalog-loader.hidden { display: none; }
.catalog-loader__box { min-width: 250px; display: grid; justify-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; padding: 26px; box-shadow: 0 22px 60px oklch(0.18 0.03 255 / 0.18); }
.catalog-loader__box span { width: 34px; height: 34px; border-radius: 50%; border: 4px solid oklch(0.9 0.012 255); border-top-color: var(--brand); animation: catalog-spin 0.8s linear infinite; }
.catalog-loader__box strong { font-size: 16px; color: var(--ink); }
@keyframes catalog-spin { to { transform: rotate(360deg); } }

@media (max-width: 1020px) {
  .main-header { grid-template-columns: 1fr auto; }
  .search { grid-column: 1 / -1; order: 3; }
  .hero-grid, .hero-main, .catalog-layout, .detail, .cart-layout, .account-grid, .category-shell, .product-detail-shop { grid-template-columns: 1fr; }
  .home-grid, .main-banner { grid-template-columns: 1fr; }
  .promo-row { grid-template-columns: 1fr; }
  .implantshop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .implantshop-card__media { height: 126px; flex-basis: 126px; }
  .shop-hero__inner { grid-template-columns: 1fr; min-height: 0; }
  .shop-hero__media { padding-top: 0; }
  .filters, .detail-panel { position: static; }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .benefit { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .topbar, .site-header, main, .site-footer { width: 100vw; max-width: 100vw; overflow: hidden; }
  .nav { width: 100vw; max-width: 100vw; overflow: visible; }
  .container { width: calc(100vw - 28px); max-width: calc(100vw - 28px); margin-left: 14px; margin-right: 14px; padding-left: 0; padding-right: 0; overflow: visible; }
  .topbar__inner { align-items: flex-start; flex-direction: column; padding-block: 12px; }
  .topbar__inner > div:first-child { display: none; }
  .topbar__links { max-width: 100%; gap: 10px; overflow-wrap: anywhere; }
  .main-header { display: flex; flex-wrap: wrap; gap: 12px; padding: 18px 0 16px; align-items: center; }
  .brand { flex: 1 0 100%; font-size: 21px; min-width: 0; }
  .icon-link span:not(.cart-count) { display: inline; font-size: 12px; }
  .header-actions { order: 2; flex: 1 0 100%; gap: 8px; margin-left: 0; }
  .icon-link { min-width: 0; min-height: 42px; justify-content: center; padding: 0 8px; overflow: hidden; }
  .header-actions .icon-link { flex: 1 1 0; }
  .header-actions .icon-link span:not(.cart-count) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-actions .cart-count { flex: 0 0 auto; }
  .header-actions .icon-link:last-child span:not(.cart-count) { display: inline; }
  .search { flex: 1 0 100%; order: 3; margin-top: 4px; }
  .search input { font-size: 15px; text-overflow: ellipsis; }
  .nav__inner { gap: 10px; overflow-x: auto; padding-right: 14px; scrollbar-width: none; }
  .nav__inner::-webkit-scrollbar { display: none; }
  .nav a { font-size: 13px; white-space: nowrap; }
  .nav a.is-strong { padding: 13px 14px; }
  .hero-main { min-height: 0; }
  .hero-grid, .hero-main, .side-promos, .promo, .hero-copy, .hero-media { width: 100%; max-width: 100%; }
  .hero-copy { padding: 22px; }
  .hero h1 { font-size: clamp(1.7rem, 7.6vw, 2.15rem); letter-spacing: -0.004em; text-wrap: auto; }
  .home-shop { padding-top: 16px; }
  .catalog-box { display: none; }
  .nav-menu { position: fixed; left: 14px; right: 14px; min-width: 0; max-width: calc(100vw - 28px); max-height: calc(100vh - 176px); overflow-y: auto; }
  .catalog-mega { height: calc(100vh - 176px); grid-template-columns: 1fr; max-height: calc(100vh - 176px); overflow-y: auto; border-radius: 0 0 12px 12px; }
  .mega-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .mega-side a { font-size: 15px; padding: 11px 14px; overflow-wrap: anywhere; white-space: normal; }
  .mega-content { padding: 18px 14px 22px; }
  .mega-panel h3 { font-size: 22px; margin-bottom: 16px; }
  .mega-links { grid-template-columns: 1fr; row-gap: 12px; }
  .mega-links a { font-size: 15px; overflow-wrap: anywhere; white-space: normal; }
  .implantshop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .implantshop-card { padding: 8px; }
  .implantshop-card__media { height: 88px; flex-basis: 88px; padding: 6px; margin-bottom: 7px; }
  .implantshop-card .product-title { min-height: 3.48em; font-size: 8.5px; line-height: 1.16; margin: 6px 0; }
  .implantshop-card .price { font-size: 12px; }
  .implantshop-card .old-price-row { display: none; }
  .card-row { font-size: 7.5px; margin-bottom: 8px; }
  .implantshop-card .button { min-width: 54px; min-height: 26px; border-radius: 7px; padding: 0 5px; font-size: 8px; }
  .product-card .product-media { height: 88px; flex-basis: 88px; padding: 6px; }
  .product-card .product-info { padding: 8px; gap: 6px; }
  .product-card .product-title { font-size: 8.5px; line-height: 1.16; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .product-card .product-desc, .product-card .product-top, .product-card .stock, .product-card .old-price-row { display: none; }
  .product-card .price-line { min-width: 0; min-height: 24px; overflow: hidden; }
  .product-card .price { font-size: 10px; }
  .product-card .product-bottom { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .product-card .button { width: 100%; min-width: 0; min-height: 26px; border-radius: 7px; padding: 0 4px; font-size: 7.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .implantshop-card { min-height: auto; }
  .category-toolbar { align-items: flex-start; flex-direction: column; }
  .button.filter-mobile-toggle { width: 100%; min-width: 190px; margin: 0 0 14px; }
  .filter-panel-head { padding: 18px; }
  .filter-panel-head h3 { font-size: 22px; }
  .filter-panel-toggle span { display: none; }
  .filter-block { padding: 16px 18px; }
  .filter-title { font-size: 18px; }
  .range-inputs { gap: 10px; }
  .range-inputs input { height: 42px; font-size: 16px; }
  .range-scale { font-size: 11px; }
  .filter-actions { gap: 10px; padding: 16px 18px; }
  .tab-head { overflow-x: auto; }
  .main-banner { height: 560px; }
  .main-banner h1 { font-size: clamp(1.65rem, 7vw, 2.05rem); text-wrap: auto; }
  .main-banner__media img { max-height: 250px; }
  .shop-hero__inner { gap: 0; }
  .shop-hero__copy { padding: 28px 0 18px; }
  .shop-hero__copy h1 { font-size: clamp(1.8rem, 8vw, 2.45rem); text-wrap: auto; }
  .shop-hero__media img { max-height: 260px; }
  .hero-media { min-height: 240px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .promo strong, .promo span, .button { overflow-wrap: anywhere; }
  .section-head, .sort-row { align-items: flex-start; flex-direction: column; }
  .benefits, .footer-grid { grid-template-columns: 1fr; }
  .benefit { border-right: 0; }
  .cart-item { grid-template-columns: 68px minmax(0, 1fr); }
  .cart-item > .qty { grid-column: 2; width: fit-content; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}