html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Тёмный фон по умолчанию */
body {
    background-color: #0f172a;
    color: white;
    padding-top: 60px; /* пространство под фиксированный navbar */
    padding-bottom: 60px; /* пространство под footer */
}

a {
    color: #facc15;
}

    a:hover {
        color: #f97316;
        text-decoration: none;
    }

/* Navbar */
.navbar {
    background: rgba(15, 23, 42); /* полупрозрачный тёмный фон */
    padding: 15px 0;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid #2c3034;
    z-index: 1000;
}

    .navbar .nav-link {
        color: white;
    }

        .navbar .nav-link:hover {
            color: #facc15;
        }

a.navbar-brand {
    color: #facc15;
}

    a.navbar-brand:hover {
        color: #f97316;
    }

/* Footer */
footer {
    background-color: #0f172a;
    color: rgba(255,255,255,0.6);
    padding: 15px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid #2c3034;
    z-index: 1000;
}

    footer a {
        color: #facc15;
    }

        footer a:hover {
            color: #f97316;
            text-decoration: none;
        }

/* Контейнеры секций */
.container, main {
    background: transparent;
}

/* ---------------- Hero Section ---------------- */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero {
    background: linear-gradient(135deg, #4f46e5, #3b82f6, #10b981, #facc15, #f97316);
    background-size: 400% 400%;
    color: white;
    padding: 120px 0;
    text-align: center;
    animation: gradientMove 20s ease infinite;
    position: relative;
    overflow: hidden;
}

    .hero h1 {
        font-size: 4rem;
        font-weight: 700;
        animation: fadeInDown 1s ease-out forwards;
        position: relative;
        z-index: 1;
    }

    .hero p {
        font-size: 1.5rem;
        margin-top: 1rem;
        animation: fadeInUp 1s ease-out 0.3s forwards;
        position: relative;
        z-index: 1;
    }

.btn-download {
    margin-top: 2rem;
    background: linear-gradient(90deg, #facc15, #f97316);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    font-size: 1.2rem;
    color: white;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    z-index: 1;
    animation: pulse 2s infinite;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: inline-block;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    text-decoration: none;
    color: white;
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.4);
    transform: skewX(-25deg);
    z-index: 2;
    transition: all 0.3s;
}

.btn-download:hover::before {
    animation: shine 1s linear;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}

@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

/* ---------------- Features Cards ---------------- */
.feature-card {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6);
    transition: transform 0.6s ease, box-shadow 0.6s ease, opacity 0.6s ease;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* равномерно распределяем контент */
    height: 100%; /* заставляем карточку занимать всю высоту родителя */
    min-height: 300px; /* фиксированная минимальная высота */
    width: 100%;
}

    .feature-card.visible {
        opacity: 1;
        transform: translateY(0px);
        filter: blur(0);
    }

    .feature-card:hover {
        transform: translateY(-10px) scale(1.05);
        box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    }

    .feature-card p {
        margin-top: auto; /* текст прижимается вниз */
        flex-grow: 1; /* занимает оставшееся пространство */
    }

.feature-icon {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-5px);
}

section {
    padding: 80px 0;
}

/* ?? добавь это, чтобы колонки выравнивались */
.row.g-4 > [class*="col-"] {
    display: flex;
}



.lang-dropdown {
    width: 150px; /* можно поменять на auto или 180px по вкусу */
}

    .lang-dropdown .btn {
        background-color: #222;
        border: 1px solid #444;
        color: #facc15;
        border-radius: 8px;
    }

        .lang-dropdown .btn:hover {
            background-color: #333;
        }

    .lang-dropdown .dropdown-menu {
        width: 100%; /* делает ширину равной кнопке */
        background-color: #222;
        border: 1px solid #444;
        border-radius: 8px;
        min-width: unset; /* убирает стандартный min-width Bootstrap */
    }

    .lang-dropdown .dropdown-item {
        color: #facc15;
    }

        .lang-dropdown .dropdown-item:hover {
            background-color: #333;
            color: #facc15;
        }

.privacy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    color: #f8f8f8;
}

    .privacy-page h1 {
        text-align: center;
        font-size: 3rem;
        margin-bottom: 40px;
        color: #facc15;
        opacity: 0;
        transform: translateY(-30px);
        animation: fadeInDown 1s forwards;
    }

    .privacy-page h2 {
        margin-top: 40px;
        margin-bottom: 20px;
        color: #3b82f6;
        opacity: 0;
        transform: translateY(-20px);
        animation: fadeInDown 0.8s forwards;
    }

    .privacy-page p, .privacy-page ul {
        line-height: 1.8;
        margin-bottom: 20px;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 1s forwards;
    }

    .privacy-page a {
        color: #facc15;
        text-decoration: none;
    }

        .privacy-page a:hover {
            text-decoration: underline;
        }

    .privacy-page ul {
        margin-left: 20px;
        margin-bottom: 20px;
    }

    .privacy-page li {
        margin-bottom: 10px;
    }
