/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
  --brand: #ff9900;

  --bubble-highlight: rgba(255, 210, 120, 0.95);
  --bubble-mid: #ff9900;
  --bubble-dark: #c86e00;
  --bubble-deep: #643700;
  --bubble-glow: rgba(255,153,0,0.35);
}

html {
  scroll-behavior: smooth;
}

/* =========================================================
   GLOBAL
========================================================= */

body {
  margin: 0;
  min-height: 100vh;
  padding-top: 72px;

  background: radial-gradient(
    circle at 50% -10%,
    #3a3a3a 0%,
    #1b1b1b 55%,
    #0f0f0f 100%
  );

  font-family: "Manrope", sans-serif;
  color: #ffffff;
  overflow-x: hidden;
}

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

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 72px;

  background: linear-gradient(
    to bottom,
    rgba(55,55,55,0.95),
    rgba(32,32,32,0.85)
  );

  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 100000;
}

.header-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */

.site-logo img {
  height: 60px;
  display: block;
}

/* Header contacts */

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 1px;

  color: #ffffff;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-decoration: none;

  transition: color 0.25s ease;
}

.header-item:hover {
  color: var(--brand);
}

.header-item img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.header-item:hover img {
  filter: brightness(0) saturate(100%)
          invert(66%) sepia(96%)
          saturate(400%) hue-rotate(350deg);
  transform: scale(1.08);
}

/* Language switcher */

.lang-switch {
  position: relative;
  display: inline-block;
  margin-left: 8px;
}

.lang-current img {
  padding-top: 7px;
  width: 22px;
  height: 14px;
  cursor: pointer;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;

  display: flex;
  flex-direction: column;
  gap: 6px;

  background: rgba(20, 20, 20, 0.95);
  padding: 8px;
  border-radius: 8px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.2s ease;
  z-index: 100;
}

.lang-switch:hover .lang-dropdown,
.lang-switch:focus-within .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown img {
  width: 22px;
  opacity: 0.7;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.lang-dropdown a:hover img {
  opacity: 1;
  transform: scale(1.05);
}

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

.scene {
  width: min(92vw, 1240px);
  margin: 0 auto;
  padding-top: 30px;
  padding-bottom: 40px;
}

@media (max-width: 768px) {
  .scene {
    padding-bottom: 60px;
  }
}

/* Layout grid */

.visual-stage {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 130px;
  align-items: center;

  width: 100%;
  height: 620px;
  position: relative;
}

/* =========================================================
   BUBBLE
========================================================= */

.bubble-stage {
  position: relative;
  width: 520px;
  aspect-ratio: 1;
  justify-self: center;
}

.bubble {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;

  background: radial-gradient(
    circle at 30% 30%,
    var(--bubble-highlight) 0%,
    var(--bubble-mid) 40%,
    var(--bubble-dark) 70%,
    var(--bubble-deep) 100%
  );

  display: flex;
  justify-content: center;
  align-items: center;

  box-shadow:
    0 0 70px var(--bubble-glow),
    0 0 140px rgba(255,153,0,0.18);
}

.bubble::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 90px;
  width: 55%;
  height: 30%;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  filter: blur(34px);
}

.inner-circle {
  position: relative;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 42px rgba(0,0,0,0.65);
}

/* Bubble images */

.bubble-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 3s ease;
}

.bubble-img--visible {
  opacity: 1;
}

/* =========================================================
   MACHINE
========================================================= */

.side-machine {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 110%;
  width: auto;

  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  transform: translate(-50%, 0) scale(0.92) rotate(-1deg);
  z-index: 300;
}

.side-machine.fly {
  animation: machineFly 4s ease-in-out forwards;
}

@keyframes machineFly {
  0% {
    transform: translate(-260%, 0) scale(0.92) rotate(-6deg);
    opacity: 0;
  }
  40% {
    transform: translate(-55%, 0) scale(0.92) rotate(-3deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 0) scale(0.92) rotate(-1deg);
    opacity: 1;
  }
}

.side-machine.exit {
  animation: machineExit 0.9s ease-in forwards;
}

@keyframes machineExit {
  0% {
    transform: translate(-50%, 0) scale(0.92) rotate(-1deg);
    opacity: 1;
  }
  100% {
    transform: translate(5%, 0) scale(0.88) rotate(2deg);
    opacity: 0;
  }
}

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

.hero-text {
  max-width: 480px;
  margin-left: 28px;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3.6vw, 3.3rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero-lead {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.65;
  opacity: 0.95;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.75;
}

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

@media (max-width: 1024px) {
  .visual-stage {
    grid-template-columns: 1fr;
    height: auto;
    gap: 60px;
    text-align: center;
  }

  .bubble-stage {
    width: 460px;
  }

  .hero-text {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .header-item span {
    display: none;
  }

  .bubble-stage {
    width: 380px;
  }
}

/* =========================================================
   ABOUT SECTION
========================================================= */

.about-section {
  background: radial-gradient(
    circle at 50% 0%,
    #2a2a2a 0%,
    #181818 60%,
    #121212 100%
  );
  padding: 70px 0;
  color: #ffffff;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}

/* Text */

.about-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}

.about-text h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 22px;
}

.about-lead {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 18px;
  color: #e0e0e0;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #bdbdbd;
  margin-bottom: 14px;
}

/* Stats */

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  padding: 28px 32px;
  border: 1px solid rgba(255,255,255,0.06);

  transition: transform 0.35s ease,
              background 0.35s ease,
              box-shadow 0.35s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

.stat-value {
  display: block;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.85rem;
  color: #b0b0b0;
  line-height: 1.5;
}

/* Responsive */

@media (max-width: 900px) {
  .about-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

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

.services-section {
  padding: 70px 0 90px;
  background: radial-gradient(
    circle at 50% 0%,
    #1f1f1f 0%,
    #151515 60%,
    #0f0f0f 100%
  );
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.services-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.services-label {
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
  display: inline-block;
}

.services-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.services-header p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cfcfcf;
}

/* Grid */

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

/* Card */

.service-card {
  text-decoration: none;
  color: #ffffff;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 28px 30px;

  display: flex;
  flex-direction: column;

  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}

/* Icon */

.service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0)
          saturate(100%)
          invert(69%)
          sepia(89%)
          saturate(2476%)
          hue-rotate(3deg)
          brightness(101%)
          contrast(101%);
}

/* Text */

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #c8c8c8;
  margin-bottom: 20px;
}

/* CTA */

.service-cta {
  margin-top: auto;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
}

/* Responsive */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* =========================================================
   CTA SECTION
========================================================= */

.cta-section {
  padding: 90px 0;
  background: radial-gradient(
    circle at 50% 0%,
    #2a2a2a 0%,
    #1a1a1a 60%,
    #101010 100%
  );
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.cta-inner p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #cfcfcf;
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 14px 28px;
  border-radius: 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;

  position: relative;
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              background 0.25s ease,
              color 0.25s ease,
              border-color 0.25s ease;
}

.cta-btn.primary {
  background: var(--brand);
  color: #111;
  box-shadow: 0 10px 30px rgba(255,153,0,0.35);
}

.cta-btn.secondary {
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
}

/* Hover effects */

.cta-btn.primary:hover {
  color: #ffffff;
  border: 1px solid #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.cta-btn.primary:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(255,153,0,0.45);
}

.cta-btn.secondary:hover {
  transform: translateY(-3px);
  color: var(--brand);
  border-color: var(--brand);
  background: rgba(255,153,0,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

.cta-btn.secondary:active {
  transform: translateY(-1px);
}

/* ===============================
   MOBILE COMPACT MODE
   =============================== */
@media (max-width: 640px) {

  /* HERO */
  body {
    padding-top: 60px;
  }

  .scene {
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .bubble-stage {
    width: 300px;
  }

  .hero-text h1 {
    margin-bottom: 14px;
  }

  .hero-lead {
    margin-bottom: 12px;
    line-height: 1.5;
  }

  .hero-sub {
    line-height: 1.55;
  }

  /* ABOUT */
  .about-section {
    padding: 35px 0;
  }

  .about-inner {
    gap: 32px;
    padding: 0 16px;
  }

  .about-text h2 {
    margin-bottom: 14px;
  }

  .about-lead {
    margin-bottom: 12px;
  }

  .about-text p {
    margin-bottom: 10px;
  }

  .about-stats {
    gap: 18px;
  }

  .stat-card {
    padding: 20px 22px;
  }

  .stat-value {
    font-size: 1.7rem;
  }

  /* SERVICES */
  .services-section {
    padding: 40px 0;
  }

  .services-header {
    margin-bottom: 28px;
  }

  .services-grid {
    gap: 20px;
  }

  .service-card {
    padding: 22px 24px;
  }

  /* CTA */
  .cta-section {
    padding: 55px 0;
  }

  .cta-inner {
    padding: 0 20px;
  }

  .cta-inner p {
    margin-bottom: 24px;
  }

  .cta-actions {
    gap: 12px;
  }

  .cta-btn {
    padding: 12px 20px;
  }
}