/* === fonts.css (self-hosted Inter — cyrillic + latin) === */
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-v20-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-v20-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-v20-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-v20-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-v20-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-v20-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/inter-v20-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url(/assets/fonts/inter-v20-2.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ── effects.css ── */
/* ===============================================
   Mobless Studio — interactive effects
   Custom cursor · scroll progress · card shimmer · click ripple
   =============================================== */

/* ---- Scroll progress bar ---- */
.mb-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 999;
  pointer-events: none;
}
.mb-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #47B0F8, #2E97E9, #7AC9FF);
  box-shadow: 0 0 12px rgba(71, 176, 248, 0.5),
              0 0 24px rgba(71, 176, 248, 0.25);
  transition: width 0.08s linear;
}

/* ---- Custom cursor (desktop only) ---- */
@media (hover: hover) and (pointer: fine) {
  /* cursor:none removed — JS custom cursor disabled, OS-default восстановлен */

  .mb-cursor,
  .mb-cursor-ring {
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    will-change: transform, width, height, opacity;
  }
  .mb-cursor {
    width: 10px; height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: #7AC9FF;
    box-shadow: 0 0 10px rgba(71, 176, 248, 0.7),
                0 0 24px rgba(71, 176, 248, 0.35);
    /* no transform transition — JS rAF moves it directly each frame */
    transition: background 0.2s, opacity 0.2s, width 0.2s, height 0.2s, margin 0.2s;
    mix-blend-mode: screen;
  }
  .mb-cursor-ring {
    width: 36px; height: 36px;
    margin: -18px 0 0 -18px;
    border: 1.5px solid rgba(122, 201, 255, 0.55);
    border-radius: 50%;
    /* no transform transition — JS smoothing handles ring follow */
    transition: width 0.2s, height 0.2s, border-color 0.2s, opacity 0.2s, margin 0.2s;
  }
  /* Hover state — ring grows + glows; dot brightens (no scale-transform conflict) */
  .mb-cursor.is-hover {
    background: #47B0F8;
    width: 6px; height: 6px;
    margin: -3px 0 0 -3px;
  }
  .mb-cursor-ring.is-hover {
    width: 56px; height: 56px;
    margin: -28px 0 0 -28px;
    border-color: rgba(71, 176, 248, 0.9);
    box-shadow: 0 0 30px rgba(71, 176, 248, 0.4);
  }
  /* Click pulse */
  .mb-cursor-ring.is-click {
    animation: mb-cursor-pulse 0.4s ease-out;
  }
  @keyframes mb-cursor-pulse {
    0%   { transform: scale(1);   border-color: rgba(122, 201, 255, 0.9); }
    50%  { transform: scale(1.8); border-color: rgba(71, 176, 248, 0.5);  }
    100% { transform: scale(1);   border-color: rgba(122, 201, 255, 0.55); }
  }
  /* Click ripple — rendered by JS as separate element */
  .mb-ripple {
    position: fixed;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(71, 176, 248, 0.4), transparent 60%);
    width: 8px; height: 8px;
    z-index: 9998;
    animation: mb-ripple 0.6s ease-out forwards;
    mix-blend-mode: screen;
  }
  @keyframes mb-ripple {
    0%   { transform: translate(-50%, -50%) scale(1);  opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(20); opacity: 0;   }
  }
}

/* ---- Card shimmer on hover ---- */
.project-card,
.service-card,
.team-card,
.mission-card,
.number-card,
.testimonial-card,
.contact-method,
.faq-item {
  position: relative;
  overflow: hidden;
}
.project-card::after,
.service-card::after,
.team-card::after,
.mission-card::after,
.number-card::after,
.testimonial-card::after {
  content: ''; position: absolute;
  top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    transparent 30%,
    rgba(122, 201, 255, 0.08) 45%,
    rgba(122, 201, 255, 0.18) 50%,
    rgba(122, 201, 255, 0.08) 55%,
    transparent 70%,
    transparent 100%
  );
  transform: translateX(-200%) rotate(0deg);
  pointer-events: none;
  z-index: 1;
}
.project-card:hover::after,
.service-card:hover::after,
.team-card:hover::after,
.mission-card:hover::after,
.number-card:hover::after,
.testimonial-card:hover::after {
  animation: mb-shimmer 0.8s ease-out forwards;
}
@keyframes mb-shimmer {
  0%   { transform: translateX(-200%); }
  100% { transform: translateX(500%); }
}

/* Buttons get a subtle glow pulse on hover */
.btn-primary, .form-submit, .nav-cta, .detail-link {
  position: relative;
}
.btn-primary::before, .form-submit::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: inherit;
  background: linear-gradient(120deg,
    transparent, rgba(71, 176, 248, 0.4), transparent);
  background-size: 200% 100%;
  filter: blur(8px);
  opacity: 0; z-index: -1;
  transition: opacity 0.3s;
}
.btn-primary:hover::before, .form-submit:hover::before {
  opacity: 1;
  animation: mb-btn-glow 1.6s linear infinite;
}
@keyframes mb-btn-glow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Image lift — project thumbs and service visuals */
.project-thumb img,
.service-detail-visual img {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              filter 0.4s;
}
.project-card:hover .project-thumb img {
  transform: scale(1.05);
  filter: saturate(1.15) brightness(1.05);
}

/* Stagger fade-in on reveal */
.reveal { opacity: 0; transform: translateY(28px) scale(0.98); }
.reveal.visible {
  opacity: 1; transform: translateY(0) scale(1);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* prefers-reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  .mb-cursor, .mb-cursor-ring { display: none; }
  html, body { cursor: auto; }
  *::after, *::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── liquid-metal-btn.css ── */
/* ===== Liquid Metal Button — vanilla port =====
   Layered pill button with WebGL liquid-metal shader edge.
   Mounts shader via assets/liquid-metal-btn.js (ESM module).

   Usage:
   <button class="lm-btn">
     <span class="lm-btn-shader"></span>
     <span class="lm-btn-inner">
       <span class="lm-btn-label">Текст</span>
       <svg>...</svg>
     </span>
   </button>

   Or as link:
   <a class="lm-btn lm-btn--link" href="...">…</a>
*/

.lm-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  outline: none;
  font: inherit;
  text-decoration: none;
  color: #fff;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow  0.25s ease;
  /* Brand-cyan outer halo */
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 36px 14px rgba(0, 0, 0, 0.02),
    0 20px 12px rgba(0, 0, 0, 0.08),
    0 9px 9px  rgba(0, 0, 0, 0.12),
    0 2px 5px  rgba(0, 0, 0, 0.15);
}

.lm-btn:hover {
  box-shadow:
    0 0 0 1px rgba(71, 176, 248, 0.45),
    0 0 32px  rgba(71, 176, 248, 0.45),
    0 12px 24px rgba(46, 151, 233, 0.25),
    0 4px 12px  rgba(0, 0, 0, 0.20),
    0 1px 2px   rgba(0, 0, 0, 0.20);
}

.lm-btn:active,
.lm-btn.is-pressed {
  transform: translateY(1px) scale(0.985);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

/* Shader canvas layer — fills entire button, clipped to pill */
.lm-btn-shader {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.lm-btn-shader canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  border-radius: 100px !important;
  /* Brand-cyan tint: shift gunmetal toward cyan-blue, slight transparency
     so the bright inner gradient still reads through the rim */
  filter: hue-rotate(195deg) saturate(1.6) brightness(1.1);
  opacity: 0.95;
}

/* Inner brand-gradient — cyan/blue under the metallic shader edge */
.lm-btn::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 100px;
  background: linear-gradient(180deg,
    #47B0F8 0%,
    #2E97E9 55%,
    #1c6db1 100%);
  z-index: 2;
  pointer-events: none;
  /* Subtle inner highlight at top edge */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20);
}

/* Content sits above shader and brand inner */
.lm-btn-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 30, 60, 0.5);
  pointer-events: none;
}
.lm-btn-inner svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Dark variant — secondary CTA, subtle, blends with site bg */
.lm-btn--dark::before {
  background: linear-gradient(180deg,
    #1a2b40 0%,
    #111c2e 60%,
    #0a1422 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.30) !important;
}
.lm-btn--dark .lm-btn-shader canvas {
  /* Tone down shader rim — secondary buttons should be quieter */
  opacity: 0.6;
}
.lm-btn--dark:hover {
  box-shadow:
    0 0 0 1px rgba(71, 176, 248, 0.35),
    0 0 18px  rgba(71, 176, 248, 0.20),
    0 8px 18px rgba(0, 0, 0, 0.30),
    0 2px 4px  rgba(0, 0, 0, 0.20) !important;
}
.lm-btn--dark .lm-btn-inner {
  color: #c8d6e8;  /* cooler off-white */
}

/* Big variant (hero/cta) — slightly taller and roomier */
.lm-btn--lg {
  height: 52px;
  padding: 0 28px;
}
.lm-btn--lg .lm-btn-inner {
  font-size: 15px;
  gap: 10px;
}
.lm-btn--lg .lm-btn-inner svg {
  width: 16px;
  height: 16px;
}

/* Ripple — spawned by JS on click */
.lm-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: lm-ripple 0.6s ease-out forwards;
  z-index: 4;
}
@keyframes lm-ripple {
  0%   { transform: translate(-50%, -50%) scale(0);  opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(4);  opacity: 0;   }
}

/* Reduced motion: keep button visible but disable shader animations and ripple */
@media (prefers-reduced-motion: reduce) {
  .lm-ripple { animation: none; display: none; }
}

/* ── footer.css ── */
/* ===== Mobless Footer — vanilla port of dotted-border / hover-lift design ===== */
.footer {
  border-top: 1px dotted rgba(148, 163, 184, 0.18);
  padding: 2.5rem 0 2rem;
  margin-top: 5rem;
}
.footer .container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Top: logo + about */
.footer-intro {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 0;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.footer-logo img {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px dotted rgba(71, 176, 248, 0.4);
  padding: 2px;
  background: rgba(71, 176, 248, 0.06);
  object-fit: cover;
}
.footer-logo-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}
.footer-logo-main {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #e2e8f0;
}
.footer-logo-main span { color: #47B0F8; }
.footer-logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-top: 4px;
}
.footer-intro p {
  flex: 1;
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.7;
  max-width: 720px;
}

/* Dotted dividers */
.footer-divider {
  border: none;
  border-top: 1px dotted rgba(148, 163, 184, 0.18);
  margin: 0;
}

/* Multi-column links */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 2.5rem 0;
}
.footer-cols ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.footer-cols a {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: inline-block;
}
.footer-cols a:hover {
  color: #7AC9FF;
  transform: translateX(2px);
}

/* Social pills with dotted border + hover-lift */
.footer-socials-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 0 1.5rem;
}
.social-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px dotted rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  color: #94a3b8;
  text-decoration: none;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s,
    color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.social-pill:hover {
  transform: translateY(-4px);
  border-color: rgba(71, 176, 248, 0.7);
  border-style: solid;
  color: #7AC9FF;
  background: rgba(71, 176, 248, 0.06);
  box-shadow: 0 6px 16px rgba(71, 176, 248, 0.15);
}
.social-pill svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }
.social-pill .vk-letter {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* Bottom copyright */
.footer-copyright {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  padding-top: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.footer-copyright a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-copyright a:hover { color: #7AC9FF; }
.footer-heart {
  display: inline-block;
  width: 14px; height: 14px;
  fill: #f43f5e;
  color: #f43f5e;
  animation: footer-heartbeat 1.5s ease-in-out infinite;
}
@keyframes footer-heartbeat {
  0%, 100% { transform: scale(1); }
  30%      { transform: scale(1.15); }
  60%      { transform: scale(1); }
}

@media (max-width: 720px) {
  .footer-intro { flex-direction: column; gap: 1.25rem; }
  .footer-cols { gap: 1.5rem; padding: 2rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-heart { animation: none; }
  .social-pill { transition: none; }
}

/* ── spacing.css ── */
/* ===== Compact spacing override =====
   Reduces empty space across all pages without touching inline per-page styles.
   Loads last via <link>, so !important ensures override.
*/

/* Section vertical padding: 6rem → 4rem (-33%) */
section { padding: 4rem 0 !important; }

/* Hero block: keep tall but trim bottom padding */
.hero { padding: 7rem 0 2.5rem !important; }
.hero-inner { padding: 8rem 0 2.5rem !important; }

/* Section header bottom margin: 3.5rem → 2.25rem */
.section-header { margin-bottom: 2.25rem !important; }

/* CTA block — usually has padding 8rem, trim hard */
.cta { padding: 3rem 0 !important; }
.cta-card { padding: 2.5rem !important; }

/* Footer top margin: 5rem → 2rem */
.footer { margin-top: 2rem !important; padding: 2rem 0 1.5rem !important; }
.footer-intro { padding: 1.25rem 0 !important; gap: 1.5rem !important; }
.footer-cols { padding: 1.75rem 0 !important; gap: 1.25rem !important; }
.footer-socials-row { padding: 1.5rem 0 1rem !important; }

/* Card grids — tighter gap */
.portfolio-grid,
.services-grid,
.team-grid,
.mission-grid,
.numbers-grid,
.testimonials-grid {
  gap: 1.25rem !important;
}

/* Service detail blocks (services.html) — collapse vertical spacing */
.service-detail { padding: 2rem 0 !important; }
.service-detail:not(:last-child) { margin-bottom: 1.5rem !important; padding-bottom: 3rem !important; }

/* Timeline (about.html) — trim between items */
.timeline-item { margin-bottom: 1.75rem !important; }
.timeline-item h3 { margin-top: 0.5rem !important; margin-bottom: 0.4rem !important; }

/* Contact section grid (contacts.html) */
.contact-grid { gap: 1.5rem !important; }

/* Form rows on contact — tighter */
.form-row { gap: 0.75rem !important; }
.form-group { margin-bottom: 0.75rem !important; }

/* FAQ accordion */
.faq-item { margin-bottom: 0.5rem !important; }

/* Section title spacing */
.section-title { margin-bottom: 0.75rem !important; }
.section-desc  { margin-bottom: 0 !important; }

/* Mobile — even tighter to avoid scroll fatigue */
@media (max-width: 720px) {
  section { padding: 2.5rem 0 !important; }
  .hero { padding: 6rem 0 2rem !important; }
  .section-header { margin-bottom: 1.75rem !important; }
}

/* ── kabinet-btn.css ── */
/* ========================================================
 * Kabinet button — simple outline pill
 * Replaces previous animated slat-flip variant.
 * ======================================================== */

.kabinet-btn {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: transparent;
  color: var(--accent-light) !important;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
  text-decoration: none !important;
  margin-left: 0.5rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  user-select: none;
  vertical-align: middle;
  line-height: 1.2;
}

/* Neutralize .nav a::after underline */
.nav .kabinet-btn::after,
.kabinet-btn::after {
  display: none !important;
  content: none !important;
}

.kabinet-btn:hover {
  background: var(--accent);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.kabinet-btn:active {
  transform: translateY(0);
}

/* Hide on mobile — mobile-menu has plain text link instead */
@media (max-width: 1024px) {
  .kabinet-btn { display: none; }
}

/* ── cookies-banner.css ── */
/* Cookies consent banner — 152-ФЗ + Постановление Правительства РФ */

.cookies-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(71, 176, 248, 0.25);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #e2e8f0;
  font-size: 0.85rem;
  line-height: 1.55;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s;
}

.cookies-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookies-banner__text { flex: 1 1 280px; }

.cookies-banner__text a {
  color: #7AC9FF;
  text-decoration: underline;
}

.cookies-banner__btn {
  flex-shrink: 0;
  padding: 0.55rem 1.4rem;
  background: linear-gradient(135deg, #47B0F8, #2E97E9, #7AC9FF);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cookies-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(71, 176, 248, 0.3);
}

@media (max-width: 600px) {
  .cookies-banner {
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    padding: 0.85rem 1rem;
    font-size: 0.8rem;
  }
}

/* ── hero-waves.css ── */
/* ========================================================
 * Hero Glowy Waves — vanilla port of GlowyWavesHero React component.
 * Canvas-based mouse-reactive waves with CSS-stagger entrance.
 * Overrides legacy .hero-* rules via load order (загружается последним).
 * ======================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  padding: 6rem 0 4rem;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Subtle glow blobs over canvas (depth) */
.hero-glow-1, .hero-glow-2, .hero-glow-3 {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 {
  width: 520px; height: 520px;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  background: rgba(226, 232, 240, 0.06);
}
.hero-glow-2 {
  width: 360px; height: 360px;
  bottom: -40px; right: -40px;
  background: rgba(71, 176, 248, 0.05);
}
.hero-glow-3 {
  width: 400px; height: 400px;
  top: 50%; left: 25%;
  background: rgba(122, 201, 255, 0.05);
}

/* === Content layout === */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Stagger entrance: each child animates in with delay = --i * 120ms */
.hero-content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 120ms);
}
@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* === Badge pill === */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.1rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  white-space: nowrap;
}
.hero-badge svg { color: var(--accent); flex-shrink: 0; }
.hero-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
  flex-shrink: 0;
}

/* === Title === */
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 1.5rem;
  color: var(--text);
}
.hero h1 .grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, var(--text) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* === Subtitle === */
.hero-desc {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

/* === Actions === */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 0 0 2.5rem;
  flex-wrap: wrap;
}

/* === Pills row === */
.hero-pills {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 2.5rem;
  list-style: none;
  padding: 0;
}
.hero-pills li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

/* === Stats grid === */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 600px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  /* override legacy .hero-stats inline styles */
  flex-wrap: nowrap;
  margin: 0;
}
.hero-stats > div {
  text-align: center;
}
.hero-stat-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.hero-stat-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

/* === Mobile === */
@media (max-width: 768px) {
  .hero { padding: 5rem 0 3rem; }
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hero-actions a { width: 100%; justify-content: center; }
  .hero-badge { letter-spacing: 0.12em; font-size: 0.65rem; }
}

/* === Reduced motion: stop entrance + tone down canvas === */
@media (prefers-reduced-motion: reduce) {
  .hero-content > * {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* === Compact hero (services/portfolio) — match about.html .hero-inner === */
.hero.hero-compact {
  min-height: auto;
  display: block;
  padding: 8rem 0 2.5rem !important;
  text-align: center;
}
.hero.hero-compact .hero-content {
  max-width: 720px;
  padding: 0 1.5rem;
}
.hero.hero-compact h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 0 0 1rem;
}
.hero.hero-compact .hero-desc {
  max-width: 600px;
  margin: 0 auto;
}
.hero.hero-compact .hero-badge {
  margin-bottom: 1.25rem;
}
@media (max-width: 768px) {
  .hero.hero-compact { padding: 6rem 0 2rem !important; }
}

