/* Shared visual refinements. Component behavior stays in grusher.js / Winter CMS. */
:root {
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1240px;
  --header-h: 72px;
  --section-y: clamp(52px, 6vw, 88px);
  --shadow-sm: 0 2px 5px rgb(16 24 40 / 4%);
}
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
h1 { letter-spacing: -.045em; line-height: 1.12; }
h2 { letter-spacing: -.025em; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.site-header { border-bottom: 1px solid var(--border); }
.header__inner { min-height: 72px; }
.btn { min-height: 44px; border-radius: 8px; font-weight: 650; }
.btn--primary { box-shadow: 0 2px 3px rgb(16 24 40 / 8%); }
.icon-btn { min-width: 40px; min-height: 40px; }
.hero { padding-block: clamp(48px, 7vw, 100px); background: var(--bg); }
.hero h1 { font-size: clamp(2.2rem, 4.1vw, 3.65rem); max-width: 19ch; }
.hero .lead { font-size: 1.075rem; line-height: 1.75; }
.hero__actions { margin-top: 30px; gap: 12px; }
.section__head { max-width: 100%; }
.section__lead { line-height: 1.7; }
.card { box-shadow: var(--shadow-sm); }
.module-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.module-nav a { padding: 8px 12px; border: 1px solid var(--border); border-radius: 7px; font-size: .8rem; color: var(--text-muted); background: var(--surface); text-decoration: none; }
.module-nav a:hover { border-color: var(--brand); color: var(--brand); }
.fgroups { columns: 3 290px; column-gap: 20px; }
.fgroup { display: inline-block; width: 100%; margin: 0 0 20px; padding: 22px; border: 1px solid var(--border); break-inside: avoid; }
.fgroup__title { gap: 12px; font-size: 1.04rem; line-height: 1.5; border-bottom: 1px solid var(--border); padding-bottom: 18px; scroll-margin-top: 100px; }
.fgroup__title .icon { width: 24px; height: 24px; flex-shrink: 0; }
.fgroup__item { padding: 10px 0; line-height: 1.6; border: 0; align-items: start; }
.fgroup__item .icon { margin-top: 4px; }
.fgroup__item a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.workflow-card { position: relative; display: flex; flex-direction: column; align-items: start; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: var(--surface); text-decoration: none;  }
.workflow-card > .icon { width: 30px; height: 30px; margin-bottom: 26px; color: var(--brand); }
.workflow-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.workflow-card p { font-size: .925rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }
.workflow-card .link-arrow { margin-top: auto; font-size: .9rem; }
.workflow-card .link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 60px; }
.faq-layout .section__lead { margin-top: 20px; }
.faq-intro { align-self: start; }
.faq-visual { margin-top: 34px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.faq-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1.66; object-fit: cover; object-position: left top; }
.faq-visual figcaption { padding: 16px 18px; color: var(--text-muted); font-size: .875rem; line-height: 1.6; }
.faq-visual--illustration { padding: 28px 28px 0; }
.faq-visual--illustration img { aspect-ratio: auto; max-height: 330px; object-fit: contain; object-position: center; }
.faq-visual--illustration figcaption { margin-inline: -28px; margin-top: 18px; border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-list details:first-child { padding-top: 0; }
.faq-list summary { cursor: pointer; font-weight: 650; line-height: 1.6; }
.faq-list p { padding-top: 14px; color: var(--text-muted); line-height: 1.8; }
.faq-layout--compact { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.faq-layout--compact .faq-intro { max-width: 760px; }
.faq-layout--compact .faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; align-items: start; }
.faq-layout--compact .faq-list details { padding: 14px 0; }
.faq-layout--compact .faq-list details:nth-child(-n+2) { padding-top: 0; }
.faq-layout--compact .faq-list p { padding-top: 10px; line-height: 1.65; }
.release { border-radius: var(--radius); padding: 20px 24px; }
.stats { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 26px 12px; }
.stat__value { font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.logo-wall__item { border-radius: 8px; }
.site-footer { padding-block: 36px; }
/* Content remains readable if JavaScript is blocked or a component fails. */
.reveal { opacity: 1; transform: none; }
.service-body { max-width: 820px; }
.service-body p { margin: 16px 0 28px; color: var(--text-muted); line-height: 1.8; }
.service-body h2 { margin-top: 36px; }
.preview-notice { padding: 10px 20px; background: #fff4cf; color: #483600; font: 13px/1.5 system-ui, sans-serif; text-align: center; }

@media (max-width: 767px) {
  .workflow-grid, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .fgroups { columns: 1; }
  .faq-layout { gap: 28px; }
  .faq-layout--compact .faq-list { grid-template-columns: minmax(0, 1fr); }
  .faq-layout--compact .faq-list details:nth-child(2) { padding-top: 14px; }
  .fgroup, .workflow-card { padding: 22px; }
  .hero h1 { max-width: 100%; }
  .module-nav { gap: 6px; }
  .module-nav a { font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .workflow-card { transition: none; } }


@media (max-width: 1023px) { .nav { top: var(--nav-top, var(--header-h)); } }
@media (max-width: 480px) { .brand-group .author, .brand__sep { display: none; } .header__tools { gap: 2px; } }

/* Maintain foreground contrast for every button state, including dark mode. */
.btn--primary:hover, .btn--primary:focus-visible {
  --btn-bg: var(--brand-hover);
  --btn-bd: var(--brand-hover);
  --btn-fg: var(--on-brand);
  background: var(--brand-hover);
  color: var(--on-brand);
  box-shadow: none;
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--text);
}
.review-overview { display: flex; align-items: center; flex-wrap: wrap; gap: 28px 48px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.review-overview__rating { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 20px; }
.review-overview__rating .reviews__score { grid-row: span 2; }
.review-overview__rating .reviews__score-value { font-size: 2.75rem; }
.review-overview__rating .reviews__count { grid-column: 2; }
.review-overview__action { margin-left: auto; max-width: 340px; }
.review-overview__action .card__foot { padding: 0; }
.review-overview__action .btn { width: auto; }
.review-distribution { min-width: 210px; max-width: 290px; }
.review-distribution > p { cursor: pointer; color: var(--text-muted); font-size: .875rem; }
.review-distribution .reviews__dist { padding-top: 12px; }
.review-card { display: inline-flex; flex-direction: column; width: 100%; height: 100%; gap: 20px; padding: 28px; margin-bottom: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); break-inside: avoid; }
.review-card .review__head { padding-right: 0; }
.review-card .review__logo-box { width: 76px; height: 56px; background: #fff; border-color: #dde3ee; }
.review-card .review__logo-box--round { width: 56px; }
.review-card .review__who { white-space: normal; overflow-wrap: anywhere; font-size: 1rem; }
.review-card .review__text { border: 0; padding: 0; color: var(--text); font-size: 1rem; line-height: 1.75; -webkit-line-clamp: 8; }
.review-card .review__text.is-open { -webkit-line-clamp: unset; }
.review-card .review__link { margin-top: auto; }
.review-card .review__link { padding-top: 16px; }
.service-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.service-hero__image { display: grid; place-items: center; padding: 32px; }
.service-hero__image img { width: 100%; height: auto; max-height: 340px; object-fit: contain; }
.service-hero__image--zabbix { background: #fff; border-radius: 8px; }
.service-hero__image--open-source img { max-width: 230px; }
.service-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.service-contact p { margin-top: 12px; color: var(--text-muted); }
.service-contact__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
@media (max-width: 767px) {
  .review-overview { gap: 22px; align-items: start; }
  .review-overview__action { margin-left: 0; }
  .review-card { padding: 22px; }
  .service-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .service-hero__image { padding: 24px; }
}


.review-distribution { flex: 1 1 240px; }
.review-slider::before, .review-slider::after { display: none; }
.review-slider .carousel__track { align-items: stretch; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; }
.review-slider .carousel__nav .icon-btn { width: 44px; height: 44px; }
@media (max-width: 1079px) {
  .review-slider .carousel__track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 767px) {
  .review-slider .carousel__track { grid-auto-columns: 100%; }
  .review-distribution { max-width: none; width: 100%; }
}

.grushon-brand { object-fit: contain; }
.livesupport-hero { padding-block: clamp(54px, 7vw, 96px); }
.livesupport-hero__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(480px, 1.2fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.grushon-title { display: flex; align-items: center; gap: 20px; }
.grushon-title img { width: clamp(72px, 8vw, 104px); height: clamp(72px, 8vw, 104px); object-fit: contain; }
.livesupport-hero h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); }
.livesupport-hero .lead { max-width: 62ch; margin-top: 22px; color: var(--text-muted); font-size: 1.08rem; line-height: 1.75; }
.livesupport-summary { display: grid; gap: 11px; margin-top: 30px; color: var(--text-muted); font-size: .9rem; }
.livesupport-summary li { display: flex; gap: 10px; align-items: start; }
.livesupport-summary .icon { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; color: var(--ok); }
.livesupport-hero__media { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: 0 22px 60px rgb(15 23 42 / 16%); }
.livesupport-hero__media img { display: block; width: 100%; height: auto; }
.livesupport-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.livesupport-features .workflow-card { min-height: 245px; }
.livesupport-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.livesupport-shot { display: block; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); }
.livesupport-shot--wide { grid-column: 1 / -1; }
.livesupport-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--border); }
.livesupport-shot span { display: block; padding: 17px 20px; font-weight: 650; }
.livesupport-shot:hover { border-color: var(--brand); color: var(--brand); }
.livesupport-availability { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: 34px 38px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.livesupport-availability p { max-width: 70ch; margin-top: 14px; color: var(--text-muted); line-height: 1.7; }
.livesupport-availability .btn { flex: 0 0 auto; }
@media (max-width: 1023px) {
  .livesupport-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .livesupport-hero__media { max-width: 820px; }
  .livesupport-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .livesupport-features, .livesupport-gallery { grid-template-columns: minmax(0, 1fr); }
  .livesupport-shot--wide { grid-column: auto; }
  .livesupport-availability { align-items: start; flex-direction: column; padding: 26px 22px; }
  .livesupport-availability .btn { width: 100%; }
}
