:root {
  --bg: #09101a;
  --bg-2: #0f1724;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #eef4ff;
  --muted: #b0bdd3;
  --gold: #f4c96b;
  --gold-2: #c08e33;
  --accent: #6fa9ff;
  --success: #4cd07f;
  --telegram: #29a8ea;
  --telegram-2: #1479b9;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

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

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(244, 201, 107, 0.12), transparent 28%),
    linear-gradient(180deg, #08101a 0%, #0a111c 100%);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.bg-grid {
  position: fixed;
  inset: 0;
  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: 32px 32px;
  pointer-events: none;
  z-index: -3;
  opacity: 0.25;
}

.bg-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -2;
}

.bg-glow-1 { top: -60px; left: -100px; background: #d9a84d; }
.bg-glow-2 { right: -120px; top: 220px; background: #4a7cff; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(7, 13, 22, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topbar-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-with-logo {
  display: inline-flex;
  align-items: center;
  max-width: 310px;
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
}

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

.nav a {
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.nav a:hover { color: #fff; }

.nav-telegram {
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(41,168,234,0.26), rgba(20,121,185,0.24));
  border: 1px solid rgba(41,168,234,0.35);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.section { padding: 96px 0; position: relative; }

.section-soft {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.035));
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.hero { padding-top: 70px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(111, 169, 255, 0.12);
  border: 1px solid rgba(111, 169, 255, 0.22);
  color: #d9e7ff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.eyebrow-telegram {
  background: rgba(41,168,234,0.14);
  border-color: rgba(41,168,234,0.25);
  color: #dff5ff;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  max-width: 720px;
}

.hero h1 span { color: var(--gold); }

.hero-text {
  margin: 22px 0 0;
  max-width: 680px;
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions, .cta-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: var(--shadow);
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(180deg, #ffd782 0%, #d49d3e 100%);
  color: #231806;
}

.btn-secondary {
  background: linear-gradient(180deg, #7fb3ff 0%, #4f7dcb 100%);
  color: white;
}

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid var(--stroke);
}

.btn-telegram {
  background: linear-gradient(180deg, var(--telegram) 0%, var(--telegram-2) 100%);
  color: white;
}

.btn-large {
  min-height: 60px;
  padding: 0 28px;
  font-size: 1.02rem;
}

.hero-mini {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mini-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}

.mini-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.mini-card span {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.96rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: min(420px, 100%);
  padding: 16px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
}

.phone-frame img {
  border-radius: 24px;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.section-head p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.support-strip-card,
.support-panel {
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(41,168,234,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(41,168,234,0.22);
  box-shadow: var(--shadow);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: center;
}

.support-strip-copy h2,
.support-panel-copy h2,
.cta-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.support-strip-copy p,
.support-panel-copy p,
.cta-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step-card,
.info-card,
.system-card,
.gallery-card,
.faq-item,
.cta-card {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.step-card { padding: 24px; }

.step-no {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(244,201,107,0.22), rgba(192,142,51,0.18));
  border: 1px solid rgba(244, 201, 107, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff3d0;
  margin-bottom: 18px;
}

.step-card h3,
.info-card h3,
.system-card h3,
.building-body h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.step-card p,
.info-card p,
.system-card p,
.building-body p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.info-card, .system-card { padding: 24px; }

.building-grid {
  display: grid;
  gap: 24px;
}

.building-card {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.building-media { min-height: 100%; background: rgba(255,255,255,0.03); }
.building-media img { width: 100%; height: 100%; object-fit: cover; }

.building-body { padding: 32px; }

.tag {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(76, 208, 127, 0.12);
  border: 1px solid rgba(76, 208, 127, 0.22);
  color: #d8ffe6;
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 16px;
}

.building-body ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

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

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

.gallery-card { overflow: hidden; }

.gallery-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 14px 16px 18px;
  color: var(--muted);
  font-weight: 600;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item { padding: 0; overflow: hidden; }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 18px;
  font-size: 1.6rem;
  color: var(--gold);
}

.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 24px 22px; }

.cta-card {
  padding: 34px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.14);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.telegram-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(180deg, var(--telegram) 0%, var(--telegram-2) 100%);
  color: white;
  font-weight: 800;
  box-shadow: 0 18px 45px rgba(20,121,185,0.42);
  border: 1px solid rgba(255,255,255,0.18);
}

.telegram-float-icon {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.16);
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero-grid,
  .cta-card,
  .building-card,
  .support-strip-card,
  .support-panel {
    grid-template-columns: 1fr;
  }

  .steps-grid,
  .systems-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: rgba(8, 14, 24, 0.96);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
  }

  .nav.open { display: flex; }

  .section { padding: 78px 0; }
  .hero { padding-top: 42px; }

  .steps-grid,
  .feature-grid.two-col,
  .systems-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-head { margin-bottom: 28px; }
  .container { width: min(var(--container), calc(100% - 20px)); }

  .cta-card,
  .building-body,
  .step-card,
  .info-card,
  .system-card,
  .support-strip-card,
  .support-panel {
    padding: 22px;
  }

  .topbar-inner { min-height: 74px; }
  .brand-with-logo { max-width: 220px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .telegram-float {
    right: 12px;
    bottom: 12px;
    min-height: 52px;
    padding: 0 14px;
    font-size: 0.95rem;
  }
}
