/* styles.css */

/* Основные стили */
html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    height: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: hidden;
}

body {
    background: linear-gradient(135deg, #000000, #0b0b0b);
    filter: contrast(150%);
    color: white;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Делаем логотип всегда белым */
.logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Удаляем кнопку переключения темы */
#theme-toggle {
    display: none !important;
}

* {
    box-sizing: border-box;
}

/* Секции */
.section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100vw;
    position: relative;
}

.section-2, .section-3, .section-4 {
    background: transparent;
    padding: 20px;
    overflow-y: auto;
}

/* Контейнеры */
.content-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    padding: 20px;
}

/* Текстовый блок */
.text-block {
    text-align: center;
    margin-right: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInRise 1s ease-out forwards;
}

/* Заголовок */
.main-title {
    font-size: 3.5em;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 5px;
    padding-bottom: 5px;
    position: relative;
    display: inline-block;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 70%;
    height: 1px;
    background-color: white;
    left: 50%;
    transform: translateX(-50%);
}

/* Подзаголовок */
.subtitle {
    font-size: 1.2em;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 20px;
}

/* Логотип */
.logo-placeholder {
    width: 450px;
    height: 500px;
    background-color: transparent;
    margin-left: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInRise 1s ease-out forwards 0.3s;
}

/* Анимации */
@keyframes fadeInRise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стрелки скролла */
.scroll-down-arrow,
.scroll-up-arrow {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: block;
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.scroll-down-arrow {
    bottom: 30px;
}

.scroll-up-arrow {
    top: 30px;
}

.scroll-down-arrow:hover,
.scroll-up-arrow:hover {
    opacity: 1;
}

.scroll-down-arrow::after,
.scroll-up-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
}

.scroll-down-arrow::after {
    transform: translate(-50%, -60%) rotate(45deg);
    animation: bounce-down 2s infinite;
}

.scroll-up-arrow::after {
    transform: translate(-50%, -40%) rotate(-135deg);
    animation: bounce-up 2s infinite;
}

@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, -60%) rotate(45deg) translateY(0);
    }
    40% {
        transform: translate(-50%, -60%) rotate(45deg) translateY(5px);
    }
    60% {
        transform: translate(-50%, -60%) rotate(45deg) translateY(3px);
    }
}

@keyframes bounce-up {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, -40%) rotate(-135deg) translateY(0);
    }
    40% {
        transform: translate(-50%, -40%) rotate(-135deg) translateY(-5px);
    }
    60% {
        transform: translate(-50%, -40%) rotate(-135deg) translateY(-3px);
    }
}

/* Контейнер карточек */
.section-2 .container,
.section-3 .container,
.section-4 .container {
    width: 100%;
    max-width: 500px;
}

/* Карточки */
.glass-card,
.glass-card:link,
.glass-card:visited,
.glass-card:hover,
.glass-card:active {
    color: white;
    text-decoration: none;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    margin-bottom: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: block;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transition: left 0.6s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Контент карточек */
.card-content {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.icon svg {
    width: 24px;
    height: 24px;
    fill: white;
    opacity: 0.9;
}

.text-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.95);
}

.text-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Telegram бейдж */
.telegram-badge {
    margin-left: auto;
}

.telegram-badge svg {
    width: 20px;
    height: 20px;
    fill: #0088cc;
}

/* Стиль для подписи #federal */
.federal-tag {
    display: inline-block;
    margin-top: 5px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    letter-spacing: 1px;
}

/* УБИРАЕМ ВСЕ ЦВЕТНЫЕ СТИЛИ — всё серое/монохромное */
.section-3 .icon,
.section-4 .icon {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.section-3 .icon svg,
.section-4 .icon svg {
    fill: white !important;
    opacity: 0.9;
}

/* УДАЛЕНЫ ВСЕ СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ ADAPTER — теперь полностью как у остальных */

/* Адаптивные стили */
@media (max-width: 768px) {
    html, body {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
    }

    body {
        position: fixed;
        width: 100%;
        height: 100%;
        height: 100vh;
        height: 100dvh;
    }

    .content-container {
        flex-direction: column;
        text-align: center;
        padding: 10px;
        max-width: 100%;
    }

    .section-1 {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .text-block {
        margin-right: 0;
        margin-bottom: 30px;
    }

    .main-title {
        font-size: 2.5em;
    }

    .main-title::after {
        width: 100%;
        left: 0;
        transform: none;
        bottom: -5px;
    }

    .logo-placeholder {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin-left: 0;
        margin: 0 auto;
    }

    .logo-placeholder img {
        height: auto;
        max-height: 300px;
    }

    .section-2,
    .section-3,
    .section-4 {
        padding-bottom: calc(250px + env(safe-area-inset-bottom, 0px));
    }

    .section-2 .container,
    .section-3 .container,
    .section-4 .container {
        padding-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2em;
    }
    .subtitle {
        font-size: 1.1em;
    }

    .logo-placeholder {
        max-width: 200px;
        margin-bottom: 10px;
    }
}

@media (max-width: 600px) {
    .section-2,
    .section-3,
    .section-4 {
        padding-bottom: calc(280px + env(safe-area-inset-bottom, 0px));
    }

    .section-2 .container,
    .section-3 .container,
    .section-4 .container {
        padding-bottom: 60px;
        max-width: 100%;
    }

    .glass-card {
        padding: 20px;
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
    }

    .icon {
        width: 40px;
        height: 40px;
    }

    .icon svg {
        width: 20px;
        height: 20px;
    }

    .text-content h3 {
        font-size: 16px;
    }

    .text-content p {
        font-size: 13px;
    }

    .scroll-down-arrow,
    .scroll-up-arrow {
        bottom: 20px;
        width: 25px;
        height: 25px;
    }

    .scroll-down-arrow::after,
    .scroll-up-arrow::after {
        width: 8px;
        height: 8px;
    }

    .scroll-up-arrow {
        top: 20px;
    }
}