/* Общая сетка, типографика и элементы управления. */
:root {
  --strizh-width: 1080px;
  --strizh-gutter: clamp(1rem, 3vw, 1.5rem);
  --strizh-header-height: 108px;
}
.strizh-scope, #rec4878197201 {
  --bg: #fff;
  --bg-soft: #F6EFE4;
  --bg-card: #FCFAF6;
  --border: #E9DECC;
  --border-control: #BBA992;
  --text: #2B2118;
  --text-soft: #6E5F4E;
  --text-muted: #786853;
  --accent: #B64319;
  --accent-hover: #973711;
  --dark: #241B12;
  --control-font: .875rem;
  --card-title-font: 1.0625rem;
  --control-height: 44px;
  --radius-control: 10px;
  --radius-card: 16px;
  --section-space: clamp(2rem, 5vw, 3.5rem);
  --card-space: clamp(1rem, 2.6vw, 1.5rem);
  --grid-gap: clamp(.75rem, 2vw, 1.25rem);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
.strizh-scope *, .strizh-scope *::before, .strizh-scope *::after { box-sizing: border-box; }
.strizh-scope * { margin: 0; padding: 0; }
.strizh-scope img[src=""], .strizh-scope img:not([src]) { display: none; }
.strizh-container {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--strizh-width);
  margin-inline: auto;
  padding-inline: var(--strizh-gutter);
}
.strizh-main [id], #rec4878197201 { scroll-margin-top: calc(var(--strizh-header-height) + 12px); }
.strizh-scope :where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-color, var(--accent));
  outline-offset: 2px;
}

/* Тильда задаёт цвет ссылок через #allrecords. Цвет берётся из стиля компонента. */
.strizh-scope a, #allrecords .strizh-scope a {
  color: var(--link-color, inherit);
  text-decoration: var(--link-decoration, none);
}

.strizh-btn, .strizh-msg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: var(--control-height);
  max-width: 100%;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font-family: inherit;
  font-size: var(--control-font);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.strizh-arrow { display: block; flex: none; width: var(--arrow-size,16px); height: var(--arrow-size,16px); }
.strizh-arrow-back { transform: rotate(180deg); }
.strizh-btn-primary { background: var(--accent); --link-color: #fff; color: #fff; }
.strizh-btn-primary:hover { background: var(--accent-hover); }
.strizh-btn-ghost, .strizh-msg-btn {
  background: var(--bg);
  --link-color: var(--text);
  color: var(--text);
  border-color: var(--border-control);
}
.strizh-btn-ghost:hover, .strizh-msg-btn:hover { background: var(--bg-soft); }
.strizh-btn-tz { background: var(--text); --link-color: #fff; }
.strizh-btn-tz:hover { background: #000; }
.tz-short { display: none; }

.strizh-switcher {
  display: grid;
  gap: .25rem;
  padding: .25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--bg-soft);
}
.strizh-switcher button, .s6-rooms button {
  min-width: 0;
  min-height: var(--control-height);
  padding: .5rem .35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: var(--control-font);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}
.strizh-switcher button:not(.active):hover, .s6-rooms button[aria-pressed="false"]:hover {
  background: var(--bg-card);
  color: var(--text);
}
.strizh-switcher button.active, .s6-rooms button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

.strizh-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
}
.strizh-header-spacer { height: var(--strizh-header-height); }
.strizh-header-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  column-gap: .5rem;
  padding-block: .5rem 0;
}
.strizh-logo { display: flex; align-items: center; justify-self: start; gap: .6rem; min-width: 0; }
.strizh-logo-img { display: block; width: auto; height: 38px; max-width: 100%; object-fit: contain; }
.strizh-logo-text { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; }
.strizh-logo-text small { display: block; margin-top: 2px; font-size: .65rem; font-weight: 500; letter-spacing: .08em; color: var(--text-soft); white-space: normal; }
.strizh-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  gap: .25rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}
.strizh-nav a {
  display: grid;
  min-height: var(--control-height);
  place-items: center;
  min-width: 0;
  border-radius: var(--radius-control);
  --link-color: var(--text-soft);
  font-size: clamp(.75rem, 2vw, var(--control-font));
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}
.strizh-nav a:hover { --link-color: var(--accent); background: var(--bg-card); }
.strizh-header-actions { display: flex; align-items: center; gap: .45rem; }
.strizh-header-actions .strizh-btn-tz { white-space: nowrap; }
.strizh-msg-btn svg { display: block; flex: none; width: 18px; height: 18px; }
.strizh-header-actions .strizh-msg-btn { width: var(--control-height); padding: 0; }
.strizh-header-actions .strizh-msg-btn span { display: none; }
@media (max-width: 430px) {
  .strizh-logo-img { height: 34px; }
}
@media (max-width: 480px) {
  .strizh-header-actions .strizh-btn-tz { padding-inline: .75rem; }
  .tz-full { display: none; }
  .tz-short { display: inline; }
}
@media (width < 350px) {
  .strizh-logo-img { height: 32px; }
}
@media (width < 640px), (620px <= width < 960px) and (max-height: 500px) {
  .strizh-logo { gap: .25rem; }
  .strizh-logo-img { flex: none; }
}
@media (640px <= width < 960px), (min-width: 1100px) {
  .strizh-header-actions .strizh-msg-btn { width: auto; padding-inline: .75rem; }
  .strizh-header-actions .strizh-msg-btn span { display: inline; }
}
@media (min-width: 960px), (720px <= width < 960px) and (max-height: 500px) {
  :root { --strizh-header-height: 61px; }
  .strizh-header-inner { display: flex; justify-content: space-between; gap: .75rem; padding-block: .5rem; }
  .strizh-nav { display: flex; align-items: center; gap: clamp(.25rem, .7vw, .6rem); margin-top: 0; border: 0; }
  .strizh-nav a { padding-inline: .35rem; }
}

@media (620px <= width < 960px) and (max-height: 500px) {
  .strizh-header-actions .strizh-msg-btn span, .tz-full { display: none; }
  .tz-short { display: inline; }
  .strizh-header-actions .strizh-msg-btn { width: var(--control-height); padding: 0; }
  .strizh-nav a { padding-inline: .15rem; white-space: nowrap; }
}

@media (width < 400px), (720px <= width < 790px) and (max-height: 500px) {
  .strizh-header-actions {
    --control-height: clamp(36px, calc(20vw - 36px), 44px);
    gap: .25rem;
  }
  .strizh-header-actions :is(.strizh-msg-btn,.strizh-btn-tz) {
    width: var(--control-height);
    padding: 0;
  }
}
@media (720px <= width < 790px) and (max-height: 500px) {
  .strizh-header-actions { --control-height: 38px; }
}

.strizh-document {
  padding-block: var(--section-space);
  overflow-wrap: anywhere;
}
.strizh-document h1 {
  max-width: 28ch;
  margin-bottom: .75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.strizh-document .lead { max-width: 68ch; color: var(--text-soft); margin-bottom: 1.25rem; }
.strizh-document .back {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: var(--control-height);
  margin-bottom: .75rem;
  --link-color: var(--text-soft);
  font-size: var(--control-font);
}
.strizh-document .back:hover { --link-color: var(--accent); }

.strizh-footer {
  padding-block: var(--section-space) 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--control-font);
  overflow-wrap: anywhere;
}
.strizh-footer-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: var(--grid-gap); margin-bottom: 1.5rem; }
.strizh-footer h5 { margin-bottom: .5rem; font-size: var(--control-font); font-weight: 700; color: var(--text); }
.strizh-footer ul { list-style: none; display: grid; gap: .35rem; }
.strizh-footer ul a { --link-color: var(--text-soft); }
.strizh-footer ul a:hover { --link-color: var(--accent); --link-decoration: underline; }
.strizh-footer-summary { max-width: 40ch; color: var(--text-soft); }
.strizh-footer-bottom { padding-top: 1rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
@media (min-width: 560px) {
  .strizh-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 960px) {
  .strizh-footer-grid { grid-template-columns: minmax(0,1.5fr) repeat(3,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .strizh-btn, .strizh-msg-btn { transition: none; }
}
