/* 2026 visual refresh: keep the existing site structure and interactions. */
:root {
  color-scheme: dark;
  --ink: #ecf3f1;
  --ink-soft: #d2dddb;
  --paper: #0b1015;
  --paper-strong: #151d24;
  --muted: #9baeb2;
  --line: rgba(205, 233, 229, 0.14);
  --line-light: rgba(205, 233, 229, 0.13);
  --accent: #b7e8d5;
  --accent-strong: #8dd7b9;
  --green: #b7e8d5;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

body {
  background: var(--paper);
  color: var(--ink);
}

::selection { background: #b7e8d5; color: #091215; }
:focus-visible { outline-color: var(--accent-strong); }
.skip-link { color: #0b1719; }

.site-header {
  border-color: transparent;
  background: rgba(11, 16, 21, 0.74);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header.scrolled {
  border-color: var(--line);
  background: rgba(11, 16, 21, 0.95);
}
.brand { color: var(--ink); }
.brand-mark { color: var(--accent); }
.site-nav > a:not(.nav-cta) { color: #c9d8d8; }
.site-nav > a:not(.nav-cta):hover { color: white; }
.site-nav > a:not(.nav-cta)::after { background: var(--accent); }
.nav-cta { background: var(--accent); color: #0b1719; }
.nav-cta:hover { background: #d8fae9; color: #0b1719; }
.menu-toggle { background: #24443a; color: var(--accent); }
.menu-toggle span { background: currentColor; }
.language-switch { background: rgba(255, 255, 255, 0.04); }
.language-switch a { color: var(--muted); }
.language-switch a:hover { background: rgba(183, 232, 213, 0.11); color: white; }
.language-switch .is-active { color: #0b1719; }

.hero {
  padding-top: 152px;
  background:
    radial-gradient(ellipse 45% 62% at 84% 22%, rgba(56, 119, 112, 0.19), transparent 72%),
    linear-gradient(180deg, #0b1015 0%, #0e151b 100%);
}
.hero::before {
  top: -50px;
  right: -160px;
  background: radial-gradient(circle, rgba(117, 201, 172, 0.13), transparent 69%);
  filter: blur(40px);
}
.hero-grid { opacity: 0.24; background-size: 78px 78px; }
.hero-layout { grid-template-columns: minmax(0, 0.94fr) minmax(470px, 1.06fr); gap: clamp(40px, 5vw, 80px); }
.eyebrow, .section-kicker { color: var(--accent-strong); font-size: 10px; letter-spacing: 0.19em; }
.status-dot { box-shadow: 0 0 0 5px rgba(141, 215, 185, 0.12); }
.hero h1 { max-width: 780px; font-size: clamp(48px, 4.6vw, 70px); font-weight: 560; line-height: 0.99; }
.hero h1 .hero-line { color: var(--ink); white-space: nowrap; }
.hero h1 .hero-line-accent { color: var(--accent); }
.hero-lead { color: #b2c2c5; font-size: clamp(17px, 1.32vw, 19px); }
.button-primary { background: var(--accent); color: #0b1719; box-shadow: 0 12px 28px rgba(39, 132, 103, 0.14); }
.button-primary:hover { background: #d7f6e8; box-shadow: 0 16px 36px rgba(39, 132, 103, 0.2); }
.button-primary .button-icon { background: #0c2625; color: #d5f6e7; }
.text-link { border-color: rgba(183, 232, 213, 0.48); color: var(--ink); }
.hero-note span { color: var(--accent); }

.flow-shell { border-color: rgba(177, 221, 212, 0.19); background: #111920; box-shadow: 0 32px 76px rgba(0, 0, 0, 0.28); }
.flow-shell.is-upgraded:hover { box-shadow: 0 36px 82px rgba(0, 0, 0, 0.35); }
.flow-topbar { color: #81999c; }
.window-dot { background: #556a70; }
.window-dot:first-child { background: #90cbb7; }
.live-chip { background: rgba(141, 215, 185, 0.12); color: var(--accent); }
.flow-canvas { background-image: radial-gradient(circle, rgba(187, 224, 216, 0.17) 0.8px, transparent 0.9px); }
.flow-shell.is-upgraded .flow-edge-track { stroke: rgba(178, 220, 211, 0.24); }
.flow-shell.is-upgraded .flow-edge.is-complete .flow-edge-track { stroke: rgba(141, 215, 185, 0.62); }
.flow-shell.is-upgraded .flow-edge.is-active .flow-edge-track { stroke: rgba(141, 215, 185, 0.4); }
.flow-shell.is-upgraded .flow-edge-pulse { filter: drop-shadow(0 0 4px rgba(141, 215, 185, 0.6)); }
.flow-node { border-color: rgba(177, 221, 212, 0.18); background: #1a252d; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2); }
.flow-node:hover { box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28); }
.flow-shell.is-upgraded .flow-node.is-active { background: #253a39; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24), 0 0 0 4px rgba(141, 215, 185, 0.1); }
.flow-node.is-complete:not(.is-active) { border-color: rgba(141, 215, 185, 0.35); }
.flow-node::before { border-color: #1a252d; background: #396c5a; }
.flow-shell.is-upgraded .flow-node::after { border-color: #1a252d; background: #789592; }
.flow-shell.is-upgraded .flow-node.is-complete i,
.flow-shell.is-upgraded .flow-node.is-complete::after { background: var(--accent-strong); }
.flow-node i { border-color: #1a252d; }
.node-icon { background: #26353c; color: #b7e8d5; }
.icon-telegram { background: #1c3a4a; color: #8cd0ed; }
.icon-ai { background: #244e43; color: #d9f7e8; }
.icon-crm { background: #343150; color: #c4baff; }
.icon-reply { background: #493429; color: #ffc5a4; }
.icon-validate { background: #294039; color: #b7e8d5; }
.icon-notify { background: #403d2e; color: #f0dc98; }
.flow-metrics span { background: rgba(21, 32, 39, 0.88); }
.flow-status { border-color: var(--line); background: rgba(20, 31, 38, 0.94); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26); }
.flow-status strong { color: var(--ink); }
.flow-progress { background: rgba(183, 232, 213, 0.1); }
.pulse-ring { box-shadow: 0 0 0 rgba(141, 215, 185, 0.3); }
.platform-row { margin-top: 62px; }
.platforms { color: #c9d9d8; }
.platforms i { background: #617d7f; }

.section { padding: 112px 0; }
.section-heading h2, .section-intro h2, .process-sticky h2,
.principles-copy h2, .faq h2, .contact h2, .telegram-copy h2 { font-weight: 550; }
.section-heading > p, .section-intro > p { color: var(--muted); }
.heading-period { color: var(--accent); }
.section-dark { background: #10171e; color: var(--ink); }
.section-heading.light .section-kicker { color: var(--accent-strong); }
.section-heading.light > p { color: var(--muted); }
.service-grid { border-color: var(--line); }
.service-card { min-height: 295px; border-color: var(--line); background: rgba(255, 255, 255, 0.012); }
.service-card:hover { background: rgba(183, 232, 213, 0.045); }
.service-card::after { background: var(--accent); }
.service-index { color: var(--accent-strong); }
.service-icon { width: 52px; height: 52px; border: 1px solid rgba(183, 232, 213, 0.2); border-radius: 15px; background: #20342f; color: var(--accent); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: clamp(23px, 2.1vw, 29px); }
.service-card p { color: #a7b8bb; }
.service-card li { color: #bfd2d1; }

.solutions { background: #0c1218; }
.solution-list { border-color: var(--line); }
.solution-row { border-color: var(--line); }
.solution-title > span { color: var(--accent-strong); }
.mini-flow span { border-color: rgba(183, 232, 213, 0.18); background: #1a282d; color: #d5e5e1; }
.mini-flow i { color: #7fa79e; }

.impact { background: #0e151b; }
.impact-card { background: #172129; }
.impact-card:hover { background: #1b2a31; }
.impact-number { color: var(--accent); }
.impact-card p { color: var(--muted); }
.impact-card-accent { border-color: rgba(141, 215, 185, 0.36); background: #19362f; }
.impact-card-accent:hover { background: #20443a; }
.impact-card-accent p { color: #abcfc0; }

.process { background: #101920; }
.process-layout { color: var(--ink); }
.process-step > span { border: 1px solid rgba(141, 215, 185, 0.22); background: #20342f; color: var(--accent); }
.process-sticky p, .process-step p { color: var(--muted); }
.principles { background: #13231f; color: var(--ink); }
.principles .section-kicker { color: var(--accent-strong); }
.principle > span { color: var(--accent-strong); }
.principle p { color: #a6c1b9; }
.faq { background: #0d141a; }
.faq-item summary span { color: var(--accent); }
.faq-item[open] summary span { background: #29463c; color: var(--accent); }
.faq-item p { color: var(--muted); }


.contact { padding-top: 86px; background: #0b1015; }
.contact-card { overflow: clip; border: 1px solid rgba(183, 232, 213, 0.22); background: radial-gradient(circle at 0 100%, rgba(97, 172, 146, 0.22), transparent 44%), #172822; }
.contact-card .section-kicker { color: var(--accent-strong); }
.contact-layout { grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr); }
.contact-copy h2 { color: #f0f6f3; }
.contact-copy > p { color: #b8cec4; }
.contact-alternative { color: #a9c6ba; }
.contact-links { gap: 10px; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid rgba(183, 232, 213, 0.34); border-radius: 999px; color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.contact-links a:hover { border-color: var(--accent); background: rgba(183, 232, 213, 0.1); }
.contact-orbit { border-color: rgba(183, 232, 213, 0.13); }
.contact-orbit::before, .contact-orbit::after { border-color: rgba(183, 232, 213, 0.13); }
.contact-orbit i { border-color: #172822; background: var(--accent); }
.lead-form { border-color: rgba(183, 232, 213, 0.18); background: #111b20; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.26); color: var(--ink); }
.form-heading { border-color: var(--line); }
.form-heading small, .form-field > span small { color: var(--muted); }
.form-field input, .form-field textarea { border-color: rgba(183, 232, 213, 0.22); background: #1a282d; color: white; }
.form-field input::placeholder, .form-field textarea::placeholder { color: #8da2a3; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent-strong); background: #21343a; box-shadow: 0 0 0 4px rgba(141, 215, 185, 0.13); }
.form-submit { background: var(--accent); color: #0b1719; }
.form-submit:hover { background: #d7f6e8; }
.form-submit i { background: #17342d; color: var(--accent); }
.form-status.is-success { color: #a7e7c1; }
.form-status.is-error { color: #ffb9ac; }
.form-consent { color: #8ca3a2; }

.site-footer { border-top: 1px solid var(--line); background: #090e12; }
.footer-inner { grid-template-columns: 1fr 1fr auto; }
.footer-inner p { color: var(--muted); }
.back-top:hover { color: var(--accent); }
.back-top { border-color: rgba(183, 232, 213, 0.5); }

.floating-contact { position: fixed; right: max(24px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); z-index: 1200; display: grid; justify-items: end; gap: 12px; }
.floating-contact-toggle { display: inline-flex; min-height: 58px; align-items: center; justify-content: center; gap: 10px; padding: 0 20px; border: 0; border-radius: 999px; background: #229ed9; box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35); color: white; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; transition: background 160ms ease, transform 160ms ease; }
.floating-contact-toggle:hover { background: #168ac1; transform: translateY(-2px); }
.floating-contact-toggle:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.floating-contact-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.floating-contact-menu { display: grid; min-width: 226px; gap: 4px; padding: 7px; border: 1px solid var(--line); border-radius: 15px; background: #151d24; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4); opacity: 0; pointer-events: none; transform: translateY(8px) scale(0.98); transform-origin: bottom right; transition: opacity 150ms ease, transform 150ms ease, visibility 150ms; visibility: hidden; }
.floating-contact.is-open .floating-contact-menu { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); visibility: visible; }
.floating-contact-menu a { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: 9px; color: var(--ink); font-size: 14px; text-decoration: none; }
.floating-contact-menu a:hover, .floating-contact-menu a:focus-visible { background: rgba(183, 232, 213, 0.1); color: white; }

@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .flow-shell { width: min(100%, 730px); margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr auto auto; }
  .footer-inner p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 820px) {
  .section { padding: 76px 0; }
  .site-header, .site-header.scrolled { background: #0b1015; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-nav, .site-nav.is-open { background: #0b1015; }
  .language-switch-header { background: #162028; }
  .hero { padding: 54px 0 38px; }
  .hero h1 { font-size: clamp(40px, 8vw, 62px); }
  .platform-row { margin-top: 42px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr auto; }
}

@media (max-width: 560px) {
  .section { padding: 62px 0; }
  .hero h1 { font-size: clamp(35px, 9vw, 48px); }
  .hero-lead { font-size: 16px; }
  .flow-canvas::after { background: linear-gradient(to bottom, rgba(141, 215, 185, 0.15), var(--accent-strong), rgba(141, 215, 185, 0.15)); }
  .flow-shell.is-upgraded .flow-node { width: 100%; }
  .contact { padding-top: 8px; }
  .contact-card { padding: 30px 17px; }
  .footer-inner { gap: 20px; }
  .floating-contact { right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .floating-contact-toggle { width: 58px; min-height: 58px; padding: 0; }
  .floating-contact-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-contact-toggle, .floating-contact-menu { transition: none; }
}
