﻿/* Public site styles. Generated from styles.css; keep admin/editor chrome out of this file. */

:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-strong: #eef2f7;
  --text: #18202f;
  --muted: #647085;
  --line: #d9e0ea;
  --accent: #246bfe;
  --accent-strong: #144ed2;
  --green: #15803d;
  --amber: #a16207;
  --red: #b42318;
  --nav: #111827;
  --nav-muted: #9ca3af;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}


.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-site {
  background: #f8fafc;
  overflow-x: hidden;
}

.public-site.mobile-menu-open {
  overflow: hidden;
}

.public-site.mobile-menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.46);
}

.site-top-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  background: #087789;
  color: white;
  box-sizing: border-box;
  padding: 14px clamp(120px, 18vw, 320px);
}

.site-top-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
}

.site-top-nav a.nav-item-selected {
  outline: 3px solid #f59e0b;
  outline-offset: 4px;
  border-radius: 6px;
}

.site-body-shell {
  display: grid;
  grid-template-columns: var(--side-width, 280px) minmax(0, 1fr);
  min-height: 100vh;
  align-items: start;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 16px;
  z-index: 1001;
  background: var(--surface-strong, #1f2937);
  color: var(--text, white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.site-side-menu {
  display: grid;
  align-content: start;
  align-self: start;
  width: 280px;
  min-height: calc(100vh - 52px);
  overflow: hidden;
  background: #087789;
  color: white;
}

.side-brand {
  display: grid;
  gap: 10px;
  justify-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 22px 16px 24px;
  text-align: center;
  cursor: pointer;
}

.side-brand-logo {
  display: grid;
  place-items: center;
  width: min(180px, calc(100% - 20px));
  aspect-ratio: 1;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.side-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-brand-title {
  display: block;
  max-width: 100%;
  color: inherit;
  font-size: 16px;
  line-height: 1.22;
}

.side-menu-list {
  display: grid;
}

.site-side-menu a {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
}

.site-side-menu a.side-item-selected {
  outline: 3px solid #f59e0b;
  outline-offset: -3px;
  background: rgba(255, 255, 255, 0.12);
}

.site-main-column {
  min-width: 0;
  max-width: 100%;
}

.site-feature-row {
  display: block;
  width: 100%;
}

.site-feature-row.has-right-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--right-width, 280px);
  align-items: stretch;
}

.site-feature-row.has-right-panel .site-hero {
  height: 100%;
}

.site-right-panel {
  align-self: stretch;
  min-height: 0;
  background: #f8fafc;
}

.site-right-panel[hidden] {
  display: none;
}

.right-panel-content {
  height: 100%;
  width: 100%;
}

.site-hero {
  position: relative;
  min-height: 56vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.site-hero[hidden] {
  display: none;
}

.site-hero-media {
  position: absolute;
  inset: 0;
  transition: background var(--slider-transition-ms, 450ms) ease;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.22)),
    #0f172a;
}

.site-hero-copy {
  display: none;
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 48px;
  color: white;
}

.site-hero-copy h1 {
  margin: 0 0 12px;
  font-size: 56px;
  line-height: 1;
}

.site-hero-copy p:last-child {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.site-slider {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  width: min(100% - 44px, 1060px);
  margin: 0 auto 28px;
  color: white;
}

.site-slider[hidden] {
  display: none;
}

.slider-content {
  display: grid;
  gap: 10px;
  max-width: 720px;
  transition: opacity var(--slider-transition-ms, 450ms) ease;
}

.slider-content h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
}

#sliderExcerpt {
  display: none;
}

.slider-content a {
  width: fit-content;
  border-radius: 8px;
  background: white;
  color: var(--text);
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slider-controls[hidden],
.slider-dots[hidden],
#sliderPause[hidden] {
  display: none;
}

#sliderPause {
  display: none;
}

.slider-controls button,
.slider-dots button {
  border: 0;
  cursor: pointer;
}

.slider-controls button {
  min-width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 900;
}

.slider-dots {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.slider-dots button.active {
  background: white;
}

.site-content {
  display: grid;
  gap: 18px;
  max-width: none;
  margin: 0;
  padding: 32px 22px 64px;
  max-width: 100%;
  overflow-x: hidden;
}

.post-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--post-card-min-width, 360px)), 1fr));
  align-items: stretch;
}

.posts-block-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.posts-block-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.site-post {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

.site-post h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.site-post-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  min-height: var(--post-card-height, auto);
}

.post-card-cover {
  display: block;
  width: 100%;
  height: var(--post-cover-height, auto);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-strong);
}

.post-card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.post-card-body h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.post-card-body h2 a,
.read-link {
  color: var(--text);
  text-decoration: none;
}

.post-card-body p {
  margin: 0;
  color: var(--muted);
}

.site-gallery {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  width: 100%;
  margin-top: 18px;
}

.site-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gallery-block-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
}

.site-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.site-gallery-item {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.site-gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-strong);
}

.site-gallery-item figcaption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.custom-block-content a,
.right-panel-content a,
.post-body a,
[contenteditable='true'] a {
  color: inherit;
  text-decoration: none;
}

.custom-block-content a:hover,
.right-panel-content a:hover,
.post-body a:hover,
[contenteditable='true'] a:hover {
  text-decoration: underline;
}

.read-link {
  width: fit-content;
  color: var(--accent);
  font-weight: 800;
}

.post-detail {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.post-detail h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.1;
}

.post-cover {
  width: 100%;
  max-height: 520px;
  border-radius: 8px;
  object-fit: cover;
}

.post-body {
  color: var(--text);
  font-size: 18px;
  line-height: 1.65;
}

.post-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.post-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
}

.chat-toggle {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
  cursor: pointer;
}

.chat-toggle:hover {
  background: var(--accent-strong);
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: none;
  width: min(390px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 110px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}

.chat-widget.open .chat-panel {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.chat-header div {
  display: grid;
  gap: 3px;
}

.chat-header span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.chat-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 16px;
}

.chat-message {
  max-width: 86%;
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.chat-message.assistant {
  justify-self: start;
  background: var(--surface-strong);
  color: var(--text);
}

.chat-message.user {
  justify-self: end;
  background: var(--accent);
  color: white;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 12px;
}

.chat-form input {
  min-width: 0;
}

.chat-form button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

.chat-form button:disabled,
.chat-form input:disabled {
  opacity: 0.65;
}


.seo-fallback {
  display: grid;
  gap: 24px;
  width: min(100%, 1060px);
  margin: 0 auto;
  padding: 32px 22px;
  color: #18202f;
}

.seo-fallback article,
.seo-fallback section {
  display: grid;
  gap: 12px;
}

.seo-fallback h1,
.seo-fallback h2,
.seo-fallback p {
  margin: 0;
}

.seo-fallback img {
  max-width: 100%;
  height: auto;
}

.seo-fallback-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.builder-image-item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #f8fafc;
  color: #64748b;
}

.builder-image-drop {
  display: grid;
  place-items: center;
  min-height: inherit;
  overflow: hidden;
  border: 2px dashed #b8c7d6;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.builder-image-preview {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.builder-image-placeholder {
  padding: 28px;
  color: #64748b;
  font-weight: 900;
  text-align: center;
}

.builder-image-caption {
  margin: 0;
  padding: 0 4px 8px;
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.builder-image-item.has-image .builder-image-drop {
  border-style: solid;
  background: transparent;
}

.builder-image-item.uploading {
  opacity: 0.65;
}

.public-site:not(.builder-mode) .builder-image-item.is-empty {
  display: none;
}

.custom-page-block {
  position: relative;
}

.linked-block {
  cursor: pointer;
}

.custom-page-block + .custom-page-block {
  margin-top: 18px;
}

.custom-block-content {
  display: grid;
  gap: 10px;
}

.custom-text-block .custom-block-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.custom-container-block .custom-block-content {
  width: 100%;
  min-height: 96px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.builder-mode .custom-container-block .custom-block-content {
  border: 1px solid var(--line);
}

.custom-block-content h2,
.custom-block-content h3,
.custom-block-content p {
  margin: 0;
}

.builder-card-item {
  position: relative;
  display: grid;
  place-items: center;
  gap: 14px;
  overflow: hidden;
  min-height: 200px;
  background: #eef6f4;
  padding: 34px 26px;
  text-align: center;
}

.specialty-card {
  isolation: isolate;
  align-content: start;
  justify-items: start;
  place-items: initial;
  gap: 22px;
  min-height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 44px rgba(18, 60, 98, 0.18);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.specialty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(18, 60, 98, 0.26);
}

.specialty-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.specialty-card-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.specialty-card-icon svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.specialty-card .builder-card-code {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.specialty-card .builder-card-title {
  max-width: none;
  color: #ffffff !important;
  font-size: 24px;
  margin-top: 4px;
}

.specialty-card-qualification {
  display: none;
}

.specialty-card-summary {
  display: none;
}

.specialty-card-more {
  display: none;
  margin-top: auto;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.specialty-detail {
  display: grid;
  gap: 24px;
}

.specialty-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #123c62, #087789);
  color: #ffffff;
  padding: 30px;
}

.specialty-detail-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
}

.specialty-detail-icon svg {
  width: 54px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.specialty-detail-code {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #e6432e;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 900;
}

.specialty-detail h2 {
  margin: 10px 0 8px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 0.98;
}

.specialty-detail-lead {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.55;
}

.specialty-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.specialty-info-card {
  border: 1px solid #d8e3ea;
  border-radius: 22px;
  background: #ffffff;
  padding: 24px;
  color: #18202f;
}

.specialty-info-card h3 {
  margin: 0 0 14px;
  color: #123c62;
  font-size: 22px;
}

.specialty-info-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  line-height: 1.5;
}

.specialty-qualification {
  border-radius: 22px;
  background: #eef7f7;
  color: #123c62;
  padding: 22px 24px;
  font-size: 18px;
  font-weight: 900;
}

.builder-section-item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  flex: 1 1 0;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.builder-section-title {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}

.builder-section-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.builder-widget-item {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  background: #ffffff;
  color: #0f172a;
  padding: 0;
}

.builder-widget-title {
  margin: 0;
  padding: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
}

.builder-widget-image {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.builder-widget-subtitle {
  font-size: 14px;
  line-height: 1.3;
}

.builder-widget-text {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.builder-widget-link {
  width: fit-content;
  border-radius: 4px;
  background: #087789;
  color: #ffffff;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.builder-accordion-item {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid #dbe2e8;
  background: #ffffff;
  color: #18202f;
}

.builder-accordion-section {
  position: relative;
  border-bottom: 1px solid #dbe2e8;
}

.builder-accordion-summary {
  position: relative;
  display: block;
  padding: 22px 46px 22px 22px;
  color: inherit;
  font-size: 17px;
  font-weight: inherit;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.builder-accordion-summary::-webkit-details-marker {
  display: none;
}

.builder-accordion-summary::after {
  content: '⌄';
  position: absolute;
  top: 50%;
  right: 22px;
  color: #94a3b8;
  transform: translateY(-55%);
  transition: transform 0.18s ease;
}

.builder-accordion-section[open] > .builder-accordion-summary::after {
  transform: translateY(-45%) rotate(180deg);
}

.builder-accordion-content {
  display: grid;
  gap: 12px;
  padding: 8px 22px 24px;
  color: inherit;
  line-height: 1.55;
}

.builder-accordion-content > *,
.builder-accordion-content .builder-card-item,
.builder-accordion-content .builder-section-item,
.builder-accordion-content .builder-widget-item,
.builder-accordion-content .builder-image-item {
  width: 100%;
  max-width: 100%;
}

.site-footer {
  margin-top: 48px;
  background: #075f70;
  color: #e7f6f8;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.7fr) minmax(200px, 0.8fr);
  gap: 34px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 30px 34px;
}

.site-footer-brand,
.site-footer-heading {
  display: block;
  margin-bottom: 14px;
  color: inherit;
  font-size: 17px;
  line-height: 1.35;
}

.site-footer-text,
.site-footer-contacts {
  color: inherit;
  font-size: 14px;
  line-height: 1.7;
}

.site-footer-nav {
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer-nav .footer-item-selected {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 4px;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 16px 30px;
  color: inherit;
  font-size: 13px;
  text-align: center;
}

.builder-card-code {
  color: #7b8794;
  font-size: 15px;
  line-height: 1.2;
}

.builder-card-title {
  max-width: 280px;
  margin: 0;
  color: #2f86ff;
  font-size: 21px;
  line-height: 1.24;
}

@media (max-width: 920px) {
  .site-side-menu {
    position: fixed !important;
    left: -100vw;
    top: 0;
    height: 100vh;
    width: min(360px, 100vw) !important;
    max-width: 100vw !important;
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    background: inherit;
    box-shadow: 18px 0 40px rgba(15, 23, 42, 0.22);
    overscroll-behavior: contain;
  }

  .site-side-menu.open {
    left: 0;
  }

  .mobile-nav-toggle {
    display: block !important;
    z-index: 1003;
  }
  .custom-container-block .custom-block-content[style*="grid"] {
    grid-template-columns: 1fr !important;
  }

  .specialty-detail-hero,
  .specialty-detail-grid {
    grid-template-columns: 1fr;
  }

  .site-slider {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .site-body-shell {
    grid-template-columns: 1fr;
  }

  .site-feature-row.has-right-panel {
    grid-template-columns: 1fr;
  }

  .site-top-nav {
    margin-left: 0;
    gap: 10px;
    padding: 14px 10px 14px 76px;
    max-width: 100vw;
    overflow: hidden;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 22px 26px;
  }

  .site-right-panel {
    width: 100%;
    min-height: auto;
    position: relative;
  }
}

@media (max-width: 640px) {
  .site-side-menu {
    width: 100vw !important;
  }

  .site-top-nav {
    flex-wrap: wrap;
    font-size: 14px;
  }

  .site-top-nav a {
    min-width: 0;
    max-width: calc(100vw - 96px);
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: center;
  }

  .site-content {
    padding-inline: 16px;
  }

  .custom-page-block,
  .custom-block-content,
  .custom-container-block .custom-block-content,
  .builder-card-item,
  .builder-section-item,
  .builder-widget-item,
  .builder-image-item,
  .site-gallery,
  .site-gallery-grid,
  .site-gallery-item,
  .specialty-card,
  .specialty-detail,
  .specialty-detail-hero,
  .specialty-detail-grid {
    max-width: 100%;
    min-width: 0;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

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

  .site-hero-copy {
    padding: 34px 22px;
  }

  .site-hero-copy h1 {
    font-size: 40px;
  }

  .slider-content h2 {
    font-size: 21px;
  }

  .slider-controls {
    flex-wrap: wrap;
  }

  .chat-widget {
    left: auto !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(18px, env(safe-area-inset-bottom)) !important;
    z-index: 40;
  }

  .chat-toggle {
    width: 52px;
    height: 52px;
  }

  .chat-panel {
    right: 0;
    bottom: 64px;
    width: calc(100vw - 28px);
    max-height: min(560px, calc(100vh - 92px));
  }

  .site-footer {
    margin-top: 34px;
  }

  .site-footer-grid {
    gap: 26px;
    padding: 30px 18px 24px;
  }

  .site-footer-brand,
  .site-footer-heading {
    margin-bottom: 12px;
    font-size: 17px;
  }

  .site-footer-text,
  .site-footer-contacts,
  .site-footer-nav {
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .site-footer-bottom {
    padding: 16px 86px 16px 18px;
    text-align: left;
  }

}

@media (max-width: 360px) {
  .chat-widget {
    right: 10px !important;
    bottom: 16px !important;
  }

  .chat-toggle {
    width: 48px;
    height: 48px;
  }

  .site-footer-grid {
    padding-inline: 16px;
  }

  .site-footer-bottom {
    padding-right: 72px;
  }
}

