:root {
  color-scheme: dark;
  --page: #080e20;
  --panel: #101a32;
  --panel-deep: #0b1428;
  --stroke: #243555;
  --light: #edf3ff;
  --muted: #a8b8d6;
  --accent: #a4c7ff;
  --blue: #5d90ff;
  --gutter: clamp(19px, 5.5vw, 72px);
  --radius: 21px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--light); }
body :where(h1, h2, h3, p, ol, ul, figure) { margin: 0; }
a { color: inherit; text-decoration: none; }
button, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; }
p { line-height: 1.58; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - var(--gutter) * 2, 1288px); margin-inline: auto; }
.skip { position: absolute; z-index: 5; inset: 10px auto auto 12px; padding: 12px 16px; background: var(--accent); color: var(--page); border-radius: 9px; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.arrow { display: inline-block; font: 500 1.12em/1 Arial, sans-serif; }

.site-header { background: #0a1225; border-bottom: 1px solid #23334f; }
.header-grid { min-height: 78px; display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; gap: clamp(20px, 4vw, 58px); }
.brand { display: inline-flex; align-items: center; width: fit-content; font-size: clamp(30px, 3vw, 38px); line-height: .95; letter-spacing: -.085em; font-weight: 720; }
.brand::before { content: ""; width: .57em; height: .57em; margin-right: .36em; border-radius: 22% 42% 42% 42%; transform: rotate(-17deg); background: linear-gradient(145deg, #c9ddff, #5384ff); }
.brand-text > span, h1 > span { color: #86adff; }
.main-nav, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 29px; }
.main-nav a, .footer-links a, .breadcrumb { color: var(--muted); }
.main-nav a { font-size: 14px; font-weight: 600; }
.main-nav a:hover, .footer-links a:hover, .breadcrumb a:hover, .footer-contact:hover { color: var(--accent); }
.header-contact, .footer-contact { display: inline-flex; align-items: center; gap: 9px; width: fit-content; color: var(--light); font-size: 14px; font-weight: 650; }
.header-contact { justify-self: end; padding: 10px 13px; border: 1px solid #36517e; border-radius: 11px; }
.header-contact:hover { background: #172849; }

.home-hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--stroke);
  background: radial-gradient(ellipse at 82% 38%, #233b71 0, #142345 35%, #0c142b 68%, #0a1124 100%);
}
.home-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 27%;
  opacity: .37;
  background: linear-gradient(90deg, #88aaff21 1px, transparent 1px), linear-gradient(#88aaff21 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(ellipse at 78% 54%, #000, transparent 77%);
  pointer-events: none;
}
.home-hero-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.23fr); align-items: center; gap: clamp(30px, 5vw, 80px); padding-block: clamp(55px, 7.6vw, 110px); }
.eyebrow { color: #b7c8e7; font-size: 11px; letter-spacing: .14em; line-height: 1.55; font-weight: 720; text-transform: uppercase; }
.hero-kicker { display: flex; align-items: center; gap: 11px; }
.hero-kicker::before { content: ""; width: 20px; height: 1px; background: #8eb4ff; }
h1 { font-size: clamp(48px, 6.25vw, 94px); line-height: .99; letter-spacing: -.073em; font-weight: 710; overflow-wrap: break-word; }
h1 em { font-style: normal; color: #a6c5ff; }
.home-intro h1 { margin-block: 19px 20px; }
.lead { max-width: 38ch; color: var(--muted); font-size: clamp(17px, 1.64vw, 22px); line-height: 1.55; }
.button { display: inline-flex; width: fit-content; max-width: 100%; min-height: 50px; align-items: center; justify-content: space-between; gap: 11px; padding: 12px 16px; border: 1px solid transparent; border-radius: 11px; text-align: left; font-weight: 675; font-size: 14px; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.button-primary { background: #a9c8ff; color: #0d1b39; box-shadow: 0 7px 22px #0003; }
.button-primary:hover { background: #c6ddff; transform: translateY(-2px); }
.button-secondary { color: #e3edff; background: #a9c8ff0e; border-color: #4a6088; }
.button-secondary:hover { background: #a9c8ff20; border-color: #8bb4ff; }
.text-link { width: fit-content; display: inline-flex; align-items: center; gap: .55em; padding-block: 4px; color: var(--accent); font-size: 14px; font-weight: 650; line-height: 1.3; }
.text-link:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.actions { margin-top: 27px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.selector { min-width: 0; display: grid; gap: 0; border: 1px solid #4c6591; border-radius: 19px; background: #101a2f; box-shadow: 0 20px 75px #02081780, 0 0 0 8px #b2ccff0b; }
.task-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 9px; border-bottom: 1px solid #2a3955; }
.task-tabs button { min-width: 0; min-height: 42px; padding: 6px 7px; display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: #bac9e4; border: 1px solid transparent; border-radius: 10px; font-size: clamp(10.5px, 1vw, 14px); font-weight: 640; line-height: 1.15; }
.task-tabs button:hover { background: #253858; }
.task-tabs button[aria-selected="true"] { color: #f5f8ff; background: #243657; border-color: #4f6c99; }
.product-mark { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 3px; background: var(--product-accent, #9abcff); box-shadow: 0 0 10px #9abcff40; }
.task-detail { min-width: 0; }
.preview-media { position: relative; }
.media-link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.media-link:focus-visible { outline-offset: -4px; }
.html-shot { position: relative; container-type: inline-size; overflow: hidden; aspect-ratio: 1.76; background: #f6f8fd; }
.html-shot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
@supports (scale: calc(1px / 1px)) {
  .html-shot iframe { width: 1440px; height: 900px; scale: calc(100cqw / 1440px); transform-origin: top left; }
}
.hero-screen { display: block; background: #18243d; padding: 12px; overflow: hidden; }
.hero-screen :is(img, .html-shot) { max-height: 470px; aspect-ratio: 1.76; object-fit: cover; object-position: left top; border-radius: 9px; border: 1px solid #a6baff30; }
.hero-screen:hover img, .card-media:hover img { filter: brightness(1.07); }
.hero-screen-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 3px 8px; min-height: 42px; padding: 6px 12px; color: #b7c5df; font-size: 12px; line-height: 1.3; }
.hero-screen-caption .text-link { font-size: 12px; }

.workflow, .projects, .product-section { padding-block: clamp(50px, 6.5vw, 91px); }
.section-title { font-size: clamp(36px, 4.7vw, 64px); font-weight: 690; line-height: 1.01; letter-spacing: -.066em; }
.section-header { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 10px 30px; margin-bottom: 27px; }
.section-header > p { max-width: 36ch; color: var(--muted); }
.workflow, .product-section { border-top: 1px solid var(--stroke); }
.workflow ol, .scenario-list { padding: 0; margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; list-style: none; counter-reset: stages; }
.workflow li, .scenario-list li { counter-increment: stages; border-top: 1px solid #416092; padding: 16px 10px 0 0; }
.workflow li::before, .scenario-list li::before { content: counter(stages, decimal-leading-zero); display: block; margin-bottom: 11px; color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.workflow h3, .scenario-list h3, .feature-grid h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 625; line-height: 1.18; letter-spacing: -.026em; }
.workflow p, .scenario-list p, .feature-grid p { color: var(--muted); margin-top: 8px; font-size: 15px; }

.project-grid, .feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card, .feature-grid article { min-width: 0; border: 1px solid var(--stroke); border-radius: var(--radius); background: linear-gradient(155deg, #15233f, #101a30 60%); }
.project-card { display: flex; flex-direction: column; overflow: hidden; }
.project-card:hover { border-color: #4b6595; }
.card-media { display: block; background: #1a2948; padding: 11px 11px 0; }
.card-media :is(img, .html-shot) { aspect-ratio: 1.75; object-fit: cover; object-position: left top; border-radius: 8px 8px 0 0; border: 1px solid #a6baff26; }
.card-copy { display: flex; align-items: flex-start; flex-direction: column; flex: 1; padding: clamp(17px, 2.3vw, 30px); }
.card-copy .eyebrow { color: var(--product-accent); display: inline-flex; align-items: center; gap: 8px; }
.card-copy h3 { margin-top: 9px; font-size: clamp(26px, 3vw, 40px); line-height: 1.07; letter-spacing: -.058em; font-weight: 675; }
.card-copy h3 a:hover { color: var(--product-accent); }
.card-copy > p:not(.eyebrow) { margin-block: 9px 15px; color: var(--muted); font-size: 15px; }
.card-copy > a { margin-top: auto; }
.product-schetpotok { --product-accent: #9ec6ff; }
.product-meridian-crm { --product-accent: #ffc0b8; }
.product-travel { --product-accent: #a5e9da; }

.bottom-section { padding-bottom: clamp(45px, 7vw, 86px); }
.banner { display: flex; flex-wrap: wrap; gap: 18px 25px; justify-content: space-between; align-items: center; padding: clamp(23px, 3.8vw, 49px); border-radius: var(--radius); border: 1px solid #415b87; background: radial-gradient(ellipse at 85% 35%, #254372, #12203b 65%); }
.banner h2 { font-size: clamp(27px, 3.5vw, 49px); font-weight: 640; line-height: 1.08; letter-spacing: -.054em; }
.banner p { color: var(--muted); margin-top: 9px; }
.site-footer { background: #090f20; border-top: 1px solid var(--stroke); }
.footer-grid { display: flex; gap: 18px 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 88px; padding-block: 22px; }
.footer-grid .brand { font-size: 29px; }
.footer-links { font-size: 14px; }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-block: 20px 0; font-size: 13px; }
.breadcrumb > span:last-child { color: white; }
.product-hero, .contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.11fr); align-items: center; gap: clamp(25px, 5vw, 73px); padding-block: clamp(40px, 7vw, 88px); }
.product-hero h1 { margin-top: 9px; font-size: clamp(44px, 6.1vw, 83px); }
.product-label { color: var(--product-accent); }
.hero-outcome { margin-top: 15px; color: #dce8ff; font-size: clamp(22px, 2.6vw, 35px); line-height: 1.16; letter-spacing: -.044em; font-weight: 590; }
.product-hero .lead { margin-top: 13px; max-width: 44ch; font-size: clamp(16px, 1.55vw, 20px); }
.detail-screen { display: block; padding: 10px; border: 1px solid #42618f; border-radius: 17px; background: #182849; box-shadow: 0 20px 65px #0004; }
.detail-screen :is(img, .html-shot) { border-radius: 9px; }
.screen-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.screen-gallery figure { min-width: 0; }
.screen-gallery figure:only-child { max-width: 850px; }
.gallery-media { overflow: hidden; border: 1px solid #38537f; border-radius: 15px; background: var(--panel); }
.gallery-media:hover { border-color: var(--accent); }
.screen-gallery img { width: 100%; aspect-ratio: 1.75; object-fit: contain; }
.screen-gallery a span { position: absolute; right: 9px; bottom: 9px; border: 1px solid #6b87b6; background: #071126ea; padding: 4px 8px; border-radius: 8px; }
.screen-gallery figcaption { padding: 8px 2px 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.feature-grid { margin-top: 24px; }
.feature-grid article { padding: clamp(19px, 2.7vw, 34px); }
.scenario-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.contact-grid { align-items: start; min-height: 62vh; }
.contact-grid .lead { margin-block: 19px; }
.direct-links { display: grid; gap: 7px; }
.contact-card { background: var(--panel); border: 1px solid var(--stroke); border-radius: var(--radius); padding: clamp(18px, 3.2vw, 38px); }
.contact-card form { display: flex; flex-direction: column; }
.contact-card label { margin-bottom: 8px; font-weight: 600; }
.contact-card label:not(:first-child) { margin-top: 19px; }
.contact-card select, .contact-card textarea { width: 100%; background: var(--panel-deep); color: var(--light); border: 1px solid #405882; border-radius: 9px; padding: 12px; line-height: 1.42; }
.contact-card textarea { resize: vertical; min-height: 106px; }
.contact-card textarea::placeholder { color: #a8b8d4; }
.contact-card .button { margin: 19px 0 9px; }
.form-note, .form-status { color: var(--muted); font-size: 13px; }
.form-status { margin-top: 9px; }
.form-status a, .contact-card noscript a { color: var(--accent); text-decoration: underline; }
.missing { padding-block: 65px; min-height: 62vh; }
.missing h1 { margin-block: 10px 16px; }
.missing .button { margin-top: 24px; }

@media (max-width: 1000px) {
  .home-hero-grid { gap: 28px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .header-grid { gap: 23px; }
  .project-grid, .feature-grid { gap: 11px; }
}
@media (max-width: 740px) {
  .header-grid { min-height: 65px; grid-template-columns: 1fr auto; gap: 10px; }
  .main-nav { display: none; }
  .header-contact { font-size: 12px; padding: 8px 10px; }
  .home-hero-grid, .product-hero, .contact-grid { grid-template-columns: 1fr; }
  .home-hero-grid { padding-block: 43px 42px; gap: 33px; }
  .home-intro h1 { max-width: 12ch; font-size: clamp(51px, 10vw, 75px); margin-block: 13px 15px; }
  .actions { margin-top: 19px; }
  .task-tabs button { font-size: clamp(10.5px, 2.6vw, 13px); }
  .hero-screen { padding: 8px; }
  .project-grid { grid-template-columns: 1fr; gap: 15px; }
  .card-media { padding: 10px 10px 0; }
  .feature-grid, .scenario-list { grid-template-columns: 1fr; }
  .workflow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .footer-links { order: 3; width: 100%; gap: 8px 17px; }
}
@media (max-width: 360px) {
  .home-intro h1 { font-size: 46px; }
  .task-tabs { gap: 3px; padding: 6px; }
  .task-tabs button { gap: 4px; }
  .task-tabs .product-mark { width: 6px; height: 6px; flex-basis: 6px; }
  .header-contact { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
