@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/montserrat-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/montserrat-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/montserrat-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/montserrat-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #141414;
  --muted: #5c5c5c;
  --border: #e8e8e8;
  --accent: #1f5f4e;
  --accent-hover: #174a3d;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(20, 20, 20, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --page-gutter: 1.25rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --inset-left: calc(var(--page-gutter) + var(--safe-left));
  --inset-right: calc(var(--page-gutter) + var(--safe-right));
  --logo-height: 56px;
  --logo-native-height: 144;
  /* «ЗА КОМФОРТОМ» text offset in assets/brand/logo.png */
  --logo-text-offset-x: 223;
  --logo-text-start: calc(var(--logo-height) * var(--logo-text-offset-x) / var(--logo-native-height));
  --layout-max: 1120px;
  --stack-gap: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: var(--safe-top);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

.site-header__inner {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo__img {
  width: calc(var(--logo-height) * 801 / var(--logo-native-height));
  height: var(--logo-height);
  max-width: none;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius:6px;
}

.container {
  max-width: var(--layout-max);
  margin: 0 auto;
  padding-left: calc(var(--inset-left) + var(--logo-text-start));
  padding-right: var(--inset-right);
}

/* Vertical rhythm inside a single page column – do not use padding shorthand on .hero / .section when combined with .container */
.page-flow {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap);
  padding-bottom: 2rem;
}

.page-flow > .filters,
.page-flow > .social-channels,
.page-flow > .tips-cta-row {
  margin-bottom: 0;
}

.hero {
  padding-block: 2.5rem 0.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
  font-size: 1.05rem;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-label {
  width: 100%;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: -0.25rem;
}

.filter-row--complex {
  margin-bottom: 0;
}

.filter-complex-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

@media (max-width: 767px) {
  .filter-complex-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.15rem;
    margin-inline: calc(-1 * var(--page-gutter));
    padding-inline: var(--page-gutter);
  }

  .filter-complex-chips::-webkit-scrollbar {
    display: none;
  }

  .filter-complex-chips .chip {
    flex-shrink: 0;
  }
}

.filter-status {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.tips-cta-row {
  margin: 0 0 1.25rem;
}

.tips-cta {
  box-shadow: var(--shadow);
}

.social-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.social-channel {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.social-channel:hover {
  border-color: #cfcfcf;
  color: var(--accent);
}

.social-channel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social-channel__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.social-channel__icon--brand,
.social-link__icon--brand {
  object-fit: contain;
  border-radius: 0.25rem;
}

.social-channel--max .social-channel__icon:not(.social-channel__icon--brand) {
  color: #5b4eff;
}

.social-channel--telegram .social-channel__icon {
  color: #26a5e4;
}

.social-channel--2gis .social-channel__icon {
  color: #2dbe2c;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.15s;
}

.social-link:hover {
  color: var(--accent);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius:6px;
}

.social-link__icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
}

.social-link--whatsapp .social-link__icon {
  color: #25d366;
}

.social-link--telegram .social-link__icon {
  color: #26a5e4;
}

.social-link--max .social-link__icon:not(.social-link__icon--brand) {
  color: #5b4eff;
}

.social-link--vk .social-link__icon {
  color: #0077ff;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chip:hover {
  border-color: #cfcfcf;
}

.chip--active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chip--active:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
  padding-bottom: 3rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(31, 95, 78, 0.12);
}

a.card > * {
  pointer-events: none;
}

a.card {
  pointer-events: auto;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.08);
}

.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card:hover .btn--primary {
  background: var(--accent-hover);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e5e5e5;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.card__meta {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.card__summary {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius:6px;
  background: var(--bg);
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

/* Case page */
.case-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: #2a2a2a;
}

.case-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16,24,28,0.52) 0%,
    rgba(16,24,28,0.14) 50%,
    rgba(16,24,28,0.24) 100%
  );
  pointer-events: none;
}

.case-hero__content {
  position: relative;
  z-index: 1;
  padding-block: 2.5rem 2rem;
  width: 100%;
}

.case-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(16,24,28,0.24);
}

.case-hero__meta {
  margin: 0;
  font-size: 1.05rem;
  opacity: 0.95;
  overflow-wrap: break-word;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.case-actions .btn--primary {
  background: #fff;
  color: var(--text);
}

.case-actions .btn--primary:hover {
  background: var(--bg);
}

.case-actions .btn--ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid #fff;
  text-decoration: none;
}

.case-actions .btn--ghost:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
  color: var(--text);
  text-decoration: none;
}

.case-hero__img {
  cursor: zoom-in;
}

.lightbox {
  --lightbox-bg-opacity: 0.92;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding:
    calc(3.5rem + var(--safe-top))
    calc(1rem + var(--safe-right))
    calc(1.5rem + var(--safe-bottom))
    calc(1rem + var(--safe-left));
  background: rgba(0, 0, 0, var(--lightbox-bg-opacity));
  display: none;
  touch-action: none;
}

.lightbox:not([hidden]) {
  display: flex;
}

.lightbox__stage {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 48px rgba(16,24,28,0.32);
  pointer-events: none;
}

.lightbox--zoomed .lightbox__nav {
  visibility: hidden;
}

.lightbox__close {
  position: absolute;
  top: calc(0.75rem + var(--safe-top));
  right: calc(0.75rem + var(--safe-right));
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox__nav--prev {
  left: calc(0.75rem + var(--safe-left));
}

.lightbox__nav--next {
  right: calc(0.75rem + var(--safe-right));
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lightbox__counter {
  position: absolute;
  bottom: calc(0.75rem + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.section {
  padding-block: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.section p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 65ch;
  overflow-wrap: break-word;
}

.section p:last-child {
  margin-bottom: 0;
}

.list-check {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.list-check li {
  margin-bottom: 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.gallery figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* <picture> обёртки (адаптивные изображения) не должны влиять на раскладку. */
.gallery picture,
.card__media picture,
.case-hero picture {
  display: contents;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.gallery figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.media-open {
  display: none;
}

@media (max-width: 767px) {
  .media-open {
    pointer-events: none;
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(16,24,28,0.2);
  }

  .gallery .media-open {
    bottom: calc(0.5rem + 1.75rem);
  }

  .case-hero .media-open {
    bottom: auto;
    top: calc(0.75rem + var(--safe-top));
    right: calc(0.75rem + var(--safe-right));
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gallery img,
.card__media img,
.case-hero__img,
.lightbox__img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.case-hero__content {
  z-index: 2;
}

.video-block {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
  aspect-ratio: 16 / 9;
  max-width: 800px;
}

.video-block iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-block video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.video-fallback {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.tip-grid--related {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
}

.tip-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(20, 20, 20, 0.08);
}

.tip-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.tip-card__media {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #1a1a1a;
}

.tip-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.tip-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 20px rgba(16,24,28,0.17);
  pointer-events: none;
}

.tip-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.45rem 0 0.45rem 0.75rem;
  border-color: transparent transparent transparent var(--accent);
}

.tip-card__duration {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  padding: 0.15rem 0.45rem;
  border-radius:6px;
  background: rgba(16,24,28,0.5);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tip-card__body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tip-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.tip-card__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.tip-card--compact .tip-card__title {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.tip-card__summary {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tips-filters {
  margin-bottom: 0.5rem;
}

.tip-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.tip-breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.tip-breadcrumbs a:hover {
  text-decoration: underline;
}

.tip-detail h1 {
  margin: 0 0 1.25rem;
}

.tip-detail .video-block {
  margin-bottom: 1.25rem;
  aspect-ratio: 9 / 16;
  max-width: min(100%, 404px);
}

.tip-detail .video-block video {
  object-fit: cover;
  object-position: top center;
}

.tip-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
}

.manager-toggle {
  margin: 2rem 0 1rem;
}

.manager-panel {
  display: none;
  background: #f3f6f4;
  border: 1px solid #d8e3de;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.manager-panel.is-visible {
  display: block;
}

.manager-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.manager-panel pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.footer-note {
  padding: 1rem 0 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 calc(2rem + var(--safe-bottom));
  margin-top: auto;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-footer__brand strong {
  font-size: 1rem;
}

.site-footer__brand span {
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.site-footer__phone {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.site-footer__phone:hover {
  color: var(--accent);
}

.site-footer__messengers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.site-footer__credit {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.site-footer__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.site-footer__credit a:hover {
  color: var(--accent);
}

.section--fit {
  padding-bottom: 2.5rem;
}

.list-check--fit li {
  line-height: 1.55;
}

.section-cta {
  margin: 1.5rem 0 0;
}

.page-404 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (max-width: 768px) {
  :root {
    --page-gutter: 1.25rem;
  }

  .container {
    padding-left: var(--inset-left);
    padding-right: var(--inset-right);
  }

  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0.5rem;
    width: 100%;
    align-items: center;
  }

  .nav-links a {
    font-size: clamp(0.6875rem, 2.65vw, 0.875rem);
    line-height: 1.25;
    text-align: center;
    text-wrap: balance;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    gap: 0.65rem;
  }

  .nav-links {
    column-gap: 0.35rem;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .logo__img {
    height: 42px;
  }

  :root {
    --logo-height: 42px;
  }

  .hero {
    padding-block: 2rem 0.75rem;
  }

  .hero h1 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .filters {
    padding: 1.35rem 1.2rem;
  }

  .filter-label {
    margin-bottom: 0.15rem;
  }

  .social-channels {
    gap: 0.5rem;
  }

  .social-channel {
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .card__body {
    padding: 1.15rem 1.15rem 1.3rem;
  }

  .card__summary {
    font-size: 0.9rem;
  }

  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-row {
    gap: 0.4rem;
  }

  .chip {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }

  .case-hero {
    min-height: 50vh;
  }

  .case-hero__content {
    padding-top: 2rem;
    padding-bottom: 1.75rem;
  }

  .case-hero h1 {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .case-hero__meta {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .case-actions {
    gap: 0.65rem;
  }

  .case-actions .btn {
    width: 100%;
  }

  .section {
    padding-block: 2rem;
  }

  .section h2 {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .list-check {
    padding-left: 1.35rem;
  }

  .empty-state {
    padding: 2.5rem 0.5rem;
  }

  .page-404 h1 {
    font-size: 1.55rem;
    line-height: 1.2;
  }
}

@media (max-width: 380px) {
  :root {
    --page-gutter: 1.125rem;
  }

  .filters {
    padding: 1.2rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}
/* === стиль сайта zakomfortom.com (20.11.2026) === */
:root{--accent:#b8770f;--accent-hover:#8f5a06;--font:'Montserrat',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;--bg:#ffffff;--text:#10181c;--muted:#46535a;--border:#e3e6e8}
.site-header{background:#142329;border-bottom:0}
.site-header a,.site-header .nav-links a{color:#fff}
.site-header .nav-links a:hover{color:#f8aa37;text-decoration:none}
.logo__img{content:url('/img/logo.svg')}
.btn--primary,.chip--active{background:#f8aa37;border-color:#f8aa37;color:#000f15}
.btn--primary:hover,.chip--active:hover{background:#e0931c;border-color:#e0931c;color:#000f15}
.btn--ghost{color:#10181c;border-color:#cfd5d8}
.btn--ghost:hover{border-color:#f8aa37;color:#10181c}
.chip:hover{border-color:#f8aa37}
h1,h2,h3{letter-spacing:-.01em}
.site-footer{background:#000f15;color:rgba(255,255,255,.8)}
.site-footer a{color:#fff}
.site-footer .logo__img{content:url('/img/logo.svg')}
.tip-card__play{border-color:transparent transparent transparent #f8aa37}
/* === страницы объектов в стиле сайта (20.11.2026) === */
:root{--layout-max:1200px;--page-gutter:20px}
.btn{border-radius:6px;font-weight:700}
.case-hero{min-height:460px;align-items:center;background:#000f15}
.case-hero__img{opacity:1}
.case-hero::after{background:linear-gradient(90deg,rgba(0,15,21,.94) 0%,rgba(0,15,21,.72) 38%,rgba(0,15,21,.18) 75%,rgba(0,15,21,.05) 100%)}
.case-hero h1{font-size:46px;line-height:1.1;text-shadow:none;margin-bottom:12px}
.case-hero__meta{font-size:18px;color:rgba(255,255,255,.85)}
.case-actions{margin-top:26px;gap:12px}
.case-actions .btn{padding:16px 26px;font-size:15px}
.case-actions .btn--primary,.case-actions .btn--primary:hover{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.45)}
.case-actions .btn--ghost{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.45)}
.case-actions .btn--ghost:hover{background:rgba(255,255,255,.1);color:#fff;border-color:rgba(255,255,255,.45)}
.case-actions .btn[onclick]{background:#f8aa37;border-color:#f8aa37;color:#000f15;order:-1}
.case-actions .btn[onclick]:hover{background:#e0931c;border-color:#e0931c;color:#000f15}
#case-root .section{padding-block:46px;border-bottom:0}
#case-root .section + .section{border-top:1px solid #e3e6e8}
#case-root .section h2{font-size:30px;line-height:1.15;margin-bottom:18px;padding-left:26px;position:relative}
#case-root .section h2::before{content:"";position:absolute;left:0;top:10px;width:14px;height:14px;background:#f8aa37}
#case-root .section p{font-size:16.5px;line-height:1.6;color:#46535a;max-width:860px}
#case-root .section p strong{color:#10181c}
#case-root .list-check{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:0 40px;color:#10181c}
#case-root .list-check li{position:relative;padding:11px 0 11px 24px;margin:0;border-bottom:1px solid #e3e6e8;font-size:15.5px}
#case-root .list-check li::before{content:"";position:absolute;left:0;top:18px;width:10px;height:10px;background:#f8aa37}
#case-root .gallery{gap:16px}
#case-root .gallery figure,#case-root .gallery img{border-radius:12px}
#case-root .video-block{border-radius:12px;overflow:hidden}
#case-root .section--fit{background:#000f15;color:#fff;border-radius:12px;padding:38px 40px;margin:10px 0 56px;border-top:0}
#case-root .section--fit h2{color:#f8aa37}
#case-root .section--fit .list-check{color:#fff}
#case-root .section--fit .list-check li{border-bottom-color:rgba(255,255,255,.14)}
#case-root .section-cta{margin-top:24px}
#case-root .section-cta .btn{padding:16px 28px;font-size:15px}
@media (max-width:860px){
  .case-hero{min-height:380px;align-items:flex-end}
  .case-hero::after{background:linear-gradient(180deg,rgba(0,15,21,.25) 0%,rgba(0,15,21,.9) 70%)}
  .case-hero h1{font-size:30px}
  .case-hero__meta{font-size:15px}
  .case-actions .btn{width:100%;padding:14px 18px}
  #case-root .section{padding-block:32px}
  #case-root .section h2{font-size:23px;padding-left:22px}
  #case-root .section h2::before{top:8px;width:12px;height:12px}
  #case-root .section p{font-size:15px}
  #case-root .list-check{grid-template-columns:1fr}
  #case-root .list-check li{font-size:14.5px}
  #case-root .section--fit{padding:26px 20px;margin-bottom:36px}
  #case-root .section-cta .btn{width:100%}
}
main .container,main.container,.container:not(.zk .container){padding-left:20px;padding-right:20px}

.tip-text{max-width:760px;margin:28px 0 8px}.tip-text h2{font-size:22px;margin:26px 0 12px}.tip-text p{font-size:16px;line-height:1.65;margin:0 0 12px}
@media(max-width:700px){.tip-text h2{font-size:19px}.tip-text p{font-size:15px}}
/* v52 */ @media(max-width:860px){.chip{min-height:38px}}
/* v55 */ h1,h2,h3{overflow-wrap:break-word}@media(max-width:345px){.tip-detail h1,.case-hero h1,main h1{font-size:1.5rem;hyphens:auto}}

/* v56: телефон – без случайного масштаба и сдвига страницы вбок */
html,body{overflow-x:clip!important;max-width:100%}
html{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.filter-complex-chips,.chips,.tip-grid,.gallery,[class*=carousel],[class*=slider]{overscroll-behavior-x:contain;touch-action:pan-x pan-y}
input,select,textarea{font-size:16px!important}

.tip-meta{font-size:13.5px!important;color:#7b878d;margin:0 0 6px!important}.tip-meta a{color:inherit;text-decoration:underline}

.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.tip-svcs{margin:22px 0 0;padding:16px 18px;background:#f4f4f2;border-left:4px solid #f8aa37;border-radius:12px;font-size:15px;display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}.tip-svcs b{width:100%}.tip-svc{color:#e0931c;font-weight:600;text-decoration:underline;text-underline-offset:3px}

.tip-article{max-width:760px;margin:30px 0 10px;padding-top:24px;border-top:1px solid #e6e6e2}.tip-article h2{font-size:24px;margin:28px 0 12px}.tip-article p{font-size:16px;line-height:1.7;margin:0 0 14px}.art-lead{font-size:17.5px!important;font-weight:500}.art-ul{margin:0 0 16px;padding:0;list-style:none}.art-ul li{position:relative;padding:8px 0 8px 24px;font-size:16px;line-height:1.6;border-bottom:1px solid #eee}.art-ul li::before{content:"";position:absolute;left:0;top:16px;width:9px;height:9px;background:#f8aa37}.art-faq details{border-bottom:1px solid #e6e6e2;padding:12px 0}.art-faq summary{font-weight:700;cursor:pointer;font-size:16px}.art-faq p{margin:8px 0 0}
@media(max-width:700px){.tip-article h2{font-size:20px}.tip-article p,.art-ul li{font-size:15px}}
