/* ============================================
   ТЕХНОЛУЧ — Color Palette
   ============================================
   Gold:       #D4AF37  (primary gold)
   Gold Light: #F0D060
   Gold Dark:  #A8891F
   
   Teal:       #1BC3D5  (primary teal/cyan)
   Teal Light: #5DDFED
   Teal Dark:  #0A8FA0
   
   Green:      #22C55E  (primary green)
   Green Light:#4ADE80
   Green Dark: #16A34A
   
   Background: #0A0E14
   Surface:    #111827
   Text:       #F1F5F9
   Text Muted: #94A3B8
   ============================================ */

:root {
  --gold: #D4AF37;
  --gold-light: #F0D060;
  --gold-dark: #A8891F;
  --teal: #1BC3D5;
  --teal-light: #5DDFED;
  --teal-dark: #0A8FA0;
  --green: #22C55E;
  --green-light: #4ADE80;
  --green-dark: #16A34A;
  --bg: #0A0E14;
  --bg-surface: #111827;
  --bg-card: rgba(17, 24, 39, 0.7);
  --text: #F1F5F9;
  --text-muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Unbounded', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.loaded {
  overflow-y: auto;
}

body.loading {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--teal);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   PRELOADER (qucon.ru style)
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.preloader__logo {
  width: 88px;
  height: auto;
  object-fit: contain;
  animation: preloaderPulse 2s ease-in-out infinite;
}

.preloader__text {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: preloaderText 1s ease 0.5s forwards;
}

/* Brand logo + name */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.brand-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo--lg img {
  width: 56px;
  height: 56px;
}

.header__logo span,
.footer__brand span,
.mobile-menu__header span {
  font-size: 15px;
}

.brand-logo--lg span {
  font-size: 22px;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

@keyframes preloaderGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -70%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -70%) scale(1.2); }
}

@keyframes preloaderText {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   GRADIENT BACKGROUND (smartproduction.cz)
   ============================================ */
.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.gradient-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: blobFloat 20s ease-in-out infinite;
}

.gradient-bg__blob--gold {
  width: 600px;
  height: 600px;
  background: var(--gold);
  bottom: -200px;
  right: -100px;
  opacity: 0.15;
}

.gradient-bg__blob--teal {
  width: 500px;
  height: 500px;
  background: var(--teal);
  bottom: -150px;
  left: 20%;
  opacity: 0.2;
  animation-delay: -7s;
}

.gradient-bg__blob--green {
  width: 400px;
  height: 400px;
  background: var(--green);
  bottom: -100px;
  left: -100px;
  opacity: 0.12;
  animation-delay: -14s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 10px) scale(0.95); }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(10, 14, 20, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 100%;
  gap: 16px 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 1.4vw, 22px);
  flex-wrap: nowrap;
}

.header__link {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  position: relative;
  white-space: nowrap;
}

.header__link.active {
  color: var(--teal);
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}

.header__link:hover {
  color: var(--text);
}

.header__link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__cta {
  white-space: nowrap;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: var(--transition);
}

.header__burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__burger.active span:nth-child(2) {
  opacity: 0;
}

.header__burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 14, 20, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.mobile-menu__nav a {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, color var(--transition);
}

.mobile-menu.active .mobile-menu__nav a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active .mobile-menu__nav a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(7) { transition-delay: 0.35s; }
.mobile-menu.active .mobile-menu__nav a:nth-child(8) { transition-delay: 0.4s; }

.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
  padding-top: 8px;
}

.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.mobile-menu__close:hover {
  background: var(--teal);
  color: var(--bg);
  border-color: var(--teal);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn--primary {
  background: var(--teal);
  color: var(--bg);
  border-color: var(--teal);
}

.btn--primary:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(27, 195, 213, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 12px;
}

.btn--full {
  width: 100%;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 120px 0;
  position: relative;
}

.section--transition {
  position: relative;
}

.section--transition::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-header {
  margin-bottom: 64px;
  max-width: 700px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-muted);
}

/* ============================================
   REVEAL ANIMATIONS (blackout.by style)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal--delay { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }

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

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

.hero__title-line.reveal-text:nth-child(1) { transition-delay: 0.1s; }
.hero__title-line.reveal-text:nth-child(2) { transition-delay: 0.25s; }
.hero__title-line.reveal-text:nth-child(3) { transition-delay: 0.4s; }
.hero__label.reveal-text { transition-delay: 0s; }
.hero__desc.reveal-text { transition-delay: 0.55s; }
.hero__actions.reveal-text { transition-delay: 0.7s; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero__title-line {
  display: block;
}

.hero__title-line--accent {
  background: linear-gradient(135deg, var(--teal), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  width: 100%;
}

.hero__scene {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 560px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(27, 195, 213, 0.2);
  background: radial-gradient(circle at 50% 30%, rgba(27, 195, 213, 0.12), rgba(10, 14, 20, 0.95) 65%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(27, 195, 213, 0.08);
}

#heroCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__scene-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(10, 14, 20, 0.55) 0%, transparent 35%),
    linear-gradient(to bottom, rgba(10, 14, 20, 0.25) 0%, transparent 20%);
}

.hero__scene-ui {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.hero__scene-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--bg);
}

.hero__scene-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(241, 245, 249, 0.75);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--teal), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ============================================
   ABOUT
   ============================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.about__list {
  list-style: none;
  margin: 24px 0;
}

.about__list li {
  padding: 12px 0;
  padding-left: 24px;
  position: relative;
  border-left: 2px solid var(--teal);
  margin-bottom: 8px;
}

.about__list strong {
  color: var(--gold);
}

.about__highlight {
  font-size: 18px;
  font-weight: 500;
  color: var(--teal-light);
  margin-top: 24px;
}

.about__image {
  border-radius: 20px;
  overflow: hidden;
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__experience-intro {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 800px;
}

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

/* Flip cards (tell.so style) */
.flip-card {
  perspective: 1000px;
  height: 220px;
  cursor: pointer;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card__inner,
.flip-card.flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flip-card__front {
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.flip-card__back {
  background: linear-gradient(135deg, var(--teal-dark), var(--bg-surface));
  border: 1px solid var(--teal);
  transform: rotateY(180deg);
}

.flip-card__num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 12px;
}

.flip-card__front h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.flip-card__back p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   PROMOTIONS
   ============================================ */
.promotions__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.promo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.promo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.promo-card:hover {
  transform: translateY(-8px);
  border-color: var(--teal);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.promo-card:hover::before {
  transform: scaleX(1);
}

.promo-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 20px;
}

.promo-card__badge--accent {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  font-size: 16px;
  letter-spacing: 0.05em;
}

.promo-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.promo-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================
   PARTNERS
   ============================================ */
.partners__track {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.partners__logos {
  display: flex;
  gap: 64px;
  animation: partnersScroll 30s linear infinite;
}

.partners__logos img {
  height: 60px;
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: var(--transition);
}

.partners__logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes partnersScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   SERVICES (tell.so horizontal scroll)
   ============================================ */
.services__scroll-wrap {
  position: relative;
  margin-top: 40px;
}

.services__scroll {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 24px 40px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.services__scroll::-webkit-scrollbar {
  display: none;
}

.service-card {
  flex: 0 0 min(500px, 85vw);
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--teal);
  transform: scale(1.02);
}

.service-card__num {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.3;
}

.service-card__desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.service-card__link {
  font-weight: 600;
  color: var(--teal);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.services__progress {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
}

.services__progress-bar {
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--teal), var(--green));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}

.gallery__item {
  position: relative;
  border: none;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-surface);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.gallery__item:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 20, 0.5), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery__item:hover::after {
  opacity: 1;
}

/* ============================================
   CATALOG (Tilda equipment)
   ============================================ */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.catalog-card:hover {
  transform: translateY(-8px);
  border-color: rgba(27, 195, 213, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.catalog-card__img {
  background: #000;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.catalog-card__img img {
  max-height: 100%;
  object-fit: contain;
}

.catalog-card__body {
  padding: 24px;
}

.catalog-card__mark {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 8px;
}

.catalog-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 10px;
}

.catalog-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  min-height: 58px;
}

.catalog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-card__price {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  animation: lightboxZoom 0.4s ease;
}

@keyframes lightboxZoom {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.lightbox__close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 32px;
}

.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--teal);
  color: var(--bg);
  border-color: var(--teal);
}

/* ============================================
   PROJECTS
   ============================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.project-card {
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__info {
  padding: 24px;
}

.project-card__info h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
}

.project-card__info p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Before/After comparison */
.compare {
  max-width: 900px;
  margin: 0 auto;
}

.compare__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 32px;
}

.compare__slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: ew-resize;
  user-select: none;
}

.compare__before,
.compare__after {
  position: absolute;
  inset: 0;
}

.compare__before img,
.compare__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare__after {
  clip-path: inset(0 0 0 50%);
}

.compare__label {
  position: absolute;
  bottom: 16px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.compare__before .compare__label {
  left: 16px;
}

.compare__after .compare__label {
  right: 16px;
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  z-index: 10;
}

.compare__handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--teal);
  transform: translateX(-50%);
}

.compare__handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(27, 195, 213, 0.5);
}

.compare__handle-circle span {
  display: block;
  width: 14px;
  height: 2px;
  background: var(--bg);
  position: relative;
}

.compare__handle-circle span::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-right: 6px solid var(--bg);
}

.compare__handle-circle span::after {
  content: '';
  position: absolute;
  right: -4px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid var(--bg);
}

/* ============================================
   DOWNLOAD
   ============================================ */
.download__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  transition: var(--transition);
  display: block;
}

.download-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
  color: var(--text);
}

.download-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(27, 195, 213, 0.12);
  border: 1px solid rgba(27, 195, 213, 0.25);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 20px;
}

.download-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}

.download-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.download-card__btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   CONTACTS
   ============================================ */
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacts__details {
  margin: 32px 0;
}

.contacts__item {
  margin-bottom: 24px;
}

.contacts__item-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 8px;
}

.contacts__item p,
.contacts__item a {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.contacts__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--teal);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 48px 0 0;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer__copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer__copy a {
  color: var(--text-muted);
}

.footer__copy a:hover {
  color: var(--teal);
}

.footer__credit {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer__credit a {
  color: var(--gold);
  font-weight: 500;
  transition: color var(--transition);
}

.footer__credit a:hover {
  color: var(--gold-light);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__nav {
  display: flex;
  gap: 32px;
}

.footer__nav a {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================
   COOKIE NOTICE
   ============================================ */
.cookie-notice {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(150%);
  transition: transform 0.5s ease;
}

.cookie-notice.visible {
  transform: translateY(0);
}

.cookie-notice p {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .header__nav {
    gap: 10px;
  }

  .header__link {
    font-size: 10px;
  }
}

@media (max-width: 1100px) {
  .header__nav {
    display: none;
  }

  .header__burger {
    display: flex;
  }
}

@media (max-width: 1024px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

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

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

  .equipment__grid,
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 160px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .download__grid {
    grid-template-columns: 1fr;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 64px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .header__inner {
    gap: 12px;
  }

  .header__logo span {
    font-size: 14px;
  }

  .brand-logo img {
    width: 38px;
    height: 38px;
  }

  .header__cta {
    display: none;
  }

  .header__actions {
    justify-content: flex-end;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 48px;
  }

  .hero__inner {
    gap: 32px;
  }

  .hero__visual {
    order: -1;
    max-width: none;
  }

  .hero__scene {
    aspect-ratio: 4 / 3;
    max-height: 320px;
    border-radius: 16px;
  }

  .hero__title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .hero__desc {
    font-size: 15px;
    max-width: none;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero__scroll {
    display: none;
  }

  .hero__scene-ui {
    left: 14px;
    bottom: 14px;
  }

  .about__cards {
    grid-template-columns: 1fr;
  }

  .flip-card {
    height: 160px;
  }

  .promotions__grid {
    grid-template-columns: 1fr;
  }

  .catalog__grid {
    grid-template-columns: 1fr;
  }

  .catalog-card__footer {
    flex-wrap: wrap;
  }

  .catalog-card__footer .btn {
    width: 100%;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
    gap: 8px;
  }

  .gallery__item--wide,
  .gallery__item--tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery__item {
    border-radius: 12px;
  }

  .catalog-card p {
    min-height: auto;
  }

  .services__scroll {
    padding: 12px 16px 32px;
  }

  .service-card {
    flex: 0 0 calc(100vw - 48px);
    padding: 28px 20px;
  }

  .compare__slider {
    border-radius: 12px;
  }

  .contacts__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contacts__form {
    padding: 24px 18px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
    padding-bottom: 24px;
  }

  .footer__brand {
    justify-content: center;
  }

  .footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  .footer__bottom {
    padding: 20px 0 24px;
  }

  .cookie-notice {
    flex-direction: column;
    text-align: center;
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .lightbox__nav {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }

  .mobile-menu {
    justify-content: flex-start;
    padding-top: 80px;
    overflow-y: auto;
  }

  .mobile-menu__nav a {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 26px;
  }

  .section-title {
    font-size: 22px;
  }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 120px;
  }

  .promo-card,
  .download-card,
  .catalog-card__body {
    padding: 20px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 13px;
  }
}
