/* LuxCyber landing — typography & layout */
:root {
  --bg-deep: #07080c;
  --bg-card: #0f1118;
  --bg-elevated: #161a24;
  --border: rgba(255, 255, 255, 0.06);
  --text: #e8eaef;
  --text-muted: #8b92a5;
  --accent: #c9a962;
  --accent-dim: rgba(201, 169, 98, 0.15);
  --accent-glow: rgba(201, 169, 98, 0.35);
  --cyan: #3db8e8;
  --radius: 12px;
  --font: "Montserrat", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 184, 232, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(201, 169, 98, 0.06), transparent);
  min-height: 100vh;
}

/* 3D-фон (Three.js): градієнт лишається запасним, поки не завантажиться сцена */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 0.7s ease;
}

#bg-canvas.is-ready {
  opacity: 1;
}

body.bg-3d {
  background-image: none;
  background-color: transparent;
}

.bg-overlay {
  display: none;
}

body.bg-3d .bg-overlay {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 55% at 50% -15%, rgba(61, 184, 232, 0.09), transparent 52%),
    radial-gradient(ellipse 55% 45% at 95% 40%, rgba(201, 169, 98, 0.05), transparent 48%),
    linear-gradient(180deg, rgba(7, 8, 12, 0.3) 0%, rgba(7, 8, 12, 0.72) 100%);
}

body.bg-3d > header,
body.bg-3d > main,
body.bg-3d > footer,
body.bg-3d > iframe {
  position: relative;
  z-index: 1;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #dfc07a;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 12, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.header__logo-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  flex-shrink: 0;
  margin-right: auto;
  line-height: 1.2;
}

.header__logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.header__logo {
  height: clamp(32px, 4.5vw, 42px);
  width: auto;
  max-width: min(180px, 46vw);
  object-fit: contain;
  vertical-align: middle;
}

.header__logo-link:hover .header__logo {
  opacity: 0.92;
}

.header__phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.btn-primary {
  color: #0a0a0f;
}

.nav-links a.btn-primary:hover {
  color: #000000;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

/* Замовити / основна дія: білий фон, чорний текст */
.btn-primary {
  background: #ffffff;
  color: #0a0a0f;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 4px 20px rgba(255, 255, 255, 0.12),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #f5f6f8;
  color: #000000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 6px 28px rgba(255, 255, 255, 0.2),
    0 12px 40px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Другорядні кнопки — яскравіші акценти */
.btn-outline {
  background: rgba(61, 184, 232, 0.12);
  color: #5fd4ff;
  border: 2px solid rgba(95, 212, 255, 0.65);
  box-shadow: 0 0 24px rgba(61, 184, 232, 0.12);
}

.btn-outline:hover {
  background: rgba(61, 184, 232, 0.22);
  color: #9ae8ff;
  border-color: #7ddbff;
  box-shadow:
    0 0 28px rgba(61, 184, 232, 0.28),
    0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }

  .hero-inner .hero-cta {
    justify-content: flex-start;
  }

  .hero-inner .hero-badge {
    margin-left: 0;
  }

  .hero-inner h1 {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .hero-inner .lead {
    margin-left: 0;
    margin-right: 0;
    max-width: 40ch;
  }
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 auto 1rem;
  max-width: 18ch;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0 auto 2rem;
  max-width: 42ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: var(--bg-card);
}

.hero-visual--video {
  padding: 0;
  scroll-margin-top: 5rem;
}

.hero-visual--video .video-wrap {
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.hero-visual--video .video-wrap iframe {
  border-radius: 0;
}

/* Постер + клік — iframe з’являється після дії користувача (менше помилок YouTube 153) */
.video-wrap.yt-lite {
  cursor: pointer;
  outline: none;
}

.video-wrap.yt-lite:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}

.video-wrap.yt-lite--loaded {
  cursor: default;
}

.video-wrap.yt-lite .yt-lite__poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-wrap.yt-lite .yt-lite__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 52px;
  margin: -26px 0 0 -36px;
  background: rgba(200, 30, 30, 0.95);
  border-radius: 14px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.video-wrap.yt-lite .yt-lite__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}

.video-wrap.yt-lite .yt-lite__hint {
  position: absolute;
  bottom: 0.55rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  white-space: nowrap;
}

.video-wrap .yt-lite__iframe-shell {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-wrap .yt-lite__iframe-shell iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hero-video-note {
  margin: 0;
  padding: 0.65rem 0.85rem 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.hero-video-note a {
  font-weight: 600;
}

@media (min-width: 900px) {
  .hero-inner .hero-video-note {
    text-align: left;
  }
}

/* Video */
.video-block {
  max-width: 900px;
  margin: 0 auto;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #000;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.video-caption a {
  font-weight: 600;
}

.video-caption + .video-caption {
  margin-top: 0.5rem;
}

.video-caption code {
  font-size: 0.85em;
  color: var(--accent);
}

/* Media gallery */
.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.media-tile {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.media-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.media-tile figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.media-tile--logo img {
  aspect-ratio: auto;
  min-height: 160px;
  object-fit: contain;
  padding: 2rem;
  background: #f4f6f9;
}

/* Sections */
section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

section h2 {
  margin: 0 0 2.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
}

.bg-band {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Grid cards */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: rgba(201, 169, 98, 0.25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

/* Feature rows */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(61, 184, 232, 0.2), rgba(201, 169, 98, 0.15));
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Specs */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.spec-cell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  text-align: center;
}

.spec-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.spec-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.specs-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 700px) {
  .specs-two-col {
    grid-template-columns: 1fr;
  }
}

.specs-two-col h3 {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.dim-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.dim-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--text);
}

.dim-table tr:last-child td {
  border-bottom: none;
}

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, rgba(201, 169, 98, 0.12), rgba(61, 184, 232, 0.08));
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 98, 0.2);
  margin-top: 2rem;
}

.cta-strip h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.cta-strip p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1.25rem 1rem;
  align-items: center;
  justify-items: center;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.5rem 0.75rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s, background 0.2s;
}

.partner-logo:hover {
  border-color: rgba(201, 169, 98, 0.25);
  background: rgba(255, 255, 255, 0.06);
}

.partner-logo img {
  max-width: 100%;
  max-height: 40px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.partner-logo:hover img {
  opacity: 1;
}

.partners-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Form */
.contact-section {
  padding-bottom: 4rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-intro h2 {
  margin-bottom: 0.75rem;
}

.contact-intro p {
  color: var(--text-muted);
  margin: 0;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.form-row {
  margin-bottom: 1.1rem;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(201, 169, 98, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.form-hint code {
  font-size: 0.85em;
  color: var(--accent);
}

.form-card .btn-block {
  width: 100%;
}

.form-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-message.success {
  background: rgba(46, 160, 100, 0.15);
  color: #7dcea0;
  border: 1px solid rgba(46, 160, 100, 0.35);
}

.form-message.error {
  background: rgba(200, 80, 80, 0.12);
  color: #e8a0a0;
  border: 1px solid rgba(200, 80, 80, 0.3);
}

/* Footer — колір тексту як у світлого логотипу LuxWash на темному тлі */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text);
}

.site-footer a {
  color: var(--accent);
}

.site-footer a:hover {
  color: #dfc07a;
}

.other-tech {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.other-tech h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

/* Mobile nav */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    gap: 0.75rem;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .site-header .inner {
    flex-wrap: wrap;
  }
}
