/**
 * Header & Footer Styles
 * Современный дизайн с градиентами и адаптивностью
 */

:root {
  --header-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --header-text: #ffffff;
  --header-accent: #8b5cf6;
  --header-accent-hover: #a78bfa;
  --footer-bg: #0a0a0f;
  --footer-text: #e5e7eb;
  --footer-link: #9ca3af;
  --footer-link-hover: #ffffff;
  --border-color: rgba(139, 92, 246, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  background: rgba(2, 6, 24, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--header-text);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 9999;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow-x: hidden;
  box-sizing: border-box;
}

.header-topbar {
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.working-hours {
  display: flex;
  align-items: center;
  color: var(--footer-link);
  line-height: 1;
  white-space: nowrap;
}

.topbar-phone {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  line-height: 1;
  white-space: nowrap;
}

.topbar-phone:hover {
  color: var(--header-accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-link {
  color: var(--footer-link);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.social-link:hover {
  color: var(--header-accent);
}

.header-main {
  padding: 16px 0;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-logo {
  flex-shrink: 0;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, var(--header-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.header-nav {
  flex: 1;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
  align-items: center;
}

.nav-list a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-list a:hover {
  color: var(--header-accent);
  background: rgba(139, 92, 246, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* city selector удален из хедера */

.cta-button {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10001;
  position: relative;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--header-text);
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay - Desktop (hidden) */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  background: rgba(0, 0, 0, 0.7);
  z-index: 99999;
  display: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
}

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

/* Mobile Menu - Desktop (sidebar) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: #0a0a0f;
  z-index: 100000;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
}

.mobile-menu.mobile-menu-open {
  display: flex;
}

/* Body scroll lock */
body.menu-open,
html.menu-open {
  overflow: hidden !important;
  touch-action: none;
  position: fixed;
  width: 100%;
  height: 100%;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-logo .logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, var(--header-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.mobile-menu-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  transition: all 0.2s;
  padding: 0;
  flex-shrink: 0;
  /* Ensure tap target is at least 44x44px */
  touch-action: manipulation;
}

.mobile-menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.mobile-menu-close svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  padding: 0;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.mobile-nav-list li {
  border-bottom: none;
  width: 100%;
  margin: 0;
}

.mobile-nav-list a {
  display: block;
  padding: 16px 24px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.2s;
  border-bottom: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  box-sizing: border-box;
}

.mobile-nav-list a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.mobile-nav-list a.active {
  background: rgba(139, 92, 246, 0.15);
  color: var(--header-accent);
  font-weight: 500;
}

/* Mobile Filters */
.mobile-filters-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
    min-height: 44px;
  }

  .mobile-filters-toggle:hover {
    background: rgba(0, 0, 0, 0.3);
  }

  .mobile-filters-toggle svg {
    transition: transform 0.3s ease;
  }

  .mobile-filters-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
  }

  .mobile-menu-filters {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-menu-filters[aria-hidden="false"] {
    max-height: 60vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 768px) {
  .mobile-filters-form {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
}

@media (max-width: 480px) {
  .mobile-filters-form {
    padding: 16px 16px;
    gap: 16px;
  }
}

@media (max-width: 320px) {
  .mobile-filters-form {
    padding: 12px 12px;
    gap: 14px;
  }
}

@media (max-width: 768px) {
  .mobile-filters-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-filters-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .mobile-filters-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .mobile-filter-checkbox span {
    flex: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-width: 0;
  }

  .mobile-filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--header-accent);
  }

  .mobile-filters-inputs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-filters-inputs label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-filters-inputs label span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .mobile-input-row {
    display: flex;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-input-row input {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
  }

  .mobile-input-row input:focus {
    border-color: var(--header-accent);
    background: rgba(255, 255, 255, 0.08);
  }

  .mobile-input-row input::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }

  .mobile-filters-apply {
    padding: 14px 20px;
    border-radius: 8px;
    border: none;
    background: var(--header-accent);
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
  }

  .mobile-filters-apply:hover {
    background: var(--header-accent-hover);
    transform: translateY(-1px);
  }

  .mobile-filters-apply:active {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .mobile-filters-toggle {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  .mobile-filters-title {
    font-size: 13px;
  }
  
  .mobile-filters-checkboxes {
    max-height: 150px;
    gap: 6px;
  }
  
  .mobile-filter-checkbox {
    padding: 6px 0;
    font-size: 13px;
  }
  
  .mobile-filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
  }
  
  .mobile-filters-inputs {
    gap: 10px;
  }
  
  .mobile-filters-inputs label span {
    font-size: 12px;
  }
  
  .mobile-input-row {
    gap: 6px;
  }
  
  .mobile-input-row input {
    padding: 8px 10px;
    font-size: 13px;
    min-height: 44px;
  }
  
  .mobile-filters-apply {
    padding: 12px 18px;
    font-size: 14px;
    min-height: 44px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .mobile-menu-filters[aria-hidden="false"] {
    max-height: 50vh;
  }
}

@media (max-width: 320px) {
  .mobile-filters-toggle {
    padding: 12px 12px;
    font-size: 13px;
  }
  
  .mobile-filters-title {
    font-size: 12px;
  }
  
  .mobile-filters-checkboxes {
    max-height: 120px;
    gap: 5px;
  }
  
  .mobile-filter-checkbox {
    padding: 5px 0;
    font-size: 12px;
    gap: 8px;
  }
  
  .mobile-filter-checkbox input[type="checkbox"] {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  
  .mobile-filter-checkbox span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  
  .mobile-filters-inputs label span {
    font-size: 11px;
  }
  
  .mobile-input-row input {
    padding: 7px 8px;
    font-size: 12px;
    min-height: 44px;
  }
  
  .mobile-filters-apply {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 44px;
  }
  
  .mobile-menu-filters[aria-hidden="false"] {
    max-height: 45vh;
  }
}

/* .mobile-nav-list a.active - убрано выделение, все ссылки выглядят одинаково */

/* Breadcrumbs */
.breadcrumbs {
  background: rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumbs ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--footer-link);
}

.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--footer-link);
}

.breadcrumbs a {
  color: var(--header-text);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--header-accent);
}

.breadcrumbs span {
  color: var(--footer-link);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 60px 0 20px;
  margin-top: 80px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 1200px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--header-text);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-block;
  padding: 4px 0;
  position: relative;
}

.footer-links a::before {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--header-accent);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: var(--footer-link-hover);
  transform: translateX(4px);
}

.footer-links a:hover::before {
  width: 100%;
}

.footer-contacts {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-phone {
  color: var(--header-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: all 0.2s;
  border: 1px solid rgba(139, 92, 246, 0.2);
  width: fit-content;
}

.footer-phone:hover {
  background: rgba(139, 92, 246, 0.2);
  color: var(--header-accent-hover);
  border-color: rgba(139, 92, 246, 0.4);
}

.footer-social {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  display: inline-block;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: fit-content;
}

.footer-social:hover {
  color: var(--footer-link-hover);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-faq {
  margin: 40px 0;
  padding: 30px;
  background: rgba(139, 92, 246, 0.05);
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 1rem;
  background: rgba(139, 92, 246, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: all 0.2s;
}

.faq-item:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

.faq-question {
  font-size: 15px;
  color: var(--header-text);
}

.faq-answer {
  font-size: 14px;
  color: var(--footer-link);
  line-height: 1.6;
}

.footer-about {
  margin: 40px 0;
  padding: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius);
  border-left: 3px solid var(--header-accent);
}

.about-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--footer-text);
  max-width: 900px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--footer-link);
}

.footer-age {
  background: var(--header-accent);
  color: white;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.footer-legal-links a {
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal-links a:hover {
  color: var(--footer-link-hover);
}

.footer-legal-links span {
  color: var(--footer-link);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .header-content {
    gap: 20px;
  }

  .nav-list {
    gap: 16px;
  }

  /* На экранах до 1024px скрываем форму поиска,
     чтобы она не выезжала за пределы хедера */
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-topbar {
    display: none;
  }

  .header-content {
    flex-wrap: wrap;
  }

  .header-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
    display: flex !important;
  }

  .cta-button {
    display: none !important;
  }

  /* город в хедере скрыт полностью */

  .mobile-menu-toggle {
    display: flex;
    z-index: 10001;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Mobile Menu Overlay - Full screen on mobile */
  .mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height */
    min-height: 100vh !important;
    min-height: 100dvh !important;
    z-index: 99999 !important;
    display: none !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .mobile-menu-overlay.mobile-menu-overlay-open {
    display: block !important;
  }

  /* Mobile Menu - Full screen overlay on mobile */
  .mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* Dynamic viewport height */
    min-height: 100vh !important;
    min-height: 100dvh !important;
    align-items: flex-start !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #0a0a0f !important;
    z-index: 100000 !important;
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    /* Safe area padding for iOS */
    padding-top: env(safe-area-inset-top, 0px) !important;
    padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    padding-left: env(safe-area-inset-left, 0px) !important;
    padding-right: env(safe-area-inset-right, 0px) !important;
    box-sizing: border-box !important;
  }

  .mobile-menu.mobile-menu-open {
    display: flex !important;
  }

  .mobile-menu-header {
    padding: 20px 24px;
    padding-top: calc(20px + env(safe-area-inset-top, 0px));
    padding-left: calc(24px + env(safe-area-inset-left, 0px));
    padding-right: calc(24px + env(safe-area-inset-right, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    background: #0a0a0f;
    z-index: 1;
  }

  .mobile-menu-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-menu-cta {
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(24px + env(safe-area-inset-left, 0px));
    padding-right: calc(24px + env(safe-area-inset-right, 0px));
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-menu-cta-title {
    display: none;
  }

  .mobile-menu-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    min-height: 48px;
    margin: 0;
    flex-shrink: 0;
  }

  .mobile-menu-cta-btn span {
    font-weight: 600;
  }

  .mobile-menu-cta-phone {
    background: #22c55e;
    color: #ffffff;
  }

  .mobile-menu-cta-phone:hover {
    background: #16a34a;
  }

  .mobile-menu-cta-telegram {
    background: #0088cc;
    color: #ffffff;
  }

  .mobile-menu-cta-telegram:hover {
    background: #006ba3;
  }

  .mobile-menu-cta-whatsapp {
    background: #25d366;
    color: #ffffff;
  }

  .mobile-menu-cta-whatsapp:hover {
    background: #1da851;
  }

  .mobile-menu-cta-btn:active {
    transform: scale(0.98);
    opacity: 0.9;
  }

  .mobile-nav {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-list {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .mobile-nav-list li {
    width: 100%;
    margin: 0;
  }

  .mobile-nav-list a {
    padding: 16px 24px;
    padding-left: calc(24px + env(safe-area-inset-left, 0px));
    padding-right: calc(24px + env(safe-area-inset-right, 0px));
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
  }

}

@media (max-width: 480px) {
  .header-main {
    padding: 12px 0;
  }

  .logo-text {
    font-size: 20px;
  }

  .cta-button {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .footer-about {
    padding: 20px;
  }

  .about-text {
    font-size: 14px;
  }

  .mobile-menu {
    width: 100%;
    max-width: 100vw;
  }

  .mobile-menu-header {
    padding: 14px 16px;
  }

  .mobile-menu-logo .logo-text {
    font-size: 18px;
  }

  .mobile-menu-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .mobile-menu-close svg {
    width: 20px;
    height: 20px;
  }

  .mobile-nav-list a {
    padding: 12px 16px;
    font-size: 14px;
  }

  .mobile-menu-cta {
    padding: 20px !important;
    gap: 10px;
    align-items: stretch !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .mobile-menu-cta-btn {
    padding: 14px 18px !important;
    font-size: 14px;
    min-height: 44px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* .mobile-nav-list a.active - убрано выделение */
}

@media (max-width: 320px) {
  .header-main {
    padding: 10px 0;
  }

  .logo-text {
    font-size: 18px;
  }

  .mobile-menu-header {
    padding: 12px 12px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
  }

  .mobile-menu-logo .logo-text {
    font-size: 16px;
  }

  .mobile-menu-close {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .mobile-nav-list a {
    padding: 14px 12px;
    font-size: 13px;
  }

  .mobile-menu-cta {
    padding: 16px 12px !important;
    gap: 8px;
  }

  .mobile-menu-cta-btn {
    padding: 12px 16px !important;
    font-size: 13px;
    min-height: 44px;
  }

  .footer-about {
    padding: 16px;
    margin: 20px 0;
  }

  .about-text {
    font-size: 13px;
    line-height: 1.6;
  }

  .footer-bottom {
    gap: 16px;
  }

  .footer-copyright,
  .footer-legal-links {
    font-size: 12px;
  }
}


