@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #EDEAE4;
    --bg-card: #FAF8F4;
    --bg-dark: #1A1714;
    --accent: #B5603A;
    --accent-dark: #8A4A2C;
    --text: #1A1714;
    --text-secondary: #6A6058;
    --text-muted: #9A9088;
    --border: #D8D2C8;
    --radius: 20px;
    --radius-sm: 12px;
    --radius-pill: 100px;
    --font: 'Urbanist', sans-serif;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

html {
    background: var(--bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover { opacity: 0.75; }

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

/* ========================================
   ШАПКА
   ======================================== */
.site-header {
    background: var(--bg);
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
    max-width: 1200px;
    margin: 0 auto;
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
    margin-right: 12px;
}

.burger-menu span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
}

.site-logo-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1;
}

.site-logo-name span {
    color: var(--accent);
}

.site-logo-slogan {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-top: 2px;
    display: block;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.header-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.header-nav a:hover {
    color: var(--text);
    opacity: 1;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--accent);
    color: #FAF8F4;
    border: none;
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.filter-toggle:hover {
    background: var(--accent-dark);
}

/* ========================================
   ГЛАВНАЯ — HERO
   ======================================== */
.hero-section {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://merhabaza.ru/wp-content/uploads/2026/04/%D0%9A%D0%BE%D0%B2%D0%B5%D1%80-%D1%84%D0%BE%D0%BD%D0%BE%D0%B2%D1%8B%D0%B9.jpeg') center/cover no-repeat;
    opacity: 0.18;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg);
    opacity: 0.55;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
    max-width: 700px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 32px;
}

.hero-subtitle {
    display: none;
}

.hero-content-row {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-right {
    display: none;
}

.hero-btn {
    display: inline-block;
    background: var(--accent);
    color: #FAF8F4;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    transition: background 0.2s, transform 0.15s;
    letter-spacing: -0.2px;
}

.hero-btn:hover {
    background: var(--accent-dark);
    opacity: 1;
    transform: translateY(-1px);
}

/* ========================================
   КАТЕГОРИИ
   ======================================== */
.categories-section {
    padding: 28px 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title { display: none; }

.categories-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.categories-grid::-webkit-scrollbar { display: none; }

.category-card {
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: 18px;
    padding: 16px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
    border: none;
    min-width: 90px;
}

.category-card:hover {
    background: var(--text);
    color: #FAF8F4;
    opacity: 1;
    transform: translateY(-2px);
}

.category-icon {
    font-size: 24px;
    margin-bottom: 8px;
    display: block;
}

.category-name {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ========================================
   БЛОК "ПОРТАЛ РЕКОМЕНДУЕТ"
   ======================================== */
.featured-section {
    background: var(--bg);
    padding: 0 24px 20px;
}

.featured-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   БЛОК CTA
   ======================================== */
.add-profile-section {
    background: var(--bg-dark);
    padding: 52px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.add-profile-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://merhabaza.ru/wp-content/uploads/2026/04/%D0%9A%D0%BE%D0%B2%D0%B5%D1%80-%D1%84%D0%BE%D0%BD%D0%BE%D0%B2%D1%8B%D0%B9.jpeg') center/cover;
    opacity: 0.07;
}

.add-profile-section h2 {
    font-size: 28px;
    font-weight: 800;
    color: #FAF8F4;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.add-profile-section p {
    font-size: 14px;
    color: rgba(250,248,244,0.6);
    margin-bottom: 28px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.add-profile-btn {
    display: inline-block;
    background: var(--accent);
    color: #FAF8F4;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    transition: background 0.2s;
    position: relative;
    z-index: 1;
}

.add-profile-btn:hover {
    background: var(--accent-dark);
    opacity: 1;
}

/* ========================================
   КАТАЛОГ
   ======================================== */
.catalog-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 40px;
}

@media (max-width: 768px) {
    .catalog-page {
        padding: 20px 16px;
    }
}

.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.catalog-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.catalog-count strong {
    color: var(--text);
    font-weight: 700;
}

/* ========================================
   КАРТОЧКА ПРОФИЛЯ
   ======================================== */
.profiles-list { }

.profile-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 10px;
    transition: transform 0.15s;
}

.profile-card:hover {
    transform: translateY(-1px);
}

.profile-card-top {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}

.profile-photo-wrap {
    position: relative;
    flex-shrink: 0;
    align-self: flex-start;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
}

.profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: #E8E2D8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #B8AEA4;
}

.profile-badges {
    position: absolute;
    bottom: 6px;
    left: 6px;
    display: flex;
    gap: 3px;
}

/* ========================================
   БЕЙДЖИ ПРОФИЛЯ
   ======================================== */
.badge {
    height: 20px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 1.5px solid var(--bg-card);
    padding: 0 6px;
    gap: 3px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.badge-verified {
    background: #4A7A49;
    color: white;
}

.badge-featured {
    background: #B5651D;
    color: white;
}

.badge-top {
    background: var(--dark);
    color: white;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
    position: relative;
}

.profile-name-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.profile-name-row h3 {
    margin: 0;
}

.profile-name-row .profile-rating {
    margin: 0;
}

.profile-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.3px;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.profile-rating-star {
    color: var(--accent);
    font-size: 13px;
}

.profile-rating-score {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.profile-rating-reviews {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.profile-activities {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 3px;
}

.profile-city {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.profile-description {
    font-size: 14px;
    color: var(--ink-2);
    margin-bottom: 12px;
    line-height: 1.6;
}

.profile-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid #EDE8E0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink-2);
    padding: 7px 12px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: transform .2s, border-color .2s, background .2s, color .2s;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1;
}

.contact-link:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: var(--accent);
    color: #FBF9F3;
    opacity: 1;
}

.contact-link-phone {
    color: var(--ink-2);
}

.profile-worktime {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.profile-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #EDE8E0;
}

.route-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--dark);
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.route-btn:hover { opacity: 0.85; }

.profile-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 700;
}

.profile-menu-btn:hover {
    background: #EDE8E0;
    color: var(--text);
}

.profile-menu-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    background: var(--bg-card);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    min-width: 200px;
    z-index: 10;
    display: none;
    overflow: hidden;
    border: 1px solid var(--border);
}

.profile-menu-dropdown.active { display: block; }

.profile-menu-dropdown a,
.profile-menu-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.profile-menu-dropdown a:hover,
.profile-menu-dropdown button:hover {
    background: #F0EBE3;
    opacity: 1;
}

/* ========================================
   ПАГИНАЦИЯ
   ======================================== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 0;
}

.pagination-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 9px 18px;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
    text-decoration: none;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--text);
    color: #FAF8F4;
    border-color: var(--text);
    opacity: 1;
}

.pagination-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   ФИЛЬТР
   ======================================== */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26,23,20,0.5);
    z-index: 200;
    display: none;
    backdrop-filter: blur(2px);
}

.filter-overlay.active { display: block; }

.filter-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 340px;
    height: 100%;
    background: var(--bg-card);
    z-index: 201;
    transition: right 0.3s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
    padding: 28px 24px;
}

.filter-panel.active { right: 0; }

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.filter-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.filter-close {
    background: #EDE8E0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    transition: background 0.2s;
}

.filter-close:hover { background: var(--border); }

.filter-group { margin-bottom: 22px; }

.filter-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239A9088' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
}

.filter-search-btn {
    width: 100%;
    background: var(--accent);
    color: #FAF8F4;
    border: none;
    padding: 15px;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
    letter-spacing: -0.2px;
}

.filter-search-btn:hover { background: var(--accent-dark); }

/* ========================================
   МОДАЛЬНЫЕ ОКНА — фикс iOS клавиатуры
   ======================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26,23,20,0.5);
    z-index: 300;
    backdrop-filter: blur(2px);
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.active {
    display: block;
}

.modal {
    background: var(--bg-card);
    border-radius: 24px;
    width: calc(100% - 32px);
    max-width: 600px;
    overflow-y: visible;
    padding: 36px 40px;
    position: relative;
    box-sizing: border-box;
    margin: 60px auto;
}

@media (max-width: 768px) {
    /* Модальное окно на мобильном */
    .modal {
        padding: 24px 16px;
        border-radius: 20px;
        width: calc(100% - 24px);
        margin: 40px auto;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #EDE8E0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    transition: background 0.2s;
    line-height: 1;
}

.modal-close:hover { background: var(--border); }

.modal-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    padding-right: 40px;
}

.modal-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   МОБИЛЬНОЕ МЕНЮ
   ======================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26,23,20,0.5);
    z-index: 200;
    display: none;
}

.mobile-menu-overlay.active { display: block; }

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: var(--bg-card);
    z-index: 201;
    transition: left 0.3s cubic-bezier(0.4,0,0.2,1);
    padding: 28px 24px;
}

.mobile-menu.active { left: 0; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.mobile-menu-close {
    background: #EDE8E0;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu-nav a {
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 12px;
    border-radius: 12px;
    transition: background 0.15s;
    display: block;
    letter-spacing: -0.2px;
}

.mobile-menu-nav a:hover {
    background: #EDE8E0;
    opacity: 1;
}

/* ========================================
   ПРОФИЛЬ — МОДАЛЬНЫЕ КНОПКИ
   ======================================== */
.profile-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-modal-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}

.profile-modal-btn.primary {
    background: var(--accent);
    color: #FAF8F4;
}

.profile-modal-btn.secondary {
    background: #EDE8E0;
    border: 1px solid var(--border);
}

.profile-modal-btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.btn-icon { font-size: 26px; flex-shrink: 0; }

.profile-modal-btn strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.2px;
}

.profile-modal-btn p {
    font-size: 12px;
    opacity: 0.75;
    margin: 0;
    line-height: 1.4;
}

/* Новости */
.news-item {
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.news-item:last-child { border-bottom: none; }

.news-item h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.news-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* ========================================
   ФОРМА ПРОФИЛЯ
   ======================================== */
.profile-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 32px 20px;
}

.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}

.form-label span { color: var(--accent); }

.form-input,
.form-textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-card);
    transition: border-color 0.2s;
}
.form-select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-card);
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent);
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

.form-submit {
    width: 100%;
    background: var(--accent);
    color: #FAF8F4;
    border: none;
    padding: 15px;
    border-radius: var(--radius-pill);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: -0.2px;
    margin-top: 8px;
}

.form-submit:hover { background: var(--accent-dark); }

.form-terms {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.6;
}

.form-terms a {
    color: var(--accent);
}

.gmail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    padding: 13px;
    border-radius: 14px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text);
    margin-bottom: 20px;
}

.gmail-btn:hover {
    border-color: var(--accent);
}

.form-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
    position: relative;
    font-weight: 500;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 38%;
    height: 1px;
    background: var(--border);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* Загрузка фото */
.photo-upload {
    border: 1.5px dashed var(--border);
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.photo-upload:hover { border-color: var(--accent); }

.photo-upload-placeholder p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ========================================
   ОТЗЫВЫ
   ======================================== */
.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child { border-bottom: none; }

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.review-header strong {
    font-size: 14px;
    font-weight: 700;
}

.review-stars { color: var(--accent); }

.review-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.review-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.star-rating span { transition: color 0.1s; }

/* ========================================
   РЕЙТИНГ ЗВЁЗДЫ
   ======================================== */
.star-rating {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

/* ========================================
   НЕТ РЕЗУЛЬТАТОВ
   ======================================== */
.no-results {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.no-results p {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
}

/* ========================================
   ПОДВАЛ
   ======================================== */
.site-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 24px 20px;
    text-align: center;
    margin-top: 40px;
}

.site-footer p {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.site-footer a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--text);
    opacity: 1;
}

/* ========================================
   КРУГЛАЯ КАРТА
   ======================================== */
.hero-title-mobile { display: none; }
.hero-title-desktop { display: block; }
.btn-profile-header { }
@media (max-width: 768px) {
    .is-catalog .btn-profile-header { display: none !important; }
    .is-profile .btn-profile-header { display: none !important; }
}
.hero-map-round { display: none; }

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .burger-menu { display: flex; }
    .hero-inner { padding: 36px 20px 48px; }
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    .hero-content-row {
        flex-direction: column !important;
        min-height: auto !important;
        gap: 24px !important;
    }
    .hero-right {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        display: flex !important;
        justify-content: center !important;
        order: -1 !important;
    }
    .hero-left { order: 1 !important; }
    .hero-map-circle {
        width: 200px !important;
        height: 200px !important;
    }
    .filter-panel { width: 100%; }
    .modal {
        width: 96%;
        padding: 24px 20px;
        border-radius: 20px;
    }
    .add-profile-section { padding: 40px 20px; }
    .add-profile-section h2 { font-size: 22px; }
    .feat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 16px !important;
    }
    .feat-card { padding: 10px !important; }
    .hero-title-mobile { display: block; }
    .hero-title-desktop { display: none; }
    .hero-grid > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .hero-grid > div:first-child p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .cta-title { font-size: 24px !important; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 30px !important; }
    .category-card { min-width: 80px; padding: 14px 14px; }
    /* Размер фото профиля на маленьких экранах */
    .profile-photo, .profile-photo-placeholder { width: 90px; height: 90px; }
}

/* ========================================
   НОВЫЕ СТИЛИ ДЛЯ ГЛАВНОЙ
   ======================================== */
:root {
    --bg: #F2EEE6;
    --bg-soft: #EBE6DB;
    --bg-card: #FBF9F3;
    --ink: #1A1612;
    --ink-2: #3B342C;
    --mute: #7A6F5F;
    --mute-2: #A89B85;
    --line: #D9D1BE;
    --line-2: #C4BAA1;
    --accent: #B5651D;
    --dark: #1C1915;
}

body {
    font-family: 'Inter Tight', system-ui, -apple-system, sans-serif !important;
    background-color: var(--bg) !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><g fill='none' stroke='%231A1612' stroke-width='0.7' opacity='0.06'><path d='M70 14 L82 36 L106 36 L87 52 L94 76 L70 62 L46 76 L53 52 L34 36 L58 36 Z'/><circle cx='70' cy='70' r='26'/><circle cx='70' cy='70' r='14'/><path d='M24 24 L48 48 M116 24 L92 48 M24 116 L48 92 M116 116 L92 92'/></g></svg>") !important;
    background-size: 140px 140px !important;
    background-attachment: fixed !important;
}

.ornament-bg {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%231A1612' stroke-width='0.6' opacity='0.1'><path d='M60 10 L70 30 L90 30 L74 44 L80 64 L60 52 L40 64 L46 44 L30 30 L50 30 Z'/><circle cx='60' cy='60' r='22'/><circle cx='60' cy='60' r='12'/><path d='M0 60 L120 60 M60 0 L60 120'/><path d='M20 20 L40 40 M100 20 L80 40 M20 100 L40 80 M100 100 L80 80'/></g></svg>");
    background-size: 120px 120px;
}

.carpet-bg {
    background-color: #8B4A2B;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240'><g fill='none' stroke='%23F2EEE6' stroke-width='0.8' opacity='0.55'><path d='M120 20 L138 52 L172 56 L148 80 L156 114 L120 98 L84 114 L92 80 L68 56 L102 52 Z'/><circle cx='120' cy='120' r='48'/><circle cx='120' cy='120' r='32'/><circle cx='120' cy='120' r='16'/></g></svg>"), radial-gradient(ellipse at 30% 30%, #A65A33 0%, #7A3E22 55%, #5C2D18 100%);
    background-size: 240px 240px, cover;
}

/* Шапка */
.site-header {
    background: rgba(255,255,255,0.82) !important;
    backdrop-filter: blur(14px) !important;
    border-bottom: 1px solid var(--line) !important;
    box-shadow: none !important;
}

.site-logo-name {
    font-weight: 600 !important;
    font-size: 18px !important;
    letter-spacing: -0.01em !important;
    color: var(--ink) !important;
}

.header-nav a {
    font-size: 14px !important;
    color: var(--ink-2) !important;
    font-weight: 500 !important;
}

.header-nav a:hover {
    color: var(--accent) !important;
    opacity: 1 !important;
}

.filter-toggle {
    background: transparent !important;
    border: 1px solid var(--line-2) !important;
    color: var(--ink) !important;
    font-size: 13px !important;
    padding: 9px 16px !important;
}

.filter-toggle:hover {
    border-color: var(--ink) !important;
    background: var(--ink) !important;
    color: #FBF9F3 !important;
}

/* Подвал */
.site-footer {
    background: var(--bg-soft) !important;
    border-top: 1px solid var(--line) !important;
}

/* Каталог */
.catalog-page {
    background: var(--bg) !important;
}

.profile-card {
    background: #FDFCF9 !important;
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
    padding: 24px !important;
    position: relative !important;
}

.route-btn {
    background: var(--ink) !important;
}

.filter-panel {
    background: var(--bg-card) !important;
}

.modal {
    background: var(--bg-card) !important;
}

/* Фикс select для Safari десктоп и мобильный */
.form-select {
    -webkit-appearance: none !important;
    appearance: none !important;
    height: 52px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
}

.leaflet-attribution-flag { display: none !important; }
.leaflet-control-attribution img { display: none !important; }

.profile-card-highlighted {
    border: 2px solid var(--accent) !important;
    background: linear-gradient(135deg, #FBF9F3 0%, #FFF5EC 100%) !important;
}

/* ========================================
   ИКОНКИ СОЦСЕТЕЙ В ПОЛЯХ ФОРМЫ
   ======================================== */
.social-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.social-icon {
    position: absolute;
    left: 13px;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.social-input {
    padding-left: 42px !important;
}

/* ========================================
   КНОПКА МАРШРУТА — стиль как contact-link
   ======================================== */
.route-btn {
    background: #F9F6F0 !important;
    color: var(--ink-2) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    border: 1px solid var(--line) !important;
    transition: transform .2s, border-color .2s, background .2s, color .2s !important;
}
.route-btn:hover {
    transform: translateY(-1px) !important;
    border-color: #49678D !important;
    background: #49678D !important;
    color: #FBF9F3 !important;
    opacity: 1 !important;
}

/* Скрываем значок reCAPTCHA — проверка работает в фоне */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* ========================================
   МОДАЛЬНЫЕ ОКНА — ШИРОКАЯ ВЕРСИЯ
   ======================================== */
.modal-wide {
    max-width: 860px;
}

/* ========================================
   БЛОК НОВОСТЕЙ
   ======================================== */
.news-card {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.news-card:last-child {
    border-bottom: none;
}

.news-card-img {
    width: 120px;
    height: 90px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.news-card-body {
    flex: 1;
}

.news-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.news-card-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.news-card-text img {
    width: 100%;
    border-radius: 12px;
    margin: 12px 0;
    height: auto;
    display: block;
}

.news-card-text p {
    margin-bottom: 10px;
}

.news-card-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    /* Новости на мобильном — фото сверху */
    .news-card {
        flex-direction: column;
    }
    .news-card-img {
        width: 100%;
        height: 160px;
    }
}

/* ========================================
   БЛОК О НАС
   ======================================== */
.about-block {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: var(--bg-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 12px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   БЛОК КОНТАКТЫ
   ======================================== */
.contacts-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contacts-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: 16px;
}

.contacts-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--line);
}

.contacts-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.contacts-item a {
    color: var(--accent);
    font-weight: 600;
}

/* Заголовок блока рекомендует — по центру на мобильном */
@media (max-width: 768px) {
    .featured-title-wrap {
        justify-content: center !important;
        padding: 0 16px !important;
    }
}

/* ========================================
   УБИРАЕМ ГОЛУБУЮ ПОДСВЕТКУ ПРИ НАЖАТИИ НА АНДРОИД
   ======================================== */
* {
    -webkit-tap-highlight-color: transparent;
}

/* ========================================
   ЗАДИЗЕЙБЛЕННЫЕ СЕЛЕКТЫ ВИДОВ ДЕЯТЕЛЬНОСТИ — МОБИЛЬНЫЙ
   ======================================== */
@media (max-width: 768px) {
    select:disabled {
        opacity: 0.5;
        color: var(--mute);
    }
}

/* ========================================
   SELECT2 — стилизация под сайт
   ======================================== */
select.tomselected {
    display: none !important;
}

.select2-container {
    width: 100% !important;
    margin-bottom: 8px !important;
}

.select2-container--default .select2-selection--multiple {
    border: 1.5px solid var(--border) !important;
    border-radius: 14px !important;
    background: var(--bg-card) !important;
    min-height: 52px !important;
    padding: 8px 16px !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: var(--accent) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--bg-soft) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    padding: 4px 10px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--ink) !important;
    margin: 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: var(--mute) !important;
    margin-right: 4px !important;
    font-size: 14px !important;
    border-right: none !important;
    padding-right: 4px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: var(--accent) !important;
    background: none !important;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    font-family: inherit !important;
    font-size: 14px !important;
    color: var(--text) !important;
    min-width: 200px !important;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--ink-2) !important;
    min-width: 200px !important;
    padding: 0 !important;
    margin: 4px 0 !important;
    height: 32px !important;
    line-height: 32px !important;
}

.select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: var(--ink-2) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.select2-dropdown {
    border: 1.5px solid var(--border) !important;
    border-radius: 14px !important;
    background: var(--bg-card) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    margin-top: 4px !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1.5px solid var(--border) !important;
    border-radius: 8px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    color: var(--text) !important;
}

.select2-results__option {
    font-family: inherit !important;
    font-size: 14px !important;
    padding: 10px 16px !important;
    color: var(--text) !important;
}

.select2-results__option--highlighted {
    background: var(--bg-soft) !important;
    color: var(--ink) !important;
}

.select2-results__group {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: var(--mute) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 10px 16px 4px !important;
}

.select2-results__option[aria-disabled="true"] {
    color: var(--mute) !important;
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.select2-container--default .select2-results__option--selected {
    background: var(--bg-soft) !important;
    color: var(--mute) !important;
    opacity: 0.5 !important;
}

/* Активное поле — placeholder темного цвета */
.select2-container--default:not(.select2-container--disabled) .select2-selection--single .select2-selection__placeholder {
    color: var(--ink-2) !important;
}

/* Задизейбленное поле — placeholder светлого цвета */
.select2-container--disabled .select2-selection--single .select2-selection__placeholder {
    color: var(--mute) !important;
    opacity: 0.5 !important;
}

/* Задизейбленное поле — граница светлее */
.select2-container--disabled .select2-selection--single {
    border-color: var(--line) !important;
    background: var(--bg-soft) !important;
}

/* Уже выбранные виды деятельности в списке — выделяем серым */
.select2-results__option[aria-disabled="true"] {
    color: var(--mute) !important;
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

/* Карта не перекрывает шапку при скролле */
#map, #editMap {
    z-index: 0 !important;
}

/* ========================================
   ШАПКА — выравнивание по ширине каталога на десктопе
   ======================================== */
@media (min-width: 769px) {
    .header-inner {
        max-width: 1080px;
        padding: 0 1px;
    }
}

/* ========================================
   SELECT2 — фильтр каталога
   ======================================== */
#filter-activity + .select2-container .select2-selection--single {
    height: 52px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: 14px !important;
    background: var(--bg) !important;
    display: flex !important;
    align-items: center !important;
}

#filter-activity + .select2-container .select2-selection__rendered {
    font-family: var(--font) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--ink) !important;
    padding-left: 16px !important;
    line-height: 52px !important;
}

#filter-activity + .select2-container .select2-selection__arrow {
    height: 52px !important;
    right: 12px !important;
}

/* ========================================
   МЕНЮ ТРИ ТОЧКИ — прижать к правому верхнему углу карточки
   ======================================== */
.profile-menu-btn {
    margin: 0;
    padding: 4px 8px !important;
    line-height: 1 !important;
}

/* Страницы условий и политики */
.page-template-default .entry-content,
.page-id-terms .entry-content,
body.page .entry-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 40px;
    background: var(--bg-soft, #F2EEE6);
    font-family: var(--font, inherit);
    color: var(--ink, #1a1a1a);
    line-height: 1.7;
}