@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');

/* Сбрасываем дефолтные отступы и применяем шрифт ко всем элементам на странице */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html{
    scroll-behavior: smooth;
}

*{
    margin: 0;
    padding: 0;
}

body{
    background-color: #FCFCFE;
}

.naviGate{
    z-index: 2;
    width: 100%;
    position: fixed;
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background-color: #fef3f786;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.selfach a{
    margin-left: 30px;
}

.banner{
    width: 100%;
    height: auto; /* авто-высота по пропорциям */
    padding-top: 70px;
    display: block; /* убирает отступ снизу */

}

.centrir{
    font-size: 30px;
    text-align: center;
}

.okrDecoration{
    background-color: #fde5ee;
    width: 50%;
    height: 50px;
    margin: 0 auto;
    border-top-right-radius: 50px;
    border-top-left-radius: 50px;
}

.naprav{
    display: flex;
    background-color: #fde5ee;
    margin: 0 20px;
    border-radius: 20px;
    padding: 30px 20px;

}

.cardochka{
    background-color: #f9f9f9;
    margin: 10px;
    width: 20%;
    padding: 20px;
    border-radius: 20px;
}

.cardochka p{
    margin-top: 20px;
    font-size: 15px;
}

.headContentCard{
    display: flex;
    align-items: center;
}

.unicode-star{
    color: #ff7f00;
    font-size: 40px;
    line-height: 1;      /* Убираем межстрочный интервал, чтобы не было невидимых отступов */
    display: inline-flex;/* Делаем звезду флекс-элементом, чтобы она не прыгала по базовой линии */
    align-items: center;
    
}

.headContentCard h2{
    font-size: 27px;
}

.aboutME{
    justify-content: space-between;
    position: relative;
    margin-left: 20px;
    margin-right: 70px;
    border-radius: 50px;
    padding: 40px;
    display: flex;
    background-color: #e6ccf1;
}
.textrinfofo{
    width: 50%;
}

.aboutME img{
    width: 25%;
    border-radius: 50px;
}

.upperSupper{
    font-size: 35px;
}
.upperDupper{
    font-size: 25px;
}

.paddingTOON{
    margin-top: 20px;
}

.aboutME p{
    font-size: 20px;
}

.photoBG{
    position: absolute;
    right: -40px;
    top: -50px;
}
.podlojka{
    background-color: #e6ccf1;
    width: 25%;
    height: 500px;
    border-radius: 50px;
    position: absolute;
    right: -60px;
    top: -70px;
}

.buttonConteiner {
    position: relative;
    display: flex;              /* или inline-flex */
    align-items: center;        /* выравнивание по вертикали */
    justify-content: center;    /* центрирование по горизонтали */
    gap: 10px;                  /* расстояние между элементами */
    
    background-color: #ffc459;
    border-radius: 20px;
    padding: 10px 20px;         /* отступы внутри контейнера */
    
    /* Для центрирования самого контейнера на странице */
    width: fit-content;         /* ширина по содержимому */
    margin: 0 auto;             /* центрирует блок (если display: flex) */
}

.loviiUP, .loviiDown {
    width: 30px;
    height: auto;
    display: block;
    position: absolute;
}

/* Тексты */
.buttonConteiner div {
    display: flex;
    flex-direction: column;     /* если нужно чтобы строки были друг под другом */
    /* или можно оставить как есть, если они в отдельных div */
}

.buttonConteiner p {
    color: white;
    font-size: 25px;
    margin: 0;                  /* убираем отступы у параграфов */
    white-space: nowrap;        /* чтобы текст не переносился */
}


.loviiUP{
    top: 5px;
    left: 5px;

}

.loviiDown{
    bottom: 5px;
    right: 5px;
}


.carousel-container {
  overflow: hidden;
  width: 100%;
  background: #eedbe1;
  padding: 20px 0;
}

.carousel-track {
  display: flex;
  width: max-content;
  gap: 20px;
  animation: scroll-left 35s linear infinite;
}

/* Пауза при наведении */
.carousel-track:hover {
  animation-play-state: paused;
}

.carousel-track img {
  height: 300px;
  width: auto;
  border-radius: 8px;
  object-fit: cover;
  /* Защита от сжатия картинок */
  flex-shrink: 0; 
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Сдвиг на 50% сработает идеально хоть для 8, хоть для 88 картинок */
    transform: translateX(-50%); 
  }
}


.svaz{
    background-color: #ffa500;
    margin: 20px;
    padding: 0 20px;
    padding-top: 20px;
    border-radius: 20px;
    display: flex;
}

.contentRightSvaz{
    width: 60%;
}

.svazHeader{
    display: flex;
    align-items: center;
    color: white;
    font-size: 30px;
}

.sendMEE{
    border-radius: 20px;
    display: flex; 
    /* Ограничиваем ширину, чтобы кнопка не растягивалась на весь экран, подгони под себя */
    width: max-content;
    align-items: center;
    background-color: white;
    color: #ff7f00;
    margin-bottom: 20px;
    padding: 10px;
}

.sendMEE img{
    width: 50px;
}


.containerr{
    display: flex;
    align-items: center;
    color: #ff7f00;
    font-size: 30px;
    gap: 20px;
    text-decoration: none;
}



.zapiska{
    position: absolute;
    cursor: pointer;
    width: max-content;
    padding: 20px;
    font-size: 30px;
    bottom: 50px;
    left: 50px;
    border-radius: 20px;
    background-color: #ffa200;
    color: white;


    appearance: none;
    border: none;
    cursor: pointer;
    transition: transform ease-in 0.1s, box-shadow ease-in 0.25s;


}

.contentAHrefZapis{
    color: white;
    text-decoration: none;

}

.bannerButtons{
    position: relative;
}



.footer{
    background-color: #FFCFF7;
    padding-bottom: 10px;
}

.footerNavigate{
    background-color: #a895b0;
    margin: 0 50px;
    padding: 20px;
    border-radius: 20px;

}
.centrir{
    display: flex;            /* Включаем магию флексов */
    justify-content: center;  /* Центруем все ссылки по горизонтали */
    gap: 50px;   
}

.centrir a{
    color: white;
    font-size: 25px;
}

.btnFooterMake img{
    width: 50px;
}


.buttonFooter {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    justify-content: spa;
    align-items: stretch;
    gap: 100px;
}

.selfsFooter {
    color: black;
    font-size: 25px;
    display: flex;
    flex: 1;
    max-width: 300px;
    text-decoration: none;
}

.btnFooterMake {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background-color: #cec3d2;
    padding: 10px;
    border-radius: 20px;
    
}







/* Обнуляем дефолтную дичь */
.menu-link, .menu-linkW {
  text-decoration: none; /* Убираем стандартное уёбское подчеркивание */
  color: #333;           /* Ставь свой цвет */
  font-size: 25px;
  font-family: sans-serif;
  position: relative;    /* Жизненно важно! Чтобы линия позиционировалась относительно ссылки */
  padding-bottom: 5px;   /* Отступ, чтобы линия не липла прямо к буквам */
  transition: color 0.3s ease; /* Плавная смена цвета самого текста, если надо */
}

/* Навешиваем псевдоэлемент — нашу будущую линию */
.menu-linkW::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;           /* Толщина линии, регулируй под себя */
  background-color: white; /* Цвет линии при наведении */
  
  /* Вот она, магия центра */
  transform: scaleX(0);  /* Изначально линия сжата в точку (её не видно) */
  transform-origin: center; /* Центруем точку сжатия/расширения */
  
  /* Анимация */
  transition: transform 0.3s ease-in-out; /* Плавный выезд */
}
/* Навешиваем псевдоэлемент — нашу будущую линию */
.menu-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;           /* Толщина линии, регулируй под себя */
  background-color: #333; /* Цвет линии при наведении */
  
  /* Вот она, магия центра */
  transform: scaleX(0);  /* Изначально линия сжата в точку (её не видно) */
  transform-origin: center; /* Центруем точку сжатия/расширения */
  
  /* Анимация */
  transition: transform 0.3s ease-in-out; /* Плавный выезд */
}


.menu-link:hover::after, .menu-linkW:hover::after {
  transform: scaleX(1); /* Разворачиваем линию на всю ширину */
}




/* Кнопка вызова (просто для красоты) */
.trigger-button {
    padding: 15px 30px;
    background-color: #ff7f00;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* Задний фон модалки (оверлей) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px); /* Модный блюр фона */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    
    /* Изначально прячем оверлей плавно */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Окно-резинка */
.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 320px;
    text-align: center;
    position: relative;
    
    /* Изначально сжимаем в ноль прямо в центр */
    transform: scale(0);
    
    /* Настройка резиновой анимации: вылет из центра */
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* --- СОСТОЯНИЕ АКТИВАЦИИ (когда кликнули) --- */
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.active .modal-content {
    transform: scale(1); /* Вылетает и пружинит */
}

/* Внутрянка окна */
.modal-content h3 {
    margin-top: 10px;
    margin-bottom: 25px;
    color: #333;
    font-family: sans-serif;
    font-size: 22px;
}

/* Ссылки-кнопки в столбик */
.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Отступ между кнопками */
}

.modal-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 16px;
    text-decoration: none;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 16px;
    transition: transform 0.2s ease;
}

.modal-link:hover {
    transform: translateY(-2px); /* Легкий ховер при наведении */
}

/* Цвета для кнопок */
.tg-link {
    background-color: #e8f5fe;
    color: #229ED9;
}

.phone-link {
    background-color: #fef0f7;
    color: #ff7f00;
}

.modal-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Крестик закрытия */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}







/* --- СТИЛИ ДЛЯ ПК (Дополнение к твоему коду) --- */
/* Говорим меню занять всю оставшуюся ширину и растолкать кнопку и ссылки по краям */
.naviGate .selfach {
    display: flex;
    width: 100%;
    align-items: center;
}

/* Толкаем кнопку в самый правый край на ПК */
.naviGate .selfach .bubbly-button {
    margin-left: auto;
}

/* Скрываем чекбокс и полоски на ПК по дефолту */
.burger-checkbox, .burger-icon {
    display: none;
}


/* --- МАГИЯ ДЛЯ ТЕЛЕФОНОВ (Экран 768px и меньше) --- */
@media (max-width: 768px) {


    .naprav{
        flex-wrap: wrap;
        display: flex;
        background-color: #fde5ee;
        margin: 0 10px;
        border-radius: 20px;
        padding: 20px 10px;

    }

    .banner{
        padding-top: 0px;
    }

    .contentRightSvaz{
        width: 90%;
    }


    .zapiska{
        padding: 10px;
        font-size: 15px;
        bottom: 33%;
        left: 20px;
        border-radius: 10px;
    }

    .unicode-star{
        color: #ff7f00;
        font-size: 20px;
        line-height: 1;      /* Убираем межстрочный интервал, чтобы не было невидимых отступов */
        display: inline-flex;/* Делаем звезду флекс-элементом, чтобы она не прыгала по базовой линии */
        align-items: center;
        
    }

    .headContentCard h2{
        font-size: 20px;
    }

    .naprav {
        display: flex;
        flex-wrap: wrap; /* ВКЛЮЧАЕМ ПЕРЕНОС */
        justify-content: center; /* Центрируем карточки */
        gap: 20px; /* Вместо margin у карточек */
        background-color: #fde5ee;
        margin: 0 20px;
        border-radius: 20px;
        padding: 30px 20px;
    }

    .cardochka {
        flex: 1 1 200px; /* Растягивается, но не меньше 200px */
        min-width: 180px; /* Минимальная ширина */
        max-width: 300px; /* Максимальная ширина, чтобы не были слишком широкими */
        background-color: #f9f9f9;
        padding: 20px;
        border-radius: 20px;
        /* Убираем margin, используем gap в контейнере */
        margin: 0;
    }



    .textrinfofo{
        width: 100%;
    }

    .aboutME img{
        width: 45%;
        border-radius: 20px;
    }

    .upperSupper{
        font-size: 25px;
    }
    .upperDupper{
        font-size: 20px;
    }

    .aboutME h2{
        font-size: 30px;
        width: 50%;
    }

    .paddingTOON{
        margin-top: 60px;
    }


    .aboutME p{
        font-size: 20px;
    }

    .photoBG{
        border-radius: 20px;
        right: 10px;
        top: -50px;
    }
    .podlojka{
        width: 45%;
        height: 200px;
        border-radius: 20px;
        right: -5px;
        top: -70px;
    }

    .aboutME{
        margin-left: 10px;
        margin-right: 20px;
        border-radius: 50px;
        padding: 40px;
    }



    .buttonConteiner {
        gap: 5px;                  /* расстояние между элементами */
    }
    .buttonConteiner p {
        font-size: 20px;
    }

    .svazHeader h2{
        font-size: 20px;
    }
    .svazHeader img{
        width: 50px;
    }

    .sendMEE{
        border-radius: 20px;
        margin-bottom: 20px;
        padding: 10px;
    }

    #noteHidee{
        display: none;
    }

    .containerr{
        font-size: 20px;
        gap: 20px;
    }

    .footerNavigate{
        margin: 0 20px;
        padding: 20px;
        border-radius: 20px;

    }

    .centrir{
        flex-direction: column;
        gap: 10px;
    }


    
    .buttonFooter {
        margin-top: 50px;
        gap: 10px;
    }

    .selfsFooter {
        color: black;
        font-size: 17px;
        display: flex;
        flex: 1;
        max-width: 300px;
        text-decoration: none;
    }

    .btnFooterMake {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        background-color: #cec3d2;
        padding: 5px;
        border-radius: 20px;
        
    }

    .btnFooterMake img{
        width: 30px;
    }

    .her{
        display: none;
    }

    .herHera{
        width: 100%;
        background-color: black;
        height: 2px;
    }











    
    /* Включаем иконку бургера (3 полоски) */
    .burger-icon {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 32px;
        height: 22px;
        cursor: pointer;
        z-index: 105; /* Чтобы была поверх выезжающей шторки */
    }

    /* Рисуем полосочки бургера */
    .burger-icon span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #333;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    /* Превращаем флекс-ряд в вертикальную шторку */
    .naviGate .selfach {
        position: fixed;
        top: 0;
        right: -100%; /* Прячем вправо за экран */
        width: 280px;  /* Ширина шторки */
        height: 100vh;
        background-color: #ffffff; /* Белый фон меню на мобиле */
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        
        /* Перестраиваем элементы в столбик по центру */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        padding: 40px;
        z-index: 104;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Сбрасываем ПКшный отступ у кнопки, чтобы на мобиле она встала по центру столбика */
    .naviGate .selfach .bubbly-button {
        margin-left: 0;
        margin-top: 20px; /* Делаем отступ сверху от ссылок */
        width: 100%;      /* Кнопка на мобиле будет на всю ширину шторки */
    }

    /* Обнуляем твои дефолтные левые маргины у ссылок, чтобы текст по центру стоял */
    .selfach a {
        margin-left: 0 !important;
        font-size: 22px;
    }

    /* ЕСЛИ ЧЕКБОКС ТКНУЛИ: Выдвигаем шторку со ссылками и кнопкой */
    .burger-checkbox:checked ~ .selfach {
        right: 0;
    }

    /* Анимация: бургер превращается в крестик */
.burger-checkbox:checked ~ .burger-icon span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger-checkbox:checked ~ .burger-icon span:nth-child(2) {
    opacity: 0;
    display: none; /* ПОЛНОСТЬЮ СКРЫВАЕМ */
}
.burger-checkbox:checked ~ .burger-icon span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}
}