:root {
  --ink: #11152d;
  --violet: #5b48fc;
  --violet-deep: #442de7;
  --lime: #9de311;
  --paper: #f2f6f9;
  --white: #ffffff;
  --line: rgba(17, 21, 45, 0.14);
  --container: min(1504px, calc(100vw - 64px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
.container { width: 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; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 12px 16px; background: var(--lime); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  color: var(--white);
  transition: color .35s, background .35s, box-shadow .35s, padding .35s;
}
.site-header.is-scrolled { color: var(--ink); background: rgba(255,255,255,.93); box-shadow: 0 10px 32px rgba(13,17,43,.1); backdrop-filter: blur(16px); }
.site-header.is-scrolled .brand img { filter: brightness(0) saturate(100%) invert(8%) sepia(16%) saturate(2877%) hue-rotate(196deg) brightness(92%) contrast(96%); }
.header-grid { min-height: 92px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand img { flex: 0 0 auto; transition: filter .3s; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 18px; font-weight: 750; letter-spacing: -.04em; }
.brand small { margin-top: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; opacity: .65; }
.primary-nav { display: flex; justify-content: center; gap: 34px; font-size: 14px; font-weight: 500; }
.primary-nav a, .phone { position: relative; }
.primary-nav a::after, .phone::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: currentColor; transition: right .25s; }
.primary-nav a:hover::after, .primary-nav a.active::after, .phone:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.phone { margin-right: 8px; font-weight: 650; font-size: 14px; }
.messenger { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; overflow: hidden; transition: transform .25s, filter .25s; }
.messenger:hover { transform: translateY(-3px); }
.messenger img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: center; }
.messenger--max img { transform: scale(1.09); }
.messenger:hover img { filter: brightness(1.08) saturate(1.08); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }

.hero { position: relative; min-height: 100svh; overflow: hidden; color: var(--white); background: var(--ink); }
.hero-media, .hero-overlay, .hero-grid { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78) contrast(1.08); }
.hero-overlay { background: linear-gradient(90deg, rgba(11,14,34,.96) 0%, rgba(11,14,34,.82) 45%, rgba(11,14,34,.32) 78%, rgba(11,14,34,.55) 100%); }
.hero-grid { opacity: .19; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to right, black, transparent 72%); }
.hero-terminal { position: absolute; z-index: 1; top: 24%; right: 5%; width: min(38vw, 520px); color: rgba(255,255,255,.68); border: 1px solid rgba(255,255,255,.15); background: rgba(7,10,28,.48); box-shadow: 0 35px 90px rgba(0,0,0,.3); backdrop-filter: blur(14px); transform: rotate(2.5deg); opacity: .62; }
.terminal-bar { height: 45px; display: flex; align-items: center; gap: 7px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.12); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.terminal-bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); }
.terminal-bar i:first-child { background: var(--lime); }
.terminal-bar span { margin-left: auto; }
.terminal-body { padding: 24px 28px 30px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: clamp(11px, 1vw, 14px); }
.terminal-body p { margin: 0; padding: 7px 0; white-space: nowrap; }
.terminal-body em { display: inline-block; width: 34px; color: rgba(255,255,255,.25); font-style: normal; }
.code-purple { color: #9e8eff; }
.code-green, .terminal-success { color: var(--lime); }
.code-blue { color: #6dd9ff; }
.terminal-success { animation: terminalBlink 2.4s ease-in-out infinite; }
@keyframes terminalBlink { 50% { opacity: .45; } }
.hero-content { position: relative; z-index: 2; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 148px; padding-bottom: 120px; }
.eyebrow { margin: 0 0 25px; display: flex; align-items: center; gap: 11px; font-size: 12px; line-height: 1; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow span { width: 31px; height: 3px; background: var(--lime); }
.hero h1 { max-width: 1010px; margin: 0; font-size: clamp(48px, 6vw, 92px); line-height: .98; letter-spacing: -.065em; font-weight: 650; }
.hero h1 span { color: var(--lime); }
.hero-lead { max-width: 620px; margin: 32px 0 0; font-size: clamp(18px, 1.5vw, 23px); line-height: 1.55; font-weight: 300; color: rgba(255,255,255,.72); }
.hero-buttons { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 13px; }
.button { min-height: 60px; display: inline-flex; align-items: center; justify-content: center; gap: 32px; border: 1px solid transparent; border-radius: 999px; padding: 0 28px; font-weight: 650; cursor: pointer; transition: transform .25s, background .25s, color .25s, border-color .25s; }
.button:hover { transform: translateY(-3px); }
.button--lime { color: var(--ink); background: var(--lime); }
.button--lime:hover { background: #b2f52c; }
.button--ghost { color: var(--white); border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.04); backdrop-filter: blur(12px); }
.button--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.hero-meta { margin-top: 58px; display: flex; gap: 34px; color: rgba(255,255,255,.55); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hero-meta span { display: flex; align-items: center; gap: 10px; }
.hero-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); }
.scroll-hint { position: absolute; z-index: 3; right: 32px; bottom: 42px; display: flex; align-items: center; gap: 12px; writing-mode: vertical-rl; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.scroll-hint span { width: 1px; height: 40px; background: var(--lime); animation: pulseLine 1.8s ease-in-out infinite; }
@keyframes pulseLine { 50% { transform: scaleY(.55); opacity: .45; } }

.benefits { color: var(--white); background: var(--violet); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.benefits article { min-height: 138px; padding: 30px 28px; border-left: 1px solid rgba(255,255,255,.24); display: flex; flex-direction: column; justify-content: space-between; }
.benefits article:last-child { border-right: 1px solid rgba(255,255,255,.24); }
.benefits b { color: var(--lime); font-size: 13px; }
.benefits span { max-width: 190px; font-size: 18px; line-height: 1.25; font-weight: 600; }

.section { padding: 130px 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); gap: 50px; align-items: end; margin-bottom: 66px; }
.section-heading h2, .process h2, .contact h2 { margin: 0; font-size: clamp(42px, 5.2vw, 74px); line-height: 1.02; letter-spacing: -.055em; font-weight: 600; }
.section-heading > p { margin: 0 0 8px; font-size: 18px; line-height: 1.6; color: rgba(17,21,45,.62); }
.eyebrow--dark { color: var(--violet); }
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; width: 100%; min-height: 330px; display: flex; flex-direction: column; padding: 28px; background: var(--white); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.22,.8,.22,1); }
.service-card:hover { z-index: 2; transform: translateY(-7px); border-color: transparent; box-shadow: 0 20px 44px rgba(17,21,45,.16); }
.service-card:hover::after { transform: scaleX(1); }
.service-top { display: flex; justify-content: space-between; font-size: 12px; color: rgba(17,21,45,.44); }
.service-card h3 { margin: 50px 0 28px; font-size: 22px; line-height: 1.2; letter-spacing: -.035em; transition: transform .3s ease; }
.service-card:hover h3 { transform: translateY(-4px); }
.service-card p { margin: auto 0 22px; font-size: 13px; color: rgba(17,21,45,.5); }
.service-card p strong { display: block; margin-top: 5px; font-size: 22px; color: var(--ink); }
.service-order { width: max-content; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 4px; background: transparent; font-weight: 650; cursor: pointer; }
.service-card--violet { color: var(--white); background: var(--violet); }
.service-card--violet::after, .service-card--dark::after { background: var(--lime); }
.service-card--violet .service-top, .service-card--violet p { color: rgba(255,255,255,.6); }
.service-card--violet p strong { color: var(--white); }
.service-card--dark { color: var(--white); background: var(--ink); }
.service-card--dark .service-top, .service-card--dark p { color: rgba(255,255,255,.55); }
.service-card--dark p strong { color: var(--white); }
.service-card--lime { background: var(--lime); }

.process { color: var(--white); background: var(--ink); }
.process-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; }
.process-intro { position: sticky; top: 150px; align-self: start; }
.process-intro > p:not(.eyebrow) { max-width: 560px; margin: 28px 0 38px; color: rgba(255,255,255,.62); font-size: 18px; line-height: 1.65; }
.text-link { position: relative; z-index: 0; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 16px; padding: 11px 0; color: var(--lime); font-weight: 650; transition: color .28s, padding .28s; }
.text-link::before { content: ""; position: absolute; z-index: -1; inset: 0 100% 0 0; background: var(--lime); transition: right .35s cubic-bezier(.22,.8,.22,1); }
.text-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--lime); }
.text-link span { transition: transform .28s; }
.text-link:hover, .text-link:focus-visible { color: var(--ink); padding-inline: 14px; }
.text-link:hover::before, .text-link:focus-visible::before { right: 0; }
.text-link:hover span, .text-link:focus-visible span { transform: translate(4px,-4px); }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.18); }
.process-list li { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 42px 18px 42px 0; border-bottom: 1px solid rgba(255,255,255,.18); overflow: hidden; transition: padding .32s, border-color .32s; }
.process-list li::before { content: ""; position: absolute; z-index: 0; inset: 0 100% 0 0; background: rgba(91,72,252,.28); transition: right .4s cubic-bezier(.22,.8,.22,1); }
.process-list li > * { position: relative; z-index: 1; }
.process-list li:hover { padding-left: 24px; border-color: var(--lime); }
.process-list li:hover::before { right: 0; }
.process-list b { color: var(--lime); font-size: 13px; transition: transform .32s; }
.process-list li:hover b { transform: translateX(7px); }
.process-list h3 { margin: -7px 0 12px; font-size: 30px; letter-spacing: -.035em; transition: color .28s, transform .28s; }
.process-list li:hover h3 { color: var(--lime); transform: translateX(5px); }
.process-list p { margin: 0; max-width: 520px; color: rgba(255,255,255,.55); line-height: 1.6; transition: color .28s; }
.process-list li:hover p { color: rgba(255,255,255,.78); }

.contact { color: var(--white); background: var(--violet); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 9vw; align-items: start; }
.contact-copy > p:not(.eyebrow) { max-width: 560px; margin: 28px 0 50px; color: rgba(255,255,255,.7); font-size: 18px; line-height: 1.65; }
.contact-phone { display: block; width: max-content; font-size: clamp(27px, 3vw, 46px); letter-spacing: -.05em; font-weight: 600; }
.contact-links { margin-top: 22px; display: flex; gap: 24px; color: var(--lime); font-weight: 650; }
.contact-links a { display: inline-flex; align-items: center; gap: 9px; }
.contact-links img { display: block; width: 25px; height: 25px; aspect-ratio: 1; object-fit: cover; object-position: center; border-radius: 50%; }
.contact-link--max img { transform: scale(1.09); }
.contact-form { padding: 46px; background: var(--white); color: var(--ink); }
.contact-form label:not(.consent) { display: block; margin-bottom: 27px; }
.contact-form label > span { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.contact-form input:not([type="checkbox"]), .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(17,21,45,.27); border-radius: 0; padding: 8px 0 14px; outline: none; background: transparent; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--violet); box-shadow: 0 1px 0 var(--violet); }
.contact-form .field-highlight { animation: highlight 1.2s ease; }
@keyframes highlight { 0%,100% { background: transparent; } 40% { background: rgba(157,227,17,.28); } }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 24px; color: rgba(17,21,45,.62); }
.consent input { width: 18px; height: 18px; accent-color: var(--violet); }
.consent span { margin: 1px 0 0 !important; font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important; }
.consent a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--violet-deep); }
.form-submit { border: 0; }
.form-status { min-height: 22px; margin: 16px 0 0; font-size: 14px; font-weight: 600; }

.site-footer { padding: 38px 0; color: var(--white); background: #090c1e; }
.footer-grid { display: grid; grid-template-columns: 1fr auto auto auto; gap: 40px; align-items: center; }
.footer-grid p, .footer-grid > a { margin: 0; font-size: 13px; color: rgba(255,255,255,.56); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px 30px; margin-top: 30px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-legal a { color: rgba(255,255,255,.48); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; transition: color .25s; }
.footer-legal a:hover { color: var(--lime); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  :root { --container: min(100% - 48px, 1100px); }
  .header-grid { grid-template-columns: auto 1fr; }
  .primary-nav { display: none; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-terminal { right: -7%; opacity: .42; }
  .process-layout, .contact-grid { gap: 6vw; }
}

@media (max-width: 820px) {
  :root { --container: min(100% - 32px, 760px); }
  .site-header { background: rgba(17,21,45,.18); backdrop-filter: blur(10px); }
  .header-grid { min-height: 74px; gap: 12px; }
  .brand span { display: none; }
  .brand img { width: 40px; height: 40px; }
  .header-actions { justify-self: end; }
  .phone { font-size: 13px; }
  .menu-toggle { display: grid; gap: 4px; grid-column: 2; grid-row: 1; justify-self: end; margin-right: 120px; color: currentColor; }
  .menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: currentColor; }
  .primary-nav { position: fixed; top: 74px; left: 16px; right: 16px; display: grid; gap: 0; padding: 12px 22px; color: var(--ink); background: var(--white); border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transform: translateY(-12px); transition: .25s; }
  .primary-nav.is-open { opacity: 1; pointer-events: auto; transform: none; }
  .primary-nav a { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .primary-nav a:last-child { border-bottom: 0; }
  .hero-content { padding-top: 120px; padding-bottom: 90px; }
  .hero-terminal { display: none; }
  .hero h1 { max-width: 700px; font-size: clamp(44px, 9vw, 70px); }
  .hero-meta { flex-wrap: wrap; gap: 15px 26px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits article:nth-child(3) { border-top: 1px solid rgba(255,255,255,.24); }
  .benefits article:nth-child(4) { border-top: 1px solid rgba(255,255,255,.24); border-right: 1px solid rgba(255,255,255,.24); }
  .section { padding: 94px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-layout, .contact-grid { grid-template-columns: 1fr; gap: 65px; }
  .process-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  :root { --container: calc(100% - 32px); }
  .header-grid { grid-template-columns: 40px 1fr 40px; }
  .header-actions { grid-column: 2; grid-row: 1; justify-self: end; margin-right: 12px; }
  .header-actions .phone { font-size: 0; margin-right: 0; }
  .header-actions .phone::before { content: "Позвонить"; font-size: 11px; font-weight: 700; }
  .header-actions .messenger { display: none; }
  .menu-toggle { grid-column: 3; grid-row: 1; margin-right: 0; }
  .hero-overlay { background: linear-gradient(180deg, rgba(11,14,34,.76), rgba(11,14,34,.96) 62%); }
  .hero-grid { background-size: 48px 48px; }
  .hero-content { justify-content: flex-end; min-height: 780px; padding-top: 120px; padding-bottom: 62px; }
  .hero h1 { font-size: 44px; line-height: 1.02; }
  .hero-lead { margin-top: 24px; font-size: 17px; }
  .hero-buttons { width: 100%; }
  .hero-buttons .button { width: 100%; }
  .hero-meta { display: grid; margin-top: 34px; }
  .scroll-hint { display: none; }
  .benefits article { min-height: 128px; padding: 23px 16px; }
  .benefits span { font-size: 15px; }
  .section { padding: 75px 0; }
  .section-heading h2, .process h2, .contact h2 { font-size: 42px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 290px; }
  .service-card:hover { transform: translateY(-4px); }
  .process-list li { grid-template-columns: 46px 1fr; gap: 12px; padding: 30px 0; }
  .process-list h3 { font-size: 24px; }
  .contact-form { padding: 30px 22px; }
  .contact-phone { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-media video { display: none; }
  .hero-media { background: url("https://bitrix.very-good.ru/img/video.jpg") center/cover no-repeat; }
  .reveal { opacity: 1; transform: none; }
}
