/* ============ ЧЕРНИЛА — тату-студия ============ */
:root {
  --bg: #0C0A09;
  --bg-deep: #070605;
  --panel: #16110F;
  --panel-2: #1D1613;
  --line: #2A211D;
  --red: #FF3B4D;
  --red-deep: #C21F32;
  --red-glow: rgba(255, 59, 77, 0.35);
  --gold: #E8B34B;
  --text: #F5EFE8;
  --muted: #A2968D;
  --muted-2: #6F655E;
  --radius: 18px;
  --font-display: 'Russo One', sans-serif;
  --font-script: 'Caveat', cursive;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

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

/* ---------- INK CANVAS ---------- */
#inkCanvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.95rem 1.7rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn--accent {
  background: var(--red);
  color: #FFF;
  box-shadow: 0 0 0 rgba(255, 59, 77, 0);
}
.btn--accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--red-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(245, 239, 232, 0.28);
}
.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-3px);
}

.btn--sm { padding: 0.62rem 1.2rem; font-size: 0.72rem; }
.btn--lg { padding: 1.05rem 2rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ---------- EYEBROW / SCRIPT ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: '✕';
  font-size: 0.9rem;
  color: var(--red);
}
.eyebrow--light { color: var(--gold); }
.eyebrow--light::before { color: var(--gold); }

.script {
  font-family: var(--font-script);
  font-weight: 600;
  font-style: normal;
  color: var(--red);
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.header--scrolled {
  background: rgba(12, 10, 9, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 0.7rem 0;
}
.header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}
.header__icon { color: var(--red); flex: none; }
.header__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
}
.header__nav {
  display: flex;
  gap: 1.6rem;
  margin-left: auto;
}
.header__nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s ease;
}
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.header__nav a:hover { color: var(--text); }
.header__nav a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.burger span {
  width: 26px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(12, 10, 9, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 5.5rem 24px 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transform: translateY(-110%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-nav.active { transform: translateY(0); }
.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 16s ease-in-out infinite alternate;
  filter: saturate(1.08) contrast(1.05);
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(12, 10, 9, 0.94) 0%, rgba(12, 10, 9, 0.72) 45%, rgba(12, 10, 9, 0.42) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(12, 10, 9, 0.15) 30%);
}
.hero__cross {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 59, 77, 0.35);
  user-select: none;
  z-index: 2;
  animation: crossPulse 4s ease-in-out infinite;
}
.hero__cross--tl { top: 12%; left: 5%; }
.hero__cross--br { bottom: 10%; right: 5%; animation-delay: 2s; }
@keyframes crossPulse {
  0%, 100% { opacity: 0.35; transform: rotate(0deg) scale(1); }
  50% { opacity: 0.75; transform: rotate(90deg) scale(1.08); }
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 7rem 24px 4rem;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.6; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 9.5vw, 6.6rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hero__title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero-word {
  display: inline-block;
  transform: translateY(110%);
  animation: wordUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__title-line:nth-child(1) .hero-word { animation-delay: 0.25s; }
.hero__title-line:nth-child(2) .hero-word { animation-delay: 0.55s; }
@keyframes wordUp {
  to { transform: translateY(0); }
}
.hero__title-line--script {
  font-family: var(--font-script);
  font-size: 1.35em;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gold);
  margin-top: 0.08em;
  position: relative;
  text-shadow: 0 0 26px rgba(232, 179, 75, 0.28);
  animation: neonFlicker 6s linear infinite;
}
@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  3% { opacity: 0.82; }
  4% { opacity: 1; }
  31% { opacity: 1; }
  32% { opacity: 0.86; }
  33% { opacity: 1; }
  71% { opacity: 1; }
  72% { opacity: 0.9; }
  73% { opacity: 1; }
}

.hero__sub {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}
.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2rem;
  padding: 0.65rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 17, 15, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 0.86rem;
  animation: badgeBob 5s ease-in-out infinite;
}
.hero__badge strong { color: var(--red); font-family: var(--font-display); font-weight: 400; }
.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
@keyframes badgeBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-2);
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--red) 0%, transparent 100%);
  overflow: hidden;
  position: relative;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--text);
  animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
  to { top: 120%; }
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: var(--red);
  padding: 1rem 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
  transform: rotate(-0.6deg);
  box-shadow: 0 10px 40px var(--red-glow);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  white-space: nowrap;
  animation: marquee 26s linear infinite;
  will-change: transform;
}
.marquee span {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #160B0C;
}
.marquee i {
  font-style: normal;
  color: #160B0C;
  font-size: 1rem;
  opacity: 0.75;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- ABOUT ---------- */
.about { padding: 7rem 0 6rem; position: relative; z-index: 1; }
.about__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4.5rem;
  align-items: center;
}
.about__visual { position: relative; }
.about__visual img {
  border-radius: var(--radius);
  filter: saturate(1.05) contrast(1.06);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.about__frame {
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.55;
}
.about__badge {
  position: absolute;
  bottom: -22px;
  left: -22px;
  background: var(--red);
  border-radius: 14px;
  padding: 0.9rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  box-shadow: 0 16px 40px var(--red-glow);
  animation: badgeBob 5.5s ease-in-out infinite;
}
.about__badge-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: #FFF;
}
.about__badge-text {
  font-size: 0.72rem;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}
.about__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.about__title .script { color: var(--gold); }
.about__text { color: var(--muted); margin-bottom: 1.1rem; font-size: 1.02rem; }
.about__stats {
  display: flex;
  gap: 2.6rem;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.about__stat { display: flex; flex-direction: column; }
.about__stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
}
.about__stat-label { color: var(--muted-2); font-size: 0.82rem; margin-top: 0.3rem; }

/* ---------- STYLES ---------- */
.styles { padding: 4.5rem 0 6rem; position: relative; z-index: 1; }
.styles__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 3rem;
}
.styles__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1.18;
}
.styles__lead { color: var(--muted); font-size: 0.98rem; }

.styles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.style-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem 1.7rem;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.style-card::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -40%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.style-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  border-color: rgba(255, 59, 77, 0.5);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(255, 59, 77, 0.08);
}
.style-card:hover::before { opacity: 1; }
.style-card--accent { background: linear-gradient(160deg, #201416 0%, var(--panel) 70%); }
.style-card__num {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}
.style-card__cross {
  display: block;
  color: var(--red);
  font-size: 1.25rem;
  margin-bottom: 1.1rem;
  transition: transform 0.4s ease;
}
.style-card:hover .style-card__cross { transform: rotate(90deg) scale(1.2); }
.style-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.18rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
.style-card__text { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.2rem; }
.style-card__price {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.02rem;
  letter-spacing: 0.03em;
}

/* ---------- WORKS ---------- */
.works { padding: 2rem 0 6rem; position: relative; z-index: 1; }
.works__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: end;
  margin-bottom: 3rem;
}
.works__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1.18;
}
.works__lead { color: var(--muted); font-size: 0.98rem; }

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1.2rem;
}
.work-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--line);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.work-card--tall { grid-row: span 2; }
.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 59, 77, 0.55);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.5);
}
.work-card:hover img { transform: scale(1.06); filter: saturate(1.15) contrast(1.08); }
.work-card::after {
  content: '✕';
  position: absolute;
  top: 14px;
  right: 16px;
  color: #FFF;
  font-size: 1.1rem;
  opacity: 0;
  transform: rotate(45deg) scale(0.6);
  transition: opacity 0.3s ease, transform 0.4s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.work-card:hover::after { opacity: 1; transform: rotate(0) scale(1); }
.work-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.2rem 1.2rem 0.9rem;
  background: linear-gradient(0deg, rgba(7, 6, 5, 0.92) 0%, transparent 100%);
  font-size: 0.8rem;
  color: rgba(245, 239, 232, 0.9);
  font-weight: 600;
}
.work-card__caption span:last-child { color: var(--muted-2); font-weight: 500; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(7, 6, 5, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox__figure {
  margin: 0;
  max-width: min(920px, 86vw);
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.open .lightbox__figure { transform: scale(1); }
.lightbox__figure img {
  max-height: 74vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7);
}
.lightbox__figure figcaption { color: var(--muted); margin-top: 1rem; font-size: 0.9rem; }
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: rgba(22, 17, 15, 0.7);
  border: 1px solid var(--line);
  color: var(--text);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: var(--red); border-color: var(--red); color: #FFF; }
.lightbox__close { top: 26px; right: 26px; }
.lightbox__prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 26px; top: 50%; transform: translateY(-50%); }

/* ---------- PROCESS ---------- */
.process {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5.5rem 0;
  position: relative;
  z-index: 1;
}
.process__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  margin-bottom: 3rem;
}
.process__title .script { color: var(--gold); }
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  position: relative;
}
.process__grid::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 4%;
  right: 4%;
  height: 1px;
  background: linear-gradient(90deg, var(--red) 0%, var(--line) 60%, transparent 100%);
  z-index: 0;
}
.process-step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.process-step:hover { transform: translateY(-6px); border-color: rgba(255, 59, 77, 0.5); }
.process-step__num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
}
.process-step__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.02rem;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.process-step__text { color: var(--muted); font-size: 0.9rem; line-height: 1.62; }

/* ---------- SAFETY ---------- */
.safety { padding: 6rem 0; position: relative; z-index: 1; }
.safety__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.safety__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.18;
  margin-bottom: 1.4rem;
}
.safety__text { color: var(--muted); font-size: 1rem; }
.safety__list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.safety__list li {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.05rem 1.4rem;
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.safety__list li:hover { border-color: rgba(255, 59, 77, 0.5); transform: translateX(6px); }
.safety__list svg { color: var(--red); flex: none; }

/* ---------- REVIEWS ---------- */
.reviews { padding: 2rem 0 6rem; position: relative; z-index: 1; }
.reviews__head { margin-bottom: 2.6rem; }
.reviews__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
}
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.review-card:hover { transform: translateY(-6px); border-color: rgba(232, 179, 75, 0.45); }
.review-card__stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 1.1rem; }
.review-card__text { color: var(--muted); font-size: 0.94rem; line-height: 1.66; flex: 1; }
.review-card__author {
  margin-top: 1.4rem;
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.review-card__author::before {
  content: '✕';
  color: var(--red);
  margin-right: 0.6rem;
}

/* ---------- BOOKING ---------- */
.booking {
  background: linear-gradient(160deg, #1B1113 0%, var(--bg-deep) 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 5.5rem 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.booking__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.booking__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.18;
  margin-bottom: 1.3rem;
}
.booking__title .script { color: var(--gold); }
.booking__text { color: var(--muted); font-size: 1rem; margin-bottom: 1.6rem; }
.booking__note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(232, 179, 75, 0.08);
  border: 1px solid rgba(232, 179, 75, 0.3);
  color: var(--gold);
  border-radius: 12px;
  padding: 0.85rem 1.2rem;
  font-size: 0.9rem;
}
.booking__note-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  flex: none;
  animation: dotPulse 2.2s ease-in-out infinite;
}

.booking__form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 59, 77, 0.14);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted-2); }
.booking__form-hint { font-size: 0.76rem; color: var(--muted-2); text-align: center; }
.booking__form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: rgba(232, 179, 75, 0.07);
  border: 1px solid rgba(232, 179, 75, 0.35);
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--gold);
  font-size: 0.92rem;
}
.booking__form-success strong { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.booking__form-success-x { font-size: 1.4rem; }
.booking__form.sent .form-group,
.booking__form.sent .btn,
.booking__form.sent .booking__form-hint { display: none; }

/* ---------- CONTACTS ---------- */
.contacts { padding: 6rem 0; position: relative; z-index: 1; }
.contacts__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 4rem;
  align-items: center;
}
.contacts__map {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 59, 77, 0.08), rgba(232, 179, 75, 0.05)),
    repeating-linear-gradient(0deg, transparent, transparent 44px, var(--line) 44px, var(--line) 45px),
    repeating-linear-gradient(90deg, transparent, transparent 44px, var(--line) 44px, var(--line) 45px),
    var(--bg-deep);
}
.contacts__map-pin {
  position: absolute;
  top: 42%;
  left: 48%;
  color: var(--red);
  filter: drop-shadow(0 6px 16px var(--red-glow));
  animation: pinBob 2.4s ease-in-out infinite;
}
@keyframes pinBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.contacts__map-label {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  background: rgba(22, 17, 15, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
}
.contacts__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  text-transform: uppercase;
  margin-bottom: 1.8rem;
}
.contacts__title .script { color: var(--gold); }
.contacts__list { list-style: none; display: flex; flex-direction: column; }
.contacts__list li {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.contacts__list li span:first-child { color: var(--muted-2); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.contacts__list a { color: var(--text); text-decoration: none; transition: color 0.25s ease; }
.contacts__list a:hover { color: var(--red); }
.contacts__plain { color: var(--text); text-align: right; }

/* ---------- FINAL CTA ---------- */
.final-cta {
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, #1B0F11 0%, #0C0A09 100%);
  border-top: 1px solid var(--line);
  padding: 6.5rem 0;
  overflow: hidden;
  text-align: center;
}
.final-cta__x {
  position: absolute;
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 14rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 59, 77, 0.18);
  user-select: none;
  animation: crossPulse 5s ease-in-out infinite;
}
.final-cta__x--1 { top: -6%; left: 4%; }
.final-cta__x--2 { bottom: -8%; right: 3%; animation-delay: 2.5s; }
.final-cta__inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 0 24px; }
.final-cta__kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.final-cta__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.2vw, 3rem);
  text-transform: uppercase;
  line-height: 1.16;
  margin-bottom: 1.2rem;
}
.final-cta__title .script { color: var(--gold); }
.final-cta__text { color: var(--muted); max-width: 540px; margin: 0 auto 2.2rem; }
.final-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0;
  position: relative;
  z-index: 1;
}
.footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.footer__brand { display: flex; flex-direction: column; }
.footer__logo { font-family: var(--font-display); letter-spacing: 0.14em; font-size: 1.05rem; }
.footer__tagline { color: var(--muted-2); font-size: 0.8rem; margin-top: 0.2rem; }
.footer__links { display: flex; gap: 1.6rem; margin-left: auto; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color 0.25s ease; }
.footer__links a:hover { color: var(--red); }
.footer__copy { flex-basis: 100%; color: var(--muted-2); font-size: 0.8rem; }
.footer__copy a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__copy a:hover { color: var(--red); }

/* ---------- SCROLL REVEAL ---------- */
[data-anim] {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 90ms);
  will-change: opacity, transform;
}
[data-anim="fade-up"] { transform: translateY(34px); }
[data-anim="fade-left"] { transform: translateX(-40px); }
[data-anim="fade-right"] { transform: translateX(40px); }
[data-anim].is-visible { opacity: 1; transform: translate(0, 0); }
html.qa [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .header__nav { display: none; }
  .burger { display: flex; margin-left: auto; }
  .header .btn--accent { display: none; }
  .about__inner { gap: 3rem; }
  .styles__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid::before { display: none; }
  .works__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .reviews__grid { grid-template-columns: 1fr; }
  .booking__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contacts__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .safety__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  /* На мобильных горизонтальные сдвиги reveal убираем: полная ширина колонок не должна вылезать за экран */
  [data-anim="fade-left"],
  [data-anim="fade-right"] { transform: translateY(30px); }
}

@media (max-width: 640px) {
  .about__inner { grid-template-columns: 1fr; gap: 3rem; }
  .about__badge { left: 10px; bottom: -20px; }
  .about__stats { gap: 1.4rem; }
  .about__stat-num { font-size: 1.5rem; }
  .styles__head,
  .works__head { grid-template-columns: 1fr; gap: 1rem; }
  .styles__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .works__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 0.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .btn--lg { padding: 0.9rem 1.3rem; font-size: 0.72rem; }
  .btn--block { white-space: normal; }
  .hero__cross--tl { left: 2%; top: 16%; }
  .hero__cross--br { right: 2%; bottom: 12%; }
  .footer__links { margin-left: 0; }
  .lightbox__prev { left: 8px; width: 44px; height: 44px; }
  .lightbox__next { right: 8px; width: 44px; height: 44px; }
  .lightbox__close { top: 14px; right: 14px; width: 44px; height: 44px; }
  .contacts__map-label { white-space: normal; text-align: center; width: calc(100% - 2rem); }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  [data-anim] { opacity: 1; transform: none; }
}
