:root {
  --ww-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ww-fast: 180ms;
  --ww-mid: 260ms;
  --ww-text-strong: rgba(255, 255, 255, 0.96);
  --ww-text-soft: rgba(255, 255, 255, 0.82);
  --ww-text-muted: rgba(255, 255, 255, 0.66);
}

.ww-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding: 16px 24px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(10, 16, 28, 0.75));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 20;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.ww-header::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(59, 130, 246, 0), 
    rgba(59, 130, 246, 0.5), 
    rgba(34, 197, 94, 0.5), 
    rgba(34, 197, 94, 0));
  pointer-events: none;
  border-radius: 1px;
}

.ww-header,
.benefit-card,
.feature-item,
.step,
.proxy,
.server-card,
.faq-item,
.donation-card-main,
.best-proxy,
.modal-content {
  border: 1px solid rgba(79, 70, 229, 0.15);
  background-image: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(34, 197, 94, 0.01));
}

.ww-header__left {
  min-width: 0;
  flex: 0 1 auto;
}

.ww-header__brand {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform var(--ww-mid) var(--ww-ease);
}

.ww-header__brand:hover {
  transform: translateY(-2px);
}

.ww-header__logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ww-header__logo-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all var(--ww-mid) var(--ww-ease);
}

.ww-header__brand:hover .ww-header__logo-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(34, 197, 94, 0.1));
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.ww-header__logo-icon svg {
  width: 100%;
  height: 100%;
}

.ww-header__brand-text {
  min-width: 0;
}

.ww-header__logo {
  display: block;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
  color: var(--ww-text-strong);
  letter-spacing: -0.5px;
  line-height: 1.2;
  word-break: break-word;
}

.ww-header__tagline {
  margin-top: 2px;
  font-size: 12px;
  color: var(--ww-text-muted);
  letter-spacing: 0.2px;
  font-weight: 500;
}

.ww-header__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ww-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  background: rgba(30, 41, 59, 0.4);
  color: rgba(241, 245, 249, 0.92);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.15px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.ww-header__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s var(--ww-ease);
  pointer-events: none;
}

.ww-header__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s var(--ww-ease);
  pointer-events: none;
}

.ww-header__link-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ww-header__link--default {
  border-color: rgba(96, 165, 250, 0.35);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.08));
  color: #bde4ff;
}

.ww-header__link--default:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.7);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(37, 99, 235, 0.18));
  color: #ffffff;
  box-shadow: 
    0 16px 32px rgba(59, 130, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.ww-header__link--default:hover .ww-header__link-icon {
  transform: translateY(-2px);
}

.ww-header__link--default:active {
  transform: translateY(-1px);
}

.ww-header__link:focus-visible {
  outline: none;
  border-color: rgba(59, 130, 246, 0.85);
  box-shadow: 
    0 0 0 4px rgba(59, 130, 246, 0.3),
    0 16px 32px rgba(59, 130, 246, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ww-header__link--telegram {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.14), rgba(20, 124, 82, 0.08));
  color: #a7f3d0;
}

.ww-header__link--telegram:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 222, 128, 0.8);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(20, 124, 82, 0.18));
  color: #dcfce7;
  box-shadow: 
    0 16px 32px rgba(34, 197, 94, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.ww-header__link--telegram:hover .ww-header__link-icon {
  transform: translateY(-2px);
}

.ww-header__link--donate {
  border-color: rgba(248, 113, 113, 0.5);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.14), rgba(220, 38, 38, 0.08));
  color: #fecaca;
}

.ww-header__link--donate:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 165, 165, 0.85);
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.28), rgba(220, 38, 38, 0.18));
  color: #fef2f2;
  box-shadow: 
    0 16px 32px rgba(248, 113, 113, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.ww-header__link--donate:hover .ww-header__link-icon {
  transform: translateY(-2px);
}

.ww-header__link--premium {
  position: relative;
  border-color: rgba(6, 182, 212, 0.6);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.12));
  color: #a5f3fc;
  animation: premiumPulse 2s ease-in-out infinite;
}

.ww-header__link--premium::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, rgba(6, 182, 212, 0.4), transparent);
  opacity: 0.3;
  animation: premiumGlow 3s ease-in-out infinite;
  pointer-events: none;
}

.ww-header__link--premium:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(6, 182, 212, 1);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.35), rgba(59, 130, 246, 0.25));
  color: #ffffff;
  box-shadow: 
    0 20px 40px rgba(6, 182, 212, 0.4),
    0 0 20px rgba(6, 182, 212, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.ww-header__link--premium:hover .ww-header__link-icon {
  transform: translateY(-3px) rotate(15deg);
}

@keyframes premiumPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(6, 182, 212, 0);
  }
}

@keyframes premiumGlow {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

.ww-header__burger {
  display: none;
}

.ww-header__burger:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
}

/* Global visual polish */
.hero,
.benefits-section,
.features-section,
.how-section,
.best-proxy-section,
.proxies-section,
.testimonials-section,
.faq-section {
  margin-top: 56px;
  margin-bottom: 56px;
}

.section-title,
.testimonials-title {
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.section-subtitle,
.hero-subtitle {
  color: var(--ww-text-soft);
}

.benefit-card,
.feature-item,
.step,
.proxy,
.server-card,
.faq-item,
.donation-card-main {
  border-radius: 14px;
}

.benefit-card,
.feature-item,
.step,
.proxy,
.server-card,
.faq-item {
  border-color: rgba(79, 70, 229, 0.18);
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.08);
}

.benefit-card:hover,
.feature-item:hover,
.step:hover,
.proxy:hover,
.server-card:hover,
.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.38);
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.18);
}

.btn,
.btn-hero,
.btn-mobile-action,
.btn-connect-server,
.btn-copy-all {
  border-radius: 10px;
}

.footer-content p {
  color: var(--ww-text-muted);
}

.benefit-card p,
.feature-item p,
.step p,
.faq-answer,
.modal-text,
.cookie-banner-text {
  color: var(--ww-text-soft);
}

.benefit-card h3,
.feature-item h3,
.step h3,
.faq-question,
.modal-title {
  color: var(--ww-text-strong);
}

@media (max-width: 900px) {
  html.menu-open,
  body.menu-open {
    overflow: hidden;
  }

  .ww-header {
    gap: 14px;
    padding: 14px 18px;
    flex-wrap: nowrap;
  }

  .ww-header__logo-wrapper {
    flex-direction: column;
    gap: 6px;
  }

  .ww-header__logo-icon {
    width: 36px;
    height: 36px;
  }

  .ww-header__logo {
    font-size: 20px;
  }

  .ww-header__tagline {
    font-size: 11px;
    margin-top: 1px;
  }

  .ww-header__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5.5px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    flex-shrink: 0;
    border: 1.5px solid rgba(148, 163, 184, 0.28);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.62), rgba(15, 23, 42, 0.52));
    backdrop-filter: blur(12px);
    cursor: pointer;
    z-index: 30;
    transition: all 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
      0 10px 28px rgba(0, 0, 0, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
  }

  .ww-header__burger::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s var(--ww-ease);
    pointer-events: none;
  }

  .ww-header__burger:hover {
    border-color: rgba(148, 163, 184, 0.5);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.62));
    box-shadow: 
      0 14px 32px rgba(59, 130, 246, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.18),
      inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
  }

  .ww-header__burger:hover::before {
    opacity: 1;
  }

  .ww-header__burger:active {
    transform: translateY(0);
    box-shadow: 
      0 6px 16px rgba(0, 0, 0, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  }

  .ww-header__burger span {
    width: 21px;
    height: 2.8px;
    border-radius: 2px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    transition: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }

  .ww-header__burger span:nth-child(1) {
    margin-top: -2px;
  }

  .ww-header__burger span:nth-child(3) {
    margin-bottom: -2px;
  }

  .ww-header__burger.open {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.08));
    border-color: rgba(59, 130, 246, 0.45);
  }

  .ww-header__burger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: linear-gradient(to right, #3b82f6, #1e40af);
  }

  .ww-header__burger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-12px);
  }

  .ww-header__burger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: linear-gradient(to right, #3b82f6, #1e40af);
  }

  .ww-header__nav {
    display: none;
  }

  .ww-header__nav.open {
    display: flex;
    position: absolute;
    top: calc(100% + 10px);
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border: 1.5px solid rgba(100, 116, 139, 0.3);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(8, 14, 24, 0.96), rgba(14, 22, 36, 0.94));
    box-shadow: 
      0 24px 48px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    animation: slideDown 0.3s var(--ww-ease);
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .ww-header__nav.open .ww-header__link {
    padding: 13px 16px;
    font-size: 14px;
    border-radius: 11px;
    width: 100%;
    justify-content: flex-start;
  }

  .ww-header__nav.open .ww-header__link--default {
    border-color: rgba(96, 165, 250, 0.4);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(37, 99, 235, 0.08));
  }

  .ww-header__nav.open .ww-header__link--default:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(37, 99, 235, 0.16));
    border-color: rgba(96, 165, 250, 0.65);
  }

  .ww-header__nav.open .ww-header__link--telegram {
    border-color: rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(20, 124, 82, 0.08));
  }

  .ww-header__nav.open .ww-header__link--telegram:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.28), rgba(20, 124, 82, 0.16));
    border-color: rgba(74, 222, 128, 0.7);
  }

  .ww-header__nav.open .ww-header__link--donate {
    border-color: rgba(248, 113, 113, 0.4);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.15), rgba(220, 38, 38, 0.08));
  }

  .ww-header__nav.open .ww-header__link--donate:hover {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.28), rgba(220, 38, 38, 0.16));
    border-color: rgba(252, 165, 165, 0.75);
  }
}

@media (max-width: 640px) {
  .ww-header {
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 24px;
  }

  .ww-header__left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .ww-header__logo-wrapper {
    flex-direction: row;
    gap: 10px;
  }

  .ww-header__logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .ww-header__brand-text {
    overflow: hidden;
  }

  .ww-header__logo {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ww-header__tagline {
    font-size: 10px;
  }

  .ww-header__burger {
    width: 42px;
    height: 42px;
    gap: 4.5px;
  }

  .ww-header__burger span {
    width: 18px;
    height: 2.4px;
  }

  .ww-header__nav.open {
    left: 10px;
    right: 10px;
    top: calc(100% + 8px);
    padding: 12px;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .ww-header {
    gap: 10px;
    padding: 10px 12px;
  }

  .ww-header__logo-wrapper {
    gap: 8px;
  }

  .ww-header__logo-icon {
    width: 36px;
    height: 36px;
  }

  .ww-header__logo {
    font-size: 16px;
  }

  .ww-header__tagline {
    font-size: 9px;
  }

  .ww-header__burger {
    width: 40px;
    height: 40px;
    gap: 4px;
  }

  .ww-header__burger span {
    width: 16px;
    height: 2.2px;
  }
}

  .search-box {
    min-width: 0;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .hero,
  .benefits-section,
  .features-section,
  .how-section,
  .best-proxy-section,
  .proxies-section,
  .testimonials-section,
  .faq-section {
    margin-top: 36px;
    margin-bottom: 36px;
  }

  .section-title,
  .testimonials-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .section-subtitle,
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.45;
  }
}

@media (max-width: 1024px) {
  .ww-header {
    gap: 16px;
    padding: 15px 22px;
  }

  .ww-header__link {
    padding: 10px 15px;
    font-size: 12px;
    gap: 5px;
  }

  .ww-header__link-icon {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 768px) {
  .ww-header {
    margin-bottom: 20px;
    gap: 13px;
    padding: 13px 16px;
  }

  .ww-header__logo-wrapper {
    flex-direction: row;
    gap: 10px;
  }

  .ww-header__logo-icon {
    width: 38px;
    height: 38px;
  }

  .ww-header__logo {
    font-size: 19px;
  }

  .ww-header__link {
    padding: 9px 13px;
    font-size: 12px;
  }

  .hero,
  .benefits-section,
  .features-section,
  .how-section,
  .best-proxy-section,
  .proxies-section,
  .testimonials-section,
  .faq-section {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .section-title,
  .testimonials-title {
    font-size: clamp(22px, 7vw, 28px);
  }

  .hero-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero-buttons .btn-hero {
    width: auto;
    min-width: 220px;
    max-width: 100%;
    padding: 12px 20px;
  }
}

@media (max-width: 390px) {
  .ww-header {
    padding: 10px;
    border-radius: 12px;
  }

  .ww-header__logo {
    font-size: 18px;
    gap: 6px;
  }

  .ww-header__logo svg {
    width: 32px;
    height: 32px;
  }

  .ww-header__tagline {
    font-size: 11px;
    margin-top: 2px;
  }

  .ww-header__burger {
    width: 40px;
    height: 40px;
    gap: 4px;
  }

  .ww-header__nav.open {
    padding: 10px;
    gap: 6px;
  }

  .hero-buttons .btn-hero {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .ww-header__logo {
    font-size: 17px;
  }

  .section-title,
  .testimonials-title {
    font-size: 21px;
  }

  .section-subtitle,
  .hero-subtitle {
    font-size: 13px;
  }
}
