/* ===========================================================
   EZ Tattoo — Olena Zadorozhna
   Все цвета и шрифты настраиваются здесь
   =========================================================== */

:root {
  --bg: #0d0d0d;
  --bg-soft: #141414;
  --line: rgba(212, 175, 90, 0.25);
  --gold: #d8b26a;
  --gold-soft: #e8d3a0;
  --text: #efe9df;
  --muted: #a9a297;
  --serif: "Inria Serif", Georgia, serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: auto; /* плавный скролл делаем в JS */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

::selection {
  background: #ffc31f;
  color: #000;
}

/* Возврат к исходным отступам секций */
.section {
  padding: 100px 0;
  margin: 0 auto;
  width: 70%;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 500;
  text-align: center;
  color: #ffc31f;
  letter-spacing: 0.04em;
  margin-bottom: 48px;
}

.gold-line {
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffc31f, transparent);
  margin: 18px auto 0;
}

/* ---------- Плейсхолдер под фото ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03) 0 12px,
      rgba(255, 255, 255, 0.06) 12px 24px
    ),
    #1a1a1a;
  border: 1px solid var(--line);
  overflow: hidden;
}

.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(216, 178, 106, 0.7);
  text-align: center;
  padding: 12px;
}

.ph img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===========================================================
   HEADER + БУРГЕР
   =========================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 26px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
transition: background 0.4s var(--ease);
}

.header.solid {
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.burger {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  transition:
    transform 0.5s var(--ease),
    border-color 0.4s,
    background 0.4s;
}

.burger:hover {
  border-color: var(--gold);
}

.burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #ffc31f;
  transition: transform 0.5s var(--ease), opacity 0.3s ease;
}

/* открытое состояние: квадрат поворачивается, полоски в крестик */
.burger.open {
  transform: rotate(90deg);
  background: rgba(216, 178, 106, 0.1);
  border-color: #ffc31f;
}

.burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* меню — выезжает и слова появляются по очереди */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.9s var(--ease), opacity 0.5s ease;
}

.nav.open {
  max-width: 760px;
  opacity: 1;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text);
  opacity: 0;
  transform: translateX(-22px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease),
    color 0.3s;
  position: relative;
  padding-bottom: 3px;
}

.nav.open a {
  opacity: 1;
  transform: none;
}

/* по-немногу, по очереди */
.nav.open a:nth-child(1) { transition-delay: 0.15s; }
.nav.open a:nth-child(2) { transition-delay: 0.3s; }
.nav.open a:nth-child(3) { transition-delay: 0.45s; }
.nav.open a:nth-child(4) { transition-delay: 0.6s; }
.nav.open a:nth-child(5) { transition-delay: 0.75s; }
.nav.open a:nth-child(6) { transition-delay: 0.90s; }

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #ffc31f;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav a:hover {
  color: #ffc31f;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  filter: grayscale(1) contrast(1.05);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1));
}

.hero-inner {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 0 20px;
}

.hero-logo {
  width: 220px;
  height: 270px;
  border-radius: 50%;
  border: none;
  background: transparent;
  box-shadow: none;
  transform: translateY(50px);      /* Гарантированно опускает логотип на 40px ниже */
}

.hero-logo::after {
  display: none;                    /* убираем текст "ЛОГО" */
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(24px, 5.5vw, 50px);
  font-weight: 400;
  color:#ffc31f;
  letter-spacing: 0.06em;
}

.hero-by {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: #ffc31f;
  line-height: 1;
  margin: -12px 0 -4px;
  transform: translateY(-3px);
}

.hero h2 {
  font-family: var(--serif);
 font-style: italic; 
  font-weight: 500;
  font-size: clamp(16px, 2vw, 25px); /* Уменьшили размер шрифта */
  color: #ffc31f;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transform: none;
}

.scroll-hint {
  margin-top: 120px;            /* Увеличенный отступ опустит блок вниз */
  font-size: 30px;
  letter-spacing: 0.2em;
  color: #ffffff;
  display: grid;
  gap: 8px;
  justify-items: center;
  cursor: pointer;
  transform: translateY(100px);  /* Дополнительный сдвиг вниз */
}

.scroll-hint .arrow {
  animation: bob 1.8s infinite ease-in-out;
  font-size: 30px;
  color: #ffc31f;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(10px); opacity: 1; }
}

/* ===========================================================
   ABOUT
   =========================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-photos {
  position: relative;
  height: 480px;
}

.about-photos .ph {
  position: absolute;
  border-radius: 14px;
  filter: grayscale(1);
  transition: transform 0.6s var(--ease), filter 0.6s;
}

.about-photos .ph:hover {
  filter: grayscale(0);
  transform: scale(1.03);
  z-index: 5;
}

.ph-main { inset: 0 60px 70px 0; }
.ph-s1 { width: 150px; height: 175px; left: 0; bottom: 0; }
.ph-s2 { width: 165px; height: 145px; left: 140px; bottom: 30px; }

.about-text h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 500;
  color: #ffc31f;
  margin-bottom: 26px;
}

.about-text p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 15px;
  margin-bottom: 18px;
}

.about-text strong {
  color: var(--text);
  font-weight: 500;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 40px;
  color: #ffc31f;
  font-weight: 500;
}

.stat span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===========================================================
   WORKS — карусель по кругу
   =========================================================== */
.carousel {
  position: relative;
  height: 400px;
  perspective: 1600px;
  margin-bottom: 30px;
}

.carousel-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 380px;
  margin: -190px 0 0 -140px;
  border-radius: 12px;
  transition: transform 0.85s var(--ease), opacity 0.85s var(--ease), filter 0.85s var(--ease);
  cursor: pointer;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.carousel-btn {
  position: absolute;
  bottom: -26px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.4);
  color: #ffc31f;
  font-size: 22px;
  cursor: pointer;
  z-index: 20;
  transition: all 0.35s var(--ease);
}

.carousel-btn:hover {
  border-color: var(--gold);
  background: rgba(216, 178, 106, 0.12);
  transform: scale(1.08);
}

.prev { left: 26%; }
.next { right: 26%; }

.view-all {
  display: block;
  margin: 60px auto 0;
  background: none;
  border: none;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: #ffc31f;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: letter-spacing 0.4s var(--ease), color 0.3s;
}

.view-all:hover {
  letter-spacing: 0.14em;
  color: #ffc31f;
}

/* ===========================================================
   LOCATION
   =========================================================== */
.location-info {
  text-align: center;
  color: var(--muted);
  line-height: 1.9;
  font-size: 18px;
  margin-bottom: 34px;
}

.map-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  height: 420px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.25) contrast(1.05);
}

.map-link {
  display: block;
  text-align: center;
  margin-top: 34px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: #ffc31f;
}

.map-link:hover { color: #ffc31f; }

/* ===========================================================
   BOOKING
   =========================================================== */
.booking-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}

.booking-preview {
  border-radius: 12px;
  overflow: hidden;
  min-height: 470px;
  position: relative;
}

.style-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--bg-soft);
}

.style-switch span {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: #ffc31f;
}

.style-switch button {
  background: none;
  border: none;
  color: #ffc31f;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 10px;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  padding: 34px 30px;
}

.form-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  color: #ffc31f;
  margin-bottom: 24px;
  text-align: center;
}

.form-card input,
.form-card textarea {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-card textarea {
  min-height: 130px;
  resize: vertical;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: #ffc31f;
  box-shadow: 0 0 0 3px rgba(216, 178, 106, 0.1);
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: #6d675e;
}

.btn-gold {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ffc31f;
  background: linear-gradient(135deg, rgba(216, 178, 106, 0.18), rgba(216, 178, 106, 0.05));
  color: #ffc31f;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s var(--ease);
}

.btn-gold:hover {
  background: #ffc31f;
  color: #101010;
}

.field-error {
  border-color: #b4534e !important;
}

/* ===========================================================
    МОДАЛКИ
    =========================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 30px;
  text-align: center;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.5s var(--ease);
  max-height: 88vh;
  overflow-y: auto;
}

.modal.show .modal-card {
  transform: none;
}

.modal-card.wide {
  max-width: 1080px;
  text-align: left;
}

.modal-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  color: #ffc31f;
  font-weight: 500;
  margin-bottom: 10px;
}

.modal-card p.sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 26px;
  line-height: 1.7;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.choice {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 12px;
  background: #101010;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 8px;
  justify-items: center;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.35s var(--ease);
}

.choice:hover {
  border-color: #ffc31f;
  transform: translateY(-3px);
  background: rgba(216, 178, 106, 0.08);
}

.choice .ico {
  font-size: 26px;
}

.status {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: #ffc31f;
  display: none;
}

.status.show {
  display: block;
  animation: fadeUp 0.5s var(--ease);
}

.status a {
  color: #ffc31f;
  text-decoration: underline;
}

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

.modal-close {
  margin-top: 24px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 10px 22px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal-close:hover { border-color: #ffc31f; color: #ffc31f; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.gallery-grid .ph {
  height: 280px;
  border-radius: 10px;
  filter: grayscale(0);
  transition: filter 0.5s, transform 0.5s var(--ease);
}

.gallery-grid .ph:hover {
  filter: none;
  transform: scale(1.03);
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 46px 24px 60px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  font-size: 14px;
  color: #ffffff;
  line-height: 1.9;
}

.footer b {
  color: #ffffff;
  font-weight: 400;
}

.footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer a:hover {
  color: #ffc31f;
}

/* ---------- Появление секций при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {

  .about-grid,
  .booking-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .about-photos {
    height: 400px;
  }

  .prev {
    left: 6%;
  }

  .next {
    right: 6%;
  }

}

.hero-bg img {
  object-fit: cover;
  object-position: center 80%;
  transform: scale(1);          /* чем меньше число — тем мельче фото */
  transform-origin: center top;
}
.section {
  position: relative;
}

/* Линия снизу для каждой секции, кроме последней */
.section:not(#booking)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;                           /* Ширина линии (80% от ширины контента) */
  max-width: 900px;                     /* Максимальная ширина */
  height: 1px;                          /* Толщина линии */
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    rgba(212, 175, 90, 0.4) 50%, 
    transparent 100%
  );                                    /* Мягкий градиент с затуханием по краям */
  pointer-events: none;
}
/* ---------- 1. Плавная и глубже анимация появления секций ---------- */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.97); /* Секции слегка проявляются и увеличиваются */
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

/* ---------- 2. Анимация кнопок "View all" и "View on map" ---------- */
.view-all, .map-link {
  display: inline-block;
  transition: transform 0.3s var(--ease), color 0.3s ease;
}

.view-all:hover, .map-link:hover {
  transform: translateY(-3px) scale(1.04); /* Легкое всплытие при наведении */
  color: var(--gold-soft);
}

/* ---------- 3. Эффект свечения для фото при наведении ---------- */
.ph img {
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.ph:hover img {
  transform: scale(1.05); /* Легкое приближение картинок */
}

/* ---------- 4. Анимация формы и карточки локации ---------- */
.form-card, .map-box {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.form-card:hover, .map-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(216, 178, 106, 0.08); /* Мягкое золотистое свечение */
}
/* ---------- Эффект «высовывания» секций при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(80px) scale(0.96); /* Секция задвинута вниз и чуть уменьшена */
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Когда скрипт видит прокрутку и добавляет класс .in */
.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);       /* Секция плавно выезжает на место */
}
/* ---------- Блок FAQ ---------- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 90, 0.25);
  border-radius: 8px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: #d4af5a;
  background: rgba(212, 175, 90, 0.05);
}

.faq-item summary {
  font-weight: 500;
  font-size: 18px;
  color: #ffffff;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: #d4af5a;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

/* Плавное, медленное «высовывание» текста при открытии FAQ */
.faq-item p {
  margin-top: 12px;
  color: #cccccc;
  line-height: 1.6;
  font-size: 15px;
  overflow: hidden;
}

/* При открытии плашки — медленная анимация на 0.8 секунды */
.faq-item[open] p {
  animation: faqSlideDown 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Ключевые кадры: плавный выезд с расстояния 20px */
@keyframes faqSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
    max-height: 0;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    max-height: 300px;
  }
}
/* Цвет стрелочки под Scroll */
.scroll-hint .arrow {
  color: #ffffff; /* Укажите ваш цвет (сейчас стоит золотой) */
}
/* ===========================================================
   PREMIUM BACKGROUND — EZ
   Не затрагивает HERO
   =========================================================== */

body {
  background:
    radial-gradient(
      circle at 10% 25%,
      rgba(255, 195, 31, 0.035),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 65%,
      rgba(255, 195, 31, 0.025),
      transparent 32%
    ),
    #0d0d0d;
}

/* Очень лёгкое зерно */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;

  opacity: 0.035;

  background-image:
    radial-gradient(circle, #ffffff 0.7px, transparent 0.8px);

  background-size: 5px 5px;
}

/* Контейнеры секций */
.section {
  position: relative;
  overflow: hidden;
}

/* Декоративный EZ на фоне */

.section::before {
  content: "EZ";
  position: absolute;
  z-index: -1;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(180px, 18vw, 280px);
  line-height: 1;
  letter-spacing: -0.08em;
  color: rgba(255, 195, 31, 0.085);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* Положение EZ */

#about::before {
  right: 3%;
  top: 20%;
  transform: rotate(-6deg);
}

#works::before {
  left: 3%;
  top: 25%;
  transform: rotate(6deg);
}

#location::before {
  right: 4%;
  top: 25%;
  transform: rotate(-5deg);
}

#booking::before {
  left: 3%;
  top: 20%;
  transform: rotate(5deg);
}

#faq::before {
  right: 3%;
  top: 25%;
  transform: rotate(-6deg);
}

/* Телефон */
@media (max-width: 900px) {
  .section::before {
    font-size: 150px;
    color: rgba(255, 195, 31, 0.55);
  }
}
/* ================= LEGAL PAGES ================= */

.legal-page {
  min-height: 100vh;
  padding: 140px 20px 80px;
  background: #0a0a0a;
  color: #fff;
}

.legal-container {
  max-width: 850px;
  margin: 0 auto;
}

.legal-container h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.legal-container h2 {
  margin-top: 45px;
  margin-bottom: 15px;
  color: #ffc31f;
  font-size: 24px;
}

.legal-container p,
.legal-container li {
  color: #bdbdbd;
  font-size: 16px;
  line-height: 1.8;
}

.legal-container ul {
  padding-left: 25px;
}

.legal-updated {
  color: #777 !important;
  font-size: 14px !important;
}

.back-link {
  display: inline-block;
  margin-bottom: 40px;
  color: #ffc31f;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}


/* FOOTER LEGAL LINKS */

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffc31f;
}


/* MOBILE */

@media (max-width: 600px) {

  .legal-page {
    padding: 110px 20px 60px;
  }

  .legal-container h1 {
    font-size: 36px;
  }

  .legal-container h2 {
    font-size: 21px;
    margin-top: 35px;
  }

  .legal-container p,
  .legal-container li {
    font-size: 15px;
  }

}
/* ===========================================================
   EZ TATTOO — FINAL MOBILE VERSION
   =========================================================== */

@media (max-width: 600px) {

  /* ---------- GENERAL ---------- */

  body {
    font-size: 15px;
  }

  .section {
    width: 100%;
    padding: 75px 20px;
  }

  .section-title {
    font-size: 38px;
    margin-bottom: 38px;
  }

  .gold-line {
    width: 55px;
    margin-top: 14px;
  }


  /* ---------- HEADER ---------- */

  .header {
    padding: 14px 16px;
  }

  .burger {
    width: 42px;
    height: 42px;
  }

  .nav a {
    width: 100%;
    padding: 11px 0;
    font-size: 13px;
  }


  /* ---------- HERO ---------- */

  .hero {
    height: 100svh;
    min-height: 620px;
  }

  .hero-bg img {
    object-position: center center;
    transform: scale(1.03);
  }

  .hero-inner {
    width: 100%;
    padding: 20px;
    gap: 10px;
  }

  .hero-logo {
    width: 165px;
    height: 205px;
    transform: translateY(20px);
  }

  .hero h1 {
    font-size: 40px;
    margin-top: 5px;
  }

  .hero h2 {
    font-size: 18px;
  }

  .scroll-hint {
    margin-top: 75px;
    transform: translateY(20px);
    font-size: 18px;
    gap: 5px;
  }

  .scroll-hint .arrow {
    font-size: 26px;
  }


  /* ---------- ABOUT ---------- */

  .about-grid {
    display: flex;
    flex-direction: column;
    gap: 45px;
  }

  .about-photos {
    width: 100%;
    height: 390px;
  }

  .ph-main {
    inset: 0 45px 65px 0;
  }

  .ph-s1 {
    width: 125px;
    height: 145px;
    left: 0;
    bottom: 0;
  }

  .ph-s2 {
    width: 140px;
    height: 125px;
    left: 115px;
    bottom: 25px;
  }

  .about-text h2 {
    font-size: 38px;
    margin-bottom: 20px;
  }

  .about-text p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
  }


  /* ---------- STATS ---------- */

  .stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 28px;
  }

  .stat {
    text-align: center;
  }

  .stat b {
    font-size: 28px;
  }

  .stat span {
    display: block;
    font-size: 8px;
    line-height: 1.4;
    letter-spacing: 0.08em;
  }


  /* ---------- WORKS ---------- */

  .carousel {
    height: 350px;
    margin-bottom: 20px;
    overflow: visible;
  }

  .carousel-stage {
    transform: scale(0.72);
    transform-origin: center center;
  }

  .slide {
    width: 260px;
    height: 350px;
    margin: -175px 0 0 -130px;
  }

  .carousel-btn {
    width: 44px;
    height: 44px;
    bottom: -20px;
    font-size: 20px;
  }

  .prev {
    left: 5%;
  }

  .next {
    right: 5%;
  }

  .view-all {
    margin-top: 55px;
    font-size: 24px;
  }


  /* ---------- LOCATION ---------- */

  .location-info {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
  }

  .map-box {
    height: 330px;
    border-radius: 10px;
  }

  .map-link {
    margin-top: 25px;
    font-size: 22px;
  }


  /* ---------- BOOKING ---------- */

  .booking-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .booking-preview {
    min-height: 390px;
    height: 390px;
  }

  .style-switch {
    padding: 11px 14px;
  }

  .style-switch span {
    font-size: 21px;
  }

  .form-card {
    padding: 28px 20px;
    border-radius: 12px;
  }

  .form-card h3 {
    font-size: 30px;
    margin-bottom: 22px;
  }

  .form-card input,
  .form-card textarea {
    font-size: 14px;
    padding: 14px;
  }

  .form-card textarea {
    min-height: 120px;
  }

  .btn-gold {
    padding: 15px;
  }


  /* ---------- FAQ ---------- */

  .faq-list {
    width: 100%;
    gap: 10px;
  }

  .faq-item {
    padding: 15px 16px;
    border-radius: 8px;
  }

  .faq-item summary {
    font-size: 15px;
    line-height: 1.5;
    gap: 15px;
  }

  .faq-item summary::after {
    flex-shrink: 0;
    font-size: 20px;
  }

  .faq-item p {
    font-size: 13px;
    line-height: 1.7;
    margin-top: 10px;
  }


  /* ---------- MODALS ---------- */

  .modal {
    padding: 14px;
  }

  .modal-card {
    padding: 28px 20px;
    max-height: 90vh;
    border-radius: 14px;
  }

  .modal-card.wide {
    max-width: 100%;
  }

  .modal-card h3 {
    font-size: 27px;
  }

  .modal-card p.sub {
    font-size: 13px;
  }

  .choice-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .choice {
    padding: 18px 12px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-grid .ph {
    height: 220px;
  }


  /* ---------- FOOTER ---------- */

  .footer {
    padding: 40px 20px 50px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 25px;
    font-size: 13px;
  }

  .footer-links {
    gap: 12px;
  }


  /* ---------- BACKGROUND EZ ---------- */

  .section::before {
    font-size: 120px;
  }

  #about::before {
    right: -5%;
    top: 15%;
  }

  #works::before {
    left: -5%;
    top: 20%;
  }

  #location::before {
    right: -5%;
    top: 20%;
  }

  #booking::before {
    left: -5%;
    top: 15%;
  }

  #faq::before {
    right: -5%;
    top: 20%;
  }


  /* ---------- SECTION DIVIDERS ---------- */

  .section:not(#booking)::after {
    width: 85%;
  }

}


/* ===========================================================
   VERY SMALL PHONES
   =========================================================== */

@media (max-width: 380px) {

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-logo {
    width: 145px;
    height: 180px;
  }

  .hero h1 {
    font-size: 35px;
  }

  .hero h2 {
    font-size: 16px;
  }

  .about-photos {
    height: 350px;
  }

  .stat b {
    font-size: 24px;
  }

  .stat span {
    font-size: 7px;
  }

  .slide {
    width: 240px;
    height: 325px;
    margin-left: -120px;
    margin-top: -162px;
  }

  .carousel-stage {
    transform: scale(0.65);
  }

  .booking-preview {
    height: 350px;
    min-height: 350px;
  }

  .gallery-grid .ph {
    height: 190px;
  }

}

  .nav a {
    flex-shrink: 0;

    width: auto;
    padding: 6px 0;

    font-size: 11px;
    letter-spacing: 0.07em;

    white-space: nowrap;

    opacity: 0;
    transform: translateX(-15px);

    transition:
      opacity 0.5s var(--ease),
      transform 0.5s var(--ease),
      color 0.3s;
  }

  .nav.open a {
    opacity: 1;
    transform: translateX(0);
  }

}
.reveal {
  opacity: 1 !important;
  transform: none !important;
}
.booking-preview {
  width: 320px;
  height: 380px;
  min-height: 0;
  margin: 0 auto;
}

.booking-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 600px) {
  .booking-preview {
    width: 260px;
    height: 320px;
  }
}
@media (max-width: 600px) {
  .booking-preview {
    min-height: 260px;
    height: 260px;
  }
}
/* WORKS — View other + Instagram */

.works-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 60px;
}

/* VIEW OTHER */

.works-buttons .view-all {
  margin: 0;
  position: relative;
  cursor: pointer;
}

/* линия под кнопкой */

.works-buttons .view-all::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;

  width: 100%;
  height: 1px;

  background: #ffc31f;

  transform: scaleX(0.35);
  transform-origin: left;

  transition: transform 0.35s ease;
}

.works-buttons .view-all:hover::after {
  transform: scaleX(1);
}


/* OR */

.works-or {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: rgba(255,255,255,0.5);
}


/* INSTAGRAM */

.instagram-btn {
  position: relative;

  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;

  color: #ffc31f;

  letter-spacing: 0.05em;

  transition:
    transform 0.3s ease,
    letter-spacing 0.35s ease;
}

.instagram-btn::after {
  content: "";
  position: absolute;

  left: 0;
  bottom: -5px;

  width: 100%;
  height: 1px;

  background: #ffc31f;

  transform: scaleX(0.35);
  transform-origin: left;

  transition: transform 0.35s ease;
}

.instagram-btn:hover {
  transform: translateY(-2px);
  letter-spacing: 0.1em;
}

.instagram-btn:hover::after {
  transform: scaleX(1);
}


/* MOBILE */

@media (max-width: 600px) {

  .works-buttons {
    gap: 15px;
    margin-top: 50px;
  }

  .works-buttons .view-all,
  .instagram-btn {
    font-size: 20px;
  }

  .works-or {
    font-size: 14px;
  }

}
/* =========================================
   MOBILE BURGER MENU — FIX
   ========================================= */

@media (max-width: 600px) {

  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
  }

  .burger {
    position: relative;
    z-index: 1002;
  }

  .nav {
    position: fixed;

    top: 65px;
    left: 15px;
    right: 15px;

    width: auto;
    max-width: none;

    max-height: calc(100vh - 85px);

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 0;

    padding: 15px 20px;

    background: rgba(8, 8, 8, 0.97);
    border: 1px solid rgba(255, 195, 31, 0.25);
    border-radius: 10px;

    overflow-y: auto;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-10px);

    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;

    z-index: 1001;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
  }

  .nav a {
    display: block;

    width: 100%;

    padding: 13px 0;

    font-size: 14px;
    line-height: 1.2;

    text-align: left;

    white-space: nowrap;

    opacity: 1;
    visibility: visible;

    transform: none;
  }
}
@media (max-width: 600px) {
  .hero-by {
    transform: translateY(3px);
  }
}
/* ===========================================================
   PHOTO VIEWER
   =========================================================== */

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 30px;

  background: rgba(0, 0, 0, 0.96);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.image-viewer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-viewer img {
  display: block;

  max-width: 90vw;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 8px;

  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8);

  user-select: none;
  -webkit-user-drag: none;
}

.image-viewer-close {
  position: absolute;

  top: 20px;
  right: 25px;

  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0, 0, 0, 0.5);

  border: 1px solid rgba(255, 195, 31, 0.4);
  border-radius: 50%;

  color: #ffc31f;

  font-size: 38px;
  line-height: 1;

  cursor: pointer;

  z-index: 10;

  transition: transform 0.25s ease, background 0.25s ease;
}

.image-viewer-close:hover {
  transform: scale(1.08);
  background: rgba(255, 195, 31, 0.1);
}

.image-viewer-prev,
.image-viewer-next {
  position: absolute;

  top: 50%;
  transform: translateY(-50%);

  width: 55px;
  height: 55px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  border: 1px solid #ffc31f;

  background: rgba(0, 0, 0, 0.65);

  color: #ffc31f;

  font-size: 36px;
  line-height: 1;

  cursor: pointer;

  z-index: 10;

  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.image-viewer-prev:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(255, 195, 31, 0.12);
}

.image-viewer-next:hover {
  transform: translateY(-50%) scale(1.08);
  background: rgba(255, 195, 31, 0.12);
}

.image-viewer-prev {
  left: 25px;
}

.image-viewer-next {
  right: 25px;
}


/* MOBILE */

@media (max-width: 600px) {

  .image-viewer {
    padding: 15px;
  }

  .image-viewer img {
    max-width: 94vw;
    max-height: 82vh;
  }

  .image-viewer-close {
    top: 12px;
    right: 12px;

    width: 44px;
    height: 44px;

    font-size: 32px;
  }

  .image-viewer-prev,
  .image-viewer-next {
    width: 42px;
    height: 42px;

    font-size: 28px;
  }

  .image-viewer-prev {
    left: 8px;
  }

  .image-viewer-next {
    right: 8px;
  }

}
