* {
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    margin: 0;
    background: url('/static/assets/byt1.jpg') center/cover fixed no-repeat;
    font-family: "Segoe UI", sans-serif;
    color: #fff;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px 50px 20px;
    /* отступ сверху под header */
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.4);
    /* полупрозрачный цвет */
}

/* ==== HEADER (НОВЫЙ ИЗ ПЕРВОГО КОДА) ==== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.5);
    /* Сделал более прозрачным */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    z-index: 1000;
    backdrop-filter: blur(1px);
    /* Чуть сильнее размытие */
}

.logo-wrapper {
    display: flex;
    align-items: center;
    /* центрирует по вертикали */
}

.logo {
    font-size: 18px;
    font-weight: bold;
    white-space: nowrap;
}

.logo-link {
    text-decoration: none;
    /* убираем подчеркивание */
    color: inherit;
    /* оставляем цвет текста */
    display: flex;
    align-items: center;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    margin-right: 8px;
    /* регулирует расстояние между фото и текстом */
}

.nav {
    display: flex;
    gap: 20px;
}

.nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    position: relative;
    transition: 0.3s;
}

.nav a.active,
.nav a:hover {
    color: #fff;
}

.nav a.active::after,
.nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background: #3498db;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.location {
    display: flex;
    align-items: center;
    color: #bbb;
    font-size: 14px;
    gap: 6px;
    /* Расстояние между иконкой и текстом */
}

.location i {
    color: #fff;
    /* Синий оттенок, можно заменить */
    font-size: 16px;
}

.lang-dropdown {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 10px;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.lang-dropdown i {
    color: #fff;
    font-size: 16px;
}

.lang-select {
    background: transparent;
    color: #fff;
    border: none;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    appearance: none;
    padding-right: 10px;
}

.lang-dropdown::after {
    content: "▼";
    position: absolute;
    right: 10px;
    color: #aaa;
    font-size: 10px;
    pointer-events: none;
}

.lang-select option {
    background: #1a1f25;
    color: #fff;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

/* ==== MAIN SECTIONS ==== */
main {
    padding-top: 40px;

}

section {
    max-width: 950px;
    margin: 40px auto;
    padding: 50px;
    background: rgba(0, 0, 0, 0.4);
    /* темный полупрозрачный фон */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s, box-shadow 0.4s;
    color: #fff;
    /* светлый текст, гармонирует с темным фоном */
}

section:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

section p,
section li {
    color: #eee;
    /* чуть мягче для текста и списков */
}

.features-list li::before {
    color: #00c6ff;
    /* гармонирующий акцент для галочек */
}



h1,
h2,
h3 {
    color: #ffffff;
    margin-bottom: 20px;
}

p {
    color: #333;
    line-height: 1.6;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding-left: 25px;
    margin-bottom: 10px;
    position: relative;
}

.features-list li::before {
    content: "✔";
    color: #0078ff;
    position: absolute;
    left: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 15px;
}

.gallery img {
    width: 100%;
    border-radius: 14px;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 120, 255, 0.25);
}

.review {
    background: rgba(255, 255, 255, 0.2);
    padding: 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 15px;
    transition: 0.3s;
    color: #fff;
}

.review:hover {
    box-shadow: 0 5px 20px rgba(0, 120, 255, 0.25);
}

.btn-center {
    text-align: center;
    margin-top: 30px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #3498db, #1d6fa5);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 30%;
    margin-top: 10px;
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 120, 255, 0.4);
}

.side-nav {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px 10px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 50;
}

.side-nav a {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    position: relative;
}

.side-nav a.active {
    background: #0078ff;
    transform: scale(1.3);
}

.side-nav a:hover::after {
    content: attr(data-title);
    position: absolute;
    right: 150%;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 1;
}



.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: 1s;

}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width: 768px) {
    .side-nav {
        display: none;
    }

    section {
        margin: 60px 20px;
        padding: 30px;
    }
}

/* Основные темы */
.features-list>li {
    position: relative;
    padding: 10px 15px 10px 25px;
    /* оставляем отступ слева для точки */
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.features-list>li:hover {
    background: rgba(0, 0, 0, 0.6);
}

.features-list>li::before {
    content: "•";
    /* синяя точка вместо галочки */
    color: #0078ff;
    /* синий цвет */
    position: absolute;
    left: 10px;
    top: 12px;
    /* фиксированное положение сверху */
    font-size: 16px;
}

/* Подсписок с плавным раскрытием */
.sub-list {
    list-style: none;
    padding-left: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.6s ease-in-out, opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.features-list>li:hover .sub-list {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* Подтемы */
.sub-list li {
    padding: 5px 10px 5px 25px;
    /* отступ слева для точки */
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 4px;
    border-radius: 6px;
    position: relative;
    transition: background 0.3s, transform 0.3s;
}

.sub-list li::before {
    content: "•";
    /* синяя точка */
    color: #0078ff;
    position: absolute;
    left: 10px;
    top: 10px;
    /* фиксированное положение сверху */
    font-size: 12px;
}

.sub-list li:hover {
    background: rgba(0, 120, 255, 0.3);
    transform: translateX(3px);
}
