/* ================================================
   MY Tattoo Studio — shared.css
   Спільні стилі для всіх підсторінок.
   index.html використовує style.css окремо.
   ================================================ */


/* ================================================
   1. BASE
   ================================================ */
*, *::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;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #000;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  padding-top: 70px;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
}

.letter-spacing {
  letter-spacing: 0.08em;
}


/* ================================================
   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: 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;
}

.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;
}

.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;
}

.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;
  -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);
}

.menu {
  display: flex;
  gap: 18px;
  align-items: center;
}

@media (max-width: 900px) {
  body {
    padding-top: 60px;
  }

  .naw-bar-style {
    height: 60px;
    min-height: 60px;
  }

  .burger {
    display: flex;
  }

  .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;
  }
}


/* ================================================
   3. 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;
  display: block;
}


/* ================================================
   4. PROMO LINE
   ================================================ */
.promo-line {
  background: #c10000;
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  line-height: 1.5;
}

.promo-line p {
  margin: 0;
}

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

.promo-line-btn {
  display: inline-block;
  margin-left: 12px;
  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;
}


/* ================================================
   5. PROMO POPUP
   ================================================ */
.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: none;
  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: none;
}

.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;
}


/* ================================================
   6. PRELOADER
   ================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-icon {
  text-align: center;
  color: #fff;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #b30000;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.preloader p {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  opacity: 0.9;
}


/* ================================================
   7. SOCIAL BUTTONS
   ================================================ */
.btn-social {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-social.telegram {
  background: #0088cc;
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 136, 204, 0.3);
}

.btn-social.telegram:hover {
  background: #00aaff;
  box-shadow: 0 0 22px rgba(0, 136, 204, 0.5);
  transform: translateY(-3px);
}

.btn-social.instagram {
  background: linear-gradient(45deg, #f09433, #bc1888);
  color: #fff;
  box-shadow: 0 0 15px rgba(240, 148, 51, 0.3);
}

.btn-social.instagram:hover {
  opacity: 0.95;
  transform: translateY(-3px);
  box-shadow: 0 0 22px rgba(188, 24, 136, 0.5);
}


/* ================================================
   8. CONSULT BLOCK + BTN-BOOK
   ================================================ */
.consult-block {
  background: linear-gradient(145deg, #111, #0c0c0c);
  padding: 40px 30px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.05);
  margin-top: 60px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.consult-block:hover {
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.07);
  transform: translateY(-3px);
}

.consult-block p {
  font-size: 1.1rem;
  color: #ddd;
  margin-bottom: 8px;
}

.btn-book {
  display: inline-block;
  background: #b30000;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.6px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-book:hover {
  background: #a00000;
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(179, 0, 0, 0.4);
}


/* ================================================
   9. 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; }


/* ================================================
   10. 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: 18px;
    right: 14px;
    width: 46px;
    height: 46px;
  }
  .float-tg svg {
    width: 22px;
    height: 22px;
  }
}


/* ================================================
   10. ANIMATIONS
   ================================================ */

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  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);
}

/* Stagger */
.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  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);
}

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


/* ================================================
   11. RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .installments-img {
    width: 240px;
  }

  .promo-line {
    font-size: 13px;
    padding: 8px 12px;
  }

  .promo-line-btn {
    display: block;
    margin: 8px auto 0;
    max-width: 160px;
  }

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

@media (max-width: 576px) {
  .btn-social {
    padding: 10px 22px;
    font-size: 0.9rem;
  }
}

/* ================================================
   Sticky CTA (мобіль — підсторінки)
   ================================================ */
.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: 900px) {
  .sticky-cta { display: block; }
}
