/*  Шрифт  */
@font-face {
  font-family: 'Letterica';
  src: url('../fonts/Aglettericademicondensedc.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

/*  Основные переменные  */
:root {
  --bg: #0a0a0a;
  --glass-bg: rgba(25, 25, 25, 0.65);
  --border: rgba(255, 255, 255, 0.05);
  --text: #f2f2f2;
  --muted: #9a9a9a;
  --accent: #ffffff;
  --accent-dim: #cfcfcf;
  --radius: 16px;
  --transition: all 0.3s ease;
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/*  Сброс  */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Letterica', sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.6;
}

/*  Стеклянный стиль  */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

/*  Header  */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 15, 15, 0.6);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  z-index: 100;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 50px;
  position: relative;
  transform: translateY(4px);
}

header .logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transform: scale(1.8);
  transform-origin: left center;
  margin-left: -25px;
  margin-top: -10px;
}

header .logo span {
  font-family: 'Letterica', sans-serif;
  color: var(--accent);
  font-size: 1.9rem;
  letter-spacing: 0.08em;
  line-height: 1;
  transform: translateY(-1px);
}

header .nav {
  display: flex;
  gap: 40px;
}

header .nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.03em;
}

header .nav a:hover {
  color: var(--accent);
}

.cta-small {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  font-weight: 600;
  font-family: 'Letterica', sans-serif;
  cursor: pointer;
  transition: var(--transition);
}

.cta-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 25px rgba(255, 255, 255, 0.25);
}

/*  Hero Section  */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
  padding: 160px 80px 80px;
}

/* Фоновые изображения */
.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-background img {
  position: absolute;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 0 70px rgba(100, 160, 255, 0.35));
  transform: scale(1.1);
  transition: transform 0.3s ease;
  max-width: none;
}

.hero-background .hero-top {
  top: -160px;
  left: -300px;
  width: 680px;
}

.hero-background .hero-bottom {
  bottom: -180px;
  right: -340px;
  width: 780px;
}

/* Контент */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  color: var(--text);
}

.hero-content h1 {
  font-family: 'Letterica', sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--text);
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  margin: 25px 0 40px;
  font-family: 'Letterica', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* CTA */
.cta-main {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: 'Letterica', sans-serif;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.cta-main:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.35);
}

/*  Solutions Section  */
.solutions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 100px 60px;
}

.solution-card {
  width: clamp(260px, 28%, 340px);
  text-align: center;
  padding: 50px 30px;
  transition: var(--transition);
}

.solution-card img {
  width: 90px;
  margin-bottom: 24px;
  transform: scale(1.3);
  transform-origin: center center;
  filter: drop-shadow(0 0 25px rgba(160, 200, 255, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.solution-card:hover img {
  transform: scale(1.4);
  filter: drop-shadow(0 0 40px rgba(180, 220, 255, 0.45));
}

.solution-card h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.solution-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* === BUSINESS SECTION === */
.business {
  max-width: 900px;
  margin: 100px auto;
  padding: 60px 50px;
  text-align: center;
  position: relative;
  border-radius: 20px;
  overflow: hidden;

  /* 👇 фон — лёгкий контраст и глубина без свечения */
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.9)),
    url('../img/bg-business.webp') center/cover no-repeat;

  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.business h2 {
  color: #f3f7fa;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 0 0 6px rgba(255,255,255,0.05);
  position: relative;
  z-index: 1;
}

.business p {
  color: rgba(230,235,245,0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}


/* === CONTACT SECTION === */
.contact {
  max-width: 700px;
  margin: 100px auto;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  border-radius: 20px;
  overflow: hidden;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.9)),
    url('../img/bg-contact.webp') center/cover no-repeat;

  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}

.contact h2 {
  color: #f3f7fa;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-shadow: 0 0 6px rgba(255,255,255,0.05);
  position: relative;
  z-index: 1;
}

.contact p {
  color: rgba(230,235,245,0.85);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.contact .email-link {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.contact .email-link:hover {
  color: #e4f0ff;
  text-shadow: 0 0 8px rgba(255,255,255,0.15);
}



/*  Footer  */
footer {
  text-align: center;
  padding: 60px 20px 80px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
  background: #0a0a0a;
  overflow: hidden;
}

/*  Анимация появления  */
section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/*  Bottom 3D Scene — уходит в никуда за футер  */
/*  Bottom 3D Scene — половина картинки уходит за пределы видимости  */
.bottom-3d {
  position: relative;
  width: 100%;
  height: 450px; /* Контейнер с видимой высотой */
  margin-top: 120px;
  overflow: hidden; /* Обрезаем всё, что выходит за пределы */
  z-index: 1;
}

.bottom-3d img {
  position: absolute;
  left: 50%;
  bottom: -550px; /* Половина картинки уходит за пределы контейнера */
  transform: translateX(-50%) scale(1.1);
  width: 900px;
  max-width: 90%;
  opacity: 0.95;
  pointer-events: none;
  filter: drop-shadow(0 0 80px rgba(120, 180, 255, 0.35));
  transition: transform 0.8s ease, opacity 0.8s ease;
  z-index: 1;
}

.bottom-3d.visible img {
  transform: translateX(-50%) translateY(-20px) scale(1.12);
}

/* === Адаптив === */
@media (max-width: 900px) {
  .bottom-3d {
    height: 300px;
  }
  
  .bottom-3d img {
    width: 600px;
    bottom: -300px;
  }
}
/* === Адаптив === */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 20px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 140px 20px 60px;
  }

  .hero-background .hero-top {
    width: 420px;
    top: -120px;
    left: -150px;
  }

  .hero-background .hero-bottom {
    width: 430px;
    bottom: -130px;
    right: -160px;
  }

  .bottom-3d img {
    width: 600px;
    bottom: -200px;
  }
}
