@import url("./fonts.css");

:root {
    --text-color: rgba(233, 233, 233, 1);
    --dirty-white: rgba(188, 188, 188, 1);
    --background-color: rgba(0, 0, 0, 1);
    --btn-consult: rgba(118, 27, 228, 1);
    --footer-text: rgba(177, 177, 177, 1);
    --background-motivation: rgba(255, 255, 255, 0.2);
}
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text-color);
    font-family: "Roboto";
}

.background-gradient {
    position: absolute;
    margin-top: 400px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 25%;

    background: radial-gradient(
        circle at 60% 50%,
        rgba(166, 92, 255, 1) 0%,
        rgba(40, 13, 192, 1) 10%,
        rgba(0, 0, 0, 0) 30%
    );
}
img {
    overflow-clip-margin: content-box;
    overflow: clip;
}
.background-gradient_2 {
    position: absolute;
    margin-top: 1000px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 25%;

    background: radial-gradient(
        circle at 30% 50%,
        rgba(191, 0, 255, 1) 0%,
        rgba(115, 0, 153, 1) 10%,
        rgba(0, 0, 0, 0) 30%
    );
}

.background-gradient_3 {
    position: absolute;
    margin-top: 1500px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 25%;

    background: radial-gradient(
        circle at 50% 50%,
        rgba(85, 206, 255, 1) 0%,
        rgba(0, 146, 206, 1) 10%,
        rgba(0, 0, 0, 0) 30%
    );
}

body {
    background-color: var(--background-color);
    /* margin: 0px 58px 0px 58px; */
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
    padding: 30px 58px;
}
header {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
    font-family: "Roboto";
    font-size: 24px;
}
p {
    display: block;

    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    /* text-align: left; */
}
.logo {
    border-right: 0.25px solid var(--text-color);
    padding-right: 60px;
    margin-right: 20px;
    width: 80px;
    height: 80px;
}

.nav {
    display: none;
    list-style-type: none;
}
a {
    text-decoration: none;
    color: var(--text-color);
    box-sizing: border-box;
}
.btn-consult {
    width: 173px;
    height: 30px;
    padding: 7px 6px;
    background-color: var(--btn-consult);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-family: "Roboto";
    color: var(--text-color);
    cursor: pointer;
}

.roadmap-nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-top: 32px;
    width: 100%;
}
.roadmap-nav-name {
    font-family: "PressStart2P";
    font-size: 14px;
    color: var(--text-color);
    margin-right: 20px;
    white-space: nowrap;
}
.roadmap-nav-list {
    display: flex;
    font-family: "Inter";
    font-size: 20px;
    color: var(--text-color);
    list-style-type: none;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}
.roadmap-nav-item {
    padding: 8px 24px 8px 24px;
    border: 2px solid;
    border-color: var(--btn-consult);
    border-radius: 24px;
    font-weight: 700;
}

.roadmap-nav-item:hover {
    box-shadow:
        0 0 10px #8a2be2,
        0 0 20px #6a0dad,
        0 0 30px var(--btn-consult);
    border-color: #9b30ff;
    transform: translateY(-2px);
}

.roadmap-nav-item-selected {
    padding: 8px 24px 8px 24px;
    border: 2px dashed;
    border-color: var(--btn-consult);
    border-radius: 24px;
    font-weight: 700;
}

.intro__main-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 72px 0 72px 0;
}

.intro__title {
    font-family: "PressStart2P";
    font-size: 24px;
    text-transform: uppercase;
    line-height: 150%;
}
.intro__description {
    margin-top: 16px;
    color: var(--dirty-white);
}
.intro__side-image {
    max-width: 288px;
    margin-top: 16px;
}

.center__p {
    text-align: center;
    font-size: 16px;
    color: rgba(177, 177, 177, 1);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

#cy {
    display: block;
    width: 100%;
    height: 1385px;
    position: relative;
}

#cy_m {
    display: none;
    width: 100%;
    height: 1385px;
    position: relative;
}

.roadmap-branch-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 1;
}

.roadmap-branch-overlay .branch-line {
    fill: none;
    stroke: #8a2be2;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.faq {
    max-width: auto;
    margin: 80px 56px;
}

.faq-title {
    font-size: 32px;
    margin-bottom: 32px;
    font-family: "PressStart2P";
}

.accordion-item {
    border: 2px solid #7b3fe4;
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: 0.3s ease;
}

.accordion-item:hover {
    box-shadow:
        0 0 10px #8a2be2,
        0 0 20px #6a0dad,
        0 0 30px var(--btn-consult);
}

.accordion-header {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 32px 41px;
    font-size: 28px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.accordion-item.active .accordion-header {
    padding: 28px 32px 12px 32px;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.4s ease,
        padding 0.3s ease;
    background: #000;
    padding: 0 25px;
}

.accordion-content p {
    margin: 20px 132px 0 0;
    line-height: 1.6;
    border-top: 2px dashed #444;
    padding-top: 20px;
    font-size: 20px;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding: 0 25px 20px 25px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: #e9e9e94e;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1000;
}

.side-panel {
    position: fixed;
    top: 0;
    right: -620px;
    width: 620px;
    height: 100vh;
    background: #000;
    padding: 40px;
    box-sizing: border-box;

    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.side-panel.active {
    right: 0;
    box-shadow: 0 0 18px rgba(123, 63, 228, 0.6);
    border-radius: 12px;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.panel-button {
    visibility: hidden;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 36px;
    font-family: "PressStart2P";
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.panel-text {
    margin: 30px 0;
    font-size: 24px;
    line-height: 1.4;
    color: #ccc;
}

.panel-link {
    display: flex;
    font-size: 24px;
    justify-content: space-between;
    align-items: center;
    border: 2px solid #7b3fe4;
    border-radius: 12px;
    padding: 18px 22px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.panel-link:hover {
    box-shadow: 0 0 18px rgba(123, 63, 228, 0.6);
}

/* ===== FOOTER ===== */
.footer {
    display: flex;
    flex-direction: column;
    row-gap: 1.25rem; /* 20px → 1.25rem */
}

.footer__icons {
    display: flex;
    flex-direction: column;
    row-gap: 0.625rem; /* 10px → 0.625rem */
}

.footer__requisites {
    display: flex;
    flex-direction: column;
    row-gap: 0.625rem; /* 10px → 0.625rem */
}

.footer__contacts {
    display: flex;
    flex-direction: column;
    row-gap: 0.75rem; /* 12px → 0.75rem */
}

.footer__requisites_tel {
    text-decoration: underline;
}

.footer__requisites_p {
    font-family: "Roboto";
    color: var(--footer-text);
}

@media (max-width: 767px) {
    .container {
        padding: 8px 10px;
    }

    header {
        gap: 8px;
        font-size: 14px;
    }

    .logo {
        width: 40px;
        height: 40px;
        padding-right: 12px;
        margin-right: 3px;
    }

    .header_div {
        height: 24px;
    }

    header span {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
    }

    .roadmap-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 24px;
        margin-bottom: 42px;
    }

    .roadmap-nav-name {
        font-size: 10px;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .roadmap-nav-list {
        align-items: flex-start;
        row-gap: 16px;
        column-gap: 16px;
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: flex-start;
    }

    .roadmap-nav-item,
    .roadmap-nav-item-selected {
        padding: 4px 12px;
        font-size: 15px;
        border-width: 1px;
        border-radius: 16px;
        white-space: nowrap;
    }

    .roadmap-nav-item:hover {
        box-shadow: 0 0 5px #8a2be2;
        transform: translateY(-1px);
    }

    .intro__main-info {
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
    }

    .intro__title {
        font-size: 16px;
        line-height: 1.3;
    }

    .intro__description {
        font-size: 12px;
        margin-top: 8px;
    }

    .intro__side-image {
        max-width: 100%;
        height: auto;
        max-height: 250px;
    }

    .center__p {
        font-size: 12px;
    }

    #cy {
        display: none;
        height: 500px;

        transform-origin: center center;
    }

    #cy_m {
        display: block;
        height: 1200px;
        transform-origin: center center;
    }

    /* FAQ */
    .faq {
        margin: 30px 12px;
        padding: 0;
    }

    .faq-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .accordion-item {
        border-width: 1px;
        margin-bottom: 10px;
    }

    .accordion-header {
        padding: 12px 12px;
        font-size: 13px;
    }

    .accordion-item.active .accordion-header {
        padding: 12px 12px 6px 12px;
    }

    .accordion-content p {
        margin: 10px 10px 0 0;
        font-size: 11px;
        padding-top: 10px;
        border-top-width: 1px;
    }

    .side-panel {
        width: 80%;
        right: -100%;
        padding: 16px;
    }

    .panel-header {
        margin-bottom: 10px;
    }

    .panel-header h2 {
        font-size: 18px;
    }

    .close-btn {
        font-size: 22px;
    }

    .panel-text {
        font-size: 13px;
        margin: 15px 0;
        line-height: 1.4;
    }

    .panel-link {
        font-size: 13px;
        padding: 10px 14px;
        border-width: 1px;
        border-radius: 8px;
    }

    .panel-link span {
        font-size: 16px;
    }

    .footer {
        padding: 0 12px;
    }
    .footer__icons {
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }
    .footer__requisites {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr auto;
        row-gap: 10px;
        justify-content: space-between;
        align-items: flex-start;
    }
    .background-gradient,
    .background-gradient_2,
    .background-gradient_3 {
        margin-top: 100px;
        opacity: 10%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding: 20px 24px;
    }

    header {
        gap: 30px;
        font-size: 20px;
        flex-wrap: wrap;
    }

    .logo {
        width: 90px;
        height: 70px;
        padding-right: 30px;
    }

    header span {
        font-size: 18px;
        max-width: 400px;
    }

    .roadmap-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 24px;
        overflow-x: visible;
        padding-bottom: 0;
        width: 100%;
    }

    .roadmap-nav-name {
        font-size: 16px;
        margin-right: 0;
        margin-bottom: 8px;
        white-space: nowrap;
    }

    .roadmap-nav-list {
        display: flex;
        flex-wrap: wrap;
        row-gap: 24px;
        column-gap: 12px;
        width: 100%;
        overflow-x: visible;
        justify-content: flex-start;
    }

    .roadmap-nav-item,
    .roadmap-nav-item-selected {
        padding: 8px 20px;
        font-size: 16px;
        white-space: nowrap;
        flex: 0 1 auto;
    }

    .intro__main-info {
        flex-direction: row;
        gap: 30px;
        flex-wrap: wrap;
    }

    .intro__title {
        font-size: 42px;
        max-width: 100%;
    }

    .intro__description {
        font-size: 18px;
    }

    .intro__side-image {
        max-width: 400px;
        width: 100%;
        height: auto;
    }

    #cy {
        height: 900px;
    }

    .faq {
        margin: 60px 24px;
    }

    .faq-title {
        font-size: 28px;
    }

    .accordion-header {
        padding: 28px 32px;
        font-size: 22px;
    }

    .accordion-content p {
        margin: 15px 40px 0 0;
        font-size: 18px;
    }

    .side-panel {
        width: 480px;
    }

    .panel-header h2 {
        font-size: 30px;
    }

    .panel-text {
        font-size: 20px;
    }

    .panel-link {
        font-size: 20px;
    }

    .background-gradient {
        margin-top: 110px;
    }

    .background-gradient_2 {
        margin-top: 400px;
    }

    .background-gradient_3 {
        margin-top: 650px;
    }

    /* ===== FOOTER ===== */
    .footer__icons {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer__logo {
        width: 7.875rem; /* 126px → 7.875rem */
        height: 5.5rem; /* 88px → 5.5rem */
    }

    .footer__socialnets {
        display: flex;
        column-gap: 2rem; /* 32px → 2rem */
    }

    .footer__socialnets_icon {
        width: 3rem; /* 48px → 3rem */
        height: 3rem; /* 48px → 3rem */
    }

    .footer__requisites {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .footer__details {
        text-align: right;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 30px 58px;
    }

    header {
        gap: 40px;
        font-size: 24px;
    }

    .logo {
        width: 150px;
        height: 80px;
        padding-right: 50px;
        margin-right: 0px;
    }

    header span {
        font-size: 24px;
        max-width: none;
    }

    .nav {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        gap: 24px;
        flex-wrap: wrap;
    }

    .roadmap-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
        width: 100%;
    }

    .roadmap-nav-name {
        font-size: 16px;
        margin-right: 20px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .roadmap-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        width: auto;
        flex: 1;
        justify-content: flex-start;
    }

    .roadmap-nav-item,
    .roadmap-nav-item-selected {
        padding: 8px 24px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .intro__main-info {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .intro__title {
        font-size: 56px;
        /* max-width: 12ch; */
        line-height: 1.2;
    }

    .intro__description {
        font-size: 20px;
        max-width: 90%;
    }

    .intro__side-image {
        max-width: 400px;
        max-height: 600px;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    #cy {
        height: 1200px;
    }

    .faq {
        margin: 80px 56px;
    }

    .faq-title {
        font-size: 32px;
    }

    .accordion-header {
        padding: 32px 41px;
        font-size: 28px;
    }

    .accordion-content p {
        margin: 20px 132px 0 0;
        font-size: 20px;
    }

    /* ===== FOOTER ===== */
    .footer {
        font-size: 1.5rem; /* 24px → 1.5rem */
    }
    .footer__icons {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .footer__logo {
        width: 12.5rem; /* 200px → 12.5rem */
        height: 8.75rem; /* 140px → 8.75rem */
    }

    .footer__socialnets {
        display: flex;
        column-gap: 2rem; /* 32px → 2rem */
    }

    .footer__socialnets_icon {
        width: 3rem; /* 48px → 3rem */
        height: 3rem; /* 48px → 3rem */
    }

    .footer__requisites {
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;

        transform: translate(0, -4.25rem); /* -68px → -4.25rem */
    }

    .footer__requisites_tel {
        pointer-events: none;
    }

    .footer__contacts {
        flex-direction: row;
        column-gap: 2rem; /* 32px → 2rem */
        transform: translate(0, 2.5rem); /* 40px → 2.5rem */
    }

    .footer__details {
        text-align: left;
    }

    .footer__lad_address {
        transform: translate(14.5rem, -3.25rem); /* 232px -52px → 14.5rem -3.25rem */
    }

    .footer__license {
        transform: translate(0, 0.9375rem); /* 15px → 0.9375rem */
    }
}
