details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }

/* Side background (screen 3 — light grey) */
html {
  background-color: #e7e7e7;
  min-height: 100%;
}

body {
  background: transparent;
}

.site-shell {
  max-width: 1280px;
  margin: 0 auto;
  background: var(--background, #fff);
  box-shadow: 0 0 48px rgba(0, 60, 90, 0.08);
  width: 100%;
}

#site-header {
  background: color-mix(in srgb, var(--background, #fff) 95%, transparent);
}

/* Lead modal — centered on viewport */
.lead-dialog {
  border: none;
  padding: 0;
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  background: transparent;
  overflow: visible;
}

.lead-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lead-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.lead-dialog__panel {
  position: relative;
  width: min(520px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  flex-shrink: 0;
  padding: 1.5rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--background, #fff);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.lead-dialog__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--background, #fff);
  color: var(--foreground, #0f172a);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.lead-dialog__close:hover {
  background: var(--accent, #f1f5f9);
}

/* Certificates */
.cert-gallery {
  max-width: 42rem;
  justify-items: center;
}

.cert-gallery a {
  display: block;
  width: 100%;
  max-width: 200px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.cert-gallery a:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  cursor: zoom-out;
}

.cert-lightbox img {
  max-width: min(280px, 92vw);
  max-height: min(420px, calc(100vh - 3rem));
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

/* Reviews */
.review-card {
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.5rem;
}

.review-card--featured {
  background: #f8fafc;
  border-left: 3px solid #b42318;
}

.review-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.review-card__num {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--muted-foreground, #64748b);
}

.review-card__author {
  font-size: 0.9375rem;
  font-weight: 600;
}

.review-card__text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--foreground, #0f172a);
  text-align: justify;
}

.reviews-grid {
  display: grid;
  gap: 1rem;
}

.reviews-next {
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .reviews-grid--featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Catalog dropdown */
[data-nav-dropdown] .nav-dropdown-menu.is-open {
  display: block;
}

@media (min-width: 1280px) {
  /* Invisible bridge so the pointer can cross the gap under «Каталог». */
  [data-nav-dropdown]::after {
    content: "";
    position: absolute;
    z-index: 40;
    left: 0;
    top: 100%;
    width: 14rem;
    height: 0.75rem;
  }

  [data-nav-dropdown]:hover .nav-dropdown-menu,
  [data-nav-dropdown]:focus-within .nav-dropdown-menu {
    display: block;
  }
}

/* Forms */
.form-label-required {
  color: #b42318;
}

.form-field-required.is-invalid,
.sanlit-form .form-field-required:invalid {
  border-color: #b42318;
}

.form-error {
  color: #b42318;
}

.form-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-logo {
  display: block;
  height: 2.75rem;
  width: 2.75rem;
  object-fit: contain;
  background: #3a5870;
  border-radius: 8px;
}

img[data-shot] {
  cursor: pointer;
}

.shot-active {
  outline: 2px solid #3a5870;
  outline-offset: -2px;
}
