:root {
  --bg: #111111;
  --bg-soft: #1b1b1b;
  --bg-alt: #f7f4ee;
  --text: #f6f6f6;
  --text-dark: #1a1a1a;
  --muted: #b8b8b8;
  --gold: #de1f26;
  --gold-strong: #ff4a50;
  --radius: 18px;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(222, 31, 38, 0.22), transparent 22%),
    radial-gradient(circle at 15% 70%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(130deg, #0a0a0a 0%, #121212 48%, #090909 100%);
}

body.intro-active {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.texture-bg {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(155deg, rgba(222, 31, 38, 0.25) 8%, transparent 28%),
    linear-gradient(335deg, rgba(255, 255, 255, 0.1) 12%, transparent 31%),
    linear-gradient(120deg, #090909, #131313 45%, #0d0d0d 100%);
  z-index: -1;
}

body::before {
  content: "";
  position: fixed;
  width: 50vw;
  height: 220vh;
  right: -22vw;
  top: -60vh;
  transform: rotate(21deg);
  background: linear-gradient(180deg, rgba(222, 31, 38, 0.24), rgba(222, 31, 38, 0));
  pointer-events: none;
  z-index: -1;
}

.intro-burst {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(200, 164, 106, 0.18), transparent 42%),
    #080808;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden;
}

.intro-burst.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-film-layer {
  position: absolute;
  inset: -20% -30% -20% -30%;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.2), transparent 28%),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0 8px, rgba(0, 0, 0, 0.16) 8px 16px),
    linear-gradient(135deg, rgba(222, 31, 38, 0.42), rgba(14, 14, 14, 0.88));
  transform-origin: left center;
  transform: translateX(0) skewX(-12deg);
}

.intro-burst.play .intro-film-layer {
  animation: introPeel 2.3s cubic-bezier(0.2, 0.86, 0.25, 1) forwards;
}

.intro-squeegee {
  position: absolute;
  width: 260px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, #bababa, #ffffff 50%, #a0a0a0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  top: 58%;
  left: -25%;
  transform: rotate(-16deg);
}

.intro-burst.play .intro-squeegee {
  animation: introSqueegee 2.3s cubic-bezier(0.2, 0.86, 0.25, 1) forwards;
}

.intro-core {
  position: relative;
  z-index: 2;
  text-align: center;
  transform: scale(0.2);
  opacity: 0;
}

.intro-burst.play .intro-core {
  animation: corePop 1s cubic-bezier(0.17, 0.9, 0.35, 1.2) forwards;
}

.intro-logo {
  width: 220px;
  height: 84px;
  border-radius: 14px;
  background: transparent;
  display: inline-grid;
  place-items: center;
  margin-bottom: 10px;
  box-shadow: 0 0 0 0 rgba(222, 31, 38, 0.45);
  overflow: hidden;
}

.intro-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.15));
}

.intro-logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #de1f26;
}

.intro-logo.logo-failed img {
  display: none;
}

.intro-logo.logo-failed .intro-logo-fallback {
  display: flex;
}

.intro-core p {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

@keyframes corePop {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-8deg);
  }
  58% {
    opacity: 1;
    transform: scale(1.12) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes introPeel {
  0% {
    transform: translateX(0) skewX(-12deg);
  }
  100% {
    transform: translateX(130%) skewX(-12deg);
  }
}

@keyframes introSqueegee {
  0% {
    left: -28%;
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 110%;
    opacity: 0;
  }
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.image-backed {
  position: relative;
  isolation: isolate;
}

.image-backed::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(115deg, rgba(10, 10, 10, 0.86), rgba(10, 10, 10, 0.7)),
    var(--section-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.section.alt.image-backed::before {
  background-image:
    linear-gradient(115deg, rgba(247, 244, 238, 0.93), rgba(247, 244, 238, 0.78)),
    var(--section-bg, none);
  opacity: 0.95;
}

.image-link {
  position: relative;
  min-height: 210px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.image-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(12, 12, 12, 0.88), rgba(12, 12, 12, 0.28)),
    var(--link-image, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.image-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 7px;
  background: linear-gradient(90deg, #de1f26, rgba(222, 31, 38, 0));
}

.image-link-inner {
  position: relative;
  z-index: 2;
}

.image-link-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.6rem 1rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}

.section.alt {
  background: var(--bg-alt);
  color: var(--text-dark);
}

.section-head {
  margin-bottom: 28px;
}

.kicker {
  color: var(--gold-strong);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", sans-serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.7rem);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.55rem, 2.3vw, 2.4rem);
}

p {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: rgba(17, 17, 17, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.header-content {
  min-height: 80px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 126px;
  height: 42px;
  border-radius: 10px;
  background: transparent;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.14));
}

.brand-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #de1f26;
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark.logo-failed img {
  display: none;
}

.brand-mark.logo-failed .brand-fallback {
  display: flex;
}

.brand-text {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  display: none;
}

.main-nav {
  justify-self: center;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.95rem;
  color: #f1f1f1;
  opacity: 0.86;
  transition: opacity 0.25s ease, color 0.25s ease;
}

.main-nav a:hover {
  opacity: 1;
  color: var(--gold-strong);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  margin: 8px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary,
.btn-whatsapp {
  background: linear-gradient(145deg, #f0282f, #b6161e);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(182, 22, 30, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: transparent;
}

.section.alt .btn-ghost {
  border-color: rgba(0, 0, 0, 0.25);
  color: #111;
}

.header-cta {
  font-size: 0.84rem;
  white-space: nowrap;
}

.hero {
  padding-top: 144px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 120px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(18deg);
}

.hero-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero-copy p {
  max-width: 60ch;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badges span {
  border: 1px solid rgba(224, 183, 119, 0.4);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  min-height: 420px;
  position: relative;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 88% 100%, 0 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-image:
    linear-gradient(140deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.35)),
    var(--hero-fallback-image, url("https://picsum.photos/id/1067/1200/900"));
  background-size: cover;
  background-position: center;
}

.hero-sweep {
  position: absolute;
  display: block;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-sweep-a {
  inset: 14% -12% auto 20%;
  height: 16px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: rotate(-18deg);
  animation: sweepFloat 5.5s ease-in-out infinite;
}

.hero-sweep-b {
  inset: auto -15% 20% 35%;
  height: 18px;
  background: linear-gradient(90deg, transparent, rgba(222, 31, 38, 0.88), transparent);
  transform: rotate(-20deg);
  animation: sweepFloat 6.1s ease-in-out infinite reverse;
}

.hero-sweep-c {
  inset: auto -8% 6% 50%;
  height: 8px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: rotate(-18deg);
  animation: sweepFloat 4.8s ease-in-out infinite;
}

@keyframes sweepFloat {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(0) rotate(-18deg);
  }
  50% {
    opacity: 1;
    transform: translateX(-18px) rotate(-18deg);
  }
}

.impact-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 26%),
    linear-gradient(300deg, rgba(222, 31, 38, 0.35), transparent 35%),
    #0f0f0f;
  overflow: hidden;
}

.impact-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  padding: 0.9rem 0;
  flex-shrink: 0;
}

.impact-marquee {
  display: flex;
  width: max-content;
  animation: stripRun 22s linear infinite;
}

.impact-track span {
  color: #f6f6f6;
  font-family: "Sora", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.impact-track span::before {
  content: "//";
  color: #de1f26;
  margin-right: 0.65rem;
}

@keyframes stripRun {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.6));
}

.grid {
  display: grid;
  gap: 1rem;
}

.cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, border-color 0.28s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(224, 183, 119, 0.5);
}

.section.alt .card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
}

.service-card {
  overflow: hidden;
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(222, 31, 38, 0.18), transparent 46%);
  pointer-events: none;
}

.service-card:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.service-card:nth-child(even) {
  transform: rotate(0.6deg);
}

.service-card:hover {
  transform: rotate(0deg) translateY(-8px);
}

.service-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
  filter: saturate(0.95) contrast(1.05);
}

.before-after-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.ba-card {
  background: #fff;
  color: #151515;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.ba-compare {
  position: relative;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
}

.ba-compare img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after-wrap {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid #fff;
}

.ba-range {
  margin-top: 12px;
  width: 100%;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f1f1f1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-rows: 120px;
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(222, 31, 38, 0.22), transparent 48%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:nth-child(7n + 1),
.gallery-item:nth-child(7n + 4) {
  grid-row: span 2;
}

.gallery-item:nth-child(7n + 3) {
  grid-row: span 3;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item:hover::before {
  opacity: 1;
}

.gallery-item::after {
  content: attr(data-title);
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-weight: 600;
  z-index: 2;
}

.wrap-lab {
  position: relative;
  overflow: hidden;
}

.wrap-lab::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(150deg, rgba(222, 31, 38, 0.18), transparent 32%),
    linear-gradient(325deg, rgba(255, 255, 255, 0.08), transparent 30%);
  pointer-events: none;
}

.wrap-lab-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
}

.film-demo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  min-height: 340px;
}

.film-base,
.film-overlay,
.film-demo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.film-demo img {
  object-fit: cover;
}

.film-overlay {
  width: 52%;
  overflow: hidden;
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  animation: filmApply 6.5s ease-in-out infinite;
}

.film-gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.34), transparent 42%);
}

.film-edge {
  position: absolute;
  right: -3px;
  top: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(180deg, rgba(222, 31, 38, 0.9), rgba(255, 255, 255, 0.8), rgba(222, 31, 38, 0.9));
  filter: blur(0.2px);
}

.film-tool {
  position: absolute;
  width: 140px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, #cfcfcf, #ffffff 48%, #a7a7a7);
  top: 58%;
  left: 48%;
  transform: rotate(-16deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  animation: toolPass 6.5s ease-in-out infinite;
}

@keyframes filmApply {
  0%,
  100% {
    width: 14%;
  }
  50% {
    width: 82%;
  }
}

@keyframes toolPass {
  0%,
  100% {
    left: 8%;
  }
  50% {
    left: 72%;
  }
}

.timeline {
  display: grid;
  gap: 0.8rem;
  list-style: none;
}

.timeline li {
  background: #fff;
  border-radius: 12px;
  padding: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.emotional {
  background: linear-gradient(135deg, #1a1713, #25201a 50%, #161513);
  text-align: center;
}

.emotional h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.testimonial p {
  font-style: italic;
}

.testimonial strong {
  display: block;
  margin-top: 12px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #fff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
}

.faq-item.open .faq-answer {
  max-height: 180px;
  padding-bottom: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  padding: 1rem;
  border-radius: var(--radius);
}

.contact-form input,
.contact-form textarea,
.admin-input,
.admin-textarea,
.admin-select {
  width: 100%;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.section.alt .contact-form input,
.section.alt .contact-form textarea {
  border-color: rgba(0, 0, 0, 0.2);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0e0e0e;
  padding-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 5px;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 80;
}

.modal.open {
  opacity: 1;
  pointer-events: all;
}

.modal img {
  max-height: 70vh;
  border-radius: 10px;
}

.modal-caption {
  margin-top: 10px;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  font-size: 1.5rem;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .intro-burst,
  .intro-core,
  .ring,
  .reveal,
  .card,
  .gallery-item img {
    animation: none !important;
    transition: none !important;
  }
}

/* Admin */
.admin-page {
  background: #121212;
  color: #f4f4f4;
  min-height: 100vh;
}

.admin-wrap {
  width: min(100% - 2rem, 980px);
  margin-inline: auto;
  padding: 32px 0 80px;
}

.admin-login,
.admin-panel {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem;
}

.admin-panel {
  display: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.admin-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-item {
  background: #232323;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 8px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.admin-note {
  margin-top: 12px;
  padding: 0.7rem;
  border-radius: 10px;
  background: rgba(200, 164, 106, 0.15);
  border: 1px solid rgba(200, 164, 106, 0.5);
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(14, 14, 14, 0.96);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .menu-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .wrap-lab-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding-top: 124px;
  }

  .film-demo {
    min-height: 280px;
  }

  .image-link {
    min-height: 160px;
  }

  .gallery-grid {
    grid-auto-rows: 170px;
  }

  .gallery-item {
    grid-row: auto !important;
  }

  .hero-actions .btn,
  .contact-actions .btn,
  .contact-form .btn {
    width: 100%;
  }

  .cards-3,
  .main-nav.open {
    grid-template-columns: 1fr;
  }
}
