:root {
  color-scheme: dark;
  --base: #10090e;
  --ink: #fff6f8;
  --muted: #c2aab4;
  --line: #482432;
  --accent: #ff5679;
  --panel: #1a0d15;
  --shell: 1250px;
  --gutter: clamp(20px, 5.2vw, 80px);
  --body-font: Rubik, Arial, sans-serif;
  --mono-font: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--base); font: 400 16px/1.55 var(--body-font); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid #ffa2b5; outline-offset: 5px; }
[id] { scroll-margin-top: 26px; }
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 12px; background: #2e1120; }

.site-header { background: #130a11; border-bottom: 1px solid #3e1c2b; position: relative; z-index: 2; }
.header-inner { min-height: 77px; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "brand nav actions"; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.header-inner > .brand { grid-area: brand; }
.brand-accent { color: var(--accent); }
.brand-mark { width: 34px; height: 34px; flex: 0 0 auto; }
.main-nav { grid-area: nav; display: flex; gap: 8px; align-self: stretch; }
.main-nav a { position: relative; display: grid; place-items: center; padding: 0 18px; color: #d0b7c1; font-size: 14px; font-weight: 600; white-space: nowrap; }
.main-nav a:hover, .main-nav [aria-current] { color: #fff; }
.main-nav [aria-current]::after { content: ''; height: 2px; background: var(--accent); box-shadow: 0 0 11px #ff476ed6; position: absolute; bottom: -1px; inset-inline: 18px; }
.header-actions { grid-area: actions; display: flex; align-items: center; justify-self: end; gap: 14px; }
.header-telegram {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}
.header-telegram::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 4px;
  border: 1px solid #50b5e7;
  border-radius: inherit;
  background: #126a9e;
  transition: background-color .2s ease, box-shadow .2s ease;
}
.header-telegram:hover::before {
  background: #117db7;
  box-shadow: 0 0 12px #289de560;
}
.theme-toggle {
  --theme-track-border: #74405a;
  --theme-track-fill: #271521;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 62px;
  min-height: 44px;
  padding: 0 6px;
  border: 0;
  border-radius: 24px;
  color: #d4aeba;
  background: transparent;
  cursor: pointer;
}
.theme-toggle::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 6px 0;
  border: 1px solid var(--theme-track-border);
  border-radius: inherit;
  background: var(--theme-track-fill);
  box-shadow: var(--theme-track-glow, none);
  transition: background-color 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}
.theme-toggle::before {
  position: absolute;
  inset: 50% auto auto 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #60314a;
  box-shadow: inset 0 1px 1px #ffa6c248, 0 0 9px #ed579344;
  transform: translate(var(--theme-thumb-offset, 0px), -50%) scale(var(--theme-thumb-scale, 1));
  transition: transform 360ms cubic-bezier(.22, 1.32, .36, 1), background-color 260ms ease, box-shadow 260ms ease;
  content: '';
}
.theme-toggle svg {
  position: relative;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: color 240ms ease, transform 400ms cubic-bezier(.2, .75, .25, 1);
}
.theme-toggle svg:first-child { color: #fff1f7; transform: rotate(-8deg) scale(1.08); }
.theme-toggle svg:last-child { transform: rotate(-40deg) scale(.88); }
.theme-toggle:hover { --theme-track-border: #c47595; --theme-track-glow: 0 0 13px #ed57932b; }
.theme-toggle:active { --theme-thumb-scale: .9; }
:root[data-theme='light'] .theme-toggle { --theme-thumb-offset: 26px; --theme-track-border: #a7c5e2; --theme-track-fill: #edf5ff; color: #466687; }
:root[data-theme='light'] .theme-toggle::before { background: #c9e4ff; box-shadow: inset 0 1px 1px #fff, 0 0 9px #4a9be844; }
:root[data-theme='light'] .theme-toggle svg:first-child { color: #466687; transform: rotate(22deg) scale(.88); }
:root[data-theme='light'] .theme-toggle svg:last-child { color: #154c80; transform: rotate(0) scale(1.08); }
:root[data-theme='light'] .theme-toggle:hover { --theme-track-border: #5a97ce; --theme-track-glow: 0 0 13px #4a9be833; }

@media (prefers-reduced-motion: no-preference) {
  .theme-toggle { view-transition-name: theme-switch; }
  ::view-transition { pointer-events: none; }
  ::view-transition-group(root) {
    animation-duration: 340ms;
    animation-timing-function: cubic-bezier(.22, .65, .28, 1);
  }
  ::view-transition-old(theme-switch) { display: none; }
  ::view-transition-new(theme-switch) { animation: none; mix-blend-mode: normal; }
}
.control { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 50px; border: 0; padding: 0 15px; font-size: 14px; line-height: 1.3; font-weight: 600; white-space: nowrap; cursor: pointer; }
.control-main {
  --control-shape: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  position: relative;
  isolation: isolate;
  padding-inline: 12px 19px;
  color: #fff6f9;
  filter: drop-shadow(0 4px 14px var(--control-glow, #c4284d39));
  transition: filter .2s ease, transform .2s ease;
}
.control-main::before, .control-main::after {
  content: '';
  position: absolute;
  clip-path: var(--control-shape);
  pointer-events: none;
}
.control-main::before { z-index: -2; inset: 0; background: var(--control-border, linear-gradient(135deg, #ff809c, #d74468 37%, #6b263d 71%, #f36688)); }
.control-main::after { z-index: -1; inset: 1px; background: var(--control-fill, linear-gradient(125deg, #63152d, #9a1c3d 55%, #5e152c)); }
.control-main:hover { filter: drop-shadow(0 4px 16px var(--control-glow-hover, #ea396b81)); transform: translateY(-1px); }
.control-main:hover::after { background: var(--control-fill-hover, linear-gradient(125deg, #721c36, #ab2346 55%, #6d1932)); }
.control-main:active { transform: translateY(1px); }
.power-light, .web-project-icon { position: relative; display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border: 1px solid #a3445d; border-radius: 50%; color: #ffabc0; background: #2b0e19; box-shadow: inset 0 0 7px #13070e, 0 0 10px #ff477660; }
.power-light::before { content: ''; width: 12px; height: 12px; border: 1.5px solid currentColor; border-top-color: transparent; border-radius: 50%; }
.power-light::after { content: ''; position: absolute; top: 5px; left: calc(50% - .75px); width: 1.5px; height: 8px; border-radius: 1px; background: currentColor; }
.web-project-icon svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.control-index { gap: 10px; color: #e8cbd6; padding-inline: 9px; }
.control-index::before { content: ''; width: 15px; height: 12px; flex: 0 0 15px; background: linear-gradient(#ff7a9a 0 0) left top / 14px 2px, linear-gradient(#d75b7b 0 0) left center / 11px 2px, linear-gradient(#9e405b 0 0) left bottom / 7px 2px; background-repeat: no-repeat; }
.control-index:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 79% 57%, #490d24 0%, #270d1a 36%, #160b13 74%); border-bottom: 1px solid #492331; }
.hero::before { position: absolute; content: ''; inset: 0; z-index: -1; background-image: linear-gradient(#f15a7613 1px, transparent 1px), linear-gradient(90deg, #f15a7613 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(ellipse at 69% 42%, #000, transparent 76%); }
.hero-grid { display: grid; grid-template-columns: 49% 51%; align-items: center; min-height: 568px; position: relative; }
.hero-content { position: relative; z-index: 1; padding-block: 64px 58px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #f58ca4; font: 500 12px/1.45 var(--mono-font); letter-spacing: .09em; text-transform: uppercase; }
.eyebrow > span:first-child { flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 13px #ff4e75; }
.hero-title { margin-top: 20px; font: 800 clamp(50px, 6.05vw, 92px)/1.02 var(--body-font); letter-spacing: -.052em; }
.hero-title em { display: block; color: var(--accent); font-style: normal; }
.pc-hero .hero-title em { margin-top: 7px; font-size: .72em; letter-spacing: -.048em; }
.hero-description { margin-top: 25px; max-width: 435px; color: #e0c4ce; font-size: clamp(15px, 1.3vw, 19px); line-height: 1.56; }
.hero-actions { margin-top: 31px; display: flex; align-items: center; flex-wrap: wrap; gap: 11px; }
.hero-stats { display: flex; gap: 25px; margin-top: 37px; padding-top: 20px; border-top: 1px solid #66384b; width: min(100%, 410px); }
.hero-stats div + div { padding-left: 25px; border-left: 1px solid #66384b; }
.hero-stats dt { color: #fff4f7; font: 500 20px/1.12 var(--mono-font); letter-spacing: -.05em; }
.hero-stats dd { margin-top: 6px; color: #c4a5b2; font-size: 12px; }
.hero-visual { min-width: 0; }
.pc-hero-visual { position: absolute; z-index: 0; top: 0; bottom: 0; right: calc(-1 * min(42px, var(--gutter))); width: 65%; display: grid; place-items: center; pointer-events: none; }
.pc-hero-image {
  width: auto;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  mask-image: linear-gradient(90deg, transparent 1%, #0002 8%, #0009 16%, #000 28%, #000 86%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 11%, #000 84%, transparent 100%);
  mask-composite: intersect;
}

.section { padding-block: 57px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.section-head .eyebrow, .contact-panel .eyebrow { margin-bottom: 10px; }
.section-title { font: 750 clamp(32px, 4.05vw, 54px)/1.08 var(--body-font); letter-spacing: -.05em; }
.section-subtitle { max-width: 366px; color: var(--muted); font-size: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.service-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 25px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(ellipse at 100% 0%, #2a1121, transparent 75%), var(--panel); transition: border-color .18s ease, background .18s ease; }
.service-card:hover { border-color: #95435c; }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 19px; border-radius: 9px; background: #341322; border: 1px solid #7b3046; color: #ff7896; }
.card-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3, .integration-strip h3, .process-grid h3 { font-size: clamp(17px, 1.55vw, 22px); font-weight: 650; line-height: 1.23; letter-spacing: -.026em; }
.service-card > p, .process-grid p, .integration-strip p:not(.card-price) { margin-top: 10px; color: var(--muted); font-size: 14px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; width: 100%; margin-top: auto; padding-top: 9px; border-top: 1px solid #4f283b; }
.service-card > p { margin-bottom: 22px; }
.card-price { color: #fff; font: 750 17px/1.25 var(--body-font); font-variant-numeric: tabular-nums; letter-spacing: -.025em; white-space: nowrap; }
.service-action { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-inline: 10px 12px; border-left: 1px solid #854058; color: #f9dce6; background: linear-gradient(100deg, #65263d60, #2a142122); font-size: 13px; font-weight: 500; line-height: 1.3; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.service-action::before { content: ''; width: 10px; height: 5px; flex: 0 0 10px; background: linear-gradient(90deg, #fa7897 0 40%, transparent 40% 60%, #a44360 60%); transform: skew(-16deg); }
.service-action:hover { background: linear-gradient(100deg, #80324e, #472033); border-color: #ff87a4; color: #fff; }

.process-section { padding-top: 32px; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; list-style: none; padding: 0; margin: 0; }
.process-grid li { border-top: 1px solid var(--line); padding: 14px 17px 0 0; }
.process-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  margin-bottom: 12px;
  color: var(--accent);
}
.process-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, currentColor 38%, var(--line));
  border-radius: 9px;
  background: color-mix(in srgb, currentColor 10%, var(--base));
}
.process-track svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.process-arrow {
  position: relative;
  flex: 1;
  height: 1px;
  margin-inline-end: 9px;
  background: linear-gradient(90deg, color-mix(in srgb, currentColor 24%, transparent), currentColor);
}
.process-arrow::after {
  position: absolute;
  content: '';
  top: 50%;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid;
  border-right: 1px solid;
  transform: translateY(-50%) rotate(45deg);
}
.process-track .process-complete { margin-inline-end: 2px; stroke-width: 2; }

.contact-section { padding-top: 30px; }
.contact-panel { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: clamp(24px, 5vw, 58px); border: 1px solid #753149; border-radius: 15px; background: radial-gradient(ellipse at 89% 41%, #5d1830, transparent 74%), linear-gradient(105deg, #29111d, #391226); }
.contact-panel p:not(.eyebrow) { color: #e0c0ce; max-width: 560px; margin-top: 12px; }
.contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; flex: 0 0 auto; }
.contact-method { justify-content: flex-start; gap: 11px; }
.contact-method svg { flex: 0 0 auto; color: var(--contact-icon-color, #fff); }
.contact-method-telegram {
  --control-border: linear-gradient(135deg, #9bd9ff, #53b9ff 41%, #267db5 74%, #83cfff);
  --control-fill: linear-gradient(125deg, #16456e, #1d6aa5 55%, #174b78);
  --control-fill-hover: linear-gradient(125deg, #18517e, #237bb6 55%, #195688);
  --control-glow: #258bd337;
  --control-glow-hover: #289de576;
  --contact-icon-color: #cbeeff;
}
.contact-method-phone {
  --control-border: linear-gradient(135deg, #9cf5bb, #53c680 42%, #29835c 74%, #72e3a5);
  --control-fill: linear-gradient(125deg, #164a39, #1c704a 55%, #16523e);
  --control-fill-hover: linear-gradient(125deg, #195744, #227d55 55%, #185b45);
  --control-glow: #38c47730;
  --control-glow-hover: #41d78470;
  --contact-icon-color: #c8f6dc;
}
.site-footer { border-top: 1px solid #3f1f2e; color: var(--muted); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; padding-block: 16px; font-size: 13px; }
.footer-inner .brand { color: #fff; font-size: 20px; }
.footer-inner .brand-mark { transform: scale(.85); transform-origin: left center; margin-right: -4px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-inner a:hover { color: #fff; }

.web-hero .hero-grid { grid-template-columns: 43% 57%; }
.web-hero .hero-title em { margin-top: 7px; }
.integration-strip { display: flex; align-items: center; justify-content: space-between; gap: 17px; margin-top: 15px; padding: 17px 25px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.integration-strip p:not(.card-price) { margin-top: 4px; }
.integration-action { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 17px; }

@media (max-width: 1050px) {
  .hero-grid { min-height: 510px; }
  .pc-hero .hero-title em { font-size: .76em; }
  .service-card { padding: 20px; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 65px; gap: 10px; }
  .header-actions { gap: 6px; }
  .main-nav { gap: 0; }
  .main-nav a { padding-inline: 8px; font-size: 12px; }
  .main-nav [aria-current]::after { inset-inline: 8px; }
  .brand { font-size: 19px; gap: 7px; }
  .brand-mark { width: 29px; height: 29px; }
  .hero-grid, .web-hero .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding-block: 41px 8px; }
  .hero-title { margin-top: 14px; font-size: clamp(47px, 10.4vw, 70px); }
  .pc-hero .hero-title em { margin-top: 6px; }
  .hero-description { margin-top: 17px; }
  .hero-actions { margin-top: 21px; }
  .hero-stats { margin-top: 26px; padding-top: 14px; }
  .pc-hero-visual { position: relative; width: auto; right: auto; margin: -4px -12px -4px; }
  .pc-hero-image { width: min(100%, 535px); height: auto; mask-image: linear-gradient(to right, transparent, #000 15%, #000 85%, transparent), linear-gradient(to bottom, transparent, #000 12%, #000 85%, transparent); }
  .section { padding-block: 37px; }
  .section-head { display: block; margin-bottom: 18px; }
  .section-subtitle { margin-top: 8px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .process-grid { gap: 10px; }
  .contact-panel { padding: 25px; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
  .footer-inner nav { order: 1; flex-basis: 100%; }
}

@media (max-width: 480px) {
  .brand { font-size: 17px; gap: 5px; }
  .brand-mark { width: 24px; height: 24px; }
  .control { min-height: 44px; padding-inline: 11px; gap: 8px; font-size: 13px; }
  .hero-stats dt { font-size: 19px; }
  .hero-stats dd { font-size: 11px; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-panel { display: block; }
  .contact-actions { width: max-content; max-width: 100%; margin-top: 19px; }
  .integration-strip { padding: 16px; align-items: flex-start; flex-direction: column; gap: 11px; }
}

@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; gap: 20px; }
  .process-grid li { padding-inline-end: 0; }
  .process-arrow { flex: 0 0 25px; margin-inline-end: 6px; transform: rotate(90deg); }
}

@media (max-width: 520px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "nav nav";
    gap: 0 8px;
    padding-top: 6px;
  }
  .main-nav {
    justify-content: center;
    gap: clamp(10px, 4vw, 20px);
    min-height: 48px;
  }
  .main-nav a {
    padding-inline: 6px;
    font-size: clamp(14px, 3.9vw, 17px);
  }
  .main-nav [aria-current]::after { inset-inline: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 365px) {
  .hero-title { font-size: clamp(39px, 12vw, 44px); }
  .pc-hero .hero-title em { font-size: .74em; }
  .hero-actions { gap: 7px; }
}
