:root {
    --primary: #e83e8c;
    --primary-hover: #d63384;
    --dark: #343a40;
    --light: #f8f9fa;
    --gray: #6c757d;
    --border: #dee2e6;
    --radius: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    color: var(--dark);
    background-color: #f4f6f9;
    line-height: 1.6;
}

* { box-sizing: border-box; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Pre-header */
.preheader {
    background: #f7f7f8;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--gray);
}
.preheader__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
}
.preheader__disclaimer {
    opacity: 0.75;
}
.preheader__links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.preheader__sep {
    color: var(--border);
}
.preheader__link {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.15s;
}
.preheader__link:hover {
    color: var(--primary);
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.city-selector {
    font-size: 0.95rem;
    color: var(--gray);
}

/* Header nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.header-nav__link {
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray);
    transition: color 0.15s, background 0.15s;
}
.header-nav__link:hover {
    color: var(--primary);
    background: #fdf0f7;
}
.header-nav__link--active {
    color: var(--primary);
    background: #fdf0f7;
    font-weight: 600;
}

/* Header search icon button */
.header-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius);
    color: var(--gray);
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}
.header-icon-btn:hover,
.header-icon-btn--active {
    color: var(--primary);
    background: #fdf0f7;
}

/* Header filter button */
.header-filter-btn {
    background: var(--dark);
    border: 1.5px solid var(--dark);
    cursor: pointer;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.15s, border-color 0.15s;
}
.header-filter-btn:hover {
    background: #212529;
    border-color: #212529;
}
.header-filter-btn--active {
    background: #212529;
    border-color: #212529;
}
.filter-btn-count {
    font-weight: 400;
    opacity: 0.85;
}

/* Header search bar (slides below header) */
.header-search-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
    padding: 0;
}
.header-search-bar--open {
    max-height: 80px;
    padding: 0.75rem 0;
}
.header-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.header-search-form input[type="text"] {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
}
.header-search-form input[type="text"]:focus {
    border-color: var(--primary);
}
.header-search-reset {
    color: var(--gray);
    font-size: 0.9rem;
}

/* City switcher dropdown */
.city-switcher {
    position: relative;
}
.city-switcher__btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--gray);
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.city-switcher__btn:hover { color: var(--dark); }
.city-switcher__arrow {
    font-size: 0.65rem;
    transition: transform 0.15s;
}
.city-switcher__dropdown.open + * .city-switcher__arrow,
#city-switcher-btn[aria-expanded="true"] .city-switcher__arrow {
    transform: rotate(180deg);
}
.city-switcher__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    min-width: 160px;
    z-index: 200;
}
.city-switcher__dropdown.open { display: block; }
.city-switcher__item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--dark);
    transition: background 0.1s;
}
.city-switcher__item:hover { background: var(--light); }
.city-switcher__item--active {
    color: var(--primary);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--dark);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 500;
    transition: background 0.2s;
    text-align: center;
}
.btn:hover { background: #212529; }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero {
    text-align: center;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #fff0f5 0%, #fde4ec 100%);
    border-radius: var(--radius);
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: 1.8rem;
    margin: 0 0 0.4rem 0;
    color: var(--primary);
}
.hero p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Grid & Cards */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.section-header h2 { margin: 0; }
.view-all { color: var(--primary); text-decoration: none; font-weight: 500; }

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.profile-card {
    display: block;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.profile-image {
    height: 300px;
    background: #f8f9fa;
}
.profile-info {
    padding: 1.5rem;
}
.profile-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}
.salon-label { color: #17a2b8; font-size: 0.85rem; font-weight: bold; margin: 0 0 1rem 0; }
.private-label { color: #6f42c1; font-size: 0.85rem; font-weight: bold; margin: 0 0 1rem 0; }

/* Detail pages */
.detail-page { padding-top: 2rem; }

.breadcrumb {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .detail-layout { grid-template-columns: 1fr; }
}

.detail-sidebar {
    position: sticky;
    top: 90px;
}

.detail-photo-main {
    width: 100%;
    aspect-ratio: 3/4;
    background: #e9ecef;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.detail-photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 1.1rem;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
    max-height: 264px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.gallery-thumb {
    aspect-ratio: 1;
    background: #e9ecef;
    border-radius: calc(var(--radius) / 2);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.gallery-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.15s;
}
.gallery-thumb:hover::after {
    background: rgba(0,0,0,0.18);
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-main-clickable {
    cursor: zoom-in;
    position: relative;
}
.gallery-main-clickable .gallery-zoom-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.45);
    color: white;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
}
.gallery-main-clickable:hover .gallery-zoom-icon {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 5000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox.active {
    display: flex;
}
.lightbox__img {
    max-width: min(92vw, 900px);
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    display: block;
    user-select: none;
}
.lightbox__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    padding: 0;
    transition: opacity 0.15s;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: white;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    transition: background 0.15s;
    user-select: none;
}
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,0.25); }
.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    pointer-events: none;
}

.contact-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* Base button */
.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: opacity 0.15s, background 0.15s;
    line-height: 1.2;
    white-space: nowrap;
}

/* Phone button — filled teal */
.contact-btn--phone {
    background: #3a8a8a;
    color: #fff;
    border-color: #3a8a8a;
}
.contact-btn--phone:hover { opacity: 0.9; }

/* Hide/show phone text vs hint on hover */
.contact-btn__hint { display: none; }
.contact-btn--phone:not(.js-revealed):hover .contact-btn__truncated { display: none; }
.contact-btn--phone:not(.js-revealed):hover .contact-btn__hint { display: inline; }

/* No phone */
.contact-btn--no-phone {
    background: var(--light);
    color: var(--gray);
    border-color: var(--border);
    cursor: default;
    font-weight: 500;
}

/* Disabled / inactive / moderation */
.contact-btn--disabled {
    background: var(--light);
    color: var(--gray);
    cursor: default;
    font-weight: 500;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-size: .95rem;
}


/* WhatsApp */
.contact-btn--whatsapp {
    color: #25d366;
    border-color: #25d366;
    background: transparent;
}
.contact-btn--whatsapp:hover { background: #25d36610; }

/* Telegram */
.contact-btn--telegram {
    color: #2aa3e0;
    border-color: #2aa3e0;
    background: transparent;
}
.contact-btn--telegram:hover { background: #2aa3e010; }

/* Viber */
.contact-btn--viber {
    color: #7360f2;
    border-color: #7360f2;
    background: transparent;
}
.contact-btn--viber:hover { background: #7360f210; }

/* Schedule under contacts — full width forces new line in flex-wrap */
.contact-schedule {
    width: 100%;
    font-size: 0.9rem;
    color: var(--gray);
}
.contact-schedule__day { margin-right: 0.25rem; }

.detail-header { margin-bottom: 1rem; }
.detail-header h1 { margin: 0 0 0.5rem 0; font-size: 2rem; }

.detail-location {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray);
}
.detail-location__icon {
    color: var(--gray);
    flex-shrink: 0;
    opacity: 0.7;
}
.detail-location__sep {
    color: #ccc;
    line-height: 1;
}
.detail-location__metro,
.detail-location__district,
.detail-location__city {
    text-decoration: none;
}
.detail-location__metro:hover,
.detail-location__district:hover,
.detail-location__city:hover {
    text-decoration: underline;
}
.detail-location__metro {
    font-weight: 600;
    color: var(--text);
}
.detail-location__metro::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d32f2f;
    margin-right: 4px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}
.detail-location__district,
.detail-location__city {
    color: var(--gray);
}
.detail-min-price {
    width: 100%;
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.01em;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.working-status {
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 10px;
    background: #e2f4ea;
    color: #1a7a3a;
}
.salon-badge {
    background: #e3f2fd;
    color: #0d6efd;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 10px;
}
.salon-badge a { color: inherit; text-decoration: none; }
.salon-badge--large { font-size: 0.95rem; padding: 4px 14px; }
.private-badge {
    background: #f3e8ff;
    color: #6f42c1;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 10px;
}

.hot-photo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff3e0;
    color: #e65100;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 12px;
    margin-top: 6px;
    text-decoration: none;
}
.hot-photo-badge:hover {
    background: #ffe0b2;
    color: #bf360c;
}
.visit-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 3px 12px;
    margin-top: 6px;
    text-decoration: none;
}
.visit-badge--incall {
    background: #e8f5e9;
    color: #2e7d32;
}
.visit-badge--incall:hover {
    background: #c8e6c9;
    color: #1b5e20;
}
.visit-badge--outcall {
    background: #e3f2fd;
    color: #1565c0;
}
.visit-badge--outcall:hover {
    background: #bbdefb;
    color: #0d47a1;
}

.detail-section {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.detail-section h2 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.attr-group { margin-bottom: 1rem; }
.attr-group-name {
    font-size: 0.9rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
}
.attr-list {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}
.attr-list th {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: normal;
    text-align: left;
    vertical-align: top;
    padding: 0.2rem 1rem 0.2rem 0;
    width: 50%;
}
.attr-list td {
    font-weight: 500;
    font-size: 0.95rem;
    vertical-align: top;
    padding: 0.2rem 0;
    width: 50%;
}

.services-no-intim {
    margin: -0.25rem 0 1rem 0;
    padding: 0.5rem 0.75rem;
    background: #fff3cd;
    border-left: 3px solid #f0a500;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #7a5200;
}
.services-list { display: flex; flex-direction: column; gap: 0.75rem; }
.service-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem;
    background: var(--light);
    border-radius: calc(var(--radius) / 2);
    gap: 1rem;
}
.service-info { flex: 1; }
.service-title { font-weight: 600; display: block; }
.service-desc { font-size: 0.85rem; color: var(--gray); display: block; margin-top: 2px; }
.service-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    white-space: nowrap;
}
.service-duration { font-size: 0.85rem; color: var(--gray); }
.service-cost { font-weight: 700; color: var(--primary); font-size: 1.1rem; }

.infra-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.infra-list li {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.9rem;
}

.related-section { margin-bottom: 4rem; }
.similar-section { margin-top: 15px; }

/* Salons grid (homepage) */
.salons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.salon-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}
.salon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.salon-card-top {
    display: block;
    text-decoration: none;
    color: inherit;
}
.salon-card-image {
    height: 180px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}
.salon-card-info { padding: 1rem 1.25rem 0.75rem; }
.salon-card-info h3 { margin: 0 0 0.3rem 0; font-size: 1.1rem; }
.salon-card-meta { font-size: 0.85rem; color: var(--gray); margin: 0; }

/* Profiles row inside salon card */
.salon-card-profiles {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.5rem;
}
.salon-card-profile-thumb {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 0.3rem;
}
.salon-card-profile-thumb img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.salon-card-profile-thumb__placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: #e9ecef;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #adb5bd;
}
.salon-card-profile-thumb__name {
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}
.salon-card-profile-thumb--more {
    background: #f8f9fa;
    border-radius: 6px;
    aspect-ratio: 3/4;
    width: 100%;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-align: center;
    padding: 0.5rem;
    line-height: 1.3;
}

.empty-notice { color: var(--gray); font-style: italic; text-align: center; padding: 2rem 0; }

/* Carousel (homepage) */
.carousel {
    position: relative;
    margin-bottom: 4rem;
}
.carousel__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 0.75rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel__track .profile-card,
.carousel__track .profile-card-wrap {
    flex-shrink: 0;
    width: 220px;
    scroll-snap-align: start;
}
.carousel__track .profile-card .profile-image,
.carousel__track .profile-card-wrap .profile-image { height: 260px; }

.carousel--salons .carousel__track .salon-card {
    flex-shrink: 0;
    width: 280px;
    scroll-snap-align: start;
}

.carousel__btn {
    position: absolute;
    top: calc(50% - 1.5rem);
    transform: translateY(-50%);
    z-index: 10;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.15s, opacity 0.15s;
    padding: 0;
}
.carousel__btn:hover { background: #f8f9fa; }
.carousel__btn:disabled { opacity: 0.3; cursor: default; }
.carousel__btn--prev { left: -22px; }
.carousel__btn--next { right: -22px; }

@media (max-width: 768px) {
    .carousel__btn { display: none; }
    .carousel__track { scroll-snap-type: x mandatory; }
    .carousel__track .profile-card,
    .carousel__track .profile-card-wrap { width: 160px; }
    .carousel__track .profile-card .profile-image,
    .carousel__track .profile-card-wrap .profile-image { height: 200px; }
    .carousel--salons .carousel__track .salon-card { width: 240px; }
}

/* Main content & layout */
.main-content { flex: 1; min-height: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.5rem 0 3rem;
    flex-wrap: wrap;
}
.pagination__item {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius);
    font-weight: 500;
    background: white;
    color: var(--dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background 0.15s;
}
.pagination__item:hover { background: var(--light); }
.pagination__item--active { background: var(--primary); color: white; box-shadow: none; }

/* Working status variants */
.working-status--в-смене   { background: #d4edda; color: #155724; }
.working-status--отдыхает  { background: #f8d7da; color: #721c24; }
.working-status--в-отпуске { background: #fff3cd; color: #856404; }

/* Profile card working status chip */
.profile-card__status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 2px 8px;
    margin-bottom: 0.5rem;
}

/* Filters bar */
.filters-bar {
    background: white;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
}
.filters-bar label { font-size: 0.8rem; color: var(--gray); display: block; margin-bottom: 0.2rem; font-weight: 600; }
.filters-bar input[type=text],
.filters-bar select {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) / 2);
    padding: 0.4rem 0.75rem;
    font-size: 0.875rem;
    background: white;
    color: var(--dark);
}
.filters-bar__group { display: flex; flex-direction: column; }
.filters-bar__actions { display: flex; gap: 0.5rem; align-items: flex-end; }

/* ─── Mobile Breakpoints ──────────────────────────────────────── */
@media (max-width: 768px) {
    .header-container { height: 60px; }
    .logo { font-size: 1.25rem; }
    .city-selector { font-size: 0.85rem; }

    .hero { padding: 1rem; margin-top: 0.5rem; margin-bottom: 1rem; }
    .hero h1 { font-size: 1.3rem; }
    .hero p { font-size: 0.9rem; }

    .profiles-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
    .profile-image { height: 220px; }
    .profile-info { padding: 1rem; }
    .profile-info h3 { font-size: 1rem; }

    .salons-grid { grid-template-columns: 1fr; gap: 1rem; }

    .filters-bar { gap: 0.5rem; }
    .filters-bar__group { width: 100%; }
    .filters-bar input[type=text],
    .filters-bar select { width: 100%; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .profiles-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .profile-image { height: 180px; }
    .detail-header h1 { font-size: 1.5rem; }
    .attr-list tr { display: block; }
    .attr-list th,
    .attr-list td { display: block; width: 100%; padding-right: 0; }
}

/* Work-type checklist block */
.profile-id-badge {
    margin: 1.5rem 0 0;
    color: #adb5bd;
    font-size: .8rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.work-type-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.work-type-list--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 2rem;
}
@media (max-width: 600px) {
    .work-type-list--two-col { grid-template-columns: 1fr; }
}
.work-type-item {}
.work-type-item__label {
    display: flex;
    align-items: center;
    gap: .6rem;
}
.work-type-item__check {
    color: #3db6c8;
    flex-shrink: 0;
}
.work-type-item__label strong {
    font-size: 1rem;
}
.work-type-item__comment {
    margin: .35rem 0 0 2rem;
    color: #555;
    font-size: .9rem;
    line-height: 1.4;
}

/* Massage type info icon + tooltip */
.massage-info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: .3rem;
    color: #3db6c8;
    cursor: pointer;
    flex-shrink: 0;
}
.massage-info-icon svg {
    display: block;
}
.massage-info-tooltip {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #f0f0f0;
    font-size: .82rem;
    font-weight: 400;
    line-height: 1.4;
    padding: .5rem .75rem;
    border-radius: 6px;
    width: 220px;
    text-align: left;
    white-space: normal;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.massage-info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a2e;
}
.massage-info-icon:hover .massage-info-tooltip,
.massage-info-icon:focus-within .massage-info-tooltip {
    display: block;
}

/* Age gate overlay */
.age-gate {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.age-gate__box {
    background: white;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.age-gate__badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 2.5rem;
    font-weight: 900;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin-bottom: 1.25rem;
}
.age-gate__title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 0.75rem 0;
}
.age-gate__text {
    color: var(--gray);
    font-size: 0.95rem;
    margin: 0 0 1.75rem 0;
    line-height: 1.5;
}
.age-gate__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.age-gate__yes {
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}
.age-gate__yes:hover { background: var(--primary-hover); }
.age-gate__no {
    background: var(--light);
    color: var(--gray);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    display: block;
    transition: background 0.2s;
}
.age-gate__no:hover { background: var(--border); }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox__img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255,255,255,0.15);
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255,255,255,0.3); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev  { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* ── Footer redesign ─────────────────────────────────────────────────────── */
.footer {
    background: #fce8f3;
    color: #5a3046;
    border-top: 2px solid var(--primary);
    padding: 1.5rem 0;
    margin-top: auto;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.footer-copy {
    font-size: 0.9rem;
}
.footer-age {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 2px;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: #7a3d5c;
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--primary); }

/* Footer nav block */
.footer-nav-block {
    background: #16162a;
    border-top: 1px solid #2a2a3e;
    padding: 2rem 0;
}
.footer-nav-block__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
}
.footer-nav-block__col {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 130px;
}
.footer-nav-block__heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    margin-bottom: 0.25rem;
}
.footer-nav-block__link {
    font-size: 0.82rem;
    color: #999;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-nav-block__link:hover { color: #fff; }

/* Disclaimer block */
.disclaimer-block {
    background: #1e1e2e;
    border-top: 2px solid var(--primary);
    padding: 1rem 0;
}
.disclaimer-block__text {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
}
.disclaimer-block__text strong { color: #aaa; }
.disclaimer-block__text a { color: #aaa; text-decoration: underline; }
.disclaimer-block__text a:hover { color: #fff; }

/* Text page content */
.page-content {
    padding: 2.5rem 1rem 4rem;
    max-width: 860px;
}
.page-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 2rem;
    color: var(--dark);
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}
.page-text {
    line-height: 1.8;
    color: #444;
}
.page-text h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2rem 0 0.75rem;
    color: var(--dark);
}
.page-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
}
.page-text p { margin: 0 0 1rem; }
.page-text ul, .page-text ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}
.page-text li { margin-bottom: 0.35rem; }
.page-text a { color: var(--primary); text-decoration: underline; }

/* ── Profiles top bar (tabs + search + filter) ─────────────────── */
.profiles-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 1.25rem 0 0;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0;
}

/* Tabs */
.profiles-tabs {
    display: flex;
    gap: 0;
}
.profiles-tab {
    display: inline-block;
    padding: 0.65rem 1.1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.profiles-tab:hover { color: var(--dark); }
.profiles-tab--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Top bar right side */
.profiles-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
}

/* Search icon button */
.profiles-icon-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--gray);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.profiles-icon-btn:hover,
.profiles-icon-btn--active {
    color: var(--primary);
    background: #fff0f5;
    border-color: var(--primary);
}

/* Filter button */
.profiles-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    color: var(--gray);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.profiles-filter-btn:hover {
    color: var(--dark);
    border-color: var(--dark);
}
.profiles-filter-btn--active {
    color: var(--primary);
    border-color: var(--primary);
    background: #fff0f5;
}
.profiles-filter-btn:disabled {
    opacity: 0.45;
    cursor: default;
}
.profiles-filter-btn__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    line-height: 1;
}

/* Expandable search bar */
.profiles-search-bar {
    display: none;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.profiles-search-bar--open { display: block; }
.profiles-search-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.profiles-search-form input[type=text] {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) / 2);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    background: white;
    color: var(--dark);
    min-width: 0;
}
.profiles-search-form input[type=text]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,62,140,0.1);
}
.profiles-search-reset {
    background: var(--light);
    color: var(--dark);
}
.profiles-search-reset:hover { background: var(--border); }

/* Heading + count */
.profiles-heading {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin: 1.25rem 0 1rem;
}
.profiles-heading h1 {
    margin: 0;
    font-size: 1.5rem;
}
.profiles-heading__count {
    color: var(--gray);
    font-size: 0.9rem;
}
.profiles-intro {
    margin-bottom: 15px;
}

/* Filter drawer — fullscreen */
/* ── Filter drawer: fullscreen с центрированным контентом ────────────────── */
.filter-drawer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: #fff;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.22s ease;
}
.filter-drawer--open {
    display: flex;
    opacity: 1;
}

.filter-drawer__overlay { display: none; }

.filter-drawer__panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

/* Drag handle — скрыт на desktop */
.filter-drawer__handle { display: none; }

.filter-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.filter-drawer__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}
.filter-drawer__header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.filter-drawer__reset-link {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--gray);
    padding: 0.25rem 0.375rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s;
    white-space: nowrap;
}
.filter-drawer__reset-link:hover { color: var(--dark); }
.filter-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--gray);
    line-height: 1;
    padding: 0 0.125rem;
    transition: color 0.15s;
}
.filter-drawer__close:hover { color: var(--dark); }

.filter-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}

/* Группы фильтров с separator-ами */
.filter-drawer__group {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
}
.filter-drawer__group:last-child { border-bottom: none; }

.filter-drawer__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.625rem;
}
.filter-drawer__select,
.filter-drawer__input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) / 2);
    padding: 0.6rem 0.85rem;
    font-size: 1rem;
    background: white;
    color: var(--dark);
    appearance: auto;
}
.filter-drawer__select:focus,
.filter-drawer__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,62,140,0.1);
}

/* Sticky footer с кнопкой "Показать" */
.filter-drawer__footer {
    flex-shrink: 0;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--border);
    background: #fff;
}
.filter-drawer__submit-btn {
    width: 100%;
    font-size: 0.975rem;
    padding: 0.75rem 1rem;
}
.filter-drawer__count-loading { opacity: 0.6; }

/* ── Range buttons (pill-теги с мульти-выбором) ─────────────────────────── */
.filter-drawer__range-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}
.filter-drawer__range-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.4rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    background: #fff;
    color: var(--dark);
    line-height: 1.3;
}
.filter-drawer__range-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-drawer__range-btn:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.filter-drawer__range-btn:has(input:checked)::before {
    content: '✓';
    font-size: 0.75em;
    font-weight: 700;
}


/* ── Перелинковка: ссылки в таблице атрибутов анкеты ───────────────────────── */
.attr-link {
    color: inherit;
    text-decoration: underline dotted 1px;
    text-underline-offset: 2px;
    transition: color 0.15s;
}
.attr-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 640px) {
    .profiles-tab { padding: 0.55rem 0.75rem; font-size: 0.875rem; }
    .profiles-filter-btn span:not(.profiles-filter-btn__badge) { display: none; }
    .profiles-search-form { flex-wrap: wrap; }
    .profiles-search-form input[type=text] { width: 100%; }
    .profiles-heading h1 { font-size: 1.25rem; }
}
.page-text strong { color: var(--dark); }

/* SEO text block on home page */
.seo-text-section {
    margin: 3rem 0 2rem;
    padding: 2rem 2.5rem;
    background: var(--light);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.seo-text-content {
    line-height: 1.8;
    color: #555;
    font-size: 0.95rem;
}
.seo-text-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--dark);
}
.seo-text-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--dark);
}
.seo-text-content p { margin: 0 0 0.85rem; }
.seo-text-content ul, .seo-text-content ol {
    margin: 0 0 0.85rem;
    padding-left: 1.5rem;
}
.seo-text-content li { margin-bottom: 0.3rem; }
.seo-text-content a { color: var(--primary); text-decoration: underline; }
@media (max-width: 600px) {
    .seo-text-section { padding: 1.25rem 1rem; }
}

/* SEO text block (bottom of listing pages) */
.seo-text-block {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ── Favorites ── */
.profile-card-wrap {
    position: relative;
}
.profile-card-wrap .profile-card {
    display: block;
}

/* Heart button on profile cards */
.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.88);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #bbb;
    transition: color 0.2s, background 0.2s, transform 0.15s;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.fav-btn:hover {
    color: var(--primary);
    background: #fff;
    transform: scale(1.1);
}
.fav-btn--active {
    color: var(--primary);
}
.fav-btn--active svg {
    fill: var(--primary);
}

/* Large heart button on profile detail page */
.detail-header__title-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}
.detail-header__title-row h1 {
    flex: 1;
    margin: 0;
}
.fav-btn--lg {
    position: static;
    width: auto;
    height: auto;
    border-radius: var(--radius);
    padding: 0.45rem 0.9rem;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    background: #fdf0f7;
    color: var(--primary);
    border: 1px solid #f5c6e0;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: none;
    transform: none;
}
.fav-btn--lg:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: none;
}
.fav-btn--lg.fav-btn--active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.fav-btn--lg.fav-btn--active svg {
    fill: #fff;
}
.fav-btn--lg svg {
    flex-shrink: 0;
}

/* Favorites badge in nav */
.fav-nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    margin-left: 3px;
    vertical-align: middle;
    line-height: 1;
}

/* Favorites button in header */
.fav-nav-link.btn {
    background: #fdf0f7;
    color: var(--primary);
    border: 1px solid #f5c6e0;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.fav-nav-link.btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.fav-nav-link.btn svg { display: inline; flex-shrink: 0; }

/* ── Auth pages (login / register / registered) ─────────────────────── */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2.5rem 1rem 3rem;
    min-height: 60vh;
}
.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.09);
    padding: 2rem 2.25rem;
    width: 100%;
    max-width: 460px;
}
.auth-card__header { text-align: center; margin-bottom: 1.5rem; }
.auth-card__title  { margin: 0 0 .3rem; font-size: 1.55rem; font-weight: 700; color: #1a1a1a; }
.auth-card__sub    { margin: 0; color: var(--gray); font-size: .9rem; }
.auth-card__footer { text-align: center; margin: 0; font-size: .9rem; color: var(--gray); }
.auth-card__footer a { color: var(--primary); font-weight: 600; }
.auth-card__footer a:hover { text-decoration: underline; }
.auth-tabs {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.auth-tabs__tab {
    flex: 1; padding: .6rem .5rem;
    background: #fff; border: none; cursor: pointer;
    font-size: .9rem; font-weight: 500; color: var(--gray);
    transition: background .15s, color .15s;
}
.auth-tabs__tab--active { background: var(--primary); color: #fff; font-weight: 600; }
.auth-tabs__tab:not(:last-child) { border-right: 1px solid var(--border); }
.auth-form__group { margin-bottom: 1rem; }
.auth-form__group label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: .88rem; color: #333; }
.auth-form__group input[type="email"],
.auth-form__group input[type="password"],
.auth-form__group input[type="text"],
.auth-form__group select {
    width: 100%; padding: .6rem .8rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-size: .97rem; color: var(--dark); background: #fff;
    transition: border-color .18s; appearance: auto;
}
.auth-form__group input:focus,
.auth-form__group select:focus { outline: none; border-color: var(--primary); }
.auth-btn {
    width: 100%; padding: .75rem;
    background: var(--primary); color: #fff;
    border: none; border-radius: var(--radius);
    font-size: 1rem; font-weight: 600; cursor: pointer;
    margin-top: .4rem; transition: background .18s;
}
.auth-btn:hover { background: var(--primary-hover); }

/* Alert */
.auth-alert {
    padding: .7rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: .9rem;
}

.auth-alert--error {
    background: #ffeef2;
    border: 1px solid #f5c6d4;
    color: #b02a50;
}

/* Divider */
.auth-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0;
}
.auth-alert--success {
    background: #e6f4ea;
    border-left: 4px solid #34a853;
    color: #1e7e34;
    padding: .7rem 1rem;
    border-radius: 6px;
    font-size: .9rem;
    margin-bottom: 1rem;
}
.auth-input--code {
    font-size: 1.6rem;
    letter-spacing: .35em;
    text-align: center;
    font-weight: 700;
}
.auth-resend {
    margin-top: 1rem;
    text-align: center;
}
.auth-btn--link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.auth-btn--link:hover { opacity: .75; }
.auth-back {
    margin-top: .75rem;
    text-align: center;
    font-size: .85rem;
}
.auth-back a { color: var(--gray); text-decoration: none; }
.auth-back a:hover { text-decoration: underline; }

/* ── Cookie consent banner ─────────────────────────────────── */
.cookie-banner {
    display: none; /* shown via JS only when consent is absent */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    padding: .85rem 0;
}
.cookie-banner--visible {
    display: block;
}
.cookie-banner__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.cookie-banner__text {
    margin: 0;
    font-size: .875rem;
    color: var(--dark);
    flex: 1 1 300px;
    line-height: 1.5;
}
.cookie-banner__link {
    color: var(--primary);
    text-decoration: underline;
}
.cookie-banner__link:hover {
    color: var(--primary-hover);
}
.cookie-banner__actions {
    display: flex;
    gap: .6rem;
    flex-shrink: 0;
}
.cookie-banner__btn {
    padding: .45rem 1.2rem;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background .15s, color .15s;
}
.cookie-banner__btn--accept {
    background: var(--primary);
    color: #fff;
}
.cookie-banner__btn--accept:hover {
    background: var(--primary-hover);
}
.cookie-banner__btn--decline {
    background: transparent;
    color: var(--gray);
    border: 1px solid var(--border);
}
.cookie-banner__btn--decline:hover {
    background: var(--light);
    color: var(--dark);
}

@media (max-width: 600px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
    }
    .cookie-banner__actions {
        justify-content: flex-end;
    }
}

/* ========== Rating block ========== */
.rating-block {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 2.5rem 0 2rem;
    text-align: center;
}

.rating-block__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.rating-block__question {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark);
}

/* Summary: filled/empty stars + number + count */
.rating-block__summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--gray);
    flex-wrap: wrap;
    justify-content: center;
}

.rating-block__stars--display {
    display: inline-flex;
    gap: 0.1rem;
}

.rating-block__stars--display .rating-block__star {
    font-size: 1.4rem;
    color: #ddd;
    line-height: 1;
}

.rating-block__stars--display .rating-block__star--filled {
    color: #f5a623;
}

.rating-block__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark);
}

.rating-block__sep {
    color: var(--gray);
}

.rating-block__count {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Interactive vote stars */
.rating-block__vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.rating-block__hint {
    font-size: 0.875rem;
    color: var(--gray);
}

.rating-block__stars--input {
    display: flex;
    gap: 0.2rem;
}

.rating-block__star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2rem;
    color: #ddd;
    padding: 0.1rem 0.2rem;
    line-height: 1;
    transition: color 0.1s, transform 0.1s;
}

.rating-block__star-btn:hover,
.rating-block__star-btn--hover {
    color: #f5a623;
    transform: scale(1.15);
}

.rating-block__star-btn:focus-visible {
    outline: 2px solid var(--primary);
    border-radius: 4px;
}

/* Thank-you message */
.rating-block__thanks {
    font-size: 1rem;
    color: #28a745;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: var(--radius);
    background: #e8f5e9;
}

@media (max-width: 600px) {
    .rating-block__question {
        font-size: 1.1rem;
    }
    .rating-block__star-btn {
        font-size: 1.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   СТРАНИЦА КОНТАКТОВ
   ═══════════════════════════════════════════════════════════════ */

.contact-page {
    padding-bottom: 4rem;
}

.contact-hero {
    padding: 3rem 0 2rem;
    text-align: center;
}

.contact-hero__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--dark);
}

.contact-hero__subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    margin: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2.5rem;
    align-items: start;
}

/* Info block */
.contact-info__block {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.contact-info__block:last-child {
    margin-bottom: 0;
}

.contact-info__heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 0.75rem;
}

.contact-info__text {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.contact-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.contact-info__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(232, 62, 140, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}

.contact-info__icon--tg {
    background: rgba(39, 160, 211, 0.12);
    color: #27a0d3;
}

.contact-info__label {
    display: block;
    font-size: 0.78rem;
    color: var(--gray);
    margin-bottom: 0.15rem;
}

.contact-info__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
}

.contact-info__link:hover {
    text-decoration: underline;
}

/* Form block */
.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.contact-form-wrap__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 1.5rem;
    color: var(--dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-form__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
}

.contact-form__req {
    color: var(--primary);
}

.contact-form__input {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--dark);
    background: #fff;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.contact-form__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232, 62, 140, 0.12);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form__submit {
    align-self: flex-start;
    padding: 0.65rem 1.75rem;
}

/* Success state */
.contact-success {
    text-align: center;
    padding: 2.5rem 1rem;
}

.contact-success__icon {
    color: #28a745;
    margin-bottom: 1rem;
}

.contact-success__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--dark);
}

.contact-success__text {
    color: var(--gray);
    margin: 0 0 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   ДОПОЛНИТЕЛЬНАЯ АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ═══════════════════════════════════════════════════════════════ */

/* Хедер: nav переходит на вторую строку на мобилках */
@media (max-width: 768px) {
    /* Разрешаем переносить строки в хедере */
    .header-container {
        flex-wrap: wrap;
        height: auto;
        padding: 0.5rem 0;
        align-items: center;
        row-gap: 0;
    }
    .header-left {
        flex: 1;
        min-width: 0;
    }
    .header-right {
        flex-shrink: 0;
        gap: 0.75rem;
    }
    /* Nav переходит на 2-ю строку, горизонтально прокручивается */
    .header-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.2rem 0 0.35rem;
        border-top: 1px solid #f0f0f0;
        gap: 0;
        flex-shrink: 0;
    }
    .header-nav::-webkit-scrollbar { display: none; }
    .header-nav__link {
        padding: 0.3rem 0.7rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    /* Preholder: скрыть длинный дисклеймер, оставить только ссылки */
    .preheader__disclaimer { display: none; }
    .preheader__links { margin-left: auto; }

    /* Favorites: скрыть текст, оставить иконку */
    .fav-nav-link.btn .fav-nav-link-text { display: none; }
    .fav-nav-link.btn {
        padding: 0.45rem 0.6rem;
        min-width: unset;
    }

    /* Убираем sticky с сайдбара — на мобилке он блокирует скролл к описанию */
    .detail-sidebar { position: static; }

    /* Уменьшить padding в секциях детальной страницы */
    .detail-section { padding: 1rem; }

    /* Кнопки фильтра в хедере — текст скрываем */
    .header-filter-btn .filter-btn-text { display: none; }
    .header-filter-btn {
        padding: 0.45rem 0.6rem;
    }

    /* Уменьшить отступы в сервисных блоках */
    .service-item { padding: 0.6rem; }

    /* Текстовые страницы */
    .page-title { font-size: 1.5rem; }
    .page-content { padding: 1.5rem 1rem 3rem; }
}

/* Очень маленькие экраны (до 480px) */
@media (max-width: 480px) {
    /* Лого компактнее */
    .logo { font-size: 1.1rem; }
    .city-switcher__btn { font-size: 0.8rem; }

    /* Preheader скрываем полностью */
    .preheader { display: none; }

    /* Хедер: убрать лишние отступы */
    .header-right { gap: 0.4rem; }

    /* Заголовок h1 на детальной странице */
    .detail-header h1 { font-size: 1.4rem; }

    /* Контактные кнопки: на всю ширину */
    .contact-buttons {
        flex-direction: column;
    }
    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    /* "Нет телефона" и disabled кнопки оставляем как есть */
    .contact-btn--no-phone,
    .contact-btn--disabled {
        width: auto;
    }

    /* Сервисы: цена под именем */
    .service-item {
        flex-direction: column;
        gap: 0.4rem;
    }
    .service-price {
        align-items: flex-start;
    }

    /* Галерея thumbnails: оставляем 3 столбца, ограничиваем высоту */
    .detail-gallery {
        grid-template-columns: repeat(3, 1fr);
        max-height: 200px;
    }

    /* Hero */
    .hero h1 { font-size: 1.15rem; }
    .hero p { font-size: 0.85rem; }

    /* Breadcrumbs */
    .breadcrumb { font-size: 0.8rem; }

    /* Страницы профилей: уменьшить верхние отступы */
    .detail-page { padding-top: 1rem; }

    /* Pagination: меньше padding */
    .pagination__item { padding: 0.35rem 0.65rem; font-size: 0.875rem; }

    /* Footer: стекируем */
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .footer-links { gap: 0.75rem; }

    /* Salon-detail и related: убрать большие отступы снизу */
    .profiles-grid { margin-bottom: 2rem; }
    .salons-grid { margin-bottom: 2rem; }
    .carousel { margin-bottom: 2rem; }

    /* Топбар на мобиле: tabs прокручиваем */
    .profiles-topbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .profiles-topbar::-webkit-scrollbar { display: none; }

    /* Заголовок-секции */
    .section-header h2 { font-size: 1.1rem; }

    /* Контакты */
    .contact-layout { grid-template-columns: 1fr; }
    .contact-hero { padding: 2rem 0 1rem; }
    .contact-hero__title { font-size: 1.6rem; }

    /* 404 */
    .not-found__code { font-size: 6rem; }
    .not-found__title { font-size: 1.5rem; }
    .not-found__actions { flex-direction: column; align-items: center; }
    .not-found__btn { width: 100%; max-width: 280px; text-align: center; }
    .not-found__suggestions-title { font-size: 1.1rem; }
}

/* =============================================
   404 — Страница не найдена
   ============================================= */

.not-found {
    padding-bottom: 3rem;
}

.not-found__hero {
    background: linear-gradient(135deg, #fff0f6 0%, #fce4ec 50%, #fdf2ff 100%);
    text-align: center;
    padding: 4rem 1rem 3rem;
    position: relative;
    overflow: hidden;
}

.not-found__hero::before,
.not-found__hero::after {
    content: '💕';
    position: absolute;
    font-size: 6rem;
    opacity: 0.07;
    pointer-events: none;
}
.not-found__hero::before { top: -1rem; left: -1rem; transform: rotate(-20deg); }
.not-found__hero::after  { bottom: -1rem; right: -1rem; transform: rotate(15deg); }

.not-found__code {
    font-size: 9rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #c850a0 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -4px;
}

.not-found__icon {
    margin-bottom: 1rem;
    display: inline-block;
    animation: not-found-bounce 2s ease-in-out infinite;
}

@keyframes not-found-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.not-found__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 1rem;
}

.not-found__desc {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.not-found__actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.not-found__btn {
    display: inline-block;
    padding: 0.7rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}
.not-found__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 62, 140, 0.3);
}

.not-found__btn--primary {
    background: var(--primary);
    color: #fff;
}
.not-found__btn--primary:hover { background: var(--primary-hover); color: #fff; }

.not-found__btn--outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.not-found__btn--outline:hover { background: var(--primary); color: #fff; }

.not-found__suggestions {
    padding-top: 3rem;
}

.not-found__suggestions-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.not-found__suggestions-icon {
    font-size: 1.5rem;
}

.not-found__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.not-found__more {
    text-align: center;
    margin-top: 2rem;
}

.not-found__more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: background 0.15s, color 0.15s;
}
.not-found__more-link:hover {
    background: var(--primary);
    color: #fff;
}
