/* ============ Tokens ============ */
:root {
  --bg: #0a0d12;
  --bg-soft: #0e1218;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef2f6;
  --text-muted: #95a3b3;
  --text-faint: #5c6b7a;

  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.12);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============ Reset ============ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

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

ul, ol { margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ============ Preloader ============ */
body.is-loading {
  overflow: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  cursor: pointer;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

.preloader-frame {
  width: clamp(160px, 30vw, 320px);
  aspect-ratio: 1 / 1;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 55%, transparent 100%);
}

.preloader-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

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

.preloader.is-hidden .preloader-frame {
  transform: scale(1.08);
  opacity: 0;
}

/* ============ Noise overlay ============ */
.noise {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(59, 130, 246, 0.65);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

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

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  padding: 12px 0;
  background: rgba(10, 13, 18, 0.7);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}

.logo-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
}

.logo-video {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.logo-badge {
  background: #fff;
  border-radius: 12px;
  padding: 4px 18px 4px 4px;
}

.logo-badge .logo-text { color: #11161d; }
.logo-badge .accent { color: #2563eb; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  position: relative;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-cta .phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  white-space: nowrap;
}
.nav-cta .phone:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 180px 0 100px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 11, 15, 0.8) 0%,
    rgba(8, 11, 15, 0.58) 32%,
    rgba(8, 11, 15, 0.62) 62%,
    rgba(8, 11, 15, 0.92) 100%
  );
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-inner {
  display: flex;
  justify-content: center;
}

.hero-content {
  max-width: 760px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  margin-bottom: 24px;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}

.stat {
  background: rgba(10, 13, 18, 0.6);
  backdrop-filter: blur(12px);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============ Sections ============ */
.section {
  padding: 110px 0;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.section-lead {
  font-size: 1.05rem;
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.timeline-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.timeline-item h3 {
  font-size: 1.2rem;
  margin-top: 2px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  height: fit-content;
}

.about-card h3 {
  font-size: 1.2rem;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.check-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ============ Scrubber (scroll-driven video) ============ */
.scrubber {
  position: relative;
  height: 220vh;
  margin-bottom: 72px;
}

.scrubber-pin {
  position: sticky;
  top: 96px;
  height: 64vh;
  min-height: 320px;
  max-height: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.scrubber-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scrubber-frame {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

@media (max-width: 760px) {
  .scrubber { height: 170vh; margin-bottom: 56px; }
  .scrubber-pin { top: 76px; height: 46vh; min-height: 240px; }
}

/* ============ Tabs ============ */
.tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.tab-icon {
  width: 16px;
  height: 16px;
}

.tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  border-color: transparent;
}

.tab-panel {
  display: none;
  animation: fadeUp 0.4s var(--ease);
}
.tab-panel.active { display: block; }

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

.panel-lead {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
  font-size: 1rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.app-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}

.app-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.app-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.app-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 12px;
}

.app-desc {
  font-size: 0.9rem;
  margin: 0;
}

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

.quality-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.quality-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.quality-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.quality-icon svg {
  width: 24px;
  height: 24px;
}

.quality-card h3 {
  font-size: 1.15rem;
}

/* ============ Services ============ */
.services-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feature-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.feature-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 2px;
}

.feature-list h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.feature-list p {
  font-size: 0.9rem;
  margin: 0;
}

/* ============ Logistics ============ */
.logistics-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.logistics-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.logistics-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step;
  margin-top: 20px;
}

.steps li {
  list-style: none;
  position: relative;
  padding-left: 42px;
  font-size: 0.95rem;
  color: var(--text-muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.contact-card p { font-size: 0.95rem; margin-bottom: 6px; }

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

.contact-note {
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
}

.footer-links a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--text); }

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
}

.footer-contact a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.footer-contact a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px;
  font-size: 0.85rem;
  color: var(--text-faint);
  text-align: center;
}

/* ============ To top ============ */
.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
  z-index: 90;
}
.to-top svg { width: 18px; height: 18px; }
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ============ Gallery page ============ */
.nav-links a.active { color: var(--accent); }

.gallery-scrub {
  position: relative;
  height: 500vh;
}

.gallery-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.gallery-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 11, 15, 0.55) 0%,
    rgba(8, 11, 15, 0.05) 28%,
    rgba(8, 11, 15, 0.05) 70%,
    rgba(8, 11, 15, 0.85) 100%
  );
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  text-align: center;
}

.gallery-caption h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 16px 0 10px;
}

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

@media (max-width: 760px) {
  .gallery-scrub { height: 400vh; }
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.photo-placeholder:hover {
  border-color: var(--accent);
  background: var(--surface-hover);
}

.photo-placeholder svg {
  width: 32px;
  height: 32px;
}

.photo-item {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.photo-item:hover img {
  transform: scale(1.05);
}

/* ============ Photo Deck (Fan → Grid) ============ */
.photo-deck-wrap { position: relative; }

.deck-hint {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 20px;
  transition: opacity 0.3s;
}

.photo-deck {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

.photo-deck .photo-item {
  position: absolute;
  width: clamp(200px, 28vw, 280px);
  transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), box-shadow 0.35s var(--ease);
}

.photo-deck .photo-item:nth-child(1) { transform: rotate(-14deg) translate(-145px, 16px); z-index: 1; }
.photo-deck .photo-item:nth-child(2) { transform: rotate(-7deg) translate(-72px, 6px);   z-index: 2; }
.photo-deck .photo-item:nth-child(3) { transform: rotate(0deg);                           z-index: 5; box-shadow: 0 20px 56px rgba(0,0,0,0.45); }
.photo-deck .photo-item:nth-child(4) { transform: rotate(7deg) translate(72px, 6px);    z-index: 2; }
.photo-deck .photo-item:nth-child(5) { transform: rotate(14deg) translate(145px, 16px); z-index: 1; }

.photo-deck:not(.is-expanded) .photo-item:nth-child(n+6) {
  opacity: 0;
  pointer-events: none;
}

.photo-deck:not(.is-expanded):hover .photo-item:nth-child(1) { transform: rotate(-18deg) translate(-168px, 22px); }
.photo-deck:not(.is-expanded):hover .photo-item:nth-child(2) { transform: rotate(-9deg)  translate(-84px, 10px);  }
.photo-deck:not(.is-expanded):hover .photo-item:nth-child(3) { transform: rotate(0deg) translateY(-10px); box-shadow: 0 28px 72px rgba(0,0,0,0.55); }
.photo-deck:not(.is-expanded):hover .photo-item:nth-child(4) { transform: rotate(9deg)  translate(84px, 10px);   }
.photo-deck:not(.is-expanded):hover .photo-item:nth-child(5) { transform: rotate(18deg) translate(168px, 22px);  }

.photo-deck.is-expanded {
  height: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  cursor: default;
}

.photo-deck.is-expanded .photo-item {
  position: static;
  width: 100%;
  box-shadow: none;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  animation: deckReveal 0.5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 35ms);
  cursor: pointer;
}

@keyframes deckReveal {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.photo-deck.is-expanded .photo-item:hover img { transform: scale(1.05); }

/* ============ Lightbox ============ */
.lb {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lb.is-open { opacity: 1; pointer-events: auto; }

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 12, 0.93);
  backdrop-filter: blur(14px);
}

.lb-img-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-img {
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 40px 100px rgba(0,0,0,0.65);
  transition: opacity 0.15s ease;
  display: block;
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
  line-height: 1;
}

.lb-close {
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  font-size: 1.4rem;
}

.lb-prev, .lb-next {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2rem;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-close:hover  { background: rgba(255,255,255,0.18); }
.lb-prev:hover   { background: rgba(255,255,255,0.18); transform: translateY(-50%) translateX(-2px); }
.lb-next:hover   { background: rgba(255,255,255,0.18); transform: translateY(-50%) translateX(2px); }

.lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-display);
  white-space: nowrap;
}

/* ============ Reveal animation ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .phone { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(10, 13, 18, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
  }
}

@media (max-width: 980px) {
  .hero { padding: 140px 0 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .about-grid,
  .services-grid,
  .logistics-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

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

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .hero h1 { font-size: 2.2rem; }
}
