/* iOS стиль - Темная тема с прозрачностями */
:root {
  --primary-color: #007aff;
  --secondary-color: #5856d6;
  --background-color: rgba(0, 0, 0, 0.85);
  --text-primary: #ffffff;
  --text-secondary: #e5e5ea;
  --border-color: rgba(255, 255, 255, 0.2);
  --overlay-color: rgba(0, 0, 0, 0.7);
  --success-color: #34c759;
}

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

body {
  background-color: #000000;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

/* Заставка с фото */
.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeOut 0.5s ease-out 3s forwards;
}

.splash-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.splash-content {
  text-align: center;
  animation: scaleUp 1s ease-out;
  z-index: 2;
  position: relative;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.logo i {
  font-size: 64px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.logo span {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
}

.splash-content h1 {
  font-size: 56px;
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: 3px;
}

.line {
  width: 100px;
  height: 2px;
  background: var(--primary-color);
  margin: 20px auto;
}

/* Header */
.ios-header {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-header i {
  font-size: 24px;
  color: var(--primary-color);
}

.logo-header h1 {
  font-size: 20px;
  font-weight: 600;
}

.ios-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.ios-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
}

.ios-nav a:hover,
.ios-nav a.active {
  color: var(--primary-color);
  background: rgba(0, 122, 255, 0.1);
}

/* Кнопки iOS стиль */
.ios-button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ios-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ios-button.primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

/* Главный слайдер */
.main-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  margin-top: 70px;
}

.slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

/* Стили для главного контента под слайдером */
.main-content {
  padding: 30px 15px 20px;
  text-align: center;
}

.main-message {
  max-width: 800px;
  margin: 0 auto;
}

.main-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
  letter-spacing: 1px;
  line-height: 1.3;
}

.main-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.ios-footer {
  background: rgba(0, 0, 0, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 30px 20px;
  margin-top: 10px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-logo i {
  font-size: 24px;
  color: var(--primary-color);
}

.footer-logo span {
  font-size: 24px;
  font-weight: 700;
}

.footer-info p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 15px;
}

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

.footer-links span {
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Стили модальных окн */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Само модальное окно */
.modal-content {
  background: rgba(0, 0, 0, 0.95);
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

/* Шапка модального окна - БЕЛЫЙ цвет как у кнопки */
.modal-header {
  padding: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1;
}

.modal-header h3 {
  color: #ffffff; /* БЕЛЫЙ цвет для заголовка модального окна */
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

/* Кнопка закрытия */
.modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: rotate(90deg);
}

/* Тело модального окна */
.modal-body {
  padding: 25px;
  overflow-y: auto;
  max-height: calc(80vh - 90px);
}

/* Стили для списка услуг */
.services-list-modal,
.finance-list-modal,
.contacts-list-modal {
  margin: 0;
  padding: 0;
}

/* Элементы списка */
.service-item-modal,
.finance-item-modal,
.contact-item-modal {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  margin-bottom: 30px;
}

/* Иконки в модальных окнах - СВЕТЛО-СИНИЙ цвет */
.service-item-modal i,
.finance-icon-modal,
.contact-icon-modal {
  font-size: 32px;
  color: #007aff; /* Светло-синий как у кнопки */
  min-width: 50px;
  text-align: center;
  padding-top: 5px;
}

/* Заголовки внутри модальных окон - БЕЛЫЕ */
.service-text-modal h4,
.finance-text-modal h4,
.contact-text-modal h4 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff; /* БЕЛЫЙ цвет для заголовков внутри */
}

/* Текст в модальных окнах */
.service-text-modal p,
.finance-text-modal p,
.contact-text-modal p {
  color: #e5e5ea; /* Серый текст как в оригинале */
  font-size: 16px;
  line-height: 1.7;
}

/* Ссылки в контактах - СВЕТЛО-СИНИЙ */
.contact-text-modal a {
  color: #007aff; /* Светло-синий как у кнопки */
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
  transition: opacity 0.3s;
}

.contact-text-modal a:hover {
  opacity: 0.8;
}

/* Разделители в модальных окнах */
.divider-modal {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 30px 0;
  width: 100%;
}

/* Заглушка для каталога */
.catalog-placeholder {
  text-align: center;
  padding: 40px 20px;
}

.catalog-placeholder i {
  font-size: 64px;
  color: #007aff; /* Светло-синий как у кнопки */
  margin-bottom: 20px;
}

.catalog-placeholder h4 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #ffffff; /* БЕЛЫЙ цвет */
  font-weight: 600;
}

.catalog-placeholder p {
  color: #e5e5ea; /* Серый текст */
  font-size: 16px;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* Форма в модальном окне консультации */
.modal-description {
  text-align: center;
  color: #e5e5ea; /* Серый текст */
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.6;
}

/* Стили формы */
.form-group {
  margin-bottom: 25px;
}

#consultationForm input,
#consultationForm textarea {
  width: 100%;
  padding: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff; /* Белый текст ввода */
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s;
}

#consultationForm input:focus,
#consultationForm textarea:focus {
  outline: none;
  border-color: #007aff; /* Светло-синий как у кнопки */
  background: rgba(0, 122, 255, 0.05);
}

#consultationForm input::placeholder,
#consultationForm textarea::placeholder {
  color: rgba(229, 229, 234, 0.6); /* Светло-серый плейсхолдер */
}

.form-footer {
  text-align: center;
}

.form-note {
  color: #e5e5ea; /* Серый текст */
  font-size: 14px;
  margin-top: 20px;
  opacity: 0.8;
}

/* Кнопка отправки в модальном окне - СВЕТЛО-СИНИЙ градиент */
#consultationForm .ios-button.primary {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    #007aff,
    #5856d6
  ); /* Градиент как у кнопки */
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#consultationForm .ios-button.primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Прокрутка в модальном окне */
.modal-body::-webkit-scrollbar {
  width: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ====================== */
/* ОБНОВЛЕННЫЕ СТИЛИ ДЛЯ ВСЕХ МОДАЛЬНЫХ ОКОН */
/* ====================== */

/* Для всех заголовков в модальных окнах - белый цвет */
#modalServices .modal-header h3,
#modalCatalog .modal-header h3,
#modalFinance .modal-header h3,
#modalContacts .modal-header h3,
#modalConsultation .modal-header h3 {
  color: #ffffff;
}

/* Для всех иконок и важных элементов - светло-синий (#007aff) */
#modalServices .service-item-modal i,
#modalCatalog .catalog-placeholder i,
#modalFinance .finance-item-modal i,
#modalContacts .contact-item-modal i {
  color: #007aff;
}

/* Для всех заголовков внутри модальных окон - белый цвет */
#modalServices .service-text-modal h4,
#modalFinance .finance-text-modal h4,
#modalContacts .contact-text-modal h4 {
  color: #ffffff;
}

/* Для текста в контактах (телефон, email) - светло-синий */
#modalContacts .contact-text-modal a {
  color: #007aff;
}
/* Мобильное меню */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

/* Анимации */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ====================== */
/* АДАПТИВНОСТЬ */
/* ====================== */

@media (max-width: 768px) {
  /* Мобильное меню */
  .menu-toggle {
    display: block;
  }

  .header-content {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .ios-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 20px;
    border-top: 1px solid var(--border-color);
    gap: 15px;
  }

  .ios-nav.active {
    display: flex;
  }

  .logo span {
    font-size: 32px;
  }

  .splash-content h1 {
    font-size: 42px;
  }

  .main-title {
    font-size: 28px;
  }

  .main-subtitle {
    font-size: 18px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .action-buttons .ios-button {
    width: 100%;
    justify-content: center;
  }

  /* Адаптивность модальных окон */
  .modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .service-item-modal,
  .finance-item-modal,
  .contact-item-modal {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    align-items: center;
  }

  .service-item-modal i,
  .finance-icon-modal,
  .contact-icon-modal {
    margin: 0 auto;
  }

  .service-text-modal h4,
  .finance-text-modal h4,
  .contact-text-modal h4 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .logo span {
    font-size: 28px;
  }

  .splash-content h1 {
    font-size: 36px;
  }

  .main-title {
    font-size: 24px;
  }

  .main-subtitle {
    font-size: 16px;
  }

  .modal-header h3 {
    font-size: 20px;
  }

  .service-text-modal h4,
  .finance-text-modal h4,
  .contact-text-modal h4 {
    font-size: 18px;
  }

  #consultationForm input,
  #consultationForm textarea {
    padding: 15px;
  }

  .footer-logo span {
    font-size: 24px;
  }

  .footer-info p {
    font-size: 14px;
  }

  .footer-links {
    flex-direction: column;
    gap: 10px;
  }

  .footer-links span {
    display: none;
  }
}
/* Анимации */
@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Анимация для модального окна */
@keyframes modalSlideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content {
  animation: modalSlideIn 0.3s ease;
}
/* ====================== */
/* СТИЛИ ДЛЯ ТЕКСТА ПОВЕРХ СЛАЙДОВ */
/* ====================== */

.slide-text-overlay {
  position: absolute;
  top: 10%;
  right: 5%;
  width: 45%;
  height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-right: 0;
  z-index: 2;
}

.slide-content {
  text-align: right;
  max-width: 450px;
  margin-top: 20px;
}

/* Стили для двухстрочного заголовка */
.slide-title {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}

.title-line {
  display: block;
  text-align: right;
  white-space: nowrap; /* Не переносить текст */
  width: 100%; /* Занимает всю ширину */
}

.title-line:first-child {
  margin-bottom: 0; /* Убираем отступ между строками */
}

.slide-subtitle {
  font-size: 20px;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
  opacity: 0.9;
  margin-top: 5px; /* Отступ от заголовка */
}

.slide-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  margin-top: 10px;
}

.slide-buttons .ios-button {
  min-width: 180px;
  justify-content: center;
}

/* Затемнение под текстом для лучшей читаемости */
.slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Адаптивность для текста на слайдах */
@media (max-width: 1024px) {
  .slide-text-overlay {
    width: 50%;
    right: 4%;
    top: 8%;
  }

  .slide-title,
  .title-line {
    font-size: 32px;
    line-height: 1.1;
  }

  .slide-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .slide-text-overlay {
  /* ===== ИСПРАВЛЕНИЕ РОВНОСТИ ТЕКСТА ===== */
  .slide-text-overlay {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    left: 10% !important;
    right: 10% !important;
    width: 80% !important;
  }
  
  .slide-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
  }
  
  .slide-title {
    text-align: center !important;
    width: 100% !important;
  }
  
  .title-line-1,
  .title-line-2,
  .title-line {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
  }
    width: 55%;
    right: 3%;
    top: 6%;
  }

  .slide-title,
  .title-line {
    font-size: 28px;
    line-height: 1;
  }

  .slide-subtitle {
    font-size: 18px;
  }

  /* ===== КРАСИВЫЙ ПЕРЕНОС ТЕКСТА ===== */
  .slide-title {
    white-space: normal !important;
    text-align: center !important;
    align-items: center !important;
    line-height: 1.2 !important;
  }
  
  .title-line-1,
  .title-line-2,
  .title-line {
    white-space: normal !important;
    display: block !important;
    text-align: center !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
  }
  
  .slide-subtitle {
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  
  .slide-content {
    align-items: center !important;
    text-align: center !important;
  }
}
    text-align: center !important;
    align-items: center !important;
    line-height: 1.2 !important;
  }
  
  .title-line-1,
  .title-line-2,
  .title-line {
    white-space: normal !important;
    display: block !important;
    text-align: center !important;
    line-height: 1.1 !important;
    margin-bottom: 4px !important;
  }
  
  .slide-subtitle {
    text-align: center !important;
    margin-bottom: 20px !important;
  }
  
  .slide-content {
    align-items: center !important;
    text-align: center !important;
  }
    width: 55%;
    right: 3%;
    top: 6%;
  }

  .slide-title,
  .title-line {
    font-size: 28px;
    line-height: 1;
  }

  .slide-subtitle {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .slide-buttons .ios-button {
    min-width: 160px;
    padding: 10px 18px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .slide-text-overlay {
    width: 90%;
    right: 5%;
    left: 5%;
    top: 8%;
    justify-content: center;
    text-align: center;
  }

  .slide-content {
    text-align: center;
    width: 100%;
    margin-top: 10px;
  }

  .slide-title {
    align-items: center;
  }

  .slide-title,
  .title-line {
    font-size: 24px;
    line-height: 1.1;
  }

  .title-line {
    text-align: center;
  }

  .slide-subtitle {
    font-size: 16px;
  }

  .slide-buttons {
    align-items: center;
  }

@media (max-width: 1024px) {
  .slide-text-overlay {
    width: 50%;
    right: 4%;
    top: 8%;
  }

  .slide-title,
  .title-line {
    font-size: 32px;
    line-height: 1.1;
  }

  .slide-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .slide-text-overlay {
    width: 55%;
    right: 3%;
    top: 6%;
  }

  .slide-title,
  .title-line {
    font-size: 28px;
    line-height: 1;
  }

@media (max-width: 768px) {
  .slide-text-overlay {
    width: 55%;
    right: 3%;
    top: 6%;
  }

  .slide-title,
  .title-line {
    font-size: 28px;
    line-height: 1;
  }

  .slide-subtitle {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .slide-buttons .ios-button {
    min-width: 160px;
    padding: 10px 18px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .slide-text-overlay {
  /* ===== ОПТИМИЗАЦИЯ ДЛЯ ТЕЛЕФОНОВ ===== */
  .slide-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }
  
  .title-line-1,
  .title-line-2,
  .title-line {
    font-size: 23px !important;
    margin-bottom: 3px !important;
  }
  
  .slide-subtitle {
    font-size: 15px !important;
  }
    width: 90%;
    right: 5%;
    left: 5%;
    top: 8%;
}
@media (max-width: 480px) {
  .slide-text-overlay {
    width: 90%;
    right: 5%;
    left: 5%;
    top: 8%;
    justify-content: center;
    text-align: center;
  }

  .slide-content {
    text-align: center;
    width: 100%;
    margin-top: 10px;
  }

  .slide-title {
    align-items: center;
  }

  .slide-title,
  .title-line {
    font-size: 24px;
    line-height: 1.1;
  }

  .title-line {
    text-align: center;
  }

  .slide-subtitle {
@media (max-width: 360px) {
  .slide-title,
  .title-line {
    font-size: 22px;
  }

  .slide-subtitle {
    font-size: 15px;
  }
}

/* ========== КРИТИЧЕСКИЕ ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНЫХ ========== */

/* 1. Фиксим горизонтальную прокрутку на мобильных */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
    width: 100% !important;
  }

/* ===== ВАЖНЫЕ ИСПРАВЛЕНИЯ ДЛЯ МЕНЮ ===== */
.menu-toggle {
  cursor: pointer !important;
  z-index: 1001 !important;
  position: relative !important;
  background: none !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-size: 24px !important;
  padding: 10px !important;
  display: none !important; /* По умолчанию скрыто */
}

/* На мобильных показываем кнопку меню и скрываем обычную навигацию */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .ios-nav {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.98) !important;
    z-index: 1000 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    gap: 25px !important;
  }
  
  .ios-nav.active {
    display: flex !important;
  }
  
  .ios-nav a {
    color: white !important;
    font-size: 20px !important;
    padding: 15px 30px !important;
    width: 100% !important;
    text-align: center !important;
    border-radius: 10px !important;
    transition: all 0.3s !important;
  }
  
  .ios-nav a:hover,
  .ios-nav a.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
  }
}

/* Для компьютера скрываем кнопку меню */
@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
  
  .ios-nav {
    display: flex !important;
  }
}
