:root {
  color-scheme: light;
  --bg: #0f2f2e; /* dark sea wave */
  --text: #1f2a44;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #111827;
  --accent-contrast: #ffffff;
  --soft: #f8fafc;
}

html,
body {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg) !important;
  line-height: 1.6;
  font-size: 20px;
}

/* === LAYOUT === */

main {
  max-width: 720px; /* mobile / tablet */
  margin: 0 auto;
  padding: 24px;
  padding-top: 56px; /* show background above first card */
  padding-bottom: 96px; /* show background after last card */
}

@media (min-width: 1024px) {
  main {
    max-width: 1100px; /* desktop — wider but not full width */
    padding: 40px;
    padding-top: 80px;
    padding-bottom: 140px;
  }

  body {
    font-size: 30px; /* bigger on desktop */
  }
}

/* === SECTIONS (cards) === */

main > section {
  margin-bottom: 72px;
  padding: 32px 28px;
  border: 1px solid rgba(100, 116, 139, 0.22); /* very soft blue-grey */
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 6px 8px 20px rgba(15, 23, 42, 0.08);
}

@media (min-width: 1024px) {
  main > section {
    margin-bottom: 96px;
    padding: 40px 48px;
  }
}

/* === TYPO === */

h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 32px;
}

h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  line-height: 1.22;
  margin: 0 0 28px;
}

h3 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.25;
  margin: 36px 0 18px;
}

p {
  margin: 0 0 18px;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
}

/* === FOOTER === */

footer.footer {
  border-top: 1px solid var(--border);
  margin-top: 36px;
  padding: 28px 0 clamp(56px, 10vh, 96px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

/* Footer contacts */

.contact-title {
  color: #ffffff;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  max-width: 30ch;
  margin: 6px auto 14px;
  padding: 0 16px;
  text-align: center;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 12px;
}

.contact-icon svg {
  display: block;
  transition: transform 0.2s ease;
}

.contact-icon:hover svg {
  transform: scale(1.1);
}

/* === TABLE === */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-size: 0.95em;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  vertical-align: top;
}

.comparison-table thead th {
  border-bottom: 2px solid #e2e6ef;
  color: #1f2a44;
}

.comparison-table tbody tr {
  border-bottom: 1px solid #eef1f6;
}

.comparison-table tbody tr:nth-child(even) {
  background: #f9fafc;
}

/* Good / bad markers */
.comparison-table td.good::before {
  content: "✓ ";
  color: #2fa36b;
  font-weight: bold;
}

.comparison-table td.bad::before {
  content: "✕ ";
  color: #d64545;
  font-weight: bold;
}

/* Optional soft backgrounds */
.comparison-table td.good {
  background: #f3fbf7;
}

.comparison-table td.bad {
  background: #fff5f5;
}

/* === IMAGES === */

.hero-illustration {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin: 18px auto 26px;
}

@media (min-width: 1024px) {
  .hero-illustration {
    margin: 40px auto 56px; /* more space above/below on desktop */
  }
}

@media (max-width: 520px) {
  .hero-illustration {
    width: 92%;
    margin: 14px auto 22px;
  }
}

main img {
  border-radius: 20px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

/* === Scroll to top button === */

.scroll-to-top {
  position: fixed;
  top: 20px;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #000000;
  background: rgba(248, 250, 252, 0.88);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, -6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 999;
}

.scroll-to-top.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.scroll-to-top:hover {
  transform: translate(-50%, -2px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.2);
}

.scroll-to-top:focus-visible {
  outline: 2px solid rgba(15, 23, 42, 0.35);
  outline-offset: 3px;
}

/* === HERO overrides (must be at the very end) === */

section#hero.hero {
  display: block;
}

section#hero .hero-top {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 20px;
}

section#hero img.hero-logo {
  width: clamp(200px, 25vw, 320px);
  height: auto;
  margin: 0;
  border-radius: 14px;
}

section#hero.hero h1 {
  margin: 0;
}

section#hero .hero-right {
  margin: 6px 0 18px;
}

section#hero .hero-right img {
  width: min(48%, 520px);
  float: right;
  margin: 0 0 16px 28px;
  border-radius: 20px;
}

section#hero .hero-subtitle,
section#hero .hero-points,
section#hero .hero-nav {
  clear: left;
}

@media (max-width: 900px) {
  section#hero .hero-right img {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }
}

section#hero .hero-nav {
  display: flex;
  flex-wrap: wrap; /* allow 5+ buttons */
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

section#hero .hero-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #173a76 0%, #0b234f 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 3px rgba(0, 0, 0, 0.28),
    0 6px 12px rgba(8, 22, 46, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

section#hero .hero-nav a:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 4px rgba(0, 0, 0, 0.3),
    0 8px 14px rgba(8, 22, 46, 0.32);
}

section#hero .hero-nav a:active {
  transform: translateY(1px);
  filter: brightness(0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 2px 4px rgba(0, 0, 0, 0.32),
    0 4px 8px rgba(8, 22, 46, 0.25);
}

/* Gold "Contact Us" button (must override hero-nav a) */
section#hero .hero-nav a.nav-contact {
  background: linear-gradient(135deg, #b8860b, #d4af37);
  color: #ffffff;
}

section#hero .hero-nav a.nav-contact:hover {
  background: linear-gradient(135deg, #a07808, #c49b2f);
}

/* Large QR block under hero image (right side) */

section#hero .hero-qr-block {
  float: right;
  width: min(48%, 520px);
  margin: 0 0 22px 28px;
  text-align: center;
}

section#hero .hero-qr-large {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 22px;
  border: 1.5px solid rgba(20, 40, 90, 0.15);
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

section#hero .hero-qr-caption {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: #173a76;
  letter-spacing: 0.04em;
}

@media (max-width: 520px) {
  section#hero img.hero-logo {
    width: 220px;   /* подними как нравится */
    max-width: 20vw; /* чтобы не вылезало за экран */
  }
}
html[data-theme="dark"] body { background: #102f2b !important; color: #eef4e8; }
html[data-theme="dark"] main > section { background: #183c36; color: #eef4e8; border-color: #41675d; }
html[data-theme="dark"] main > section p, html[data-theme="dark"] main > section li, html[data-theme="dark"] main > section h1, html[data-theme="dark"] main > section h2, html[data-theme="dark"] main > section h3 { color: #eef4e8; }
