:root {
  --bg: #f4f7fb;
  --bg-soft: #eaf1f8;
  --surface: #ffffff;
  --text: #202936;
  --muted: #667386;
  --line: rgba(32, 41, 54, 0.12);
  --line-strong: rgba(32, 41, 54, 0.2);
  --blue: #2563eb;
  --blue-deep: #1e3a8a;
  --blue-soft: rgba(37, 99, 235, 0.1);
  --teal: #14b8a6;
  --teal-soft: rgba(20, 184, 166, 0.12);
  --graphite: #111827;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --radius-card: 8px;
  --shadow: 0 16px 36px rgba(17, 24, 39, 0.1);
  --shadow-soft: 0 8px 22px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section,
#catalog,
#consult,
.final-cta {
  scroll-margin-top: 112px;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #fbfdff 48%, var(--bg-soft) 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body.subpage {
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.top-panel {
  color: #dbeafe;
  background: var(--graphite);
}

.top-panel-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 750;
}

.top-panel strong {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner,
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius-card);
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-deep), var(--teal));
  box-shadow: var(--shadow-soft);
  font-size: 15px;
  font-weight: 900;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  color: var(--graphite);
  font-size: 19px;
  letter-spacing: 0;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-nav a,
.footer-inner a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.footer-inner a:hover {
  color: var(--graphite);
  transform: translateY(-1px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
}

.button-secondary,
.button-ghost,
.button-card {
  color: var(--graphite);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.74);
}

.button-card {
  min-height: 46px;
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: none;
}

.button-block {
  width: 100%;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 690px;
  overflow: hidden;
  color: #ffffff;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.78) 42%, rgba(17, 24, 39, 0.2) 100%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.14), rgba(20, 184, 166, 0.14));
}

.hero-inner {
  padding: 72px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.final-cta .eyebrow {
  color: #dcfce7;
  background: rgba(20, 184, 166, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
}

.eyebrow-soft {
  color: #0f766e;
  background: var(--teal-soft);
}

.hero h1,
.section h2,
.final-cta h2,
.thanks-card h1 {
  margin: 0;
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: 64px;
}

.hero-lead,
.hero-sub {
  max-width: 700px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.65;
}

.hero-sub {
  max-width: 650px;
  margin-top: 12px;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 770px;
  margin-top: 42px;
}

.hero-stats div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.hero-stats strong {
  display: block;
  margin-bottom: 6px;
  font-size: 26px;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.74);
}

.section {
  padding: 76px 0;
}

.section-about,
.section-info,
.section-faq {
  background: var(--bg);
}

.section-catalog,
.section-categories,
.section-process {
  background: #ffffff;
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.about-grid,
.info-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: start;
  gap: 28px;
}

.section-copy h2,
.section-head h2,
.results-head h2,
.consult-panel h2,
.final-cta h2,
.thanks-card h1 {
  font-size: 42px;
}

.section-copy p,
.work-list li,
.consult-panel p,
.vacancy-card p,
.category-card p,
.info-list li,
.faq-item p,
.final-cta p,
.thanks-card p,
.range-note,
.sort-note {
  color: var(--muted);
  line-height: 1.72;
}

.section-copy p {
  max-width: 760px;
  font-size: 17px;
}

.work-list {
  padding: 26px;
}

.work-list h3,
.filter-group h3,
.consult-profile h3,
.category-card h3,
.vacancy-card h3 {
  margin: 0;
  color: var(--graphite);
  font-size: 22px;
  line-height: 1.2;
}

.work-list ul,
.info-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.work-list li,
.info-list li {
  position: relative;
  padding-left: 30px;
}

.work-list li::before,
.info-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 900;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 310px;
  align-items: start;
  gap: 18px;
}

.filter-panel,
.consult-panel {
  position: sticky;
  top: 98px;
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.text-button {
  border: 0;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.filter-group {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.filter-search {
  margin-top: 18px;
}

.search-field,
.sort-field {
  display: grid;
  gap: 7px;
}

.search-field span,
.sort-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-options {
  display: grid;
  gap: 8px;
}

.filter-options-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-chip {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--text);
  background: #f8fafc;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.28);
  background: #ffffff;
}

.filter-chip.is-active {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.range-row label,
.field {
  display: grid;
  gap: 7px;
}

.range-row span,
.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.range-row input,
.field input,
.search-field input,
.sort-field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--graphite);
  background: #f8fafc;
  outline: 0;
  padding: 0 12px;
}

.range-row input:focus,
.field input:focus,
.search-field input:focus,
.sort-field select:focus {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.range-note {
  margin: 0;
  font-size: 12px;
}

.results-panel {
  min-width: 0;
}

.results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.results-head h2 {
  margin: 0;
}

.sort-note {
  max-width: 220px;
  font-size: 13px;
  text-align: right;
}

.results-tools {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 14px;
}

.active-filters {
  display: flex;
  align-items: center;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  color: var(--blue-deep);
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.06);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

button.active-chip {
  cursor: pointer;
}

button.active-chip:hover {
  border-color: rgba(37, 99, 235, 0.36);
  background: var(--blue-soft);
}

.active-chip.is-muted {
  color: var(--muted);
  border-color: var(--line);
  background: #f8fafc;
  box-shadow: none;
}

.sort-field {
  width: min(210px, 100%);
}

.logistics-insight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(20, 184, 166, 0.24);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(37, 99, 235, 0.08)),
    #ffffff;
  box-shadow: var(--shadow-soft);
}

.logistics-insight strong {
  flex: 0 0 auto;
  color: #0f766e;
}

.logistics-insight span {
  color: var(--text);
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
}

.logistics-insight.is-focused {
  border-color: rgba(20, 184, 166, 0.42);
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(37, 99, 235, 0.12)),
    #ffffff;
}

.vacancy-grid {
  display: grid;
  gap: 12px;
}

.vacancy-card {
  padding: 18px;
}

.vacancy-top,
.vacancy-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.vacancy-top {
  justify-content: space-between;
  margin-bottom: 12px;
}

.vacancy-top span,
.vacancy-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 850;
}

.vacancy-top strong {
  color: #0f766e;
  font-size: 18px;
}

.vacancy-card h3 {
  margin-bottom: 12px;
}

.vacancy-card p {
  margin: 14px 0;
}

.vacancy-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.vacancy-details div {
  min-height: 90px;
  padding: 12px;
  border-radius: var(--radius-card);
  background: #f8fafc;
}

.vacancy-details dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.vacancy-details dd {
  margin: 0;
  color: var(--graphite);
  font-size: 13px;
  line-height: 1.45;
}

.empty-state {
  padding: 24px;
  text-align: center;
}

.empty-state.is-hidden {
  display: none;
}

.load-more {
  width: 100%;
  margin-top: 14px;
}

.consult-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.avatar {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  font-weight: 900;
}

.consult-profile p {
  margin: 4px 0 0;
  font-size: 13px;
}

.consult-panel h2 {
  font-size: 28px;
}

.lead-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.category-grid,
.process-grid {
  display: grid;
  gap: 14px;
}

.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.category-card,
.process-step {
  padding: 20px;
}

.category-card span,
.process-step span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: var(--radius-card);
  color: #ffffff;
  background: var(--graphite);
  font-weight: 900;
}

.category-card h3 {
  margin-bottom: 10px;
}

.category-card p {
  margin: 0;
}

.info-list {
  margin: 0;
  padding: 26px;
}

.process-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.process-step {
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.process-step p {
  margin: 0;
  color: var(--graphite);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 18px;
}

.faq-item summary {
  cursor: pointer;
  color: var(--graphite);
  font-size: 18px;
  font-weight: 850;
}

.faq-item p {
  margin: 12px 0 0;
}

.final-cta {
  padding: 76px 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--graphite), var(--blue-deep));
}

.final-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: start;
  gap: 32px;
}

.final-cta h2 {
  font-size: 48px;
}

.final-cta p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.final-form {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.final-form .field span {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 24px 0;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-meta {
  display: grid;
  gap: 4px;
  justify-items: center;
  min-width: 0;
}

.footer-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

.subpage-main {
  display: grid;
  min-height: calc(100vh - 86px);
  place-items: center;
  padding: 80px 20px;
}

.thanks-card {
  width: min(720px, 100%);
  padding: 36px;
  text-align: center;
}

.thanks-card h1 {
  font-size: 44px;
}

.thanks-card p {
  font-size: 17px;
}

.thanks-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 1180px) {
  .catalog-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .consult-panel {
    position: static;
    grid-column: 1 / -1;
  }

  .category-grid,
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .top-panel-inner,
  .header-inner,
  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .top-panel-inner {
    display: grid;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-stats,
  .about-grid,
  .info-grid,
  .faq-grid,
  .catalog-layout,
  .final-inner {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .results-head {
    align-items: start;
    flex-direction: column;
  }

  .results-tools,
  .logistics-insight {
    align-items: stretch;
    flex-direction: column;
  }

  .sort-field {
    width: 100%;
  }

  .sort-note {
    max-width: none;
    text-align: left;
  }

  .vacancy-details {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 28px, 1240px);
  }

  .top-panel-inner {
    gap: 4px;
    padding: 10px 0;
  }

  .header-inner {
    gap: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy span {
    display: none;
  }

  .header-inner .button {
    min-height: 42px;
    padding: 10px 13px;
    font-size: 13px;
  }

  .hero-inner {
    padding: 56px 0;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.7)),
      linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(20, 184, 166, 0.18));
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions,
  .thanks-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats,
  .filter-options-compact,
  .range-row,
  .category-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 56px 0;
  }

  .section-copy h2,
  .section-head h2,
  .results-head h2,
  .final-cta h2,
  .thanks-card h1 {
    font-size: 32px;
  }

  .filter-panel,
  .consult-panel,
  .work-list,
  .info-list,
  .vacancy-card,
  .final-form,
  .thanks-card {
    padding: 18px;
  }

  .vacancy-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-meta {
    justify-items: start;
  }

  .footer-meta p {
    text-align: left;
  }
}
