:root {
  --bg: #02070b;
  --panel: rgba(7, 18, 26, 0.92);
  --line: rgba(32, 217, 255, 0.34);
  --green: #49f07b;
  --cyan: #20d9ff;
  --text: #f0fbff;
  --muted: #9eb4bd;
  --soft-line: rgba(32, 217, 255, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #000; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #000;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.frame {
  width: min(1280px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 30px;
  background:
    radial-gradient(circle at 52% 20%, rgba(32, 217, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #02070b, #031019 66%, #02070b);
}

.page {
  overflow: hidden;
  border: 1px solid rgba(32, 217, 255, 0.18);
  border-radius: 8px;
  background: rgba(3, 10, 15, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.58);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(32, 217, 255, 0.18);
}
.brand { display: flex; align-items: center; min-width: 64px; }
.brand-logo { width: 58px; height: 58px; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; gap: 14px 34px; color: #d6e8ed; font-size: 13px; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--green); }
.outline-btn {
  flex: 0 0 auto;
  padding: 13px 22px;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: #ecfff3;
  font-weight: 800;
  font-size: 13px;
}
.outline-btn:hover,
.outline-btn:focus-visible,
.green-btn:hover,
.green-btn:focus-visible,
.mini-link:hover,
.mini-link:focus-visible {
  border-color: rgba(73, 240, 123, 0.95);
  outline: none;
  box-shadow: 0 0 0 2px rgba(73, 240, 123, 0.14);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1.02fr) minmax(280px, 1fr) minmax(260px, 320px);
  gap: 20px;
  padding: 24px 30px 10px;
}
.hero-copy { min-width: 0; }
h1 {
  margin: 0 0 18px;
  max-width: 12ch;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h1 span { color: var(--green); }
p { margin: 0; color: var(--muted); line-height: 1.52; }
.network { width: 100%; height: 260px; object-fit: cover; }
.api-visual { width: 100%; height: auto; align-self: center; }
.video-panel {
  position: relative;
  width: 100%;
  margin: 0;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(32, 217, 255, 0.34);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 12%, rgba(32, 217, 255, 0.16), transparent 34%),
    rgba(2, 7, 11, 0.92);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), inset 0 0 22px rgba(32, 217, 255, 0.08);
}
.video-kicker {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(73, 240, 123, 0.42);
  border-radius: 999px;
  background: rgba(2, 7, 11, 0.72);
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hero-video {
  display: block;
  width: 100%;
  width: 100%;
  height: 286px;
  background: #000;
  object-fit: contain;
}

.feature-strip,
.cost-strip,
.card,
.cta {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(10, 25, 35, 0.92), rgba(5, 14, 21, 0.92));
}
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 30px 14px;
}
.feature-strip div {
  min-height: 76px;
  padding: 16px;
  border-right: 1px solid rgba(32, 217, 255, 0.14);
  color: #dceff5;
  font-size: 13px;
}
.feature-strip div:last-child { border-right: 0; }
.feature-strip strong,
.cost-strip strong,
.price-strip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
}
.feature-strip span,
.cost-strip span,
.price-strip span { color: #dceff5; }

.price-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin: 0 30px 14px;
  padding: 0;
  color: #dff6fb;
  font-size: 13px;
}

.cost-strip {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr 1.15fr;
  align-items: stretch;
  gap: 14px;
  margin: 0 30px 14px;
  padding: 14px;
  color: #dff6fb;
  font-size: 13px;
}
.cost-cell {
  display: flex;
  min-width: 0;
  max-width: 100%;
  min-height: 84px;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  border: 1px solid rgba(32, 217, 255, 0.12);
  border-radius: 7px;
  background: rgba(2, 11, 17, 0.42);
}
.cost-cell small {
  display: block;
  margin-top: 4px;
  color: rgba(220, 239, 245, 0.66);
  font-size: 11px;
  line-height: 1.2;
}
.legacy-price,
.cost-strip .price,
.cost-strip .savings strong {
  display: block;
  white-space: nowrap;
  font-weight: 900;
  letter-spacing: -0.035em;
}
.legacy-price {
  margin-top: 2px;
  color: #dceff5;
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1;
}
.cost-strip .price,
.price-strip .price {
  color: var(--green);
  font-size: clamp(32px, 3vw, 42px);
  line-height: 0.92;
  text-shadow: 0 0 28px rgba(73, 240, 123, 0.34);
}
.gonka-cost {
  border-color: rgba(73, 240, 123, 0.28);
  background: linear-gradient(180deg, rgba(13, 39, 30, 0.62), rgba(2, 11, 17, 0.46));
}
.savings {
  border-color: rgba(73, 240, 123, 0.22);
}
.cost-strip .savings-line {
  display: flex;
  align-items: baseline;
  gap: 0.16em;
  max-width: 100%;
  margin-bottom: 2px;
  color: #ecfff3;
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.savings-prefix {
  color: #ecfff3;
}
.cost-strip .savings-number {
  color: var(--green);
  font-size: clamp(31px, 2.55vw, 38px);
  line-height: 0.92;
  text-shadow: 0 0 24px rgba(73, 240, 123, 0.28);
}
.savings-rest {
  display: block;
  max-width: 100%;
  color: #ecfff3;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: normal;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1.08fr;
  gap: 18px;
  padding: 0 30px 14px;
}
.card {
  min-height: 250px;
  padding: 18px;
}
.card h2,
.cta h2 {
  margin: 0;
  color: var(--cyan);
  line-height: 1.1;
}
.card h2 {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.num {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: white;
  background: linear-gradient(135deg, #34a3ff, var(--green));
}
.mini-network {
  width: 170px;
  height: auto;
  float: left;
  margin: 2px 20px 10px 0;
}
.link-list { display: grid; gap: 8px; }
.mini-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(32, 217, 255, 0.18);
  border-radius: 6px;
  color: #dff6fb;
  font-size: 12px;
}
.mini-link:hover { border-color: rgba(73, 240, 123, 0.72); }
.mini-link small { display: none; }
.link-text strong { font: inherit; font-weight: 600; }
.link-arrow {
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green);
  padding: 2px 7px;
}
.empty-state { font-size: 13px; }

.hero-gnk-services__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid rgba(73, 240, 123, 0.55);
  border-radius: 8px;
  background: rgba(73, 240, 123, 0.12);
  color: #ecfff3;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(73, 240, 123, 0.14);
}

.hero-gnk-services__cta:hover,
.hero-gnk-services__cta:focus-visible {
  border-color: rgba(73, 240, 123, 0.9);
  background: rgba(73, 240, 123, 0.2);
}

.gnk-services-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gnk-services-card h2 {
  margin-bottom: 0;
}

.gnk-services-lead,
.gnk-services-notice {
  margin: 0;
  color: rgba(223, 246, 251, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.gnk-services-notice {
  color: rgba(223, 246, 251, 0.58);
  font-size: 12px;
}

.gnk-service-list {
  gap: 10px;
}

.gnk-service-list .mini-link {
  align-items: center;
  min-height: 66px;
  padding: 12px;
  gap: 12px;
  border-color: rgba(32, 217, 255, 0.26);
  background: rgba(1, 19, 27, 0.72);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.gnk-service-list .mini-link:hover {
  transform: translateY(-2px);
  border-color: rgba(73, 240, 123, 0.86);
  background: rgba(2, 31, 40, 0.92);
}

.gnk-service-list .mini-link:focus-visible {
  outline: 3px solid rgba(73, 240, 123, 0.78);
  outline-offset: 3px;
}

.gnk-services-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.gnk-services-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: rgba(32, 217, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  border-bottom: 1px solid rgba(32, 217, 255, 0.42);
}

.gnk-services-secondary:hover,
.gnk-services-secondary:focus-visible {
  color: #ecfff3;
  border-bottom-color: rgba(73, 240, 123, 0.78);
  outline: none;
}

.gnk-service-list .mini-link small {
  display: block;
  max-width: 32ch;
  margin-top: 4px;
  color: rgba(223, 246, 251, 0.62);
  font-size: 12px;
  line-height: 1.35;
}

.gnk-service-list .link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-color: transparent;
  border-radius: 8px;
  background: var(--green);
  color: #04150d;
  font-weight: 900;
  white-space: nowrap;
}

.gnk-services-page .wrap,
.seo-landing .wrap {
  min-height: 100vh;
}

.gnk-services-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1fr);
  gap: 26px;
  align-items: start;
  padding: 34px 30px 18px;
}

.gnk-services-hero__copy {
  padding-top: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gnk-services-hero h1 {
  max-width: 680px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 0.96;
}

.gnk-services-hero__copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(223, 246, 251, 0.78);
  font-size: 17px;
  line-height: 1.58;
}

.gnk-services-page-card {
  min-height: auto;
}

.gnk-services-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 30px 20px;
}

.gnk-services-faq h2 {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 24px;
}

.gnk-services-faq article {
  border: 1px solid rgba(32, 217, 255, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(2, 20, 28, 0.68);
}

.gnk-services-faq h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.3;
}

.gnk-services-faq p {
  margin: 0;
  color: rgba(223, 246, 251, 0.72);
  font-size: 14px;
  line-height: 1.48;
}

.seo-page-content {
  display: grid;
  gap: 12px;
  padding: 10px 30px 26px;
}

.seo-page-content__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-page-content > h2 {
  margin: 0;
  color: var(--cyan);
  font-size: 24px;
  line-height: 1.2;
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.seo-link-grid a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(32, 217, 255, 0.22);
  border-radius: 8px;
  background: rgba(1, 19, 27, 0.64);
  color: #ecfff3;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.seo-link-grid a:hover,
.seo-link-grid a:focus-visible {
  border-color: rgba(73, 240, 123, 0.78);
  outline: none;
}

.seo-mini-card {
  border: 1px solid rgba(32, 217, 255, 0.2);
  border-radius: 8px;
  background: rgba(1, 19, 27, 0.6);
  padding: 16px;
}

.seo-mini-card h2,
.seo-mini-card h3 {
  margin: 0 0 8px;
  color: #ecfff3;
  font-size: 18px;
  line-height: 1.25;
}

.seo-mini-card p,
.seo-mini-card li {
  color: rgba(223, 246, 251, 0.74);
  line-height: 1.5;
}

.seo-mini-card p,
.seo-mini-card ul {
  margin: 0;
}

.seo-mini-card a {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
}

.seo-mini-card a:hover,
.seo-mini-card a:focus-visible {
  color: var(--cyan);
  outline: none;
}

.seo-mini-card ul {
  padding-left: 18px;
}

.seo-page-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  margin-top: 14px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--green);
  color: #04150d;
  font-weight: 900;
  text-decoration: none;
}

.seo-page-cta:focus-visible {
  outline: 3px solid rgba(73, 240, 123, 0.78);
  outline-offset: 3px;
}

.cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 112px;
  margin: 0 30px 18px;
  overflow: hidden;
  padding: 18px clamp(150px, 17vw, 220px);
}
.corner {
  position: absolute;
  top: 0;
  width: 230px;
  height: 92px;
  object-fit: cover;
  opacity: 0.9;
  pointer-events: none;
}
.corner.left {
  left: 0;
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
}
.corner.right {
  right: 0;
  mask-image: linear-gradient(270deg, #000 0%, #000 58%, transparent 100%);
}
.corner.left { opacity: 0.72; }
.corner.right { opacity: 0.72; }
.cta-content {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}
.rocket {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 30px;
}
.cta h2 {
  max-width: 820px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-align: center;
  text-wrap: balance;
}
.cta p { position: relative; z-index: 1; font-size: 13px; }
.green-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 0;
  border-radius: 6px;
  color: #041009;
  background: linear-gradient(135deg, var(--green), #20d9ff);
  font-size: 18px;
  font-weight: 900;
}

footer {
  padding: 16px 30px 22px;
  border-top: 1px solid rgba(32, 217, 255, 0.12);
  color: #7f9199;
  font-size: 12px;
}

@media (min-width: 1181px) {
  .frame {
    min-height: 100vh;
    padding: clamp(22px, 2.4vw, 34px) 28px;
  }
  .site-header {
    min-height: 68px;
    padding: 0 26px;
  }
  .brand { min-width: 160px; }
  .brand-logo { width: 58px; height: 58px; }
  .nav { gap: clamp(18px, 2.5vw, 36px); font-size: 13px; }
  .hero {
    grid-template-columns: minmax(330px, 0.96fr) minmax(320px, 1.04fr) minmax(260px, 0.78fr);
    align-items: center;
    gap: clamp(16px, 1.8vw, 24px);
    padding: clamp(20px, 2.1vw, 28px) 30px 12px;
  }
  h1 {
    max-width: 12.5ch;
    font-size: clamp(40px, 4.15vw, 58px);
  }
  .hero-copy p { max-width: 560px; font-size: clamp(14px, 1.24vw, 17px); }
  .network { height: clamp(230px, 21vw, 286px); }
  .api-visual { max-height: 286px; object-fit: contain; }
  .hero-video { height: clamp(230px, 21vw, 286px); }
  .feature-strip div { min-height: 70px; padding: 14px 16px; }
  .cost-cell { min-height: 76px; }
  .price-strip { margin: 0 30px 14px; }
  .card { min-height: 220px; }
  .cta { min-height: 84px; }
}

@media (max-width: 1180px) {
  .frame { padding: 18px 14px; }
  .site-header { flex-wrap: wrap; padding: 18px 18px 14px; }
  .brand { min-width: 0; }
  .brand-logo { width: 58px; height: 58px; }
  .nav {
    order: 3;
    width: 100%;
    gap: 12px 18px;
    white-space: normal;
    line-height: 1.25;
  }
  .outline-btn { margin-left: auto; }
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 22px 24px 12px;
  }
  h1 {
    max-width: 13ch;
    font-size: clamp(36px, 6vw, 52px);
    overflow-wrap: normal;
  }
  .network { grid-column: span 2; height: auto; max-height: 280px; object-fit: contain; }
  .api-visual { grid-column: span 2; max-height: 230px; object-fit: contain; }
  .video-panel { grid-column: span 2; max-width: 360px; justify-self: center; }
  .hero-video { height: 420px; max-height: 68vh; }
  .cards { grid-template-columns: 1fr; }
  .cost-strip,
  .price-strip { grid-template-columns: 1fr 1fr; }
  .cost-cell { min-height: 78px; }
  .cta { padding: 18px 150px; }
}

@media (max-width: 760px) {
  html,
  body { overflow-x: hidden; }
  .frame {
    width: 100%;
    min-height: 100vh;
    padding: 0;
  }
  .page {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
  }
  .brand-logo { width: 58px; height: 58px; }
  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px 14px;
    white-space: normal;
    font-size: 12px;
  }
  .outline-btn {
    width: 100%;
    min-height: 42px;
    margin-left: 0;
    padding: 11px 14px;
  }
  .hero,
  .feature-strip,
  .cost-strip { grid-template-columns: 1fr; }
  .hero {
    gap: 16px;
    padding: 20px 18px 12px;
  }
  .hero-copy {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  h1 {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: clamp(28px, 7.55vw, 36px);
    line-height: 1.03;
    letter-spacing: -0.05em;
    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: normal;
  }
  .hero-copy p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.5;
  }
  .network {
    grid-column: auto;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .api-visual {
    grid-column: auto;
    width: 100%;
    max-height: none;
    object-fit: contain;
  }
  .video-panel {
    grid-column: auto;
    width: min(100%, 360px);
    justify-self: center;
  }
  .hero-video { height: min(560px, 88vh); }
  .feature-strip,
  .cost-strip,
  .price-strip,
  .cards,
  .cta {
    margin-left: 18px;
    margin-right: 18px;
  }
  .feature-strip div {
    min-height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(32, 217, 255, 0.14);
  }
  .feature-strip div:last-child { border-bottom: 0; }
  .cost-strip { gap: 10px; padding: 12px; }
  .price-strip { grid-template-columns: 1fr; gap: 10px; }
  .cost-cell { min-height: 72px; }
  .cards {
    padding-right: 0;
    padding-left: 0;
  }
  .card {
    min-height: auto;
    padding: 16px;
  }
  .card h2 {
    align-items: flex-start;
    font-size: 18px;
  }
  .mini-network {
    float: none;
    width: 100%;
    max-height: 130px;
    margin: 0 0 12px;
    object-fit: contain;
  }
  .mini-link {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
  }
  .link-arrow { align-self: flex-start; }
  .cta {
    min-height: auto;
    padding: 18px 118px;
  }
  .corner {
    width: 180px;
    opacity: 0.48;
  }
  .corner.right { display: none; }
  .cta-content { display: block; }
  .rocket {
    width: 54px;
    height: 54px;
  }
  .cta h2 { font-size: 20px; }
  .green-btn {
    grid-column: auto;
    min-height: 48px;
    font-size: 16px;
  }
  footer { padding: 14px 18px 20px; }
}

@media (max-width: 390px) {
  .nav { gap: 9px 12px; }
  h1 { font-size: clamp(26px, 7.15vw, 31px); letter-spacing: -0.055em; }
  .hero,
  .site-header { padding-right: 16px; padding-left: 16px; }
  .feature-strip,
  .cost-strip,
  .cards,
  .cta { margin-right: 16px; margin-left: 16px; }
  .cta { padding-right: 96px; padding-left: 96px; }
}


/* Two price tiles are a direct comparison: keep structure and scale identical. */
.price-strip .cost-cell {
  min-height: 108px;
  justify-content: flex-start;
  padding: 18px 22px;
}
.price-strip strong {
  margin-bottom: 8px;
  font-size: clamp(13px, 1.18vw, 16px);
  line-height: 1.05;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.price-line {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  min-width: 0;
}
.price-strip .price {
  display: block;
  white-space: nowrap;
  font-size: clamp(30px, 3.7vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  font-weight: 900;
}
.price-strip small {
  flex: 0 0 auto;
  margin: 0 0 5px;
  color: rgba(220, 239, 245, 0.72);
  font-size: 15px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.price-strip .legacy-cost {
  border-color: rgba(32, 217, 255, 0.18);
  background: rgba(2, 11, 17, 0.42);
}
.price-strip .legacy-cost strong,
.price-strip .legacy-cost .price {
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(32, 217, 255, 0.22);
}
.price-strip .gonka-cost strong,
.price-strip .gonka-cost .price {
  color: var(--green);
  text-shadow: 0 0 28px rgba(73, 240, 123, 0.34);
}
@media (max-width: 760px) {
  .price-strip .cost-cell { min-height: 96px; padding: 16px; }
  .price-line { align-items: baseline; gap: 9px; flex-wrap: wrap; }
  .price-strip .price { font-size: clamp(30px, 11vw, 42px); }
  .price-strip small { margin-bottom: 0; font-size: 13px; }
}

/* Mobile polish: make the landing feel designed for phones, not squeezed desktop. */
@media (max-width: 760px) {
  body {
    background: #02070b;
  }

  .frame {
    background:
      radial-gradient(circle at 50% 0%, rgba(32, 217, 255, 0.18), transparent 34%),
      linear-gradient(180deg, #02070b, #031019 64%, #02070b);
  }

  .page {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 14px 14px;
    border-bottom: 1px solid rgba(32, 217, 255, 0.16);
    background: rgba(2, 7, 11, 0.88);
    backdrop-filter: blur(14px);
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .outline-btn {
    width: auto;
    justify-self: end;
    min-height: 38px;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 12px;
    text-align: center;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    font-size: 12px;
    line-height: 1.15;
  }

  .nav a {
    display: grid;
    min-height: 38px;
    place-items: center;
    padding: 9px 8px;
    border: 1px solid rgba(32, 217, 255, 0.18);
    border-radius: 999px;
    background: rgba(7, 18, 26, 0.72);
    color: #dff6fb;
    text-align: center;
  }

  .hero {
    gap: 14px;
    padding: 22px 14px 12px;
  }

  h1 {
    max-width: 11.5ch;
    margin-bottom: 12px;
    font-size: clamp(34px, 10.4vw, 42px);
    line-height: 0.98;
    letter-spacing: -0.055em;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .hero-copy p {
    max-width: 35rem;
    color: #b6cbd3;
    font-size: 15px;
    line-height: 1.55;
  }

  .network {
    max-height: 190px;
    border: 1px solid rgba(32, 217, 255, 0.16);
    border-radius: 12px;
    background: rgba(7, 18, 26, 0.45);
    object-fit: cover;
  }

  .video-panel {
    width: 100%;
    max-width: none;
    border-radius: 12px;
  }

  .hero-video {
    height: clamp(220px, 62vw, 310px);
    max-height: none;
  }

  .price-strip,
  .cards,
  .cta {
    margin-left: 14px;
    margin-right: 14px;
  }

  .price-strip {
    gap: 9px;
    margin-bottom: 12px;
  }

  .price-strip .cost-cell {
    min-height: auto;
    padding: 14px;
    border-radius: 12px;
  }

  .price-strip strong {
    margin-bottom: 7px;
    font-size: 13px;
  }

  .price-line {
    display: block;
  }

  .price-strip .price {
    font-size: clamp(34px, 12vw, 46px);
  }

  .price-strip small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    white-space: normal;
  }

  .cards {
    gap: 10px;
    padding-bottom: 12px;
  }

  .card {
    border-radius: 14px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(10, 25, 35, 0.96), rgba(5, 14, 21, 0.94));
  }

  .card h2 {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 17px;
    line-height: 1.15;
  }

  .num {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 14px;
  }

  .link-list {
    gap: 7px;
  }

  .mini-link {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 11px;
    border-radius: 10px;
    font-size: 13px;
  }

  .link-arrow {
    align-self: center;
    white-space: nowrap;
  }

  .cta {
    min-height: auto;
    margin-bottom: 14px;
    padding: 18px 14px;
    border-radius: 14px;
    background:
      radial-gradient(circle at 12% 0%, rgba(73, 240, 123, 0.13), transparent 40%),
      linear-gradient(180deg, rgba(10, 25, 35, 0.96), rgba(5, 14, 21, 0.94));
  }

  .corner {
    display: none;
  }

  .cta h2 {
    max-width: 100%;
    font-size: clamp(16px, 4.9vw, 20px);
    line-height: 1.18;
  }

  footer {
    padding: 14px 14px 22px;
    color: #879aa2;
    font-size: 11px;
    line-height: 1.45;
  }
}

@media (max-width: 390px) {
  .site-header,
  .hero {
    padding-right: 12px;
    padding-left: 12px;
  }

  .price-strip,
  .cards,
  .cta {
    margin-right: 12px;
    margin-left: 12px;
  }

  .nav {
    gap: 7px;
    font-size: 11px;
  }

  .nav a {
    min-height: 36px;
    padding-right: 6px;
    padding-left: 6px;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(31px, 10vw, 38px);
  }

  .mini-link {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .link-arrow {
    justify-self: start;
  }
}

/* Mobile hero fix: prevent headline clipping and add cleaner phone spacing. */
@media (max-width: 760px) {
  .hero {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-copy,
  .hero-copy p,
  h1 {
    min-width: 0;
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(30px, 8.6vw, 38px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    white-space: normal;
    overflow: visible;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  h1 span {
    display: block;
    margin-top: 2px;
  }

  .hero-copy p {
    font-size: 14.5px;
    line-height: 1.55;
  }

  .network {
    margin-top: 4px;
  }

  .page {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .hero {
    padding-right: 18px;
    padding-left: 18px;
  }

  h1 {
    font-size: clamp(28px, 8.2vw, 34px);
    letter-spacing: -0.035em;
  }
}

/* Compact mobile cards: keep CTA on the right to reduce section height. */
@media (max-width: 760px) {
  .card {
    padding: 12px;
  }

  .card h2 {
    margin-bottom: 9px;
  }

  .mini-link {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 40px;
    padding: 8px 9px 8px 11px;
    gap: 8px;
  }

  .link-text {
    min-width: 0;
  }

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

  .link-arrow {
    justify-self: end;
    align-self: center;
    padding: 3px 8px;
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (max-width: 390px) {
  .mini-link {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .link-arrow {
    justify-self: end;
  }
}

/* Hero lead text should be white, not muted gray. */
.hero-copy p {
  color: #f0fbff;
}

/* Fit video card to the portrait video aspect ratio, avoiding black side bars. */
.video-panel {
  aspect-ratio: 9 / 16;
  max-width: 260px;
  justify-self: center;
}

.hero-video {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* Theme toggle and light theme. Dark stays the default. */
.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid rgba(32, 217, 255, 0.28);
  border-radius: 999px;
  color: #dff6fb;
  background: rgba(7, 18, 26, 0.76);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(73, 240, 123, 0.95);
  outline: none;
  box-shadow: 0 0 0 2px rgba(73, 240, 123, 0.14);
}

.theme-toggle-icon {
  color: var(--green);
  font-size: 15px;
  line-height: 1;
}

html[data-theme="light"] {
  background: #eef7fb;
}

html[data-theme="light"] body {
  color: #08202b;
  background: #eef7fb;
}

html[data-theme="light"] .frame {
  background:
    radial-gradient(circle at 50% 0%, rgba(32, 217, 255, 0.22), transparent 35%),
    linear-gradient(180deg, #f8fdff, #eaf7fb 62%, #f6fbfd);
}

html[data-theme="light"] .page {
  border-color: rgba(16, 129, 158, 0.2);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 80px rgba(5, 32, 43, 0.16);
}

html[data-theme="light"] .site-header {
  border-bottom-color: rgba(16, 129, 158, 0.18);
  background: rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .nav,
html[data-theme="light"] .hero-copy p,
html[data-theme="light"] p,
html[data-theme="light"] .mini-link,
html[data-theme="light"] .price-strip span,
html[data-theme="light"] .cost-cell small,
html[data-theme="light"] footer {
  color: #173845;
}

html[data-theme="light"] h1,
html[data-theme="light"] .cta h2 {
  color: #061b25;
}

html[data-theme="light"] .outline-btn,
html[data-theme="light"] .theme-toggle {
  color: #062315;
  background: rgba(255, 255, 255, 0.72);
}

html[data-theme="light"] .price-strip .cost-cell,
html[data-theme="light"] .card,
html[data-theme="light"] .cta,
html[data-theme="light"] .video-panel,
html[data-theme="light"] .network {
  border-color: rgba(16, 129, 158, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(235, 248, 252, 0.92));
  box-shadow: 0 14px 36px rgba(5, 32, 43, 0.08);
}

html[data-theme="light"] .gonka-cost {
  border-color: rgba(29, 173, 83, 0.28);
  background: linear-gradient(180deg, rgba(232, 255, 239, 0.95), rgba(244, 253, 247, 0.92));
}

html[data-theme="light"] .mini-link {
  border-color: rgba(16, 129, 158, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .link-arrow {
  background: rgba(236, 255, 243, 0.9);
}

html[data-theme="light"] .num {
  color: #fff;
}

@media (max-width: 760px) {
  .header-actions {
    justify-self: end;
  }

  .theme-toggle {
    min-height: 38px;
    padding: 0 11px;
  }

  .theme-toggle-text {
    display: none;
  }

  html[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.88);
  }

  html[data-theme="light"] .nav a {
    color: #173845;
    border-color: rgba(16, 129, 158, 0.2);
    background: rgba(255, 255, 255, 0.72);
  }
}

/* Decorative image inside the centralized AI API price tile. */
.price-strip .has-price-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 34%);
  align-items: center;
  gap: 14px;
}

.price-copy {
  min-width: 0;
}

.price-art {
  width: 100%;
  height: 86px;
  border: 1px solid rgba(32, 217, 255, 0.16);
  border-radius: 10px;
  object-fit: cover;
  object-position: center;
  opacity: 0.92;
  filter: saturate(1.04) contrast(1.03);
}

@media (max-width: 760px) {
  .price-strip .has-price-art {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 10px;
  }

  .price-art {
    height: 72px;
    border-radius: 9px;
  }
}

@media (max-width: 390px) {
  .price-strip .has-price-art {
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  .price-art {
    height: 64px;
  }
}

.price-art-wrap {
  display: block;
  min-width: 0;
}

html[data-theme="light"] .price-art {
  border-color: rgba(16, 129, 158, 0.16);
  opacity: 1;
  filter: saturate(1.02) contrast(1.01);
}

/* Price card images: no visible frames in either theme. */
.price-art,
html[data-theme="light"] .price-art {
  border: 0;
  box-shadow: none;
  background: transparent;
}

/* Price tiles: label under price, bigger right image, cleaner crop. */
.price-strip .has-price-art {
  grid-template-columns: minmax(0, 0.92fr) minmax(130px, 42%);
  gap: 18px;
}

.price-strip .has-price-art .price-line {
  display: block;
}

.price-strip .has-price-art small {
  display: block;
  margin: 7px 0 0;
  white-space: normal;
}

.price-strip .has-price-art .price-art {
  height: 118px;
  border-radius: 12px;
}

.legacy-cost .price-art {
  object-position: 42% center;
}

.gonka-cost .price-art {
  object-position: center;
}

@media (min-width: 1181px) {
  .price-strip .has-price-art .price-art {
    height: 126px;
  }
}

@media (max-width: 760px) {
  .price-strip .has-price-art {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 38%);
    gap: 10px;
  }

  .price-strip .has-price-art .price-art {
    height: 94px;
    border-radius: 11px;
  }

  .price-strip .has-price-art small {
    margin-top: 5px;
  }
}

@media (max-width: 390px) {
  .price-strip .has-price-art {
    grid-template-columns: minmax(0, 1fr) 104px;
  }

  .price-strip .has-price-art .price-art {
    height: 88px;
  }
}

/* High-quality pill theme switcher: Night / Day. */
.theme-toggle {
  position: relative;
  isolation: isolate;
  width: 96px;
  min-width: 96px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  color: #f4f6f7;
  background: linear-gradient(180deg, #2f3336, #17191b);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -10px 18px rgba(0, 0, 0, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transition: background 0.24s ease, box-shadow 0.24s ease, transform 0.2s ease;
}

.theme-toggle::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 4px;
  left: 4px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #ffffff 0 28%, #f2f3f4 50%, #cfd4d8 100%);
  box-shadow:
    inset -5px -6px 10px rgba(112, 121, 128, 0.22),
    inset 3px 3px 7px rgba(255, 255, 255, 0.95),
    0 3px 10px rgba(0, 0, 0, 0.38);
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1), background 0.24s ease, box-shadow 0.24s ease;
}

.theme-toggle-label {
  position: absolute;
  z-index: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: "JetBrains Mono", Inter, monospace;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  user-select: none;
  transition: opacity 0.2s ease, color 0.24s ease;
}

.theme-toggle-label-dark {
  right: 12px;
  color: #f2f5f6;
  opacity: 1;
}

.theme-toggle-label-light {
  left: 17px;
  color: #252a2d;
  opacity: 0;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -10px 18px rgba(0, 0, 0, 0.22),
    0 0 0 2px rgba(73, 240, 123, 0.16),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

html[data-theme="light"] .theme-toggle {
  color: #252a2d;
  background: linear-gradient(180deg, #ffffff, #dfe5e8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -9px 16px rgba(83, 98, 108, 0.1),
    0 8px 18px rgba(18, 49, 64, 0.16);
}

html[data-theme="light"] .theme-toggle::before {
  transform: translateX(54px);
  background:
    radial-gradient(circle at 35% 30%, #4b5358 0 18%, #252a2d 58%, #0f1214 100%);
  box-shadow:
    inset 4px 4px 8px rgba(255, 255, 255, 0.08),
    inset -5px -5px 9px rgba(0, 0, 0, 0.42),
    0 3px 10px rgba(18, 49, 64, 0.22);
}

html[data-theme="light"] .theme-toggle-label-dark {
  opacity: 0;
}

html[data-theme="light"] .theme-toggle-label-light {
  opacity: 1;
}

@media (max-width: 760px) {
  .theme-toggle {
    width: 88px;
    min-width: 88px;
    height: 38px;
    min-height: 38px;
  }

  .theme-toggle::before {
    top: 4px;
    left: 4px;
    width: 30px;
    height: 30px;
  }

  html[data-theme="light"] .theme-toggle::before {
    transform: translateX(50px);
  }

  .theme-toggle-label {
    display: block;
    font-size: 9px;
  }

  .theme-toggle-label-dark {
    right: 10px;
  }

  .theme-toggle-label-light {
    left: 15px;
  }
}

/* Stronger green accents for light theme contrast. */
html[data-theme="light"] {
  --green: #118a3a;
  --cyan: #087d9f;
  --line: rgba(8, 125, 159, 0.28);
  --soft-line: rgba(8, 125, 159, 0.16);
}

html[data-theme="light"] h1 span,
html[data-theme="light"] .price-strip .gonka-cost strong,
html[data-theme="light"] .price-strip .gonka-cost .price,
html[data-theme="light"] .link-arrow,
html[data-theme="light"] .theme-toggle-icon {
  color: #118a3a;
  text-shadow: none;
}

html[data-theme="light"] .outline-btn,
html[data-theme="light"] .link-arrow {
  border-color: #118a3a;
}

html[data-theme="light"] .num {
  background: linear-gradient(135deg, #087d9f, #118a3a);
}

html[data-theme="light"] .nav a:hover {
  color: #0b6f2d;
}

/* Header official-site button: align to the right and remove green outline. */
.header-actions {
  margin-left: auto;
}

.outline-btn {
  border-color: rgba(32, 217, 255, 0.22);
  background: rgba(7, 18, 26, 0.42);
}

.outline-btn:hover,
.outline-btn:focus-visible {
  border-color: rgba(32, 217, 255, 0.42);
  box-shadow: 0 0 0 2px rgba(32, 217, 255, 0.12);
}

html[data-theme="light"] .outline-btn {
  border-color: rgba(8, 125, 159, 0.2);
  background: rgba(255, 255, 255, 0.68);
}

html[data-theme="light"] .outline-btn:hover,
html[data-theme="light"] .outline-btn:focus-visible {
  border-color: rgba(8, 125, 159, 0.34);
  box-shadow: 0 0 0 2px rgba(8, 125, 159, 0.1);
}

/* Neumorphic theme switcher with site colors. Light = knob left, dark = knob right. */
.theme-toggle {
  position: relative;
  isolation: isolate;
  width: 92px;
  min-width: 92px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #182631;
  box-shadow:
    inset 5px 5px 10px rgba(0, 0, 0, 0.42),
    inset -4px -4px 9px rgba(32, 217, 255, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.theme-toggle::before {
  content: none;
}

.theme-knob {
  position: absolute;
  z-index: 2;
  top: 5px;
  left: 5px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #aeb9c2 0 16%, #5f6c7a 58%, #2d3945 100%);
  box-shadow:
    5px 5px 10px rgba(0, 0, 0, 0.42),
    -3px -3px 8px rgba(32, 217, 255, 0.12),
    inset 3px 3px 6px rgba(255, 255, 255, 0.1),
    inset -5px -5px 8px rgba(0, 0, 0, 0.26);
  transform: translateX(50px);
  transition: transform 0.28s cubic-bezier(.2,.8,.2,1), background 0.24s ease, box-shadow 0.24s ease;
}

.theme-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  opacity: 0.78;
  pointer-events: none;
}

.theme-icon-sun {
  left: 12px;
  border: 2px solid rgba(73, 240, 123, 0.7);
  border-radius: 50%;
  box-shadow:
    0 -7px 0 -6px rgba(73, 240, 123, 0.7),
    0 7px 0 -6px rgba(73, 240, 123, 0.7),
    7px 0 0 -6px rgba(73, 240, 123, 0.7),
    -7px 0 0 -6px rgba(73, 240, 123, 0.7),
    5px 5px 0 -6px rgba(73, 240, 123, 0.7),
    -5px -5px 0 -6px rgba(73, 240, 123, 0.7),
    5px -5px 0 -6px rgba(73, 240, 123, 0.7),
    -5px 5px 0 -6px rgba(73, 240, 123, 0.7);
}

.theme-icon-moon {
  right: 13px;
  border-radius: 50%;
  box-shadow: inset -5px 0 0 rgba(32, 217, 255, 0.72);
}

.theme-icon-moon::before,
.theme-icon-moon::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(32, 217, 255, 0.72);
}

.theme-icon-moon::before { top: 2px; right: -3px; }
.theme-icon-moon::after { right: -6px; bottom: 3px; }

html[data-theme="light"] .theme-toggle {
  background: #dfe8ed;
  box-shadow:
    inset 5px 5px 11px rgba(112, 136, 148, 0.28),
    inset -5px -5px 11px rgba(255, 255, 255, 0.95),
    0 8px 18px rgba(18, 49, 64, 0.12);
}

html[data-theme="light"] .theme-knob {
  transform: translateX(0);
  background:
    radial-gradient(circle at 32% 28%, #ffffff 0 18%, #f4fbf7 54%, #c7ded0 100%);
  box-shadow:
    5px 5px 11px rgba(112, 136, 148, 0.3),
    -4px -4px 10px rgba(255, 255, 255, 0.95),
    inset 3px 3px 6px rgba(255, 255, 255, 0.95),
    inset -4px -4px 8px rgba(17, 138, 58, 0.12);
}

html[data-theme="light"] .theme-icon-sun {
  border-color: rgba(17, 138, 58, 0.82);
  box-shadow:
    0 -7px 0 -6px rgba(17, 138, 58, 0.82),
    0 7px 0 -6px rgba(17, 138, 58, 0.82),
    7px 0 0 -6px rgba(17, 138, 58, 0.82),
    -7px 0 0 -6px rgba(17, 138, 58, 0.82),
    5px 5px 0 -6px rgba(17, 138, 58, 0.82),
    -5px -5px 0 -6px rgba(17, 138, 58, 0.82),
    5px -5px 0 -6px rgba(17, 138, 58, 0.82),
    -5px 5px 0 -6px rgba(17, 138, 58, 0.82);
}

html[data-theme="light"] .theme-icon-moon {
  box-shadow: inset -5px 0 0 rgba(8, 125, 159, 0.55);
}

html[data-theme="light"] .theme-icon-moon::before,
html[data-theme="light"] .theme-icon-moon::after {
  background: rgba(8, 125, 159, 0.55);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    inset 5px 5px 10px rgba(0, 0, 0, 0.36),
    inset -4px -4px 9px rgba(32, 217, 255, 0.16),
    0 0 0 2px rgba(32, 217, 255, 0.14),
    0 10px 22px rgba(0, 0, 0, 0.24);
}

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible {
  box-shadow:
    inset 5px 5px 11px rgba(112, 136, 148, 0.25),
    inset -5px -5px 11px rgba(255, 255, 255, 0.95),
    0 0 0 2px rgba(8, 125, 159, 0.1),
    0 10px 20px rgba(18, 49, 64, 0.14);
}

@media (max-width: 760px) {
  .theme-toggle {
    width: 84px;
    min-width: 84px;
    height: 38px;
    min-height: 38px;
  }

  .theme-knob {
    top: 4px;
    left: 4px;
    width: 30px;
    height: 30px;
    transform: translateX(46px);
  }

  html[data-theme="light"] .theme-knob {
    transform: translateX(0);
  }

  .theme-icon-sun { left: 11px; }
  .theme-icon-moon { right: 11px; }
}

/* Blend price images into their cards: remove visible rectangular image edges. */
.price-art-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: transparent;
}

.price-art {
  display: block;
  border-radius: 14px;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}

@media (max-width: 760px) {
  .price-art-wrap,
  .price-art {
    border-radius: 12px;
  }

  .price-art {
    -webkit-mask-image:
      linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-image:
      linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%),
      linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  }
}

/* Revert failed transparent cutout: use original images and hide hard seams with card-colored fade overlays. */
.price-art-wrap::before,
.price-art-wrap::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.price-art-wrap::before {
  inset: 0 auto 0 0;
  width: 34%;
  background: linear-gradient(90deg, rgba(2, 11, 17, 0.96), rgba(2, 11, 17, 0));
}

.price-art-wrap::after {
  inset: 0;
  background:
    linear-gradient(0deg, rgba(2, 11, 17, 0.76), rgba(2, 11, 17, 0) 24%, rgba(2, 11, 17, 0) 76%, rgba(2, 11, 17, 0.76)),
    linear-gradient(90deg, rgba(2, 11, 17, 0) 70%, rgba(2, 11, 17, 0.46));
}

.gonka-cost .price-art-wrap::before {
  background: linear-gradient(90deg, rgba(7, 25, 19, 0.96), rgba(7, 25, 19, 0));
}

.gonka-cost .price-art-wrap::after {
  background:
    linear-gradient(0deg, rgba(7, 25, 19, 0.66), rgba(7, 25, 19, 0) 24%, rgba(7, 25, 19, 0) 76%, rgba(7, 25, 19, 0.66)),
    linear-gradient(90deg, rgba(7, 25, 19, 0) 70%, rgba(7, 25, 19, 0.38));
}

html[data-theme="light"] .price-art-wrap::before,
html[data-theme="light"] .gonka-cost .price-art-wrap::before,
html[data-theme="light"] .price-art-wrap::after,
html[data-theme="light"] .gonka-cost .price-art-wrap::after {
  display: none;
}

.price-art {
  -webkit-mask-image: none;
  mask-image: none;
}

/* Hard header layout fix: logo left, nav center, theme+official button right. */
@media (min-width: 761px) {
  .site-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .brand {
    justify-self: start;
  }

  .nav {
    justify-self: center;
  }

  .header-actions {
    justify-self: end;
    margin-left: 0;
  }
}

/* Official-site button: no green outline, including light-theme overrides. */
.outline-btn,
html[data-theme="light"] .outline-btn {
  border-color: transparent;
  background: rgba(32, 217, 255, 0.08);
  box-shadow: none;
}

.outline-btn:hover,
.outline-btn:focus-visible,
html[data-theme="light"] .outline-btn:hover,
html[data-theme="light"] .outline-btn:focus-visible {
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(32, 217, 255, 0.12);
}

html[data-theme="light"] .outline-btn {
  background: rgba(8, 125, 159, 0.08);
}

html[data-theme="light"] .outline-btn:hover,
html[data-theme="light"] .outline-btn:focus-visible {
  box-shadow: 0 0 0 2px rgba(8, 125, 159, 0.1);
}

/* Place official-site button next to the logo; keep theme toggle on the right. */
.brand {
  gap: 12px;
}

@media (min-width: 761px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .brand .outline-btn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
  }

  .header-actions {
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .brand .outline-btn {
    width: auto;
    min-height: 38px;
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* Mobile price cards: prevent price text from colliding with illustrations. */
@media (max-width: 760px) {
  .price-strip .has-price-art {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .price-strip .has-price-art .price-copy {
    position: relative;
    z-index: 3;
  }

  .price-strip .has-price-art .price-line {
    display: block;
  }

  .price-strip .has-price-art .price {
    max-width: 100%;
    font-size: clamp(31px, 10.2vw, 40px);
    white-space: nowrap;
  }

  .price-art-wrap {
    justify-self: end;
    width: min(54%, 154px);
    margin-top: -4px;
  }

  .price-strip .has-price-art .price-art {
    height: 78px;
    object-fit: contain;
  }
}

@media (max-width: 390px) {
  .price-strip .has-price-art .price {
    font-size: clamp(28px, 9.6vw, 36px);
  }

  .price-art-wrap {
    width: min(52%, 136px);
  }

  .price-strip .has-price-art .price-art {
    height: 70px;
  }
}

/* Mobile / foldable price images: show full artwork, never crop edges. */
@media (max-width: 920px) {
  .price-strip .has-price-art {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .price-strip .cost-cell,
  .price-strip .has-price-art {
    overflow: visible;
  }

  .price-strip .has-price-art .price-copy {
    position: relative;
    z-index: 3;
  }

  .price-strip .has-price-art .price {
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(30px, 8.8vw, 42px);
  }

  .price-art-wrap {
    justify-self: end;
    width: min(72%, 260px);
    max-width: 100%;
    margin: -2px 0 0;
    overflow: visible;
    border-radius: 0;
  }

  .price-strip .has-price-art .price-art,
  .price-art {
    width: 100%;
    height: auto;
    max-height: 128px;
    object-fit: contain;
    border-radius: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .price-art-wrap::before,
  .price-art-wrap::after,
  .gonka-cost .price-art-wrap::before,
  .gonka-cost .price-art-wrap::after {
    display: none;
  }
}

@media (max-width: 430px) {
  .price-art-wrap {
    width: min(78%, 210px);
  }

  .price-strip .has-price-art .price-art,
  .price-art {
    max-height: 104px;
  }
}

@media (max-width: 370px) {
  .price-strip .has-price-art .price {
    font-size: clamp(27px, 9.2vw, 34px);
  }

  .price-art-wrap {
    width: min(82%, 188px);
  }
}

/* Balanced mobile price cards: larger art uses empty space without covering text. */
@media (max-width: 920px) {
  .price-strip .has-price-art {
    position: relative;
    display: block;
    min-height: clamp(176px, 42vw, 232px);
    padding: 18px 18px 16px;
    overflow: hidden;
  }

  .price-strip .has-price-art .price-copy {
    position: relative;
    z-index: 3;
    max-width: 66%;
  }

  .price-strip .has-price-art strong {
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.08;
  }

  .price-strip .has-price-art .price-line {
    display: block;
  }

  .price-strip .has-price-art .price {
    font-size: clamp(31px, 8.8vw, 42px);
    line-height: 0.96;
    white-space: nowrap;
  }

  .price-strip .has-price-art small {
    margin-top: 6px;
  }

  .price-art-wrap {
    position: absolute;
    z-index: 1;
    right: 8px;
    bottom: 6px;
    width: clamp(146px, 43vw, 266px);
    max-width: 58%;
    margin: 0;
    overflow: visible;
    border-radius: 0;
  }

  .price-strip .has-price-art .price-art,
  .price-art {
    width: 100%;
    height: auto;
    max-height: clamp(116px, 30vw, 166px);
    object-fit: contain;
    border-radius: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .price-art-wrap::before,
  .price-art-wrap::after,
  .gonka-cost .price-art-wrap::before,
  .gonka-cost .price-art-wrap::after {
    display: none;
  }
}

@media (max-width: 430px) {
  .price-strip .has-price-art {
    min-height: 184px;
  }

  .price-strip .has-price-art .price-copy {
    max-width: 68%;
  }

  .price-art-wrap {
    right: 4px;
    bottom: 4px;
    width: clamp(150px, 48vw, 214px);
    max-width: 60%;
  }
}

@media (max-width: 370px) {
  .price-strip .has-price-art {
    min-height: 170px;
    padding: 16px;
  }

  .price-strip .has-price-art .price-copy {
    max-width: 70%;
  }

  .price-strip .has-price-art .price {
    font-size: clamp(27px, 9.2vw, 34px);
  }

  .price-art-wrap {
    width: clamp(132px, 46vw, 176px);
    max-width: 57%;
  }
}

footer a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-page {
  min-height: auto;
}

.legal-content {
  max-width: 860px;
  padding: 34px 30px 44px;
}

.legal-content h1 {
  max-width: none;
  font-size: clamp(30px, 4vw, 48px);
}

.legal-content p {
  margin: 0 0 14px;
}

/* Horizontal Gonka presentation video: replaces old portrait speaker clip. */
.video-kicker {
  display: none;
}

.video-panel {
  aspect-ratio: 160 / 89;
  max-width: 460px;
  justify-self: center;
}

.hero-video {
  width: 100%;
  height: 100%;
  aspect-ratio: 160 / 89;
  object-fit: cover;
}

@media (min-width: 1181px) {
  .hero {
    grid-template-columns: minmax(330px, 0.96fr) minmax(280px, 0.9fr) minmax(380px, 1.04fr);
  }

  .video-panel {
    max-width: 480px;
  }
}

@media (max-width: 1180px) {
  .video-panel {
    width: min(100%, 680px);
    max-width: 680px;
    aspect-ratio: 160 / 89;
  }

  .hero-video {
    height: 100%;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .video-panel {
    width: 100%;
    max-width: none;
  }
}


/* Desktop dark theme: use dark-integrated price artwork without pasted white/card edges.
   Mobile layout was already approved, so this override starts only above the mobile/foldable breakpoint. */
@media (min-width: 921px) {
  html[data-theme="dark"] .price-art-wrap {
    overflow: visible;
    background: transparent;
  }

  html[data-theme="dark"] .price-art-wrap::before,
  html[data-theme="dark"] .price-art-wrap::after,
  html[data-theme="dark"] .gonka-cost .price-art-wrap::before,
  html[data-theme="dark"] .gonka-cost .price-art-wrap::after {
    display: none;
  }

  html[data-theme="dark"] .price-strip .has-price-art .price-art,
  html[data-theme="dark"] .price-art {
    height: 132px;
    object-fit: contain;
    border-radius: 0;
    opacity: 0.98;
    filter: saturate(1.08) contrast(1.04) drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
  }
}

/* i18n preview: compact language switcher, matched to existing header controls. */
.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 58px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(32, 217, 255, 0.24);
  border-radius: 999px;
  background: rgba(7, 18, 26, 0.54);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: inset 0 0 16px rgba(32, 217, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.18);
}

.language-button:hover,
.language-button:focus-visible,
.language-switcher.is-open .language-button {
  outline: none;
  border-color: rgba(73, 240, 123, 0.62);
  box-shadow: 0 0 0 2px rgba(73, 240, 123, 0.14), inset 0 0 16px rgba(32, 217, 255, 0.1);
}

.language-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 154px;
  padding: 6px;
  border: 1px solid rgba(32, 217, 255, 0.26);
  border-radius: 12px;
  background: rgba(3, 10, 15, 0.97);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.language-switcher.is-open .language-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.language-menu a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #d6e8ed;
  font-size: 13px;
  font-weight: 700;
}

.language-menu a:hover,
.language-menu a:focus-visible,
.language-menu a[aria-current="page"] {
  outline: none;
  background: rgba(32, 217, 255, 0.11);
  color: var(--green);
}

.translation-note {
  margin: 14px 30px 0;
  padding: 9px 12px;
  border: 1px solid rgba(32, 217, 255, 0.2);
  border-radius: 8px;
  background: rgba(32, 217, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
}

html[data-theme="light"] .language-button {
  border-color: rgba(8, 125, 159, 0.2);
  background: rgba(255, 255, 255, 0.68);
  color: #17313b;
}

html[data-theme="light"] .language-menu {
  border-color: rgba(8, 125, 159, 0.22);
  background: rgba(246, 253, 255, 0.98);
}

html[data-theme="light"] .language-menu a {
  color: #315462;
}

html[data-theme="light"] .language-menu a:hover,
html[data-theme="light"] .language-menu a:focus-visible,
html[data-theme="light"] .language-menu a[aria-current="page"] {
  background: rgba(8, 125, 159, 0.09);
  color: #0b6f2d;
}

html[data-theme="light"] .translation-note {
  background: rgba(8, 125, 159, 0.06);
  border-color: rgba(8, 125, 159, 0.16);
}

@media (max-width: 760px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: flex-end;
  }

  .language-button {
    min-width: 56px;
    min-height: 44px;
    padding: 0 12px;
  }

  .language-menu {
    right: 0;
  }

  .translation-note {
    margin: 12px 18px 0;
  }
}

/* i18n hero guard: English and Chinese headlines are longer than the RU source.
   Keep the desktop hero text inside its first column so it cannot cover visuals. */
@media (min-width: 761px) {
  html[lang="en"] h1,
  html[lang="zh-CN"] h1 {
    max-width: 11.8ch;
    font-size: clamp(32px, 3.35vw, 46px);
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  html[lang="en"] .hero-copy p,
  html[lang="zh-CN"] .hero-copy p {
    max-width: 48ch;
  }
}

/* i18n header guard: keep Official site, language switcher and theme toggle from crowding on desktop. */
@media (min-width: 761px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(168px, auto) minmax(260px, 1fr) auto;
    column-gap: clamp(14px, 1.8vw, 28px);
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand .outline-btn {
    white-space: nowrap;
    min-height: 38px;
    padding: 9px 12px;
    font-size: clamp(11px, 0.95vw, 13px);
  }

  .nav {
    min-width: 0;
    justify-content: center;
    gap: clamp(10px, 1.65vw, 28px);
  }

  .header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 160px;
  }

  .language-switcher {
    flex: 0 0 auto;
  }

  .language-button {
    min-width: 56px;
    padding: 0 12px;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .site-header {
    grid-template-columns: minmax(150px, auto) minmax(220px, 1fr) auto;
    column-gap: 12px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand .outline-btn {
    padding: 8px 10px;
    font-size: 11px;
  }

  .nav {
    gap: 10px;
    font-size: 12px;
  }

  .theme-toggle {
    width: 76px;
    min-width: 76px;
  }
}

/* Mobile i18n header fix: split brand/official button and language/theme controls into clean rows. */
@media (max-width: 760px) {
  .site-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .brand {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: initial;
  }

  .brand-logo {
    width: 54px;
    height: 54px;
  }

  .brand .outline-btn {
    justify-self: end;
    max-width: min(210px, 100%);
    min-height: 38px;
    padding: 9px 11px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .language-switcher {
    flex: 0 0 auto;
  }

  .language-button {
    min-width: 58px;
    min-height: 40px;
    padding: 0 12px;
  }

  .theme-toggle {
    width: 76px;
    min-width: 76px;
    height: 40px;
    min-height: 40px;
  }
}

@media (max-width: 380px) {
  .brand .outline-btn {
    max-width: 168px;
    font-size: 11px;
  }

  .header-actions {
    gap: 8px;
  }
}

/* Mobile header v2: stable 3-row layout — logo/actions, official button, nav. */
@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px 10px;
    padding: 16px 18px 14px;
  }

  .brand {
    display: contents;
  }

  .brand-logo {
    grid-column: 1;
    grid-row: 1;
    width: 54px;
    height: 54px;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    gap: 8px;
    min-width: 0;
  }

  .brand .outline-btn {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    display: inline-flex;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 40px;
    padding: 10px 12px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 3;
    order: initial;
    width: 100%;
    justify-content: flex-start;
  }

  .language-button {
    min-width: 56px;
    min-height: 40px;
    padding: 0 11px;
  }

  .theme-toggle {
    width: 74px;
    min-width: 74px;
    height: 40px;
    min-height: 40px;
  }
}

@media (max-width: 380px) {
  .site-header {
    grid-template-columns: 50px minmax(0, 1fr);
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .header-actions {
    gap: 7px;
  }

  .language-button {
    min-width: 52px;
    padding: 0 9px;
  }

  .theme-toggle {
    width: 68px;
    min-width: 68px;
  }
}

/* Mobile header v3: keep logo, official-site button, language and theme in one row. */
@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: 48px minmax(116px, 1fr) auto auto;
    align-items: center;
    gap: 10px 7px;
    padding: 14px 14px 13px;
  }

  .brand,
  .header-actions {
    display: contents;
  }

  .brand-logo {
    grid-column: 1;
    grid-row: 1;
    width: 48px;
    height: 48px;
  }

  .brand .outline-btn {
    grid-column: 2;
    grid-row: 1;
    justify-self: stretch;
    width: 100%;
    max-width: none;
    min-height: 38px;
    padding: 9px 8px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-switcher {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .theme-toggle {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    width: 66px;
    min-width: 66px;
    height: 38px;
    min-height: 38px;
  }

  .theme-knob {
    top: 4px;
    left: 4px;
    width: 30px;
    height: 30px;
  }

  html[data-theme="dark"] .theme-knob {
    transform: translateX(28px);
  }

  .language-button {
    min-width: 50px;
    min-height: 38px;
    padding: 0 9px;
    font-size: 12px;
  }

  .language-menu {
    right: 0;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    order: initial;
    width: 100%;
    justify-content: flex-start;
    gap: 9px 12px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .site-header {
    grid-template-columns: 44px minmax(96px, 1fr) auto auto;
    gap: 9px 6px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand .outline-btn {
    min-height: 36px;
    padding: 8px 7px;
    font-size: 10.5px;
  }

  .language-button {
    min-width: 48px;
    min-height: 36px;
    padding: 0 8px;
  }

  .theme-toggle {
    width: 62px;
    min-width: 62px;
    height: 36px;
    min-height: 36px;
  }

  .theme-knob {
    width: 28px;
    height: 28px;
  }

  html[data-theme="dark"] .theme-knob {
    transform: translateX(26px);
  }
}

/* Mobile theme toggle alignment: keep knob exactly over sun/moon after compact header sizing. */
@media (max-width: 760px) {
  .theme-toggle {
    width: 68px !important;
    min-width: 68px !important;
    height: 38px !important;
    min-height: 38px !important;
  }

  .theme-knob {
    top: 4px !important;
    left: 4px !important;
    width: 30px !important;
    height: 30px !important;
    transform: translateX(30px) !important;
  }

  html[data-theme="light"] .theme-knob {
    transform: translateX(0) !important;
  }

  html[data-theme="dark"] .theme-knob {
    transform: translateX(30px) !important;
  }

  .theme-icon-sun {
    left: 10px !important;
  }

  .theme-icon-moon {
    right: 10px !important;
  }
}

@media (max-width: 380px) {
  .theme-toggle {
    width: 64px !important;
    min-width: 64px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .theme-knob {
    top: 4px !important;
    left: 4px !important;
    width: 28px !important;
    height: 28px !important;
    transform: translateX(28px) !important;
  }

  html[data-theme="light"] .theme-knob {
    transform: translateX(0) !important;
  }

  html[data-theme="dark"] .theme-knob {
    transform: translateX(28px) !important;
  }

  .theme-icon-sun {
    left: 9px !important;
  }

  .theme-icon-moon {
    right: 9px !important;
  }
}

/* Mobile controls v4: make Official site, language and theme controls look like one family. */
@media (max-width: 760px) {
  .brand .outline-btn,
  .language-button,
  .theme-toggle {
    height: 38px !important;
    min-height: 38px !important;
    border: 1px solid rgba(32, 217, 255, 0.26) !important;
    border-radius: 999px !important;
    background: rgba(7, 18, 26, 0.54) !important;
    color: var(--text) !important;
    box-shadow: inset 0 0 16px rgba(32, 217, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.18) !important;
  }

  .brand .outline-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    line-height: 38px !important;
    text-align: center !important;
    vertical-align: middle !important;
  }

  .language-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  .theme-toggle {
    width: 68px !important;
    min-width: 68px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .brand .outline-btn:hover,
  .brand .outline-btn:focus-visible,
  .language-button:hover,
  .language-button:focus-visible,
  .language-switcher.is-open .language-button,
  .theme-toggle:hover,
  .theme-toggle:focus-visible {
    border-color: rgba(73, 240, 123, 0.62) !important;
    box-shadow: 0 0 0 2px rgba(73, 240, 123, 0.14), inset 0 0 16px rgba(32, 217, 255, 0.1) !important;
  }

  html[data-theme="light"] .brand .outline-btn,
  html[data-theme="light"] .language-button,
  html[data-theme="light"] .theme-toggle {
    border-color: rgba(8, 125, 159, 0.22) !important;
    background: rgba(255, 255, 255, 0.68) !important;
    color: #17313b !important;
    box-shadow: inset 0 0 16px rgba(8, 125, 159, 0.05), 0 8px 18px rgba(18, 49, 64, 0.1) !important;
  }
}

@media (max-width: 380px) {
  .brand .outline-btn,
  .language-button,
  .theme-toggle {
    height: 36px !important;
    min-height: 36px !important;
  }

  .brand .outline-btn {
    padding: 0 7px !important;
    line-height: 36px !important;
  }

  .theme-toggle {
    width: 64px !important;
    min-width: 64px !important;
  }
}


/* Language menu v2: desktop flags, mobile remains compact. */
.language-menu {
  min-width: 214px;
}

.language-menu a {
  gap: 9px;
}

.language-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px;
  font-size: 16px;
  line-height: 1;
  filter: saturate(1.05);
}

@media (max-width: 760px) {
  .language-menu {
    min-width: 150px;
  }

  .language-flag {
    display: none;
  }
}

/* i18n visual guard v2: all localized desktop heroes must keep text inside the first column. */
@media (min-width: 761px) {
  html[lang] .hero {
    grid-template-columns: minmax(300px, 0.86fr) minmax(340px, 1.06fr) minmax(260px, 0.78fr);
    align-items: center;
  }

  html[lang] .hero-copy {
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
  }

  html[lang] .network,
  html[lang] .video-panel {
    position: relative;
    z-index: 0;
  }

  html[lang] h1 {
    max-width: 12.2ch;
    font-size: clamp(30px, 3.15vw, 44px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  html[lang] .hero-copy p {
    max-width: 46ch;
    font-size: clamp(14px, 1.08vw, 16px);
  }

  html[lang="th"] h1,
  html[lang="ja"] h1,
  html[lang="ko"] h1,
  html[lang="ar"] h1 {
    max-width: 13.5ch;
    font-size: clamp(28px, 2.85vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  html[lang="ar"] .hero-copy,
  html[lang="ar"] .price-copy,
  html[lang="ar"] .cta-content,
  html[lang="ar"] footer,
  html[lang="ar"] .legal-content {
    text-align: right;
  }
}

/* Desktop language menu flags v3: use real flag images, hide them on mobile. */
.language-flag {
  width: 22px;
  min-width: 22px;
  height: 16px;
  border-radius: 3px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.18);
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.language-flag[data-flag="ru"] { background-image: url("/assets/flags/ru.png"); }
.language-flag[data-flag="gb"] { background-image: url("/assets/flags/gb.png"); }
.language-flag[data-flag="cn"] { background-image: url("/assets/flags/cn.png"); }
.language-flag[data-flag="in"] { background-image: url("/assets/flags/in.png"); }
.language-flag[data-flag="id"] { background-image: url("/assets/flags/id.png"); }
.language-flag[data-flag="br"] { background-image: url("/assets/flags/br.png"); }
.language-flag[data-flag="es"] { background-image: url("/assets/flags/es.png"); }
.language-flag[data-flag="tr"] { background-image: url("/assets/flags/tr.png"); }
.language-flag[data-flag="vn"] { background-image: url("/assets/flags/vn.png"); }
.language-flag[data-flag="th"] { background-image: url("/assets/flags/th.png"); }
.language-flag[data-flag="ae"] { background-image: url("/assets/flags/ae.png"); }
.language-flag[data-flag="jp"] { background-image: url("/assets/flags/jp.png"); }
.language-flag[data-flag="kr"] { background-image: url("/assets/flags/kr.png"); }

@media (max-width: 760px) {
  .language-flag {
    display: none !important;
  }
}

/* Desktop official-site button v2: match the language selector capsule style. */
@media (min-width: 761px) {
  .brand .outline-btn {
    min-height: 42px;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(32, 217, 255, 0.24);
    border-radius: 999px;
    background: rgba(7, 18, 26, 0.54);
    color: var(--text);
    box-shadow: inset 0 0 16px rgba(32, 217, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.18);
    line-height: 1;
    white-space: nowrap;
  }

  .brand .outline-btn:hover,
  .brand .outline-btn:focus-visible {
    border-color: rgba(73, 240, 123, 0.62);
    box-shadow: 0 0 0 2px rgba(73, 240, 123, 0.14), inset 0 0 16px rgba(32, 217, 255, 0.1);
  }

  html[data-theme="light"] .brand .outline-btn {
    border-color: rgba(8, 125, 159, 0.2);
    background: rgba(255, 255, 255, 0.68);
    color: #17313b;
    box-shadow: inset 0 0 16px rgba(8, 125, 159, 0.05), 0 8px 18px rgba(18, 49, 64, 0.1);
  }
}

/* Language menu flags v4: extra language countries. */
.language-flag[data-flag="ph"] { background-image: url("/assets/flags/ph.png?v=20260513-local-flags"); }
.language-flag[data-flag="bd"] { background-image: url("/assets/flags/bd.png?v=20260513-local-flags"); }
.language-flag[data-flag="pk"] { background-image: url("/assets/flags/pk.png?v=20260513-local-flags"); }
.language-flag[data-flag="fr"] { background-image: url("/assets/flags/fr.png?v=20260513-local-flags"); }
.language-flag[data-flag="de"] { background-image: url("/assets/flags/de.png?v=20260513-local-flags"); }
.language-flag[data-flag="it"] { background-image: url("/assets/flags/it.png?v=20260513-local-flags"); }
.language-flag[data-flag="pl"] { background-image: url("/assets/flags/pl.png?v=20260513-local-flags"); }
.language-flag[data-flag="ro"] { background-image: url("/assets/flags/ro.png?v=20260513-local-flags"); }
.language-flag[data-flag="my"] { background-image: url("/assets/flags/my.png?v=20260513-local-flags"); }

/* GNK services preview overrides. Keep these last so the preview page is stable on mobile. */
.gnk-services-hero h1 {
  font-size: 58px;
}

@media (max-width: 980px) {
  .gnk-services-hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gnk-services-hero h1 {
    max-width: 12ch;
    font-size: 44px;
    line-height: 1;
  }

  .gnk-services-faq {
    grid-template-columns: 1fr;
  }

  .seo-page-content__grid {
    grid-template-columns: 1fr;
  }

  .seo-link-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hero-gnk-services__cta {
    width: 100%;
  }

  .gnk-services-page .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .seo-page-content {
    padding: 4px 14px 18px;
  }

  .seo-page-cta {
    width: 100%;
  }

  .seo-link-grid {
    grid-template-columns: 1fr;
  }

  .gnk-services-page .brand,
  .gnk-services-page .nav,
  .gnk-services-page .header-actions {
    width: 100%;
  }

  .gnk-services-page .brand {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: center;
  }

  .gnk-services-page .brand .outline-btn,
  .gnk-services-page .nav a {
    min-height: 38px;
    justify-content: center;
    text-align: center;
  }

  .gnk-services-page .nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .gnk-services-page .nav a:last-child {
    grid-column: 1 / -1;
  }

  .gnk-services-hero {
    padding: 22px 14px 12px;
  }

  .gnk-services-hero__copy {
    padding-top: 0;
  }

  .gnk-services-hero h1,
  html[lang] .gnk-services-hero h1 {
    max-width: 100%;
    font-size: 40px;
    line-height: 1.02;
    letter-spacing: 0;
    overflow-wrap: normal;
  }

  .gnk-services-hero__copy > p:not(.eyebrow) {
    font-size: 16px;
  }

  .gnk-services-page-card,
  .gnk-services-card {
    width: 100%;
    min-width: 0;
  }

  .gnk-service-list .mini-link {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .gnk-service-list .mini-link small {
    max-width: none;
  }

  .gnk-service-list .link-arrow {
    width: 100%;
    min-height: 42px;
    white-space: normal;
    text-align: center;
  }

  .gnk-services-faq {
    padding: 10px 14px 18px;
  }
}

@media (max-width: 420px) {
  .gnk-services-hero h1,
  html[lang] .gnk-services-hero h1 {
    font-size: 34px;
  }

  .gnk-services-card h2 {
    font-size: 19px;
  }
}
