/* Montserrat variable font, self-hosted (SIL OFL 1.1, see /assets/fonts/OFL.txt) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-start: #021128;
  --bg-end: #0b2545;
  --card-bg: #0d2540;
  --card-hover: #123257;
  --accent: #007bfe;
  --accent-bright: #00bfff;
  --text: #ffffff;
  --text-dim: #8da9c4;
  --border: rgba(0, 123, 254, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(0, 123, 254, 0.06) 1px, transparent 0);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  position: relative;
}

.hero-inner {
  max-width: 1050px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-title {
  text-align: left; /* Исправлено: теперь выравнивание по левому краю, как на баннере */
  text-transform: uppercase;
  margin-bottom: 48px;
}

.hero-title .line1 {
  font-weight: 800;
  font-size: clamp(36px, 6.5vw, 86px);
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.15;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.35s;
}

.hero-title .line2 {
  font-weight: 700;
  font-size: clamp(28px, 5vw, 64px);
  color: var(--accent);
  line-height: 1.15;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-title .line3 {
  font-weight: 600;
  font-size: clamp(24px, 4.2vw, 52px);
  color: var(--text-dim);
  line-height: 1.15;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.65s;
}

.hero-name {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-name span { color: var(--accent-bright); }

.hero-tagline {
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.95s;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.1s;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 123, 254, 0.3);
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0, 191, 255, 0.4);
}

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid rgba(0, 123, 254, 0.25);
}

.btn-ghost:hover {
  border-color: var(--accent-bright);
  color: var(--accent-bright);
  transform: translateY(-2px);
}

/* ABOUT */
.about {
  padding: 60px 80px;
  position: relative;
  z-index: 1;
}

.about-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 20px;
}

.about-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(0, 123, 254, 0.25);
  overflow: hidden;
  position: relative;
  background: url('/assets/img/photo.jpg') center/cover;
  flex-shrink: 0;
}

.photo-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: radial-gradient(circle at center, rgba(0,123,254,0.08) 0%, transparent 70%);
}

.photo-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(141,169,196,0.4);
}

.about-text h3 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.about-text p {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-bright);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* SERVICES */
.services {
  padding: 120px 80px;
  background: rgba(0,0,0,0.15);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.services-inner {
  max-width: 1050px;
  margin: 0 auto;
}

.services-header {
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 28px;
  transition: all 0.3s ease;
}

.service-card:hover {
  background: var(--card-hover);
  border-color: rgba(0, 123, 254, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 123, 254, 0.12);
}

.service-icon {
  display: inline-flex;
  min-width: 46px;
  padding: 0 10px;
  height: 46px;
  background: rgba(0, 123, 254, 0.12);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}

.service-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.7;
}

/* CONTACT */
.contact {
  padding: 120px 80px;
  position: relative;
  z-index: 1;
}

.contact-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dim);
  margin-bottom: 8px;
  max-width: 460px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  padding: 16px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.contact-link:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--card-hover);
}

.contact-link-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  flex-shrink: 0;
}

/* FOOTER */
footer {
  padding: 40px 80px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.6;
}

.footer-text a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s;
}

.footer-text a:hover { color: var(--accent-bright); }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 1;
}

/* CONTACT CTA + REQUEST FORM */
.contact-cta { margin-top: 28px; }

.form-section {
  display: flex;
  flex-direction: column;
}

.form-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.form-box iframe { display: block; border: 0; }

.form-thanks { padding: 24px 8px; }

.form-thanks-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.form-thanks-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.form-thanks .btn { margin-top: 20px; }

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* TABLET */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 36px; text-align: left; }
  .about-photo { margin: 0 auto; }
}

/* MOBILE */
@media (max-width: 768px) {
  .hero { min-height: auto; padding: 56px 24px 48px; }
  .eyebrow { margin-bottom: 20px; }
  .hero-title { margin-bottom: 28px; }
  .hero-title .line1 { font-size: 44px; white-space: normal; }
  .hero-title .line2 { font-size: 34px; }
  .hero-title .line3 { font-size: 30px; }
  .hero-name { font-size: 30px; margin-top: 8px; }
  .hero-tagline { margin-bottom: 28px; }

  .about { padding: 56px 24px; }
  .about-photo {
    width: 240px;
    height: 240px;
    margin: 0 auto 8px;
  }
  .photo-placeholder svg { width: 60px; height: 60px; }
  .photo-label { font-size: 12px; }
  .about-text h3 { font-size: 24px; }
  .about-text p { font-size: 15px; }

  .services { padding: 56px 24px; }
  .services-header { margin-bottom: 32px; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }

  .contact { padding: 56px 24px; }
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }

  .form-box { padding: 16px; }
  .btn { padding: 16px 24px; }

  footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { gap: 18px; }
}

/* SITE HEADER (shared by all pages) */
.site-header {
  padding: 24px 80px;
  position: relative;
  z-index: 2;
}

.site-header-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-brand span { color: var(--accent-bright); }

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

.site-nav a:not(.btn) {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--text); }

.btn-small {
  padding: 11px 20px;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.15em;
}

/* Home hero fills the screen below the header */
.page-home .hero { min-height: calc(100vh - 88px); }

/* INNER PAGES */
.page-section {
  padding: 56px 80px 96px;
  position: relative;
  z-index: 1;
}

.page-inner {
  max-width: 1050px;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 20px;
}

.page-lead {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 40px;
}

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
}

.back-link:hover { color: var(--accent-bright); }

.prose {
  max-width: 720px;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 40px;
}

.prose p, .prose ul, .prose ol { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-bright); }
.prose h2, .prose h3 { color: var(--text); font-weight: 700; margin: 32px 0 12px; line-height: 1.3; }

/* ARTIFACTS */
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.artifact-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
}

.artifact-card:hover {
  background: var(--card-hover);
  border-color: rgba(0, 123, 254, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 123, 254, 0.12);
}

.artifact-cover { aspect-ratio: 16 / 9; background: rgba(0, 0, 0, 0.2); }
.artifact-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.artifact-body { padding: 24px; }

.artifact-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.artifact-summary {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.7;
}

.artifact-saves {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 191, 255, 0.1);
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.artifact-saves-lg { margin: 0 0 40px; font-size: 13px; padding: 8px 16px; }

.artifact-block { margin-bottom: 40px; max-width: 720px; }

.artifact-problem {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
}

.artifact-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 860px;
  margin-bottom: 40px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}

.artifact-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.artifact-links { margin-bottom: 8px; }

.empty-state {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px 32px;
  max-width: 680px;
  color: var(--text-dim);
  font-weight: 300;
}

.empty-state-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

/* CALL-TO-ACTION BAND (bottom of inner pages) */
.cta-band {
  padding: 96px 80px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.cta-band-inner { max-width: 1050px; margin: 0 auto; }

.cta-band-text {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 600px;
  margin: 20px 0 36px;
}

.page-404 { min-height: calc(100vh - 220px); display: flex; align-items: center; }
.page-404 .page-inner { width: 100%; }

@media (max-width: 900px) {
  .artifact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-header { padding: 18px 24px; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.btn) { letter-spacing: 0.08em; }
  .btn-small { padding: 9px 12px; letter-spacing: 0.08em; }
  .site-brand { font-size: 12px; }
  .page-home .hero { min-height: auto; }
  .page-section { padding: 32px 24px 64px; }
  .cta-band { padding: 56px 24px; }
  .artifact-grid { grid-template-columns: 1fr; gap: 16px; }
  .page-404 { min-height: auto; }
}

/* FREE LIBRARY */
.hero-free {
  display: inline-block;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 191, 255, 0.35);
  padding-bottom: 2px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 1.25s;
  transition: color 0.2s, border-color 0.2s;
}

.hero-free span { color: var(--accent-bright); }
.hero-free:hover { color: var(--text); border-color: var(--accent-bright); }

.page-lead-accent { color: var(--text); font-weight: 500; margin-top: -24px; }

.artifact-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tag-free { border-color: rgba(16, 185, 129, 0.4); color: #34d399; background: rgba(16, 185, 129, 0.08); }

.free-note {
  font-size: 13px;
  color: var(--text-dim);
  margin: 4px 0 40px;
}

.notify-box {
  margin-top: 48px;
  max-width: 680px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

.notify-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.notify-text { font-size: 14px; font-weight: 300; color: var(--text-dim); margin-bottom: 12px; }
.notify-box .btn { margin-top: 8px; }

@media (max-width: 768px) {
  .hero-free { margin-top: 20px; font-size: 13px; }
}

/* HOME HERO (two columns: text + photo) */
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 64px;
  align-items: center;
}

.hero-headline {
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.35s;
}

.hero-headline span { color: var(--accent-bright); }

.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-grid .hero-tagline { margin-bottom: 36px; font-size: 12px; animation-delay: 0.65s; }
.hero-grid .hero-cta { animation-delay: 0.8s; }

.hero-savings {
  display: block;
  width: fit-content;
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(0, 191, 255, 0.08);
  border: 1px solid rgba(0, 191, 255, 0.3);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.95s;
  transition: background 0.2s, border-color 0.2s;
}

.hero-savings span { display: block; font-size: 13px; font-weight: 500; color: var(--accent-bright); margin-top: 2px; }
.hero-savings:hover { background: rgba(0, 191, 255, 0.14); border-color: var(--accent-bright); }

.hero-grid .hero-free { display: block; width: fit-content; margin-top: 18px; animation-delay: 1.1s; }

.hero-visual {
  position: relative;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.5s;
}

.hero-photo {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 123, 254, 0.08);
  aspect-ratio: 4 / 5;
  background: var(--card-bg);
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-badge {
  position: absolute;
  left: -36px;
  bottom: 36px;
  max-width: 230px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(13, 37, 64, 0.94);
  border: 1px solid rgba(0, 191, 255, 0.3);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: var(--text-dim);
  backdrop-filter: blur(6px);
  transition: transform 0.2s, border-color 0.2s;
}

.hero-badge:hover { transform: translateY(-3px); border-color: var(--accent-bright); }
.hero-badge-num { display: block; font-size: 30px; font-weight: 800; color: var(--accent-bright); line-height: 1; margin-bottom: 6px; }
.hero-badge-text { display: block; font-size: 12px; line-height: 1.5; }

/* SAVINGS BAND */
.savings-band {
  padding: 96px 80px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.savings-band-inner {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.savings-band-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-dim);
  margin: 20px 0 32px;
  max-width: 480px;
}

.savings-band-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
}

.savings-band-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-dim);
}

.savings-band-row span:last-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.savings-band-total { border-bottom: 0; padding-top: 16px; font-size: 16px; color: var(--text); font-weight: 700; }
.savings-band-total span:last-child { color: var(--accent-bright); font-size: 22px; font-weight: 800; }
.savings-band-foot { font-size: 12px; color: var(--text-dim); margin-top: 8px; }

/* FREE LIBRARY BAND */
.library-band { padding: 96px 80px; position: relative; z-index: 1; }
.library-band-inner { max-width: 1050px; margin: 0 auto; }
.library-band-text { font-size: 15px; font-weight: 300; color: var(--text-dim); max-width: 620px; margin: 20px 0 8px; }
.library-band .notify-box { margin-top: 32px; }
.library-band .artifact-grid { margin-top: 32px; }
.library-band-more { margin-top: 32px; }

/* ABOUT (text + three steps) */
.about-inner-simple { grid-template-columns: 1.2fr 0.8fr; }
.about-steps { display: flex; flex-direction: column; gap: 16px; }
.about-steps .stat-number { font-size: 26px; }

/* SAVINGS POPUP */
.savings-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid rgba(0, 191, 255, 0.25);
  border-radius: 18px;
  background: linear-gradient(160deg, #0b2545 0%, #021128 100%);
  color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.savings-dialog::backdrop { background: rgba(2, 10, 24, 0.75); backdrop-filter: blur(3px); }
.savings-dialog[open] { animation: fadeUp 0.25s ease; }

.savings-inner { position: relative; padding: 36px; font-family: "Montserrat", sans-serif; }

.savings-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
}

.savings-close:hover { color: var(--text); border-color: var(--accent-bright); }

.savings-title { font-size: 24px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; padding-right: 40px; }
.savings-note { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; }

.savings-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 12px; }
.savings-table td { padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.savings-table td:last-child { text-align: right; color: var(--text); font-weight: 600; white-space: nowrap; }
.savings-table tfoot td { color: var(--text); font-weight: 700; border-bottom: 0; padding-top: 12px; }
.savings-table tfoot td:last-child { color: var(--accent-bright); font-size: 17px; font-weight: 800; }

.savings-punch { font-size: 15px; font-weight: 700; color: var(--accent-bright); margin-bottom: 24px; }

.calc {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
}

.calc-title { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 14px; }

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.calc-row label { font-size: 14px; color: var(--text-dim); }

.calc input {
  width: 84px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 123, 254, 0.3);
  background: var(--card-bg);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.calc input:focus { outline: none; border-color: var(--accent-bright); }

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper input { width: 64px; }

.stepper button, .currency button {
  width: 36px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(0, 123, 254, 0.3);
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.calc-rate { display: flex; align-items: center; gap: 8px; }
.currency { display: flex; gap: 4px; }
.currency button { font-size: 14px; }
.currency button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }

.calc-result { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-dim); }
.calc-money { font-size: 30px; font-weight: 800; color: var(--accent-bright); line-height: 1.2; margin: 4px 0; }
.calc-fte { color: var(--text); font-weight: 600; margin-bottom: 8px; }
.calc .savings-note { margin: 8px 0 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 380px; }
  .hero-badge { left: auto; right: -12px; bottom: 24px; }
  .savings-band-inner, .about-inner-simple { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .savings-band, .library-band { padding: 56px 24px; }
  .hero-visual { max-width: 300px; margin: 0 auto; }
  .hero-badge { right: -8px; max-width: 190px; padding: 12px 14px; }
  .hero-badge-num { font-size: 24px; }
  .savings-inner { padding: 28px 20px; }
  .savings-title { font-size: 20px; }
  .calc-row { flex-wrap: wrap; }
  .calc-money { font-size: 26px; }
}

/* Badge on the photo is the single entry point to the savings popup */
.hero-badge-ask { display: block; font-size: 18px; font-weight: 800; color: var(--text); line-height: 1.25; margin-bottom: 6px; }
.hero-badge .hero-badge-text { color: var(--accent-bright); font-weight: 600; }
@media (max-width: 768px) {
  .hero-badge-ask { font-size: 15px; }
}

/* Two-tone headings: white + bright accent on the <span> part */
.section-title span,
.page-title span { color: var(--accent-bright); }

/* Home has no header, so the hero takes the full screen */
.page-home .hero { min-height: 100vh; }

.nowrap { white-space: nowrap; }
.hero-free em { font-style: normal; color: var(--accent-bright); }

/* Legal pages (privacy, terms) and footer links to them */
.legal h2 { font-size: 18px; }
.legal h3 { font-size: 15px; margin: 22px 0 8px; }
.legal ul { list-style: none; padding-left: 0; }
.legal li { padding: 10px 0; border-bottom: 1px solid var(--border); }
.legal li:last-child { border-bottom: 0; }
.legal-updated { font-size: 13px; color: var(--text-dim); opacity: 0.8; }
.footer-text a.footer-legal { font-weight: 500; color: var(--text-dim); }
.footer-text a.footer-legal:hover { color: var(--accent-bright); }

/* Payment pages (/pay/ and one page per currency) */
.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 840px; margin-bottom: 40px; }
.pay-card { display: block; color: var(--text); text-decoration: none; }
.pay-card .service-title, .pay-card .service-desc { display: block; }
.pay-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.pay-note { font-size: 14px; font-weight: 300; color: var(--text-dim); max-width: 720px; }
.pay-note a { color: var(--accent-bright); }
.pay-legal { font-size: 12px; font-weight: 300; color: var(--text-dim); opacity: 0.8; max-width: 720px; margin-top: 24px; }
@media (max-width: 768px) {
  .pay-grid { grid-template-columns: 1fr; gap: 16px; }
}
