﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;800;900&display=swap');

:root {
  color-scheme: dark;
  --bg: #04070d;
  --bg-soft: #08101b;
  --panel: rgba(15, 24, 37, 0.78);
  --panel-strong: rgba(18, 28, 43, 0.94);
  --line: rgba(126, 151, 187, 0.22);
  --text: #f4f7ff;
  --muted: #aab3c2;
  --dim: #788394;
  --blue: #1d8dff;
  --cyan: #00d8ff;
  --violet: #8f3cff;
  --glow-blue: rgba(0, 136, 255, 0.46);
  --glow-violet: rgba(143, 60, 255, 0.34);
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 24%, rgba(24, 102, 255, 0.16), transparent 32%),
    radial-gradient(circle at 12% 90%, rgba(137, 44, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #060a12 0%, #03060b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(115deg, transparent 0 66%, rgba(22, 112, 255, 0.22) 66.2%, transparent 66.6%),
    linear-gradient(140deg, transparent 0 74%, rgba(0, 210, 255, 0.22) 74.1%, transparent 74.5%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 120px);
  opacity: 0.72;
  pointer-events: none;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 76px;
  padding: 0 clamp(20px, 7vw, 142px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 18px 45px rgba(0,0,0,0.28);
}

.studio-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 160px;
  text-decoration: none;
  white-space: nowrap;
}

.vp-mark {
  font-size: 29px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -3px;
  line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--blue) 45%, var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 22px var(--glow-blue);
}

.studio-word {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 5px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(244, 247, 255, 0.72);
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: rgba(49, 119, 255, 0.75);
  color: #fff;
  background: rgba(21, 33, 53, 0.56);
  box-shadow: 0 0 28px rgba(40, 114, 255, 0.16);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -21px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--violet), transparent);
}

.lang-tabs {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 18, 29, 0.82);
}

.lang-tabs a,
.lang-tabs strong {
  display: inline-flex;
  min-width: 54px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  color: rgba(244, 247, 255, 0.72);
  font-weight: 900;
  text-decoration: none;
}

.lang-tabs a:last-child,
.lang-tabs strong:last-child { border-right: 0; }
.lang-tabs strong { color: var(--blue); background: rgba(21, 33, 53, 0.7); }

.showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 48px;
  min-height: 360px;
  padding: 58px clamp(20px, 7vw, 142px) 42px;
  overflow: hidden;
  border-bottom: 1px solid rgba(126, 151, 187, 0.12);
}

.showcase-copy { position: relative; z-index: 2; }

.showcase h1 {
  margin: 0 0 24px;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.03;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(255,255,255,0.18);
}

.showcase p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.4;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

.action {
  display: inline-flex;
  min-width: 240px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.action.primary {
  border-color: rgba(91, 70, 255, 0.65);
  background: linear-gradient(135deg, #075bff, #6a20ff);
  box-shadow: 0 0 36px rgba(67, 77, 255, 0.32);
}

.action.secondary {
  background: rgba(10, 17, 28, 0.72);
}

.icon,
.line-icon,
.promo-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  color: var(--blue);
}

.grid-icon,
.apps-icon {
  width: 26px;
  height: 26px;
  background:
    linear-gradient(var(--blue), var(--blue)) 0 0 / 9px 9px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 17px 0 / 9px 9px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 17px / 9px 9px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 17px 17px / 9px 9px no-repeat;
  filter: drop-shadow(0 0 8px var(--glow-blue));
}

.download-icon { width: 26px; height: 28px; border-bottom: 3px solid currentColor; }
.download-icon::before { content: ""; position: absolute; left: 11px; top: 0; width: 4px; height: 18px; background: currentColor; }
.download-icon::after { content: ""; position: absolute; left: 6px; top: 12px; width: 13px; height: 13px; border-right: 4px solid currentColor; border-bottom: 4px solid currentColor; transform: rotate(45deg); }

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

@keyframes logo-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 34px rgba(30, 136, 255, 0.55)) drop-shadow(0 0 70px rgba(30, 136, 255, 0.18)); }
  50%       { filter: drop-shadow(0 0 40px rgba(143, 60, 255, 0.6))  drop-shadow(0 0 80px rgba(143, 60, 255, 0.22)); }
}

.showcase-art img {
  width: min(88%, 560px);
  height: auto;
  mix-blend-mode: screen;
  animation: logo-float 5s ease-in-out infinite, logo-glow 4s ease-in-out infinite;
}

.beam {
  position: absolute;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), transparent);
  box-shadow: 0 0 18px var(--blue), 0 0 42px rgba(0, 90, 255, 0.7);
  transform-origin: center;
}

.beam-one { width: 620px; right: -90px; bottom: 76px; transform: rotate(-34deg); }
.beam-two { width: 500px; right: 130px; top: 72px; opacity: 0.55; transform: rotate(-48deg); }

.content-shell {
  padding: 0 clamp(20px, 7vw, 142px) 26px;
}

.content-shell > h2,
.news-panel > h2 {
  margin: 34px 0 14px;
  font-size: 28px;
  font-weight: 800;
}

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

.direction-card,
.news-panel,
.promo-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 27, 41, 0.86), rgba(7, 12, 20, 0.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 16px 50px rgba(0,0,0,0.18);
}

.direction-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 20px;
  min-height: 160px;
  padding: 30px;
}

.direction-card h3,
.promo-card h3 {
  margin: 0 0 9px;
  font-size: 21px;
}

.direction-card p,
.promo-card p,
.empty-news p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.direction-card {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.direction-card:hover {
  border-color: rgba(29, 141, 255, 0.52);
  box-shadow: 0 0 32px rgba(29, 141, 255, 0.13), inset 0 1px 0 rgba(255,255,255,0.06);
  transform: translateY(-2px);
}

.direction-card a {
  display: inline-flex;
  margin-top: 16px;
  color: #568cff;
  font-weight: 800;
  text-decoration: none;
}

.direction-card a::after { content: "→"; margin-left: 10px; }

.line-icon {
  width: 58px;
  height: 58px;
  border: 4px solid currentColor;
  border-radius: 9px;
  filter: drop-shadow(0 0 12px currentColor);
}

.briefcase-icon::before { content: ""; position: absolute; left: 14px; right: 14px; top: -13px; height: 12px; border: 4px solid currentColor; border-bottom: 0; border-radius: 8px 8px 0 0; }
.briefcase-icon::after { content: ""; position: absolute; left: -4px; right: -4px; top: 24px; border-top: 4px solid currentColor; }
.game-icon { width: 66px; border-radius: 18px 18px 28px 28px; transform: perspective(80px) rotateX(8deg); color: var(--violet); }
.game-icon::before { content: "+"; position: absolute; left: 11px; top: 4px; font-size: 28px; font-weight: 900; }
.game-icon::after { content: "•••"; position: absolute; right: 7px; top: 10px; letter-spacing: 4px; font-size: 20px; }
.play-icon { border-radius: 50%; }
.play-icon::before { content: ""; position: absolute; left: 21px; top: 14px; border-left: 19px solid currentColor; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.apps-icon { border: 0; }

.lower-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: 28px;
  margin-top: 26px;
}

.news-panel { min-height: 292px; padding: 26px; }
.news-panel h2 { margin-top: -66px; margin-bottom: 18px; }
.empty-news { height: 100%; min-height: 220px; display: flex; align-items: center; justify-content: center; color: var(--dim); }

.promo-stack { display: grid; gap: 12px; align-content: start; }
.promo-card { display: grid; grid-template-columns: 70px 1fr 270px; gap: 24px; align-items: center; min-height: 142px; padding: 30px; }
.promo-card a { display: inline-flex; min-height: 60px; align-items: center; justify-content: center; border: 1px solid rgba(126, 151, 187, 0.34); border-radius: var(--radius); color: #fff; font-size: 26px; text-decoration: none; background: rgba(5, 10, 18, 0.45); }

.promo-icon { width: 54px; height: 54px; color: var(--blue); filter: drop-shadow(0 0 14px currentColor); }
.gift-icon { border: 4px solid currentColor; border-radius: 7px; }
.gift-icon::before { content: ""; position: absolute; left: 22px; top: -5px; bottom: -4px; width: 4px; background: currentColor; }
.gift-icon::after { content: ""; position: absolute; left: -4px; right: -4px; top: 16px; height: 4px; background: currentColor; }
.crown-icon { color: var(--violet); border-bottom: 5px solid currentColor; }
.crown-icon::before { content: "♕"; position: absolute; left: -2px; top: -19px; font-size: 67px; line-height: 1; }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 0 48px;
  align-items: start;
  padding: 36px clamp(20px, 7vw, 142px) 28px;
  border-top: 1px solid var(--line);
  background: rgba(9, 15, 25, 0.84);
  color: var(--muted);
}

.footer-brand small { display: block; margin-top: 12px; }
.footer-middle { display: flex; flex-direction: column; gap: 14px; }
.footer-contact { display: flex; gap: 12px; align-items: center; font-weight: 700; }
.footer-contact span { color: #d7dde8; min-width: 72px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.9em; }
.footer-links a:hover { color: #fff; }

/* Shared inner pages */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(20px, 7vw, 142px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 176px;
  height: 46px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 12px rgba(31, 139, 255, 0.35));
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
  color: rgba(244, 247, 255, 0.72);
  font-weight: 800;
}

.nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
}

.nav a:hover {
  border-color: rgba(49, 119, 255, 0.58);
  color: #fff;
  background: rgba(21, 33, 53, 0.56);
}

.language-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.language-switch a,
.language-switch strong {
  min-width: 38px;
  padding: 8px 10px;
  color: rgba(244, 247, 255, 0.74);
  text-align: center;
  text-decoration: none;
}

.language-switch strong {
  color: var(--blue);
  background: rgba(21, 33, 53, 0.7);
}
.page, .section { padding: 48px clamp(20px, 7vw, 142px); }
.card, .info-box, .contact-panel, .download-row, .program-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.button { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 21, 34, 0.8); color: #fff; }
.button.primary { background: linear-gradient(135deg, #075bff, #6a20ff); }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 1fr auto; height: auto; padding-top: 16px; padding-bottom: 16px; }
  .main-nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-art { min-height: 260px; }
  .direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lower-layout { grid-template-columns: 1fr; }
  .news-panel h2 { margin-top: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 24px 32px; }
  .footer-links { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .topbar { gap: 14px; }
  .studio-logo { min-width: 0; }
  .studio-word { font-size: 17px; letter-spacing: 3px; }
  .main-nav a { padding: 8px 12px; }
  .showcase { padding-top: 34px; }
  .showcase h1 { font-size: 42px; }
  .showcase-actions, .action { width: 100%; }
  .direction-grid, .promo-card, .site-footer { grid-template-columns: 1fr; }
  .direction-card { grid-template-columns: 1fr; }
  .promo-card a { min-height: 52px; font-size: 20px; }
}


.nav-sign {
  display: block;
  width: 176px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 12px rgba(31, 139, 255, 0.35));
}

.hero-sign {
  width: min(88%, 660px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(30, 136, 255, 0.44));
}

@media (max-width: 720px) {
  .nav-sign {
    width: 148px;
    height: 38px;
  }
}

/* Logo size corrections */
.studio-logo {
  min-width: 176px;
  width: 176px;
  height: 46px;
  flex: 0 0 176px;
}

.nav-sign {
  width: 176px !important;
  height: 46px !important;
  max-width: 176px !important;
  max-height: 46px !important;
}

.showcase-art img.hero-sign {
  width: min(92vw, 760px) !important;
  max-width: 760px !important;
  min-width: 520px;
}

.site-footer .studio-logo {
  width: 176px;
  height: 46px;
}

@media (max-width: 1180px) {
  .showcase-art img.hero-sign {
    width: min(86vw, 680px) !important;
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .studio-logo {
    width: 148px;
    min-width: 148px;
    height: 38px;
    flex-basis: 148px;
  }

  .nav-sign {
    width: 148px !important;
    height: 38px !important;
    max-width: 148px !important;
    max-height: 38px !important;
  }

  .showcase-art img.hero-sign {
    width: min(92vw, 520px) !important;
  }
}

/* Inner page mobile header */
@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .nav {
    justify-content: flex-start;
  }
}

/* Viewport scale tuning v4 */
:root {
  --page-max: 1650px;
  --page-pad: clamp(22px, 5vw, 96px);
}

.topbar,
.showcase,
.content-shell,
.site-footer,
.site-header,
.page,
.section {
  padding-left: max(var(--page-pad), calc((100vw - var(--page-max)) / 2 + 32px));
  padding-right: max(var(--page-pad), calc((100vw - var(--page-max)) / 2 + 32px));
}

.topbar {
  height: 64px;
  gap: 22px;
}

.topbar .studio-logo {
  width: 154px;
  min-width: 154px;
  height: 40px;
  flex-basis: 154px;
}

.topbar .nav-sign {
  width: 154px !important;
  height: 40px !important;
  max-width: 154px !important;
  max-height: 40px !important;
}

.main-nav {
  gap: 10px;
}

.main-nav a {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 15px;
}

.main-nav a.active::after {
  bottom: -15px;
}

.lang-tabs a,
.lang-tabs strong {
  min-width: 46px;
  height: 38px;
  font-size: 15px;
}

.showcase {
  grid-template-columns: minmax(430px, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(32px, 5vw, 82px);
  min-height: clamp(430px, 45vw, 640px);
  padding-top: clamp(48px, 5vw, 78px);
  padding-bottom: clamp(36px, 4vw, 58px);
}

.showcase h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(54px, 4.1vw, 76px);
}

.showcase p {
  max-width: 620px;
  font-size: clamp(22px, 1.65vw, 28px);
}

.showcase-actions {
  margin-top: 34px;
  gap: 16px;
}

.action {
  min-width: 210px;
  min-height: 54px;
  font-size: 19px;
}

.showcase-art {
  min-height: clamp(330px, 34vw, 520px);
  justify-items: center;
}

.showcase-art img.hero-sign {
  width: min(42vw, 690px) !important;
  max-width: 690px !important;
  min-width: 420px;
}

.beam-one {
  width: min(46vw, 720px);
  right: -70px;
  bottom: 78px;
}

.beam-two {
  width: min(38vw, 560px);
  right: 90px;
  top: 36px;
}

.content-shell > h2,
.news-panel > h2 {
  margin-top: 30px;
  font-size: 26px;
}

.direction-grid {
  gap: 14px;
}

.direction-card {
  grid-template-columns: 66px 1fr;
  min-height: 136px;
  padding: 24px;
}

.direction-card h3,
.promo-card h3 {
  font-size: 19px;
}

.direction-card p,
.promo-card p,
.empty-news p {
  font-size: 15px;
}

.line-icon {
  width: 50px;
  height: 50px;
}

.lower-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.news-panel {
  min-height: 250px;
}

.empty-news {
  min-height: 185px;
}

.promo-card {
  grid-template-columns: 58px 1fr 210px;
  min-height: 116px;
  padding: 22px 26px;
}

.promo-card a {
  min-height: 50px;
  font-size: 22px;
}

.promo-icon {
  width: 46px;
  height: 46px;
}

.site-footer {
  min-height: 96px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-footer .studio-logo {
  width: 154px;
  min-width: 154px;
  height: 40px;
}

.site-footer .nav-sign {
  width: 154px !important;
  height: 40px !important;
}

@media (min-width: 1800px) {
  :root {
    --page-max: 1760px;
  }

  .showcase {
    min-height: 660px;
  }

  .showcase-art img.hero-sign {
    width: min(39vw, 720px) !important;
  }
}

@media (max-width: 1280px) {
  :root {
    --page-pad: clamp(18px, 4vw, 58px);
  }

  .topbar {
    height: auto;
    grid-template-columns: auto 1fr auto;
  }

  .main-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .showcase {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  }

  .showcase h1 {
    font-size: clamp(44px, 5.2vw, 64px);
  }

  .showcase p {
    font-size: clamp(19px, 2.2vw, 24px);
  }

  .showcase-art img.hero-sign {
    width: min(44vw, 620px) !important;
    min-width: 360px;
  }
}

@media (max-width: 980px) {
  .showcase {
    grid-template-columns: 1fr;
  }

  .showcase-art img.hero-sign {
    width: min(86vw, 620px) !important;
    min-width: 0;
  }

  .direction-grid,
  .lower-layout {
    grid-template-columns: 1fr 1fr;
  }

  .promo-card {
    grid-template-columns: 48px 1fr;
  }

  .promo-card a {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .topbar,
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav,
  .nav {
    grid-column: 1 / -1;
  }

  .direction-grid,
  .lower-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

/* One-line hero title tuning v5 */
.showcase {
  grid-template-columns: minmax(650px, 0.98fr) minmax(420px, 1.02fr);
  gap: clamp(24px, 3.5vw, 58px);
}

.showcase h1 {
  white-space: nowrap;
  max-width: none;
  font-size: clamp(44px, 3.55vw, 66px);
}

.showcase p {
  max-width: 650px;
  font-size: clamp(19px, 1.45vw, 25px);
}

.showcase-art img.hero-sign {
  width: min(36vw, 620px) !important;
  max-width: 620px !important;
  min-width: 360px;
}

@media (max-width: 1420px) {
  .showcase {
    grid-template-columns: minmax(560px, 1fr) minmax(360px, 0.86fr);
  }

  .showcase h1 {
    font-size: clamp(40px, 3.7vw, 56px);
  }

  .showcase-art img.hero-sign {
    width: min(35vw, 500px) !important;
    min-width: 320px;
  }
}

@media (max-width: 1120px) {
  .showcase {
    grid-template-columns: 1fr;
  }

  .showcase h1 {
    white-space: normal;
    max-width: 760px;
  }

  .showcase-art img.hero-sign {
    width: min(78vw, 560px) !important;
    min-width: 0;
  }
}

/* Compact first viewport v6 */
.showcase {
  min-height: clamp(360px, 34vw, 500px);
  padding-top: clamp(28px, 3vw, 48px);
  padding-bottom: clamp(18px, 2.4vw, 34px);
  align-items: center;
}

.showcase h1 {
  margin-bottom: 16px;
}

.showcase p {
  line-height: 1.34;
}

.showcase-actions {
  margin-top: 26px;
}

.showcase-art {
  min-height: clamp(260px, 27vw, 390px);
}

.showcase-art img.hero-sign {
  width: min(33vw, 560px) !important;
  max-width: 560px !important;
  min-width: 320px;
}

.content-shell > h2 {
  margin-top: 22px;
}

.direction-card {
  min-height: 124px;
  padding: 20px 22px;
}

.lower-layout {
  margin-top: 18px;
}

@media (min-width: 1500px) {
  .showcase {
    min-height: 500px;
  }
}

@media (max-width: 1280px) {
  .showcase {
    min-height: 410px;
    padding-top: 28px;
    padding-bottom: 22px;
  }

  .showcase-art {
    min-height: 300px;
  }

  .showcase-art img.hero-sign {
    width: min(34vw, 470px) !important;
    min-width: 300px;
  }
}

@media (max-width: 980px) {
  .showcase {
    min-height: auto;
  }

  .showcase-art img.hero-sign {
    width: min(76vw, 520px) !important;
    min-width: 0;
  }
}

/* Final compact hero v7 */
.showcase {
  min-height: clamp(330px, 31vw, 460px);
  padding-top: clamp(18px, 2.2vw, 34px);
  padding-bottom: clamp(10px, 1.8vw, 24px);
}

.showcase h1 {
  margin-bottom: 12px;
}

.showcase-actions {
  margin-top: 22px;
}

.action {
  min-height: 50px;
}

.showcase-art {
  min-height: clamp(235px, 24vw, 350px);
}

.showcase-art img.hero-sign {
  width: min(31vw, 510px) !important;
  max-width: 510px !important;
  min-width: 300px;
}

.content-shell > h2 {
  margin-top: 18px;
}

.direction-card {
  min-height: 116px;
}

.action .download-icon {
  display: none;
}

@media (max-width: 1280px) {
  .showcase {
    min-height: 380px;
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .showcase-art {
    min-height: 270px;
  }

  .showcase-art img.hero-sign {
    width: min(31vw, 430px) !important;
    min-width: 280px;
  }
}

/* Product detail tabs v1 */
.product-detail-page {
  display: grid;
  gap: 28px;
}

.product-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  grid-template-areas:
    "box logo"
    "copy copy";
  gap: 24px 34px;
  align-items: center;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(29, 141, 255, 0.34);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 78% 18%, rgba(29, 141, 255, 0.2), transparent 34%),
    linear-gradient(145deg, rgba(17, 27, 41, 0.92), rgba(5, 9, 16, 0.86));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 70px rgba(0,0,0,0.24);
}

.product-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 62%, rgba(0, 216, 255, 0.22) 62.2%, transparent 62.5%),
    linear-gradient(148deg, transparent 0 74%, rgba(29, 141, 255, 0.22) 74.1%, transparent 74.4%);
  pointer-events: none;
}

.box-preview,
.product-hero-logo,
.product-hero-copy {
  position: relative;
  z-index: 1;
}

.box-preview {
  grid-area: box;
  display: grid;
  grid-template-columns: minmax(180px, 280px) 52px;
  align-items: stretch;
  min-height: 280px;
  justify-content: center;
  perspective: 900px;
}

.box-face {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(0, 216, 255, 0.5);
  border-radius: 8px 0 0 8px;
  background: linear-gradient(160deg, rgba(10, 19, 31, 0.98), rgba(18, 39, 68, 0.96));
  box-shadow: 0 0 36px rgba(0, 136, 255, 0.22);
}

.box-face img {
  width: 76px;
  height: 76px;
}

.box-face span {
  font-size: 54px;
  font-weight: 900;
  color: #fff;
}

.box-face strong {
  font-size: 24px;
  text-align: center;
}

.box-face small {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.box-side {
  border: 1px solid rgba(0, 216, 255, 0.28);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(90deg, rgba(5, 9, 16, 0.96), rgba(40, 35, 95, 0.86));
  transform: skewY(-9deg);
  transform-origin: left center;
  box-shadow: 18px 16px 35px rgba(0,0,0,0.28);
}

.product-hero-logo {
  grid-area: logo;
  display: grid;
  place-items: center;
}

.product-hero-logo img {
  width: min(100%, 520px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(29, 141, 255, 0.38));
}

.product-hero-copy {
  grid-area: copy;
  max-width: 980px;
}

.product-hero-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(38px, 4vw, 64px);
}

.product-hero-copy p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.45;
}

.product-tabs {
  display: grid;
  gap: 18px;
}

.product-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.tab-labels label {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(29, 141, 255, 0.42);
  border-radius: var(--radius);
  background: rgba(10, 17, 28, 0.78);
  color: rgba(244, 247, 255, 0.78);
  font-weight: 900;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

#tab-about:checked ~ .tab-labels label[for="tab-about"],
#tab-news:checked ~ .tab-labels label[for="tab-news"],
#tab-guide:checked ~ .tab-labels label[for="tab-guide"],
#tab-download:checked ~ .tab-labels label[for="tab-download"],
#tab-roadmap:checked ~ .tab-labels label[for="tab-roadmap"] {
  border-color: var(--cyan);
  color: #fff;
  background: linear-gradient(135deg, rgba(7, 91, 255, 0.72), rgba(106, 32, 255, 0.58));
  box-shadow: 0 0 26px rgba(0, 216, 255, 0.18);
}

.tab-panels {
  border: 1px solid rgba(29, 141, 255, 0.34);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17, 27, 41, 0.86), rgba(7, 12, 20, 0.72));
  min-height: 260px;
}

.tab-panel {
  display: none;
  padding: clamp(24px, 4vw, 42px);
}

.tab-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 40px);
}

.tab-panel p,
.roadmap-list {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

#tab-about:checked ~ .tab-panels .tab-about-panel,
#tab-news:checked ~ .tab-panels .tab-news-panel,
#tab-guide:checked ~ .tab-panels .tab-guide-panel,
#tab-download:checked ~ .tab-panels .tab-download-panel,
#tab-roadmap:checked ~ .tab-panels .tab-roadmap-panel {
  display: block;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.feature-grid span,
.timeline-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 12, 21, 0.54);
  padding: 16px;
  color: #fff;
  font-weight: 800;
}

.timeline-card {
  max-width: 720px;
}

.timeline-card time,
.timeline-card strong {
  display: block;
}

.timeline-card time {
  color: var(--blue);
  font-weight: 900;
}

.timeline-card strong {
  margin: 8px 0;
  font-size: 22px;
}

.roadmap-list {
  margin: 0;
  padding-left: 22px;
}

@media (max-width: 980px) {
  .product-hero-card {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "box" "copy";
  }

  .tab-labels,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .tab-labels,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .box-preview {
    grid-template-columns: 1fr 36px;
    min-height: 220px;
  }
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.license-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 12, 21, 0.54);
  padding: 18px;
}

.license-grid h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 20px;
}

.license-grid p {
  margin: 0;
}

@media (max-width: 1180px) {
  .tab-labels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .license-grid,
  .tab-labels {
    grid-template-columns: 1fr;
  }
}

/* License tab fallback rules */
#tab-license:checked ~ .tab-labels label[for="tab-license"] {
  border-color: var(--cyan);
  color: #fff;
  background: linear-gradient(135deg, rgba(7, 91, 255, 0.72), rgba(106, 32, 255, 0.58));
  box-shadow: 0 0 26px rgba(0, 216, 255, 0.18);
}

#tab-license:checked ~ .tab-panels .tab-license-panel {
  display: block;
}

/* Mobile layout v1 */
@media (max-width: 760px) {
  :root {
    --page-pad: 16px;
  }

  body {
    overflow-x: hidden;
  }

  body::before {
    background:
      linear-gradient(145deg, transparent 0 70%, rgba(0, 210, 255, 0.14) 70.2%, transparent 70.5%),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 92px);
  }

  .topbar {
    position: sticky;
    grid-template-columns: 1fr auto;
    gap: 12px;
    height: auto;
    min-height: 64px;
    padding: 10px 16px 12px;
  }

  .topbar .studio-logo,
  .site-footer .studio-logo,
  .studio-logo {
    width: 134px;
    min-width: 134px;
    height: 36px;
    flex-basis: 134px;
  }

  .topbar .nav-sign,
  .site-footer .nav-sign,
  .nav-sign {
    width: 134px !important;
    height: 36px !important;
    max-width: 134px !important;
    max-height: 36px !important;
  }

  .lang-tabs {
    justify-self: end;
  }

  .lang-tabs a,
  .lang-tabs strong {
    min-width: 42px;
    height: 36px;
    font-size: 14px;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    overflow: visible;
  }

  .topbar.burger-open .main-nav {
    display: flex;
    flex-direction: column;
    grid-column: unset;
    grid-template-columns: unset;
    width: 100%;
  }

  .main-nav a {
    min-height: 38px;
    justify-content: center;
    padding: 7px 8px;
    font-size: 13px;
    text-align: center;
  }

  .main-nav a.active::after {
    display: none;
  }

  .showcase {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: 0;
    padding: 24px 16px 18px;
  }

  .showcase-copy {
    order: 1;
  }

  .showcase-art {
    order: 2;
    min-height: 0;
    padding: 4px 0 0;
  }

  .showcase h1 {
    max-width: 100%;
    white-space: normal;
    margin-bottom: 12px;
    font-size: clamp(34px, 11vw, 48px);
    line-height: 1.05;
  }

  .showcase p {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.42;
  }

  .showcase-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }

  .action {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    font-size: 18px;
  }

  .showcase-art img.hero-sign {
    width: min(82vw, 360px) !important;
    min-width: 0;
    max-width: 360px !important;
  }

  .beam {
    opacity: 0.45;
  }

  .beam-one {
    width: 88vw;
    right: -26vw;
    bottom: 26px;
  }

  .beam-two {
    width: 70vw;
    right: -10vw;
    top: 10px;
  }

  .content-shell {
    padding: 0 16px 22px;
  }

  .content-shell > h2,
  .news-panel > h2 {
    margin: 22px 0 12px;
    font-size: 24px;
  }

  .direction-grid,
  .lower-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .direction-grid {
    gap: 10px;
  }

  .direction-card {
    grid-template-columns: 52px 1fr;
    gap: 16px;
    min-height: 112px;
    padding: 18px;
  }

  .direction-card h3,
  .promo-card h3 {
    font-size: 18px;
  }

  .direction-card p,
  .promo-card p,
  .empty-news p {
    font-size: 14px;
  }

  .line-icon {
    width: 44px;
    height: 44px;
    border-width: 3px;
  }

  .lower-layout {
    gap: 12px;
    margin-top: 12px;
  }

  .news-panel {
    min-height: 190px;
    padding: 18px;
  }

  .empty-news {
    min-height: 120px;
    text-align: center;
  }

  .promo-card {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 18px;
  }

  .promo-card a {
    grid-column: 1 / -1;
    min-height: 48px;
    font-size: 18px;
  }

  .promo-icon {
    width: 40px;
    height: 40px;
  }

  .site-footer {
    gap: 16px;
    min-height: 0;
    padding: 18px 16px 24px;
  }

  .footer-contact {
    align-items: flex-start;
  }

  .footer-links {
    gap: 10px;
  }

  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 134px;
    height: 36px;
  }

  .brand span {
    display: none;
  }

  .nav {
    justify-content: flex-start;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nav a,
  .language-switch a,
  .language-switch strong {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .page,
  .section {
    padding: 22px 16px;
  }

  .page h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .program-item,
  .download-row,
  .split,
  .product-title {
    grid-template-columns: 1fr;
  }

  .cards,
  .feature-grid,
  .license-grid,
  .tab-labels {
    grid-template-columns: 1fr;
  }

  .product-hero-card {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "box" "copy";
    padding: 18px;
  }

  .product-hero-logo img {
    width: min(82vw, 340px);
  }

  .box-preview {
    grid-template-columns: 1fr 34px;
    min-height: 210px;
  }

  .box-face {
    padding: 22px;
  }

  .box-face span {
    font-size: 44px;
  }

  .product-hero-copy h1 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .tab-labels label {
    min-height: 46px;
  }

  .tab-panels {
    min-height: 0;
  }

  .tab-panel {
    padding: 18px;
  }
}

@media (max-width: 420px) {
  .main-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase h1 {
    font-size: clamp(30px, 10vw, 38px);
  }

  .showcase p {
    font-size: 16px;
  }

  .direction-card,
  .promo-card {
    grid-template-columns: 1fr;
  }
}

/* Contact details v1 */
.contact-details {
  display: grid;
  gap: 18px;
}

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

.contact-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 12, 21, 0.54);
  padding: 18px;
}

.contact-grid h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

.contact-grid a {
  color: #63a0ff;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-grid a:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Unified header v1 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  min-height: 64px;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 18px 45px rgba(0,0,0,0.28);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  width: 154px;
  min-width: 154px;
  height: 40px;
  flex: 0 0 154px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .brand-logo {
  display: block;
  width: 154px;
  height: 40px;
  max-width: 154px;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 12px rgba(31, 139, 255, 0.35));
}

.site-header .brand span {
  display: none;
}

.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  color: rgba(244, 247, 255, 0.72);
  font-weight: 700;
}

.site-header .nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: rgba(244, 247, 255, 0.72);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.site-header .nav a:hover {
  border-color: rgba(49, 119, 255, 0.75);
  color: #fff;
  background: rgba(21, 33, 53, 0.56);
  box-shadow: 0 0 28px rgba(40, 114, 255, 0.16);
}

.site-header .language-switch {
  margin-left: auto;
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 18, 29, 0.82);
}

.site-header .language-switch a,
.site-header .language-switch strong {
  display: inline-flex;
  min-width: 46px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  color: rgba(244, 247, 255, 0.72);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.site-header .language-switch a:last-child,
.site-header .language-switch strong:last-child {
  border-right: 0;
}

.site-header .language-switch strong {
  color: var(--blue);
  background: rgba(21, 33, 53, 0.7);
}

@media (max-width: 1280px) {
  .site-header {
    min-height: 64px;
    grid-template-columns: auto 1fr;
  }

  .site-header .nav {
    justify-content: flex-end;
    overflow-x: auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 64px;
    padding: 10px 16px 12px;
  }

  .site-header .brand {
    width: 134px;
    min-width: 134px;
    height: 36px;
    flex-basis: 134px;
  }

  .site-header .brand-logo {
    width: 134px;
    height: 36px;
    max-width: 134px;
    max-height: 36px;
  }

  .site-header .nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    overflow: visible;
  }

  .site-header .nav a,
  .site-header .language-switch a,
  .site-header .language-switch strong {
    min-height: 38px;
    justify-content: center;
    font-size: 13px;
    text-align: center;
  }

  .site-header .language-switch {
    margin-left: 0;
  }
}

/* Header alignment active v2 */
.site-header {
  grid-template-columns: auto 1fr auto;
}

.site-header .nav {
  justify-content: center;
}

.site-header .language-switch {
  margin-left: 12px;
}

.site-header .nav a.active {
  border-color: rgba(49, 119, 255, 0.75);
  color: #fff;
  background: rgba(21, 33, 53, 0.56);
  box-shadow: 0 0 28px rgba(40, 114, 255, 0.16);
}

.site-header .nav a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -15px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--violet), transparent);
}

@media (max-width: 1280px) {
  .site-header .nav {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header .nav {
    justify-content: stretch;
  }

  .site-header .nav a.active::after {
    display: none;
  }
}

/* Site news card v1 */
.site-news-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 12, 21, 0.54);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.site-news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 141, 255, 0.44);
  box-shadow: 0 12px 36px rgba(0, 136, 255, 0.14);
}

.site-news-card time {
  color: var(--blue);
  font-weight: 900;
}

.site-news-card h3 {
  margin: 0;
  font-size: 22px;
}

.site-news-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

/* Hero text refresh v9 */
.showcase .showcase-tagline {
  max-width: 720px;
  color: #f4f7ff;
  font-size: clamp(20px, 1.55vw, 26px);
}

.showcase .showcase-tagline strong {
  font-weight: 800;
}

.showcase .showcase-note {
  max-width: 760px;
  margin-top: 12px;
  color: #aeb8c9;
  font-size: clamp(16px, 1.05vw, 19px);
  line-height: 1.5;
}

.showcase-copy > p + p {
  margin-top: 10px;
}

@media (max-width: 1280px) {
  .showcase .showcase-tagline {
    font-size: clamp(18px, 1.65vw, 22px);
  }

  .showcase .showcase-note {
    font-size: 16px;
  }

  .action {
    min-width: 190px;
  }
}

@media (max-width: 760px) {
  .showcase .showcase-tagline,
  .showcase .showcase-note {
    font-size: 16px;
  }
}


/* About page content v10 */
.about-content {
  display: grid;
  gap: 16px;
  max-width: 1100px;
  padding: clamp(22px, 4vw, 42px);
}

.about-content h2 {
  margin: 18px 0 0;
  font-size: clamp(24px, 2.6vw, 34px);
}

.about-content h3 {
  margin: 10px 0 0;
  color: #f4f7ff;
  font-size: 21px;
}

.about-content p,
.about-content li {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.about-content p,
.about-content ul {
  margin: 0;
}

.about-content a {
  color: #63a0ff;
  font-weight: 800;
  text-decoration: none;
}

.about-content a:hover {
  color: #fff;
}

/* Contacts page */

.contacts-body {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contacts-section h2 {
  margin: 0 0 16px;
  font-size: clamp(18px, 2vw, 22px);
}

.contacts-fast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.contact-fast-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 26px;
  border: 1px solid rgba(29, 141, 255, 0.38);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(7,91,255,0.09), rgba(106,32,255,0.06));
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.contact-fast-card:hover {
  border-color: rgba(29,141,255,0.7);
  box-shadow: 0 8px 32px rgba(0,136,255,0.14);
  transform: translateY(-2px);
}

.contact-fast-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.contact-fast-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.contact-fast-note {
  font-size: 13px;
  color: var(--dim);
  margin-top: 2px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.contact-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17,27,41,0.86), rgba(7,12,20,0.72));
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
  border-color: rgba(29,141,255,0.4);
  box-shadow: 0 6px 24px rgba(0,136,255,0.1);
}

.contact-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
}

.contact-card p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.contact-card a {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  word-break: break-all;
}

.contact-card a:hover { color: #fff; }

/* Order and investors status pages v34 */
.status-page {
  min-height: 560px;
}

.status-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  overflow: hidden;
  max-width: 1240px;
  padding: clamp(28px, 4.5vw, 58px);
  border: 1px solid rgba(61, 132, 241, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 16%, rgba(29, 141, 255, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(13, 28, 51, 0.88), rgba(7, 12, 21, 0.78));
  box-shadow: 0 24px 70px rgba(0, 7, 20, 0.36);
}

.status-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  right: -150px;
  bottom: -190px;
  border: 1px solid rgba(0, 216, 255, 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(29, 141, 255, 0.025),
    0 0 0 104px rgba(143, 60, 255, 0.018);
}

.status-intro,
.status-contact-list {
  position: relative;
  z-index: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 216, 255, 0.28);
  border-radius: 999px;
  color: #7eeaff;
  background: rgba(0, 153, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 216, 255, 0.9);
}

.status-intro h2 {
  max-width: 640px;
  margin: 0 0 14px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
}

.status-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
}

.status-intro a {
  color: #72b5ff;
  text-decoration: none;
}

.status-intro a:hover {
  color: #fff;
}

.status-contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.status-contact-card {
  position: relative;
  justify-content: center;
  min-height: 154px;
  padding-right: 54px;
  background:
    radial-gradient(circle at 100% 0, rgba(0, 216, 255, 0.11), transparent 42%),
    linear-gradient(135deg, rgba(7, 91, 255, 0.14), rgba(106, 32, 255, 0.09));
  backdrop-filter: blur(10px);
}

.status-contact-card::after {
  content: "→";
  position: absolute;
  right: 22px;
  bottom: 20px;
  color: var(--blue);
  font-size: 22px;
  transition: color 0.2s, transform 0.2s;
}

.status-contact-card:hover::after {
  color: var(--cyan);
  transform: translateX(4px);
}

.status-contact-card .contact-fast-value {
  overflow-wrap: anywhere;
  font-size: clamp(16px, 1.45vw, 20px);
}

.status-contact-card .contact-fast-note {
  margin-top: 8px;
  color: rgba(202, 215, 235, 0.7);
}

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

@media (max-width: 620px) {
  .status-page {
    min-height: 0;
  }

  .status-hero {
    gap: 24px;
    padding: 22px 18px;
    border-radius: 12px;
  }

  .status-contact-list {
    grid-template-columns: 1fr;
  }

  .status-contact-card {
    min-height: 132px;
  }
}

.requisites-grid {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.requisite-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}

.requisite-row:last-child { border-bottom: none; }
.requisite-row:nth-child(even) { background: rgba(255,255,255,0.02); }

.requisite-label {
  color: var(--muted);
  font-size: 14px;
  align-self: center;
}

.requisite-value {
  font-size: 14px;
  color: var(--text);
  align-self: center;
}

.requisite-value a { color: var(--blue); text-decoration: none; }
.requisite-value a:hover { color: #fff; }

.requisite-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--dim);
}

.requisite-note a { color: var(--blue); text-decoration: none; }

@media (max-width: 560px) {
  .requisite-row { grid-template-columns: 1fr; gap: 4px; }
  .requisite-label { font-size: 12px; color: var(--dim); }
}

/* Legal document pages */

.legal-body {
  padding: 32px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17,27,41,0.86), rgba(7,12,20,0.72));
}

.legal-body h2 {
  margin: 36px 0 12px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  margin: 22px 0 8px;
  font-size: 16px;
  color: var(--text);
}

.legal-body p,
.legal-body li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  text-align: justify;
  margin: 0 0 10px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal-body li { margin: 0 0 6px; }

.legal-body strong { color: var(--text); }

.legal-body code {
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(29,141,255,0.12);
  color: var(--cyan);
}

.legal-body a {
  color: var(--blue);
  text-decoration: none;
}

.legal-body a:hover { color: #fff; }

.legal-body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

.legal-meta span { display: inline-flex; gap: 6px; }
.legal-meta strong { color: var(--muted); }

.legal-variant-title {
  margin: 32px 0 12px;
  padding: 10px 16px;
  border-left: 3px solid var(--blue);
  background: rgba(29,141,255,0.07);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.legal-checkbox-demo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  margin: 12px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-checkbox-demo input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .legal-body { padding: 20px 18px; }
}

/* About page */

.about-body {
  padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(17,27,41,0.86), rgba(7,12,20,0.72));
}

.about-body > p,
.about-body h2,
.about-body h3 {
  margin: 0 0 12px;
}

.about-body > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  text-align: justify;
}

.about-body h2 {
  margin-top: 32px;
  font-size: clamp(20px, 2.2vw, 26px);
}

.about-body h3 {
  margin-top: 20px;
  font-size: 17px;
  color: var(--text);
}

.founder-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  margin: 20px 0 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
}

.founder-photo {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.founder-info h2 { margin: 0 0 4px; font-size: 20px; }

.founder-role {
  color: var(--muted);
  font-size: 0.88em;
  margin: 0 0 14px;
}

.founder-info p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  text-align: justify;
  margin: 0 0 10px;
}

.founder-info a { color: var(--blue); font-weight: 700; text-decoration: none; }
.founder-info a:hover { color: #fff; }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 8px 0 0;
}

.principle-card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.principle-card:hover {
  border-color: rgba(29,141,255,0.44);
  box-shadow: 0 8px 28px rgba(0,136,255,0.1);
}

.principle-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--text);
}

.principle-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: justify;
}

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 32px 0 0;
  padding: 24px 28px;
  border: 1px solid rgba(49,119,255,0.35);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(7,91,255,0.08), rgba(106,32,255,0.06));
}

.about-cta h2 { margin: 0 0 4px; font-size: 20px; }
.about-cta p  { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 640px) {
  .about-body { padding: 20px 18px; }
  .founder-block { grid-template-columns: 1fr; }
  .founder-photo { max-width: 180px; }
  .about-cta { flex-direction: column; align-items: flex-start; }
}

/* Real PNG icons v11 */
.line-icon,
.promo-icon {
  display: block;
  width: 58px;
  height: 58px;
  border: 0 !important;
  border-radius: 0 !important;
  color: transparent !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  filter: drop-shadow(0 0 12px rgba(29, 141, 255, 0.42));
  transform: none !important;
}

.line-icon::before,
.line-icon::after,
.promo-icon::before,
.promo-icon::after {
  content: none !important;
  display: none !important;
}

.briefcase-icon { background-image: url("/assets/icons/icon-business.png?v=2") !important; }
.game-icon { background-image: url("/assets/icons/icon-games.png?v=2") !important; }
.play-icon { background-image: url("/assets/icons/icon-media.png?v=2") !important; }
.apps-icon { background-image: url("/assets/icons/icon-utilities.png?v=2") !important; }
.gift-icon { background-image: url("/assets/icons/icon-demo.png?v=2") !important; }
.crown-icon { background-image: url("/assets/icons/icon-support.png?v=2") !important; }

@media (max-width: 760px) {
  .line-icon,
  .promo-icon {
    width: 48px;
    height: 48px;
  }
}



/* News page v12 */
.site-news-card a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}

.news-list {
  display: grid;
  gap: 18px;
}

.news-entry {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(29, 141, 255, 0.12), transparent 34%),
    rgba(8, 14, 24, 0.72);
  box-shadow: var(--shadow);
}

.news-entry time {
  color: var(--blue);
  font-weight: 900;
}

.news-entry h2,
.news-entry h1 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 34px);
}

.news-entry p {
  max-width: 980px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.news-entry-featured {
  display: block;
}

.news-entry-featured > * + * {
  margin-top: 14px;
}

.news-entry-featured::after {
  content: "";
  display: table;
  clear: both;
}

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

.news-sketch {
  margin: 0;
  border: 1px solid rgba(90, 124, 182, 0.34);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8, 14, 24, 0.62);
  box-shadow: 0 18px 32px rgba(2, 8, 20, 0.28);
}

.news-sketch img {
  display: block;
  width: 100%;
  height: auto;
}

.news-sketch figcaption {
  padding: 14px 16px 16px;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .news-sketch-grid {
    grid-template-columns: 1fr;
  }
}

/* Three-column news workspace v34 */
.news-workspace-page {
  width: 100%;
  padding: clamp(18px, 2.2vw, 36px) clamp(12px, 2.6vw, 48px) clamp(42px, 6vw, 84px);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 27fr) minmax(0, 46fr) minmax(0, 27fr);
  gap: clamp(12px, 1.35vw, 24px);
  align-items: start;
  max-width: 1920px;
  margin: 0 auto;
}

.news-index-panel,
.news-widget-panel,
.news-reader-panel {
  min-width: 0;
}

.news-index-panel,
.news-widget-panel {
  position: sticky;
  top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(29, 141, 255, 0.1), transparent 38%),
    rgba(8, 14, 24, 0.8);
  box-shadow: var(--shadow);
}

.news-index-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 36px);
  overflow: hidden;
}

.news-index-heading,
.news-widget-heading {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.news-index-heading .eyebrow {
  margin: 0 0 5px;
}

.news-index-heading h1,
.news-index-heading h2,
.news-widget-heading h2 {
  margin: 0;
  color: #fff;
  line-height: 1.18;
}

.news-index-heading h1,
.news-index-heading h2 {
  font-size: clamp(22px, 1.7vw, 30px);
}

.news-index-list {
  display: grid;
  gap: 9px;
  padding: 12px;
  overflow: auto;
  scrollbar-color: rgba(83, 147, 255, 0.7) rgba(7, 14, 28, 0.55);
}

.news-index-card {
  display: grid;
  gap: 7px;
  padding: 14px 15px;
  border: 1px solid rgba(91, 125, 181, 0.3);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  background: rgba(5, 12, 23, 0.66);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.news-index-card:hover {
  transform: translateY(-2px);
  border-color: rgba(66, 139, 255, 0.75);
  background: rgba(14, 29, 53, 0.86);
}

.news-index-card.is-current {
  border-color: rgba(58, 132, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(36, 112, 255, 0.2), transparent 65%),
    rgba(12, 25, 47, 0.92);
  box-shadow: inset 3px 0 0 var(--blue), 0 10px 28px rgba(0, 55, 156, 0.18);
}

.news-index-card time {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.news-index-card strong {
  color: #f6f9ff;
  font-size: 15px;
  line-height: 1.35;
}

.news-index-card span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-reader-panel .news-entry {
  min-height: 460px;
  padding: clamp(22px, 3vw, 42px);
}

.news-reader-panel .news-entry h2,
.news-reader-panel .news-entry h1 {
  font-size: clamp(27px, 2.4vw, 42px);
  line-height: 1.18;
}

.news-reader-panel .news-entry p {
  max-width: none;
  font-size: clamp(16px, 1.1vw, 18px);
}

.news-widget-panel {
  overflow: hidden;
}

.news-widget-heading h2 {
  font-size: clamp(21px, 1.55vw, 28px);
}

.news-widget-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.vpnews-widget {
  display: block;
  width: 100%;
  height: min(820px, calc(100vh - 205px));
  min-height: 520px;
  border: 0;
  background: #edf5ff;
}

.news-widget-link {
  display: flex;
  justify-content: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
  background: rgba(5, 12, 23, 0.7);
}

.news-widget-link:hover {
  color: #fff;
  background: rgba(17, 39, 72, 0.86);
}

@media (max-width: 1250px) {
  .news-layout {
    grid-template-columns: minmax(250px, 32fr) minmax(0, 68fr);
  }

  .news-widget-panel {
    position: static;
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
  }

  .news-widget-heading,
  .news-widget-link {
    width: 100%;
  }

  .vpnews-widget {
    width: min(100%, 560px);
    height: 700px;
  }
}

@media (max-width: 760px) {
  .news-workspace-page {
    padding: 14px 10px 44px;
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-index-panel,
  .news-widget-panel {
    position: static;
  }

  .news-index-panel {
    max-height: none;
  }

  .news-index-list {
    max-height: 390px;
  }

  .news-reader-panel .news-entry {
    padding: 20px 16px;
  }

  .news-single-figure {
    float: none;
    max-width: 100%;
    margin: 12px 0 18px;
  }

  .vpnews-widget {
    width: 100%;
    height: 640px;
    min-height: 0;
  }
}

/* Support page v14 */
.page-lead {
  max-width: 880px;
  margin: -10px 0 28px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.support-hero-panel,
.support-product-panel,
.support-card,
.support-product-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 14, 24, 0.72);
  box-shadow: var(--shadow);
}

.support-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: 22px;
  background:
    linear-gradient(135deg, rgba(29, 141, 255, 0.16), transparent 42%),
    rgba(8, 14, 24, 0.78);
}

.support-hero-panel h2,
.support-card h2,
.support-product-panel h2,
.support-product-row h3 {
  margin: 0 0 10px;
}

.support-hero-panel p,
.support-card p,
.support-product-row p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.support-actions {
  display: grid;
  gap: 10px;
  min-width: min(340px, 100%);
}

.support-actions a,
.support-card a,
.support-product-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid rgba(56, 132, 255, 0.48);
  border-radius: 8px;
  color: #f4f7ff;
  font-weight: 900;
  text-decoration: none;
  background: rgba(10, 19, 34, 0.72);
}

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

.support-card {
  padding: 22px;
}

.support-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.support-card a {
  width: fit-content;
  margin-top: 16px;
}

.support-product-panel {
  padding: clamp(22px, 3vw, 30px);
}

.support-product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .support-hero-panel,
  .support-product-row {
    grid-template-columns: 1fr;
  }

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

  .support-actions a,
  .support-card a,
  .support-product-row a {
    width: 100%;
  }
}

/* Bakery product page v15 */
.program-list {
  display: grid;
  gap: 18px;
}

.program-item.product-card {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(18px, 2.6vw, 30px);
  background:
    linear-gradient(135deg, rgba(29, 141, 255, 0.13), transparent 38%),
    rgba(8, 14, 24, 0.74);
  box-shadow: var(--shadow);
}

.program-media {
  display: block;
  min-width: 0;
}

.program-box-thumb {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.42));
}

.program-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 44px);
}

.program-copy p:not(.eyebrow) {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-row span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(56, 132, 255, 0.34);
  border-radius: 999px;
  color: #d7e2f6;
  font-size: 14px;
  font-weight: 800;
  background: rgba(10, 19, 34, 0.62);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-weight: 900;
  text-decoration: none;
}

.button.disabled {
  cursor: default;
  opacity: 0.62;
}

.bakery-hero {
  grid-template-columns: minmax(240px, 430px) minmax(0, 1fr);
  grid-template-areas: "media copy";
}

.bakery-hero .product-box-media,
.bakery-hero .product-hero-copy {
  position: relative;
  z-index: 1;
}

.product-box-media {
  grid-area: media;
  display: grid;
  place-items: center;
}

.product-box-image {
  display: block;
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 26px 40px rgba(0, 0, 0, 0.5));
}

.bakery-tabs .tab-labels {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

#tab-benefits:checked ~ .tab-labels label[for="tab-benefits"],
#tab-demo:checked ~ .tab-labels label[for="tab-demo"],
#tab-buy:checked ~ .tab-labels label[for="tab-buy"],
.bakery-tabs #tab-roadmap:checked ~ .tab-labels label[for="tab-roadmap"] {
  border-color: var(--cyan);
  color: #fff;
  background: linear-gradient(135deg, rgba(7, 91, 255, 0.72), rgba(106, 32, 255, 0.58));
  box-shadow: 0 0 26px rgba(0, 216, 255, 0.18);
}

#tab-benefits:checked ~ .tab-panels .tab-benefits-panel,
#tab-demo:checked ~ .tab-panels .tab-demo-panel,
#tab-buy:checked ~ .tab-panels .tab-buy-panel,
.bakery-tabs #tab-roadmap:checked ~ .tab-panels .tab-roadmap-panel {
  display: block;
}

.bakery-tabs #tab-about:checked ~ .tab-labels label[for="tab-about"],
.bakery-tabs #tab-download:checked ~ .tab-labels label[for="tab-download"],
.bakery-tabs #tab-guide:checked ~ .tab-labels label[for="tab-guide"] {
  border-color: var(--cyan);
  color: #fff;
  background: linear-gradient(135deg, rgba(7, 91, 255, 0.72), rgba(106, 32, 255, 0.58));
  box-shadow: 0 0 26px rgba(0, 216, 255, 0.18);
}

.tab-panel h3 {
  margin: 26px 0 12px;
  color: #fff;
  font-size: 22px;
}

.check-list,
.step-list {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

@media (max-width: 1180px) {
  .program-item.product-card,
  .bakery-hero {
    grid-template-columns: 1fr;
  }

  .bakery-hero {
    grid-template-areas: "media" "copy";
  }

  .bakery-tabs .tab-labels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .program-item.product-card,
  .bakery-tabs .tab-labels {
    grid-template-columns: 1fr;
  }

  .program-box-thumb,
  .product-box-image {
    max-height: 300px;
  }

  .action-row .button {
    width: 100%;
  }
}

/* Bakery roadmap v16 */
.language-note {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px !important;
  padding: 10px 14px;
  border: 1px solid rgba(0, 216, 255, 0.38);
  border-radius: 8px;
  color: #f4f7ff !important;
  font-weight: 900;
  background: rgba(8, 25, 42, 0.78);
}

.benefit-grid span {
  align-content: start;
  min-height: 92px;
}

.fit-grid,
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.fit-grid article,
.roadmap-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 12, 21, 0.54);
  padding: 18px;
}

.roadmap-grid article h3,
.fit-grid article h3 {
  margin-top: 0;
}

.roadmap-grid article p {
  margin: 0;
}

@media (max-width: 1280px) {
  .bakery-tabs .tab-labels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .fit-grid,
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}


/* Downloads links v17 */
.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: clamp(20px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.download-meta {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.download-meta code {
  overflow-wrap: anywhere;
  color: #dce8ff;
  font-size: 13px;
}

.download-actions {
  display: grid;
  gap: 12px;
  min-width: min(260px, 100%);
}

@media (max-width: 1024px) {
  .download-card {
    grid-template-columns: 1fr;
  }

  .download-actions .button {
    width: 100%;
  }
}

.download-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* SmartScreen notice v35 */
.smartscreen-warning {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 360px);
  gap: 20px;
  align-items: center;
  margin: 20px 0;
  padding: 18px;
  border: 1px solid rgba(255, 178, 64, 0.38);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 171, 45, 0.10), rgba(6, 18, 38, 0.82) 52%),
    rgba(8, 17, 31, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.smartscreen-warning__copy {
  min-width: 0;
}

.smartscreen-warning__title {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.smartscreen-warning__icon {
  display: inline-grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #ffab2d;
  color: #101826;
  font-weight: 900;
}

.smartscreen-warning p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.smartscreen-warning strong {
  color: #fff;
}

.smartscreen-warning a {
  color: #8ebcff;
}

.smartscreen-warning__steps {
  margin: 10px 0 0;
  padding-left: 22px;
  color: #eaf1ff;
  font-size: 14px;
  line-height: 1.55;
}

.smartscreen-warning__media {
  margin: 0;
}

.smartscreen-warning__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(147, 190, 255, 0.28);
  border-radius: 11px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}

.smartscreen-warning__media figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .smartscreen-warning {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .smartscreen-warning__media {
    max-width: 520px;
  }
}

.news-single-figure {
  float: left;
  max-width: 300px;
  margin: 4px 28px 16px 0;
}

/* Bakery release modal v22 */
.roadmap-grid > * {
  display: grid;
  align-content: start;
  min-height: 208px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(6, 12, 21, 0.54);
  padding: 18px;
}

.roadmap-card {
  display: grid;
  gap: 12px;
  width: 100%;
  min-height: 208px;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

button.roadmap-card {
  appearance: none;
}

.roadmap-card:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 185, 121, 0.56);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.roadmap-card-done {
  background: linear-gradient(135deg, rgba(33, 109, 68, 0.34), rgba(8, 14, 24, 0.82));
  border-color: rgba(79, 185, 121, 0.38);
}

.roadmap-status {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(99, 212, 145, 0.38);
  color: #cffff0;
  font-size: 13px;
  font-weight: 900;
  background: rgba(25, 87, 56, 0.42);
}

.roadmap-link {
  margin-top: auto;
  color: #8fc3ff;
  font-size: 15px;
  font-weight: 800;
}

.release-modal[hidden] {
  display: none;
}

.release-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.release-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.74);
  backdrop-filter: blur(8px);
}

.release-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border: 1px solid rgba(79, 185, 121, 0.38);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 42, 31, 0.94), rgba(7, 12, 20, 0.96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.release-modal__eyebrow {
  margin: 0 0 10px;
  color: #9fe4bf;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.release-modal__dialog h3 {
  margin: 0 0 16px;
}

.release-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(126, 151, 187, 0.3);
  border-radius: 999px;
  background: rgba(9, 15, 25, 0.88);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

body.modal-open {
  overflow: hidden;
}

/* =========================================================
   Programs catalog v2
   ========================================================= */

.programs-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.filter-btn {
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.filter-btn:hover {
  border-color: var(--blue);
  color: var(--text);
}

.filter-btn.active {
  border-color: var(--blue);
  background: rgba(29, 141, 255, 0.12);
  color: var(--text);
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.program-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.program-card:hover {
  border-color: rgba(29, 141, 255, 0.55);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 100, 255, 0.1);
}

.program-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: rgba(8, 14, 24, 0.7);
  text-decoration: none;
  overflow: hidden;
}

.program-card-media img {
  max-height: 160px;
  max-width: 75%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.3s ease;
}

.program-card:hover .program-card-media img {
  transform: scale(1.04);
}

.program-card-media-soon {
  cursor: default;
  min-height: 160px;
}

.program-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.program-badge.free {
  background: rgba(0, 216, 255, 0.13);
  color: var(--cyan);
  border: 1px solid rgba(0, 216, 255, 0.28);
}

.program-badge.paid {
  background: rgba(143, 60, 255, 0.13);
  color: #b57aff;
  border: 1px solid rgba(143, 60, 255, 0.28);
}

.program-card-body {
  flex: 1;
  padding: 20px 22px 14px;
}

.program-card-body h2 {
  font-size: 1.2rem;
  margin: 4px 0 10px;
}

.program-card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}

.program-card-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
}

.program-card-footer .button {
  font-size: 13px;
  padding: 7px 16px;
}

.program-version {
  margin-left: auto;
  font-size: 12px;
  color: var(--dim);
  white-space: nowrap;
}

.program-card-soon {
  opacity: 0.65;
}

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

/* --- Legal original-language notice --- */
.legal-orig-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  background: rgba(29, 141, 255, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.55;
}

.legal-orig-note a {
  color: var(--blue);
  text-decoration: none;
}

.legal-orig-note a:hover {
  text-decoration: underline;
}

/* --- SHA-256 copy button --- */
.hash-copy-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
}

.hash-copy-wrap code {
  word-break: break-all;
  white-space: normal;
  display: block;
}

.hash-copy-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  color: var(--dim);
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  white-space: nowrap;
}

.hash-copy-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(29, 141, 255, 0.08);
}

.hash-copy-btn.copied {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* =========================================================
   UX ENHANCEMENTS — main.js v1
   ========================================================= */

/* --- Scroll animations --- */
.will-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.will-animate.is-visible {
  opacity: 1;
  transform: none;
}

/* --- Back to top button --- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 27, 0.9);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s, background 0.2s, border-color 0.2s, color 0.2s;
  backdrop-filter: blur(8px);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  display: block;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: rgba(29, 141, 255, 0.14);
  border-color: var(--blue);
  color: var(--blue);
}

/* --- Burger menu button --- */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 18, 29, 0.82);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.burger-btn:hover {
  border-color: var(--blue);
  background: rgba(29, 141, 255, 0.08);
}

.burger-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.burger-open .burger-btn span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-open .burger-btn span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger-open .burger-btn span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Body scroll lock when mobile nav open --- */
body.nav-open {
  overflow: hidden;
}

/* burger-lang is injected by JS — hidden on desktop, shown only on mobile */
.burger-lang { display: none; }

/* --- Mobile breakpoint --- */
@media (max-width: 1024px) {

  /* Topbar: switch to flex so logo/lang/burger always stay in one row */
  .topbar {
    display: flex;
    align-items: center;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .topbar .main-nav {
    display: none;
  }

  /* Lang tabs: push to the right, compact */
  .topbar .lang-tabs {
    margin-left: auto;
    margin-right: 8px;
    gap: 4px;
  }
  .topbar .lang-tabs a,
  .topbar .lang-tabs strong {
    min-width: 30px;
    height: 26px;
    font-size: 12px;
    padding: 0 7px;
    border-radius: 6px;
  }

  /* Show burger on topbar (index.html) */
  .topbar .burger-btn {
    display: flex;
    flex-shrink: 0;
    margin-left: 0;
  }

  /* site-header: keep grid but 3 columns */
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  /* backdrop-filter breaks position:fixed — disable when overlay is open */
  .topbar.burger-open,
  .site-header.burger-open {
    backdrop-filter: none;
  }

  /* Mobile menu overlay for topbar */
  .topbar.burger-open .main-nav {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(4, 7, 13, 0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px 40px;
    gap: 4px;
    overflow-y: auto;
    align-items: flex-start;
  }

  .topbar.burger-open .main-nav a {
    width: 100%;
    font-size: 18px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
  }

  .topbar.burger-open .main-nav a:hover {
    background: rgba(29, 141, 255, 0.1);
    color: var(--blue);
  }

  /* Show burger on site-header (inner pages) */
  .site-header .burger-btn {
    display: flex;
    margin-left: 0;
  }

  /* Hide nav on mobile site-header */
  .site-header .nav {
    display: none !important;
  }

  /* Mobile menu overlay for site-header */
  .site-header.burger-open .nav {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(4, 7, 13, 0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px 40px;
    gap: 4px;
    overflow-y: auto;
    align-items: flex-start;
  }

  .site-header.burger-open .nav a {
    width: 100%;
    font-size: 18px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    display: block;
  }

  .site-header.burger-open .nav a:hover {
    background: rgba(29, 141, 255, 0.1);
    color: var(--blue);
  }

  /* Language switch is now in header (.burger-lang), hide inside overlay */
  .site-header.burger-open .nav .language-switch {
    display: none;
  }

  /* Compact lang switch next to burger (injected by JS) */
  .burger-lang {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    margin-right: 6px;
  }

  .burger-lang a,
  .burger-lang strong {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 7px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
  }

  .burger-lang strong {
    background: rgba(29, 141, 255, 0.15);
    color: var(--blue);
  }

  .burger-lang a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
  }
}

/* --- Hero beam hover effect (CSS only, no JS needed) --- */
.showcase-art {
  transition: transform 0.4s ease;
}

.beam-one {
  transition: transform 0.5s ease, opacity 0.4s ease;
}

.beam-two {
  transition: transform 0.6s ease, opacity 0.4s ease;
}

.showcase-art:hover .beam-one {
  transform: rotate(-35deg) scaleX(1.12) translateX(12px) translateY(-6px);
  opacity: 0.85;
}

.showcase-art:hover .beam-two {
  transform: rotate(-49deg) scaleX(1.09) translateX(-10px) translateY(8px);
  opacity: 0.75;
}

/* ═══════════════════════════════════════════════════════════════
   Система лицензирования — Демо и Купить
   ═══════════════════════════════════════════════════════════════ */

/* Демо-ключ */
.demo-key-section {
  margin-top: 24px;
}

.demo-key-box {
  background: rgba(29, 141, 255, 0.06);
  border: 1px solid rgba(29, 141, 255, 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  max-width: 560px;
}

.demo-key-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 8px;
}

.demo-key-box code {
  display: block;
  font-family: monospace;
  font-size: 15px;
  word-break: break-all;
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.demo-key-note {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

.demo-error-box {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
  max-width: 520px;
}

.demo-error-box p {
  margin: 0;
  color: #ff6b7a;
  font-size: 14px;
}

/* Тарифные планы */
.license-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
  max-width: 760px;
}

@media (max-width: 680px) {
  .license-plans { grid-template-columns: 1fr; max-width: 400px; }
}

.license-plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color 0.2s;
}

.license-plan:hover {
  border-color: rgba(29, 141, 255, 0.4);
}

.license-plan-featured {
  border-color: rgba(29, 141, 255, 0.5);
  background: rgba(29, 141, 255, 0.06);
}

.license-plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 99px;
  white-space: nowrap;
  margin: 0;
}

.license-plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.license-plan-price {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  margin: 4px 0 8px;
  line-height: 1;
}

.license-plan-price span {
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}

.license-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
}

.license-plan-features li {
  font-size: 13px;
  color: var(--muted);
  padding: 3px 0;
}

.license-plan-features li::before {
  content: '✓ ';
  color: var(--blue);
  font-weight: 700;
}

/* Форма оплаты */
.buy-form-section {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 20px;
  max-width: 520px;
}

.buy-form-back {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  margin-bottom: 14px;
}

.buy-email-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.buy-email-row input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: #fff;
  font-size: 15px;
}

.buy-email-row input[type="email"]:focus {
  outline: none;
  border-color: var(--blue);
}

.buy-error {
  color: #ff6b7a;
  font-size: 13px;
  margin-top: 8px;
}

.buy-success-notice {
  background: rgba(40, 200, 100, 0.1);
  border: 1px solid rgba(40, 200, 100, 0.3);
  border-radius: 10px;
  padding: 14px 18px;
  color: #5de0a0;
  font-size: 14px;
  margin-bottom: 20px;
}

.license-plan-period {
  font-size: 12px;
  color: var(--muted);
  margin: -4px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

@media (max-width: 860px) {
  .license-plans { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
}

@media (max-width: 480px) {
  .license-plans { grid-template-columns: 1fr; }
}

.license-plan-demo {
  opacity: 0.8;
}

.license-plan.selected {
  border-color: var(--blue);
  background: rgba(29, 141, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(29, 141, 255, 0.4);
}

/* Блок методов оплаты */
.payment-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
  max-width: 760px;
  font-size: 14px;
  color: var(--muted);
}

.payment-info-lock {
  font-size: 16px;
}

.payment-info strong {
  color: #fff;
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 4px;
}

.payment-methods span {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--muted);
}

/* Иконки оплаты в блоке "Купить" */
.payment-methods img {
  height: 28px;
  width: auto;
  border-radius: 4px;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.payment-methods img:hover {
  opacity: 1;
}

/* Иконки оплаты в футере: 1+3+3 (ЮКасса, потом 3×2) */
.footer-payment {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 5px;
  margin-top: 4px;
}

.footer-payment img:first-child {
  grid-column: 1 / -1;
  justify-self: start;
}

.footer-payment img {
  height: 26px;
  width: auto;
  border-radius: 4px;
  opacity: 0.72;
  transition: opacity 0.2s;
}

.footer-payment img:hover {
  opacity: 1;
}

/* Tab labels on mobile: force single column (overrides the 1280px repeat(3) rule) */
@media (max-width: 680px) {
  .tab-labels,
  .bakery-tabs .tab-labels {
    grid-template-columns: 1fr !important;
  }
}

/* --- Video guide gallery (Инструкция tab) --- */
.video-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 20px 0 32px;
}

.video-guide-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.video-guide-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.video-guide-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #04070d;
  object-fit: contain;
}

.video-guide-card figcaption {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--line);
}
