:root {
  color-scheme: dark;
  --bg: #050608;
  --surface: #0d1117;
  --surface-strong: #121821;
  --text: #f4f7fb;
  --muted: #aeb7c5;
  --line: #28313d;
  --blue: #2f7df6;
  --blue-soft: #77aaff;
  --green: #18a579;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.hero-copy,
.support-panel,
.service-card,
.contacts > div,
.contact-list,
.page-hero-card,
.contact-panel,
.audit-panel {
  min-width: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 max(20px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid rgba(40, 49, 61, 0.88);
  background: rgba(5, 6, 8, 0.84);
  backdrop-filter: blur(16px);
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.header-brand span {
  white-space: nowrap;
}

.header-brand {
  font-size: 18px;
}

.header-brand img {
  width: auto;
  height: 30px;
  object-fit: contain;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link,
.nav-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-link {
  color: var(--muted);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-action {
  background: var(--text);
  color: var(--bg);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(119, 170, 255, 0.44);
  text-underline-offset: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(40px, 6vw, 72px) 0;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.98;
  overflow-wrap: normal;
  word-break: normal;
  animation: title-in 900ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

h1 span {
  display: block;
}

.lead {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 520;
  line-height: 1.42;
  overflow-wrap: anywhere;
  animation: fade-up 850ms cubic-bezier(0.16, 1, 0.3, 1) 360ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  scroll-margin-top: 96px;
  animation: fade-up 850ms cubic-bezier(0.16, 1, 0.3, 1) 520ms both;
}

.button {
  min-height: 52px;
  padding: 0 22px;
}

.button-primary {
  background: var(--blue);
  color: white;
}

.button-primary:hover {
  background: var(--blue-soft);
}

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.34);
}

.button-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid rgba(42, 171, 238, 0.48);
  border-radius: 50%;
  background: #2aabee;
  color: white;
}

.button-telegram svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.button-telegram:hover {
  background: #4dbcf1;
  border-color: rgba(255, 255, 255, 0.4);
}

.support-panel {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.support-panel h2 {
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.05;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(47, 125, 246, 0.14);
  color: var(--blue-soft);
  font-weight: 850;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
}

.panel-link {
  width: fit-content;
  color: var(--text);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(119, 170, 255, 0.44);
  text-underline-offset: 4px;
}

.services,
.contacts,
.seo-section,
.cta-band {
  padding: clamp(64px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}

.services {
  scroll-margin-top: 96px;
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-head h2,
.contacts h2 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.service-card {
  display: grid;
  align-content: space-between;
  gap: 42px;
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-card:hover,
.feature-card:hover,
.scenario-card:hover {
  border-color: rgba(119, 170, 255, 0.48);
}

.service-card strong {
  font-size: 20px;
  line-height: 1.12;
}

.service-card span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 72px);
}

.contact-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-list a {
  width: fit-content;
  color: var(--text);
  font-weight: 800;
}

.page-main {
  padding-bottom: clamp(40px, 6vw, 72px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--text);
  font-weight: 800;
}

.breadcrumbs span:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--line);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(48px, 7vw, 92px) 0;
}

.page-hero h1 {
  font-size: clamp(38px, 5.3vw, 68px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.page-hero-card,
.feature-card,
.scenario-card,
.contact-panel,
.audit-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.page-hero-card {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.page-hero-card strong {
  font-size: 22px;
  line-height: 1.18;
}

.page-hero-card p,
.seo-section p,
.feature-card p,
.scenario-card p,
.contact-panel p,
.audit-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.hero-metrics {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-metrics li {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.hero-metrics b {
  color: var(--text);
}

.hero-metrics span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.seo-section {
  display: grid;
  gap: 28px;
}

.section-copy {
  display: grid;
  gap: 14px;
  max-width: 780px;
}

.section-copy h2,
.cta-band h2 {
  margin: 0;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1;
}

.feature-grid,
.scenario-list,
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid--two,
.meta-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.scenario-card,
.contact-panel,
.audit-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.feature-card small,
.scenario-card small {
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-card h3,
.scenario-card h3,
.contact-panel h3,
.audit-panel h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 10px;
  border: 1px solid rgba(119, 170, 255, 0.28);
  border-radius: 999px;
  color: var(--text);
  background: rgba(47, 125, 246, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.66em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.6fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  width: fit-content;
  color: var(--text);
  font-weight: 850;
  text-decoration: underline;
  text-decoration-color: rgba(119, 170, 255, 0.44);
  text-underline-offset: 4px;
}

.page-note {
  border-left: 3px solid var(--blue-soft);
  padding: 16px 18px;
  background: rgba(47, 125, 246, 0.1);
  color: var(--muted);
  line-height: 1.5;
}

.privacy-copy {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.privacy-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.12;
}

.privacy-copy p,
.privacy-copy li {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.privacy-copy ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  h1,
  .lead,
  .hero-actions {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero,
  .contacts,
  .page-hero,
  .cta-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .feature-grid,
  .scenario-list,
  .meta-grid,
  .feature-grid--two,
  .meta-grid--two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  main {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 48px;
  }

  h1 {
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.02;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .button-telegram {
    width: 40px;
  }

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

  .service-card {
    min-height: 168px;
  }

  .page-hero {
    padding-top: 44px;
  }

  .page-hero h1 {
    font-size: clamp(34px, 10.5vw, 46px);
    line-height: 1.03;
  }

  .cta-actions {
    display: grid;
  }
}
