:root {
  --bg-main: #020617;
  --bg-deep: #030712;
  --bg-panel: rgba(15, 23, 42, 0.72);
  --bg-panel-strong: rgba(15, 23, 42, 0.92);
  --border-soft: rgba(148, 163, 184, 0.2);
  --border-blue: rgba(56, 189, 248, 0.32);
  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;
  --accent: #1d9bf0;
  --accent-strong: #2563eb;
  --accent-light: #38bdf8;
  --shadow-panel: 0 24px 90px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: var(--bg-main);
  color: var(--text-main);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
}

/* Local hero/backdrop image with readability overlays. */
body::before {
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.64) 42%, rgba(2, 6, 23, 0.16) 68%, rgba(2, 6, 23, 0.34) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0) 0%, rgba(2, 6, 23, 0.18) 58%, #020617 100%),
    url("../assets/background.png") center top / cover no-repeat;
}

body::after {
  z-index: -2;
  background:
    radial-gradient(circle at 6% 12%, rgba(56, 189, 248, 0.42) 0 2px, transparent 3px),
    radial-gradient(circle at 13% 34%, rgba(148, 223, 255, 0.34) 0 2px, transparent 3px),
    radial-gradient(circle at 28% 18%, rgba(56, 189, 248, 0.24) 0 2px, transparent 3px),
    radial-gradient(circle at 35% 42%, rgba(56, 189, 248, 0.2) 0 2px, transparent 3px),
    linear-gradient(23deg, transparent 9%, rgba(56, 189, 248, 0.08) 9.1%, transparent 9.4% 100%),
    linear-gradient(142deg, transparent 17%, rgba(56, 189, 248, 0.06) 17.1%, transparent 17.4% 100%),
    linear-gradient(162deg, transparent 27%, rgba(56, 189, 248, 0.06) 27.1%, transparent 27.35% 100%),
    radial-gradient(circle at 70% 46%, rgba(56, 189, 248, 0.08), transparent 25%),
    rgba(2, 6, 23, 0.08);
}

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

a {
  color: inherit;
}

.container {
  width: min(var(--max-width), calc(100% - 48px));
  margin-inline: auto;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.site-shell::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  min-height: 720px;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.72) 45%, rgba(2, 6, 23, 0.32) 74%, rgba(2, 6, 23, 0.86) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.08) 0%, var(--bg-main) 98%);
}

.hero {
  min-height: 58vh;
  padding: 38px 0 26px;
}

.hero__inner {
  min-height: 600px;
  display: grid;
  align-content: start;
  gap: 84px;
}

.brand {
  width: fit-content;
}

.brand__name {
  display: inline-block;
  text-decoration: none;
  font-size: clamp(2.35rem, 4vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.brand__name span,
.hero h1 span,
.value-card__top span {
  color: var(--accent);
}

.brand p {
  margin: 8px 0 0;
  color: var(--text-main);
  font-size: 1rem;
}

.hero__content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.55rem, 5.6vw, 5.15rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.hero__text {
  max-width: 680px;
  margin: 24px 0 28px;
  color: var(--text-main);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 23px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1677dd, #0f5fd3);
  box-shadow: 0 18px 50px rgba(29, 155, 240, 0.28);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: linear-gradient(180deg, #1d9bf0, #155fd8);
  outline: 2px solid rgba(56, 189, 248, 0.44);
  outline-offset: 3px;
}

.values {
  padding: 0 0 28px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.74));
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(8px);
}

.value-card {
  min-width: 0;
  min-height: 212px;
  padding: 25px 24px 28px;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
}

.value-card:last-child {
  border-right: 0;
}

.value-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 15px;
}

.value-card__top span {
  font-size: 1.65rem;
  font-weight: 800;
}

.value-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.42;
}

.value-card p,
.info-panel p,
.check-list {
  color: var(--text-muted);
}

.value-card p {
  margin: 0;
  font-size: 0.94rem;
}

.content-zone {
  padding: 32px 0 0;
}

.three-columns {
  display: grid;
  grid-template-columns: 1.08fr 1fr 1fr;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.info-panel {
  min-width: 0;
  padding-right: 28px;
  border-right: 1px solid rgba(148, 163, 184, 0.22);
}

.info-panel:last-child {
  border-right: 0;
  padding-right: 0;
}

.info-panel h2,
.contact h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.service-list {
  display: grid;
  gap: 19px;
}

.service-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 15px;
}

.service-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.service-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  content: "";
  background: url("../assets/icons/check.svg") center / contain no-repeat;
}

.contact {
  padding: 34px 0 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
  padding: 24px 0 28px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.contact p {
  margin: 0;
  color: var(--text-muted);
}

.contact-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}

.contact-links a {
  display: inline-grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  min-height: 56px;
  color: var(--text-main);
  text-decoration: none;
}

.contact-links small {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 14px 0 26px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  padding-left: 20px;
  border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.site-footer a,
.back-link,
.legal-card a {
  color: var(--accent-light);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible,
.back-link:hover,
.back-link:focus-visible,
.legal-card a:hover,
.legal-card a:focus-visible {
  text-decoration: underline;
}

.legal-page {
  min-height: 100vh;
  padding: 56px 0;
}

.legal-card {
  max-width: 880px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.92)),
    var(--bg-panel-strong);
  box-shadow: var(--shadow-panel);
}

.legal-card h1 {
  margin: 20px 0 24px;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.legal-card h2 {
  margin: 30px 0 10px;
  font-size: 1.18rem;
}

.legal-card p {
  margin: 0 0 13px;
  color: var(--text-muted);
}

.back-link {
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-card {
    border-right: 1px solid rgba(148, 163, 184, 0.22);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .value-card:nth-child(2n) {
    border-right: 0;
  }

  .value-card:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .three-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .info-panel {
    padding: 0 0 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .info-panel:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  body::after {
    background:
      radial-gradient(circle at 8% 14%, rgba(56, 189, 248, 0.35) 0 2px, transparent 3px),
      linear-gradient(23deg, transparent 10%, rgba(56, 189, 248, 0.09) 10.1%, transparent 10.5% 100%),
      rgba(2, 6, 23, 0.56);
  }

  .hero {
    padding-top: 26px;
  }

  .hero__inner {
    min-height: auto;
    gap: 58px;
  }

  .brand__name {
    font-size: 2.4rem;
  }

  .brand p {
    font-size: 0.92rem;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.3rem);
  }

  .hero__text {
    font-size: 1.02rem;
  }

  .button {
    width: 100%;
    min-height: 58px;
  }

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

  .value-card,
  .value-card:nth-child(2n),
  .value-card:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  .value-card:last-child {
    border-bottom: 0;
  }

  .contact__inner,
  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact__inner {
    gap: 22px;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .site-footer nav {
    padding-left: 0;
    border-left: 0;
  }
}
