:root {
  --bg: #f3f3f3;
  --card: #fff;
  --line: #e6e6e6;
  --text: #121212;
  --muted: #6d6d6d;
  --red: #E11A2B;
  --header-bg: #000;
  --modal-bg: #fff;
  --input-border: #ddd;
  --contacts-small: #7a7a7a;
  --dropdown-bg: #1a1a1a;
}

.dark-theme {
  --bg: #121212;
  --card: #1e1e1e;
  --line: #2a2a2a;
  --text: #e0e0e0;
  --muted: #a0a0a0;
  --red: #E11A2B;
  --header-bg: #0a0a0a;
  --modal-bg: #1e1e1e;
  --input-border: #3a3a3a;
  --contacts-small: #a0a0a0;
  --dropdown-bg: #1a1a1a;
}

* {
  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;
}

body, header, .contacts-box, .faq-item, .howto-block, .service-card, h1, h2, h3, p, span, a {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

button {
  font: inherit;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.h-icon-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.h-icon-btn:hover {
  opacity: 0.8;
}

.h-icon-btn svg {
  width: 22px;
  height: 22px;
}

.header-logo {
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  letter-spacing: .4px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  pointer-events: none;
}

.header-logo span {
  color: var(--red);
}

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

/* ===== УНИФИЦИРОВАННЫЙ СТИЛЬ ДЛЯ ФЛАГА ===== */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.lang-selector img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid #000000;
  box-sizing: border-box;
}

.dark-theme .lang-selector img {
  border-color: #000000;
}

.lang-selector .lang {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.lang-selector svg {
  width: 14px;
  height: 14px;
  color: #fff;
  flex-shrink: 0;
}

.lang-selector:hover {
  opacity: 0.8;
}

/* ===== ЯЗЫКОВОЙ ДРОПДАУН ===== */
.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--dropdown-bg);
  border-radius: 12px;
  min-width: 150px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  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;
}

.lang-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  padding: 12px 16px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lang-option:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-option img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

/* ===== HOW TO USE SECTION ===== */
.howto-section {
  max-width: 980px;
  margin: 20px auto 0;
  padding: 0 14px;
}

.howto-container {
  background: var(--card);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.dark-theme .howto-container {
  background: var(--card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.howto-container h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
  text-align: center;
}

.howto-block {
  margin-bottom: 24px;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.howto-block.important {
  border-left: 4px solid var(--red);
  background: var(--bg);
}

.howto-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.howto-icon {
  font-size: 28px;
  line-height: 1;
}

.howto-title h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.howto-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}

.howto-content p:last-child {
  margin-bottom: 0;
}

.howto-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.howto-content ul li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

.howto-content ul li:last-child {
  border-bottom: none;
}

.howto-content ul li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--red);
  font-size: 20px;
  font-weight: 700;
}

.howto-footer {
  margin-top: 8px;
  padding: 20px 24px;
  border-radius: 14px;
  background: var(--red);
  color: #fff;
  text-align: center;
}

.howto-footer p {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.howto-footer strong {
  color: #fff;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  max-width: 980px;
  margin: 20px auto 0;
  padding: 0 14px;
}

.faq-container {
  background: var(--card);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.dark-theme .faq-container {
  background: var(--card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.faq-container h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s;
  user-select: none;
}

.faq-question:hover {
  background: var(--line);
}

.faq-icon {
  font-size: 24px;
  font-weight: 300;
  color: var(--red);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 20px 20px;
}

.faq-answer p {
  margin: 20;
}

/* ===== CONTACTS SECTION ===== */
.contacts-section {
  margin-top: 22px;
  background: transparent;
  padding: 0;
}

.contacts-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 14px 34px;
}

.contacts-section h2 {
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--text);
}

.contacts-box {
  background: var(--dropdown-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.contacts-col {
  flex: 1;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  margin-top: 10px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

.social-row:hover {
  opacity: 0.8;
}

.s-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-icon img {
  width: 50px;
  height: 50px;
}

.social-row b {
  display: block;
  font-size: 26px;
  color: #ffffff;
}

.social-row small {
  font-size: 18px;
  color: var(--contacts-small);
}

.v-divider {
  width: 1px;
  background: var(--line);
}

.contacts-col.right {
  text-align: center;
}

.contacts-col.right .clock {
  font-size: 36px;
  color: var(--red);
}

.contacts-col.right p {
  color: #ffffff;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.litle-text {
  font-size: 13px;
  color: #a2a2a2;
}

/* ===== SIDEBAR ===== */
.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;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  max-width: 85%;
  height: 100vh;       /* fallback */
  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: 28px;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s;
}

.menu-close:hover {
  opacity: 0.8;
}

.menu-header {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.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;
}

.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;
}

/* Текущий язык в пункте меню (флаг + код справа) */
.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-current img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-sizing: border-box;
  flex-shrink: 0;
}
.lang-current .lang {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

/* ===== ТУМБЛЕР ТЕМЫ ===== */
.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);
}

.menu-footer {
  padding: 24px 16px;
  font-size: 12px;
  color: #8e8e93;
  text-align: left;
  border-top: 1px solid #1c1c1e;
  margin-top: auto;
}

/* ===== 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;
}

/* ===== 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 input::placeholder,
.register-form input::placeholder {
  color: var(--muted);
}

.login-form button,
.register-form button {
  width: 100%;
  padding: 12px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.login-form button:hover,
.register-form button:hover {
  opacity: 0.8;
}

/* ===== УСЛУГИ ===== */
.services-wrapper {
  max-width: 820px;
  margin: 20px auto 40px;
  padding: 0 14px;
}

.services-intro {
  text-align: center;
  padding: 10px 0 20px;
}

.services-intro h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.2;
}

.services-sub {
  font-size: 20px;
  font-weight: 600;
  color: var(--red);
  margin-top: 4px;
}

.service-card {
  background: var(--card);
  border-radius: 28px;
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  transition: background 0.3s, box-shadow 0.3s;
}

.dark-theme .service-card {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.service-card.highlight {
  border: 2px solid var(--red);
}

.service-card h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  color: var(--text);
}

.service-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 12px;
}

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

.service-card p strong {
  color: var(--red);
}

.service-booking {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}

.service-booking p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.7;
}

.service-tg-link {
  color: var(--red);
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.2s;
}

.service-tg-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* ===== MOBILE ADAPTATION ===== */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
  }
  
  .header-logo {
    font-size: 20px;
  }
  
  .lang-selector img {
    width: 24px;
    height: 24px;
    border-width: 1.5px;
  }

  .lang-selector .lang {
    font-size: 14px;
  }

  .lang-selector svg {
    width: 12px;
    height: 12px;
  }
  
  .h-icon-btn {
    width: 28px;
    height: 28px;
  }
  
  .h-icon-btn svg {
    width: 20px;
    height: 20px;
  }
  
  .menu-sidebar {
    width: 280px;
  }
  
  .menu-header {
    font-size: 20px;
  }
  
  .menu-item-row {
    font-size: 15px;
    padding: 12px 14px;
  }
  
  .contact-card {
    top: 60px;
    left: 12px;
    width: 220px;
  }

  /* HOWTO mobile */
  .howto-container {
    padding: 20px 16px;
  }
  .howto-container h2 {
    font-size: 20px;
  }
  .howto-block {
    padding: 16px 16px;
  }
  .howto-title h3 {
    font-size: 17px;
  }
  .howto-content p {
    font-size: 14px;
  }
  .howto-content ul li {
    font-size: 14px;
    padding: 6px 0 6px 24px;
  }
  .howto-footer {
    padding: 16px 16px;
  }
  .howto-footer p {
    font-size: 14px;
  }

  /* FAQ mobile */
  .faq-container {
    padding: 20px 16px;
  }
  .faq-container h2 {
    font-size: 20px;
  }
  .faq-question {
    font-size: 15px;
    padding: 14px 16px;
  }
  .faq-answer {
    font-size: 14px;
  }
  .faq-answer {
    padding: 0 16px;
  }
  .faq-item.active .faq-answer {
    padding: 0 16px 16px;
  }

  /* Contacts mobile */
  .contacts-container {
    padding: 0 12px 26px;
  }
  .contacts-section h2 {
    font-size: 18px;
  }
  .contacts-box {
    padding: 14px 14px;
    border-radius: 14px;
    flex-direction: row;
    gap: 14px;
  }
  .s-icon {
    width: 44px;
    height: 44px;
  }
  .s-icon img {
    width: 40px;
    height: 40px;
  }
  .social-row b {
    font-size: 18px;
  }
  .social-row small {
    font-size: 13px;
  }
  .v-divider {
    display: block;
    width: 1px;
  }
  .contacts-col.right .clock {
    font-size: 36px;
  }
  .contacts-col.right p {
    font-size: 15px;
  }

  /* SERVICES mobile */
  .services-intro h1 {
    font-size: 28px;
  }
  .services-sub {
    font-size: 17px;
  }
  .service-card {
    padding: 20px 18px;
    border-radius: 20px;
  }
  .service-card h2 {
    font-size: 22px;
  }
  .service-card p {
    font-size: 15px;
  }
  .service-booking p {
    font-size: 14px;
  }

  /* === Футер (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;
  }

  .footer-text-first {
    justify-content: center;
    text-align: center;
    max-width: 320px;
    gap: 6px;
  }
  .dot {
    margin: 0 6px;
  }

  /* Нижняя навигация — не сжимается, с запасом снизу */
  .bottom-nav {
    min-height: 56px;
    height: auto;
    padding-bottom: 20px;
  }

  /* Отступ под фиксированную нижнюю навигацию — ТОЛЬКО у последнего футера. */
  .site-footer { margin-bottom: 80px; }
}

@media (max-width: 480px) {
  .services-wrapper {
    padding: 0 10px;
  }
  .services-intro h1 {
    font-size: 24px;
  }
  .service-card {
    padding: 16px 14px;
  }
  .service-card h2 {
    font-size: 19px;
  }

  .lang-selector img {
    width: 20px;
    height: 20px;
    border-width: 1.5px;
  }

  .lang-selector .lang {
    font-size: 12px;
  }

  .lang-selector svg {
    width: 10px;
    height: 10px;
  }

  /* === Футер (480px) === */
  .footer-text-first {
    font-size: 11px;
    gap: 4px;
    max-width: 280px;
  }
  .dot {
    margin: 0 4px;
  }
}


/* ===== VERIFICATION MODAL ===== */
.verification-modal-overlay {
    display: flex !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.verification-modal {
    background: var(--modal-bg);
    border-radius: 20px;
    padding: 32px 28px;
    width: 90%;
    max-width: 440px;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.verification-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.2s;
}

.verification-close:hover {
    color: var(--red);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== FOOTER — как на странице «О сервисе» ===== */
.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;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.2px;
}

.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;
}

/* ===== FOOTER FIRST — как на странице «О сервисе» ===== */
.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;
}

/* ===== ЛОГОТИП В БОКОВОМ МЕНЮ ===== */
.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);
}

/* ============================================================
   HEADER (ported from main page) — overrides old services header
   ============================================================ */
.header-inner {
  max-width: 980px;
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.header-logo {
  position: static !important;
  left: auto !important;
  transform: none !important;
  font-size: 30px !important;
  pointer-events: auto !important;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
.header-left { display: none !important; }

/* Country selector */
.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 !important;
  height: 20px !important;
  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%; }

/* City selector */
.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;
  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;
  padding: 6px;
  max-height: 400px;
  overflow-y: auto;
}
.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 override */
.lang-selector {
  padding: 6px 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  min-height: 34px;
  gap: 4px;
}
.lang-selector img {
  width: 18px !important;
  height: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.lang-selector .lang {
  font-size: 13px !important;
  color: #fff;
  white-space: nowrap;
}
.lang-selector svg { width: 10px !important; height: 10px !important; }

/* ============================================================
   BOTTOM NAV (ported from main page)
   ============================================================ */
.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;      /* запас снизу под браузерный UI / жест-бар */
  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: var(--muted);
  font-size: 10px;
  gap: 2px;
  padding: 4px 12px;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
  flex: 1;
  max-width: 80px;
}
.bottom-nav-item svg { width: 24px; height: 24px; stroke: currentColor; transition: stroke 0.2s; }
.bottom-nav-item span { font-size: 9px; font-weight: 500; color: currentColor; transition: color 0.2s; }
.bottom-nav-item:hover,
.bottom-nav-item.active { 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;
}

/* Space for fixed bottom nav */
body { padding-bottom: 70px; }

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

/* Mobile tweaks for the new header */
@media (max-width: 768px) {
  .header-inner { height: 52px; padding: 0 10px; }
  .header-logo { font-size: 22px !important; }
  .header-right { gap: 6px; }
  .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; }
  .city-dropdown .city.active-city { font-size: 12px; min-height: 28px; padding: 2px 8px; border-width: 1.5px; }
  .lang-selector { padding: 2px 6px !important; min-height: 28px; gap: 3px; }
  .lang-selector img { width: 16px !important; height: 16px !important; }
  .lang-selector .lang { font-size: 12px !important; }
  .lang-selector svg { width: 9px !important; height: 9px !important; }
}
@media (max-width: 480px) {
  .header-logo { font-size: 20px !important; }
  .country-selector .country-btn { font-size: 12px; min-height: 26px; padding: 2px 8px; }
  .country-flag { width: 14px !important; height: 14px !important; }
  .city-dropdown .city.active-city { font-size: 11px; min-height: 26px; padding: 2px 6px; }
  .lang-selector { min-height: 26px; padding: 2px 6px !important; gap: 3px; }
  .lang-selector img { width: 14px !important; height: 14px !important; }
  .lang-selector .lang { font-size: 11px !important; }
  .lang-selector svg { width: 8px !important; height: 8px !important; }
}

/* ============================================================================
   SUBMENU / NESTED MENU (sidebar)
   ============================================================================ */
.menu-dropdown { display: block; }

.submenu {
  display: none;
  position: relative;
  background: transparent;
  margin-top: 2px;
}
.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;
  gap: 2px;
}

.submenu-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 40px;
  border-bottom: none;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.submenu-item:hover { background: rgba(255, 255, 255, 0.06); }

.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: none !important;
}
.nested-submenu { background: transparent !important; }
.nested-line { left: 45px !important; }
.nested-submenu .submenu-item { padding-left: 60px !important; }
.nested-submenu .red-dot { left: 42px !important; }

.toggle-arrow { transition: transform 0.2s, color 0.2s; }
.toggle-arrow.open { transform: rotate(90deg); color: var(--red); }