:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-soft: #eef3f6;
  --text: #172533;
  --muted: #5f7080;
  --line: #d8e1e8;
  --accent: #2f6f9f;
  --accent-dark: #235d85;
  --accent-soft: #e4eef5;
  --success: #3a9b74;
  --shadow: 0 18px 45px rgba(25, 45, 65, 0.08);
  --radius: 22px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #e8f0f6 0, transparent 34%), var(--bg);
  line-height: 1.55;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(245, 247, 249, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(216, 225, 232, 0.8);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.brand img { width: 48px; height: 48px; }
.brand strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { color: #324454; padding: 9px 11px; border-radius: 999px; font-size: 14px; }
.nav a:hover { background: var(--accent-soft); }
.nav .nav-cta { background: var(--text); color: white; padding-inline: 16px; }
.nav .nav-buy-ncd {
  background: linear-gradient(135deg, #0f6fb5, #164a7a);
  color: #ffffff;
  border: 1px solid #0f5d98;
  padding-inline: 15px;
  font-weight: 850;
  box-shadow: 0 8px 18px rgba(15, 111, 181, 0.20);
}
.nav .nav-buy-ncd:hover {
  background: linear-gradient(135deg, #0d5f9d, #123f68);
  color: #ffffff;
}

.nav-toggle { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 14px; color: var(--text); }
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 22px;
}
.section.compact { padding-top: 54px; padding-bottom: 54px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  padding-top: 58px;
}
.hero-copy, .hero-panel, .compare-box, .price-card, .table-wrap, .soft, .cta-section {
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy { padding: clamp(28px, 5vw, 52px); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
}
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.04em; }
h1 { font-size: clamp(34px, 5.2vw, 58px); max-width: 850px; }
h2 { font-size: clamp(27px, 3.5vw, 42px); }
h3 { font-size: 23px; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 780px; margin: 20px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--surface);
  font-weight: 750;
  font-size: 14px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); border-color: #b8c7d2; }
.button.primary { background: var(--accent); color: white; border-color: var(--accent); }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: var(--accent-soft); border-color: #c8d8e4; }

.button.buy-ncd {
  background: linear-gradient(135deg, #0f6fb5, #164a7a);
  border-color: #0f5d98;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 111, 181, 0.26);
  font-weight: 850;
}
.button.buy-ncd:hover {
  background: linear-gradient(135deg, #0d5f9d, #123f68);
  border-color: #0d5f9d;
  box-shadow: 0 16px 34px rgba(15, 111, 181, 0.32);
}
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.trust-row span {
  color: #355065;
  background: #edf3f7;
  border: 1px solid #d6e3ec;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
}
.hero-panel { padding: 18px; display: grid; gap: 12px; }
.quick-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fbfdfe;
}
.quick-card.accent { background: linear-gradient(135deg, #edf5fa, #fff); border-color: #bdd2df; }
.quick-card span { color: var(--muted); display: block; font-size: 13px; font-weight: 700; }
.quick-card strong { display: block; margin-top: 5px; font-size: 26px; letter-spacing: -0.04em; }
.quick-card small { color: var(--muted); display: block; margin-top: 8px; }
.section-heading { max-width: 760px; margin-bottom: 24px; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin: 12px 0 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price-card { padding: 24px; position: relative; display: flex; flex-direction: column; }
.price-card.featured { border-color: #a9c4d4; background: linear-gradient(180deg, #f5fafc, #fff); }
.badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #c6dae8;
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 14px;
}
.card-top p, .note { color: var(--muted); margin: 10px 0 0; }
.price { font-size: 34px; font-weight: 850; letter-spacing: -0.05em; margin: 22px 0 14px; }
.price span { font-size: 15px; color: var(--muted); letter-spacing: 0; font-weight: 700; }
ul { padding-left: 20px; margin: 0; }
li { margin: 8px 0; }
.card-button { margin-top: auto; width: 100%; }
.note { font-size: 14px; margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: center; }
.split p:not(.eyebrow) { color: var(--muted); }
.compare-box { padding: 8px; box-shadow: none; }
.compare-row { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); }
.compare-row:last-child { border-bottom: 0; }
.compare-row strong { color: #243a4b; }
.compare-row span { color: var(--muted); }
.compare-row.muted { background: var(--surface-soft); border-radius: 16px; }
.table-wrap { overflow-x: auto; box-shadow: none; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #3c5365; background: #edf3f7; }
td { color: #2d3d4b; }
td:not(:first-child), th:not(:first-child) { text-align: center; }
tbody tr:hover { background: #fafcfd; }
.soft { background: #edf3f7; box-shadow: none; padding: 30px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 16px; }
.steps span { color: var(--muted); }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
figure { margin: 0; background: white; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 25px rgba(25,45,65,0.05); }
figure img { aspect-ratio: 16/9; width: 100%; object-fit: cover; object-position: top left; background: #f7fafc; }
figcaption { padding: 11px 13px; font-size: 14px; color: #33485a; font-weight: 750; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
details { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
summary { cursor: pointer; font-weight: 780; color: #213648; }
details p { color: var(--muted); margin: 10px 0 0; }
.cta-section {
  max-width: var(--max);
  margin: 26px auto 70px;
  padding: 34px 36px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #edf3f7, #ffffff);
}
.cta-section h2 { max-width: 720px; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px max(22px, calc((100vw - var(--max)) / 2));
  color: var(--muted);
  background: #eef3f6;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}
.site-footer p { margin: 0; max-width: 700px; font-size: 13px; }
.site-footer nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.site-footer a { color: #284f70; }
@media (max-width: 980px) {
  .hero, .split, .pricing-grid { grid-template-columns: 1fr; }
  .hero-panel { grid-template-columns: repeat(3, 1fr); }
  .screenshot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .site-header { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { border: 1px solid var(--line); background: white; }
  .hero { padding-top: 24px; }
  .hero-copy { padding: 26px; }
  h1 { font-size: 33px; }
  .hero-panel, .faq-grid, .screenshot-grid { grid-template-columns: 1fr; }
  .compare-row, .steps li { grid-template-columns: 1fr; }
  .cta-section, .site-footer { flex-direction: column; align-items: stretch; }
  .section { padding-inline: 16px; }
}


.button.ghost {
  background: transparent;
  border: 1px solid rgba(47, 72, 88, 0.25);
  color: var(--ink);
}

.button.ghost:hover {
  background: rgba(47, 72, 88, 0.06);
}

.demo-teaser {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.7), rgba(255, 255, 255, 0.95));
  border-top: 1px solid rgba(47, 72, 88, 0.08);
  border-bottom: 1px solid rgba(47, 72, 88, 0.08);
}

.demo-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.demo-mini-card {
  background: var(--card);
  border: 1px solid rgba(47, 72, 88, 0.12);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.demo-mini-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 1rem;
}

.demo-mini-card span {
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.center-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

@media (max-width: 820px) {
  .demo-teaser-grid {
    grid-template-columns: 1fr;
  }
}

/* v17 homepage functionality focus */
.hero-functional .hero-copy {
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(28px, 4vw, 44px);
}

.hero-functional h1 {
  font-size: clamp(32px, 4.5vw, 52px);
}

.hero-feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.hero-feature-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #edf3f7;
  border: 1px solid #d6e3ec;
  color: #2c465a;
  font-size: 13px;
  font-weight: 750;
}

.version-snapshot .quick-card small {
  line-height: 1.45;
}

.wide-heading {
  max-width: 920px;
}

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

.function-card {
  min-height: 178px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 24px rgba(25,45,65,0.05);
}

.function-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  color: #1d3345;
}

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

.function-card span {
  margin-top: auto;
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #c6dae8;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.function-card.online-only {
  background: linear-gradient(180deg, #f5fafc, #ffffff);
  border-color: #a9c4d4;
}

.demo-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

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

@media (max-width: 760px) {
  .function-grid { grid-template-columns: 1fr; }
  .demo-teaser-actions { justify-content: flex-start; }
}

/* v18 calm homepage: general description first, no right sidebar */
.hero-clean {
  display: block;
  padding-top: 46px;
  padding-bottom: 34px;
}

.hero-copy-wide {
  max-width: 100%;
  padding: clamp(30px, 5vw, 56px);
}

.hero-clean h1 {
  max-width: 980px;
  font-size: clamp(32px, 4.4vw, 50px);
}

.sublead {
  max-width: 900px;
  margin: 14px 0 0;
  color: #42576a;
  font-size: clamp(15px, 1.8vw, 18px);
}

.quiet-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quiet-highlights span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d7e3ea;
  background: #f3f7fa;
  color: #345064;
  font-size: 13px;
  font-weight: 750;
}

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

.function-card {
  min-height: 142px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 22px rgba(25,45,65,0.045);
}

.function-card strong {
  display: block;
  color: #1f3547;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 10px;
}

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

.function-card.function-online {
  border-color: #aec9d9;
  background: linear-gradient(180deg, #f5fafc, #fff);
}

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

.version-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 28px rgba(25,45,65,0.055);
}

.version-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #c8dce8;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 14px;
}

.version-card h3 {
  font-size: 25px;
  margin-bottom: 12px;
}

.version-card p {
  color: var(--muted);
  margin: 0 0 16px;
}

.version-card ul {
  color: #2d3d4b;
}

.version-card li {
  margin: 9px 0;
}

.pricing-section {
  padding-top: 34px;
}

.compact-shots figure img {
  aspect-ratio: 18/10;
}

.button.ghost {
  background: transparent;
  border-color: #c8d5de;
  color: var(--text);
}

.button.ghost:hover {
  background: #eef4f7;
}

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

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

@media (max-width: 760px) {
  .function-grid { grid-template-columns: 1fr; }
  .hero-clean { padding-top: 24px; }
  .hero-copy-wide { padding: 26px; }
}


/* v19 bilingual homepage */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #33485a;
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

html[lang="ru"] .nav a {
  font-size: 13px;
  padding-inline: 9px;
}

html[lang="ru"] h1 {
  font-size: clamp(31px, 4vw, 47px);
}

@media (max-width: 760px) {
  .lang-switch {
    justify-content: center;
    width: 100%;
    border-radius: 14px;
  }
  .lang-btn {
    flex: 1;
  }
}

/* v21: calmer typography and NCD 2.0 focused homepage */
body {
  font-size: 15px;
}
.section {
  padding-top: 58px;
  padding-bottom: 58px;
}
.section.compact {
  padding-top: 46px;
  padding-bottom: 46px;
}
.hero-clean {
  padding-top: 34px;
  padding-bottom: 24px;
}
.hero-copy-wide {
  padding: clamp(24px, 3.6vw, 42px);
}
.hero-clean h1 {
  max-width: 980px;
  font-size: clamp(28px, 3.45vw, 42px);
  line-height: 1.14;
  letter-spacing: -0.032em;
}
.lead {
  font-size: clamp(15px, 1.55vw, 17px);
  line-height: 1.65;
  max-width: 940px;
  margin-top: 16px;
}
.sublead {
  font-size: 15px;
  line-height: 1.65;
  max-width: 940px;
}
h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.16;
}
h3 {
  font-size: 20px;
}
.function-card strong,
.price-card h3,
.version-card h3 {
  font-size: 18px;
}
.function-card p,
.version-card p,
.version-card li,
.price-card li,
.price-card .note,
.faq-grid p,
.demo-teaser p,
.section-heading p {
  font-size: 14.5px;
  line-height: 1.58;
}
.price {
  font-size: 32px;
}
.quiet-highlights span,
.button,
.nav a,
.lang-btn {
  font-size: 13px;
}
html[lang="ru"] h1 {
  font-size: clamp(27px, 3.2vw, 39px);
  line-height: 1.18;
}
html[lang="ru"] .lead,
html[lang="ru"] .sublead {
  font-size: 15px;
}
@media (max-width: 760px) {
  .hero-clean h1,
  html[lang="ru"] h1 {
    font-size: 28px;
  }
  .lead,
  .sublead {
    font-size: 14.5px;
  }
}


/* v28 pricing package function lists */
.price-card ul {
  display: grid;
  gap: 7px;
}
.price-card li {
  margin: 0;
  line-height: 1.45;
}
.price-card .note {
  margin-top: 18px;
}
@media (min-width: 981px) {
  .price-card {
    padding: 24px 22px;
  }
  .price-card li,
  .price-card .note {
    font-size: 14px;
  }
}

/* v29 pricing readability and balanced cards */
.pricing-grid { align-items: stretch; }
.price-card { min-height: 660px; padding: 22px 24px; }
.price-card ul { margin-top: 2px; padding-left: 18px; }
.price-card li { margin: 6px 0; line-height: 1.42; }
.price-card .note { margin-top: 14px; margin-bottom: 18px; }
.price-card .price { margin: 16px 0 12px; }
.price-card .card-top { min-height: 76px; }
.price-card.featured .card-top { min-height: 56px; }
.price-card .badge { margin-bottom: 10px; }
@media (max-width: 980px) { .price-card { min-height: auto; } .price-card .card-top, .price-card.featured .card-top { min-height: 0; } }


/* v32 pricing alignment and cleaner package cards */
.pricing-grid {
  align-items: stretch;
}
.price-card {
  display: grid;
  grid-template-rows: 34px minmax(150px, auto) auto 1fr auto auto;
  gap: 0;
  min-height: 690px;
}
.price-card .badge-row {
  min-height: 34px;
  display: flex;
  align-items: flex-start;
}
.price-card .badge.placeholder {
  visibility: hidden;
}
.price-card .card-top {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.price-card.featured .card-top {
  min-height: 0;
}
.price-card .card-top h3 {
  margin-bottom: 12px;
}
.price-card .card-top p {
  min-height: 0;
  margin: 0;
}
.price-card .price {
  margin: 14px 0 18px;
  align-self: start;
}
.price-card ul {
  align-self: start;
  display: grid;
  gap: 9px;
}
.price-card li {
  line-height: 1.42;
}
.price-card .note {
  align-self: end;
  min-height: 56px;
  margin-top: 18px;
  margin-bottom: 18px;
}
.price-card .card-button {
  align-self: end;
  margin-top: 0;
}
@media (max-width: 980px) {
  .price-card {
    display: flex;
    min-height: auto;
  }
  .price-card .badge-row,
  .price-card .card-top p,
  .price-card .note {
    min-height: 0;
  }
  .price-card .badge.placeholder {
    display: none;
  }
}


/* v40: language-specific service links, responsive comparison and screenshot preview */
.language-only[hidden] { display: none !important; }
.button.online-services {
  background: #ffffff;
  border: 1px solid rgba(47, 72, 88, 0.22);
  color: var(--ink);
}
.button.online-services:hover { background: #eef4f7; }
.nav-online-services { color: #174f86; }

.comparison-details { border: 0; padding: 0; background: transparent; }
.comparison-details > summary { display: none; }

.screenshot-grid picture { display: block; }
.screenshot-grid img[data-lightbox="screenshot"] { cursor: zoom-in; }
.screenshot-grid img[data-lightbox="screenshot"]:focus-visible {
  outline: 3px solid rgba(25, 113, 194, .45);
  outline-offset: -3px;
}
body.lightbox-open { overflow: hidden; }
.image-lightbox[hidden] { display: none; }
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(4, 13, 22, .86);
}
.image-lightbox-content {
  width: min(1200px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
}
.image-lightbox-content img {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  background: #eef3f6;
}
.image-lightbox-content figcaption { padding: 12px 16px; }
.image-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .hero-actions .button { width: 100%; }
  .comparison-details {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 0;
  }
  .comparison-details > summary {
    display: block;
    cursor: pointer;
    padding: 15px 16px;
    color: #213648;
    font-weight: 800;
  }
  .comparison-details[open] > summary { border-bottom: 1px solid var(--line); }
  .comparison-details .table-wrap { border: 0; border-radius: 0 0 16px 16px; }
  .image-lightbox { padding: 12px; }
  .image-lightbox-close { top: 10px; right: 10px; }
  .image-lightbox-content { max-height: calc(100vh - 24px); border-radius: 12px; }
  .image-lightbox-content img { max-height: calc(100vh - 78px); }
}

/* v41: preserve the original screenshot proportions */
.screenshot-grid picture {
  display: block;
  line-height: 0;
  background: #f7fafc;
}
.screenshot-grid picture img,
.compact-shots figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
}


/* V46 knowledge base */
.guide-page{max-width:1220px;margin:0 auto;padding:24px 0 0}.guide-site-header .lang-btn{display:inline-flex;text-decoration:none}.guide-nav .lang-switch a:hover{background:transparent}.breadcrumbs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:18px clamp(18px,4vw,48px) 0;color:var(--muted);font-size:14px}.breadcrumbs a{color:#245f89;font-weight:700}.guide-hero{margin:18px clamp(18px,4vw,48px) 28px;padding:clamp(28px,5vw,56px);border:1px solid var(--line);border-radius:28px;background:linear-gradient(135deg,#f5fafc,#fff);box-shadow:0 18px 55px rgba(31,68,91,.08)}.guide-hero h1{font-size:clamp(34px,5vw,62px);line-height:1.04;letter-spacing:-.045em;max-width:1040px;margin:12px 0 0}.guide-hero .lead{max-width:900px}.guide-meta{color:var(--muted);font-size:14px;margin-top:16px}.guide-layout{max-width:980px;margin:0 auto;padding:0 22px}.guide-article{font-size:18px;line-height:1.72}.guide-article>section{scroll-margin-top:110px;margin:52px 0}.guide-article h2{font-size:clamp(26px,3.3vw,40px);letter-spacing:-.035em;margin:0 0 16px}.guide-article p{color:#344b5c;margin:12px 0}.guide-article li{color:#344b5c;margin:9px 0}.guide-summary,.guide-toc,.guide-service-cta{border:1px solid var(--line);border-radius:22px;padding:24px;background:var(--surface-soft)}.guide-summary h2,.guide-toc h2{font-size:22px}.guide-toc ol{columns:2;gap:32px;padding-left:20px}.guide-toc a{color:#245f89;font-weight:700}.guide-figure{margin:34px 0}.guide-figure img{width:100%;border:1px solid var(--line);border-radius:22px;box-shadow:0 14px 40px rgba(31,68,91,.10)}.guide-figure figcaption{font-size:13px;color:var(--muted);margin-top:8px}.guide-service-cta{display:flex;gap:24px;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#eaf5fb,#fff)}.guide-service-cta .button{flex:0 0 auto}.guide-faq details{border:1px solid var(--line);border-radius:18px;padding:17px 20px;margin:10px 0;background:#fff}.guide-faq summary{font-weight:800;cursor:pointer}.guide-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.guide-index-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.guide-card{border:1px solid var(--line);border-radius:22px;padding:24px;background:#fff;display:flex;flex-direction:column}.guide-card h2,.guide-card h3{margin:8px 0;font-size:clamp(22px,2.3vw,30px);letter-spacing:-.03em}.guide-card h3{font-size:22px}.guide-card p:not(.eyebrow){color:var(--muted);flex:1}.guide-card a{color:inherit}.guide-card-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.related-guides{padding-left:clamp(18px,4vw,48px);padding-right:clamp(18px,4vw,48px)}
@media(max-width:900px){.guide-card-grid,.guide-index-grid{grid-template-columns:1fr}.guide-service-cta{align-items:stretch;flex-direction:column}.guide-service-cta .button{width:100%}.guide-toc ol{columns:1}.guide-article{font-size:17px}}


/* v48: distinguish the Windows NCD generator from the browser service */
.generator-choice .section-heading{max-width:980px}
.generator-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.generator-choice-card{display:flex;flex-direction:column;min-height:100%;padding:clamp(24px,3vw,34px);border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 16px 45px rgba(31,68,91,.07)}
.generator-choice-card.program-card{background:linear-gradient(145deg,#edf7fc,#fff)}
.generator-choice-card.service-card{background:linear-gradient(145deg,#f8fafc,#fff)}
.generator-choice-label{display:inline-flex;align-self:flex-start;padding:6px 10px;border-radius:999px;background:#e5f1f8;color:#245f89;font-size:12px;font-weight:900;letter-spacing:.08em}
.generator-choice-card h3{font-size:clamp(24px,2.7vw,34px);line-height:1.12;letter-spacing:-.035em;margin:18px 0 10px}
.generator-choice-card p{color:var(--muted);margin:0 0 14px}
.generator-choice-card ul{padding-left:20px;margin:4px 0 24px;color:#344b5c}
.generator-choice-card li{margin:8px 0}
.generator-choice-card .button{margin-top:auto;align-self:flex-start}
@media(max-width:820px){.generator-choice-grid{grid-template-columns:1fr}.generator-choice-card .button{width:100%}}

/* v51: SEO guide expansion and article readability */
.guide-article .table-wrap{margin:20px 0;overflow-x:auto;border:1px solid var(--border,#d7e1e8);border-radius:14px;background:#fff}
.guide-article table{min-width:640px;margin:0}
.guide-article th,.guide-article td{padding:12px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--border,#d7e1e8)}
.guide-article tbody tr:last-child td{border-bottom:0}
.guide-article code{overflow-wrap:anywhere}
.guide-meta{max-width:980px}
@media (max-width:700px){.guide-article table{min-width:560px}.guide-index-grid{grid-template-columns:1fr}}


/* v52: preserve intrinsic screenshot proportions in knowledge-base articles */
.guide-figure {
  overflow: visible;
}
.guide-figure .guide-image-link {
  display: block;
  line-height: 0;
  border-radius: 22px;
  cursor: zoom-in;
}
.guide-figure img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center top;
}
