/* ================================================
   MY Tattoo Studio — style.css
   Версія: 3.0 | Оптимізовано для швидкості та мобільних
   Структура:
   1.  Base / Reset
   2.  Header / Navigation
   3.  Burger Menu
   4.  Menu
   5.  Promo Line
   6.  Installments Block
   7.  Hero / Main Banner
   8.  Section Helpers
   9.  About / Info Section
   10. Works / Gallery Cards
   11. Promo Badges & Popups
   12. Contacts / Form
   13. Footer
   14. Responsive — Tablet (max 1020px)
   15. Responsive — Mobile (max 768px)
   16. Responsive — Small Mobile (max 450px)
================================================ */


/* ================================================
   1. BASE / RESET
================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
  font-style: normal;
  overflow-x: hidden;
  overflow-y: scroll;
  background-color: #000;
  color: #fff;
  /* Запобігає "білій лінії" у Safari */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: 70px; /* мобільна шапка */
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

/* запобігає smear у Safari при parallax */
@supports (-webkit-touch-callout: none) {
  .main-bg {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }
}

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

a {
  text-decoration: none;
}


/* ================================================
   2. HEADER / NAVIGATION
================================================ */
.naw-bar-style {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #fff;
  z-index: 3000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* flex-wrap заблоковано — шапка в один рядок */
  flex-wrap: nowrap !important;
}

.nav-inner {
  width: 100%;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  color: #000;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #000;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Underline hover для nav-лінків */
.nav-link-style {
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  padding: 6px 0;
  font-size: 15px;
  white-space: nowrap;
}

.nav-link-style::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #9b0202;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.nav-link-style:hover::after,
.nav-link-style:focus-visible::after {
  transform: translateY(0);
}

.nav-link-style:hover {
  color: #9b0202;
}

/* CTA кнопка в шапці */
.active-button {
  text-transform: uppercase;
  background-color: #fff;
  color: #000;
  padding: 9px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
  border: 2px solid #000;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.active-button:hover {
  color: #fff;
  border-color: #9b0202;
  background-color: #9b0202;
}


/* ================================================
   3. BURGER MENU
================================================ */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
  /* Збільшуємо touch target */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.burger-line {
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger.active .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active .burger-line:nth-child(2) {
  opacity: 0;
}
.burger.active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}


/* ================================================
   4. MENU
================================================ */
.menu {
  display: flex;
  gap: 18px;
  align-items: center;
}


/* ================================================
   5. PROMO LINE
================================================ */
.promo-line {
  background: linear-gradient(90deg, #8b0000 0%, #b30000 50%, #8b0000 100%);
  background-size: 200% 100%;
  color: #fff;
  padding: 9px 48px 9px 16px;   /* right padding for close btn */
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  position: relative;
  z-index: 2500;      /* ← нижче хедера (3000), вище всього іншого */
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  line-height: 1.5;
  transition: top 0.3s ease;
}

.promo-line.hidden {
  display: none;
}

.promo-line-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
}

.promo-line-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.promo-line-sep {
  color: rgba(255,255,255,0.35);
}

.promo-line strong {
  color: #ffe9a6;
}

.promo-line-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  padding: 0;
}

.promo-line-close:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.promo-line-btn {
  display: inline-block;
  margin-left: 4px;
  background: #fff;
  color: #c10000;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 2px solid #fff;
  font-size: 13px;
  vertical-align: middle;
}

.promo-line-btn:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}


/* ================================================
   6. INSTALLMENTS BLOCK
================================================ */
.installments-block {
  background: #fff;
  padding: 6px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.installments-img {
  max-width: 100%;
  width: 320px;
  height: auto;
  margin: 0 auto;
}

.payment-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.payment-inline-logo {
  width: 24px;
  height: auto;
  flex-shrink: 0;
}

/* Бейдж "покупка частинами" у формі */
.payment-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  color: #ddd;
}

/* Чіпи знижок */
.discount-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.discount-chip {
  display: inline-block;
  background: rgba(179, 0, 0, 0.15);
  border: 1px solid rgba(179, 0, 0, 0.4);
  color: #ff6060;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

.nowrap {
  white-space: nowrap;
}


/* ================================================
   7. HERO / MAIN BANNER
================================================ */
.main-bg {
  position: relative;
  width: 100%;
  min-height: 100svh;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  overflow: hidden;
}

@supports not (min-height: 100svh) {
  .main-bg {
    min-height: 100vh;
  }
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.3) 0%,
    rgba(0,0,0,.5) 40%,
    rgba(0,0,0,.82) 100%
  );
  z-index: 1;
}

.main-bg > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Текст поверх hero */
.main-text {
  position: relative;
  z-index: 1;
  margin-left: 5%;
  max-width: 680px;
  padding: 0 24px;
}

.main-text h1 {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.main-text p {
  color: #ddd;
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  line-height: 1.65;
  margin-bottom: 28px;
}

/* Hero кнопка */
.btn-red {
  display: inline-block;
  padding: 14px 36px;
  background-color: #8b0000;
  color: #fff;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 1.5px;
  border: none;
  border-radius: 3px;
  transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  /* Touch-friendly */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn-red:hover {
  background-color: #a80000;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.btn-red:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}


/* ================================================
   8. SECTION HELPERS
================================================ */
.section-eyebrow {
  text-transform: uppercase;
  color: #888;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
}

.section-title-light {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
}

.section-body {
  color: #ccc;
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 24px;
}


/* ================================================
   9. ABOUT / INFO SECTION
================================================ */
.info-tattoo-section {
  background-color: #111;
  display: flex;
  align-items: center;
}

.info-tattoo {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
}

.img-master {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
  max-width: 500px;
  border-radius: 8px;
  /* Запобігає layout shift */
  aspect-ratio: 5 / 6;
}

.btn-contact-outline {
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

/* ================================================
   CERTIFICATES STRIP
================================================ */
.certs-strip {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid #1e1e1e;
}

.certs-header {
  text-align: center;
  margin-bottom: 36px;
}

.certs-eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #b30000;
  margin-bottom: 8px;
}

.certs-title {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}

/* ── Individual cert card ── */
.cert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cert-frame {
  position: relative;
  width: 100%;
  border-radius: 6px;
  border: 10px solid #111;
  box-shadow:
    inset 0 0 0 2px #2a2a2a,
    0 0 0 1px #0a0a0a,
    0 20px 60px rgba(0,0,0,0.7),
    0 4px 16px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: zoom-in;
  display: block;
  text-decoration: none;
}

.cert-frame:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow:
    inset 0 0 0 2px #333,
    0 0 0 1px #111,
    0 32px 80px rgba(0,0,0,0.75),
    0 8px 24px rgba(0,0,0,0.5);
}

/* Іконка лупи при наведенні */
.cert-zoom-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: 2.2rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.cert-frame:hover .cert-zoom-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cert-frame:hover .cert-img {
  filter: brightness(0.65);
  transition: filter 0.35s ease;
}

/* Glare / shine overlay */
.cert-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.07) 0%,
    rgba(255,255,255,0) 50%,
    rgba(255,255,255,0.03) 100%
  );
  pointer-events: none;
}

.cert-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ── Caption ── */
.cert-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.cert-caption-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ddd;
  font-style: italic;
}

.cert-caption-sub {
  font-size: 0.72rem;
  color: #555;
  letter-spacing: 0.03em;
}

@media (max-width: 576px) {
  .certs-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 380px;
  }

  .cert-frame {
    border-width: 8px;
  }
}

.btn-contact-outline:hover {
  background-color: #b30000 !important;
  border-color: #b30000 !important;
  color: #fff !important;
}


/* ================================================
   10. WORKS / GALLERY CARDS
================================================ */
/* Лінк-обгортка карток — рівна висота в ряді */
.stagger-item > a {
  display: block;
  height: 100%;
}

.work-tattoo-section {
  background: #0a0a0a;
  display: flex;
  align-items: center;
}

.tattoo-card {
  background-color: #151515;
  border: none;
  overflow: hidden;
  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
  border-radius: 4px;
  height: 100%;
  display: flex;
  flex-direction: column;
  /* GPU composite для плавної анімації */
  will-change: transform;
}

.tattoo-card:hover {
  transform: translateY(-5px);
}

.tattoo-card--promo {
  border: 2px solid #c10000;
  box-shadow: 0 0 14px rgba(193, 0, 0, 0.35);
}

.tattoo-card--promo:hover {
  box-shadow: 0 0 22px rgba(193, 0, 0, 0.55);
}

.tattoo-img {
  overflow: hidden;
}

.tattoo-img img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  display: block;
}

.tattoo-card:hover .tattoo-img img {
  transform: scale(1.06);
  filter: brightness(0.6);
}

.tattoo-content {
  padding: 16px 18px;
  background-color: #111;
  transition: background-color 0.3s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tattoo-card:hover .tattoo-content {
  background-color: #1a1a1a;
}

.tattoo-title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 6px;
  transition: color 0.3s ease;
  color: #fff;
}

.tattoo-card:hover .tattoo-title {
  color: #b30000;
}

.tattoo-content p {
  margin: 0;
  color: #999;
  font-size: 0.88rem;
}

.card-promo-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: #c10000;
  margin-top: 8px !important;
  line-height: 1.4;
}
.card-promo-badge:empty,
.card-promo-badge[data-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}


/* ================================================
   11. PROMO BADGES & POPUPS
================================================ */
.promo-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ff3b3b, #b30000);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  z-index: 2;
  letter-spacing: 0.3px;
  line-height: 1.3;
  max-width: calc(100% - 16px);
}

.discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #ff3b3b, #b30000);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.promo-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 20px;
}

.promo-popup.show {
  opacity: 1;
  visibility: visible;
}

.promo-content {
  background: #fff;
  color: #000;
  padding: 28px 32px;
  border-radius: 12px;
  text-align: center;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  animation: popupSlide 0.5s ease;
}

.promo-content h3 {
  margin-bottom: 10px;
  font-weight: 800;
}

@keyframes popupSlide {
  from { transform: translateY(-30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.promo-btn {
  margin-top: 15px;
  background: #b30000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.25s;
  font-size: 14px;
  font-weight: 600;
}

.promo-btn:hover {
  background: #e03030;
}


/* ================================================
   12. CONTACTS / FORM
================================================ */
.contact-section {
  padding: 64px 0;
}

.map-wrapper {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.form-control {
  background: #1a1a1a;
  border: 1px solid #2e2e2e;
  color: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  background: #1e1e1e;
  border-color: #b30000;
  box-shadow: 0 0 0 3px rgba(179,0,0,0.14);
  color: #fff;
  outline: none;
}

.form-control::placeholder {
  color: #4a4a4a;
}

label {
  font-weight: 600;
  font-size: 0.875rem;
  color: #ddd;
}

.btn-red-form {
  background-color: #b30000;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1.2px;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-size: 0.92rem;
  font-family: 'Poppins', sans-serif;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
  width: 100%;
  cursor: pointer;
  min-height: 50px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  box-shadow: 0 4px 18px rgba(179,0,0,0.28);
}

.btn-red-form:hover {
  background-color: #d40000;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(179,0,0,0.38);
}

.btn-red-form:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(179,0,0,0.2);
}

/* ── Contact cards box ── */
.contact-cards-box {
  background: #0f0f0f;
  border: 1px solid #1e1e1e;
  border-radius: 16px;
  overflow: hidden;
}

.contact-cards-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #444;
  padding: 16px 20px 10px;
}

.contact-cards-list {
  display: flex;
  flex-direction: column;
}

.contact-card-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  border-top: 1px solid #161616;
  transition: background 0.2s;
  cursor: pointer;
  position: relative;
}

.contact-card-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #b30000;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 0 2px 2px 0;
}

a.contact-card-row:hover {
  background: #141414;
}

a.contact-card-row:hover::before {
  opacity: 1;
}

.contact-card-row.no-link {
  cursor: default;
}

.contact-card-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.contact-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.contact-card-lbl {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
}

.contact-card-val {
  font-size: 0.88rem;
  color: #ccc;
  line-height: 1.45;
  word-break: break-word;
}

a.contact-card-row:hover .contact-card-val {
  color: #fff;
}

.contact-card-arrow {
  font-size: 1rem;
  color: #333;
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}

a.contact-card-row:hover .contact-card-arrow {
  color: #b30000;
  transform: translateX(2px) translateY(-2px);
}

/* Адреса з copy */
.text-accent {
  color: #d3d3d3;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: color 0.3s ease;
  font-size: 15px;
}

.text-accent:hover {
  color: #ff4d4d;
}

.copy-container {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.copyable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-notice {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 5px);
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 10;
}

.copy-notice.show {
  opacity: 1;
  transform: translate(-50%, 12px);
}

.highlight-address {
  color: #ff4040;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(255, 64, 64, 0.3);
}

.highlight-sale {
  color: #ff4040;
  font-weight: 700;
}

.fixed-textarea {
  resize: none;
  height: 130px;
  max-height: 130px;
  overflow-y: auto;
  overflow-x: hidden;
  line-height: 1.5;
}

.fixed-textarea::-webkit-scrollbar { width: 6px; }
.fixed-textarea::-webkit-scrollbar-thumb { background: #555; border-radius: 6px; }
.fixed-textarea::-webkit-scrollbar-thumb:hover { background: #777; }

/* ── Чіп-чекбокси способу зв'язку (chip style) ── */
.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.contact-chip {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.contact-chip input[type="checkbox"] { display: none; }

.contact-chip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1px solid #2e2e2e;
  border-radius: 20px;
  font-size: 0.82rem;
  color: #888;
  background: #1a1a1a;
  transition: all 0.2s;
  user-select: none;
  min-height: 36px;
}

.contact-chip input:checked + span {
  background: rgba(179,0,0,0.16);
  border-color: #b30000;
  color: #fff;
}

.contact-chip span:hover { border-color: #444; color: #ccc; }

.icon-social {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  flex-shrink: 0;
}


/* ================================================
   13. FOOTER
================================================ */
.footer {
  background: linear-gradient(180deg, #0f0f0f 0%, #080808 100%);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: #888;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
}

.footer-link {
  color: #ccc;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-link:hover { opacity: 0.7; }

.footer-separator { color: #444; }
.footer-rights { color: #666; }

/* ================================================
   GLIGHTBOX — стиль опису для сертифікатів
================================================ */
.glightbox-container .gdesc-inner {
  background: rgba(0, 0, 0, 0.82) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  padding: 14px 24px 16px !important;
  text-align: center;
}

.glightbox-container .gslide-title {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin-bottom: 4px !important;
  letter-spacing: 0.02em;
}

.glightbox-container .gslide-description p,
.glightbox-container .gslide-desc {
  font-size: 0.78rem !important;
  color: #888 !important;
  margin: 0 !important;
  letter-spacing: 0.03em;
}

/* Стрілки навігації */
.glightbox-container .gnext,
.glightbox-container .gprev {
  background: rgba(0,0,0,0.5) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 50% !important;
  width: 44px !important;
  height: 44px !important;
  backdrop-filter: blur(8px);
}

.glightbox-container .gnext:hover,
.glightbox-container .gprev:hover {
  background: rgba(179,0,0,0.6) !important;
  border-color: rgba(179,0,0,0.4) !important;
}

/* Кнопка закриття */
.glightbox-container .gclose {
  background: rgba(0,0,0,0.5) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  border-radius: 50% !important;
  backdrop-filter: blur(8px);
}

.glightbox-container .gclose:hover {
  background: rgba(179,0,0,0.6) !important;
}


/* ================================================
   14. RESPONSIVE — TABLET (max 1020px)
================================================ */
@media (max-width: 1020px) {
  .info-tattoo {
    flex-direction: column;
    text-align: center;
  }
  .img-master {
    margin-bottom: 28px;
    max-width: 420px;
  }
}


/* ================================================
   14.5. RESPONSIVE — TABLET (769px – 900px)
   Планшети: iPad mini 744, iPad 9/10 768-820, Air 820, Pro 11" 834
================================================ */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Hero трохи менший */
  .main-text h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  /* Картки послуг — 2 колонки замість 3 */
  .tattoo-card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* How it works — 2 колонки */
  .how-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Контакти — 2 колонки вже від 769px (без col-lg обмежень) */
  #contact-row > .col-12:first-child {
    flex: 0 0 41.6667%;
    max-width: 41.6667%;
  }
  #contact-row > .col-12:last-child {
    flex: 0 0 58.3333%;
    max-width: 58.3333%;
  }
}

/* ================================================
   15. RESPONSIVE — MOBILE (max 900px)
================================================ */
@media (max-width: 900px) {

  /* Body offset — менша шапка */
  body {
    padding-top: 60px;
  }

  /* Header */
  .naw-bar-style {
    height: 60px;
  }

  /* Burger показуємо */
  .burger {
    display: flex;
  }

  /* Dropdown меню */
  .menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-top: 1px solid #eee;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    max-height: 0;
    overflow: hidden;
    /* Тінь при відкритті */
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }

  .menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: 400px;
  }

  .menu a {
    padding: 14px 20px;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    font-size: 15px;
    display: block;
  }

  .menu a:last-child {
    border-bottom: none;
  }

  /* Кнопка "Записатись" — без рамки у меню */
  .active-button {
    border: none;
    background: #9b0202;
    color: #fff;
    font-size: 15px;
    width: 100%;
    padding: 14px 20px;
  }

  /* Nav inner */
  .nav-inner {
    padding: 0 16px;
  }
}

/* ================================================
   15b. RESPONSIVE — MOBILE only (max 768px)
================================================ */
@media (max-width: 768px) {

  /* Hero */
  .main-bg {
    background-position: 45% center;
    justify-content: center;
    min-height: 100svh;
  }

  .main-text {
    margin-left: 0;
    text-align: center;
    padding: 24px 20px;
    max-width: 100%;
  }

  .main-text h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .main-text p {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
  }

  .btn-red {
    padding: 14px 28px;
    font-size: 14px;
    display: block;
    text-align: center;
  }

  /* Картки — горизонтальні рядки на мобільному */
  .tattoo-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 90px;
    transform: none !important;
  }
  .tattoo-img {
    width: 110px;
    min-width: 110px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
  }
  .tattoo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .tattoo-card:hover .tattoo-img img {
    transform: scale(1.04);
  }
  .tattoo-content {
    flex: 1;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }
  .tattoo-title {
    font-size: 0.92rem;
    margin-bottom: 3px;
  }
  .tattoo-content p {
    font-size: 0.78rem;
  }
  .promo-badge {
    font-size: 9px;
    padding: 3px 6px;
    top: 6px;
    left: 6px;
    line-height: 1.4;
  }

  /* Майстер — менша висота */
  .img-master {
    max-height: 380px;
    object-fit: cover;
    width: 100%;
    max-width: 100%;
  }

  /* Promo line — компактніше на мобілці */
  .promo-line {
    font-size: 12px;
    padding: 8px 40px 8px 10px;
  }

  .promo-line-badge {
    display: none;   /* ховаємо на маленьких екранах щоб не ламати рядок */
  }

  .promo-line-sep {
    display: none;
  }

  .promo-line-inner {
    gap: 4px 8px;
  }

  .promo-line-btn {
    margin-left: 8px;
  }

  /* Installments */
  .installments-img {
    width: 240px;
  }

  /* Contacts */
  .contact-section {
    padding: 48px 0;
  }

  .contact-card-row {
    padding: 12px 16px;
    gap: 12px;
  }

  .contact-card-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .payment-badge {
    font-size: 13px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
}


/* ================================================
   16. RESPONSIVE — SMALL MOBILE (max 380px)
================================================ */
@media (max-width: 380px) {
  .logo {
    font-size: 18px;
  }

  .main-text h1 {
    font-size: 1.75rem;
  }

  .main-text p {
    font-size: 0.9rem;
  }

  .tattoo-img img {
    height: 130px;
  }

  .promo-badge {
    font-size: 10px;
    padding: 4px 7px;
  }

  .discount-chip {
    font-size: 12px;
    padding: 4px 10px;
  }

  .contact-options {
    gap: 8px;
  }
}

/* ================================================
   ANIMATIONS
================================================ */

/* Hero entrance */
.main-text {
  animation: heroEntrance 0.85s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: 0.05s;
}

@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header compact on scroll */
.naw-bar-style.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

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

/* Reveal fade-left variant */
.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger items */
.stagger-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .stagger-item, .main-text {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}


/* ================================================
   HOW IT WORKS
================================================ */
.how-section {
  background: #0d0d0d;
  border-top: 1px solid #1a1a1a;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.how-step {
  background: #141414;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: border-color 0.2s;
}
.how-step:hover { border-color: #333; }

.how-num {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #e53935;
  letter-spacing: 0.08em;
}

.how-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.how-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.how-desc {
  font-size: 0.88rem;
  color: #999;
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .how-steps {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
}


/* ================================================
   REVIEWS / TESTIMONIALS
================================================ */
.reviews-section {
  background: #111;
  border-top: 1px solid #1a1a1a;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.review-card {
  background: #141414;
  border: 1px solid #222;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s;
}
.review-card:hover { border-color: #333; }

.review-stars {
  color: #f5a623;
  font-size: 1rem;
  letter-spacing: 2px;
}

.review-text {
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid #1e1e1e;
  padding-top: 0.85rem;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.review-meta {
  font-size: 0.75rem;
  color: #666;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}


/* ================================================
   STICKY CTA (mobile only)
================================================ */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  padding: 12px 16px;
  background: linear-gradient(0deg, #000 70%, transparent);
  pointer-events: none;
}

.sticky-cta.hidden { display: none !important; }

.sticky-cta-btn {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #b30000;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(179,0,0,0.5);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background 0.2s, transform 0.15s;
}
.sticky-cta-btn:hover { background: #d40000; }
.sticky-cta-btn:active { transform: scale(0.98); }

@media (max-width: 768px) {
  .sticky-cta { display: block; }
}


/* ================================================
   Desktop ≥ 769px — menu завжди видимий
================================================ */
@media (min-width: 769px) {
  body {
    padding-top: 70px;
  }

  .naw-bar-style {
    height: 70px;
  }

  .logo {
    font-size: 22px;
  }

  .menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
  }

  .tattoo-img img {
    height: 220px;
  }
}

/* ================================================
   Desktop ≥ 1200px
================================================ */
@media (min-width: 1200px) {
  .main-text {
    margin-left: 4%;
    max-width: 720px;
  }
}

/* ================================================
   FLOATING TELEGRAM BUTTON
   ================================================ */
.float-tg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #0088cc;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 136, 204, 0.45);
  z-index: 8000;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.float-tg:hover {
  transform: translateY(-4px) scale(1.07);
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.6);
}

.float-tg svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@media (max-width: 768px) {
  .float-tg {
    bottom: 80px;
    right: 14px;
    width: 46px;
    height: 46px;
  }
  .float-tg svg {
    width: 22px;
    height: 22px;
  }
}

/* ================================================
   FAQ SECTION
   ================================================ */
.faq-section {
  background: #111;
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px !important;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-button {
  background: #1a1a1a !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 18px 20px;
  box-shadow: none !important;
}

.faq-button:not(.collapsed) {
  background: #1a1a1a !important;
  color: #c10000 !important;
}

.faq-button::after {
  filter: invert(1);
}

.faq-body {
  background: #1a1a1a;
  color: #ccc;
  padding: 4px 20px 20px;
  line-height: 1.7;
}

.faq-list {
  padding-left: 20px;
  margin: 0;
}

.faq-list li {
  margin-bottom: 6px;
}

.faq-link {
  color: #c10000;
  text-decoration: underline;
}

/* FAQ card in services grid */
.tattoo-card--faq {
  min-height: 180px;
  border: 1px solid #2a2a2a;
}

.tattoo-content--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  min-height: 180px;
  height: 100%;
}

.faq-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #c10000;
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

/* Mobile: faq/news cards — горизонтальний layout як у решти карток */
@media (max-width: 768px) {
  .tattoo-card.tattoo-card--faq {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    height: 90px;
    min-height: unset;
  }

  .tattoo-card--faq .tattoo-content--centered {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left;
    padding: 0 16px;
    gap: 14px;
    min-height: unset;
    width: 100%;
    height: 100%;
  }

  .tattoo-card--faq .faq-card-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    font-size: 1.4rem;
    margin-bottom: 0;
    align-self: center;
  }

  .faq-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .tattoo-card--faq .tattoo-title {
    font-size: 0.92rem;
    margin-bottom: 2px;
  }

  .tattoo-card--faq p {
    font-size: 0.78rem;
    margin: 0;
    color: #aaa;
  }
}

/* ================================================
   BLOG TEASER SECTION
   ================================================ */
.blog-teaser-section {
  background: #0a0a0a;
}

.blog-teaser-card {
  background: #161616;
  border: 1px solid #222;
  border-radius: 10px;
  padding: 28px 24px;
  height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.blog-teaser-card:hover {
  border-color: #c10000;
  transform: translateY(-4px);
}

.blog-teaser-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c10000;
  margin-bottom: 10px;
}

.blog-teaser-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-teaser-desc {
  font-size: 0.88rem;
  color: #888;
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-teaser-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.blog-teaser-date {
  font-size: 0.78rem;
  color: #555;
}

.blog-teaser-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c10000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Seasonal emoji — не переносити на новий рядок ── */
.seasonal-deco {
  display: inline;
  white-space: nowrap;
}

h1 .seasonal-deco,
h2 .seasonal-deco {
  font-style: normal;
}

/* Заголовок секції — emoji тримаємо на одному рядку */
.section-title,
.section-title-light {
  overflow-wrap: break-word;
}

/* ── CTA-кнопки між секціями ── */
.section-cta-wrap {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 32px 16px;
  background: #000;
}

.section-cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: #8b0000;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
  border: 2px solid #8b0000;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}

.section-cta-btn:hover {
  background: #b30000;
  border-color: #b30000;
  color: #fff !important;
  transform: translateY(-2px);
}

.section-cta-btn--outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.35);
}

.section-cta-btn--outline:hover {
  background: transparent;
  border-color: #b30000;
  color: #fff !important;
}
