html {
  scroll-behavior: smooth;
}

body[data-offline-copy="true"] a[href="/go"],
body[data-offline-copy="true"] button {
  cursor: pointer;
}

body[data-offline-copy="true"] a[href="/go"] {
  pointer-events: auto !important;
  cursor: pointer;
  touch-action: manipulation;
  text-decoration: none;
}

body[data-offline-copy="true"] a[href="/go"]:focus-visible {
  outline: 3px solid #ff9d1c;
  outline-offset: 3px;
}

body[data-offline-copy="true"] a.size-full.cursor-pointer[href="/go"]:active {
  opacity: 0.86;
}

/* Next.js reveals these images from an onLoad handler. The offline copy has no
   application JavaScript, so they must be made visible directly. */
body[data-offline-copy="true"] img[data-nimg].opacity-0 {
  opacity: 1 !important;
}

/* Fallbacks for the two inline backgrounds used by sections below the fold. */
body[data-offline-copy="true"] #tesla-stub [style*="tesla-giveaway-bg.webp"] {
  background-image: url("./tesla-giveaway-bg.webp") !important;
}

body[data-offline-copy="true"] #community [style*="bgtg.webp"] {
  background-image: url("./locales/ru/banners/bgtg.webp") !important;
}

.offline-hero-carousel {
  position: relative;
  min-height: 220px;
  width: 100%;
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: linear-gradient(135deg, #111827, #1f2937 50%, #111827);
}

.offline-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease;
}

.offline-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.offline-hero-slide video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offline-hero-controls {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.offline-hero-dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  cursor: pointer !important;
  transition: width 0.25s ease, background 0.25s ease;
}

.offline-hero-dot.is-active {
  width: 2.25rem;
  background: linear-gradient(90deg, #ff8c00, #ffd700);
}

@media (min-width: 640px) {
  .offline-hero-carousel {
    min-height: 280px;
  }
}

@media (min-width: 1024px) {
  .offline-hero-carousel {
    min-height: 344px;
  }
}

.seo-content {
  position: relative;
  padding: 4rem 1rem 5rem;
  color: #d1d5db;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 140, 0, 0.08), transparent 34rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 18rem);
}

.seo-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.seo-breadcrumb {
  margin-bottom: 0.75rem;
  color: #ff9d1c;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-content h1 {
  max-width: 980px;
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.seo-content h2 {
  margin: 3.5rem 0 1rem;
  color: #fff;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  font-weight: 850;
  line-height: 1.2;
}

.seo-content h3 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.35;
}

.seo-content p,
.seo-content li {
  font-size: 1rem;
  line-height: 1.8;
}

.seo-content p {
  margin: 0 0 1rem;
}

.seo-content strong {
  color: #f9fafb;
}

.seo-content code {
  padding: 0.15rem 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.35rem;
  color: #ffd166;
  background: rgba(255, 255, 255, 0.05);
}

.seo-lead {
  max-width: 980px;
  color: #e5e7eb;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem) !important;
}

.seo-summary,
.seo-toc,
.seo-final {
  margin-top: 2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 166, 0, 0.24);
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.09), rgba(255, 215, 0, 0.025));
}

.seo-summary-title,
.seo-toc-title {
  display: block;
  margin-bottom: 0.5rem;
  color: #ffad33;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.seo-summary p,
.seo-final p {
  margin-bottom: 0;
}

.seo-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 2rem;
  margin: 0;
  padding-left: 1.2rem;
}

.seo-table-wrap {
  margin: 1.75rem 0 2.5rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.seo-content table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}

.seo-content caption {
  padding: 1rem 1.2rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-align: left;
  background: rgba(255, 140, 0, 0.08);
}

.seo-content th,
.seo-content td {
  padding: 0.9rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.55;
}

.seo-content th {
  color: #ffb84d;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.025);
}

.seo-content tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.seo-steps,
.seo-checklist {
  margin: 1.25rem 0 2rem;
  padding-left: 1.4rem;
}

.seo-steps li,
.seo-checklist li {
  margin-bottom: 0.6rem;
  padding-left: 0.25rem;
}

.seo-steps li::marker,
.seo-checklist li::marker {
  color: #ff9d1c;
  font-weight: 900;
}

.seo-safety-grid,
.seo-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.seo-safety-card,
.seo-faq article {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.seo-safety-card strong,
.seo-safety-card span {
  display: block;
}

.seo-safety-card strong {
  margin-bottom: 0.45rem;
  color: #ffad33;
}

.seo-safety-card span,
.seo-faq p {
  color: #b9c0ca;
  line-height: 1.65;
}

.seo-faq p {
  margin: 0;
  font-size: 0.95rem;
}

.seo-final {
  margin-top: 3.5rem;
  padding: 1.8rem;
}

.seo-final h2 {
  margin-top: 0;
}

.seo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1.4rem;
  border-radius: 0.8rem;
  color: #111 !important;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(90deg, #ff8c00, #ffd700);
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.22);
}

.seo-disclaimer {
  margin-top: 1.25rem !important;
  color: #9ca3af;
  font-size: 0.82rem !important;
  line-height: 1.6 !important;
}

@media (max-width: 767px) {
  .seo-content {
    padding: 3rem 1rem 4rem;
  }

  .seo-toc ul,
  .seo-safety-grid,
  .seo-faq {
    grid-template-columns: 1fr;
  }

  .seo-summary,
  .seo-toc,
  .seo-final {
    padding: 1.15rem;
  }
}
