:root {
  --bg: #07111f;
  --line: rgba(168, 188, 214, 0.14);
  --text: #eef5ff;
  --muted: #9aabc4;
  --google-blue: #4285f4;
  --google-red: #ea4335;
  --google-yellow: #fbbc05;
  --google-green: #34a853;
  --danger: #ff8f8f;
  --warm: #ffd16b;
  --radius: 24px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 18%, rgba(66, 133, 244, 0.22), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(24, 119, 242, 0.18), transparent 24%),
    radial-gradient(circle at 58% 82%, rgba(52, 168, 83, 0.12), transparent 30%),
    linear-gradient(180deg, #07111f 0%, #081221 46%, #040a13 100%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(66, 133, 244, 0.05), transparent 25%, transparent 75%, rgba(24, 119, 242, 0.04)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%);
  opacity: 0.8;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.backdrop-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 88%);
  opacity: 0.5;
}

.backdrop-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.34;
  animation: floatGlow 10s ease-in-out infinite alternate;
}

.backdrop-glow-a {
  top: -80px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: rgba(66, 133, 244, 0.28);
}

.backdrop-glow-b {
  right: -60px;
  top: 180px;
  width: 320px;
  height: 320px;
  background: rgba(24, 119, 242, 0.2);
  animation-delay: 1.2s;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 56px;
}

.page-main,
.content-section,
.catalog-section,
.stack-form,
.orders-list,
.products-grid,
.info-grid,
.steps-grid,
.reviews-grid,
.blog-grid {
  display: grid;
  gap: 20px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 28px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 14, 24, 0.94);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-google-word,
.hero-google-word {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-g {
  color: var(--google-blue);
}

.brand-r {
  color: var(--google-red);
}

.brand-y {
  color: var(--google-yellow);
}

.brand-green {
  color: var(--google-green);
}

.brand-amp {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 700;
}

.brand-facebook-word,
.hero-facebook-word {
  color: #3384ff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.site-nav,
.hero-cta,
.section-head-inline,
.product-head,
.profile-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-nav {
  justify-content: flex-end;
  gap: 26px;
}

.site-nav a,
.nav-link-button {
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.site-nav a:hover,
.nav-link-button:hover,
.nav-active {
  color: var(--text);
}

.nav-cta,
.primary-button,
.ghost-button,
.telegram-button {
  padding: 12px 20px;
  border-radius: 14px;
}

.primary-button,
.ghost-button,
.telegram-button,
.text-button,
.auth-close {
  border: 0;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.primary-button {
  background: linear-gradient(135deg, #4d8cff 0%, #3d76e6 100%);
  color: #f8fbff;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(61, 118, 230, 0.28);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--line);
}

.telegram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2aa6ea, #229ed9);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(34, 158, 217, 0.28);
}

.text-button {
  padding: 0;
  background: transparent;
  color: #7cf0d1;
  text-align: left;
}

.primary-button:hover,
.ghost-button:hover,
.text-button:hover,
.telegram-button:hover,
.auth-close:hover {
  transform: translateY(-2px);
}

.hero-copy,
.content-section,
.product-card,
.auth-dialog {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(13, 24, 40, 0.88), rgba(7, 15, 27, 0.92));
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy::before,
.content-section::before,
.product-card::before,
.auth-dialog::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 40%);
}

.hero-copy,
.content-section {
  padding: 28px;
}

.hero-copy {
  padding: 68px 44px;
  text-align: center;
}

.hero h1,
.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.05;
}

.hero h1 {
  max-width: 10ch;
  margin: 18px auto 16px;
  font-size: clamp(3rem, 5.8vw, 5.6rem);
}

.hero-text,
.section-note,
.product-description,
.empty-state,
.profile-line span,
label span,
th,
td,
textarea,
input,
select,
.info-card p,
.step-card p,
.review-card p,
.blog-card p,
.page-copy p {
  color: var(--muted);
}

.hero-text {
  max-width: 54ch;
  margin: 0 auto;
  font-size: 1.12rem;
  line-height: 1.78;
}

.hero-kicker {
  margin: 18px 0 10px;
  color: #9fd443;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-dynamic-shell {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.hero-title-static,
.hero-title-dynamic {
  display: block;
}

.hero-title-dynamic {
  min-height: 1.12em;
  color: #6ea8ff;
  text-shadow: 0 12px 34px rgba(62, 122, 255, 0.22);
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.hero-title-dynamic.is-switching {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(6px);
}

.hero-slogan-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 26px auto 0;
}

.hero-slogan-card {
  display: grid;
  gap: 10px;
  text-align: left;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(168, 188, 214, 0.12);
  background: linear-gradient(180deg, rgba(10, 21, 36, 0.86), rgba(8, 16, 28, 0.94));
  box-shadow: 0 16px 34px rgba(3, 10, 20, 0.24);
}

.hero-slogan-google {
  border-color: rgba(76, 133, 255, 0.2);
}

.hero-slogan-facebook {
  border-color: rgba(47, 140, 255, 0.24);
}

.hero-slogan-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d7e7ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-slogan-card strong {
  font-size: 1.05rem;
  line-height: 1.5;
}

.hero-subline {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.hero-brand-lockup {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.hero-best {
  color: #9fd443;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: clamp(2.2rem, 3.2vw, 3.3rem);
}

.hero-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-google-word {
  font-size: clamp(3.2rem, 5.2vw, 4.8rem);
}

.hero-brand-plus {
  color: rgba(255, 255, 255, 0.26);
  font-size: clamp(2.2rem, 3vw, 3rem);
}

.hero-facebook-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(58px, 5vw, 72px);
  height: clamp(58px, 5vw, 72px);
  border-radius: 18px;
  background: linear-gradient(180deg, #3384ff, #1877f2);
  box-shadow: 0 0 28px rgba(24, 119, 242, 0.45);
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.hero-facebook-word {
  font-size: clamp(2.3rem, 4vw, 3.4rem);
}

.hero-cta-centered,
.section-head-inline {
  justify-content: space-between;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-note {
  max-width: 34ch;
  line-height: 1.6;
  font-size: 0.95rem;
  text-align: right;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--warm);
  font-size: 0.76rem;
  font-weight: 700;
}

.info-grid,
.steps-grid,
.reviews-grid,
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.step-card,
.review-card,
.blog-card {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.page-link-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.page-link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

.info-card strong,
.step-card strong,
.review-card strong,
.blog-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.step-card span,
.blog-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--warm);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.page-copy {
  display: grid;
  gap: 16px;
  max-width: 820px;
  line-height: 1.8;
}

.products-grid {
  grid-template-columns: repeat(auto-fit, minmax(285px, 1fr));
}

.product-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.card-stripe {
  height: 5px;
  margin: -28px -28px 0;
  background: linear-gradient(90deg, var(--google-blue), var(--google-red), var(--google-yellow), var(--google-green), #1877f2);
}

.product-category {
  margin: 0 0 6px;
  color: var(--warm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

.product-title,
.product-price {
  margin: 0;
}

.product-title {
  font-size: 1.34rem;
}

.product-price {
  color: #7cf0d1;
  font-weight: 800;
  font-size: 1.08rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.stock-pill {
  display: inline-flex;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.84rem;
}

.stock-line {
  font-size: 0.96rem;
}

.stock-pill.good {
  color: #8ff0c0;
}

.stock-pill.low {
  color: var(--warm);
}

.stock-pill.empty {
  color: var(--danger);
}

.profile-line,
.order-item,
.empty-state {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-line,
.order-item,
.empty-state {
  padding: 16px;
}

.order-item h3,
.order-item p {
  margin: 0;
}

.order-files {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.file-link {
  color: #86f0b7;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 15px;
  border: 1px solid rgba(168, 188, 214, 0.12);
  background: rgba(3, 10, 20, 0.76);
}

.stack-form label {
  display: grid;
  gap: 8px;
}

.auth-helper {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  align-items: center;
}

#authVerificationWrap {
  display: grid;
  gap: 12px;
}

#authVerificationCode {
  letter-spacing: 0.18em;
  text-align: center;
  font-size: 1.05rem;
}

.status-text {
  min-height: 20px;
  margin: 0;
  line-height: 1.5;
}

.status-success {
  color: #7cf0d1;
}

.status-error {
  color: var(--danger);
}

.status-warning {
  color: var(--warm);
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, 0.72);
  backdrop-filter: blur(8px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 28px));
  margin: 10vh auto 0;
  padding: 28px;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.reveal {
  opacity: 0;
  animation: revealUp 0.7s cubic-bezier(.22, 1, .36, 1) forwards;
}

.rise-1 {
  animation-delay: 0.05s;
}

.rise-2 {
  animation-delay: 0.14s;
}

.rise-3 {
  animation-delay: 0.24s;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(18px, -10px, 0) scale(1.08);
  }
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .info-grid,
  .steps-grid,
  .reviews-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section-head-inline {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-note {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 18px, 1240px);
  }

  .topbar,
  .site-nav,
  .hero-cta,
  .section-head-inline,
  .product-head,
  .profile-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    position: static;
    padding: 18px 0;
    border-bottom: 0;
    background: transparent;
  }

  .hero-copy,
  .content-section,
  .product-card,
  .auth-dialog {
    padding: 22px;
  }

  .hero-slogan-row {
    grid-template-columns: 1fr;
  }

  .card-stripe {
    margin-left: -22px;
    margin-right: -22px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 10vw, 4.2rem);
  }

  .hero-google-word {
    font-size: clamp(2.5rem, 10vw, 3.7rem);
  }

  .hero-facebook-word {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
}
