:root {
  --ink: #0a2837;
  --paper: #f3f6f7;
  --surface: #fff;
  --blue: #075e84;
  --gold: #f5c866;
  --line: #d1dce1;
  --soft: #e5eef1;
  --muted: #4c616b;
  --r: 8px;
  --r-small: 5px;
}
body { font-family: Inter, system-ui, sans-serif; font-size: 16px; }
[hidden] { display: none !important; }
main { padding-inline: 0; }
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #157fac;
  outline-offset: 3px;
}
.topline, .city-button { font-size: .875rem; }
.topline, header { padding-inline: clamp(16px, 4vw, 56px); }
.topline .city-button, header > button { min-height: 44px; }
header { padding-block: 13px; }
header > button { font-size: .875rem; }
.main-nav {
  justify-content: flex-start;
  padding-inline: clamp(16px, 4vw, 56px);
  gap: clamp(12px, 3vw, 38px);
  border-radius: 0;
}
.main-nav a, .main-nav button { font-size: .9375rem; }
.main-nav button { margin-left: auto; min-height: 44px; }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -3px var(--gold); }
.hero.b2b-hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.03fr);
  margin-top: 0;
  min-height: 0;
  background: var(--ink);
  color: var(--surface);
  border-radius: 0;
  box-shadow: none;
}
.b2b-hero .hero-copy { padding: clamp(24px, 4vw, 68px); }
.b2b-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.25vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 700;
  color: var(--surface);
}
.b2b-hero h1 em { color: #a5d8ed; }
.b2b-hero p { margin-block: 22px 26px; color: #ddebf1; font-size: 1rem; }
.b2b-hero .hero-visual { min-height: 100%; border-radius: 0; }
.b2b-hero .hero-visual > img { object-position: 63% center; }
.b2b-hero .hero-foot { margin-top: 22px; font-size: .875rem; color: #d4e6ed; align-items: center; }
.b2b-hero .hero-foot a { text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }
.b2b-hero .hero-foot span::before { color: var(--gold); }
.hero-actions { flex-wrap: wrap; }
.hero-actions .primary, .hero-actions .secondary { font-size: .9375rem; }
.hero-actions .secondary { color: var(--surface); border-color: #74919f; background: transparent; }
.hero-actions .secondary:hover { background: #214657; }
.purchase-paths { gap: 0; margin-top: 0; }
.purchase-paths > a, .purchase-paths > button { border-radius: 0; padding: clamp(18px, 3vw, 32px); }
.purchase-paths > * + * { border-left: 0; }
.purchase-paths h2 { margin-top: 0; }
.purchase-paths p, .purchase-paths .path-link { font-size: .9375rem; }
.purchase-paths .path-link { color: var(--blue); }
.section-space { padding-block: clamp(36px, 6vw, 76px); }
.section-heading :is(a,p), .section-heading > .secondary { font-size: .9375rem; }
.direction-grid { gap: 14px; }
.direction-grid .direction-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-height: 218px;
  padding: 0 0 17px;
  overflow: hidden;
  text-align: left;
  background: var(--surface);
}
.direction-grid .direction-card:hover { box-shadow: var(--shadow); border-color: var(--blue); }
.direction-grid .direction-card .direction-image {
  width: 100%;
  min-height: 142px;
  background: #edf2f4;
}
.direction-grid .direction-card img {
  position: static;
  width: 100%;
  height: 142px;
  object-fit: contain;
  padding: 10px;
  opacity: 1;
  margin: 0;
  mix-blend-mode: multiply;
}
.direction-card h3, .direction-card small { position: static; margin-inline: 15px; }
.direction-card h3 { font-size: 1.06rem; margin-top: 14px; }
.direction-card small { font-size: .875rem; color: var(--muted); margin-top: auto; }
main { min-height: 53vh; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; font-size: .875rem; }
.breadcrumb a { display: flex; min-height: 44px; align-items: center; text-decoration: underline; }
.breadcrumb a + a::before { content: "/"; color: var(--muted); margin-right: 12px; }
.page-heading { max-width: 850px; padding-block: 16px 30px; }
.page-heading h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 4.25rem);
  letter-spacing: -.052em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.page-heading p { max-width: 650px; margin: 0 0 20px; color: var(--muted); font-size: 1.06rem; }
.family-directory { margin-bottom: 28px; padding: 5px 18px; border: 1px solid var(--line); background: var(--surface); }
.family-directory summary { min-height: 44px; align-content: center; cursor: pointer; font-weight: 600; }
.family-directory div { display: flex; flex-wrap: wrap; column-gap: 22px; }
.family-directory a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; color: var(--blue); }
.section-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; margin: 0 0 32px; }
.section-directory a {
  display: grid;
  align-content: start;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  min-height: 74px;
}
.section-directory a:hover { border-color: var(--blue); }
.section-directory a span { color: var(--muted); font-size: .9375rem; }
.reading-content { max-width: 790px; margin-bottom: 30px; padding: clamp(20px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); }
.reading-content :is(li,p) { line-height: 1.65; overflow-wrap: anywhere; }
.product-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 54px); margin-bottom: 32px; }
.feature-photo { display: grid; place-items: center; min-height: 280px; padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.feature-photo img { max-height: 460px; max-width: 100%; object-fit: contain; }
.product-feature .specs { margin-top: 24px; }
.dedicated-product { display: flex; align-items: center; justify-content: center; min-height: 44px; color: var(--blue); text-decoration: underline; font-size: .875rem; }
.catalog-disclaimer { font-size: .875rem; }
.about-company p, .business-services p, .order-process li p, .branch-card p { font-size: 1rem; }
.business-services article > span { display: none; }
body:not([data-page="home"]) :is(.b2b-hero, .purchase-paths, .directions, .order-process, #services),
body:not([data-page="catalog"],[data-page="rental"]) #catalog,
body:not([data-page="home"],[data-page="company"]) #about,
body:not([data-page="home"],[data-page="contacts"]) #branches { display: none; }
body:is([data-page="catalog"],[data-page="rental"]) .catalog { margin-top: 0; }
body:is([data-page="catalog"],[data-page="rental"]) #catalog-title { font-size: 1.45rem; }
body:is([data-page="contacts"],[data-page="company"]) main > .section-space { padding-top: 8px; }
footer { margin-top: 32px; }
@media (max-width: 950px) {
  .direction-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .topline > span, .topline > a[href^="mailto:"] { display: none; }
  .topline > a:last-child { margin-left: auto; }
  header { padding-block: 7px 10px; gap: 4px 8px; }
  header > .brand { display: flex; align-items: center; min-height: 44px; flex-basis: 100%; }
  header > .brand img { width: min(240px, 100%); height: auto; }
  .main-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 2px 12px; }
  .main-nav a, .main-nav button { min-height: 44px; font-size: .875rem; text-align: left; padding: 4px 6px; line-height: 1.15; }
  .main-nav button { margin-left: 0; }
  .hero.b2b-hero { grid-template-columns: minmax(0, 1fr); }
  .b2b-hero .hero-visual { min-height: 225px; }
  .b2b-hero .hero-copy { padding: 27px 22px 12px; }
  .b2b-hero .hero-foot { gap: 4px 12px; margin-top: 10px; }
  .b2b-hero p { margin-block: 16px 20px; }
  .hero-actions > a, .page-heading > :is(.primary,.secondary) { width: 100%; text-align: center; }
  .purchase-paths { grid-template-columns: minmax(0, 1fr); }
  .purchase-paths > * + * { border-left: 1px solid var(--line); border-top: 0; }
  .purchase-paths h2 { font-size: 1.25rem; }
  .direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .direction-grid .direction-card { min-height: 186px; }
  .direction-grid .direction-card :is(img,.direction-image) { height: 105px; min-height: 0; }
  .direction-card h3, .direction-card small { margin-inline: 10px; overflow-wrap: anywhere; }
  .direction-card h3 { font-size: .9375rem; }
  .product-feature { grid-template-columns: minmax(0, 1fr); }
  .product-feature .primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button, a { transition: none; }
}

.section-directory article { min-width: 0; padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.section-directory article h2 { font-size: 1.12rem; line-height: 1.25; margin: 0 0 8px; letter-spacing: -.015em; overflow-wrap: anywhere; }
.section-directory article p { margin: 0; }
.document-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 14px; }
.document-gallery a { display: grid; gap: 10px; padding: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--blue); text-decoration: underline; }
.document-gallery img { width: 100%; aspect-ratio: 4/5; object-fit: contain; background: var(--paper); }

.product-order {
  display: grid;
  gap: 12px;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--line);
  background: var(--surface);
}
.product-variant-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(88px, .3fr);
  gap: 6px 12px;
}
.product-variant-row label { font-size: .9375rem; font-weight: 600; }
.product-variant-row :is(select,input) { min-height: 44px; min-width: 0; width: 100%; font-size: 1rem; }
#product-price { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; }
.product-order p { margin: 0; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.product-actions :is(.primary,.secondary) { flex: 1 1 auto; }
#product-order-status:not(:empty) { color: var(--blue); font-weight: 600; }
.feature-photo .text-button { min-height: 44px; color: var(--blue); text-decoration: underline; }
@media (max-width: 520px) {
  .product-actions { display: grid; }
}
