* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Shantell Sans', cursive;
}

body {
    background-color: white;
}

header {
    background-color: rgba(255, 249, 245, 0.7);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 10vh;
    /* padding: 2vh 5vw; */
    position: relative;
    z-index: 1000;
}



.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    color: #f5d3dd;
    font-size: 4em;
    line-height: 1;
    font-weight: bold;
    text-shadow: 
        2px 2px 0px #ff99c2,
        3px 3px 0px #ff99c2,
        4px 4px 0px #ff99c2,
        5px 5px 0px #ff99c2,
        6px 6px 0px #ff99c2,
        8px 8px 6px rgba(237, 123, 171, 0.3),
        12px 12px 10px rgba(237, 123, 171, 0.2);
    display: inline-block;
    margin-left: 3vw;
    vertical-align: middle;
}

.container {
    display: flex;
    gap: 2vmin;
    /* align-items: center; */
    flex-direction: row;
    background-color: white;

    position: relative;
    z-index: 1;
    /* padding-bottom: 50px; Добавляем отступ снизу */
}


.dk-box {
    width: 33vw;
    margin-top: 10vh;
    height: 80vh;
    background-image: url("/static/images/dnevnichok_landing.png");
    /* url("{{ url_for('static', filename='images/dnevnichok_landing.png') }}") no-repeat center center/cover; */
    background-repeat: no-repeat;
    background-position: left;
    background-size: contain;
    flex-shrink: 0;
    position: relative;
    z-index: 4;
}

/* Многослойная граница через псевдоэлементы */
/* .dk-box::before,
.dk-box::after {
content: '';
position: absolute;
border: 3px solid #ff99c2;
border-radius: 0 35px 0 0;
top: 0;
left: 0;
right: 0;
bottom: 0;
pointer-events: none;
}

/* Первый слой границы */
/* .dk-box::before {
border-width: 3px 8px 0px 3px;
right: -5px;
bottom: -5px;
z-index: 2;
} */

/* Второй слой границы */
/* .dk-box::after {
border-width: 3px 12px 0px 3px;
right: -10px;
bottom: -10px;
z-index: 1;
box-shadow: 
4px 0px 10px rgba(0,0,0,0.08),
8px 0px 15px rgba(0,0,0,0.05);
} */


/* .dk-text {
    font-size: 4em;
    color: white;
    font-weight: bold;
    margin-bottom: 20px;
} */




.menu-item {
    /* /* background: #ffe6f0; */
    border-radius: 8px;
    /* padding: 0px 0px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;*/
    margin-bottom: -15px;
    /* position: relative; */ 
    /* z-index: -2;  */

}

.menu-item:hover {
/* background: #ffd1e0; */
transform: translateX(15px);
margin-bottom: 0;
z-index: 0;
}

/* .vertical-menu a:hover {
    color: #ff3366;
} */

.line {
    display: block;
    color: #937CB3;
}

.line-1 { text-align: center; font-size:1.2em; margin-top: 3vh; margin-bottom: 1vh; }
.line-2 { text-align: center; }

.sign-button {
    background: #ff99c2;
    color: white;
    border: 2px solid #ff99c2;
    border: none;
    padding: 12px 40px;
    border-radius: 15px;
    align-items: center; /* Центрирование по вертикали */
    justify-content: center; /* Центрирование по горизонтали */
    cursor: pointer;
    max-width:50vw;
    font-weight:bold;
    font-size: 2.3em;
    text-decoration: none; /* Добавлено это свойство */
    transition: transform 0.3s;
}

.sign-button:hover {
    background: white;
    color: #ff99c2;
    border-radius: 15px;
    border: 4px solid #ff99c2;
    /* transform: none; */
    /* transform: scale(1.05); */
}

.block {
    height: auto;
    min-height: 100vh;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden; /* Добавлено обрезание контента */
}

.block:first-child {
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 0; /* Уменьшаем отступ снизу */
    margin-bottom: -50px; /* Компенсируем отступы элементов */
}

.block.active {
    opacity: 1;
    transform: translateY(0);
}


/* Добавляем анимацию для текста */
.line {
    transition: all 0.5s ease-out;
}



/* Улучшаем визуал dk-box */
.dk-text {
    font-size: 5em;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}



.main-menu {
    display: flex;
    gap: 2vw;
    margin-left: auto;
    margin-right: 30px;
}

.menu-item {
    background: none;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.menu-item a {
    writing-mode: horizontal-tb;
    color:#937CB3;
    text-decoration: none;;
    transform: none;
    padding: 10px 20px;
    font-size: 1.2em;
    border-radius: 8px;
}



/* Обновленный хедер */
header {
    /* padding: 1vh 5vw; */
    flex-wrap: wrap;
}

  /* Добавляем стили для новых блоков */
  .content-block {
    display: flex;
    flex-direction: column;
    min-width: 60vw;
    margin: 0 auto;
    align-items: center; /* Центрирование по вертикали */
    justify-content: space-between; /* Центрирование по горизонтали */
    padding-top: 35vh;
    padding-bottom:10vh;
}

.advantages-icons {
    display: flex;
    flex-direction:row;
    padding-top:10vh;
    gap: 2.5vw;
    align-items: center;
}

.advantages-container {
    display: flex;
    flex-direction: column;
    max-width: 60vw;
}

.advantages-icons-after {
    width: 18vw;
    display: flex;
    flex-direction: column;
    position: relative;
    justify-items: center;
    align-items:center
}

.advantages-icons-after img {
    height: 8vh;
    width: 8vh;
}
.content-block-wardrobe {
    display: flex;
    flex-direction: column;
    min-width: 60vw;
    margin: 0 auto;
    align-items: center; /* Центрирование по вертикали */
    justify-content: center; /* Центрирование по горизонтали */
    gap: 3vh;
}


.feature-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    width: 12.75vw;
    height: 15vh;
    font-size: 0.7em;
    color:#937CB3;
    box-shadow: 
        0 2px 8px rgba(237, 123, 171, 0.24), /* Более тонкая тень */
        inset 1px 1px 2px rgba(255,255,255,0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

.advantages-grid {
    width: 60vw;
    display:flex;
    gap: 2.5vw;
    align-items: center; /* Центрирование по вертикали */
    justify-content: center; /* Центрирование по горизонтали */
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

body {
    overflow-anchor: none; /* Фикс скролла в Chrome */
}

.container {
    justify-content: flex-start; /* Выравнивание по левому краю */
    /* padding-left: 5vw; */
}

.slogan {
    width: 26vw;
    text-align: center;
    box-shadow: 
        0 2px 8px rgba(237, 123, 171, 0.24), /* Более тонкая тень */
        inset 1px 1px 2px rgba(255,255,255,0.6) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 40vh;
    
    margin-left: 0;
    background: transparent;
    box-shadow: none;
    z-index: 10;
}



.feature-card {
    display: flex;
    align-items: center;
    margin: 50px 0;
    flex-wrap: wrap;
}




.user-profile {
    width: 3vw;
    height: 3vw;
    position: relative;
    align-items: center;

    top: 0;
    left: 0;
    display: inline-block;

}
.user-profile img {
width: 100%;
height: 100%;
transition: opacity 0.3s;
position: relative;
z-index: 2;
}
.user-profile:hover .user-avatar {
    opacity: 0;
}

.user-profile:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/static/images/default-avatar-hover.png");
    /* url("../images/women-long-jacket.png") !important; */
    background-size: cover;
    pointer-events: none; /* Важное свойство! */
    z-index: 1; /* Устанавливаем ниже ссылки */
}

.email-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}


.avatar-button {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2; /* Добавляем z-index выше чем у псевдоэлемента */
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    display:flex;
    font-size:0.8em;
    right: 0;
    background: rgba(255, 153, 194, 0.9);
    color: white;
    padding: 15px;
    text-align: left;
    z-index: 1000;
}

.cookie-banner button {
    background: white;
    color: #ff99c2;
    border: none;
    padding: 8px 20px;
    width:30%;
    border-radius: 15px;
    margin-left: 10px;
    cursor: pointer;
}


.looks-container {
    display: flex;
    gap: 1vw;
    height: 30vh; 
    overflow-x: auto;
    flex-shrink: 0;
    position: absolute;
    /* overflow-y:; */
    z-index: -10;
    width: 100%;
}

.look-item {
    height: 30vh;
    /* min-width: 100%; */
    border-radius: 15px;
    overflow: hidden;
    z-index: -1;
}

.look-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Добавляем в конец файла CSS */

/* Цвета блоков */
.block:nth-child(1) { 
    background: linear-gradient(45deg, #fff9f9 0%, #ffffff 100%);
}

#wardrobe {
    background: linear-gradient(45deg, #fff0f5 0%, #fff5fa 100%);
    position: relative;
}

#lookscreation {
    background: linear-gradient(45deg, #f8f0ff 0%, #fdf5ff 100%);
    position: relative;
}

#lenta {
    background: linear-gradient(45deg, #fff5f0 0%, #fffaf5 100%);
    position: relative;
}

/* Волнообразные разделители */
.block:not(:first-child)::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: inherit;
    clip-path: path('M0,50 C20,00 50,30 80,00 C110,30 140,00 160,50 L160,00 L0,00 Z');
}

/* Разные формы разделителей */
#wardrobe::before {
    clip-path: path('M0 0 Q 50 40 100 0 Q 150 40 200 0 L200 50 L0 50 Z');
    background: linear-gradient(45deg, #fff9f9 0%, #ffffff 100%);
}

#lookscreation::before {
    clip-path: path('M0 0 L100 0 Q 125 30 150 0 T200 0 L200 50 L0 50 Z');
    background: linear-gradient(45deg, #fff0f5 0%, #fff5fa 100%);
}

#lenta::before {
    clip-path: path('M0 0 L0 30 Q 50 -20 100 30 L100 0 L200 0 L200 50 L0 50 Z');
    background: linear-gradient(45deg, #f8f0ff 0%, #fdf5ff 100%);
}


/* Обновляем цвета текста для контраста */
#wardrobe .feature-card,
#lookscreation .feature-card,
#lenta .feature-card {
    color: #6e5b7b;
}

#contacts .contact-form input,
#contacts .contact-form textarea {
    background: rgba(255,255,255,0.9);
    border: 2px solid #ffd1e0;
}

/* Добавляем тень к блокам для глубины */
.block {
    box-shadow: 0 -10px 20px rgba(158, 85, 125, 0.05);
}


/* Стили для нового блока */
.steps-container {
    display: flex;
    gap: 5vw;
    align-items: flex-start;
    margin: 5vh auto;
    max-width: 1200px;
    position: relative;
}

.step-image {
    flex: 1;
    position: relative;
}



.step-photo {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.centered-step {
    text-align: center;
    width: 80%;
    margin: 0 auto 8vh;
    position: relative;
    z-index: 2;
    background: white;
}

.curved-line {
    width: 60%;
    height: 120px;
    border: 3px dashed black;
    border-radius: 50% 50% 0 0;
    border-bottom: none;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}


.step-image middle {
    margin-bottom: 10vh;
}




/* Стили для социальных ссылок */
.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-links img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.social-links img:hover {
    transform: scale(1.1);
}


/* Footer Styles */
footer {
    background: linear-gradient(135deg, #fff5f8 0%, #ffeef5 100%);
    padding: 30px 5vw 15px;
    color: #937CB3;
    position: relative;
    border-top: 2px solid #ffd1e0;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-contact p {
    margin: 8px 0;
    line-height: 1.4;
}

.footer-contact a {
    color: #937CB3;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #ff99c2;
    text-decoration: underline;
}

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

.footer-links a {
    text-decoration: none;
    color: #937CB3;
    transition: all 0.3s;
    padding: 3px 0;
}

.footer-links a:hover {
    color: #ff99c2;
    transform: translateX(3px);
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.social-links > span {
    margin-bottom: 10px;
    font-weight: bold;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(255, 153, 194, 0.2);
    transition: all 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(255, 153, 194, 0.3);
}

.social-icons img {
    width: 20px;
    height: 20px;
}

footer > p {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px dashed rgba(147, 124, 179, 0.2);
    font-size: 0.85rem;
}

/* Оптимизация основного контента */
.container {
    gap: 1.5vmin;
}


.feature-card {
    width: 15vw;
    height: 14vh;
    font-size: 0.65em;
    padding: 15px;
    margin: 15px 0;
}

.sign-button {
    font-size: 2em;
    padding: 10px 35px;
}

.steps-container {
    gap: 4vw;
    margin: 4vh auto;
}

.centered-step {
    width: 85%;
    margin-bottom: 6vh;
}

/* Адаптивные улучшения */
@media (max-width: 1200px) {
    .feature-card {
        width: 18vw;
        font-size: 0.6em;
    }
}

@media (max-width: 992px) {
    .feature-card {
        width: 22vw;
        height: 12vh;
    }
    
    .advantages-grid {
        width: 75vw;
    }
}

@media (max-width: 768px) {
    /* Общие стили */
    body {
        overflow-x: hidden;
    }
    
    /* Шапка */
    header {
        height: auto;
        padding: 10px;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 2.5em;
        margin: 0 auto;
        text-align: center;
    }
    
    .main-menu {
        order: 3;
        width: 100%;
        margin: 10px 0;
        justify-content: center;
    }
    
    .menu-item {
        margin: 5px;
    }
    
    .menu-item a {
        font-size: 0.9em;
        padding: 5px 10px;
    }
    
    .user-profile {
        width: 40px;
        height: 40px;
        /* position: absolute; */
        /* top: 10px; */
        right: 10px;
    }
    
    /* Основной контент */
    .container {
        flex-direction: column;
        padding-bottom: 20px;
    }
    
    .dk-box {
        width: 100%;
        height: 40vh;
        margin-top: 5vh;
        background-position: center;
    }
    
    .looks-container {
        position: absolute;
        /* top: 40%; */
        left: 0;
        width: 100%;
        height: 25vh;
        z-index: -10;
        overflow: hidden;
    }
    
    
    .looks-wrapper {
        display: flex;
        height: 100%;
        position: relative;
        transform: translate3d(0, 0, 0);
        animation: slideMobile 60s linear infinite;
    }
    
    @keyframes slideMobile {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }
    
    .look-item {
        flex-shrink: 0;
        width: 40vw;
        height: 100%;
        margin: 0 2vw;
        transition: transform 0.3s;
    }
    
    .look-item:hover {
        transform: scale(1.05);
        z-index: 10;
    }
    
    .look-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: translateZ(0);
        image-rendering: -webkit-optimize-contrast;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }
    
    
    /* Анимация паузы при наведении */
    .looks-container:hover .looks-wrapper {
        animation-play-state: paused;
    }
    
    /* Блок с кнопкой и преимуществами */
    .content-block {
        padding-top: 10vh;
        padding-bottom: 5vh;
        margin: 0;
        gap: 3vh;
    }
    
    .sign-button {
        font-size: 1.5em;
        padding: 10px 20px;
        max-width: 90%;
        display: flex; /* Используем flexbox для центрирования */
        align-items: center; /* Центрирование по вертикали */
        justify-content: center; /* Центрирование по горизонтали */
        text-align: center; /* Дополнительное выравнивание текста */
    }

    .advantages-container {
        padding-top: 15vh;
        display: flex;
        flex-direction: row;
    }
    
    .advantages-icons {
        padding-top: 0;
        justify-content: space-between;
        gap:0;
        flex-direction: column;
    }

    .advantages-icons-after img {
        width: 6vh;
        height: 6vh;
    }

    .advantages-icons-after{
        height: 100px;
        margin: 10px 0;
        padding: 15px;
    }

    .advantages-grid {
        width: 90%;
        flex-direction: column;
        gap: 2vh;
    }
    
    .feature-card {
        width: 90%;
        height: auto;
        min-height: 100px;
        height:100px;
        height: auto; /* Автоматическая высота в зависимости от содержимого */
        box-sizing: border-box; /* Учитываем padding в общей ширине/высоте */
        overflow-wrap: break-word; /* Перенос длинных слов */
        word-wrap: break-word; /* Альтернативное свойство для старых браузеров */
        hyphens: auto; /* Автоматическая расстановка переносов (если поддерживается) */
        display: flex;
        align-items: center; /* Вертикальное выравнивание содержимого */
        justify-content: left;
        font-size: 1em;
        margin: 10px 0;
        padding: 15px 15px 15px 60px; /* Увеличиваем отступ слева */
    }
    

    /* Блоки с шагами */
    .steps-container {
        flex-direction: column;
        gap: 3vh;
    }
    
    .step-image {
        width: 90%;
        margin: 0 auto;
    }
    
    .step-image.middle {
        display: none; /* Скрываем стрелку на мобильных */
    }
    
    .centered-step {
        width: 90%;
        margin: 2vh auto;
    }
    
    /* Подвал */
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-section {
        width: 100%;
        text-align: center;
    }
    
    .social-links {
        align-items: center;
    }
    
    /* Анимации */
    .menu-item:hover {
        transform: none;
    }
}

/* Добавляем в конец main_page.css */
/* Гамбургер-меню */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    position: absolute;
    top: 20px;
    left: 15px;
    z-index: 1001;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #ff99c2;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Анимация гамбургера в крестик */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 249, 245, 0.95);
        padding: 10px 0;
        z-index: 1000;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .menu-item {
        margin: 5px 0;
    }
}


@media (max-width: 768px) {
    .step-photo {
        border-radius: 15px;
        box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    }
}

/* Улучшение читаемости текста */
@media (max-width: 768px) {
    .feature-card {
        font-size: 0.9em;
        padding: 15px;
        line-height: 1.4;
    }
}