/* ============================================================================
   RENTMAN24 — style.css для страницы анкеты
   ============================================================================ */

/* ===== VARIABLES ===== */
:root {
  --bg: #f3f3f3;
  --card: #fff;
  --gold: #f7eb01;
  --line: #e6e6e6;
  --black: #000;
  --text: #121212;
  --muted: #6d6d6d;
  --red: #E11A2B;
  --tg: #0088cc;
  --wa: #25D366;
  --header-bg: #000;
  --hero-text: #333;
  --stats-bg: #f7f7f7;
  --stats-border: #e0e0e0;
  --stat-label: #2c2c2c;
  --stat-value: #000;
  --description-text: #1e1e1e;
  --review-card-bg: #fff;
  --review-name: #222;
  --review-text: #555;
  --modal-bg: #fff;
  --modal-text: #121212;
  --input-border: #ddd;
  --dropdown-bg: #1a1a1a;
  --filter-bg: #fff;
  --filter-text: #333;
  --filter-border: #ddd;
  --button-dark-bg: #000;
  --button-dark-text: #fff;
  --no-data-bg: #fff;
  --no-data-text: #666;
  --no-data-border: #e6e6e6;
  --service-card-bg: #f2f2f2;
}

.dark-theme {
  --bg: #121212;
  --card: #1e1e1e;
  --line: #2a2a2a;
  --black: #1a1a1a;
  --text: #e0e0e0;
  --muted: #a0a0a0;
  --header-bg: #0a0a0a;
  --hero-text: #b0b0b0;
  --stats-bg: #1a1a1a;
  --stats-border: #2a2a2a;
  --stat-label: #b0b0b0;
  --stat-value: #e0e0e0;
  --description-text: #b0b0b0;
  --review-card-bg: #1e1e1e;
  --review-name: #e0e0e0;
  --review-text: #b0b0b0;
  --modal-bg: #1e1e1e;
  --modal-text: #e0e0e0;
  --input-border: #3a3a3a;
  --dropdown-bg: #1a1a1a;
  --filter-bg: #2a2a2a;
  --filter-text: #e0e0e0;
  --filter-border: #444;
  --button-dark-bg: #2a2a2a;
  --button-dark-text: #e0e0e0;
  --no-data-bg: #1e1e1e;
  --no-data-text: #a0a0a0;
  --no-data-border: #2a2a2a;
  --service-card-bg: #2a2a2a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

button { font: inherit; cursor: pointer; border: none; background: none; }

/* ============================================================================
   HEADER
   ============================================================================ */
.header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1400px;
  height: 56px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.h-icon-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
  padding: 0;
}
.h-icon-btn:hover { opacity: 0.75; }
.h-icon-btn svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  display: block;
}

.header-logo {
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .4px;
  white-space: nowrap;
}
.header-logo span { color: var(--red); }

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

/* ===== COUNTRY DROPDOWN ===== */
.country-selector {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.country-selector .country-btn {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  white-space: nowrap;
}

.country-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.country-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--dropdown-bg);
  border-radius: 16px;
  min-width: 160px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  padding: 6px;
}
.country-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.country-option {
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
}
.country-option:hover { background: rgba(255, 255, 255, 0.1); }
.country-option img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ===== CITY DROPDOWN ===== */
.city-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
}
.city-dropdown .city {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}
.city-dropdown .city.active-city {
  color: #fff;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1;
  min-height: 34px;
  white-space: nowrap;
  font-size: 14px;
}
.city-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--dropdown-bg);
  border-radius: 16px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  padding: 6px;
}
.city-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.city-option {
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  border-radius: 10px;
}
.city-option:hover { background: rgba(255, 255, 255, 0.1); }

/* ===== LANG SELECTOR ===== */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  flex-shrink: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  min-height: 34px;
}
.lang-selector img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
}
.lang-selector .lang {
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  white-space: nowrap;
}
.lang-selector svg {
  width: 10px;
  height: 10px;
  color: #fff;
  flex-shrink: 0;
}
.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--dropdown-bg);
  border-radius: 16px;
  min-width: 150px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  overflow: hidden;
  padding: 6px;
}
.lang-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-option {
  padding: 10px 14px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
}
.lang-option:hover { background: rgba(255, 255, 255, 0.1); }
.lang-option img { width: 20px; height: 20px; border-radius: 50%; }

/* ============================================================================
   BOTTOM NAV
   ============================================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--header-bg);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0 20px;
  z-index: 999;
  min-height: 60px;
  height: auto;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #888;
  font-size: 10px;
  gap: 2px;
  padding: 4px 12px;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  flex: 1;
  max-width: 80px;
  text-decoration: none;
}
.bottom-nav-item svg { width: 24px; height: 24px; stroke: #888; transition: stroke 0.2s; }
.bottom-nav-item span { font-size: 9px; font-weight: 500; color: #888; transition: color 0.2s; }
.bottom-nav-item:hover,
.bottom-nav-item.active { color: var(--red); }
.bottom-nav-item:hover svg,
.bottom-nav-item.active svg { stroke: var(--red); }
.bottom-nav-item:hover span,
.bottom-nav-item.active span { color: var(--red); }
.bottom-nav-item .favorites-badge {
  position: absolute;
  top: -2px;
  right: 4px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ============================================================================
   CONTACT FLOAT MODAL
   ============================================================================ */
.contact-modal-overlay { display: none; position: fixed; inset: 0; z-index: 2100; }
.contact-modal-overlay.active { display: flex; align-items: flex-start; justify-content: flex-start; }
.contact-card {
  position: absolute;
  top: 72px;
  left: 12px;
  background: var(--dropdown-bg);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px;
  padding: 10px;
  width: 235px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
}
.contact-row:hover { background: rgba(255, 255, 255, 0.1); }
.cm-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-icon img { width: 34px; height: 34px; }
.cm-text b { display: block; font-size: 16px; }
.cm-text small { display: block; color: #bdbdbd; font-size: 12px; }

/* ============================================================================
   REVIEW MODAL
   ============================================================================ */
.review-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2200;
  align-items: center;
  justify-content: center;
}
.review-modal-overlay.active { display: flex; }
.review-modal {
  background: var(--modal-bg);
  border-radius: 20px;
  padding: 24px;
  width: 90%;
  max-width: 450px;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.review-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
}
.review-close:hover { color: var(--text); }
.review-modal h3 { font-size: 24px; margin-bottom: 20px; color: var(--modal-text); }
.rating-stars { display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.star { font-size: 32px; cursor: pointer; color: #666; transition: color 0.2s; }
.star.active, .star:hover { color: #ffc107; }
#reviewComment {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 20px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
}
#reviewComment:focus { outline: none; border-color: var(--red); }
.review-submit {
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.review-submit:hover { opacity: 0.8; }

/* ============================================================================
   LOGIN MODAL
   ============================================================================ */
.login-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2300;
  align-items: center;
  justify-content: center;
}
.login-modal-overlay.active { display: flex; }
.login-modal {
  background: var(--modal-bg);
  border-radius: 20px;
  padding: 24px;
  width: 90%;
  max-width: 400px;
  position: relative;
}
.login-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
}
.login-close:hover { color: var(--text); }
.login-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.login-tab {
  background: none;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.2s;
}
.login-tab.active { color: var(--text); border-bottom: 2px solid var(--red); }
.login-form input,
.register-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
}
.login-form input:focus,
.register-form input:focus { outline: none; border-color: var(--red); }
.login-form button,
.register-form button {
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

/* ============================================================================
   SIDEBAR MENU
   ============================================================================ */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 2000;
  cursor: pointer;
}
.menu-overlay.active { opacity: 1; visibility: visible; }
.menu-sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  max-width: 85%;
  height: 100vh;
  height: 100dvh;
  background: #121212;
  color: #ffffff;
  z-index: 2001;
  transition: left .3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.menu-sidebar.active { left: 0; }
.menu-sidebar-header {
  display: flex;
  align-items: center;
  padding: 20px 16px 10px;
  gap: 16px;
}
.menu-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
  padding: 0 8px;
}
.menu-close:hover { opacity: 0.7; }
.menu-header-logo {
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.4px;
  pointer-events: none;
  line-height: 1;
}
.menu-header-logo span { color: var(--red); }
.menu-nav { display: flex; flex-direction: column; flex-grow: 1; }
.menu-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #1c1c1e;
  cursor: pointer;
  transition: background 0.2s;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.menu-item-row:hover:not(.no-hover) { background: #1c1c1e; }
.menu-item-left { display: flex; align-items: center; gap: 14px; }
.menu-icon { width: 20px; height: 20px; color: #ffffff; stroke-width: 1.8; }
.menu-item-arrow {
  font-size: 20px;
  color: #8e8e93;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
}
.tg-logo { width: 25px; height: 25px; }
.menu-footer {
  padding: 24px 16px;
  font-size: 12px;
  color: #8e8e93;
  text-align: left;
  border-top: 1px solid #1c1c1e;
  margin-top: auto;
}

/* ===== SUBMENU / NESTED ===== */
.submenu {
  display: none;
  position: relative;
  background: #121212;
}
.menu-dropdown.open > .submenu { display: block; }

.submenu-line {
  position: absolute;
  left: 25px;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #2c2c2e;
  z-index: 1;
}
.submenu-items { display: flex; flex-direction: column; }
.submenu-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 14px 40px;
  border-bottom: 1px solid #1c1c1e;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.submenu-item:hover { background: #1c1c1e; }
.red-dot {
  position: absolute;
  left: 22px;
  width: 7px;
  height: 7px;
  background-color: var(--red);
  border-radius: 50%;
  z-index: 2;
}
.nested-toggle {
  padding-left: 40px !important;
  border-bottom: 1px solid #1c1c1e !important;
}
.nested-submenu { background: #181818 !important; }
.nested-line { left: 45px !important; }
.nested-submenu .submenu-item { padding-left: 60px !important; }
.nested-submenu .red-dot { left: 42px !important; }
.toggle-arrow.open { transform: rotate(90deg); color: var(--red); }

/* ===== THEME SWITCH ===== */
.theme-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.theme-switch input { opacity: 0; width: 0; height: 0; }
.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #3a3a3c;
  transition: .3s;
  border-radius: 24px;
}
.theme-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}
.theme-switch input:checked + .theme-slider { background-color: #30d158; }
.theme-switch input:checked + .theme-slider:before { transform: translateX(20px); }

/* ============================================================================
   PROFILE — вертикальная раскладка
   ============================================================================ */
.profile-container {
  max-width: 980px;
  margin: 24px auto;
  padding: 0 14px;
  display: block;
}

.profile-container > .right-content,
.profile-container > .left-content,
.profile-container > .thumbnail-strip-wrapper,
.profile-container > .about-block,
.profile-container > .description,
.profile-container > .services-section.profile-services,
.profile-container > .order-section,
.profile-container > #reviewsSectionWrapper {
  width: 100%;
}

.photo-wrapper {
  width: 100%;
  display: block;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

#gallery-root {
  width: 100%;
  aspect-ratio: var(--photo-aspect, 3 / 4);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: none;
  outline: none;
  background: transparent;
  touch-action: pan-y;
  -webkit-touch-callout: none !important;
  -webkit-user-select: none !important;
  user-select: none !important;
}

#gallery-root * { touch-action: pan-y; }

#gallery-root .gallery-wrapper {
  width: 100%;
  height: 100% !important;
  position: relative;
}

#gallery-root .gallery-track {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  will-change: transform;
}

#gallery-root .gallery-slide {
  flex: 0 0 100% !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  position: relative;
  overflow: hidden;
  background: transparent;
}

#gallery-root .media-frame {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  position: relative;
  background: transparent;
}

#gallery-root .media-frame img,
#gallery-root .media-frame video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  background: transparent;
}

#gallery-root .media-watermark {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.15);
  letter-spacing: 3px;
  white-space: nowrap;
  pointer-events: none !important;
  z-index: 5;
}

/* ===== PHOTO ACTION OVERLAY ===== */
.photo-actions-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  pointer-events: none;
}

.photo-actions-overlay .photo-actions-left {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.photo-actions-overlay .photo-actions-left .heart-circle,
.photo-actions-overlay .photo-actions-left .share-circle {
  position: relative;
  z-index: 25;
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.photo-actions-overlay .photo-actions-left .heart-circle:hover,
.photo-actions-overlay .photo-actions-left .share-circle:hover {
  transform: scale(1.08);
  background: rgba(0, 0, 0, 0.7);
}
.photo-actions-overlay .photo-actions-left .heart-circle:active,
.photo-actions-overlay .photo-actions-left .share-circle:active {
  transform: scale(0.92);
}
.photo-actions-overlay .photo-actions-left .heart-circle svg,
.photo-actions-overlay .photo-actions-left .share-circle svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
}
.photo-actions-overlay .photo-actions-left .heart-circle.active svg {
  fill: var(--red);
  stroke: var(--red);
}
.photo-actions-overlay .photo-counter-right {
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.photo-actions-overlay .photo-counter-badge {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

.photo-verified-badge-top-left {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 15;
  background: rgb(38, 153, 42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgb(38, 153, 42);
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}
.photo-verified-badge-top-left span {
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

/* ===== МИНИАТЮРЫ ===== */
.thumbnail-strip-wrapper {
  margin: 14px 0 0;
  padding: 0;
}
.thumbnail-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.thumbnail-strip::-webkit-scrollbar { height: 4px; }
.thumbnail-strip::-webkit-scrollbar-track { background: transparent; }
.thumbnail-strip::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.thumbnail-item {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: none;
  outline: none;
  background: #b9b9b9;
  transition: transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.thumbnail-item:hover { transform: scale(1.04); }

.thumbnail-item.active {
  outline: 3px solid #ffffff;
  outline-offset: -3px;
  z-index: 2;
}

.thumbnail-item img,
.thumbnail-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
.thumbnail-item .video-indicator {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
  pointer-events: none;
  font-weight: 700;
}

/* ===== ТАБЛИЦА СТАТИСТИКИ ===== */
.left-content {
  margin-top: 18px;
}
.stats-table {
  background: var(--stats-bg);
  border: 1px solid var(--stats-border);
  border-radius: 0;
  padding: 16px 22px;
  width: 100%;
}
.main-name {
  font-size: 58px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 4px;
  color: var(--text);
}
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 19px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.stat-row:last-child { border-bottom: none; }
.stat-row span:first-child { font-weight: 500; color: var(--stat-label); }
.stat-row span:last-child {
  font-weight: 700;
  text-align: right;
  color: var(--stat-value);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.stat-row .stat-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.stat-row .stat-left .house-svg,
.stat-row .stat-left .car-svg { width: 24px; height: 24px; flex-shrink: 0; }
.stat-row .stat-left span { font-weight: 500; color: var(--stat-label); }

.svg-icons {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.stat-row.separator {
  border-bottom: 2px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

/* ===== О СЕБЕ ===== */
.about-block { margin: 22px 0 6px; }
.about-block h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text);
}
.about-list { list-style: none; }
.about-list li {
  position: relative;
  margin-bottom: 8px;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
}
.red-circle-svg { width: 20px; height: 20px; vertical-align: bottom; }

/* ===== ОПИСАНИЕ ===== */
.description {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 10px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--description-text);
}

/* ===== КНОПКИ ЗАКАЗА ===== */
.order-section { margin: 32px 0 24px; }
.order-wrapper {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.order-wrapper .order-now-btn { flex: 1; }
.order-now-btn {
  border: none;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  padding: 14px 20px;
  cursor: pointer;
  transition: opacity 0.2s;
  border-radius: 10px;
}
.order-now-btn.primary { background: var(--red); }
.order-now-btn.dark { background: var(--button-dark-bg); color: var(--button-dark-text); }
.order-now-btn:hover { opacity: 0.9; }

.contact-buttons-dropdown {
  max-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: max-height 0.25s ease;
}
.contact-buttons-dropdown.active {
  max-height: 200px;
  margin-top: 12px;
}
.contact-dropdown-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.contact-dropdown-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.contact-dropdown-btn img { width: 40px; height: 40px; flex-shrink: 0; }
.contact-btn-text { display: flex; flex-direction: column; gap: 4px; }
.contact-title { font-weight: 600; font-size: 16px; line-height: 1.2; color: var(--text); }
.contact-subtitle { font-size: 12px; margin: 0; line-height: 1.2; color: var(--muted); }

/* ============================================================================
   УСЛУГИ — как на главной странице
   ============================================================================ */
.profile-services {
  margin: 22px 0 10px;
  padding: 0;
}
.profile-services .services-container {
  background: var(--card);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: none;
  border: 1px solid var(--line);
}
.profile-services .services-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 24px;
  text-align: left;
  letter-spacing: -0.3px;
  color: var(--text);
}
.profile-services .services-title span { padding-bottom: 10px; }

.profile-services .services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.profile-services .service-card {
  text-align: left;
  padding: 12px 42px 12px 20px;
  border-radius: 16px;
  background: var(--service-card-bg);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  aspect-ratio: 4 / 1;
  height: auto;
  min-height: 64px;
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
  overflow: hidden;
  border: none;
  position: relative;
}
.profile-services .service-card:hover {
  transform: translateY(-2px);
  background: var(--line);
}

.profile-services .service-card svg {
  width: 40px;
  height: 40px;
  color: var(--red);
  display: block;
  flex-shrink: 0;
  transform: none !important;
}
.profile-services .service-card:nth-child(1) svg,
.profile-services .service-card:nth-child(2) svg,
.profile-services .service-card:nth-child(3) svg,
.profile-services .service-card:nth-child(4) svg,
.profile-services .service-card:nth-child(6) svg,
.profile-services .service-card:nth-child(7) svg {
  transform: none !important;
}
.profile-services .service-card:nth-child(8) svg {
  transform: rotate(45deg) !important;
}

.profile-services .service-name {
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  color: var(--text);
  letter-spacing: 0.2px;
  text-align: left;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  overflow: visible;
}

.profile-services .service-card::after {
  content: '';
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
  background-size: 25px 25px;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* ===== ОТЗЫВЫ ===== */
.reviews-section {
  width: 100%;
  margin: 40px 0 20px;
  padding: 0;
}
.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.reviews-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}
.write-review-btn {
  background: var(--button-dark-bg);
  color: var(--button-dark-text);
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.write-review-btn:hover { opacity: 0.8; }
.reviews-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 10px 0 20px;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.reviews-slider::-webkit-scrollbar { height: 6px; }
.reviews-slider::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.reviews-slider::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; }
.review-card {
  background: var(--review-card-bg);
  border-radius: 16px;
  padding: 20px;
  min-width: 280px;
  max-width: 320px;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.review-name { font-weight: 600; font-size: 16px; color: var(--review-name); margin-bottom: 8px; }
.star-review { font-size: 14px; letter-spacing: 1px; color: #ffc107; display: block; margin-bottom: 8px; }
.review-card p { color: var(--review-text); line-height: 1.5; font-size: 14px; word-break: break-word; }
.section-title-review { margin-bottom: 16px; font-size: 18px; color: var(--text); }
.no-data {
  grid-column: 1/-1;
  background: var(--no-data-bg);
  border: 1px solid var(--no-data-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: var(--no-data-text);
  font-size: 16px;
  width: 100%;
}

/* ===== COPY NOTIFICATION ===== */
.copy-notification {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--card);
  color: var(--text);
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 14px;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  transition: transform 0.3s ease;
  opacity: 0;
}
.copy-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================================
   FOOTERS — как на странице «О сервисе»
   ============================================================================ */
.site-footer {
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 14px 18px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.site-footer-first {
  max-width: 980px;
  margin: 12px auto 0;
  padding: 14px 14px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-content-first {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.footer-text-first {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}
.dot { margin: 0 8px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
}
.footer-logo .footer-brand span { color: var(--red); }
.footer-copy { font-size: 12px; color: var(--muted); }
.footer-year { font-size: 12px; font-weight: 700; color: var(--muted); }
.footer-brand { font-size: 16px; font-weight: 900; color: var(--text); }
.footer-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================================================
   ADAPTIVE
   ============================================================================ */
@media (max-width: 768px) {
  .header-inner { height: 52px; padding: 0 10px; }
  .header-logo { font-size: 22px; }
  .header-right { gap: 6px; }
  .h-icon-btn { width: 34px; height: 34px; }
  .h-icon-btn svg { width: 22px; height: 22px; }
  .country-selector .country-btn {
    font-size: 13px;
    min-height: 28px;
    padding: 2px 10px;
    border-width: 1.5px;
  }
  .country-flag { width: 18px !important; height: 18px !important; }
  .country-option { font-size: 13px; padding: 8px 12px; }
  .country-option img { width: 18px; height: 18px; }
  .city-dropdown .city.active-city {
    font-size: 12px;
    min-height: 28px;
    padding: 2px 8px;
    border-width: 1.5px;
  }
  .lang-selector {
    padding: 2px 6px;
    min-height: 28px;
    border-width: 1.5px;
    gap: 3px;
  }
  .lang-selector img { width: 16px; height: 16px; }
  .lang-selector .lang { font-size: 12px; }
  .lang-selector svg { width: 9px; height: 9px; }

  .profile-container { margin: 16px auto; padding: 0 12px; }

  .main-name { font-size: 28px; word-break: break-word; }
  .stats-table { padding: 12px 16px; }
  .stat-row { font-size: 15px; padding: 6px 0; gap: 10px; }
  .stat-row .stat-left { gap: 6px; }
  .stat-row .stat-left .house-svg,
  .stat-row .stat-left .car-svg { width: 20px; height: 20px; }
  .svg-icons { width: 20px !important; height: 20px !important; }

  .about-block h2 { font-size: 20px; }
  .about-list li { font-size: 14px; }
  .description { font-size: 14px; }

  .order-now-btn { font-size: 20px; padding: 12px; }
  .order-wrapper { gap: 10px; }
  .contact-dropdown-btn { font-size: 16px; padding: 10px 14px; }
  .contact-dropdown-btn img { width: 30px; height: 30px; }

  #gallery-root .media-watermark { font-size: 17px; }

  .photo-verified-badge-top-left {
    top: 8px; left: 8px;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 30px;
  }
  .photo-verified-badge-top-left span { font-size: 11px; }

  .photo-actions-overlay { bottom: 14px; left: 14px; right: 14px; }
  .photo-actions-overlay .photo-actions-left { gap: 10px; }
  .photo-actions-overlay .photo-actions-left .heart-circle,
  .photo-actions-overlay .photo-actions-left .share-circle {
    width: 36px;
    height: 36px;
  }
  .photo-actions-overlay .photo-actions-left .heart-circle svg,
  .photo-actions-overlay .photo-actions-left .share-circle svg {
    width: 16px;
    height: 16px;
  }
  .photo-actions-overlay .photo-counter-badge {
    font-size: 12px;
    padding: 4px 12px;
  }

  .thumbnail-item { width: 70px; height: 70px; }

  /* === Услуги (768px) === */
  .profile-services .services-grid { gap: 10px; grid-template-columns: repeat(2, 1fr); }
  .profile-services .service-card {
    padding: 10px 36px 10px 14px;
    aspect-ratio: 4 / 1;
    height: auto;
    min-height: 56px;
    border-radius: 12px;
    gap: 10px;
  }
  .profile-services .service-card svg { width: 32px; height: 32px; }
  .profile-services .service-card::after { width: 26px; height: 26px; right: 5px; background-size: 13px 13px; }
  .profile-services .service-name { font-size: 8px; }
  .profile-services .services-title { font-size: 20px; margin-bottom: 16px; }
  .profile-services .services-container { padding: 20px 14px; border-radius: 16px; }

  .section-title-review { font-size: 15px; }
  .review-card { min-width: 240px; }

  /* Нижняя навигация */
  .bottom-nav {
    min-height: 56px;
    height: auto;
    padding-bottom: 20px;
  }

  /* === Футер (768px) === */
  .footer-logo { font-size: 13px; }
  .footer-brand { font-size: 13px; }
  .footer-copy, .footer-year { font-size: 10px; }
  .footer-text { font-size: 8px; max-width: 300px; }

  .dot { margin: 0 6px; }

  /* Отступ под фиксированную нижнюю навигацию — ТОЛЬКО у последнего футера.
     У .site-footer-first отступа нет — расстояние между текстом
     и следующей полоской симметричное (14px / 14px). */
  .site-footer { margin-bottom: 80px; }
}

@media (max-width: 480px) {
  .header-logo { font-size: 20px; }
  .h-icon-btn { width: 30px; height: 30px; }
  .h-icon-btn svg { width: 20px; height: 20px; }
  .country-selector .country-btn { font-size: 12px; min-height: 26px; padding: 2px 8px; }
  .country-flag { width: 14px !important; height: 14px !important; }
  .country-option { font-size: 12px; padding: 6px 10px; }
  .country-option img { width: 16px; height: 16px; }
  .city-dropdown .city.active-city { font-size: 11px; min-height: 26px; padding: 2px 6px; }
  .lang-selector { min-height: 26px; padding: 2px 6px; gap: 3px; }
  .lang-selector img { width: 14px; height: 14px; }
  .lang-selector .lang { font-size: 11px; }
  .lang-selector svg { width: 8px; height: 8px; }

  .main-name { font-size: 22px; }
  .stat-row { font-size: 12px; padding: 4px 0; gap: 6px; }
  .stat-row .stat-left { gap: 4px; }
  .stat-row .stat-left .house-svg,
  .stat-row .stat-left .car-svg { width: 16px; height: 16px; }
  .stats-table { padding: 8px 10px; }
  .svg-icons { width: 16px !important; height: 16px !important; }

  .order-now-btn { font-size: 14px; padding: 10px 8px; }
  .order-wrapper { gap: 6px; }
  .contact-dropdown-btn { font-size: 12px; padding: 8px 10px; }

  .thumbnail-item { width: 60px; height: 60px; }

  .photo-verified-badge-top-left {
    top: 6px; left: 6px;
    padding: 3px 8px;
    font-size: 10px;
    border-radius: 20px;
  }
  .photo-verified-badge-top-left span { font-size: 10px; }

  .photo-actions-overlay { bottom: 10px; left: 10px; right: 10px; }
  .photo-actions-overlay .photo-actions-left { gap: 8px; }
  .photo-actions-overlay .photo-actions-left .heart-circle,
  .photo-actions-overlay .photo-actions-left .share-circle {
    width: 30px;
    height: 30px;
  }
  .photo-actions-overlay .photo-actions-left .heart-circle svg,
  .photo-actions-overlay .photo-actions-left .share-circle svg {
    width: 14px;
    height: 14px;
  }
  .photo-actions-overlay .photo-counter-badge {
    font-size: 11px;
    padding: 3px 10px;
  }

  /* === Услуги (480px) === */
  .profile-services .services-grid { gap: 8px; grid-template-columns: repeat(2, 1fr); }
  .profile-services .service-card {
    padding: 8px 30px 8px 10px;
    aspect-ratio: 4 / 1;
    height: auto;
    min-height: 50px;
    border-radius: 10px;
    gap: 8px;
  }
  .profile-services .service-card svg { width: 26px; height: 26px; }
  .profile-services .service-card::after { width: 20px; height: 20px; right: 5px; background-size: 10px 10px; }
  .profile-services .services-title { font-size: 17px; margin-bottom: 10px; }
  .profile-services .services-container { padding: 16px 12px; border-radius: 12px; }

  /* === Футер (480px) === */
  .footer-text-first { font-size: 11px; max-width: 380px; }
}

/* ============================================================================
   DARK THEME
   ============================================================================ */
.dark-theme .reviews-slider::-webkit-scrollbar-track { background: #2a2a2a; }
.dark-theme .reviews-slider::-webkit-scrollbar-thumb { background: #555; }

#gallery-root > .media-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    display: block;
}