/* ============================================================
   Забьёмся — тату-студия. Лендинг.
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-alt: #101012;
  --surface: #161618;
  --surface-2: #1d1d20;
  --text: #f2f2f0;
  --text-dim: #a3a3a0;
  --text-faint: #6c6c6a;
  --accent: #e5443b;
  --accent-soft: #ff6a5e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --maxw: 1180px;
  --pad: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 18px;

  --font-head: "Oswald", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ===== Buttons ===== */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(229, 68, 59, .6);
}
.btn--primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-soft);
  transform: translateY(-2px);
}

/* ===== Header / Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) {
  .header { background: var(--bg); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.nav__logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .08em;
}
.nav__logo-dot { color: var(--accent); }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  list-style: none;
}

.nav__link {
  font-size: .95rem;
  color: var(--text-dim);
  position: relative;
  transition: color .2s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s ease;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }

.nav__phone {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: .03em;
  padding: .5rem 1.1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.nav__phone:hover { border-color: var(--accent); color: var(--accent-soft); }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  cursor: pointer;
  z-index: 60;
}
.nav__burger span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

@media (max-width: 820px) {
  .nav__burger { display: flex; }
  .nav__list {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.6rem;
    padding: var(--pad);
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.5, 0, .2, 1);
  }
  .nav__link { font-size: 1.3rem; }

  /* :has() — open menu when checkbox checked */
  .nav:has(.nav__checkbox:checked) .nav__list {
    transform: translateX(0);
  }
  .nav:has(.nav__checkbox:checked) .nav__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav:has(.nav__checkbox:checked) .nav__burger span:nth-child(2) {
    opacity: 0;
  }
  .nav:has(.nav__checkbox:checked) .nav__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(70% 55% at 75% 20%, rgba(229, 68, 59, .28), transparent 60%),
    radial-gradient(60% 60% at 15% 90%, rgba(120, 40, 200, .18), transparent 60%),
    var(--bg);
}
.hero__noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .04;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner { padding-block: 6rem; }

.hero__eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .85rem;
  color: var(--accent-soft);
  margin-bottom: 1.4rem;
}

.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.02;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.accent { color: var(--accent); }

.hero__lead {
  max-width: 540px;
  font-size: clamp(1rem, 2vw, 1.18rem);
  color: var(--text-dim);
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.hero__stat dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text);
}
.hero__stat dd {
  font-size: .9rem;
  color: var(--text-faint);
  max-width: 14ch;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 4px;
  height: 8px;
  background: var(--accent-soft);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: .3; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__scroll span { animation: none; }
}

/* ===== Sections ===== */
.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}
.section--alt { background: var(--bg-alt); }

.section__eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .82rem;
  color: var(--accent-soft);
  margin-bottom: .9rem;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.005em;
  margin-bottom: 2.5rem;
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about__lead {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1.2rem;
}
.about__text p { color: var(--text-dim); margin-bottom: 1.2rem; }

.about__points {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: .9rem;
}
.about__points li {
  position: relative;
  padding-left: 1.8rem;
  color: var(--text-dim);
}
.about__points li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.about__card {
  position: sticky;
  top: 90px;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.about__card-label {
  display: block;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .72rem;
  color: var(--text-faint);
  margin-bottom: .35rem;
}
.about__card-value {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.6rem;
}
.about__card-value:last-child { margin-bottom: 0; }
.about__card-link { color: var(--accent-soft); transition: color .2s; }
.about__card-link:hover { color: var(--accent); }

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1.2rem;
}
.service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.service:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.service__num {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: .1em;
}
.service__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  text-transform: uppercase;
  margin: .8rem 0 .7rem;
}
.service__desc { color: var(--text-dim); font-size: .98rem; }

/* ===== Gallery ===== */
.gallery__hint {
  color: var(--text-dim);
  max-width: 560px;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--surface-2), var(--surface)),
    var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  transition: transform .35s ease, border-color .35s ease;
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 30% 10%, rgba(229,68,59,.12), transparent 55%);
  opacity: 0;
  transition: opacity .35s ease;
}
.gallery__item:hover { transform: scale(1.015); border-color: var(--border-strong); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

.gallery__ph {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .9rem;
  color: var(--text-faint);
}

.gallery__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__item--wide { grid-column: span 2; }
}

/* ===== Reviews ===== */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.2rem;
}
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.review p { font-size: 1.05rem; margin-bottom: 1rem; }
.review footer { color: var(--text-faint); font-size: .9rem; }

.reviews__rating {
  margin-top: 2rem;
  color: var(--text-dim);
}
.reviews__rating strong {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--accent-soft);
}

/* ===== Contacts ===== */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contacts__lead { color: var(--text-dim); margin-bottom: 2rem; max-width: 42ch; }
.contacts__list {
  list-style: none;
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}
.contacts__list li {
  display: grid;
  gap: .2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}
.contacts__label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: .72rem;
  color: var(--text-faint);
}
.contacts__list a { color: var(--accent-soft); transition: color .2s; }
.contacts__list a:hover { color: var(--accent); }

.contacts__socials {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 380px;
  background: var(--surface);
}
.contacts__map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
  filter: grayscale(.4) contrast(1.05);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.footer__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .08em;
}
.footer__brand p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .9rem;
  letter-spacing: normal;
  color: var(--text-faint);
  margin-top: .3rem;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__links a { color: var(--text-dim); transition: color .2s; }
.footer__links a:hover { color: var(--accent-soft); }
.footer__copy {
  color: var(--text-faint);
  font-size: .85rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .about,
  .contacts { grid-template-columns: 1fr; }
  .about__card { position: static; }
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .6, .2, 1), transform .7s cubic-bezier(.2, .6, .2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
