:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --ink: #0c1220;
  --muted: #5d6878;
  --muted-2: #8b96a6;
  --line: rgba(15, 23, 42, .1);
  --dark: #070a0f;
  --dark-2: #0d1320;
  --dark-line: rgba(255, 255, 255, .13);
  --white: #f8fafc;
  --teal: #2dd4bf;
  --blue: #2563eb;
  --orange: #f97316;
  --red: #ef4444;
  --green: #10b981;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 5rem;
  --space-8: 7rem;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 12px 35px rgba(15, 23, 42, .08);
  --shadow-md: 0 28px 70px rgba(15, 23, 42, .14);
  --shadow-dark: 0 32px 90px rgba(0, 0, 0, .35);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  padding: 10px 16px;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 10, 15, .78);
  border-color: var(--dark-line);
  backdrop-filter: blur(18px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: var(--space-4);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 850;
  letter-spacing: .08em;
  line-height: 1;
}

.logo span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, .5);
  border-radius: 10px;
  color: var(--teal);
  background: rgba(45, 212, 191, .08);
  box-shadow: inset 0 0 24px rgba(45, 212, 191, .12);
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: rgba(248, 250, 252, .78);
  font-size: 14px;
}

.nav a {
  position: relative;
  transition: color .2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 2px;
  transform: scaleX(0);
  background: var(--teal);
  transition: transform .2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--white);
}

.nav a.is-active::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header__phone {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 22px;
  font-weight: 760;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

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

.btn:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.btn--small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 14px;
}

.btn--primary {
  color: #041013;
  background: linear-gradient(135deg, var(--teal), #9ff7e9);
  box-shadow: 0 18px 44px rgba(45, 212, 191, .24);
}

.btn--secondary {
  color: var(--white);
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--dark-line);
}

.btn--ghost {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn--wide {
  min-width: 188px;
  white-space: nowrap;
}

.btn--full {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--dark-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: var(--radius-pill);
  background: var(--white);
  transition: transform .2s ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-panel {
  display: none;
}

.section {
  padding: var(--space-8) 0;
  scroll-margin-top: 92px;
}

.section-dark {
  color: var(--white);
  background: var(--dark);
}

.section-soft {
  background: var(--surface-2);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 116px 0 70px;
  scroll-margin-top: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, .26), transparent 34%),
    radial-gradient(circle at 88% 28%, rgba(45, 212, 191, .24), transparent 34%),
    linear-gradient(180deg, rgba(7, 10, 15, .2), #070a0f 88%);
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 4.8vw, 4.85rem);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero__lead {
  max-width: 640px;
  color: rgba(248, 250, 252, .74);
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 690px;
}

.hero__metrics span {
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-md);
  color: rgba(248, 250, 252, .62);
  background: rgba(255, 255, 255, .055);
  backdrop-filter: blur(12px);
}

.hero__metrics strong {
  display: block;
  color: var(--white);
  font-size: 1.35rem;
}

.hero__visual {
  position: relative;
  isolation: isolate;
}

.hero__visual img {
  border: 1px solid var(--dark-line);
  border-radius: 34px;
  box-shadow: var(--shadow-dark);
  transform: perspective(1100px) rotateY(-8deg) rotateX(4deg);
}

.split,
.ops-grid,
.form-grid,
.contacts__grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(30px, 6vw, 82px);
  align-items: start;
}

.section-copy p:not(.eyebrow),
.section-head p:not(.eyebrow) {
  color: var(--muted);
}

.legal-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card,
.feature-card,
.service-card,
.case-card,
.request-form,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow-sm);
}

.info-card {
  padding: 28px;
}

.info-card--large,
.info-card--muted {
  grid-column: span 2;
}

.info-card--muted {
  background: linear-gradient(135deg, rgba(45, 212, 191, .12), rgba(37, 99, 235, .08));
}

.info-card p,
.feature-card p,
.service-card p,
.case-card p,
.process__item p {
  color: var(--muted);
}

.section-head {
  max-width: 840px;
  margin-bottom: 44px;
}

.section-head--row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 260px;
  padding: 26px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover,
.service-card:hover,
.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 212, 191, .42);
  box-shadow: var(--shadow-md);
}

.icon-shell {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 16px;
  color: var(--teal);
  font-weight: 850;
  background: #08111d;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 278px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-card strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.service-card--accent {
  color: var(--white);
  background: linear-gradient(145deg, #0b1220, #10283b 58%, #10362f);
  border-color: var(--dark-line);
}

.service-card--accent p {
  color: rgba(248, 250, 252, .7);
}

.service-card--accent strong {
  color: var(--teal);
}

.section-ops {
  overflow: hidden;
}

.section-ops .section-copy p:not(.eyebrow) {
  color: rgba(248, 250, 252, .68);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-cloud span {
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-pill);
  padding: 9px 13px;
  color: rgba(248, 250, 252, .78);
  background: rgba(255, 255, 255, .07);
}

.ops-visual img {
  border-radius: 34px;
  box-shadow: var(--shadow-dark);
}

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

.process__item {
  position: relative;
  min-height: 220px;
  padding: 26px;
  border-left: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .18));
}

.process__item span,
.case-card span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--orange);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.benefit {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.benefit strong {
  font-size: 1.4rem;
}

.benefit span {
  color: var(--muted);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.case-card {
  min-height: 310px;
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.section-form {
  background:
    radial-gradient(circle at 10% 20%, rgba(45, 212, 191, .14), transparent 32%),
    radial-gradient(circle at 90% 82%, rgba(37, 99, 235, .12), transparent 36%),
    var(--bg);
}

.request-form {
  padding: 28px;
}

.form-row {
  margin-bottom: 16px;
}

.form-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 760;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 15px 16px;
  color: var(--ink);
  background: #f9fbfd;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(45, 212, 191, .72);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(45, 212, 191, .14);
}

.form-row small {
  display: block;
  min-height: 19px;
  margin-top: 5px;
  color: var(--red);
  font-size: .82rem;
}

.form-row.is-error input,
.form-row.is-error textarea {
  border-color: rgba(239, 68, 68, .74);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: .92rem;
}

.checkbox a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: rgba(45, 212, 191, .65);
  text-underline-offset: 3px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--teal);
}

.form-message {
  min-height: 22px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}

.form-message.is-success {
  color: var(--green);
}

.form-message.is-error {
  color: var(--red);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 34px;
}

.contact-card a {
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  font-weight: 850;
}

.contact-card span {
  color: var(--muted);
}

.footer {
  color: rgba(248, 250, 252, .68);
  background: var(--dark);
  padding: 38px 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.footer p {
  margin: 0;
}

.footer__links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.page-policy {
  background: var(--bg);
}

.policy-main {
  padding-top: 76px;
}

.policy-hero {
  padding: 96px 0 56px;
  color: var(--white);
  background: var(--dark);
}

.policy-hero h1 {
  max-width: 980px;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 5vw, 5rem);
}

.policy-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(248, 250, 252, .72);
  font-size: 1.08rem;
}

.policy-section {
  padding: 72px 0 96px;
}

.policy-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.policy-note {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.policy-note span {
  color: var(--muted);
  font-size: .95rem;
}

.policy-note strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.policy-note .btn {
  margin-top: 12px;
}

.policy-content {
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.policy-content h2 {
  margin: 44px 0 16px;
  color: var(--ink);
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 1.15;
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-panel {
    position: fixed;
    inset: 76px 20px auto;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--dark-line);
    border-radius: 24px;
    background: rgba(7, 10, 15, .94);
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(22px);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .mobile-panel.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-panel a {
    border-radius: 14px;
    color: var(--white);
    padding: 12px 14px;
  }

  .hero__grid,
  .split,
  .ops-grid,
  .form-grid,
  .contacts__grid,
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-note {
    position: static;
  }

  .hero__visual img {
    transform: none;
  }

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

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

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

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

  .header__phone,
  .header__actions .btn {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  h1 {
    font-size: clamp(2.35rem, 10.5vw, 3rem);
    line-height: 1.02;
  }

  .hero__metrics,
  .about-grid,
  .competency-grid,
  .service-grid,
  .benefits-grid,
  .case-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .info-card--large,
  .info-card--muted {
    grid-column: auto;
  }

  .hero__actions,
  .section-head--row,
  .footer__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .footer__inner {
    display: flex;
  }

  .footer__links {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
