:root {
  --bg-0: #e8eef4;
  --bg-1: #f4f7fa;
  --ink: #1a2733;
  --ink-soft: #4a5d6e;
  --line: rgba(26, 39, 51, 0.12);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --brand: #176d8f;
  --brand-deep: #0f4f6b;
  --accent: #d97706;
  --accent-soft: #f59e0b;
  --shadow: 0 18px 40px rgba(15, 40, 60, 0.10);
  --radius: 18px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(23, 109, 143, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(217, 119, 6, 0.12), transparent 55%),
    linear-gradient(180deg, #dce7f0 0%, var(--bg-0) 35%, var(--bg-1) 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-deep);
}

.page-shell {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

.site-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img {
  width: min(280px, 68vw);
  filter: drop-shadow(0 4px 12px rgba(15, 40, 60, 0.10));
}

.header-contacts {
  text-align: right;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  white-space: pre-line;
}

.header-contacts a {
  color: inherit;
  text-decoration: none;
}

.header-contacts a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-solid);
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.2s ease;
}

.site-nav {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.site-nav a {
  display: block;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav li.is-active a,
.site-nav a:hover {
  background: var(--brand);
  color: #fff;
}

.content-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: rise 0.75s ease 0.08s both;
}

.content-panel h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--brand-deep);
}

.home-content > .eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.home-content > h1 {
  margin-bottom: 1.25rem;
}

.home-content .hero-figure {
  margin: 0 0 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 40, 60, 0.14);
}

.home-content .hero-figure img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.lead {
  font-size: 1.08rem;
  color: var(--ink);
}

.page-body p,
.home-content p {
  margin: 0 0 1rem;
}

.page-body ul {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
}

.page-body li {
  margin-bottom: 0.45rem;
}

.sitemap-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.sitemap-intro p {
  margin: 0;
  color: var(--ink-soft);
}

.sitemap-xml-link {
  flex: none;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.page-body .sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-body .sitemap-item {
  margin: 0;
}

.sitemap-item a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 1rem;
  align-items: center;
  height: 100%;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.sitemap-item a:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 109, 143, 0.35);
  box-shadow: 0 10px 22px rgba(15, 40, 60, 0.1);
  color: var(--ink);
}

.sitemap-item-title {
  font-weight: 700;
  color: var(--brand-deep);
}

.sitemap-item-label {
  grid-column: 1;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.sitemap-item-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--accent);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.sitemap-item a:hover .sitemap-item-arrow {
  transform: translateX(3px);
}

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

.not-found-actions a {
  display: inline-flex;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.not-found-primary {
  background: var(--brand);
  color: #fff;
}

.not-found-primary:hover {
  background: var(--brand-deep);
  color: #fff;
}

.not-found-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

@media (max-width: 700px) {
  .sitemap-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-body .sitemap-list {
    grid-template-columns: 1fr;
  }
}

.contacts-card {
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 14px 14px 0;
}

.contacts-layout {
  display: grid;
  gap: 1.25rem;
}

.contacts-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #d7e0e8;
  min-height: 360px;
  box-shadow: 0 8px 22px rgba(15, 40, 60, 0.08);
}

.contacts-map iframe,
.yandex-map {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.map-fallback {
  margin: 0;
  padding: 1.25rem;
  color: var(--ink-soft);
}

.contacts-requisites {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.company-card-download {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  margin: 0;
  padding: 0.95rem 1.35rem 0.95rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(244, 247, 250, 0.92));
  box-shadow: 0 10px 24px rgba(15, 40, 60, 0.10);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.company-card-download:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 16px 32px rgba(15, 40, 60, 0.16);
  color: var(--ink);
}

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

.company-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(217, 119, 6, 0.14);
  color: var(--accent);
}

.company-card-text {
  display: grid;
  gap: 0.15rem;
  line-height: 1.35;
}

.company-card-title {
  font-weight: 700;
  color: var(--brand-deep);
}

.company-card-meta {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.company-card-arrow {
  display: inline-flex;
  color: var(--accent);
  transition: transform 0.22s ease;
}

.company-card-download:hover .company-card-arrow {
  transform: translateY(2px);
}

@media (max-width: 560px) {
  .company-card-download {
    width: 100%;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
  margin-top: 1.25rem;
}

.gallery-item {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #cfd8e0;
  box-shadow: 0 8px 20px rgba(15, 40, 60, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 14px 28px rgba(15, 40, 60, 0.18);
}

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

.site-footer {
  margin-top: 2.25rem;
  padding: 1.6rem 0 0.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  animation: rise 0.8s ease 0.12s both;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem 1.25rem;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0.45rem;
}

.footer-logo {
  width: 120px;
  height: auto;
  opacity: 0.95;
  margin-bottom: 0.35rem;
}

.footer-brand strong {
  color: var(--brand-deep);
  font-size: 0.95rem;
  line-height: 1.35;
}

.footer-brand p,
.footer-col p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-col h3 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-list a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-list a:hover {
  color: var(--brand-deep);
}

.footer-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-requisites {
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.01em;
}

.lightbox {
  border: none;
  padding: 0;
  width: min(1100px, 96vw);
  max-width: 96vw;
  height: min(90vh, 900px);
  max-height: 90vh;
  background: transparent;
  border-radius: 16px;
  overflow: visible;
  color: #fff;
}

.lightbox[open] {
  display: flex;
  flex-direction: column;
}

.lightbox:fullscreen,
.lightbox:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  border-radius: 0;
  background: rgba(8, 18, 28, 0.35);
  display: flex;
  flex-direction: column;
}

.lightbox::backdrop {
  background: rgba(8, 18, 28, 0.45);
  backdrop-filter: blur(2px);
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: rgba(10, 18, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}

.lightbox-caption {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.95);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lightbox-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.lightbox-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-btn-close {
  margin-left: 0.2rem;
  font-size: 1.35rem;
}

.lightbox-zoom-label {
  min-width: 3.5rem;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
  font-variant-numeric: tabular-nums;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  display: grid;
  place-items: center;
  background: rgba(10, 18, 26, 0.28);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-stage.is-dragging {
  cursor: grabbing;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  transform-origin: center center;
  will-change: transform;
  border-radius: 0;
  box-shadow: none;
}

.lightbox-hint {
  margin: 0;
  padding: 0.55rem 0.85rem 0.7rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(10, 18, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 0;
  border-radius: 0 0 16px 16px;
  flex-shrink: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(var(--max), calc(100% - 1.25rem));
  }

  .header-contacts {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .site-nav {
    display: none;
    border-radius: 16px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    border-radius: 12px;
  }

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

  .contacts-map iframe {
    height: 280px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
