
/* ================== СТИЛИ НАВИГАЦИОННОЙ СТРОКИ ПУТИ ================== */

.tattoo-page-path {
    position: relative;
    z-index: 2;
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-family: 'Bellota Text', system-ui, sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    margin-top: 20px;
}

.tattoo-page-path .path-link {
    color: rgba(225, 219, 232, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 400;
    padding: 2px 6px;
    border-radius: 4px;
}

.tattoo-page-path .path-link:hover {
    color: #a300ff;
}

.tattoo-page-path .path-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

.tattoo-page-path .path-current {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* === БЛОК УСЛУГИ ТАТУИРОВКИ === */

/* Контейнер блока */
.tattoo-service-section {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 10;
}

.tattoo-service-wrapper {
    width: 100%;
}

/* Заголовок слева */
.tattoo-service-title {
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 50px;
    position: relative;
    padding-left: 10px;
    text-align: left;
}

/* Контейнер с описанием и видео - теперь они в одном родительском контейнере */
.tattoo-content-container {
    display: flex;
    gap: 40px;
    align-items: stretch; /* Растягиваем дочерние элементы по высоте */
    height: 570px; /* Фиксированная высота как у видео */
}

/* Левая часть с описанием на стеклянном фоне */
.tattoo-description-glass {
    flex: 1;
    display: flex;
    height: 100%; /* Занимает всю высоту родительского контейнера */
}

.glass-background {
    width: 100%;
    padding: 40px;
    background: rgba(23, 19, 33, 0.299); /* Темно-фиолетовый с прозрачностью */
    backdrop-filter: blur(8px); /* Эффект размытия */
    -webkit-backdrop-filter: blur(15px); /* Для Safari */
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Тонкая светлая обводка */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    height: 100%; /* Занимает всю высоту */
    box-sizing: border-box; /* Важно! */
    overflow: hidden; /* Чтобы контент не выходил за границы */
}

/* Эффект свечения по краям */
.glass-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Контейнер для контента внутри стеклянного фона */
.glass-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    overflow-y: auto;
    padding-right: 5px;
}

/* Стилизация скроллбара для .glass-content */
.glass-content::-webkit-scrollbar {
    width: 6px;
}

.glass-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.glass-content::-webkit-scrollbar-thumb {
    background: rgba(157, 78, 221, 0.5);
    border-radius: 3px;
}

.glass-content::-webkit-scrollbar-thumb:hover {
    background: rgba(177, 98, 234, 0.7);
}

.tattoo-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    line-height: 1.7;
}

.tattoo-description:first-child {
    margin-top: 0;
}

/* Кнопки */
.tattoo-buttons {
    display: flex;
    gap: 20px;
    margin-top: 0;
    padding-top: 20px;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Базовая стилизация для всех кнопок */
.tattoo-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Bellota Text', sans-serif;
    box-sizing: border-box;
}

/* Кнопка "Портфолио" */
.btn-portfolio {
    background: rgba(157, 78, 221, 0.4);
    border: 2px solid rgba(157, 78, 221, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: auto;
    min-width: 180px;
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.btn-portfolio:hover { 
    background: rgba(177, 98, 234, 0.5);
    border-color: rgba(177, 98, 234, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.35);
}

.btn-portfolio:active {
    transform: translateY(-1px);
}

/* Кнопка "Записаться" */
.btn-appointment {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    padding: 12px 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: auto;
    min-width: 180px;
    max-width: 100%;
    height: auto;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.1),
        inset 0 -1px 1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Эффект свечения для кнопки "Записаться" */
.btn-appointment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.2) 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.btn-appointment:hover {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.2) 100%
    );
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px rgba(255, 255, 255, 0.2),
        inset 0 1px 1px rgba(255, 255, 255, 0.15),
        inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

.btn-appointment:active {
    transform: translateY(-1px);
}

/* Правая часть с видео 9:16 */
.tattoo-video-container {
    flex: 0 0 320px;
    display: flex;
    height: 100%;
}

.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    height: 100%;
}

/* Плейсхолдер видео */
/* Новый код: */
.video-placeholder {
    width: 100%;
    height: 100%;
    background: #000; /* Просто черный фон */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Добавляем затемнение поверх видео для лучшей видимости кнопки */
.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}


/* Если хотите добавить затемнение при наведении */
.video-placeholder:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(163, 0, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 3px solid rgba(163, 0, 255, 0.5);
    transition: all 0.3s ease;
    z-index: 2;
}

.video-placeholder:hover .play-button {
    background: rgba(163, 0, 255, 0.3);
    border-color: rgba(163, 0, 255, 0.7);
    transform: scale(1.1);
}

.play-button i {
    font-size: 30px;
    color: rgba(163, 0, 255, 0.8);
    margin-left: 5px;
}

.video-label {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    text-align: center;
    padding: 0 15px;
}

/* === АДАПТИВНОСТЬ === */
/* === АДАПТИВНОСТЬ === */

/* Для экранов 1040px и меньше - ЦЕНТРИРУЕМ ВСЕ */
@media (max-width: 1040px) {
    .tattoo-page-path {
        font-size: 15px;
        margin-bottom: 12px;
        justify-content: center; /* ЦЕНТР */
    }
    
    .tattoo-service-title {
        font-size: 36px;
        text-align: center; /* ЦЕНТР */
        margin-bottom: 40px;
        padding-left: 0; /* Убираем левый отступ при центрировании */
    }
}

/* Для планшетов и небольших ноутбуков (1024px и меньше) */
@media (max-width: 1024px) {
    .tattoo-content-container {
        flex-direction: column;
        gap: 50px;
        align-items: center;
        height: auto;
    }
    
    .tattoo-description-glass {
        width: 100%;
        max-width: 800px;
        height: auto;
    }
    
    .glass-background {
        height: auto;
        padding: 30px;
    }
    
    .glass-content {
        overflow-y: visible;
        justify-content: flex-start;
        padding-right: 0;
    }
    
    .tattoo-video-container {
        width: 100%;
        max-width: 320px;
        flex: 0 0 auto;
        height: 500px;
    }
    
    .tattoo-description {
        font-size: 17px;
    }
    
    .tattoo-buttons {
        gap: 15px;
        margin-top: 0px;
        padding-bottom: 20px;
    }
    
    .btn-portfolio,
    .btn-appointment {
        padding: 10px 20px;
        font-size: 16px;
        min-width: 160px;
    }
}

/* Для планшетов (768px и меньше) */
@media (max-width: 768px) {
    .tattoo-service-section {
        padding: 40px 15px;
    }
    
    .glass-background {
        padding: 25px;
    }
    
    .tattoo-description {
        font-size: 16px;
    }
    
    .tattoo-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        margin-top: 0px;
        padding-bottom: 20px;
    }
    
    .tattoo-video-container {
        height: 450px;
    }
    
    .btn-portfolio,
    .btn-appointment {
        padding: 10px 18px;
        font-size: 15px;
        min-width: 150px;
    }
    
    /* Уточняем центрирование для 768px */
    .tattoo-page-path {
        font-size: 14px;
        margin-bottom: 10px;
        justify-content: center;
        margin-top: 10px;
    }
    
    .tattoo-service-title {
        font-size: 34px; /* Немного меньше для планшетов */
        text-align: center;
        margin-bottom: 40px;
    }
}

/* Для мобильных телефонов (480px и меньше) */
@media (max-width: 480px) {
    .tattoo-service-title {
        font-size: 28px;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .glass-background {
        padding: 20px;
        border-radius: 16px;
    }
    
    .tattoo-description {
        font-size: 15px;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .tattoo-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 0px;
        padding-bottom: 20px;
    }
    
    .tattoo-video-container {
        height: 400px;
    }
    
    .play-button {
        width: 70px;
        height: 70px;
    }
    
    .play-button i {
        font-size: 25px;
    }
    
    .btn-portfolio,
    .btn-appointment {
        width: 100%;
        max-width: 250px;
        min-width: auto;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    /* Навигация для 480px */
    .tattoo-page-path {
        font-size: 13px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 15px;
    }
    
    .tattoo-page-path .path-separator {
        margin: 0 5px;
    }
}

/* Для очень маленьких экранов (360px и меньше) */
@media (max-width: 360px) {
    .tattoo-service-title {
        font-size: 24px;
    }
    
    .tattoo-video-container {
        height: 350px;
    }
    
    .glass-background {
        padding: 18px 15px;
    }
    
    .tattoo-description {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .btn-portfolio,
    .btn-appointment {
        width: 100%;
        max-width: 220px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Навигация для 360px */
    .tattoo-page-path {
        font-size: 12px;
    }
}

/* ДОБАВЬТЕ ЭТО В КОНЕЦ ФАЙЛА CSS */

/* Стили для видео, которое скрыто по умолчанию */
.tattoo-video {
    display: none; /* Скрываем видео по умолчанию */
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Позиционирование для правильного отображения */
.video-wrapper {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    height: 100%;
    background: #000; /* Черный фон на случай если видео не загрузится */
}

/* Когда плейсхолдер скрыт, показываем видео */
.video-placeholder.hidden {
    display: none;
}

.video-placeholder.hidden + .tattoo-video {
    display: block;
}

/* Альтернативный вариант через JS - класс для показа видео */
.video-wrapper.show-video .video-placeholder {
    display: none;
}

.video-wrapper.show-video .tattoo-video {
    display: block;
}

/* Адаптивность для видео контейнера */
@media (max-width: 1024px) {
    .tattoo-video-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .tattoo-video-container {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .tattoo-video-container {
        height: 400px;
    }
}

@media (max-width: 360px) {
    .tattoo-video-container {
        height: 350px;
    }
}/* === ОБЩИЕ БАЗОВЫЕ СТИЛИ === */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Bellota Text', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #000;
  color: #fff;
}
a { color: inherit; text-decoration: none; }


.main-background {
  position: relative;
  background: linear-gradient(180deg, #08040a 0%, #2b1735 27%, #110914 100%);
  background-size: cover;
  overflow: hidden;
}

/* Текстурный фон (используем псевдоэлемент для текстуры) */
.main-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/textures/rock_surface.webp") repeat;
  opacity: 1; /* Регулируем прозрачность */
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 0;
}

/* Правая текстура брызг (оптимизировано для LCP) */
.main-background .splash-right {
  position: absolute;
  top: 240px;
  right: 0;
  width: 800px;
  height: 1754px;
  object-fit: contain;
  object-position: top right;
  opacity: 0.55;
  /* УДАЛИТЕ: mix-blend-mode: screen; */
  pointer-events: none;
  z-index: 1;
  /* Ускоряем отрисовку на GPU */
  will-change: opacity;
  transform: translateZ(0);
}

@media (max-width: 1150px) {
  .main-background .splash-right {
    top: 120px;
    width: 600px;
    height: 1315.5px;
  }
}

/* Левая текстура брызг (создаем отдельный элемент) */
.main-background .splash-left {
  content: "";
  position: absolute;
  top: 240px;
  left: 0;
  width: 800px;
  height: 2225px;
  background: url("assets/textures/Брызги_слева_ВЕРХ.webp") no-repeat top left;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Правые брызги 2 */
.main-background .splash-right-2 {
  content: "";
  position: absolute;
  top: 1700px;
  right: 0;
  width: 700px;
  height: 1383px;
  background: url("assets/textures/Брызгри_Справа_2.webp") no-repeat top right;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Брызгри слева 2 */
.main-background .splash-left-2 {
  content: "";
  position: absolute;
  top: 2100px;
  left: 0;
  width: 900px;
  height: 1383px;
  background: url("assets/textures/Брызги_слева_2.webp") no-repeat top left;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Брызги справа 3 */
.main-background .splash-right-3 {
  content: "";
  position: absolute;
  bottom: 1850px;
  right: 0;
  width: 950px;
  height: 2110px;
  background: url("assets/textures/Брызгри_Справа_3.webp") no-repeat top right;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

/* Брызги слева 3 */
.main-background .splash-left-3 {
  content: "";
  position: absolute;
  bottom: 2000px;
  left: 0;
  width: 694px;
  height: 1197px;
  background: url("assets/textures/Брызги_слева_3.webp") no-repeat top left;
  background-size: contain;
  opacity: 0.55;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.site-head-wrapper {
  position: relative; /* чтобы z-index работал */
  z-index: 5;         /* выше, чем псевдоэлемент ::before */
  background-color: #1D1322; /* плотный темный фон */
}


/* --- Обёртка хэдэра*/

.site-head-wrapper {
  width: 100%;
  background-color: #1D1322; /* плотный темный фон */
  background-image: none;    /* без текстуры или с полностью непрозрачной картинкой */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 1;                 /* гарантируем полную непрозрачность */
}

/* Контейнер контента остаётся прозрачным, чтобы не перекрывал фон */
.site-head {
  width: 1280px;
  height: 161px;
  margin: 0 auto;
  position: relative;
  font-family: Arial, sans-serif;
  background: transparent;
}



/* --- Звезда --- */
.star {
  position: absolute;
  left: 109px;
  top: 35px;
}
.star img {
  width: 84px;
  height: 80px;
  object-fit: contain;
  display: block;
}

/* --- Телефон --- */
.phone {
  position: absolute;
  left: 205px;
  top: 70px;
  font-weight: 700;
  font-size: 20px;
  color: #ffffff;
  text-decoration: none;
}
.phone:hover {
  text-decoration: underline;
}

/* --- Центральный логотип --- */
.head-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.head-center img {
  width: 412px;
  height: 119px;
  object-fit: contain;
  display: block;
}

/* --- Соцсети справа --- */
.head-right {
  position: absolute;
  right: 109px; /* выравниваем симметрично */
  top: 56px;
  display: flex;
  gap: 15px;
}

/* --- Общие стили иконок --- */
.sicon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #cccccc;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  transition: background-color 0.22s ease, transform 0.12s ease;
}
.sicon:hover {
  transform: translateY(-3px);
}

/* Telegram */
.sicon.telegram {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/telegram-app.png');
}
.sicon.telegram:hover {
  background-color: #0088cc;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/telegram-app.png');
}

/* MAX */
.sicon.max {
  background-image: url('assets/icons/max_black.webp?v');
}
/* MAX */
.sicon.max:hover {
  background: 
    url('assets/icons/max_white.webp') no-repeat center / 58%,
    linear-gradient(135deg, #00c4ff, #2a6bff, #8c4eff);
}

/* VK */
.sicon.vk {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/vk-circled.png');
}
.sicon.vk:hover {
  background-color: #1877f2;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/vk-circled.png');
}

/* YouTube */
.sicon.youtube {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/youtube-play.png');
}
.sicon.youtube:hover {
  background-color: #ff0000;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/youtube-play.png');
}

/* === АККУРАТНОЕ СЖАТИЕ (1280px - 1025px) === */
@media (min-width: 1025px) and (max-width: 1280px) {
  .site-head {
    width: 100% !important;
    padding: 0 60px !important;
  }
}

/* === СКРЫТИЕ ЛОГОТИПА (1024px - 769px) === */
@media (min-width: 769px) and (max-width: 1024px) {
  .site-head {
    width: 100% !important;
    padding: 0 60px !important;
  }
  
  .head-center {
    display: none !important;
  }
}

/* === МОБИЛЬНАЯ ВЕРСИЯ (768px и меньше) === */
@media (max-width: 768px) {
  .site-head-wrapper {
    height: auto !important;
    padding: 20px 0 !important;
  }
  
  .site-head {
    width: 100% !important;
    height: auto !important;
    padding: 0 20px !important;
    position: static !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .head-center {
    display: none !important;
  }
  
  .star {
    position: static !important;
    order: 1;
  }
  
  .star img {
    width: 60px !important;
    height: 55px !important;
    display: inline-block !important;
    vertical-align: middle !important;
  }
  
  .phone {
    position: static !important;
    order: 2;
    font-size: 18px !important;
    padding: 10px 18px !important;
    background: rgba(163, 0, 255, 0.15) !important;
    border-radius: 25px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    margin-left: 15px !important;
  }
  
  .head-right {
    position: static !important;
    order: 3;
    display: flex !important;
    justify-content: center;
    gap: 15px;
    width: 100%;
  }
  
  .sicon {
    width: 48px !important;
    height: 48px !important;
    background-size: 26px 26px !important;
  }
}

/* === ГОРИЗОНТАЛЬНЫЙ ТЕЛЕФОН === */
@media (max-width: 768px) and (orientation: landscape) {
  .site-head {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px !important;
    gap: 10px !important;
  }
  
  .star {
    order: 1 !important;
  }
  
  .phone {
    order: 2 !important;
    margin-left: 10px !important;
  }
  
  .head-right {
    order: 3 !important;
    width: auto !important;
    justify-content: flex-end;
  }
}

/* === ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ === */
@media (max-width: 380px) {
  .site-head {
    gap: 15px;
    padding: 0 15px !important;
  }
  
  .star img {
    width: 50px !important;
    height: 45px !important;
  }
  
  .phone {
    font-size: 16px !important;
    padding: 8px 14px !important;
    margin-left: 10px !important;
  }
  
  .sicon {
    width: 44px !important;
    height: 44px !important;
  }
}

/* ======================
   ОСНОВНОЕ МЕНЮ
   ====================== */
.main-menu {
  position: sticky;
  top: 0;
  z-index: 1006; /* УВЕЛИЧИЛ ДЛЯ ПРИОРИТЕТА НАД ШАПКОЙ */
  width: 100%;
  background-color: #1D1322;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 81px;
  transition: top 0.3s ease;
}

.menu-inner {
  width: 1280px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.desktop-menu {
  display: flex;
  gap: 45px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
}

.main-menu a {
  font-weight: bold;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.main-menu a:hover {
  color: #a300ff;
}

/* ======================
   БУРГЕР (АБСОЛЮТНЫЙ - ВСЕГДА СВЕРХУ)
   ====================== */
.burger-checkbox {
  position: absolute;
  visibility: hidden;
}

.burger {
  position: fixed; /* Меняем absolute на fixed */
  z-index: 1007;
  cursor: pointer;
  display: none;
  border: none;
  background: transparent;
  width: 40px;
  height: 26px;
  left: 30px;
  top: 30px; /* Фиксированная позиция от верха */
  transform: none; /* Убираем transform */
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  border-radius: 10px;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transform-origin: center;
}

.burger::before {
  top: 0;
  transform: translateY(0) rotate(0);
}

.burger::after {
  bottom: 0;
  transform: translateY(0) rotate(0);
}

.burger-checkbox:checked + .burger::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.burger-checkbox:checked + .burger::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* ======================
   МОБИЛЬНОЕ МЕНЮ (ПОД БУРГЕРОМ)
   ====================== */
.menu-list {
  position: fixed;
  top: 0 !important; /* Теперь меню начинается с самого верха */
  left: 0;
  width: 300px;
  height: 100vh; /* Занимает всю высоту */
  margin: 0;
  padding: 80px 0 0 0; /* Отступ сверху для бургера */
  list-style: none;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1005;
  overflow-y: auto;
  
  background: linear-gradient(
    to bottom,
    #1D1322 0%,
    #1D1322 20%,
    rgba(29, 19, 34, 0.95) 40%,
    rgba(29, 19, 34, 0.85) 60%,
    rgba(29, 19, 34, 0.7) 80%,
    rgba(29, 19, 34, 0.4) 100%
  );
  backdrop-filter: blur(10px);
}

.menu-item {
  display: block;
  padding: 15px 30px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.menu-item:hover {
  background: rgba(163, 0, 255, 0.2);
  color: #a300ff;
  padding-left: 40px;
}

.burger-checkbox:checked ~ .menu-list {
  transform: translateX(0);
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

/* ======================
   МЕДИА ЗАПРОСЫ - ТЕПЕРЬ С 1150px!
   ====================== */
@media (max-width: 1150px) {
  .burger {
    display: block;
  }
  
  .desktop-menu {
    display: none;
  }
  
  .main-menu {
    display: none !important;
  }
  
  .menu-list {
    overflow-y: auto;
  }
  
  .menu-list::-webkit-scrollbar {
    width: 6px;
  }
  
  .menu-list::-webkit-scrollbar-thumb {
    background: #a300ff;
    border-radius: 3px;
  }
}

/* ДОБАВЛЯЕМ ОТСТУП ДЛЯ КОНТЕНТА */
body {
  padding-top: 0;
}

.main-menu.sticky + * {
  margin-top: 81px;
}

/* ======================
   КНОПКА "НАВЕРХ"
   ====================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #a300ff;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(163, 0, 255, 0.3);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #8a00d4;
  transform: translateY(-3px);
}

.scroll-to-top.force-hide {
  opacity: 0 !important;
  visibility: hidden !important;
}


/* ================== 7 БЛОК: CONSULTATION FORM ================== */
/* --- ОБЁРТКА ФОРМЫ: бесконечный фон --- */
#consultation-form-wrapper {
  width: 100%;
  min-height: 560px;
  background-image: url('assets/images/form background.webp');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  overflow: hidden;
  z-index: 3;
}

/* --- Градиент поверх фона --- */
#consultation-form-wrapper .form-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right,
    rgba(0,0,0,0.96) 0%,
    rgba(0,0,0,0.78) 18%,
    rgba(0,0,0,0.55) 42%,
    rgba(0,0,0,0.25) 68%,
    rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 5;
}

/* Контейнер с контентом - центрирование */
#consultation-form {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  min-height: 560px;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center; /* Центрируем содержимое */
  padding: 60px 20px 20px;
  background: transparent;
  flex-direction: row;
  gap: 40px; /* Равное расстояние между заголовком и формой */
}

/* Заголовок - левая часть */
#consultation-form .title {
  font-weight: 700;
  font-size: 42px;
  font-family: inherit;
  max-width: 549px;
  line-height: 1.15;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  height: 100%;
  margin-top: 20px;
  flex: 1;
}

/* Форма - правая часть */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px; /* Одинаковое расстояние между всеми элементами */
  width: 380px;
  z-index: 7;
  transition: transform .25s ease;
  margin-top: 20px;
  flex-shrink: 0;
}

/* Поля — мягкие границы, эффекты (обновленный стиль) */
.contact-form input {
  height: 56px;
  padding: 10px 16px;
  border-radius: 12px; /* Менее закругленные углы */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  background: rgba(0, 0, 0, 0.7); /* Более темный фон */
  color: #ffffff;
  font-size: 18px;
  font-family: 'Bellota Text', sans-serif;
  outline: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: border-color .20s ease, box-shadow .18s ease, transform .12s ease;
  width: 100%; /* Всегда 100% ширины контейнера формы */
}

.contact-form input::placeholder { 
  color: rgba(255, 255, 255, 0.45); 
}

.contact-form input:focus {
  border-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый при фокусе */
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(157, 78, 221, 0.25);
}

/* Dropdown button styled like input */
.dropdown { 
  position: relative; 
  width: 100%; 
}

.dropdown-btn {
  height: 56px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 12px; /* Менее закругленные углы */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  background: rgba(0, 0, 0, 0.7); /* Более темный фон */
  color: #ffffff;
  font-size: 18px;
  font-family: 'Bellota Text', sans-serif;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  outline: none;
  transition: all .20s ease;
}

.dropdown-btn:hover {
  border-color: rgba(177, 98, 234, 0.9); /* Ярче при ховере */
}

/* Список выпадающий */
.dropdown-content {
  display: none;
  position: absolute;
  top: 66px;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8); /* Более темный фон */
  border-radius: 12px; /* Менее закругленные углы */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  z-index: 60;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  list-style: none;
  padding: 6px 0;
  margin: 0;
}

.dropdown-content li {
  padding: 12px 16px;
  cursor: pointer;
  color: #ffffff;
  font-family: 'Bellota Text', sans-serif;
  transition: background .12s ease;
}

.dropdown-content li:hover {
  background: rgba(157, 78, 221, 0.25); /* Ярче фиолетовый фон */
}

/* helper class */
.dropdown-content.show { 
  display: block; 
}

/* Кнопка — в потоке (обновленный стиль) */
.btn-cta {
  background: rgba(157, 78, 221, 0.4); /* Ярче полупрозрачный фиолетовый */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #fff;
  font-size: 20px;
  font-family: 'Bellota Text', sans-serif;
  font-weight: 700;
  width: 100%;
  height: 56px;
  border-radius: 12px; /* Менее закругленные углы */
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.btn-cta:hover { 
  background: rgba(177, 98, 234, 0.5); /* Ярче при ховере */
  border-color: rgba(177, 98, 234, 0.9); /* Ярче при ховере */
  transform: translateY(-4px); 
  box-shadow: 0 18px 46px rgba(157, 78, 221, 0.35); /* Ярче тень */
}

/* Контейнер согласия */
.consent-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5); /* Более темный фон */
  border-radius: 12px; /* Менее закругленные углы */
  border: 1px solid rgba(157, 78, 221, 0.5); /* Ярче фиолетовый */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Чекбокс */
.consent-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
  border: 2px solid rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.consent-checkbox input[type="checkbox"]:hover {
  border-color: rgba(177, 98, 234, 0.9); /* Ярче при ховере */
  box-shadow: 0 0 10px rgba(157, 78, 221, 0.6); /* Ярче тень */
}

.consent-checkbox input[type="checkbox"]:checked {
  background-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
  border-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
}

/* Текст согласия */
.consent-checkbox label {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-weight: 300;
  font-family: 'Bellota Text', system-ui, sans-serif;
}

/* Ссылки в согласии */
.consent-checkbox .consent-link {
  color: rgba(177, 98, 234, 0.95); /* Ярче фиолетовый */
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
  font-weight: 400;
}

.consent-checkbox .consent-link:hover {
  color: rgba(197, 128, 255, 1); /* Еще ярче при ховере */
  border-bottom-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
}

/* Сообщение об ошибке */
.form-submitted .consent-checkbox:has(input:not(:checked)) {
  border-color: rgba(255, 75, 75, 0.7);
  background: rgba(255, 75, 75, 0.1);
}

.form-submitted .consent-checkbox:has(input:not(:checked)) label {
  color: rgba(255, 180, 180, 0.95);
}

/* ================== КАЧЕСТВЕННЫЙ МЕДИАЗАПРОС: 1024px - 768px ================== */
@media (min-width: 768px) and (max-width: 1024px) {
  #consultation-form-wrapper {
    min-height: 520px;
  }
  
  #consultation-form {
    min-height: 520px;
    padding: 50px 40px 40px !important;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
  }
  
  #consultation-form .title {
    font-size: 36px !important;
    max-width: 450px;
    margin-top: 15px;
  }
  
  .contact-form {
    width: 340px !important;
    margin-top: 15px;
    gap: 18px;
  }
  
  .contact-form input,
  .dropdown-btn {
    height: 52px;
    font-size: 17px;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.7); /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    padding: 12px;
    align-items: flex-start !important;
    gap: 12px !important;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5); /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5); /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    border-color: rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9); /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 13.5px;
    line-height: 1.5 !important;
  }
  
  .btn-cta {
    height: 54px;
    font-size: 19px;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4); /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7); /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5); /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9); /* Ярче при ховере */
  }
}

/* ================== АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ================== */

/* Планшеты (до 768px) */
@media (max-width: 768px) {
  #consultation-form-wrapper {
    min-height: auto;
  }
  
  #consultation-form {
    min-height: auto;
    padding: 40px 30px !important;
    flex-direction: column;
    align-items: center !important;
    text-align: center !important;
    gap: 30px;
  }
  
  #consultation-form .title {
    max-width: 100% !important;
    text-align: center !important;
    font-size: 30px !important;
    margin-top: 0;
    position: static;
  }
  
  .contact-form {
    position: relative !important;
    width: 100% !important;
    max-width: 380px !important; /* Такая же ширина как на больших экранах */
    margin: 0 auto !important;
    margin-top: 0;
    gap: 18px; /* Одинаковое расстояние как на десктопе */
  }
  
  .contact-form input,
  .dropdown-btn,
  .btn-cta {
    width: 100% !important; /* Все элементы на всю ширину формы */
    border-radius: 12px; /* Сохраняем менее закругленные углы */
  }
  
  .contact-form input,
  .dropdown-btn {
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    margin: 0;
    width: 100%;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 15px !important;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }
  
  .btn-cta {
    width: 100% !important;
    border-radius: 12px; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4) !important; /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5) !important; /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9) !important; /* Ярче при ховере */
  }
}

/* Мобильные (до 480px) */
@media (max-width: 480px) {
  #consultation-form {
    padding: 35px 20px !important;
    gap: 25px;
  }
  
  #consultation-form .title {
    font-size: 24px !important;
    line-height: 1.3 !important;
  }
  
  .contact-form {
    gap: 18px !important; /* Сохраняем одинаковые расстояния */
    max-width: 380px !important; /* Сохраняем фиксированную ширину */
  }
  
  .contact-form input,
  .dropdown-btn {
    height: 56px !important; /* Сохраняем высоту как на десктопе */
    font-size: 18px !important; /* Сохраняем размер шрифта */
    padding: 10px 16px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    flex-direction: row !important;
    align-items: flex-start !important;
    padding: 15px !important; /* Сохраняем отступы как на десктопе */
    width: 100%;
    gap: 12px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 14px !important; /* Сохраняем размер шрифта */
    line-height: 1.5 !important;
    text-align: left !important;
  }
  
  .btn-cta {
    height: 56px !important; /* Сохраняем высоту как на десктопе */
    font-size: 20px !important; /* Сохраняем размер шрифта */
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4) !important; /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5) !important; /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9) !important; /* Ярче при ховере */
  }
}

/* Очень маленькие экраны (до 360px) */
@media (max-width: 360px) {
  #consultation-form .title {
    font-size: 22px !important;
  }
  
  .contact-form {
    max-width: 100% !important; /* На очень маленьких экранах 100% */
    gap: 16px !important;
  }
  
  .contact-form input,
  .dropdown-btn {
    height: 52px !important;
    font-size: 16px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }
  
  .btn-cta {
    height: 52px !important;
    font-size: 18px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4) !important; /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5) !important; /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9) !important; /* Ярче при ховере */
  }
}

/* Горизонтальная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
  #consultation-form {
    padding: 25px 20px !important;
  }
  
  .contact-form {
    max-width: 400px !important;
    gap: 16px;
  }
  
  .contact-form input,
  .dropdown-btn {
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    padding: 12px !important;
    align-items: flex-start !important;
    gap: 12px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;
  }
}

/* Старый медиазапрос для совместимости (до 900px) */
@media (max-width: 900px) {
  #consultation-form { 
    height: auto; 
    padding: 40px 20px !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  #consultation-form .title { 
    font-size: 28px; 
    max-width: 100%; 
    text-align: center;
    position: static;
    margin-top: 0;
  }
  
  .contact-form { 
    position: static; 
    width: 100%; 
    max-width: 380px; 
    margin: 0 auto !important;
    gap: 18px;
    margin-top: 0;
  }
  
  .contact-form input,
  .dropdown-btn {
    background: rgba(0, 0, 0, 0.7) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox {
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 15px !important;
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(0, 0, 0, 0.5) !important; /* Более темный фон */
    border-color: rgba(157, 78, 221, 0.5) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox input[type="checkbox"] {
    margin-top: 2px !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
    accent-color: rgba(177, 98, 234, 0.9) !important; /* Ярче фиолетовый */
  }
  
  .consent-checkbox label {
    text-align: left !important;
    line-height: 1.5 !important;
  }
  
  .btn-cta { 
    width: 100%; 
    border-radius: 12px !important; /* Сохраняем менее закругленные углы */
    background: rgba(157, 78, 221, 0.4) !important; /* Ярче полупрозрачный фиолетовый */
    border-color: rgba(157, 78, 221, 0.7) !important; /* Ярче фиолетовый */
  }
  
  .btn-cta:hover {
    background: rgba(177, 98, 234, 0.5) !important; /* Ярче при ховере */
    border-color: rgba(177, 98, 234, 0.9) !important; /* Ярче при ховере */
  }
}
/* КАРТА */
/* контейнер держит карточку в границах карты */
.map-wrapper {
  position: relative;
  width: 100%;
}

/* сама карта */
#map {
  width: 100%;
  min-height: 510px;
  border-radius: 14px;
  overflow: hidden;
}

/* карточка контактов */
.contacts-card {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 280px;
  background: rgba(0,0,0,0.75);
  padding: 18px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
  backdrop-filter: blur(6px);
}

/* адаптив для планшетов и мобилок */
@media (max-width: 768px) {
  /* Увеличиваем высоту карты */
  #map {
    min-height: 600px; /* или можно использовать height: 600px; */
  }
  
  /* Карточка: центрируем и делаем компактной */
  .contacts-card {
    position: absolute;
    top: auto;
    bottom: 20px; /* Размещаем внизу карты */
    right: auto;
    left: 50%;
    transform: translateX(-50%); /* Центрируем по горизонтали */
    width: 280px; /* Сохраняем ширину как в десктопе */
    max-width: 90%; /* Но не более 90% ширины экрана */
    margin-top: 0;
    background: rgba(0,0,0,0.85); /* Чуть темнее для лучшей читаемости */
  }
  
  /* Дополнительно для очень маленьких экранов */
  @media (max-width: 480px) {
    #map {
      min-height: 650px; /* Еще больше высота на маленьких экранах */
    }
    
    .contacts-card {
      width: 260px; /* Чуть уже на очень маленьких экранах */
      padding: 15px;
    }
  }
  
  /* Для ландшафтной ориентации на мобильных */
  @media (max-width: 768px) and (orientation: landscape) {
    #map {
      min-height: 450px; /* Меньшая высота в ландшафте */
    }
    
    .contacts-card {
      bottom: 15px;
      width: 250px;
    }
  }
}

/* Опционально: можно добавить эффект при наведении на десктопе */
@media (min-width: 769px) {
  .contacts-card:hover {
    background: rgba(0,0,0,0.85);
    transform: translateY(-50%) scale(1.02);
    transition: all 0.3s ease;
  }
}

/* === 8 БЛОК: Конечный блок / Footer === */
.footer {
  width: 100%;
  min-width: 1100px;
  height: 232px;
  background-color: #111020;
  position: relative;
  z-index: 0;
}

.footer-container {
  position: relative;
  width: 1280px;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
}

/* Логотип */
.footer-logo {
  position: absolute;
  left: 112px;
  top: 47px;
  width: 189px;
  height: 96px;
  object-fit: contain;
}

/* Копирайт */
.footer-copy {
  position: absolute;
  left: 112px;
  bottom: 48px;
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  margin: 0;
}

/* Мини-меню */
.footer-menu {
  position: absolute;
  left: 452px;
  top: 55px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-menu a {
  color: #aaaaaa;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-menu a:hover {
  color: #a300ff;
}

/* Контакты */
.footer-contacts {
  position: absolute;
  left: 607px;
  top: 62px;
  color: #ffffff;
  font-weight: bold;
  font-size: 20px;
  line-height: 1.6;
}

.footer-contacts a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer-contacts a:hover {
  color: #a300ff;
}

/* Соцсети */
.footer-social {
  position: absolute;
  left: 938px;
  top: 92px;
  display: flex;
  gap: 12px;
}

/* === Кнопки соцсетей === */
.sicon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #cccccc;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
  transition: background-color 0.22s ease, transform 0.12s ease;
}
.sicon:hover { transform: translateY(-3px); }

/* Telegram */
.sicon.telegram {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/telegram-app.png');
}
.sicon.telegram:hover {
  background-color: #0088cc;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/telegram-app.png');
}

/* MAX */
.sicon.max {
  background-image: url('assets/icons/max_black.webp');
}
/* MAX */
.sicon.max:hover {
  background: 
    url('assets/icons/max_white.webp') no-repeat center / 58%,
    linear-gradient(135deg, #00c4ff, #2a6bff, #8c4eff);
}

/* VK */
.sicon.vk {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/vk-circled.png');
}
.sicon.vk:hover {
  background-color: #1877f2;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/vk-circled.png');
}

/* YouTube */
.sicon.youtube {
  background-image: url('https://img.icons8.com/ios-filled/50/000000/youtube-play.png');
}
.sicon.youtube:hover {
  background-color: #ff0000;
  background-image: url('https://img.icons8.com/ios-filled/50/ffffff/youtube-play.png');
}

/* ========== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ========== */
@media (max-width: 768px) {
  .footer {
    min-width: unset;
    height: auto;
    padding: 40px 20px 30px;
  }
  
  .footer-container {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  
  /* 1. Меню */
  .footer-menu {
    position: static;
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .footer-menu a {
    font-size: 18px;
    text-align: center;
  }
  
  /* 2. Контакты - телефон сверху, email снизу */
  .footer-contacts {
    position: static;
    order: 2;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 8px; /* Отступ между телефоном и email */
  }
  
  /* Убираем br и меняем порядок через flex */
  .footer-contacts br {
    display: none;
  }
  
  /* Создаем контейнеры для телефона и email */
  .footer-contacts::before {
    content: none; /* Убираем все псевдоэлементы */
  }
  
  /* Если нужно переставить местами существующие элементы в HTML */
  /* Предполагаем структуру HTML: <div class="footer-contacts">тел<br>email</div> */
  /* Для мобильных мы меняем порядок через flex-direction: column */
  
  /* 3. Соцсети */
  .footer-social {
    position: static;
    order: 3;
    justify-content: center;
    margin-top: 10px;
  }
  
  /* 4. Логотип и копирайт */
  .footer-logo {
    position: static;
    order: 4;
    width: 140px;
    height: 71px;
    margin-top: 20px;
  }
  
  .footer-copy {
    position: static;
    order: 5;
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
    color: #aaaaaa;
  }
}

/* ========== АДАПТИВ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ ========== */
@media (max-width: 480px) {
  .footer {
    padding: 30px 15px 25px;
  }
  
  .footer-container {
    gap: 25px;
  }
  
  .footer-menu {
    gap: 10px;
  }
  
  .footer-menu a {
    font-size: 16px;
  }
  
  .footer-contacts {
    font-size: 14px;
    gap: 6px;
  }
  
  .footer-social {
    gap: 8px;
  }
  
  .sicon {
    width: 45px;
    height: 45px;
    background-size: 24px 24px;
  }
  
  .footer-logo {
    width: 120px;
    height: 61px;
  }
  
  .footer-copy {
    font-size: 12px;
    margin-top: 10px;
  }
}

/* ========== ЛАНДШАФТНАЯ ОРИЕНТАЦИЯ ========== */
@media (max-width: 768px) and (orientation: landscape) {
  .footer {
    padding: 30px 20px;
  }
  
  .footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 30px;
    row-gap: 20px;
  }
  
  .footer-menu {
    grid-column: 1;
    grid-row: 1;
    align-items: flex-start;
  }
  
  .footer-contacts {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
    align-items: flex-start;
  }
  
  .footer-social {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
  }
  
  .footer-logo {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    align-self: center;
    justify-self: end;
  }
  
  .footer-copy {
    grid-column: 1 / span 2;
    grid-row: 3;
    text-align: center;
    margin-top: 20px;
  }
}

/* ========== BURGER BUTTON ========== */
.burger-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.burger-line {
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* Крестик при открытии */
.burger-btn.open .burger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger-btn.open .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn.open .burger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ========== MOBILE MENU ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 1000;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
}

.mobile-menu ul li {
  margin: 20px 0;
}

.mobile-menu ul li a {
  font-size: 24px;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* Базовый масштаб для всех разрешений - 80% */
html {
  zoom: 0.9;
}

/* При 90% масштабе браузера возвращаем к 80% виду */
@media screen and (max-width: 1280px) and (max-height: 720px) {
  html {
    zoom: 0.8; /* 0.8 / 0.9 = 0.8889 */
  } 
}

/* Для больших экранов (1920x1080) оставляем 80% */
@media screen and (min-width: 1920px) and (min-height: 1080px) {
  html {
    zoom: 1;
  }
}
