/* header.css - Neumorphism + Glassmorphism refined styles */
:root {
  --bg: #F8F9FB;
  --surface: rgba(255,255,255,0.66);
  --primary: #2563FF;
  --primary-2: #00B4D8;
  --muted: #6B7280;
  --text: #0F172A;
  --glass-blur: 12px;

  --shadow-light: rgba(255,255,255,0.8);
  --shadow-dark: rgba(0,0,0,0.1);

  --radius-sm: 12px;
  --radius-md: 18px;
}

/* RESET & BASE */
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease;
}

/* HEADER */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  background: linear-gradient(180deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15));
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 4px 6px 20px rgba(17, 24, 39, 0.08), inset 2px 2px 4px var(--shadow-light), inset -2px -2px 4px var(--shadow-dark);
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: all .3s ease;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(0);
}

/* HEADER INNER */
.sh-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

/* LOGO */
.sh-logo img {
  display: block;
  max-height: 48px;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.08));
}

/* NAVIGATION */
.sh-nav__list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.sh-nav__list a {
  padding: 8px 10px;
  border-radius: 14px;
  font-weight: 600;
  position: relative;
}
.sh-nav__list a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}
.sh-nav__list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg,var(--primary),var(--primary-2));
  transition: all .3s ease;
  transform: translateX(-50%);
}
.sh-nav__list a:hover::after {
  width: 80%;
}

/* ACTIONS */
.sh-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ============================= */
/*         BUTTONS AREA          */
/* ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  color: var(--text);
  background: var(--surface);
  text-shadow: 0 1px 1px rgba(255,255,255,0.6);
  transition: all .3s ease;
  position: relative;
  overflow: hidden;

  /* Мягкие нейроморфные тени — эффект выпуклости */
  box-shadow:
    6px 6px 12px rgba(0, 0, 0, 0.12),
    -6px -6px 12px rgba(255, 255, 255, 0.7),
    inset 1px 1px 2px rgba(255,255,255,0.3),
    inset -1px -1px 2px rgba(0,0,0,0.04);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
  opacity: 0.4;
  transition: opacity .3s ease;
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    10px 10px 20px rgba(0, 0, 0, 0.18),
    -6px -6px 18px rgba(255, 255, 255, 0.8),
    inset 2px 2px 4px rgba(255,255,255,0.2),
    inset -2px -2px 4px rgba(0,0,0,0.06);
}
.btn:hover::before {
  opacity: 0.6;
}

.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 6px 6px 12px rgba(0,0,0,0.15),
    inset -6px -6px 12px rgba(255,255,255,0.7);
  background: linear-gradient(145deg, rgba(240,240,240,0.95), rgba(220,220,220,0.9));
}

/* ============================= */
/*     PRIMARY GRADIENT CTA      */
/* ============================= */

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  box-shadow:
    0 8px 20px rgba(37,99,255,0.28),
    inset 2px 2px 6px rgba(255,255,255,0.3),
    inset -2px -2px 6px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    125deg,
    rgba(255,255,255,0.25),
    rgba(255,255,255,0.05) 40%,
    rgba(255,255,255,0) 80%
  );
  opacity: 0.6;
  transition: all .4s ease;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow:
    0 12px 28px rgba(37,99,255,0.35),
    inset 2px 2px 6px rgba(255,255,255,0.25),
    inset -3px -3px 8px rgba(0,0,0,0.2);
}
.btn--primary:hover::after {
  opacity: 0.8;
  filter: blur(2px);
}

.btn--primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 6px 6px 12px rgba(0,0,0,0.18),
    inset -4px -4px 12px rgba(255,255,255,0.4);
  background: linear-gradient(135deg, #2055e0, #00a5cc);
}

/* ============================= */
/*     GLOW EFFECT (optional)    */
/* ============================= */

.btn--primary.glow {
  box-shadow:
    0 0 12px rgba(37,99,255,0.3),
    0 0 28px rgba(37,99,255,0.22),
    inset 2px 2px 4px rgba(255,255,255,0.4),
    inset -2px -2px 6px rgba(0,0,0,0.18);
  animation: btnGlow 3s ease-in-out infinite alternate;
}

@keyframes btnGlow {
  0% { box-shadow: 0 0 10px rgba(37,99,255,0.2), 0 0 25px rgba(37,99,255,0.1); }
  100% { box-shadow: 0 0 20px rgba(37,99,255,0.4), 0 0 45px rgba(0,180,216,0.3); }
}


/* HAMBURGER */
.sh-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}
.sh-hamburger, .sh-hamburger::before, .sh-hamburger::after {
  content: "";
  display: block;
  height: 3px;
  width: 22px;
  border-radius: 3px;
  background: var(--text);
  transition: transform .22s ease, opacity .22s ease;
}
.sh-hamburger::before {
  transform: translateY(-7px);
}
.sh-hamburger::after {
  transform: translateY(6px);
}
.sh-menu-toggle[aria-expanded="true"] .sh-hamburger {
  background: transparent;
}
.sh-menu-toggle[aria-expanded="true"] .sh-hamburger::before {
  transform: rotate(45deg) translate(5px,5px);
}
.sh-menu-toggle[aria-expanded="true"] .sh-hamburger::after {
  transform: rotate(-45deg) translate(5px,-5px);
}

/* MOBILE OVERLAY */
.sh-mobile {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
  z-index: 1199;
}
.sh-mobile[aria-hidden="false"] {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.sh-mobile__inner {
  width: 100%;
  max-width: 520px;
  margin: 0 20px;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.78));
  box-shadow: 8px 12px 40px rgba(17,24,40,0.06),
              inset 2px 2px 4px rgba(255,255,255,0.5);
}
.sh-mobile__list {
  list-style: none;
  padding: 24px 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.sh-mobile__list a {
  font-size: 1.12rem;
  color: var(--text);
}
.sh-mobile__cta {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .sh-nav { display: none; }
  .sh-menu-toggle { display: inline-flex; }
  .btn--primary { display: none; }
}

/* ACCESSIBILITY */
a:focus, button:focus {
  outline: 3px solid rgba(37,99,255,0.18);
  outline-offset: 4px;
}

/* SMALL SCREENS */
@media (max-width: 480px) {
  .sh-shell { padding: 10px 8px; }
  .sh-mobile__inner { padding: 20px; }
}
