/* AADS brand theme for reveal.js — dark (default AADS look).
   Brand blue #00AAFF / #03A9F4, gradient #4DD1F6 → #0381F6, navy #1A2231. */

:root {
  --aads-bg: #1a2231;
  --aads-bg-2: #111723;
  --aads-panel: #141b29;
  --aads-stroke: #36425c;
  --aads-blue: #03a9f4;
  --aads-blue-bright: #00aaff;
  --aads-text: #ffffff;
  --aads-muted: #a9b1b7;
  --aads-secondary: #919ca8;
  --aads-success: #2eb82e;
  --aads-danger: #f25a5a;
  --aads-warning: #ffd54f;
  --aads-gradient: linear-gradient(120deg, #4dd1f6 0%, #0381f6 100%);

  /* reveal.js core variables */
  --r-background-color: var(--aads-bg);
  --r-main-font: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --r-heading-font: "Poppins", "Noto Sans", system-ui, sans-serif;
  --r-main-color: var(--aads-text);
  --r-heading-color: var(--aads-text);
  --r-link-color: var(--aads-blue-bright);
  --r-link-color-hover: #4dd1f6;
  --r-main-font-size: 30px;
}

html,
body {
  background: var(--aads-bg);
}

.reveal {
  font-family: var(--r-main-font);
  font-size: var(--r-main-font-size);
  color: var(--aads-text);
  font-weight: 400;
  letter-spacing: 0.1px;
}

/* Ambient brand glow */
.reveal-viewport {
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(3, 129, 246, 0.18), transparent 60%),
    radial-gradient(900px 600px at 0% 110%, rgba(77, 209, 246, 0.1), transparent 55%),
    var(--aads-bg);
}

.reveal .slides {
  text-align: left;
}
/* Reserve a top band so content clears the fixed logo + language switch. */
.reveal .slides section {
  height: 100%;
  box-sizing: border-box;
  padding: 74px 14px 28px 14px;
}

/* Headings */
.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4 {
  font-family: var(--r-heading-font);
  color: var(--aads-text);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin: 0 0 0.5em 0;
  text-transform: none;
  text-shadow: none;
}
.reveal h1 {
  font-size: 2.5em;
}
.reveal h2 {
  font-size: 1.7em;
}
.reveal h3 {
  font-size: 1.15em;
  font-weight: 600;
}

.reveal .grad {
  background: var(--aads-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Section eyebrow label above a heading */
.reveal .eyebrow {
  display: inline-block;
  font-family: var(--r-heading-font);
  font-size: 0.62em;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--aads-blue-bright);
  margin-bottom: 0.6em;
  padding-bottom: 0.35em;
  border-bottom: 2px solid rgba(3, 169, 244, 0.35);
}

.reveal p {
  line-height: 1.45;
  margin: 0 0 0.6em 0;
}
.reveal .lead {
  font-size: 1.12em;
  color: #dfe6ee;
}
.reveal .muted {
  color: var(--aads-muted);
}
.reveal strong {
  color: #ffffff;
  font-weight: 700;
}
.reveal em {
  color: #cfe9fb;
  font-style: normal;
  font-weight: 600;
}

.reveal ul,
.reveal ol {
  margin: 0.2em 0 0 1em;
  line-height: 1.5;
}
.reveal li {
  margin: 0.42em 0;
  padding-left: 0.15em;
}
.reveal ul {
  list-style: none;
  margin-left: 0;
}
.reveal ul > li {
  position: relative;
  padding-left: 1.35em;
}
.reveal ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 2px;
  background: var(--aads-gradient);
}

/* Links */
.reveal a {
  color: var(--aads-blue-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 170, 255, 0.4);
}
.reveal a:hover {
  color: #4dd1f6;
}

/* Logo top-left */
.deck-logo {
  position: fixed;
  top: 26px;
  left: 34px;
  height: 30px;
  z-index: 30;
  opacity: 0.95;
  pointer-events: none;
}
.deck-logo img {
  height: 100%;
  width: auto;
  display: block;
}

/* Language toggle top-right */
.lang-switch {
  position: fixed;
  top: 22px;
  right: 30px;
  z-index: 40;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(20, 27, 41, 0.72);
  border: 1px solid var(--aads-stroke);
  backdrop-filter: blur(6px);
  font-family: var(--r-heading-font);
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--aads-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lang-switch button:hover {
  color: #fff;
}
.lang-switch button.is-active {
  background: var(--aads-gradient);
  color: #fff;
  box-shadow: 0 2px 10px rgba(3, 129, 246, 0.4);
}

/* Title slide */
.title-slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
.title-slide h1 {
  font-size: 3.1em;
  margin-bottom: 0.25em;
}
.title-slide .subtitle {
  font-size: 1.2em;
  color: var(--aads-muted);
  max-width: 20em;
}
.title-slide .kicker {
  font-family: var(--r-heading-font);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-size: 0.6em;
  color: var(--aads-blue-bright);
  margin-bottom: 1.4em;
}

/* Cards / panels */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 20px;
  margin-top: 0.6em;
}
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--aads-stroke);
  border-radius: 16px;
  padding: 22px 24px;
}
.card h3 {
  margin-bottom: 0.35em;
  color: #fff;
}
.card p {
  font-size: 0.82em;
  color: var(--aads-muted);
  margin: 0;
}
.card .ico {
  font-size: 1.6em;
  line-height: 1;
  margin-bottom: 0.4em;
  display: block;
}

/* Before / After comparison */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 0.4em;
}
.compare .col {
  border-radius: 16px;
  padding: 22px 26px;
  border: 1px solid var(--aads-stroke);
}
.compare .before {
  background: rgba(242, 90, 90, 0.08);
  border-color: rgba(242, 90, 90, 0.4);
}
.compare .after {
  background: rgba(46, 184, 46, 0.09);
  border-color: rgba(46, 184, 46, 0.42);
}
.compare .col h3 {
  font-size: 1em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.6em;
}
.compare .before h3 {
  color: #ff8a8a;
}
.compare .after h3 {
  color: #7ee27e;
}
.compare ul {
  margin: 0;
}
.compare li {
  font-size: 0.82em;
  color: #e7edf3;
}
.compare .before li::before {
  background: var(--aads-danger);
}
.compare .after li::before {
  background: var(--aads-success);
}

/* Numbered flow steps */
.steps {
  display: grid;
  gap: 14px;
  margin-top: 0.5em;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 18px;
}
.step .n {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--r-heading-font);
  font-weight: 700;
  font-size: 1.05em;
  color: #fff;
  background: var(--aads-gradient);
  box-shadow: 0 4px 14px rgba(3, 129, 246, 0.35);
}
.step .body {
  padding-top: 3px;
}
.step .body b {
  color: #fff;
}
.step .body span.d {
  display: block;
  font-size: 0.8em;
  color: var(--aads-muted);
  margin-top: 2px;
}

/* Pills / tags */
.pill {
  display: inline-block;
  font-size: 0.62em;
  font-weight: 600;
  font-family: var(--r-heading-font);
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 170, 255, 0.45);
  color: var(--aads-blue-bright);
  background: rgba(0, 170, 255, 0.08);
}

/* Callout */
.callout {
  margin-top: 0.8em;
  padding: 16px 22px;
  border-left: 4px solid var(--aads-blue);
  border-radius: 0 12px 12px 0;
  background: rgba(3, 169, 244, 0.08);
  font-size: 0.85em;
  color: #dbe6f0;
}

/* Progress bar + controls in brand blue */
.reveal .progress {
  color: var(--aads-blue-bright);
  height: 4px;
}
.reveal .controls {
  color: var(--aads-blue-bright);
}
.reveal .slide-number {
  background: rgba(20, 27, 41, 0.6);
  color: var(--aads-secondary);
  font-family: var(--r-heading-font);
}

/* i18n visibility — active language shown via body[data-lang] */
[data-lang="en"] .lang-ru,
[data-lang="ru"] .lang-en {
  display: none !important;
}

/* Footer note on closing slide */
.reveal .end-cta {
  font-size: 1.25em;
  margin-top: 0.3em;
}

/* Responsive tweaks for narrow / mobile */
@media (max-width: 700px) {
  .compare,
  .cards {
    grid-template-columns: 1fr;
  }
  .deck-logo {
    height: 24px;
    top: 18px;
    left: 20px;
  }
  .lang-switch {
    top: 16px;
    right: 16px;
  }
}
