/* ==========================================================================
   BIOSKINLAB — RESPONSIVE
   Breakpoints: 1400+ · ≤1199 · ≤991 · ≤767 · ≤575 · ≤400 · landscape
   ========================================================================== */

/* ===== Large desktop ===== */
@media (min-width: 1600px) {
    :root { --container: 1360px; }
    .hero-title { font-size: 190px; }
}

/* ===== Below 1200: tablet landscape / small laptop ===== */
@media (max-width: 1199px) {
    :root { --header-h: 80px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card { padding: 34px 30px; }
    .product-info { padding: 44px 40px; }
    .product-content { min-height: 540px; }
    .hero-side { display: none; }
    .hero-actions .btn { padding: 17px 26px; letter-spacing: 0.18em; }
    .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
}

/* ===== Tablet portrait ===== */
@media (max-width: 991px) {
    :root { --header-h: 74px; --header-h-scrolled: 64px; --section-y: clamp(72px, 9vw, 110px); }

    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .nav-cta { display: none; }
    .logo { font-size: 27px; }

    /* Hero */
    .hero { padding: calc(var(--header-h) + 24px) 0 100px; }
    .hero-content { max-width: 720px; }
    .hero-glow { background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(251, 249, 245, 0.92) 0%, rgba(251, 249, 245, 0.6) 45%, rgba(251, 249, 245, 0) 78%); }
    .hero-actions .btn { padding: 16px 22px; font-size: 11px; letter-spacing: 0.16em; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 64px; }
    .about-media { max-width: 520px; margin: 0 auto; width: 100%; }
    .about-text .section-head.left { text-align: left; }
    .approach { grid-template-columns: repeat(3, 1fr); }
    .approach-step { padding: 32px 22px 8px; }
    .approach-num { font-size: 36px; }
    .approach-step h4 { font-size: 20px; }

    /* Products */
    .product-content { grid-template-columns: 1fr; min-height: 0; }
    .product-image { aspect-ratio: 16 / 10; }
    .product-info { padding: 40px 36px 44px; }

    /* Price */
    .price-grid { grid-template-columns: 1fr; }
    .products-grid.single-category { max-width: 100%; }

    /* Gallery */
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; gap: 14px; }

    /* Reviews */
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-head { align-items: flex-start; flex-direction: column; gap: 28px; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .contact-form-wrapper { order: -1; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr 1fr; gap: 44px 36px; }
    .footer-brand { grid-column: 1 / -1; }
}

/* ===== Mobile landscape / large phones ===== */
@media (max-width: 767px) {
    :root { --header-h: 68px; --header-h-scrolled: 60px; --section-y: clamp(64px, 12vw, 90px); }

    body { font-size: 15.5px; }
    .btn { padding: 17px 30px; font-size: 11px; letter-spacing: 0.2em; }
    .section-title { font-size: clamp(36px, 9.5vw, 50px); }
    .section-desc { font-size: 15.5px; }
    .section-head { margin-bottom: 44px; }
    .lead { font-size: 17.5px; }

    /* Hero */
    .hero { min-height: 100svh; padding: calc(var(--header-h) + 20px) 0 96px; }
    .hst-text { font-size: clamp(34px, 10.5vw, 48px); }
    .hst-sub { font-size: 17px; }
    .hero-title { font-size: clamp(72px, 22vw, 104px); margin-bottom: 20px; }
    .hero-eyebrow { font-size: 9.5px; letter-spacing: 0.28em; gap: 12px; margin-bottom: 20px; }
    .eyebrow-line { width: 26px; }
    .hero-tagline { font-size: 20px; margin-bottom: 30px; }
    .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; max-width: 320px; margin: 0 auto; }
    .hero-actions .btn { width: 100%; }
    .hero-meta { margin-top: 40px; gap: 18px; }
    .hero-meta-item strong { font-size: 24px; }
    .hero-meta-item span { font-size: 9px; letter-spacing: 0.18em; }
    .hero-meta-sep { height: 28px; }
    .hero-scroll { display: none; }

    /* About */
    .about-grid { gap: 52px; }
    .about-media { max-width: 100%; }
    .about-caption { flex-direction: column; gap: 4px; margin-top: 14px; font-size: 9.5px; }
    .feature { gap: 16px; padding: 18px 0; }
    .feature-icon { width: 44px; height: 44px; }
    .feature-icon svg { width: 19px; height: 19px; }
    .feature h4 { font-size: 20px; }
    .feature p { font-size: 14px; }
    .approach { grid-template-columns: 1fr; border-top: none; margin-top: 56px; }
    .approach-step { padding: 26px 0; border-right: none; border-top: 1px solid var(--line-light); }
    .approach-step:last-child { border-bottom: 1px solid var(--line-light); }
    .approach-num { margin-bottom: 10px; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; gap: 16px; }
    .service-card { padding: 30px 26px 28px; }
    .service-card h3 { font-size: 25px; }

    /* Products */
    .product-image { aspect-ratio: 4 / 3; }
    .product-info { padding: 32px 26px 36px; }
    .product-name { font-size: 32px; }
    .product-benefits ul { grid-template-columns: 1fr; }
    .products-controls { flex-wrap: wrap; gap: 16px; }
    .arrow-btn { width: 48px; height: 48px; }

    /* Price */
    .price-tabs { width: 100%; }
    .price-tab { flex: 1; justify-content: center; padding: 12px 14px; font-size: 10px; letter-spacing: 0.16em; }
    .products-filter { gap: 6px; margin-bottom: 30px; }
    .filter-pill { padding: 8px 12px; font-size: 10px; }
    .price-category-title { padding: 18px 20px; font-size: 22px; gap: 12px; }
    .price-category-title i { width: 34px; height: 34px; font-size: 12px; }
    .price-items { padding: 6px 20px 16px; }
    .price-item { padding: 12px 0; }
    .price-item-info h4 { font-size: 14.5px; }
    .price-item-price { font-size: 19px; }
    .price-item.featured { padding: 12px 10px; margin: 4px -10px; }
    .price-note { padding: 20px; gap: 14px; }
    .price-note p { min-width: 0; font-size: 14px; }

    /* Gallery */
    .gallery-filters { gap: 22px; margin-bottom: 32px; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0 2px; }
    .gallery-filters::-webkit-scrollbar { display: none; }
    .gallery-filters { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
    .filter-btn { font-size: 10px; letter-spacing: 0.18em; padding-bottom: 12px; flex-shrink: 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; gap: 10px; }
    .gallery-item figcaption { padding: 18px; }
    .gallery-item figcaption h4 { font-size: 20px; }
    .gallery-item::after { inset: 10px; }
    .lightbox-close, .lightbox-prev, .lightbox-next { width: 46px; height: 46px; font-size: 14px; }
    .lightbox-close { top: 16px; right: 16px; }
    .lightbox-prev { left: 14px; }
    .lightbox-next { right: 14px; }
    .lightbox-content { max-width: 92vw; }
    .lightbox-content img { max-height: 66vh; }

    /* Reviews */
    .reviews-head { margin-bottom: 36px; }
    .reviews-score { width: 100%; padding: 18px 22px; }
    .score-number { font-size: 58px; }
    .reviews-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 24px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    .reviews-grid::-webkit-scrollbar { display: none; }
    .review-card { flex: 0 0 82%; scroll-snap-align: start; padding: 32px 26px 26px; }
    .review-text { font-size: 19px; }
    .review-quote { font-size: 100px; right: 18px; }

    /* Contact */
    .contact-grid { gap: 40px; }
    .contact-item { gap: 16px; padding: 20px 0; }
    .contact-icon { width: 22px; font-size: 14px; }
    .contact-text h4 { font-size: 20px; }
    .contact-text .hours { min-width: 0; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-head h3 { font-size: 27px; }
    .map-wrapper iframe { height: 340px; }
    .map-consent { min-height: 340px; padding-top: 64px; }
    .map-label { top: 14px; left: 14px; font-size: 10px; padding: 10px 14px; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 44px; }
    .footer-brand p { max-width: 100%; }
    .footer-col h4 { margin-bottom: 18px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 0 56px; }

    /* Floating */
    .whatsapp-float { width: 50px; height: 50px; font-size: 22px; right: 16px; bottom: 84px; }
    .wa-menu { right: 16px; bottom: 146px; }
    .filter-pill { min-height: 40px; padding: 10px 14px; }
    .filter-btn { padding: 12px 4px 14px; }
    .footer-links li { margin-bottom: 4px; }
    .footer-links a { padding: 8px 0; }
    .footer-social a, .social-link, .mobile-menu-social a { width: 44px; height: 44px; }
    .logo { padding: 10px 0; }
    .price-tab { min-height: 44px; }
    .hero-scroll-text, .about-caption, .hst-eyebrow { font-size: 10px; }
    .whatsapp-tooltip { display: none; }
    .scroll-top { display: none; }

    .mobile-cta {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 850;
        display: flex;
        gap: 10px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(251, 249, 245, 0.88);
        -webkit-backdrop-filter: blur(18px) saturate(1.4);
        backdrop-filter: blur(18px) saturate(1.4);
        border-top: 1px solid rgba(19, 26, 44, 0.08);
        transform: translateY(110%);
        transition: transform 0.6s var(--ease-expo);
    }
    .mobile-cta.visible { transform: none; }
    .mobile-cta-call { width: 50px; height: 50px; flex-shrink: 0; border-radius: 2px; border: 1px solid rgba(19, 26, 44, 0.25); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 16px; }
    .mobile-cta-book { flex: 1; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--gold); color: var(--navy-950); font-size: 11.5px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; border-radius: 2px; }

    body.menu-open .mobile-cta { transform: translateY(110%); }
}

/* ===== Mobile portrait ===== */
@media (max-width: 575px) {
    :root { --gutter: 20px; }

    .logo { font-size: 25px; }
    .hero-title { font-size: clamp(68px, 23vw, 96px); }
    .hero-tagline { font-size: 18.5px; max-width: 320px; }
    .hero-meta { gap: 14px; }
    .hero-meta-sep { display: none; }
    .hero-meta-item { flex: 1; padding: 12px 6px; border: 1px solid var(--line-light); border-radius: 4px; background: rgba(255, 255, 255, 0.5); }

    .section-title { font-size: clamp(34px, 10.5vw, 44px); }
    .eyebrow { font-size: 10px; letter-spacing: 0.26em; }

    .about-image { aspect-ratio: 4 / 5; }

    .service-card { padding: 26px 22px 24px; }
    .service-badge { right: 22px; top: 30px; }

    .products-slider { border-radius: var(--radius); }
    .product-info { padding: 28px 20px 32px; }
    .product-name { font-size: 29px; }
    .products-counter { font-size: 19px; }

    .price-category-title { font-size: 20px; }
    .price-item { flex-wrap: wrap; row-gap: 2px; }
    .price-item::after { min-width: 16px; margin: 0 8px; }
    .price-item-info { gap: 8px; }

    .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
    .gallery-item.tall { grid-row: span 2; }

    .review-card { flex-basis: 86%; }

    .contact-form-wrapper { padding: 28px 22px 30px; border-radius: var(--radius); }
    .map-wrapper iframe { height: 300px; }

    .footer-logo { font-size: 34px; }
}

/* ===== Extra small ===== */
@media (max-width: 400px) {
    .hero-eyebrow { font-size: 9.5px; letter-spacing: 0.18em; gap: 10px; }
    .eyebrow-line { width: 16px; }
    .hero-title { font-size: 66px; }
    .hero-tagline { font-size: 17px; }
    .hero-meta-item strong { font-size: 21px; }
    .section-title { font-size: 32px; }
    .price-tab { padding: 11px 10px; font-size: 9.5px; gap: 6px; }
    .gallery-grid { grid-auto-rows: 130px; }
}

/* ===== Short landscape screens ===== */
@media (max-height: 640px) and (orientation: landscape) {
    .hero { min-height: 0; padding: calc(var(--header-h) + 40px) 0 70px; }
    .hero-title { font-size: clamp(48px, 9vw, 90px); }
    .hero-actions { flex-direction: row; max-width: none; }
    .hero-actions .btn { width: auto; padding: 14px 20px; font-size: 10.5px; }
    .hero-scroll { display: none; }
}

/* ===== Touch devices: no hover-only reveals ===== */
@media (hover: none) {
    .gallery-item figcaption { display: none; }
    .gallery-item::after { display: none; }
    .gallery-item img { transform: none; }
    .map-wrapper iframe { filter: none; }
}

/* ===== Print ===== */
@media print {
    .header, .preloader, .cursor, .scroll-progress, .mobile-menu, .hero-canvas, .hero-products,
    .lightbox, .gallery-filters, .contact-form-wrapper, .map-wrapper, .whatsapp-float, .mobile-cta, .scroll-top,
    .footer-social, .social-links, .hero-scroll { display: none !important; }
    body { color: #000; background: #fff; }
    .section-dark { background: #fff; color: #000; }
    .section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark p { color: #000; }
    .section { padding: 30px 0; page-break-inside: avoid; }
    html.js [data-reveal], html.js [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
    html.js [data-clip] { clip-path: none !important; }
    html.js [data-split] .wi, html.js .hero-title .ht-l { transform: none !important; }
}

/* Booking */
@media (max-width: 991px) {
    .booking-grid { grid-template-columns: 1fr; gap: 40px; }
    .booking-card.contact-form-wrapper { order: 0; }
}
@media (max-width: 767px) {
    .order-picker { grid-template-columns: 1fr 88px; }
    .op-product { grid-column: 1 / -1; }
    .op-add { grid-column: 1 / -1; justify-content: center; margin-top: -4px; }
    .order-list li { gap: 10px; font-size: 13.5px; }
    .booking-tab { letter-spacing: 0.12em; padding: 10px 10px; font-size: 10.5px; }
}

/* Prekidac jezika na uskim ekranima: manji razmaci, ostaje u hederu (i u mobilnom meniju) */
@media (max-width: 480px) {
    .lang-switch { font-size: 10px; letter-spacing: 0.1em; }
    .lang-switch a { padding: 8px 6px; }
    .lang-switch a.active::after { left: 6px; right: 6px; }
    .nav-actions { gap: 10px; }
    /* ruski: natpisi u cookie baneru su predugi za dva dugmeta u redu - slazu se jedno ispod drugog */
    html[lang="ru"] .cookie-actions .btn { flex-basis: 100%; }
}
