:root {
    --color-0: #FB5FAB;
    --color-1: #EA559D;
    --color-2: #FFFFFF;
    --color-3: #FCEEF5;
    --color-4: #29223C;
    --color-5: #180F2A;
    --color-6: #4B3F4A;
    --color-7: #140610;
    --color-8: #222222;
    --color-9: #201438;
}

/* Для Chrome, Edge, Safari, Opera */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #180F2A;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #33203B;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #502A4B;
}

::selection {
    background: var(--color-0);
    color: white;
    border-radius: 6px;
}

::-moz-selection {
    background: var(--color-0);
    color: white;
    border-radius: 6px;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
    background: var(--color-5);
    color: var(--color-2);
    min-height: 100vh;
    scroll-behavior: smooth;
}

a {
    text-decoration: none !important;
}

body {
    background: linear-gradient(180deg, var(--color-5) 0%, var(--color-4) 100%);
}

.hero {
    background-color: var(--color-5);
    background-image: url('/static/images/default-banner.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    text-align: center;
    /* padding: 80px 20px 60px 20px; */
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-5), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 18px 0;
    color: var(--color-2);
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-3);
    margin-bottom: 32px;
}

.hero .btn {
    background: linear-gradient(90deg, var(--color-0), var(--color-1));
    color: var(--color-2);
    border: none;
    border-radius: 30px;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 24px 0 rgba(251, 95, 171, 0.15);
}

.hero .btn:hover {
    background: linear-gradient(90deg, var(--color-1), var(--color-0));
}

.hero .btn-beta {
    background: transparent;
    border: 3px solid linear-gradient(90deg, var(--color-1), var(--color-0));
    color: var(--color-2);
    border-radius: 30px;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 0px 24px 0 rgba(251, 95, 171, 0.4);
}

.hero .btn-beta:hover {
    border: 1px solid linear-gradient(90deg, var(--color-0), var(--color-1));
}

.section {
    background: var(--color-5);
    padding: 80px 24px 64px 24px;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-2);
}

.section-subtitle {
    color: var(--color-3);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.features {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    margin: 80px 40px 100px 40px;
}

.feature-card {
    background: var(--color-5);
    border: 1px solid var(--color-6);
    border-radius: 18px;
    padding: 32px 24px 24px 24px;
    flex: 1 1 160px;
    min-width: 260px;
    max-width: 340px;
    text-align: left;
    color: var(--color-2);
    box-shadow: 0 2px 12px 0 rgba(20, 6, 16, 0.08);
    margin-bottom: 12px;
    transition: border 0.2s;
}

.feature-card:hover {
    border: 1.5px solid var(--color-0);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    color: var(--color-0);
    display: inline-block;
}

.feature-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-desc {
    color: var(--color-3);
    font-size: 1rem;
}

.projects-section {
    background: var(--color-4);
    padding: 100px 40px 100px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 80px;
}

.projects-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.project-img {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--color-6);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0 0;
    box-shadow: 0 4px 32px 0 rgba(20, 6, 16, 0.10);
}

.project-img img {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-3);
    display: block;
    margin: auto;
}

.project-info {
    flex: 1 1 340px;
    max-width: 550px;
    text-align: left;
    gap: 20px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-2);
}

.project-desc {
    color: var(--color-3);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 25px;
}

.project-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 0;
    margin: 20px 0 20px 0;
    gap: 20px;
}

.project-list li {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.0rem;
}

.project-list svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: var(--color-0);
}

/* 
.project-list li::before {
    content: "✔";
    color: var(--color-0);
    margin-right: 10px;
    font-size: 1.1em;
} */

.project-btn {
    background: linear-gradient(90deg, var(--color-0), var(--color-1));
    color: var(--color-2);
    border: none;
    border-radius: 30px;
    padding: 12px 36px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 12px 0 rgba(251, 95, 171, 0.10);
    margin-top: 20px;
}

.project-btn:hover {
    background: linear-gradient(90deg, var(--color-1), var(--color-0));
}

.reviews-section {
    background: var(--color-4);
    padding: 48px 0 32px 0;
    text-align: center;
}

.reviews-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-2);
}

.reviews-subtitle {
    color: var(--color-3);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.reviews-list {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.review-card {
    background: var(--color-5);
    border: 1px solid var(--color-6);
    border-radius: 18px;
    padding: 16px 20px 20px 20px;
    flex: 1 1 160px;
    min-width: 260px;
    max-width: 340px;
    text-align: left;
    color: var(--color-2);
    box-shadow: 0 2px 12px 0 rgba(20, 6, 16, 0.08);
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-stars {
    color: var(--color-0);
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.review-text {
    color: var(--color-3);
    font-size: 1rem;
    margin-bottom: 18px;
    min-height: 48px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-6);
    object-fit: cover;
    display: block;
}

.review-user-link {
    cursor: pointer;
}
.review-user-link:hover .review-name{
    color: var(--color-0);
}

.review-name {
    font-weight: 700;
    color: var(--color-2);
    font-size: 1rem;
    transition: all 0.5s ease;
}

.review-role {
    color: var(--color-3);
    font-size: 0.95rem;
}

.faq-section {
    background: var(--color-4);
    padding: 48px 0 48px 0;
    text-align: center;
}

.faq-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-2);
}

.faq-subtitle {
    color: var(--color-3);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: var(--color-5);
    border-radius: 14px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 rgba(20, 6, 16, 0.08);
    border: 1px solid var(--color-6);
    transition: border 0.2s;
}

.faq-item.open {
    border: 1.5px solid var(--color-0);
}

.faq-question {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 700;
    color: var(--color-2);
    background: var(--color-5);
    position: relative;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--color-9);
}

.faq-arrow {
    transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
    font-size: 1.3em;
    color: var(--color-0);
    margin-left: 12px;
}

.faq-item.open .faq-arrow {
    transform: rotate(90deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    /* background: var(--color-6); */
    color: var(--color-3);
    font-size: 1rem;
    padding: 0 24px;
    transition: max-height 0.4s cubic-bezier(.4, 0, .2, 1), padding 0.4s cubic-bezier(.4, 0, .2, 1);
}

.faq-item.open .faq-answer {
    padding: 18px 24px 24px 24px;
    max-height: 400px;
}

@media (max-width: 1100px) {
    .projects-container {
        flex-direction: column;
        gap: 32px;
    }

    .project-img {
        margin: 0 auto;
    }

    .project-info {
        max-width: 100%;
        text-align: center;
    }
}

@media (max-width: 900px) {

    .features,
    .reviews-list {
        flex-direction: column;
        gap: 18px;
    }

    .feature-card,
    .review-card {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .section-title,
    .reviews-title,
    .faq-title {
        font-size: 1.3rem;
    }

    .hero {
        padding: 48px 8px 32px 8px;
    }

    .section,
    .projects-section,
    .reviews-section,
    .faq-section {
        padding: 80px 24px 64px 24px;
    }

    .project-img {
        width: 160px;
        height: 160px;
    }

    .project-img img {
        width: 110px;
        height: 110px;
    }

    .faq-list {
        padding: 0 4px;
    }
}

.version-switch-section {
    position: relative;
    padding: 0;
    min-height: 340px;
    /* background: #222; */
    overflow: hidden;
    margin-top: -48px;
}

.version-switch-section .version-switch-menu {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 0 0 0 0;
    z-index: 2;
    position: relative;
}

.version-switch-section .version-tab {
    color: var(--color-2);
    border: none;
    border-radius: 24px 24px 0 0;
    padding: 14px 36px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
    z-index: 2;
    position: relative;
}
.version-tab {
    background-color: var(--color-4);
}

.version-switch-section .version-tab.active {
    background: linear-gradient(90deg, var(--color-0), var(--color-1));
    color: var(--color-2);
    box-shadow: 0 4px 24px 0 rgba(251, 95, 171, 0.10);
}

.version-switch-section .version-content {
    position: relative;
    z-index: 1;
    min-height: 260px;
    padding: 0;
}

.version-content {
    background-color: var(--color-5);
}

.version-pane {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 48px 0 32px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.5s;
    opacity: 0;
}

/* .version-pane[data-pane="stable"] {
    background-color: var(--color-4);
}

.version-pane[data-pane="beta"] {
    background-image: url('https://images.unsplash.com/photo-1519125323398-675f0ddb6308?auto=format&fit=crop&w=900&q=80');
} */

.version-pane.active {
    display: block;
    opacity: 1;
    position: relative;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.version-info {
    background: rgba(24, 15, 42, 0.92);
    border-radius: 18px;
    max-width: 420px;
    margin: 0 auto;
    padding: 32px 28px 24px 28px;
    box-shadow: 0 4px 32px 0 rgba(20, 6, 16, 0.10);
    color: var(--color-2);
    position: relative;
    z-index: 2;
}

.version-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-2);
}

.version-desc {
    color: var(--color-3);
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.version-meta {
    color: var(--color-0);
    font-size: 1rem;
    margin-bottom: 18px;
}

.version-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.version-list li {
    display: flex;
    align-items: center;
    color: var(--color-2);
    font-size: 1rem;
    margin-bottom: 10px;
    gap: 10px;
}

.version-list svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-block;
}

@media (max-width: 700px) {
    .version-info {
        max-width: 98vw;
        padding: 18px 8px 16px 8px;
    }

    .version-switch-section .version-switch-menu {
        gap: 6px;
        padding-top: 16px;
    }

    .version-switch-section .version-tab {
        padding: 10px 16px;
        font-size: 1rem;
    }

    .version-pane {
        padding: 32px 0 16px 0;
    }
}

.version-flex {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.version-info {
    flex: 1 1 320px;
    min-width: 0;
}

.version-image {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    max-width: 220px;
    padding-top: 12px;
}

.version-image img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 18px;
    background: var(--color-6);
    box-shadow: 0 2px 16px 0 rgba(20, 6, 16, 0.10);
}

.version-download-btn {
    margin-top: 24px;
    background: linear-gradient(90deg, var(--color-0), var(--color-1));
    color: var(--color-2);
    border: none;
    border-radius: 30px;
    padding: 12px 36px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 12px 0 rgba(251, 95, 171, 0.10);
}

.version-download-btn:hover {
    background: linear-gradient(90deg, var(--color-1), var(--color-0));
}

@media (max-width: 900px) {
    .version-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        max-width: 98vw;
    }

    .version-image {
        justify-content: center;
        margin: 0 auto;
        max-width: 100vw;
    }

    .version-image img {
        width: 140px;
        height: 140px;
    } 
}
.version-switch-section {
    position: relative;
    overflow: visible;
}

.version-bg-stars,
.version-bg-gears {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}

.version-bg-active {
    opacity: 1 !important;
}

@keyframes fadeInBg {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.stars {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.star,
.gear {
    position: absolute;
    opacity: 0;
    animation: twinkle 4s infinite ease-in-out, appearStar 0.7s forwards;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.9;
    }
}

@keyframes appearStar {
    from {
        transform: scale(0.5);
    }

    to {
        transform: scale(1);
    }
}

.star-shape {
    color: #fff;
    font-size: 12px;
    filter: drop-shadow(0 0 2px #fff);
    user-select: none;
}

.gear-shape {
    width: 12px;
    height: 12px;
    display: block;
}

.footer {
    background: var(--color-5, #180F2A);
    color: var(--color-3, #FCEEF5);
    padding: 32px 0 20px 0;
    font-size: 1rem;
    margin-top: 40px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-2, #fff);
}

.footer-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    /* background: #fff; */
    box-shadow: 0 2px 8px 0 rgba(20, 6, 16, 0.10);
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--color-0, #FB5FAB);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-1, #EA559D);
    text-decoration: underline;
}

.footer-meta {
    color: var(--color-6, #4B3F4A);
    font-size: 0.95rem;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 600px) {
    .footer-container {
        padding: 0 8px;
    }

    .footer-brand {
        font-size: 1rem;
    }

    .footer-logo {
        width: 30px;
        height: 30px;
    }

    .footer-links {
        gap: 12px;
        font-size: 0.98rem;
    }

    .footer-meta {
        font-size: 0.9rem;
        gap: 8px;
    }
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-2, #fff);
    justify-content: flex-end;
}

@media (max-width: 700px) {
    .footer-row {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }

    .footer-links,
    .footer-brand {
        justify-content: center;
    }
}