:root {
  --bg: #f8fbfc;
  --surface: #ffffff;
  --soft: #eef8fa;
  --text: #172033;
  --muted: #667385;
  --line: #d9e5ea;
  --brand: #0f8ea8;
  --brand-dark: #0b6478;
  --accent: #f2a541;
  --green: #138a5b;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgba(15, 142, 168, 0.13), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(242, 165, 65, 0.13), transparent 28%),
    linear-gradient(135deg, #f8fbfc 0%, #ffffff 48%, #f5fbfd 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  opacity: 0;
  animation: pageFadeIn 420ms ease forwards;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 142, 168, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 142, 168, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), transparent 78%);
  animation: gridMove 30s linear infinite;
}

a { color: inherit; }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.touch-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  overflow: hidden;
}

.touch-spark {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 18px rgba(15, 142, 168, 0.46);
  animation: touchSpark 720ms ease-out forwards;
}

.touch-ring {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(15, 142, 168, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.35);
  animation: touchRing 680ms ease-out forwards;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(217, 229, 234, 0.82);
  background: rgba(248, 251, 252, 0.92);
  backdrop-filter: blur(14px);
  animation: topbarIn 520ms ease both;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand img,
.logo-tile {
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(15, 142, 168, 0.18));
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.brand strong,
.brand span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand strong { font-size: 1rem; }

.brand span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a,
.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.nav a,
.button {
  gap: 8px;
  padding: 0 14px;
  overflow-wrap: anywhere;
  text-align: center;
}

.icon-button {
  width: 44px;
  padding: 0;
}

.nav a:hover,
.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--line);
  background: var(--surface);
}

.button.primary {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.button.primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 38px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 58px 0 44px;
}

.hero-copy,
.logo-showcase,
.page-head,
.panel,
.extension-card,
.contact-card,
.legal-card,
.policy-meta-card,
.policy-card {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 760ms ease forwards;
}

.logo-showcase,
.panel:nth-child(2),
.policy-meta-card { animation-delay: 100ms; }

.policy-card { animation-delay: 160ms; }

.footer {
  opacity: 0;
  transform: translateY(12px);
  animation: revealUp 640ms ease 220ms forwards;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 142, 168, 0.22);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  line-height: 1.22;
}

.lead,
.muted {
  color: var(--muted);
  line-height: 1.66;
}

.lead {
  max-width: 640px;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.actions,
.icon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.logo-showcase {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 430px;
}

.logo-showcase::before {
  content: "";
  position: absolute;
  width: min(310px, 70vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.78) 0 34%, rgba(15, 142, 168, 0.12) 35% 52%, transparent 70%),
    conic-gradient(from 140deg, rgba(15, 142, 168, 0.18), rgba(242, 165, 65, 0.18), rgba(19, 138, 91, 0.12), rgba(15, 142, 168, 0.18));
  filter: blur(0.2px);
  animation: logoGlow 7s ease-in-out infinite;
}

.logo-orbit {
  position: absolute;
  width: min(360px, 80vw);
  aspect-ratio: 1;
  border: 1px solid rgba(15, 142, 168, 0.22);
  border-radius: 50%;
  animation: orbit 16s linear infinite;
}

.logo-orbit.two {
  width: min(250px, 62vw);
  animation-duration: 11s;
  animation-direction: reverse;
}

.logo-orbit::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px rgba(242, 165, 65, 0.58);
}

.main-logo {
  position: relative;
  width: min(260px, 58vw);
  aspect-ratio: 1;
  padding: 8px;
  filter: drop-shadow(0 26px 42px rgba(15, 142, 168, 0.28));
  animation: floatLogo 4.8s ease-in-out infinite;
}

.page-section {
  padding: 56px 0;
}

.page-head {
  max-width: 760px;
  padding: 44px 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.panel,
.extension-card,
.legal-card,
.contact-card,
.policy-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.panel,
.extension-card,
.legal-card,
.contact-card,
.policy-card {
  padding: 22px;
}

.extension-card,
.contact-card,
.legal-card {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.extension-card:hover,
.contact-card:hover,
.legal-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 142, 168, 0.28);
  box-shadow: 0 26px 60px rgba(23, 32, 51, 0.13);
}

.contact-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 230px;
}

.contact-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  box-shadow: 0 18px 36px rgba(15, 142, 168, 0.2);
}

.contact-badge.telegram {
  background: linear-gradient(135deg, #2aabee, #0f8ea8);
}

.contact-badge.coffee {
  background: linear-gradient(135deg, #f2a541, #0f8ea8);
}

.contact-card .icon {
  width: 25px;
  height: 25px;
}

.contact-card .button {
  width: fit-content;
  margin-top: 2px;
}

.legal-card {
  display: grid;
  gap: 18px;
}

.legal-section {
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(217, 229, 234, 0.78);
}

.legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-card h2 {
  margin-bottom: 7px;
  font-size: clamp(1.22rem, 2.4vw, 1.7rem);
}

.extension-head {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-bottom: 14px;
}

.extension-head img,
.policy-logo {
  border-radius: 14px;
}

.extension-head img {
  width: 60px;
  height: 60px;
}

.policy-shell {
  width: min(980px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 58px;
  min-height: 100vh;
}

.skeleton-card {
  pointer-events: none;
}

.skeleton-card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.skeleton-tile,
.skeleton-line {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(217, 229, 234, 0.74);
}

.skeleton-tile::after,
.skeleton-line::after,
.is-policy-loading .policy-card::after,
.is-policy-loading .policy-meta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: skeletonSweep 1.15s ease-in-out infinite;
}

.skeleton-tile {
  width: 60px;
  height: 60px;
}

.skeleton-copy {
  display: grid;
  gap: 10px;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line.title {
  width: min(260px, 72%);
  height: 16px;
}

.skeleton-line.short { width: 48%; }
.skeleton-line.medium { width: 78%; }
.skeleton-line.long { width: 92%; }

.is-policy-loading .policy-meta-card,
.is-policy-loading .policy-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
}

.is-policy-loading .policy-card {
  min-height: 320px;
}

.is-policy-loading .policy-meta-card > *,
.is-policy-loading .policy-card > * {
  opacity: 0;
}

.is-policy-loading .policy-meta-card {
  background:
    linear-gradient(rgba(248, 251, 252, 0.86), rgba(248, 251, 252, 0.86)),
    repeating-linear-gradient(to bottom, transparent 0 25px, rgba(217, 229, 234, 0.72) 25px 26px);
}

.is-policy-loading .policy-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(to bottom, rgba(217, 229, 234, 0.64) 0 12px, transparent 12px 34px);
}

.policy-back {
  width: 42px;
  margin-bottom: 18px;
  border: 1px solid rgba(217, 229, 234, 0.9);
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.policy-back:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 142, 168, 0.28);
  background: #fff;
}

.policy-top {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}

.policy-logo {
  width: 88px;
  height: 88px;
  background: #05070b;
  transition: opacity 220ms ease;
}

.policy-logo.is-loading {
  opacity: 0;
}

.policy-logo.is-loading + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 88px;
  height: 88px;
  border-radius: 14px;
  border: 1px solid rgba(15, 142, 168, 0.2);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent),
    #05070b;
  background-size: 220% 100%, auto;
  animation: logoSkeleton 1.05s ease-in-out infinite;
}

.policy-top { position: relative; }

.policy-card {
  padding: 0;
  overflow: hidden;
  box-shadow: 0 22px 62px rgba(23, 32, 51, 0.09);
}

.policy-meta-card {
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.07);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

.policy-meta-item {
  flex: 1 1 280px;
  padding: 14px;
  border: 1px solid rgba(217, 229, 234, 0.78);
  border-radius: 8px;
  background: rgba(248, 251, 252, 0.72);
}

.policy-meta-item-compact {
  flex: 0 0 auto;
  min-width: 132px;
}

.policy-meta dt,
.policy-meta dd,
.policy-meta ul {
  margin: 0;
}

.policy-meta dt {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-meta dd {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.policy-meta ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.policy-top h1 {
  max-width: 980px;
  margin-bottom: 8px;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  overflow-wrap: anywhere;
}

.policy-date {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid rgba(15, 142, 168, 0.2);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(238, 248, 250, 0.86);
  font-size: 0.88rem;
  font-weight: 900;
}

.policy-body {
  display: grid;
  gap: 0;
}

.policy-section {
  padding: 28px 30px;
  border-bottom: 1px solid rgba(217, 229, 234, 0.78);
}

.policy-section:last-child {
  border-bottom: 0;
}

.policy-section h2 {
  margin-bottom: 9px;
  color: var(--text);
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  line-height: 1.2;
}

.policy-section p {
  max-width: 100%;
  margin-bottom: 10px;
  color: #344054;
  line-height: 1.74;
  overflow-wrap: anywhere;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.linkless {
  color: var(--brand-dark);
  font-weight: 800;
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
  text-align: center;
}

.footer-links a:hover {
  border-color: var(--line);
  background: var(--surface);
}

ul.clean-list {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.58;
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageFadeIn {
  to { opacity: 1; }
}

@keyframes topbarIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gridMove {
  to { transform: translate3d(-46px, 46px, 0); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes floatLogo {
  50% { transform: translateY(-10px) scale(1.025); }
}

@keyframes logoGlow {
  50% {
    transform: scale(1.04);
    opacity: 0.76;
  }
}

@keyframes logoSkeleton {
  to { background-position: -220% 0, 0 0; }
}

@keyframes skeletonSweep {
  to { transform: translateX(100%); }
}

@keyframes touchSpark {
  to {
    opacity: 0;
    transform: translate(var(--spark-x), var(--spark-y)) scale(0.2);
  }
}

@keyframes touchRing {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(5.2);
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .nav a {
    min-width: 0;
    padding-inline: 8px;
    font-size: 0.78rem;
  }

  .hero,
  .grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .logo-showcase {
    min-height: 320px;
  }

  .policy-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .policy-section { padding: 24px 22px; }
}

@media (max-width: 520px) {
  .wrap,
  .policy-shell {
    width: min(100% - 22px, 980px);
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong { font-size: 0.95rem; }
  .brand span { font-size: 0.74rem; }

  .nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .extension-card,
  .legal-card,
  .contact-card,
  .policy-card,
  .panel {
    padding: 16px;
  }

  .policy-card {
    padding: 0;
  }

  .policy-top {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
  }

  .policy-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .policy-logo.is-loading + div::before {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .policy-section {
    padding: 19px 16px;
  }

  .policy-shell {
    padding-top: 28px;
  }

  .nav a,
  .footer-links a {
    font-size: 0.74rem;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
