/* ===== KHUD.TATTOO — тёмная тема, кремовая антиква, красный акцент ===== */
:root {
  --bg: #151110;          /* основной фон */
  --bg-2: #1c1714;        /* чуть светлее */
  --panel: #221d15;       /* карточки и форма */
  --panel-2: #26221a;
  --cream: #ede4d5;       /* заголовки */
  --text: #b9b0a0;        /* основной текст */
  --muted: #8f8777;       /* приглушённый */
  --accent: #c33b2f;      /* красный */
  --accent-2: #d6493a;    /* hover */
  --line: #3a332a;        /* тонкие линии */
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Golos Text", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: var(--cream); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.section { max-width: 1440px; margin: 0 auto; padding: 130px 120px; position: relative; }

/* --- типографика --- */
.kicker {
  display: flex; align-items: center; gap: 24px;
  font-size: 15px; font-weight: 600;
  letter-spacing: .35em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 34px;
}
.kicker::before { content: ""; width: 74px; height: 2px; background: var(--accent); flex: none; }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 4.6vw, 74px);
  line-height: 1.12;
  color: var(--cream);
  letter-spacing: .01em;
}

.lead { max-width: 62ch; margin-top: 26px; }

.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
}
.section__head > div { min-width: 0; }
.section__note {
  color: var(--muted); font-size: 15px; letter-spacing: .04em;
  max-width: 340px; flex: none; margin-left: auto;
}

.link-more {
  color: var(--accent);
  font-size: 15px; font-weight: 600; letter-spacing: .04em;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.link-more:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* --- кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 44px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #f6ede0; }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line); color: var(--cream); background: transparent; }
.btn--ghost:hover { border-color: var(--cream); }
.btn--full { width: 100%; }

/* --- логотип --- */
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 19px; font-weight: 600; letter-spacing: .18em;
  color: var(--cream);
}
.logo__mark { width: 12px; height: 12px; background: var(--accent); flex: none; }

/* ===== Шапка ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 120px;
  transition: background .25s ease, box-shadow .25s ease;
}
.header--scrolled { background: rgba(21,17,16,.92); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.nav { display: flex; gap: 44px; }
.nav a {
  font-size: 15px; color: var(--text); letter-spacing: .05em;
  transition: color .2s ease;
}
.nav a:hover { color: var(--cream); }
.burger { display: none; }

/* ===== Главный экран ===== */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  padding: 140px 120px 90px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: url("assets/hero.jpg") right center / auto 100% no-repeat;
}
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) 34%, rgba(21,17,16,.55) 55%, rgba(21,17,16,.05) 78%),
              linear-gradient(0deg, var(--bg) 0%, transparent 22%),
              linear-gradient(180deg, rgba(21,17,16,.75) 0%, transparent 26%);
}
.hero__inner { max-width: 720px; }
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(56px, 8vw, 124px);
  line-height: 1.04; color: var(--cream);
  text-transform: uppercase; letter-spacing: .02em;
  margin-bottom: 40px;
}
.hero__text { max-width: 56ch; font-size: 18px; margin-bottom: 48px; }
.hero__actions { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 64px; }
.hero__meta { font-size: 14px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta a { color: var(--text); border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.hero__meta a:hover { color: var(--cream); border-color: var(--cream); }
.hero__meta .dot { color: var(--accent); }

.hero__seal {
  position: absolute; top: 32%; left: 46%;
  width: 92px; height: 92px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #f6ede0; font-size: 44px; font-family: var(--serif);
  user-select: none;
}
.hero__kanji--vert {
  position: absolute; left: 57%; bottom: 22%;
  writing-mode: vertical-rl;
  font-family: var(--serif); font-size: 44px; color: rgba(237,228,213,.35);
  letter-spacing: .2em; user-select: none;
}

/* ===== Обо мне ===== */
.about {
  display: grid;
  grid-template-columns: minmax(320px, 560px) 1fr;
  gap: 110px;
  align-items: start;
}
.about__photo { position: relative; }
.about__photo::after {
  content: ""; position: absolute; inset: 0;
  transform: translate(28px, 28px);
  border: 2px solid var(--accent);
  z-index: -1;
}
.about__body { position: relative; }
.about__kanji {
  position: absolute; top: 0; right: -30px;
  writing-mode: vertical-rl;
  font-family: var(--serif); font-size: 40px; color: rgba(237,228,213,.14);
  letter-spacing: .25em; user-select: none;
}
.features {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-top: 70px; padding-top: 50px;
  border-top: 1px solid var(--line);
}
.features svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 20px; }
.features h3 { font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--cream); margin-bottom: 10px; }
.features p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ===== Стили ===== */
.styles { }
.styles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.style-card { background: var(--panel); display: flex; flex-direction: column; }
.style-card__img { aspect-ratio: 720 / 660; overflow: hidden; }
.style-card__img img { transition: transform .5s ease; }
.style-card:hover .style-card__img img { transform: scale(1.04); }
.style-card__body { padding: 40px 36px 48px; }
.style-card__num { font-size: 14px; font-weight: 600; letter-spacing: .2em; color: var(--accent); }
.style-card h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 30px; color: var(--cream);
  margin: 16px 0 20px;
}
.style-card p { font-size: 15.5px; color: var(--muted); }

/* ===== Работы ===== */
.works__grid, .sketch__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.work { position: relative; overflow: hidden; aspect-ratio: 820 / 465; background: var(--bg-2); }
.work img { transition: transform .5s ease; }
.work:hover img { transform: scale(1.05); }
.work figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 48px 28px 22px;
  font-size: 15.5px; color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(21,17,16,.88));
}

/* ===== Процесс ===== */
.process__kanji {
  position: absolute; top: 120px; right: 120px;
  font-family: var(--serif); font-size: 120px; color: rgba(237,228,213,.07);
  user-select: none; line-height: 1;
}
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-top: 90px;
}
.step { border-top: 1px solid var(--line); padding-top: 44px; position: relative; }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0;
  width: 74px; height: 3px; background: var(--accent);
}
.step__num {
  font-family: var(--serif); font-size: 64px; line-height: 1;
  color: var(--accent); display: block; margin-bottom: 26px;
}
.step h3 { font-size: 20px; font-weight: 600; color: var(--cream); margin-bottom: 14px; }
.step p { font-size: 15px; color: var(--muted); }

.cta {
  margin-top: 100px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 56px 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta p { font-size: 20px; color: var(--cream); max-width: 40ch; }

/* ===== Контакты ===== */
.contacts {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(400px, 660px);
  gap: 110px;
  align-items: start;
}
.contacts__list { margin: 60px 0 56px; display: grid; gap: 38px; }
.contacts__list dt {
  font-size: 13px; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 10px;
}
.contacts__list dd { font-family: var(--serif); font-size: 28px; color: var(--cream); }
.contacts__list dd a { border-bottom: 1px solid var(--line); transition: border-color .2s; }
.contacts__list dd a:hover { border-color: var(--cream); }

.contacts__form-wrap { position: relative; background: var(--panel); border: 1px solid var(--line); padding: 64px; }
.contacts__seal {
  position: absolute; top: -46px; left: -46px;
  width: 92px; height: 92px;
  display: grid; place-items: center;
  background: var(--accent); color: #f6ede0;
  font-size: 44px; font-family: var(--serif);
  user-select: none;
}
.form h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--cream); margin-bottom: 44px; }
.form label {
  display: block;
  font-size: 13px; font-weight: 600; letter-spacing: .25em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 34px;
}
.form input, .form textarea {
  display: block; width: 100%;
  margin-top: 12px; padding: 18px 20px;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--cream);
  font-family: var(--sans); font-size: 16px; font-weight: 400;
  letter-spacing: normal; text-transform: none;
  transition: border-color .2s ease;
  resize: vertical;
}
.form input::placeholder, .form textarea::placeholder { color: #6d665a; }
.form input:focus, .form textarea:focus { border-color: var(--accent); outline: none; }
.form .btn--full { margin-top: 6px; }
.form__note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.form__note--ok { color: #9dbb8a; }
.form__note--err { color: var(--accent-2); }

/* ===== Подвал ===== */
.footer {
  max-width: 1440px; margin: 0 auto;
  padding: 44px 120px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  font-size: 14.5px; color: var(--muted);
}
.footer a { color: var(--text); transition: color .2s; }
.footer a:hover { color: var(--cream); }
.footer .logo { color: var(--cream); font-size: 16px; }

/* ===== Появление при скролле ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .work img, .style-card__img img, .btn { transition: none; }
}

/* ===== Адаптив ===== */
@media (max-width: 1200px) {
  .section { padding: 100px 48px; }
  .header { padding: 20px 48px; }
  .hero { padding: 130px 48px 70px; }
  .footer { padding: 36px 48px; }
  .about { gap: 64px; }
  .about__kanji { right: 0; }
  .contacts { gap: 64px; }
  .process__kanji { right: 48px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .section { padding: 80px 24px; }
  .header { padding: 16px 24px; }
  .footer { padding: 30px 24px; }

  /* blur у шапки делает её контейнером для fixed-меню — на мобильном отключаем */
  .header--scrolled { backdrop-filter: none; background: rgba(21,17,16,.97); }

  .kicker { font-size: 12.5px; letter-spacing: .25em; gap: 14px; margin-bottom: 24px; }
  .kicker::before { width: 44px; }

  .section__head { flex-wrap: wrap; }
  .section__note { margin-left: 0; }

  .burger {
    display: grid; gap: 5px; place-content: center;
    width: 48px; height: 48px;
    position: relative; z-index: 102;
    background: none; border: 1px solid var(--line); cursor: pointer;
  }
  .burger span { display: block; width: 22px; height: 2px; background: var(--cream); transition: transform .25s ease, opacity .2s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: 0; z-index: 99;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 36px;
    background: rgba(21,17,16,.98);
    transform: translateY(-100%);
    transition: transform .3s ease;
  }
  .nav--open { transform: none; }
  .nav a { font-size: 24px; color: var(--cream); }

  .hero { min-height: auto; padding-top: 120px; }
  .hero__bg {
    position: relative; inset: auto;
    height: 380px; margin: 0 -24px 40px;
    order: -1;
    background-position: center top;
    background-size: cover;
  }
  .hero__bg::before {
    background: linear-gradient(0deg, var(--bg) 0%, transparent 40%),
                linear-gradient(180deg, rgba(21,17,16,.55) 0%, transparent 30%);
  }
  .hero { flex-direction: column; align-items: stretch; }
  .hero__seal { display: none; }
  .hero__kanji--vert { display: none; }
  .hero__actions .btn { flex: 1 1 auto; }

  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__photo::after { transform: translate(14px, 14px); }
  .about__kanji { display: none; }
  .features { grid-template-columns: 1fr; gap: 28px; }

  .styles__grid { grid-template-columns: 1fr; }
  .works__grid, .sketch__grid { grid-template-columns: 1fr; }
  .work { aspect-ratio: 4 / 3; }

  .steps { grid-template-columns: 1fr; gap: 40px; margin-top: 60px; }
  .process__kanji { display: none; }
  .cta { padding: 40px 28px; }

  .contacts { grid-template-columns: 1fr; gap: 64px; }
  .contacts__form-wrap { padding: 44px 24px; }
  .contacts__seal { top: -30px; left: auto; right: 24px; width: 60px; height: 60px; font-size: 30px; }
  .contacts__list dd { font-size: 23px; }

  .section__head { margin-bottom: 48px; }
}
