/* Фаворит — промышленная тёмная тема по макетам */
:root {
  --navy: #001428;
  --navy-mid: #0a2340;
  --navy-card: #0d2d52;
  --blue-glow: #00a8ff;
  --blue-border: #1e5a9e;
  --accent-orange: #e07a2f;
  --text: #f1f5f9;
  --text-muted: #94b3cb;
}

@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }
}

html {
  overflow-x: hidden;
}
body {
  background-color: var(--navy) !important;
  color: var(--text);
  overflow-x: hidden;
}
body.mobile-menu-open,
body.works-lightbox-open,
body.modal-open {
  overflow: hidden;
}

/* Анимация появления */
.fade-up {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js-ready .fade-up {
  opacity: 0;
  transform: translateY(24px);
}
.fade-up.visible,
html.js-ready .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Панели с подсветкой как на макетах */
.glow-panel {
  background: linear-gradient(145deg, rgba(13, 45, 82, 0.95), rgba(0, 20, 40, 0.98));
  border: 1px solid var(--blue-border);
  border-radius: 1rem;
  box-shadow: 0 0 24px rgba(0, 168, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.glow-panel-strong {
  box-shadow: 0 0 32px rgba(0, 168, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.price-badge {
  background: linear-gradient(135deg, #0066cc, #00a8ff);
  border-radius: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-weight: 700;
  font-size: 0.75rem;
  white-space: nowrap;
  box-shadow: 0 0 12px rgba(0, 168, 255, 0.35);
}

.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 900ms ease;
  will-change: opacity;
}
.hero-bg-layer.visible {
  opacity: 0.45;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 168, 255, 0.25) 0, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(224, 122, 47, 0.12) 0, transparent 45%),
    linear-gradient(to bottom, rgba(0, 20, 40, 0.7), rgba(0, 10, 25, 0.92));
}

.hero-services {
  letter-spacing: 0.02em;
  line-height: 1.55;
}

/* ——— About block (under Hero) ——— */
.about-section {
  background:
    radial-gradient(circle at 10% 50%, rgba(0, 168, 255, 0.06) 0, transparent 45%),
    radial-gradient(circle at 90% 30%, rgba(224, 122, 47, 0.05) 0, transparent 40%);
}

.about-card {
  padding: 1.35rem 1.25rem 1.5rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .about-card {
    padding: 1.75rem 1.75rem 2rem;
  }
}

@media (min-width: 1024px) {
  .about-card {
    padding: 2rem 2.25rem 2.25rem;
  }
}

.about-card__header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(30, 90, 158, 0.35);
}

@media (min-width: 768px) {
  .about-card__header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
  }
}

.about-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-accent, #e07a2f);
}

.about-card__intro {
  min-width: 0;
}

.about-heading {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  max-width: none;
}

@media (min-width: 768px) {
  .about-heading {
    max-width: 22rem;
  }
}

@media (min-width: 640px) {
  .about-heading {
    font-size: 1.55rem;
  }
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
}

@media (min-width: 768px) {
  .about-highlights {
    max-width: 22rem;
    flex-shrink: 0;
  }
}

.about-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.65rem 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(30, 90, 158, 0.45);
  background: rgba(0, 20, 40, 0.55);
  text-align: center;
}

.about-highlight__val {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--blue-glow, #00a8ff);
}

.about-highlight__lbl {
  font-size: 0.65rem;
  line-height: 1.2;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  hyphens: auto;
  word-break: break-word;
}

@media (max-width: 380px) {
  .about-highlights {
    gap: 0.45rem;
  }

  .about-highlight {
    padding: 0.55rem 0.35rem;
  }

  .about-highlight__val {
    font-size: 0.875rem;
  }

  .about-highlight__lbl {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }
}

.hero-about {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #b8c9dc;
}

.hero-about > p:first-child {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #e2e8f0;
}

.hero-about p {
  margin: 0 0 1rem;
}

.hero-about h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 1.5rem 0 0.85rem;
}

.hero-about h3::before {
  content: '';
  flex-shrink: 0;
  width: 3px;
  height: 1.15em;
  border-radius: 2px;
  background: linear-gradient(180deg, #e07a2f, #00a8ff);
}

.hero-about h3:first-of-type {
  margin-top: 0;
}

.hero-about h3:first-of-type + ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .hero-about h3:first-of-type + ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .hero-about h3:first-of-type + ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hero-about h3:first-of-type + ul li {
  margin: 0;
  padding: 0.85rem 0.95rem 0.85rem 2.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(30, 90, 158, 0.45);
  background: rgba(0, 20, 40, 0.45);
  position: relative;
  font-size: 0.875rem;
  line-height: 1.55;
  transition: border-color 0.2s, background 0.2s;
  overflow-wrap: anywhere;
}

.hero-about h3:first-of-type + ul li:hover {
  border-color: rgba(0, 168, 255, 0.45);
  background: rgba(0, 40, 80, 0.5);
}

.hero-about h3:first-of-type + ul li::before {
  content: '✓';
  position: absolute;
  left: 0.85rem;
  top: 0.9rem;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 168, 255, 0.15);
  color: #00a8ff;
  font-size: 0.65rem;
  font-weight: 800;
}

.hero-about h3:nth-of-type(2) + ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: about-step;
}

@media (min-width: 480px) {
  .hero-about h3:nth-of-type(2) + ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .hero-about h3:nth-of-type(2) + ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-about h3:nth-of-type(2) + ul li {
  margin: 0;
  padding: 1rem 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(30, 90, 158, 0.35);
  background: rgba(13, 45, 82, 0.35);
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.45;
  counter-increment: about-step;
}

.hero-about h3:nth-of-type(2) + ul li::before {
  content: counter(about-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #0066cc, #00a8ff);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(0, 168, 255, 0.3);
}

.hero-about strong {
  color: #fff;
  font-weight: 600;
}

.service-row {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  grid-template-rows: auto auto;
  gap: 0.5rem 0.75rem;
  align-items: start;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(30, 90, 158, 0.5);
  background: rgba(13, 45, 82, 0.5);
  transition: border-color 0.2s, box-shadow 0.2s;
  max-width: 100%;
}
.service-row-thumb {
  grid-row: 1 / 3;
  align-self: center;
}
.service-row > div {
  min-width: 0;
}
.service-row .price-badge {
  grid-column: 1 / -1;
  justify-self: stretch;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
}
@media (min-width: 640px) {
  .service-row {
    grid-template-columns: 6.5rem 1fr auto;
    grid-template-rows: auto;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
  }
  .service-row-thumb {
    grid-row: auto;
  }
  .service-row .price-badge {
    grid-column: auto;
    justify-self: auto;
    text-align: left;
    white-space: nowrap;
  }
}
.service-row:hover {
  border-color: var(--blue-glow);
  box-shadow: 0 0 20px rgba(0, 168, 255, 0.15);
}
.service-row-thumb {
  width: 4.25rem;
  height: 3.25rem;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--blue-border);
  flex-shrink: 0;
  display: block;
}
@media (min-width: 640px) {
  .service-row-thumb {
    width: 6.5rem;
    height: 4rem;
  }
}

.pricing-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.8rem;
}
@media (min-width: 640px) {
  .pricing-table { font-size: 0.875rem; }
}
.pricing-table th,
.pricing-table td {
  border: 1px solid var(--blue-border);
  padding: 0.5rem 0.65rem;
  text-align: center;
}
.pricing-table th {
  background: rgba(0, 102, 204, 0.35);
  font-weight: 600;
  color: #fff;
}
.pricing-table td {
  background: rgba(0, 20, 40, 0.6);
}
.pricing-table tr:hover td {
  background: rgba(0, 168, 255, 0.08);
}

.why-us-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.why-us-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 28px rgba(0, 168, 255, 0.2);
  border-color: var(--blue-glow);
}

.about-photo {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.about-photo:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 0 24px rgba(0, 168, 255, 0.25);
  border-color: var(--blue-glow);
}

.modal-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--blue-border);
  background: var(--navy-mid);
}
.modal-slide {
  display: none;
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
}
@media (min-width: 640px) {
  .modal-slide { height: 260px; }
}
.modal-slide.active { display: block; }
.modal-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(0, 20, 40, 0.75);
  border: 1px solid var(--blue-border);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease;
}
.modal-slider-btn:hover {
  background: rgba(0, 102, 204, 0.8);
  border-color: var(--blue-glow);
}
.modal-slider-btn.prev { left: 10px; }
.modal-slider-btn.next { right: 10px; }
.modal-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.modal-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background: rgba(148, 179, 203, 0.35);
  border: 1px solid var(--blue-border);
  cursor: pointer;
}
.modal-slider-dot.active {
  background: var(--blue-glow);
  border-color: var(--blue-glow);
  transform: scale(1.1);
}

/* Блок телефонов */
.phones-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--blue-border);
  background: linear-gradient(145deg, rgba(13, 45, 82, 0.6), rgba(0, 20, 40, 0.85));
}
@media (min-width: 640px) {
  .phones-cta {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1.75rem;
  }
}
.phones-cta__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.phones-cta__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 122, 47, 0.15);
  border: 1px solid rgba(224, 122, 47, 0.35);
  color: #e07a2f;
  flex-shrink: 0;
}
.phones-cta__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.phones-cta__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  line-height: 1.2;
}
.phones-cta__hint {
  font-size: 0.8rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
}
.phones-cta__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  flex: 1;
  width: 100%;
}
@media (min-width: 640px) {
  .phones-cta__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }
}
.phones-cta__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(30, 90, 158, 0.6);
  background: rgba(0, 20, 40, 0.5);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.phones-cta__link:hover {
  border-color: var(--blue-glow);
  background: rgba(0, 102, 204, 0.2);
  transform: translateY(-1px);
}
.phones-cta__link--primary {
  border-color: rgba(224, 122, 47, 0.5);
  background: rgba(224, 122, 47, 0.08);
}
.phones-cta__link--primary:hover {
  border-color: #e07a2f;
  background: rgba(224, 122, 47, 0.15);
}
.phones-cta__num {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}
@media (min-width: 640px) {
  .phones-cta__num {
    font-size: 1rem;
    white-space: nowrap;
    word-break: normal;
  }
}
.phones-cta__tag {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.phones-cta__link--primary .phones-cta__tag {
  color: rgba(224, 122, 47, 0.9);
}

.phones-list-compact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.phones-list-compact a {
  color: var(--brand-500, #00a8ff);
  font-weight: 500;
}
.phones-list-compact a:hover {
  text-decoration: underline;
}

.logo-img {
  height: 2.75rem;
  width: auto;
  max-width: 5.5rem;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
@media (min-width: 640px) {
  .logo-img {
    height: 3.25rem;
    max-width: 7.5rem;
  }
}
@media (min-width: 768px) {
  .logo-img {
    height: 4.25rem;
    max-width: 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg-layer { transition: none; }
}

/* ——— Блок винтовых свай ——— */
.pile-feature {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, rgba(13, 45, 82, 0.85), rgba(0, 20, 40, 0.6));
  border: 1px solid var(--blue-border);
}
.pile-feature-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: rgba(0, 168, 255, 0.2);
  color: var(--blue-glow);
  font-size: 0.7rem;
  font-weight: 700;
}

.pile-price-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 11rem;
  border: 1px solid var(--blue-border);
  box-shadow: 0 0 28px rgba(0, 168, 255, 0.15);
}
.pile-price-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pile-price-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 20, 40, 0.92) 0%, rgba(0, 20, 40, 0.55) 55%, rgba(0, 102, 204, 0.35) 100%);
}
.pile-price-card-body {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.extra-service-card {
  position: relative;
  border-radius: 0.875rem;
  overflow: hidden;
  border: 1px solid var(--blue-border);
  background: var(--navy-card);
  min-height: 8.5rem;
}
.extra-service-card--accent {
  border-color: rgba(224, 122, 47, 0.5);
}
.extra-service-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.extra-service-content {
  position: relative;
  z-index: 1;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 20, 40, 0.95) 40%, rgba(0, 20, 40, 0.5));
  min-height: 8.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Карусель «Наши работы» */
.works-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.works-carousel-viewport {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  border-radius: 1rem;
}
.works-carousel-viewport::-webkit-scrollbar {
  display: none;
}
.works-carousel-viewport:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.45);
}
.works-carousel-track {
  display: flex;
  gap: 1rem;
  padding: 0.25rem 0.15rem 0.5rem;
}
.works-slide {
  flex: 0 0 88%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) {
  .works-slide {
    flex: 0 0 58%;
  }
}
@media (min-width: 1024px) {
  .works-slide {
    flex: 0 0 calc(50% - 0.5rem);
  }
}
.works-slide__img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  display: block;
}
@media (min-width: 640px) {
  .works-slide__img { height: 16rem; }
}
@media (min-width: 1024px) {
  .works-slide__img { height: 18rem; }
}
.works-slide__caption {
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 20, 40, 0.85);
  border-top: 1px solid var(--blue-border);
}
.works-carousel-btn {
  display: none;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid var(--blue-border);
  background: rgba(13, 45, 82, 0.95);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  z-index: 2;
}
.works-carousel-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}
.works-carousel-btn:hover:not(:disabled) {
  border-color: var(--blue-glow);
  background: rgba(0, 102, 204, 0.5);
}
.works-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
@media (min-width: 768px) {
  .works-carousel-btn {
    display: inline-flex;
  }
  .works-carousel-btn[hidden] {
    display: none;
  }
  .works-carousel-viewport {
    scroll-snap-type: none;
  }
}
.works-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  border: 1px solid var(--blue-border);
  background: rgba(148, 179, 203, 0.25);
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}
.works-carousel-dot.active {
  background: var(--blue-glow);
  border-color: var(--blue-glow);
  transform: scale(1.15);
}

.works-slide__open {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}
.works-slide__open:focus-visible {
  outline: 2px solid var(--blue-glow);
  outline-offset: 2px;
}

/* Лайтбокс работ */
.works-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.works-lightbox.hidden {
  display: none;
}
.works-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(0, 8, 20, 0.92);
  cursor: pointer;
}
.works-lightbox__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 56rem;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.works-lightbox__panel > * {
  pointer-events: auto;
}
.works-lightbox__figure {
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.works-lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.75rem;
  border: 1px solid var(--blue-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #000;
}
.works-lightbox__caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0 0.25rem;
}
.works-lightbox__title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}
.works-lightbox__counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
}
.works-lightbox__close {
  position: absolute;
  top: -0.25rem;
  right: 0;
  z-index: 3;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--blue-border);
  border-radius: 9999px;
  background: rgba(13, 45, 82, 0.95);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.works-lightbox__close:hover {
  border-color: var(--blue-glow);
  background: rgba(0, 102, 204, 0.6);
}
.works-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  border: 1px solid var(--blue-border);
  background: rgba(13, 45, 82, 0.95);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}
.works-lightbox__nav svg {
  width: 1.25rem;
  height: 1.25rem;
}
.works-lightbox__nav:hover:not(:disabled) {
  border-color: var(--blue-glow);
  background: rgba(0, 102, 204, 0.6);
}
.works-lightbox__nav:disabled {
  opacity: 0.3;
  cursor: default;
}
.works-lightbox__nav--prev { left: -0.25rem; }
.works-lightbox__nav--next { right: -0.25rem; }
@media (max-width: 640px) {
  .works-lightbox__nav--prev { left: 0.25rem; }
  .works-lightbox__nav--next { right: 0.25rem; }
  .works-lightbox__close { top: 0.25rem; right: 0.25rem; }
}

/* Модалка услуг на узком экране */
#modal-backdrop.flex {
  align-items: flex-end;
  padding: 0;
}
@media (min-width: 640px) {
  #modal-backdrop.flex {
    align-items: center;
    padding: 1rem;
  }
}
#modal-backdrop > div {
  max-height: min(92vh, 100%);
  overflow-y: auto;
  border-radius: 1rem 1rem 0 0;
  width: 100%;
}
@media (min-width: 640px) {
  #modal-backdrop > div {
    border-radius: 1rem;
    width: auto;
    max-width: 32rem;
  }
}

/* SEO: доступность и FAQ */
.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;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--blue-glow);
  color: #001428;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0 0 0.5rem 0.5rem;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}
.breadcrumb a {
  color: inherit;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: var(--blue-glow);
}
.form-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.25rem;
}
.form-select option {
  background: #001428;
  color: #fff;
}
.faq-item {
  padding: 0;
  overflow: hidden;
}
.faq-item__question {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  list-style: none;
}
.faq-item__question::-webkit-details-marker {
  display: none;
}
.faq-item__question::after {
  content: "+";
  float: right;
  color: var(--blue-glow);
  font-weight: 700;
}
.faq-item[open] .faq-item__question::after {
  content: "−";
}
.faq-item__answer {
  padding: 0 1.25rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  border-top: 1px solid rgba(30, 90, 158, 0.35);
}
.faq-item__answer p {
  padding-top: 0.75rem;
}
