.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: var(--z-skip);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--haso-c4f);
  font-size: var(--fs-meta);
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.skip-link:focus-visible { transform: translateY(0); outline: 2px solid var(--signal); outline-offset: 2px; }
.skip-link:hover { background: var(--slate); }
.skip-link:active { background: var(--deep); }

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  background: none;
}
.icon--sm { width: 0.95em; height: 0.95em; }
.icon--lg { width: 1.5em; height: 1.5em; }

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(242, 244, 246, 0.97);
  border-bottom: var(--hair);
  transition: border-color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
  transition: min-height var(--dur-3) var(--ease-out);
}
.site-header.is-condensed { border-bottom-color: var(--ink); background: var(--paper); }
.site-header.is-condensed .site-header__inner { min-height: 56px; }

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  outline-offset: 4px;
  transition: opacity var(--dur-1) var(--ease-out);
}
.brand img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 100%;
  background: none;
}
@media (min-width: 400px) { .brand img { height: 28px; } }
@media (min-width: 1024px) { .brand img { height: 2.1rem; } }
.brand:hover { opacity: 0.78; }
.brand:active { opacity: 0.6; }
.brand:focus-visible { outline: 2px solid var(--signal); }

.site-header__right {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
}
.header-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}
@media (min-width: 820px) { .header-links { display: flex; } }
.header-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--haso-c4f);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate);
  transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.header-links a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.header-links a:hover { color: var(--ink); background: var(--panel); }
.header-links a:hover::after { transform: scaleX(1); }
.header-links a:active { background: var(--rule); color: var(--ink); }
.header-links a:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; color: var(--ink); }
.header-links a[aria-current="page"] { color: var(--ink); }
.header-links a[aria-current="page"]::after { transform: scaleX(1); background: var(--ink); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--haso-c4f);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.nav-toggle .icon { width: 18px; height: 18px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.nav-toggle:hover { background: var(--ink); color: var(--paper); }
.nav-toggle:active { background: var(--slate); border-color: var(--slate); color: var(--paper); }
.nav-toggle:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
@media (max-width: 359px) { .nav-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

.read-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(31, 169, 181, 0.12));
  pointer-events: none;
}
.read-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--signal);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding-top: calc(var(--header-h) + 1px);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out), visibility 0s linear var(--dur-3);
}
.nav-panel.is-open, .nav-panel[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transition: opacity var(--dur-3) var(--ease-out), visibility 0s linear 0s;
}
.no-js .nav-panel:target { visibility: visible; opacity: 1; }
.nav-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7) var(--col-gap);
  padding-block: var(--s-7) var(--s-9);
}
@media (min-width: 1024px) {
  .nav-panel__inner { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}
.nav-panel__aside { display: flex; flex-direction: column; gap: var(--s-5); min-width: 0; }
.nav-panel__aside p { color: var(--slate); max-width: 36ch; }
.nav-panel__contact { display: flex; flex-direction: column; gap: var(--s-2); }
.nav-panel__groups { display: flex; flex-direction: column; gap: var(--s-6); min-width: 0; }
.nav-group__title {
  font-family: var(--haso-c4f);
  font-size: var(--fs-meta);
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  color: var(--steel);
  padding-bottom: var(--s-2);
  border-bottom: var(--rule-key);
}
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a {
  position: relative;
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  min-height: 52px;
  padding: 10px var(--s-3) 10px var(--s-3);
  border-bottom: var(--hair);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--haso-77c);
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: background-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), color var(--dur-1) var(--ease-out);
}
.nav-list a .nav-list__num {
  font-family: var(--haso-c4f);
  font-size: var(--fs-meta);
  font-weight: 500;
  color: var(--steel);
  letter-spacing: 0.04em;
}
.nav-list a .icon { color: var(--steel); transition: transform var(--dur-2) var(--ease-out), color var(--dur-1) var(--ease-out); }
.nav-list a:hover { background: var(--panel); box-shadow: inset 2px 0 0 var(--signal); }
.nav-list a:hover .icon { color: var(--signal); transform: translateX(3px); }
.nav-list a:active { background: var(--rule); }
.nav-list a:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; background: var(--panel); }
.nav-list a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--ink); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 48px;
  max-width: 100%;
  padding: 14px 22px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--haso-12a);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: left;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); box-shadow: 0 4px 0 -1px var(--signal); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); box-shadow: none; background: var(--slate); border-color: var(--slate); color: var(--paper); }
.btn:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--primary { background: var(--signal); border-color: var(--signal); color: var(--deep); }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: 0 4px 0 -1px var(--signal); }
.btn--primary:active { background: var(--signal-press); border-color: var(--signal-press); color: var(--white); }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--slate); border-color: var(--slate); color: var(--white); }
.btn--dark:active { background: var(--deep); border-color: var(--deep); }

.btn--on-deep { border-color: var(--deep-rule); color: var(--white); background: transparent; }
.btn--on-deep:hover { background: var(--white); border-color: var(--white); color: var(--deep); box-shadow: 0 4px 0 -1px var(--signal-hi); }
.btn--on-deep:active { background: var(--deep-text); border-color: var(--deep-text); color: var(--deep); }
.btn--on-deep:focus-visible { outline-color: var(--signal-hi); }

.btn--sm { min-height: 44px; padding: 10px 16px; font-size: var(--fs-small); }
.btn--block { width: 100%; justify-content: space-between; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding-block: 8px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.link-arrow .icon { width: 18px; height: 18px; color: var(--signal); transition: transform var(--dur-2) var(--ease-out); }
.link-arrow:hover { color: var(--slate); border-bottom-color: var(--signal); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:active { color: var(--signal-press); }
.link-arrow:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  max-width: 100%;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--slate);
  font-family: var(--haso-c4f);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.tag--signal { border-color: var(--signal); color: var(--ink); background: var(--signal-wash); }
.tag--ink { border-color: var(--ink); background: var(--ink); color: var(--paper); }
a.tag { min-height: 44px; text-decoration: none; transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out); }
a.tag:hover { border-color: var(--ink); color: var(--ink); background: var(--panel); }
a.tag:active { background: var(--rule); }
a.tag:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.frame {
  position: relative;
  padding: var(--frame-pad, clamp(14px, 2vw, 22px));
  padding-top: calc(var(--frame-pad, clamp(14px, 2vw, 22px)) + 12px);
  isolation: isolate;
  --frame-ink: var(--ink);
  --frame-tick: var(--steel);
}
.frame::before, .frame::after, .frame__c {
  content: "";
  position: absolute;
  width: var(--bracket);
  height: var(--bracket);
  border: 0 solid var(--frame-ink);
  pointer-events: none;
  z-index: 2;
  transition: transform var(--dur-3) var(--ease-snap), border-color var(--dur-2) var(--ease-out);
}
.frame::before { top: 0; left: 0; border-top-width: var(--bracket-w); border-left-width: var(--bracket-w); }
.frame::after { top: 0; right: 0; border-top-width: var(--bracket-w); border-right-width: var(--bracket-w); }
.frame__c--bl { bottom: 0; left: 0; border-bottom-width: var(--bracket-w); border-left-width: var(--bracket-w); }
.frame__c--br { bottom: 0; right: 0; border-bottom-width: var(--bracket-w); border-right-width: var(--bracket-w); }
.frame__ticks {
  position: absolute;
  top: 0;
  left: calc(var(--bracket) + 6px);
  right: calc(var(--bracket) + 6px);
  height: 9px;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--frame-tick) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 8px);
  background-size: 100% 9px, 100% 4px;
  background-repeat: no-repeat;
  background-position: left top, left top;
  opacity: 0.9;
}
.frame__body { position: relative; min-width: 0; }
.frame__media { position: relative; overflow: hidden; background: var(--panel); }
.frame__media img { width: 100%; height: 100%; object-fit: cover; background: var(--panel); }
.frame__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px var(--s-4);
  margin-top: var(--s-3);
  padding-top: var(--s-2);
  border-top: var(--hair);
  font-family: var(--haso-c4f);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
}
.frame__status-main { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; flex-wrap: wrap; }
.frame__status-label { min-width: 0; overflow-wrap: anywhere; }
.frame__clock { color: var(--ink); }
.frame__coord { color: var(--steel); margin-left: auto; }
.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--signal);
  border-radius: 50%;
  animation: pulse-dot var(--dur-pulse) var(--ease-in-out) infinite;
}
.frame--deep { --frame-ink: var(--deep-text); --frame-tick: var(--deep-meta); }
.frame--deep .frame__ticks { background-image: repeating-linear-gradient(to right, var(--deep-meta) 0 1px, transparent 1px 64px), repeating-linear-gradient(to right, var(--deep-rule) 0 1px, transparent 1px 8px); }
.frame--deep .frame__status { border-top-color: var(--deep-rule); color: var(--deep-meta); }
.frame--deep .frame__clock { color: var(--signal-hi); }
.frame--deep .status-dot { background: var(--signal-hi); }
.frame--signal { --frame-ink: var(--signal); }
.frame.is-snapped::before { transform: translate(-3px, -3px); }
.frame.is-snapped::after { transform: translate(3px, -3px); }
.frame.is-snapped .frame__c--bl { transform: translate(-3px, 3px); }
.frame.is-snapped .frame__c--br { transform: translate(3px, 3px); }

.opener { display: flex; flex-direction: column; gap: var(--s-4); max-width: 60rem; }
.opener .frame__status { max-width: 100%; }
.opener p { color: var(--slate); }

.fig { margin: 0; min-width: 0; }
.fig img { width: 100%; height: auto; display: block; }
.fig__cap, figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--s-3);
  margin-top: var(--s-3);
  font-family: var(--haso-c4f);
  font-size: var(--fs-meta);
  line-height: 1.45;
  color: var(--slate);
  max-width: 60ch;
}
.fig__num { color: var(--ink); font-weight: 500; letter-spacing: var(--track-meta); }

.crumbs { padding-top: var(--s-5); }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-2); list-style: none; margin: 0; padding: 0; font-family: var(--haso-c4f); font-size: var(--fs-meta); letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel); }
.crumbs li { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.crumbs li + li::before { content: "/"; color: var(--rule); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--slate); text-decoration: none; border-bottom: 1px solid transparent; transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out); }
.crumbs a:hover { color: var(--ink); border-bottom-color: var(--signal); }
.crumbs a:active { color: var(--signal-press); }
.crumbs a:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

.dir { border-top: var(--rule-key); }
.dir__group + .dir__group { margin-top: var(--s-8); }
.dir__group-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-4) 0 var(--s-3);
  border-bottom: var(--hair);
  font-family: var(--haso-c4f);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  color: var(--ink);
}
.dir__group-head span:last-child { color: var(--steel); }
.dir__list { list-style: none; margin: 0; padding: 0; }
.dir__row {
  position: relative;
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr) 28px;
  grid-template-areas: "num title arrow" "num desc arrow" "num meta arrow";
  align-items: start;
  gap: 4px var(--s-3);
  min-height: 64px;
  padding: var(--s-4) var(--s-3);
  border-bottom: var(--hair);
  text-decoration: none;
  color: var(--ink);
  transition: background-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
@media (min-width: 900px) {
  .dir__row {
    grid-template-columns: 3.4em minmax(0, 4fr) minmax(0, 5fr) minmax(0, 2.4fr) 32px;
    grid-template-areas: "num title desc meta arrow";
    align-items: baseline;
    gap: var(--s-5);
    padding: var(--s-5) var(--s-4);
  }
}
.dir__num { grid-area: num; font-family: var(--haso-c4f); font-size: var(--fs-meta); font-weight: 500; color: var(--steel); letter-spacing: 0.04em; padding-top: 0.3em; }
.dir__title { grid-area: title; font-family: var(--haso-77c); font-size: clamp(1.1rem, 0.98rem + 0.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.dir__desc { grid-area: desc; color: var(--slate); font-size: var(--fs-small); line-height: 1.5; max-width: 52ch; }
.dir__meta { grid-area: meta; font-family: var(--haso-c4f); font-size: var(--fs-micro); letter-spacing: 0.05em; text-transform: uppercase; color: var(--steel); line-height: 1.5; }
.dir__arrow { grid-area: arrow; align-self: center; color: var(--steel); width: 22px; height: 22px; transition: transform var(--dur-2) var(--ease-out), color var(--dur-1) var(--ease-out); }
.dir__row:hover { background: var(--panel); box-shadow: inset 2px 0 0 var(--signal); }
.dir__row:hover .dir__arrow { color: var(--signal); transform: translateX(4px); }
.dir__row:active { background: var(--rule); }
.dir__row:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; background: var(--panel); }
.dir--small .dir__row { min-height: 52px; padding-block: var(--s-3); }
.dir--small .dir__title { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); font-weight: 500; }

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-4);
  padding-block: var(--s-6);
  border-top: var(--hair);
  min-width: 0;
}
@media (min-width: 760px) { .item { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--col-gap); } }
.item__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.item__body { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.item__num { font-family: var(--haso-c4f); font-size: var(--fs-meta); color: var(--steel); letter-spacing: var(--track-meta); }
.item__price { font-family: var(--haso-c4f); font-size: var(--fs-small); color: var(--ink); border-left: var(--rule-signal); padding-left: var(--s-3); }
.item__note { font-size: var(--fs-small); color: var(--steel); }

.note {
  border-left: var(--rule-signal);
  background: var(--paper-2);
  padding: var(--s-4) var(--s-5);
  color: var(--slate);
  max-width: var(--measure);
}
.note--ink { border-left-color: var(--ink); }
.refuse-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule-key); }
.refuse-list li { position: relative; padding: var(--s-4) 0 var(--s-4) 2.2em; border-bottom: var(--hair); max-width: var(--measure); }
.refuse-list li::before { content: "×"; position: absolute; left: 0; top: var(--s-4); font-family: var(--haso-c4f); color: var(--signal-press); font-weight: 500; }

.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: var(--rule-key);
  border-bottom: var(--hair);
}
.table-wrap:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.spec { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--fs-small); }
.spec--compact { min-width: 0; }
.spec caption { text-align: left; padding: var(--s-3) 0; font-family: var(--haso-c4f); font-size: var(--fs-meta); letter-spacing: var(--track-meta); text-transform: uppercase; color: var(--steel); caption-side: top; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px var(--s-4) 12px 0; border-bottom: var(--hair); }
.spec thead th { font-family: var(--haso-c4f); font-size: var(--fs-micro); font-weight: 500; letter-spacing: var(--track-meta); text-transform: uppercase; color: var(--steel); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.spec tbody th { font-weight: 600; color: var(--ink); }
.spec td { color: var(--slate); }
.spec .num, .spec td.mono { font-family: var(--haso-c4f); color: var(--ink); white-space: nowrap; }
.spec tbody tr { transition: background-color var(--dur-1) var(--ease-out); }
.spec tbody tr:hover { background: var(--paper-2); }

.kv { display: grid; grid-template-columns: minmax(0, 1fr); border-top: var(--rule-key); margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px var(--s-4); padding: var(--s-3) 0; border-bottom: var(--hair); }
@media (min-width: 640px) { .kv > div { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }
.kv dt { font-family: var(--haso-c4f); font-size: var(--fs-meta); letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); }
.kv dd { margin: 0; color: var(--ink); }

.tabs__list { display: flex; flex-wrap: wrap; gap: 0; border-bottom: var(--hair); }
.tabs__tab {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  font-family: var(--haso-c4f);
  font-size: var(--fs-meta);
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--dur-1) var(--ease-out), background-color var(--dur-1) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.tabs__tab:hover { background: var(--panel); color: var(--ink); }
.tabs__tab:active { background: var(--rule); }
.tabs__tab:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--signal); }
.tabs__panel { padding-top: var(--s-5); }

.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-5) var(--col-gap); }
@media (min-width: 720px) { .form--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .form--2 .field--full, .form--2 .form__foot { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__label { font-family: var(--haso-c4f); font-size: var(--fs-meta); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.field__label .req { color: var(--signal-press); }
.field__hint { font-size: var(--fs-small); color: var(--steel); }
.field__input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-bottom: 1px solid var(--slate);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  appearance: none;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-1) var(--ease-out);
}
.field textarea { min-height: 132px; resize: vertical; }
.field select { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); border-bottom-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--signal); box-shadow: inset 0 -2px 0 var(--signal), 0 0 0 3px var(--signal-wash); }
.field input:active, .field textarea:active { background: var(--paper); }
.field--invalid input, .field--invalid select, .field--invalid textarea, .field [aria-invalid="true"] { border-color: var(--danger); border-bottom-color: var(--danger); background: var(--danger-wash); }
.field__error { display: none; font-size: var(--fs-small); color: var(--danger); font-weight: 500; }
.field__error:not(:empty) { display: block; }
.field__error::before { content: "! "; font-family: var(--haso-c4f); }

.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--s-3); align-items: start; cursor: pointer; font-size: var(--fs-small); color: var(--slate); min-height: 44px; padding-top: 10px; }
.check input {
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--ink);
  background: var(--white);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.check input::after { content: ""; width: 10px; height: 10px; background: var(--white); transform: scale(0); transition: transform var(--dur-1) var(--ease-out); }
.check input:checked { background: var(--signal); border-color: var(--signal); }
.check input:checked::after { transform: scale(1); background: var(--deep); }
.check:hover input { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-wash); }
.check input:active { background: var(--panel); }
.check input:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.check a { color: var(--ink); }
.field--invalid .check input, .check input[aria-invalid="true"] { border-color: var(--danger); }

.option-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.option-set legend { padding: 0; margin-bottom: var(--s-3); font-family: var(--haso-c4f); font-size: var(--fs-meta); letter-spacing: var(--track-meta); text-transform: uppercase; color: var(--ink); }
.options { display: flex; flex-wrap: wrap; gap: 6px; }
.option { position: relative; display: inline-flex; min-width: 0; max-width: 100%; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--slate);
  font-size: var(--fs-small);
  line-height: 1.3;
  cursor: pointer;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.option:hover span { border-color: var(--ink); color: var(--ink); }
.option:active span { background: var(--panel); }
.option input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.option input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); box-shadow: inset 0 -2px 0 var(--signal); }

.range { width: 100%; min-height: 44px; accent-color: var(--signal); cursor: pointer; background: transparent; }
.range:hover { accent-color: var(--signal-press); }
.range:active { accent-color: var(--ink); }
.range:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form__status { font-size: var(--fs-small); color: var(--slate); min-height: 1.5em; }
.form__status.is-error { color: var(--danger); }
.form__status.is-ok { color: var(--ok); }
.form__legal { font-size: var(--fs-small); color: var(--steel); max-width: 60ch; }

.site-footer { background: var(--deep); color: var(--deep-text); padding-top: var(--section-pad-sm); position: relative; }
.site-footer a { color: var(--deep-text); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-7) var(--col-gap); padding-bottom: var(--s-6); border-bottom: 1px solid var(--deep-rule); }
@media (min-width: 720px) { .footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 900px) { .footer__top { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr); } }
.footer__brand { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.footer__brand .brand img { height: 30px; }
@media (min-width: 1024px) { .footer__brand .brand img { height: 2.4rem; } }
.footer__brand p { color: var(--deep-meta); max-width: 38ch; font-size: var(--fs-small); }
.footer__col { min-width: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.footer__title { font-family: var(--haso-c4f); font-size: var(--fs-micro); letter-spacing: var(--track-meta); text-transform: uppercase; color: var(--deep-meta); padding-bottom: var(--s-2); border-bottom: 1px solid var(--deep-rule); }
.footer__addr { font-style: normal; line-height: 1.6; color: var(--white); }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.footer__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding-block: 6px;
  color: var(--deep-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  overflow-wrap: anywhere;
  transition: color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.footer__link .icon { color: var(--signal-hi); width: 16px; height: 16px; }
.footer__link:hover { color: var(--white); border-bottom-color: var(--signal-hi); }
.footer__link:active { color: var(--signal-hi); }
.footer__link:focus-visible { outline: 2px solid var(--signal-hi); outline-offset: 2px; }
.footer__status { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: center; padding-block: var(--s-4); border-bottom: 1px solid var(--deep-rule); font-family: var(--haso-c4f); font-size: var(--fs-micro); letter-spacing: 0.07em; text-transform: uppercase; color: var(--deep-meta); }
.footer__status .status-dot { background: var(--signal-hi); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); padding-block: var(--s-5) calc(var(--s-5) + 72px); font-size: var(--fs-small); color: var(--deep-meta); }
@media (min-width: 900px) { .footer__legal { padding-bottom: var(--s-6); padding-right: 88px; } }
.footer__legal ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.footer__legal .footer__link { font-size: var(--fs-small); }
.footer__consent-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--deep-rule);
  color: var(--deep-text);
  font-size: var(--fs-small);
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.footer__consent-btn:hover { background: var(--deep-2); border-color: var(--signal-hi); color: var(--white); }
.footer__consent-btn:active { background: var(--deep-rule); }
.footer__consent-btn:focus-visible { outline: 2px solid var(--signal-hi); outline-offset: 2px; }

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-consent);
  background: var(--deep);
  color: var(--deep-text);
  border-top: 2px solid var(--signal);
  box-shadow: 0 -10px 30px -18px rgba(12, 20, 29, 0.6);
  max-height: 20vh;
  max-height: 20svh;
  overflow-y: auto;
}
.consent__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px var(--s-5); padding-block: 10px; }
.consent__text { flex: 1 1 320px; min-width: 0; margin: 0; font-size: 0.88rem; line-height: 1.4; color: var(--deep-text); max-width: 70ch; }
.consent__text a { color: var(--signal-hi); text-decoration: underline; text-underline-offset: 0.18em; transition: color var(--dur-1) var(--ease-out); }
.consent__text a:hover { color: var(--white); }
.consent__text a:active { color: var(--deep-meta); }
.consent__text a:focus-visible { outline: 2px solid var(--signal-hi); outline-offset: 2px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 6px; flex: 0 1 auto; }
.consent__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--deep-rule);
  color: var(--white);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.consent__btn:hover { background: var(--deep-2); border-color: var(--deep-text); transform: translateY(-1px); }
.consent__btn:active { background: var(--deep-rule); transform: translateY(0); }
.consent__btn:focus-visible { outline: 2px solid var(--signal-hi); outline-offset: 2px; }
.consent__btn--accept { background: var(--signal); border-color: var(--signal); color: var(--deep); }
.consent__btn--accept:hover { background: var(--signal-hi); border-color: var(--signal-hi); color: var(--deep); }
.consent__btn--accept:active { background: var(--signal-press); border-color: var(--signal-press); color: var(--white); }
.consent__btn--link { border-color: transparent; color: var(--deep-text); text-decoration: underline; text-underline-offset: 0.2em; padding-inline: 10px; }
.consent__btn--link:hover { border-color: var(--deep-rule); color: var(--white); }
@media (max-width: 520px) {
  .consent__inner { padding-block: 8px; gap: 6px; }
  .consent__text { font-size: 0.82rem; flex-basis: 100%; }
  .consent__actions { width: 100%; }
  .consent__btn { flex: 1 1 auto; padding-inline: 10px; font-size: 0.85rem; }
}

.chat-launcher {
  position: fixed;
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(12px, 2vw, 24px);
  z-index: var(--z-chat);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-width: 56px;
  min-height: 56px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-float);
  font-family: var(--haso-c4f);
  font-size: var(--fs-meta);
  letter-spacing: var(--track-meta);
  text-transform: uppercase;
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), bottom var(--dur-3) var(--ease-out);
}
.chat-launcher .icon { width: 22px; height: 22px; }
.chat-launcher__text { display: none; }
@media (min-width: 900px) { .chat-launcher__text { display: inline; } }
.chat-launcher::before, .chat-launcher::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border: 0 solid var(--signal-hi);
  transition: transform var(--dur-2) var(--ease-out);
}
.chat-launcher::before { top: 3px; left: 3px; border-top-width: 1.5px; border-left-width: 1.5px; }
.chat-launcher::after { bottom: 3px; right: 3px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.chat-launcher:hover { background: var(--slate); border-color: var(--signal); transform: translateY(-2px); box-shadow: 0 16px 34px -14px rgba(12, 20, 29, 0.6), 0 0 0 1px var(--signal); }
.chat-launcher:hover::before { transform: translate(-2px, -2px); }
.chat-launcher:hover::after { transform: translate(2px, 2px); }
.chat-launcher:active { background: var(--deep); transform: translateY(1px); box-shadow: 0 4px 10px -6px rgba(12, 20, 29, 0.6); }
.chat-launcher:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.chat-launcher[aria-expanded="true"] { background: var(--signal); border-color: var(--signal); color: var(--deep); }
.chat-launcher__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  min-height: 22px;
  padding: 2px 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--signal);
  color: var(--deep);
  font-family: var(--haso-c4f);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  border: 2px solid var(--paper);
}
.chat-launcher__badge:empty { display: none; }
body:has(.consent:not([hidden])) .chat-launcher { bottom: calc(var(--consent-h, 152px) + 12px); }
@media (min-width: 521px) { body:has(.consent:not([hidden])) .chat-launcher { bottom: calc(var(--consent-h, 92px) + 12px); } }

.chat-panel {
  position: fixed;
  right: clamp(8px, 2vw, 24px);
  bottom: calc(clamp(12px, 2vw, 24px) + 68px);
  z-index: var(--z-chat);
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 16px));
  height: min(600px, calc(100vh - 120px));
  height: min(600px, calc(100dvh - 120px));
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-float);
}
.chat-panel[hidden] { display: none; }
.chat-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 10px 10px 10px var(--s-4);
  background: var(--deep);
  color: var(--white);
  border-bottom: 2px solid var(--signal);
}
.chat-panel__title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-panel__title strong { font-family: var(--haso-77c); font-weight: 600; font-size: 1.05rem; }
.chat-panel__title span { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--haso-c4f); font-size: var(--fs-micro); letter-spacing: 0.07em; text-transform: uppercase; color: var(--deep-meta); }
.chat-panel__title .status-dot { background: var(--signal-hi); }
.chat-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: var(--white);
  border: 1px solid var(--deep-rule);
  transition: background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.chat-panel__close .icon { width: 20px; height: 20px; }
.chat-panel__close:hover { background: var(--deep-2); border-color: var(--signal-hi); }
.chat-panel__close:active { background: var(--deep-rule); }
.chat-panel__close:focus-visible { outline: 2px solid var(--signal-hi); outline-offset: -2px; }
.chat-log { flex: 1 1 auto; overflow-y: auto; padding: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); background: var(--paper); overscroll-behavior: contain; }
.chat-msg { max-width: 86%; padding: 10px 12px; font-size: 0.94rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat-msg__meta { display: block; margin-top: 4px; font-family: var(--haso-c4f); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--steel); }
.chat-msg--them { align-self: flex-start; background: var(--white); border: 1px solid var(--rule); border-left: 2px solid var(--signal); color: var(--ink); }
.chat-msg--me { align-self: flex-end; background: var(--ink); color: var(--white); }
.chat-msg--me .chat-msg__meta { color: var(--deep-meta); }
.chat-msg--pending { opacity: 0.6; }
.chat-msg--failed { background: var(--danger-wash); color: var(--danger); border: 1px solid var(--danger); }
.chat-msg__retry { display: inline-flex; align-items: center; min-height: 32px; margin-top: 6px; padding: 4px 10px; border: 1px solid currentColor; font-size: 0.8rem; color: inherit; transition: background-color var(--dur-1) var(--ease-out); }
.chat-msg__retry:hover { background: rgba(179, 38, 30, 0.08); }
.chat-msg__retry:active { background: rgba(179, 38, 30, 0.16); }
.chat-msg__retry:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.chat-intro { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-4); border-top: var(--hair); background: var(--paper-2); }
.chat-intro[hidden] { display: none; }
.chat-intro .field input { min-height: 44px; padding: 10px 12px; }
.chat-form { display: flex; align-items: flex-end; gap: 6px; padding: 10px; border-top: 1px solid var(--ink); background: var(--white); }
.chat-form textarea {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  max-height: 140px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 0;
  resize: none;
  font-size: 0.95rem;
  line-height: 1.4;
  background: var(--white);
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.chat-form textarea:hover { border-color: var(--steel); }
.chat-form textarea:focus-visible { outline: none; border-color: var(--signal); box-shadow: inset 0 -2px 0 var(--signal); }
.chat-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 44px;
  padding: 0 12px;
  background: var(--signal);
  color: var(--deep);
  border: 1px solid var(--signal);
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.chat-send .icon { width: 20px; height: 20px; }
.chat-send:hover { background: var(--ink); border-color: var(--ink); color: var(--white); transform: translateY(-1px); }
.chat-send:active { background: var(--signal-press); border-color: var(--signal-press); transform: translateY(0); }
.chat-send:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.chat-send[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.chat-error { padding: 6px var(--s-4); font-size: var(--fs-small); color: var(--danger); background: var(--danger-wash); }
.chat-error:empty { display: none; }
@media (max-width: 480px) {
  .chat-panel { right: 8px; left: 8px; width: auto; bottom: 80px; height: calc(100dvh - 150px); }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  .btn:hover, .chat-launcher:hover, .consent__btn:hover, .chat-send:hover { transform: none; }
}

a.btn.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); transform: translateY(-1px); box-shadow: 0 4px 0 -1px var(--signal); }
a.btn.btn:active { background: var(--slate); border-color: var(--slate); color: var(--white); transform: translateY(1px); box-shadow: none; }
a.btn.btn--primary:active { background: var(--signal-press); border-color: var(--signal-press); }
