/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Days One', sans-serif;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}


body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #18181b;
    color: #e4e4e7;
    line-height: 1.6;
    color-scheme: dark;
}

.background {
    background-blend-mode: multiply;
    background-image: url('/img/Background.webp');
    background-color: hsla(0, 0%, 10%, 0.85); /* Затемненный слой для темной темы */
    background-repeat: repeat;
    background-size: 1800px;
}



/* Адаптивность */

@media (max-width: 768px) {  
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
        padding: 5%;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .about-content{
        padding: 30px;
    }

    .about-text > p {
        font-size: 15px;
    }

    .image-placeholder > a{
    left: 30%;
    bottom: 20%;
    text-decoration: none;
    font-size: 14px;
    color: white;
    background-color: #f5882175;
    border-radius: 20px;
    padding: 1%;
    white-space: nowrap;
    overflow: hidden;         /* Скрывает то, что не влезло */
    text-overflow: ellipsis;  /* Добавляет три точки в конце (...) */
    display: inline-block;    /* Нужно для корректной работы ширины */
    max-width: 200px;         /* Ограничиваем максимальную ширину */
}
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .card {
        padding: 20px;
        margin-top: 50px;
    }
}
/* Шапка */
header {
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    background: linear-gradient(to bottom, rgba(24, 24, 27, 0.95) 0%, rgba(24, 24, 27, 0.7) 60%, rgba(24, 24, 27, 0) 100%);
    border-bottom: none;
    color: #ffffff;
    padding: 70px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.0);
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-height: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    padding-top: 90px;
}

.favela-icon {
    max-width: 225px;
    border-radius: 25px;
    margin: 15px;
}

.favela-icon:hover {
    transform: translateY(-3px);
    transition: 0.3s;
    
}

.logo {
    font-size: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
    flex-direction: column;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #e4e4e7;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 8px;

}

nav ul li a:hover {
    color: #D97A46;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    padding: 0px 15px 0px 15px;

}

.social-links > div  {
    padding-left: 20px ;
}

.social-links > div > a > i {
    color: #e4e4e7;
}


/* новый стиль для модалки*/
/* Переключатели форм */
.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    color: #888;
    font-size: 16px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #ff9d00;
    border-bottom: 3px solid #ff9d00;
}

.tab-btn:hover {
    color: #333;
}

/* Общие стили для форм внутри модалки */
.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #ff9d00;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #e68e00;
}

/* Подсказки под полями */
.input-hint {
    font-size: 11px;
    margin-top: 4px;
    color: #888;
    display: block;
}

/* Состояния валидации */
.input-hint.invalid { color: #ff4444; }
.input-hint.valid { color: #00c851; }

/* Подсветка самих полей при ошибке (когда пользователь начал вводить) */
input:focus:invalid {
    border-color: #ff4444;
}
input:focus:valid {
    border-color: #00c851;
}



/*Адаптивность*/

@media (max-width: 526px) {
    .header-content  {
        font-size: 1px; 
        margin-left: -25px;
    }
    
}

@media (max-width: 526px) {
    .logo {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

}

@media (max-width: 768px) {
    .header-content {
        position: relative;
        color: #ffffff;
        flex-direction: row;
        text-align: center;
        justify-content: space-between
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: space-between;
        position: absolute;
        top: -50px;
        left: 230px; 
    }
    
    nav ul li {
        margin: 0 0 0 0;
    }

    nav ul li a {
        font-size: 0px;
        margin: 0px;
        padding: 10px;
}
}


/* Подвал */
footer {
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    background: linear-gradient(to top, rgba(24, 24, 27, 0.95) 0%, rgba(24, 24, 27, 0.7) 60%, rgba(24, 24, 27, 0) 100%);
    border-top: none;
    padding: 30px 0;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    padding: 0px 15px 0px 15px;
    margin: 20px 0px 30px 0px;

}

.footer-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #D97A46;
    font-size: 22px;
    transition: all 0.3s;
    margin: 0px 5px 0px 5px;
}



.footer-social-links a:hover {
    background: #D97A46;
     color: white;
    transform: translateY(-3px);
}

/* КНОПКА БУРГЕР */
.menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px; /* Увеличили область клика */
    height: 44px;
    cursor: pointer;
    z-index: 100000; /* Подняли выше всех */
    background: rgba(40, 40, 45, 0.7); /* Чуть светлее фон для контраста */
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая рамка */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    backdrop-filter: blur(5px);
}

/* Сами линии */
.menu-btn__burger {
    width: 26px;
    height: 3px; /* Сделали капельку толще */
    background: #D97A46; /* Легендарный оранжевый */
    transition: all .3s ease-in-out;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(217, 122, 70, 0.3); /* Легкое свечение */
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 3px;
    background: #D97A46;
    transition: all .3s ease-in-out;
    left: 0; /* Фиксация слева, чтобы не косило */
    border-radius: 2px;
}

.menu-btn__burger::before { transform: translateY(-8px); }
.menu-btn__burger::after { transform: translateY(8px); }

/* АНИМАЦИЯ КРЕСТИКА (Идеально по центру) */
.menu-btn.open .menu-btn__burger {
    background: transparent;
}

.menu-btn.open .menu-btn__burger::before {
    transform: rotate(45deg);
}

.menu-btn.open .menu-btn__burger::after {
    transform: rotate(-45deg);
}

/* ОБЩИЕ СТИЛИ МЕНЮ */
.nav-menu {
    position: fixed;
    z-index: 99999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu > ul {
    position: relative;
    left: 0;
    
}

.nav-menu a {
    
    color: white;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 15px 30px; /* Отступы внутри ссылок */
    text-align: left; /* Текст всегда слева */
}


/* Стиль для активной ссылки в меню */
.nav-list a.active {
    color: #ffcc00; /* Например, золотой цвет */
    border-bottom: 2px solid #ffcc00; /* Линия под текстом */
    pointer-events: none; /* Чтобы нельзя было кликнуть на страницу, на которой уже находишься */
}

/* Адаптивность */
@media screen and (min-width: 769px) {
    .nav-menu {
        top: 75px;
        right: 20px;
        background: rgba(20, 20, 20, 0.8);
        backdrop-filter: blur(15px);
        border-radius: 12px;
        width: 220px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
    }
    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* МОБИЛКА */
@media screen and (max-width: 768px) {
    .nav-menu {
        top: 0;
        right: -280px; /* Спрятано */
        width: 280px;
        height: 100vh;
        background: #111;
        padding-top: 80px; /* Место под кнопку */
        display: block !important;
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Прижимает пункты к левому краю */
    }

    .nav-list li {
        width: 100%;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 9998;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
    }

    .overlay.open {
        opacity: 1;
        visibility: visible;
    }
}
