/* ======================================================
   DESIGN SYSTEM (Premium / Amber)
   ====================================================== */

/* ===== CANVAS LAYER ===== */
#ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;            /* между фоном и контентом */
  pointer-events: none;
}

/* ===== ROOT ===== */
:root {
  --bg-main: #0e0e11;
  --bg-soft: #15151a;
  --bg-card: #1b1b22;

  --text-main: #ffffff;
  --text-muted: #b5b5b5;

  --accent: #f5a623;
  --accent-soft: rgba(245,166,35,0.25);

  --radius: 14px;
  --radius-lg: 22px;

  --transition-fast: 0.2s ease;
  --transition: 0.35s ease;
  --transition-slow: 0.6s ease;

  --shadow-soft: 0 10px 40px rgba(0,0,0,0.35);
  --shadow-accent: 0 0 30px rgba(245,166,35,0.45);
}

/* ======================================================
   RESET
   ====================================================== */

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

html {
  scroll-behavior: smooth;
  background: var(--bg-main);   /* ФОН ТУТ */
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Ubuntu, sans-serif;
  background: transparent;      /* ВАЖНО */
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ======================================================
   CONTENT LAYER (ПОВЕРХ CANVAS)
   ====================================================== */

.header,
.hero,
section,
footer {
  position: relative;
  z-index: 5;
}

/* ======================================================
   LAYOUT
   ====================================================== */

section {
  padding: 120px 6vw;
}

@media (max-width: 768px) {
  section {
    padding: 80px 5vw;
  }
}

h1, h2, h3 {
  margin: 0 0 20px;
  font-weight: 800;
  line-height: 1.15;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

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

/* ======================================================
   HEADER
   ====================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6vw;
  background: rgba(14,14,17,0.7);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.logo {
  font-weight: 900;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

.lang {
  display: flex;
  gap: 12px;
}

.lang a {
  font-size: 0.85rem;
  opacity: 0.6;
}

.lang a.active {
  opacity: 1;
  color: var(--accent);
}

/* ======================================================
   HERO
   ====================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 6vw;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px circle at 20% 30%, var(--accent-soft), transparent 60%),
    radial-gradient(600px circle at 80% 70%, rgba(255,190,90,0.18), transparent 65%);
  z-index: 1;
}

.hero-content {
  position: relative;
  max-width: 760px;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
}

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

.hero p {
  font-size: 1.15rem;
  margin: 24px 0 40px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ======================================================
   BUTTONS
   ====================================================== */

.btn {
  padding: 16px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn.primary {
  background: var(--accent);
  color: #000;
}

.btn.primary:hover {
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.btn.ghost {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn.ghost:hover {
  background: rgba(245,166,35,0.08);
}

/* ======================================================
   SERVICES
   ====================================================== */

.services {
  background: var(--bg-soft);
}

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

.service-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      300px circle at 50% 50%,
      rgba(245,166,35,0.14),
      transparent 60%
    );
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.service-card h3 {
  margin-bottom: 16px;
  color: var(--accent);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card li {
  padding: 6px 0 6px 14px;
  color: var(--text-muted);
  position: relative;
}

.service-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.6;
}

/* ======================================================
   CALCULATOR
   ====================================================== */

.calculator {
  background: var(--bg-main);
}

.calc-form {
  max-width: 520px;
  margin: 60px auto 0;
  padding: 40px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0)
  );
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
}

.calc-form select,
.calc-form input {
  width: 100%;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid #2a2a33;
  border-radius: var(--radius);
  color: var(--text-main);
  font-size: 1rem;
}

.calc-form select:focus,
.calc-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.calc-form button {
  margin-top: 10px;
  font-size: 1.05rem;
}

/* ======================================================
   WHY US
   ====================================================== */

.why {
  background: var(--bg-soft);
}

.why-list {
  max-width: 720px;
  margin: 50px auto 0;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
}

.why-list li {
  background: var(--bg-card);
  padding: 20px 26px;
  border-radius: var(--radius);
  color: var(--text-muted);
  position: relative;
  transition: var(--transition);
}

.why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  border-radius: 4px 0 0 4px;
}

.why-list li:hover {
  transform: translateX(6px);
  color: var(--text-main);
}

.why-list li:hover::before {
  width: 6px;
}

/* ======================================================
   CONTACTS
   ====================================================== */

.contacts {
  position: relative;
  text-align: center;
  padding-bottom: 140px;
}

.contacts::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    transparent
  );
  opacity: 0.6;
}

.contacts p {
  margin: 10px 0;
  font-size: 1.05rem;
}

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

/* ======================================================
   FOOTER
   ====================================================== */

.footer {
  padding: 40px 6vw;
  text-align: center;
  background: #0a0a0d;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

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

  .nav {
    display: none;
  }
}
