:root {
  --bg: #b4b9c0;
  --bg-alt: #eef1f5;
  --bg-steel: url('../img/bg-steel.png');
  --bg-gloss: linear-gradient(
    90deg,
    rgba(70, 76, 84, 0.12) 0%,
    rgba(130, 138, 148, 0.08) 18%,
    rgba(195, 203, 212, 0.16) 28%,
    rgba(90, 98, 108, 0.1) 42%,
    rgba(160, 168, 178, 0.11) 58%,
    rgba(215, 222, 230, 0.18) 74%,
    rgba(100, 108, 118, 0.12) 100%
  );
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5c6570;
  --line: rgba(26, 35, 50, 0.11);
  --line-glass: rgba(255, 255, 255, 0.35);
  --accent: #5b84a1;
  --accent-hover: #4a7190;
  --accent-soft: rgba(91, 132, 161, 0.12);
  --gloss-inset: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --radius: 12px;
  --shadow: 0 10px 32px rgba(26, 35, 50, 0.14);
  --shadow-sm: 0 4px 14px rgba(26, 35, 50, 0.1);
  --shadow-card: 0 8px 28px rgba(26, 35, 50, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --font: "Onest", system-ui, sans-serif;
  --container: 1180px;
  --header-offset: 120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--header-offset);
  font-family: var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 48% 38% at 90% 18%, rgba(255, 255, 255, 0.28), transparent 68%),
    var(--bg-gloss),
    linear-gradient(rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.38)),
    var(--bg-steel);
  background-size: cover, 100% 100%, cover, cover;
  background-position: center, center, center, center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.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;
}

.text-center { text-align: center; }
.text-link { font-weight: 600; }

/* Breadcrumbs */
.breadcrumbs {
  padding: 14px 0 0;
  font-size: 0.86rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #94a0ad;
}

.breadcrumbs a { color: var(--accent); }
.breadcrumbs span { color: var(--text); font-weight: 600; }

/* Header */
.topbar {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(238, 242, 248, 0.85));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-glass);
  box-shadow: var(--gloss-inset);
  font-size: 0.82rem;
}

.topbar-inner {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 8px 0;
  color: var(--muted);
  flex-wrap: wrap;
}

.topbar-contacts {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-contacts a { color: var(--text); font-weight: 500; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 245, 250, 0.92));
  backdrop-filter: blur(12px);
  box-shadow: var(--gloss-inset), 0 4px 20px rgba(26, 35, 50, 0.1);
}

.header-sticky {
  border-bottom: 1px solid var(--line-glass);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 245, 250, 0.92));
  backdrop-filter: blur(12px);
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.brand .custom-logo-link img,
.brand-logo {
  display: block;
  max-height: 80px;
  width: auto;
  max-width: min(360px, 58vw);
  height: auto;
}

.brand-mark {
  width: 48px;
  height: 48px;
  color: var(--accent);
}

.brand-mark svg { width: 100%; height: 100%; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong { font-size: 1.15rem; }
.brand-text small { color: var(--muted); font-size: 0.82rem; }

.site-nav {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.menu,
.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
}

.menu a,
.footer-menu a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.menu-tabs {
  width: 100%;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
}

.menu-tabs li {
  flex: 1;
  text-align: center;
}

.menu-tabs a {
  display: block;
  padding: 12px 10px;
  border-radius: 8px;
  white-space: nowrap;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.menu-tabs a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.menu-tabs .current-menu-item a {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.btn-accent:hover {
  transform: translateY(-1px);
  color: #fff;
  background: var(--accent-hover);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--surface);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-light {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--line);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.hero-pattern {
  display: none;
}

.hero-pattern::after {
  display: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.page-hero .eyebrow,
.section-about .eyebrow {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.hero .eyebrow-company {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.8vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-uslugi .page-hero h1,
.page-title-sm {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
  line-height: 1.25;
  font-weight: 700;
}

.lead,
.section-desc {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Карточки и панели */
.hero-panel,
.feature-list li,
.card,
.contact-card,
.partner-card,
.placeholder-card,
.cta-box,
.service-block,
.faq-item,
.contact-form-panel,
.partner-logos-grid li,
.partner-chips li {
  background: linear-gradient(165deg, #ffffff 0%, #f2f4f8 100%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-card);
  color: var(--text);
}

.hero-panel,
.cta-box {
  border-radius: var(--radius);
}

.hero-panel {
  padding: 28px;
}

.hero-highlight {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid rgba(91, 132, 161, 0.18);
}

.hero-highlight p { margin: 0; color: var(--text); }

/* Sections */
.section { padding: 72px 0; }
.section-about {
  background: linear-gradient(180deg, rgba(245, 247, 250, 0.62), rgba(238, 242, 248, 0.48));
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line-glass);
  border-bottom: 1px solid var(--line-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.stats {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.stats li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.stats li:last-child { border-bottom: 0; padding-bottom: 0; }

.stats strong {
  font-size: 1.8rem;
  color: var(--accent);
  min-width: 64px;
}

.stats span { color: var(--muted); }

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head h2,
.split h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--text);
}

.about-section-title {
  font-size: clamp(1.2rem, 2.2vw, 1.5rem) !important;
  line-height: 1.3;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.feature-list li {
  border-radius: var(--radius);
  padding: 22px;
}

.feature-list strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.feature-list span { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card,
.contact-card,
.partner-card,
.placeholder-card {
  border-radius: var(--radius);
  padding: 24px;
}

.card-icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 16px;
}

.card-icon svg { width: 100%; height: 100%; }

.card h3,
.service-block h2,
.contact-card h2,
.faq-item summary h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.card p { color: var(--muted); margin: 0 0 16px; }

.card-link {
  font-weight: 700;
  color: var(--accent);
}

.card:hover,
.partner-card:hover {
  border-color: rgba(91, 132, 161, 0.3);
  transform: translateY(-1px);
  transition: 0.2s ease;
  box-shadow: var(--shadow);
}

.section-cta { padding-top: 0; }

.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px;
}

.cta-box h2 { margin: 0 0 8px; color: var(--text); }
.cta-box p { margin: 0; color: var(--muted); max-width: 56ch; }

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius);
  padding: 0 20px;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.partner-chips {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.section-partners-preview .section-head {
  max-width: none;
  margin-bottom: 28px;
  text-align: center;
}

.section-partners-preview .eyebrow {
  display: block;
  width: 100%;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.partner-logos {
  display: grid;
  gap: 36px;
}

.partner-logos-group {
  text-align: center;
}

.partner-logos-title {
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
}

.partner-logos-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 32px;
}

.partner-logos-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  max-width: 200px;
  height: 96px;
  padding: 0;
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.partner-logos-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px 18px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}

.partner-logos-link--static {
  cursor: default;
}

.partner-logos-link:hover,
.partner-logos-link:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.partner-logos-grid li:has(.partner-logos-link:hover),
.partner-logos-grid li:has(.partner-logos-link:focus-visible) {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.section-partners-page .partner-logos-title {
  font-size: 1.15rem;
  color: var(--text);
}

.section-partners-page .partner-logos-group {
  margin-bottom: 12px;
}

.partner-logos-grid img {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-chips li {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Page hero */
.page-hero {
  padding: 56px 0 28px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.68), rgba(240, 244, 250, 0.55));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line-glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Services detail */
.services-detail { display: grid; gap: 28px; }

.service-block {
  border-radius: calc(var(--radius) + 2px);
  padding: 28px;
}

.service-block-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.service-summary { color: var(--muted); font-size: 1.05rem; }

.service-block h3 {
  margin: 22px 0 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.brand-list,
.check-list,
.requisites {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.brand-list li,
.check-list li { margin-bottom: 8px; }

.partners-grid {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.partner-card strong { display: block; margin-bottom: 6px; font-size: 1.05rem; }
.partner-card span { color: var(--muted); font-size: 0.9rem; }

.placeholder-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.placeholder-card,
.gallery-placeholder {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
}

.placeholder-card span,
.gallery-item figcaption { font-weight: 700; }

.placeholder-card small,
.gallery-hint,
.partner-note p,
.form-fallback p { color: var(--muted); }

.gallery-thumb {
  flex: 1;
  min-height: 120px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px dashed rgba(91, 132, 161, 0.25);
  margin-bottom: 10px;
}

.gallery-item { margin: 0; }

/* Contacts */
.contacts-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
  padding: 28px 24px;
}

.contact-card .card-icon {
  margin-bottom: 4px;
}

.contact-card h2 {
  margin: 0;
}

.contact-card address,
.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.contact-card a:not(.text-link) {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:not(.text-link):hover {
  text-decoration: underline;
}

.contact-card .text-link {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
}

.contact-card--requisites .requisites {
  margin: 0;
  flex: 1;
}

.contact-card address { font-style: normal; }

.requisites {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requisites li {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.requisites li:last-child {
  margin-bottom: 0;
}

.requisites span { color: var(--muted); font-size: 0.86rem; }

.form-fallback {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(91, 132, 161, 0.18);
}

.content-area {
  color: var(--muted);
}

.content-area h1,
.content-area h2,
.content-area h3 { color: var(--text); }

/* Footer */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line-glass);
  background: linear-gradient(180deg, rgba(242, 245, 250, 0.72), rgba(235, 240, 246, 0.62));
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 28px;
  padding: 48px 0 28px;
}

.footer-brand p,
.footer-contacts address,
.footer-contacts p { color: var(--muted); }

.footer-nav h2,
.footer-contacts h2 {
  margin: 0 0 12px;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.footer-menu {
  flex-direction: column;
  gap: 10px;
}

.footer-menu a:hover,
.footer-menu .current-menu-item a {
  color: var(--accent);
}

.footer-menu a { text-transform: none; letter-spacing: 0; }

.footer-bottom {
  border-top: 1px solid var(--line-glass);
  padding: 16px 0 24px;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(238, 242, 248, 0.35);
}

.footer-unp { font-variant-numeric: tabular-nums; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .split,
  .footer-grid,
  .cta-box {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .contacts-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-main {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: var(--header-offset);
    left: 16px;
    right: 16px;
    width: auto;
    background: linear-gradient(165deg, rgba(248, 250, 252, 0.98), rgba(228, 232, 238, 0.96));
    border: 1px solid var(--line-glass);
    border-radius: var(--radius);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.2s ease;
    box-shadow: var(--shadow-card);
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-tabs {
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
  }

  .menu-tabs li {
    flex: none;
    text-align: left;
  }

  .menu-tabs a {
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .section { padding: 56px 0; }

  .contacts-cards {
    grid-template-columns: 1fr;
  }
}
