/*
Theme Name: Barbershop Dark
Theme URI: http://example.com/
Description: A custom theme WordPress
Author: Rusla
Author URI: http://example.com
Version: 2.30
Text Domain: barbershop-dark
*/

/* --- Fonts --- */
@font-face { font-family: 'Open Sauce B'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/open-sauce2/open-sauce2-bold.woff2') format('woff2'), url('assets/fonts/open-sauce2/open-sauce2-bold.woff') format('woff'); }
@font-face { font-family: Evolventa; src: url("assets/fonts/evolventa/woff/Evolventa-Regular.woff"); font-weight: normal; font-style: normal; }
@font-face { font-family: Evolventa; src: url("assets/fonts/evolventa/woff/Evolventa-Oblique.woff"); font-weight: normal; font-style: italic; }
@font-face { font-family: Evolventa; src: url("assets/fonts/evolventa/woff/Evolventa-Bold.woff"); font-weight: bold; font-style: normal; }
@font-face { font-family: Evolventa; src: url("assets/fonts/evolventa/woff/Evolventa-BoldOblique.woff"); font-weight: bold; font-style: italic; }

/* --- Base Styles & Resets --- */
html { scroll-behavior: smooth; font-size: 16px; }
body { margin: 0; padding: 0; background-color: #000; color: #ccc; font-family: 'Evolventa', sans-serif; line-height: 1.6; overflow-x: hidden; }
body, #page, .site { max-width: none; }
.container { max-width: 1140px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; width: 100%; box-sizing: border-box; }
body.post-type-archive-service .container { max-width: 850px; }
body.post-type-archive-product:not(.products-dev-mode) .container { max-width: 900px; }
body.page-template-page-contact .container { max-width: 1140px; }

h1, h2, h3, h4, h5, h6 { font-family: 'Open Sauce B', 'Evolventa', sans-serif; color: #fff; margin: 0.5em 0; font-weight: 700; }
h2 { text-align: center; font-size: 2.2em; margin-bottom: 30px; text-transform: uppercase; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
a { color: #fff; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #cc4300; text-decoration: none; }
img { max-width: 100%; height: auto; vertical-align: middle; border-style: none; }
button { cursor: pointer; background: none; border: none; padding: 0; color: inherit; font-family: inherit; font-size: inherit; }
section { padding: 60px 0; position: relative; z-index: 1; overflow: hidden; }

/* --- Fixed Background --- */
.site-background {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    z-index: -1; background-size: cover;
    background-position: 75% center; /* Default position using percentage */
    background-repeat: no-repeat;
    background-attachment: fixed;
    transition: background-position 0.3s ease-out;
}


/* --- Section Backgrounds --- */
body:not(.about-alt-enabled) section:not(.about):not(.hero):not(.page-hero),
body.about-alt-enabled section.price-section,
body.about-alt-enabled section.services-slider-section,
body.about-alt-enabled section.testimonials,
body.about-alt-enabled section.specialists-section,
body.about-alt-enabled section.services-section,
body.products-dev-mode .product-section
{
     background-color: rgba(0, 0, 0, 0.7);
     margin-bottom: 0;
}
/* Page hero gets its own overlay */
.page-hero { background-color: rgba(0, 0, 0, 0.3); }
/* Hero section gets its own overlay */
.hero { background-color: rgba(0, 0, 0, 0.3); }
/* Contact page uses default background rules */


/* --- About Section --- */
/* Default Styles */
.about {
    padding: 80px 0; background-color: white; color: #000000;
    transition: padding 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.about-inner { /* Standard container for default about */
    max-width: 1140px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; box-sizing: border-box;
    display: flex; flex-wrap: wrap; align-items: center; gap: 30px;
}
.about .about-image { flex: 1 1 45%; min-width: 300px; line-height: 0; }
.about .about-image img { display: block; width: 100%; height: auto; object-fit: cover; }
.about .about-text { flex: 1 1 50%; min-width: 320px; padding: 0; color: #000000; text-align: left; }
.about .about-text h2 { font-size: 2em; margin-top: 0; margin-bottom: 0.5em; color: #000000; text-align: left; }
.about .about-text p { color: #000000; text-align: left;}
.about .about-text a { color: #cc4300; text-decoration: underline; }
.about .about-text a:hover { color: #a33600; }

/* Alternative About Section (Text Only) - Activated by body.about-alt-enabled */
body.about-alt-enabled section.about {
    padding-top: 100px; padding-bottom: 130px; background-color: white; color: black;
    min-height: auto; display: block; align-items: stretch; justify-content: flex-start;
}
body.about-alt-enabled .about-inner { display: none; }
body.about-alt-enabled .about .about-inner-alt {
     max-width: 950px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; box-sizing: border-box;
     text-align: left; background-color: transparent; width: auto; padding-top: 0; padding-bottom: 0;
}
body.about-alt-enabled .about .about-inner-alt h2 {
    color: black; text-align: left; font-size: 2.2em; margin-top: 0; margin-bottom: 0.5em;
}
body.about-alt-enabled .about .about-inner-alt .about-text-alt p {
    color: black; font-size: 1.1em; line-height: 1.7; max-width: none; margin-left: 0; margin-right: 0; text-align: left;
}


/* --- Header --- */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(0,0,0,0.8); transition: background-color 0.3s ease, z-index 0s linear 0.3s; }
body.product-modal-open .site-header { z-index: 990; transition-delay: 0s; }
.header-inner { display: flex; align-items: center; justify-content: center; padding: 5px 20px; max-width: 1200px; margin: 0 auto; position: relative; min-height: 70px; }
.desktop-navigation-wrapper { display: flex; align-items: center; justify-content: center; }
.header-inner ul.desktop-navigation { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.header-inner ul.desktop-navigation li { margin: 0 15px; }
.header-inner .logo-item { flex-shrink: 0; line-height: 0; margin: 0 30px; position: relative; left: 0; transition: left 0.3s ease; }
.header-inner .logo-item img { max-height: 60px; width: auto; padding: 5px 0; }

/* --- Burger Menu --- */
.menu-toggle { display: none; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); z-index: 1001; padding: 10px; }
.menu-toggle .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background: #fff; transition: all 0.3s ease-in-out; }
.menu-toggle.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
/* Mobile Menu Panel */
.menu-mobile { display: none; position: fixed; top: 70px; left: 0; width: 100%; background: rgba(0,0,0,0.98); padding: 15px 0; border-top: 1px solid #333; z-index: 999; max-height: calc(100vh - 70px); overflow-y: auto; }
.menu-mobile.open { display: block; }
.menu-mobile ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu-mobile li { margin: 0; }
.menu-mobile a { display: block; padding: 12px 20px; color: #fff; text-transform: uppercase; font-size: 0.9em; letter-spacing: 1px; transition: background 0.3s ease; }
.menu-mobile a:hover { background: #cc4300; color: #fff; }

/* --- Content Padding --- */
.site-content { padding-top: 0px; position: relative; z-index: 1; }


/* --- HERO Section --- */
.hero {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative; background: none; padding-top: 0; padding-bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Added overlay */
}
.hero .hero-content { position: relative; z-index: 2; color: #fff; max-width: 700px; padding: 70px 20px 20px; }
.hero h1 { font-size: 2em; margin-bottom: 0.7em; line-height: 1.3; text-transform: uppercase; }
.hero .hero-btn { font-size: 1em; }
.hero-promo-text { font-size: 14px; margin-top: 15px; color: rgba(255, 255, 255, 0.8); }

/* --- PAGE HERO --- */
.page-hero {
    min-height: 300px; display: flex; align-items: center; justify-content: center; text-align: center;
    background: none; padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.3); /* Overlay */
    position: relative;
}
.page-hero h1 { position: relative; z-index: 2; font-size: 2.8em; margin: 0; color: #fff; text-transform: uppercase; }

/* --- Button Styles --- */
/* Base button style */
.btn {
    display: inline-block; padding: 12px 35px; border: 2px solid #cc4300; color: #cc4300;
    font-weight: bold; background: transparent; text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.9em; cursor: pointer; position: relative; z-index: 1; overflow: hidden;
    transition: color 0.5s ease-in-out; text-decoration: none; text-align: center;
    vertical-align: middle; line-height: 1.5;
}

/* --- Zoning In Animation (Applied to .btn by default) --- */
.btn::before,
.btn::after {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0; right: 0; z-index: -1;
    border-top: 25px solid #cc4300; border-bottom: 25px solid #cc4300; background: none;
    transition: transform 0.5s ease-in-out; width: auto; height: auto; clip-path: none;
}
.btn::before { border-right: 25px solid transparent; transform: translateX(-101%); }
.btn::after { border-left: 25px solid transparent; transform: translateX(101%); }

/* Hover state for Zoning In animation */
.btn:hover { color: #fff; background: transparent; border-color: #cc4300; }
.btn:hover::before { transform: translateX(-30%); }
.btn:hover::after { transform: translateX(30%); }


/* --- Button Style EXCLUSIONS & MODIFICATIONS --- */

/* 1. Sticky Booking Button (Restored Original Styles/Animation below) */
/* Styles defined later */

/* 2. Mobile "More Details" Button (simple link styled below in @media) */
@media (max-width: 768px) {
    .mobile-more-btn > .btn {
        border: none; background: none; color: #cc4300; font-size: 1.1em;
        padding: 10px 0; text-decoration: none; transform: scale(1);
        transition: transform 0.3s, color 0.3s; overflow: visible;
    }
    .mobile-more-btn > .btn:hover {
        background: none; color: #fff; transform: scale(1.05); border-color: transparent;
    }
     /* Ensure Zoning In animation doesn't apply */
    .mobile-more-btn > .btn::before,
    .mobile-more-btn > .btn::after { display: none !important; }
}


/* --- "More Details" Button Container & Visibility --- */
.more-btn { margin-top: 55px; text-align: center; }
.mobile-more-btn { display: none; }
.desktop-more-btn { display: block; }

/* Desktop button uses .btn (gets Zoning In) */
.desktop-more-btn > .btn { font-size: 1.0em; }

@media (max-width: 768px) {
    .desktop-more-btn { display: none; }
    .mobile-more-btn { display: block; }
    /* Mobile styles defined above in EXCLUSIONS section */
}


/* --- Price List (Desktop Table) --- */
.price-section { padding: 60px 0; }
.price-section-desktop { display: block; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.price-table thead th { text-align: left; padding: 15px 10px; border-bottom: 2px solid #555; font-size: 1.1em; color: #fff; text-transform: uppercase; }
.price-table .service-group th { background: #1a1a1a; color: #fff; font-size: 1.2em; text-align: left; padding: 20px 15px; border-top: 2px solid #555; border-bottom: 1px solid #333; }
.price-table tbody td { padding: 15px 10px; border-bottom: 1px solid #333; vertical-align: middle; }
.price-table td:first-child { width: 55%; font-weight: bold; }
/* Style for second and third columns */
.price-table td:nth-child(2),
.price-table td:nth-child(3) { text-align: left; width: 22.5%; font-size: 18px; }
/* Style for the colspan=2 cell (Single Price) */
.price-table td[colspan="2"] { text-align: left; width: 45%; font-size: 18px; font-weight: normal; padding-left: 10px; }


/* --- Services Slider (Mobile) --- */
.services-slider-section { display: none; padding: 60px 0; }
.services-glide { position: relative; }
.services-glide .glide__track { padding: 0 0 0 20px; }
.services-glide .glide__slide { background: #111; border: 1px solid #333; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; padding: 25px 15px; box-sizing: border-box; height: auto; opacity: 0.5; transition: opacity 0.4s ease; cursor: pointer; }
.services-glide .glide__slide:active { cursor: grabbing; }
.services-glide .glide__slide--active { opacity: 1; cursor: default; }
.service-card-mobile-content h3 { font-size: 1.1em; margin: 0 0 15px 0; line-height: 1.3; min-height: 2.6em; color: #fff; }
.service-price-mobile { margin-bottom: 20px; font-size: 1.3em; font-weight: bold; color: #fff; }
.service-price-mobile .service-price-label { display: block; font-size: 0.7em; font-weight: normal; color: #aaa; margin-bottom: 3px; text-transform: uppercase; }
.service-book-btn { padding: 10px 20px; font-size: 0.85em; width: 90%; box-sizing: border-box; } /* Gets Zoning In */
.services-glide .glide__arrows { display: none; }
.services-glide .glide__bullets { text-align: center; margin-top: 25px; padding-right: 20px; }
.services-glide .glide__bullet { background-color: rgba(255, 255, 255, 0.3); width: 10px; height: 10px; padding: 0; border-radius: 50%; border: none; transition: background-color 0.3s ease; margin: 0 4px; display: inline-block; cursor: pointer; }
.services-glide .glide__bullet--active { background-color: #cc4300; }


/* --- Testimonials Slider --- */
.testimonials { padding: 80px 0 100px; position: relative; z-index: 5; }
body.product-modal-open .testimonials { z-index: 990; }
.testimonials .container { max-width: 900px; }
.testimonials h2 { margin-bottom: 10px; }
.testimonials-subtitle { text-align: center; margin-top: -25px; margin-bottom: 40px; color: #aaa; }
.reviews-glide { margin: 0 auto; position: relative; }
.reviews-glide .glide__controls { position: relative; top: auto; left: auto; transform: none; width: 100%; max-width: 680px; margin: 30px auto 0; display: flex; justify-content: space-between; align-items: center; z-index: 5; padding: 0 10px; box-sizing: border-box; }
.reviews-glide .glide__arrow { background: rgba(255, 255, 255, 0.1); border-radius: 50%; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; transition: background 0.3s ease; color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; }
.reviews-glide .glide__arrow:hover { background: #cc4300; border-color: #cc4300; }
.reviews-glide .glide__arrow svg { width: 20px; height: 20px; fill: currentColor; }
.reviews-glide .glide__bullets { display: flex; align-items: center; justify-content: center; margin: 0 10px; }
.reviews-glide .glide__bullet { background-color: rgba(255, 255, 255, 0.3); width: 20px; height: 8px; margin: 0 5px; border-radius: 4px; transition: background-color 0.3s ease, width 0.3s ease; border: none; cursor: pointer; padding: 0; }
.reviews-glide .glide__bullet--active { background-color: #cc4300; width: 30px; }
.reviews-glide .glide__arrow--disabled { opacity: 0.2; cursor: default; pointer-events: none; }
.review-slide { padding: 10px; box-sizing: border-box; min-height: 300px; display: flex; align-items: center; justify-content: center; cursor: grab; }
.review-slide:active { cursor: grabbing; }
.review-slide-content { background: rgba(255, 255, 255, 0.05); padding: 30px; border-radius: 15px; text-align: center; max-width: 500px; margin: 0 auto; }
.review-thumbnail { margin-bottom: 20px; line-height: 0; }
.review-thumbnail img {
    width: auto; height: auto; max-width: 100%;
    border-radius: 13px; object-fit: cover; margin: 0 auto; display: block;
}
.review-text h3 { font-size: 1.3em; margin: 0 0 10px 0; color: #fff; }
.review-content p:last-child { margin-bottom: 0; }


/* --- Archive: Services --- */
.services-section { padding: 60px 0; }
.service-group-title { font-size: 1.8em; margin-top: 40px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #444; text-align: center; }
.service-group-items { margin-bottom: 30px; }
.service-item { display: flex; flex-wrap: wrap; flex-direction: row; align-items: flex-start; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 30px; gap: 30px; }
.service-item:last-child { border-bottom: none; margin-bottom: 0; }
.service-text { flex: 1; min-width: 250px; order: 1; text-align: left; }
.service-image { flex: 0 0 240px; max-width: 240px; order: 2; margin-left: auto; }
.service-image img { border-radius: 5px; display: block; width: 100%; height: auto; }
.service-text h3 { margin: 0 0 10px 0; font-size: 1.4em; text-align: left; }
.service-text .price { margin-bottom: 15px; font-size: 1.1em; color: #fff; font-weight: bold; }
.service-description { font-size: 0.95em; color: #ccc; line-height: 1.7; }
.service-description p:last-child { margin-bottom: 0; }


/* --- Archive: Products --- */
.product-section { padding: 60px 0; }
/* Padding override for dev mode */
body.products-dev-mode .product-section { padding: 60px 0 200px 0; background-color: rgba(0, 0, 0, 0.7); }
.product-category-title { font-size: 1.8em; margin-top: 40px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #444; text-align: center; }
.product-group-items { margin-bottom: 30px; }
/* Default layout (like services) - applied above 768px */
.product-item { display: flex; flex-wrap: wrap; flex-direction: row; align-items: flex-start; margin-bottom: 30px; border-bottom: 1px solid #333; padding-bottom: 30px; gap: 30px; }
.product-item:last-child { border-bottom: none; margin-bottom: 0; }
.product-text { flex: 1; min-width: 250px; order: 1; text-align: left; }
.product-image { flex: 0 0 240px; max-width: 240px; order: 2; margin-left: auto; text-align: center; }
.product-image img { border-radius: 5px; display: block; margin: 0 auto; max-height: 220px; width: auto; object-fit: contain; }
.product-text h3 { margin: 0 0 10px 0; font-size: 1.4em; text-align: left; }
.product-description { font-size: 0.95em; color: #ccc; line-height: 1.7; text-align: left; }
.product-description p:last-child { margin-bottom: 0; }


/* --- Archive: Specialists --- */
.specialists-section { padding: 60px 0; }
.specialists-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; }
.specialist-item { text-align: center; background: #111; border: 1px solid #333; padding: 25px 20px; border-radius: 10px; width: 280px; display: flex; flex-direction: column; }
.specialist-thumbnail { margin-bottom: 20px; line-height: 0; }
.specialist-thumbnail img { border: 5px solid #333; border-radius: 50%; width: 180px; height: 180px; object-fit: cover; margin: 0 auto; display: block; }
.specialist-item h3 { font-size: 1.3em; margin-top: 0; margin-bottom: 10px; }
.specialist-description { font-size: 1em; color: #ccc; line-height: 1.6; flex-grow: 1; }
.specialist-description p:last-child { margin-bottom: 0; }


/* --- Footer --- */
.site-footer { background: #0a0a0a; color: #ccc; padding-top: 60px; border-top: 1px solid #222; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; padding: 20px 15px; max-width: 1000px; margin: 0 auto 40px; }
.footer-top .contact-info { flex: 1; min-width: 280px; }
.footer-top .contact-info h3 { margin-top: 0; margin-bottom: 20px; font-size: 1.5em; color: #fff; }
.footer-top .contact-info p { margin-bottom: 15px; line-height: 1.7; }
.footer-top .contact-info a { color: #eee; }
.footer-top .contact-info a:hover { color: #cc4300; }
.footer-top .map { flex: 1; min-width: 280px; min-height: 300px; background-color: #222; border: 1px solid #333; position: relative; overflow: hidden; }
#yandex-map-footer { height: 100%; width: 100%; position: absolute; top: 0; left: 0; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 0.9em; color: #888; }

/* --- Sticky Booking Button (Restored Original) --- */
.sticky-booking-btn {
    position: fixed; bottom: 25px; right: 25px; z-index: 999;
    background-color: #000; color: #fff;
    border: 2px solid #cc4300; border-radius: 50%;
    width: 90px; height: 90px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; font-size: 12px; font-weight: bold; line-height: 1.3;
    text-transform: uppercase; cursor: pointer;
    transition: background-color 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: visible; isolation: isolate; text-decoration: none;
}
.sticky-booking-btn:hover {
    background-color: #cc4300; border-color: #cc4300; color: #fff; transform: scale(1.05);
}
/* Restore Glow effect ONLY on ::before */
.sticky-booking-btn::before {
    content: ''; position: absolute; top: -7px; left: -7px; right: -7px; bottom: -7px;
    border-radius: inherit; background: conic-gradient( from 180deg at 50% 50%, #FFA50099, #FF8C00B0, #FF4500C0, #FF7F50B0, #FF8C00A0, #FFA50099 );
    filter: blur(20px) opacity(0.95); z-index: -1; animation: sticky-btn-glow-spin 0.3s linear infinite alternate;
}
.sticky-booking-btn-dot { display: none; }
@keyframes sticky-btn-glow-spin { 100% { transform: rotate(0.5turn); } }


/* --- Responsiveness --- */

/* Background Offset Adjustments - Using Percentages + Large Screen Override */
.site-background { background-position: 75% center; }
@media (min-width: 1201px) {
    .site-background { background-position-x: -100px; }
}
/* No specific overrides needed for contact page background */


/* Tablets & Small Desktops */
@media (max-width: 992px) {
    .desktop-navigation-wrapper { display: none; }
    .menu-toggle { display: block; }
    .header-inner { justify-content: flex-start; }
    .header-inner .logo-item { margin: 0 auto 0 0; position: static; transform: none; left: auto; top: auto; }
    .header-inner .logo-item img { max-height: 50px; }
    .about:not(.about-alt) .about-inner { padding: 0 15px; }
}
/* Smaller Tablets */
@media (max-width: 850px) {
     .about:not(.about-alt) .about-inner { flex-direction: column; gap: 20px; }
     .about:not(.about-alt) .about-image { max-width: 500px; margin-left: auto; margin-right: auto; flex-basis: auto; }
     .about:not(.about-alt) .about-text { padding: 0; text-align: center; flex-basis: auto; }
     .about:not(.about-alt) .about-text h2 { text-align: center; }
     body.about-alt-enabled .about .about-inner-alt { max-width: none; padding-left: 15px; padding-right: 15px; }
}

/* Mobile Landscape & Portrait Tablets */
@media (max-width: 768px) {
    .container { padding-left: 10px; padding-right: 10px; }
    h2 { font-size: 1.8em; margin-bottom: 25px;}
    .hero .hero-content { padding: 60px 10px 20px; }
    .page-hero h1 { font-size: 2.5em; }
    .page-hero { min-height: 200px; padding: 30px 10px; }
    section { padding: 50px 0; }
    body.about-alt-enabled .about { min-height: auto; padding: 50px 0; }

    /* Swap Price Table for Slider */
    .price-section-desktop { display: none; }
    .services-slider-section { display: block; }

    .services-section, .product-section { padding: 40px 0; }
    body.products-dev-mode .product-section { padding: 40px 0 150px 0; }

    /* Stack Service Items */
    .service-item { flex-direction: column; gap: 20px; }
    .service-image { width: 100%; max-width: 300px; margin: 0 auto; order: 1; }
    .service-text { text-align: center; order: 2; }
    .service-text h3 { font-size: 1.3em; text-align: center; }

    /* Product grid layout on mobile */
    .product-item { display: block; border-bottom: none; padding-bottom: 0; gap: 0; }
    .product-group-items {
         display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
         gap: 20px; margin-bottom: 30px;
    }
    .product-group-items .product-item {
        background: #111; border: 1px solid #333; border-radius: 5px;
        overflow: hidden; text-align: center; padding: 0; margin-bottom: 0;
    }
    .product-group-items .product-item .product-image {
         order: 1; margin: 0; max-width: 100%; width: 100%; height: 180px; flex: none;
    }
    .product-group-items .product-item .product-image img {
         border-radius: 0; width: 100%; height: 100%; object-fit: cover; margin: 0;
    }
    .product-group-items .product-item .product-text {
         order: 2; padding: 15px; text-align: center; flex: none; min-width: auto;
    }
    .product-group-items .product-item .product-text h3 { font-size: 1.1em; text-align: center; }
    .product-group-items .product-item .product-description { text-align: center; font-size: 0.9em; }

    /* Footer adjustments */
    .footer-top { flex-direction: column; padding: 20px 15px; }
    .footer-top .map { min-height: 250px; height: 250px; }

    /* Sticky Button */
    .sticky-booking-btn { width: 75px; height: 75px; font-size: 11px; bottom: 20px; right: 20px; }
    .sticky-booking-btn::before { top: -4px; left: -4px; right: -4px; bottom: -4px; filter: blur(8px) opacity(0.6); }

    /* Reviews Slider Adjustments */
    .reviews-glide .glide__arrow { width: 35px; height: 35px; }
    .reviews-glide .glide__bullet { width: 15px; height: 7px; margin: 0 4px; }
    .reviews-glide .glide__bullet--active { width: 25px; }
    .review-slide-content { padding: 20px; }
    .review-thumbnail img { max-height: none; }

    /* Specialists List */
    .specialists-list { gap: 25px; }
    .specialist-item { width: 250px; }
}

/* Hero H1 size adjustment */
@media (max-width: 680px) {
    .hero h1 {
        font-size: 1.8em;
    }
}

/* Small Tablets / Large Phones */
@media (max-width: 610px) {
    .reviews-glide .glide__controls {
        top: -30px; position: absolute; left: 0; right: 0;
        width: calc(100% - 20px); max-width: none; margin: 0 auto;
        justify-content: space-between;
    }
}


/* Mobile Portrait */
@media (max-width: 480px) {
    h2 { font-size: 1.6em; margin-bottom: 20px;}
    /* Hero H1 size adjustment */
    .hero h1 {
        font-size: 1.4em;
    }
    .page-hero h1 { font-size: 2em; }
    section { padding: 40px 0; }
    body.about-alt-enabled .about { padding: 40px 0; }
    body.products-dev-mode .product-section { padding: 40px 0 100px 0; }

    .site-content { padding-top: 0; }
    .header-inner { min-height: 60px; }
    .header-inner .logo-item img { max-height: 40px; }
    .header-inner .menu-toggle { right: 10px; }
    .menu-mobile { top: 60px; max-height: calc(100vh - 60px); }
    .services-glide .glide__bullets { margin-top: 25px; }

    /* Product Grid for small mobiles */
    .product-group-items {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px;
    }
    .product-group-items .product-item .product-text h3 { font-size: 1.0em; }
    .product-group-items .product-item .product-image { height: 150px; }

    /* Sticky Button */
    .sticky-booking-btn { width: 65px; height: 65px; font-size: 10px; bottom: 15px; right: 15px; }
    .sticky-booking-btn::before { top: -3px; left: -3px; right: -3px; bottom: -3px; filter: blur(6px) opacity(0.5); }

    /* Specialists List */
    .specialists-list { gap: 20px; }
    .specialist-item { width: calc(100% - 20px); max-width: 280px; }

    /* Footer */
    .footer-top { padding: 20px 10px; }
}

/* Very Small Screens */
@media (max-width: 359px) {
    .about:not(.about-alt) .about-inner { padding: 0 5px; gap: 15px; }
    .about:not(.about-alt) .about-text { min-width: 0; padding: 0; }
     body.about-alt-enabled .about .about-inner-alt { padding-left: 10px; padding-right: 10px; }
     body.about-alt-enabled .about h2 { font-size: 1.8em; }
     body.about-alt-enabled .about .about-inner-alt .about-text-alt p { font-size: 1em; }

    .product-group-items { grid-template-columns: 1fr; }
     .product-group-items .product-item { max-width: 280px; margin: 0 auto 20px; }
     .product-group-items .product-item:last-child { margin-bottom: 0; }
}