/* =============================================
   SALON VERA — Mobile-first (390 × 844)
   Nadpisuje style.css i hero.css
   ============================================= */

/* ============================================
   ZMIENNE MOBILNE
   ============================================= */
@media (max-width: 500px) {
  :root {
    --section-pad-mobile: 3rem;
  }

  html { font-size: 15px; }

  /* ---- Kontenery ---- */
  .container { padding: 0 1.1rem; }
  .section-pad { padding: var(--section-pad-mobile) 0; }

  /* ---- Typografia ---- */
  .section-label  { font-size: 0.7rem; letter-spacing: 0.22em; }
  .section-title  { font-size: 1.75rem; line-height: 1.2; margin-bottom: 0.75rem; }
  .section-subtitle { font-size: 0.9rem; margin-bottom: 2rem; }

  /* ---- Przyciski ---- */
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.82rem;
  }
  .btn-pulse { animation: none; } /* wyłącz pulse na mobile - oszczędność baterii */

  /* ============================================
     NAWIGACJA
     ============================================= */
  .navbar {
    padding: 0.9rem 1.1rem;
  }
  .navbar.scrolled { padding: 0.75rem 1.1rem; }

  .navbar-logo img { height: 38px; }
  .navbar-logo-text { font-size: 1.15rem; }
  .navbar-links { display: none !important; }
  .hamburger { display: flex; }

  /* Mobilne menu pełnoekranowe */
  .mobile-menu {
    gap: 1.6rem;
    padding: 2rem 1.5rem;
  }
  .mobile-menu a {
    font-size: 1.6rem;
  }
  .mobile-menu .btn {
    font-size: 0.9rem;
    padding: 0.85rem 2rem;
    margin-top: 0.5rem;
  }

  /* ============================================
     HERO (390px)
     ============================================= */
  .hero {
    height: 100svh;
    min-height: 680px;
    align-items: flex-end;
    padding-bottom: 5rem;
  }

  /* Ukryj prawą stronę (zdjęcia) */
  .hero-right { display: none !important; }

  /* Ukryj narożniki i watermark */
  .hero-corner   { display: none !important; }
  .hero-watermark { display: none !important; }

  /* Grid: tylko lewa kolumna */
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 0 1.1rem;
    gap: 0;
    align-items: flex-end;
  }

  .hero-left { width: 100%; }

  /* Odznaka */
  .hero-badge {
    margin-bottom: 1.1rem;
    padding: 0.35rem 0.85rem;
  }
  .hero-badge span { font-size: 0.65rem; letter-spacing: 0.18em; }

  /* Nagłówek */
  .hero h1 {
    font-size: 2.15rem;
    line-height: 1.12;
    margin-bottom: 0.9rem;
  }

  /* Linia pod h1 */
  .hero-title-line { margin-bottom: 0.9rem; width: 45px; }

  /* Podtytuł */
  .hero p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.6rem;
    max-width: 100%;
    color: rgba(255,255,255,0.6);
  }

  /* Przyciski hero — pełna szerokość */
  .hero-buttons {
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 0;
    width: 100%;
  }
  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
  }

  /* Statystyki */
  .hero-stats {
    margin-top: 1.75rem;
    padding-top: 1.4rem;
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .hero-stat {
    flex: 1;
    padding: 0 0.6rem;
    text-align: center;
  }
  .hero-stat:first-child { padding-left: 0; }
  .hero-stat:last-child  { padding-right: 0; }
  .hero-stat-number {
    font-size: 1.45rem;
    line-height: 1;
  }
  .hero-stat-label {
    font-size: 0.62rem;
    margin-top: 0.25rem;
    line-height: 1.3;
  }

  /* Scroll indicator */
  .scroll-indicator { bottom: 1.2rem; }

  /* Tło hero na mobile — uproszczone */
  .hero-pattern { opacity: 0.6; }
  .hero-pattern-diag { opacity: 0.4; }

  /* ============================================
     O NAS
     ============================================= */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Zdjęcia: kompaktowe na mobile */
  .about-images {
    height: 260px;
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
  }
  .about-img-main {
    width: 70%;
    height: 100%;
    border-radius: 10px;
  }
  .about-img-secondary {
    width: 48%;
    height: 58%;
    border: 3px solid var(--cream);
    border-radius: 10px;
  }
  .about-badge {
    padding: 0.8rem 1rem;
    border-radius: 10px;
  }
  .about-badge-num { font-size: 1.4rem; }
  .about-badge-text { font-size: 0.65rem; }

  .about-text .section-title  { font-size: 1.65rem; }
  .about-text .section-subtitle { font-size: 0.88rem; }

  .about-features { gap: 1rem; }
  .about-feature-icon {
    width: 38px; height: 38px;
    font-size: 0.95rem;
    border-radius: 8px;
  }
  .about-feature-title { font-size: 0.88rem; }
  .about-feature-desc  { font-size: 0.8rem; }

  .about-text .btn { width: 100%; justify-content: center; }

  /* ============================================
     USŁUGI (preview na index)
     ============================================= */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card { padding: 1.5rem 1.25rem; border-radius: 12px; }
  .service-card-icon  { font-size: 2rem; margin-bottom: 0.75rem; }
  .service-card-title { font-size: 1.1rem; margin-bottom: 0.5rem; }
  .service-card-desc  { font-size: 0.82rem; margin-bottom: 0.75rem; }
  .service-card-price { font-size: 0.85rem; }

  .services-preview > .container > .btn {
    width: 100%;
    justify-content: center;
  }

  /* ============================================
     GALERIA (preview)
     ============================================= */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .gallery-item { border-radius: 10px; }

  .gallery-preview > .container > .btn {
    width: 100%;
    justify-content: center;
  }

  /* ============================================
     REZERWACJA
     ============================================= */
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .booking-text .section-title { font-size: 1.65rem; }
  .booking-text .section-subtitle { font-size: 0.88rem; }

  .booking-options { gap: 0.85rem; }

  .booking-option {
    padding: 1.1rem 1rem;
    border-radius: 12px;
    gap: 1rem;
  }
  .booking-option:hover { transform: none; } /* brak hover na dotyk */

  .booking-option-icon {
    width: 46px; height: 46px;
    border-radius: 11px;
    font-size: 1.15rem;
    flex-shrink: 0;
  }
  .booking-option-title { font-size: 0.88rem; }
  .booking-option-desc  { font-size: 0.75rem; }
  .booking-option-value { font-size: 0.92rem; }
  .booking-option-arrow { display: none; }

  /* ============================================
     OPINIE
     ============================================= */
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .reviews-rating {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.4rem;
    border-radius: 14px;
    margin-bottom: 1.75rem;
    max-width: 100%;
  }
  .reviews-score { font-size: 2.8rem; }
  .reviews-stars { font-size: 1.2rem; }

  .review-card { padding: 1.25rem; border-radius: 12px; }
  .review-text  { font-size: 0.85rem; }
  .review-author { font-size: 0.82rem; }

  .reviews > .container > .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  /* ============================================
     INFO STRIP
     ============================================= */
  .info-strip { padding: 2.5rem 0; }
  .info-strip-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .info-strip-item-icon  { font-size: 1.5rem; margin-bottom: 0.4rem; }
  .info-strip-item-label { font-size: 0.65rem; }
  .info-strip-item-value { font-size: 0.92rem; }

  /* Rozdzielacze między elementami */
  .info-strip-grid > div:not(:last-child) {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  /* ============================================
     FOOTER
     ============================================= */
  footer { padding: 2.5rem 0 1.25rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-logo img { height: 36px; }
  .footer-logo-name { font-size: 1.1rem; }
  .footer-desc { font-size: 0.82rem; }

  .footer-col-title { font-size: 0.68rem; margin-bottom: 0.85rem; }
  .footer-links a  { font-size: 0.85rem; }

  .footer-hours { gap: 0.4rem; }
  .footer-hour-row { font-size: 0.82rem; }

  .footer-divider { margin-bottom: 1.1rem; }
  .footer-bottom {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
    font-size: 0.75rem;
  }
}

/* ============================================
   PODSTRONY — PAGE HERO na mobile
   ============================================= */
@media (max-width: 500px) {
  .page-hero {
    padding: 7.5rem 1.1rem 3rem;
    text-align: center;
  }
  .page-hero h1 { font-size: 2rem; }
  .page-hero p  { font-size: 0.88rem; }
  .breadcrumb {
    font-size: 0.72rem;
    top: 5rem;
    white-space: nowrap;
  }

  /* USŁUGI */
  .services-tabs {
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .cat-intro {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.25rem;
  }
  .cat-intro-icon  { font-size: 1.8rem; }
  .cat-intro-title { font-size: 1.1rem; }
  .cat-intro-desc  { font-size: 0.83rem; }

  /* Tabele cennikowe — przewijane poziomo */
  .price-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }
  .price-table {
    min-width: 460px;
    font-size: 0.82rem;
    border-radius: 12px;
  }
  .price-table thead th { padding: 0.85rem 1rem; font-size: 0.65rem; }
  .price-table td { padding: 0.85rem 1rem; font-size: 0.82rem; }
  .service-name { font-size: 0.85rem; }
  .service-desc { font-size: 0.74rem; }
  .badge-premium { font-size: 0.55rem; padding: 0.12rem 0.45rem; }

  .booking-cta {
    padding: 2rem 1.25rem;
    border-radius: 14px;
    margin-top: 2.5rem;
  }
  .booking-cta h3   { font-size: 1.4rem; }
  .booking-cta p    { font-size: 0.85rem; }
  .booking-cta-btns { flex-direction: column; }
  .booking-cta-btns .btn { width: 100%; justify-content: center; }

  /* GALERIA */
  .gallery-filter {
    gap: 0.5rem;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }
  .gallery-filter::-webkit-scrollbar { display: none; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; font-size: 0.78rem; padding: 0.45rem 1rem; }

  .gallery-full { columns: 2; column-gap: 0.6rem; }
  .gallery-full-item { margin-bottom: 0.6rem; border-radius: 10px; }
  .gallery-item-name { font-size: 0.78rem; }
  .gallery-item-cat  { font-size: 0.62rem; }

  /* KONTAKT */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-card {
    padding: 1.25rem;
    border-radius: 12px;
    gap: 1rem;
  }
  .contact-card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    font-size: 1.1rem;
  }
  .contact-card-label { font-size: 0.65rem; }
  .contact-card-value { font-size: 0.9rem; }
  .contact-card-sub   { font-size: 0.75rem; }

  .hours-card { padding: 1.4rem; border-radius: 14px; }
  .hours-card-title { font-size: 0.65rem; margin-bottom: 1rem; }
  .hours-row { font-size: 0.82rem; padding-bottom: 0.6rem; }

  .map-container { height: 240px; border-radius: 14px; }

  .booksy-widget-box { padding: 1.75rem 1.25rem; border-radius: 14px; }
  .booksy-widget-box h3  { font-size: 1.3rem; }
  .booksy-widget-box p   { font-size: 0.85rem; }
  .booksy-btns { gap: 0.6rem; }
  .booksy-btns .btn { width: 100%; justify-content: center; font-size: 0.82rem; }
}

/* ============================================
   WRAPPER dla tabel — dodaj do uslugi.html
   ============================================= */
@media (max-width: 500px) {
  /* Dodajemy wrapper przez CSS — tabele będą przewijane */
  .price-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .price-table thead,
  .price-table tbody,
  .price-table tr { display: table-row-group; }
  .price-table thead { display: table-header-group; }
  /* Przywróć normalne zachowanie tabeli w środku */
  .price-table {
    display: table;
    width: 100%;
    min-width: 420px;
  }

  /* Wrapper z overflow */
  .services-category {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================
   PŁYNNE PRZEJŚCIA — wyłącz hover-translate na dotykowych
   ============================================= */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .review-card:hover,
  .contact-card:hover,
  .about-feature:hover {
    transform: none;
    box-shadow: none;
  }
  .btn-gold:hover,
  .btn-dark:hover,
  .btn-outline:hover {
    transform: none;
  }
  .gallery-item:hover img { transform: none; }
  .gallery-full-item:hover img { transform: none; }
  .gallery-full-item:hover .gallery-full-item-overlay,
  .gallery-item:hover .gallery-item-overlay { opacity: 1; } /* zawsze widoczne na touch */
}

/* ============================================
   LANDSCAPE MOBILE (np. 844 × 390)
   ============================================= */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero {
    height: auto;
    min-height: 100svh;
    padding: 6rem 0 3rem;
    align-items: center;
  }
  .hero h1 { font-size: 1.8rem; }
  .hero p  { font-size: 0.85rem; margin-bottom: 1.2rem; }
  .hero-stats { margin-top: 1.25rem; padding-top: 1rem; }
  .scroll-indicator { display: none; }
}

/* =============================================
   OPINIE — SLIDER mobile (390px)
   ============================================= */
@media (max-width: 500px) {

  /* Sekcja */
  #reviews { background: #faf7f2; }
  #reviews .section-title { font-size: 1.6rem; }

  /* Rząd z oceną — pionowo na mobile */
  .reviews-score-row {
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
  }
  .reviews-score-box {
    padding: 1.1rem 2.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .reviews-score-num  { font-size: 2.4rem; }
  .reviews-score-stars { font-size: 1.2rem; letter-spacing: 0.1em; }
  .reviews-score-sub  { font-size: 0.75rem; }
  .reviews-score-live {
    font-size: 0.72rem;
    justify-content: center;
  }

  /* Slider wrapper — bez bocznych strzałek */
  .rev-slider {
    gap: 0;
    position: relative;
  }

  /* Strzałki: małe, poniżej kart (nie po bokach) — mobile layout */
  .rev-arrow {
    display: none; /* schowane — zastąpione dolnymi guzikami */
  }

  /* Track wrapper — scroll-snap na mobile */
  .rev-track-wrap {
    overflow-x: scroll !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;       /* Firefox */
    border-radius: 14px;
    width: 100%;
  }
  .rev-track-wrap::-webkit-scrollbar { display: none; } /* Chrome/Safari */

  /* Track — żadnego transform, żadnego gap */
  .rev-track {
    gap: 0 !important;
    transition: none !important; /* wyłącz animacje transform na mobile */
    cursor: default !important;
  }

  /* Karta snapuje do lewej krawędzi */
  .rev-card {
    scroll-snap-align: start;
  }

  /* Karta — mobile */
  .rev-card {
    padding: 1.4rem 1.25rem 1.25rem;
    border-radius: 14px;
    border: 1.5px solid transparent;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  }
  .rev-card.active {
    border-color: rgba(201,169,110,0.3);
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
  }
  .rev-card-stars {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
    color: #f5a623;
  }
  .rev-card-text {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.1rem;
    color: #2c2c2c;
  }
  .rev-card-footer { gap: 0.7rem; }
  .rev-card-avatar {
    width: 34px; height: 34px;
    font-size: 0.82rem;
    border-radius: 50%;
  }
  .rev-card-author { font-size: 0.85rem; }
  .rev-card-date   { font-size: 0.7rem; }
  .rev-card-source { font-size: 0.65rem; }

  /* Dots — większe na mobile, łatwiej kliknąć */
  .rev-dots {
    margin-top: 1.1rem;
    gap: 0.55rem;
  }
  .rev-dot {
    width: 8px; height: 8px;
  }
  .rev-dot.active {
    width: 24px;
    background: var(--gold);
  }

  /* Przyciski nawigacji pod sliderem (mobile) */
  .rev-mobile-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
  }
  .rev-mobile-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--cream-2);
    background: var(--white);
    color: var(--dark);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .rev-mobile-btn:active {
    background: var(--gold);
    border-color: var(--gold);
    color: white;
    transform: scale(0.94);
  }
  .rev-mobile-btn:disabled {
    opacity: 0.3;
    pointer-events: none;
  }

  /* CTA */
  #reviews .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.85rem;
    padding: 0.9rem 1.5rem;
  }
}
