html {
    scroll-behavior: smooth !important;
}

body {
    background-color: #1d1d1d;
    background-image: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1),
        rgba(29, 29, 29, 0) 70%
    );
    min-height: 100vh;
    color: #e5e5e5;
}

.navbar {
    background-color: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(229, 229, 229, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    box-shadow: none;
}
.nav-link {
    color: #e5e5e5;
}

.nav-link:hover {
    color: #ffffff;
}

.btn-outline {
    color: #e5e5e5;
    border: 1px solid #e5e5e5;
}

.navbar-collapse:not(.collapsing) + header {
    background-color: #ffffff; /* Установите желаемый цвет фона */
}

.btn-outline:hover {
    color: #ffffff;
    border: 1px solid #ffffff;
    background-color: none !important;
}

a,
.btn-link {
    color: #e5e5e5;
    text-decoration: none;
}

a:hover,
.btn-link:hover,
.btn-link.show,
.btn-link:active {
    color: #ffffff !important;
}

.dropdown-menu {
    background-color: #121212;
    color: #e5e5e5;
    min-width: auto;
    width: fit-content;
}

a.dropdown-item {
    color: #e5e5e5;
}

a.dropdown-item:hover {
    background-color: #121212;
    color: #ffffff;
}

a.dropdown-item.disabled {
    color: #919191;
}

#navbarRight {
    padding-top: 10px;
    padding-right: 20px;
    position: absolute !important;
    top: 0;
    right: 0;
}

.badge.bg-secondary {
    background-color: #434343 !important;
    color: #e5e5e5;
    padding: 6px;
    padding-left: 7px;
    padding-right: 7px;
    border-radius: 3px;
    left: 136px;
    top: 12px;
}

.nav-link:focus {
    color: #e5e5e5 !important;
}
.nav-link.active {
    color: #919191 !important;
}

.navbar-brand {
    margin-right: 0px;
}

.navbar-nav {
    margin-left: -66.2px;
}

@media (max-width: 1000px) {
    .navbar-nav {
        margin-left: 0px;
    }
}

.navbar-toggler {
    padding-left: 0px;
    padding-right: 0px;
}

header.navbar-open {
    background-color: #121212; /* Установите желаемый цвет фона */
}

@media (max-width: 991.98px) {
    .navbar-nav .nav-item {
        margin-left: 15px; /* Устанавливаем отступ слева */
    }
}

#brand img {
    width: 300px;
}

@media (max-width: 500px) {
    #brand img {
        width: 50vw;
    }
}

#canvas {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

#content {
    height: 100vh;
}

#svg {
    width: 1200px;
    height: auto;
}

#ecosystem {
    text-align: center;
}

@media (max-width: 1250px) {
    #svg {
        width: 99%; /* делает SVG на 100% ширины контейнера */
        height: auto; /* сохраняет пропорции */
    }
}

#brand {
    padding-top: 50px;
    width: 100%;
    text-align: center;
    color: #aaaaaa;
    font-weight: bold;
}

#brand h1 {
    color: #e5e5e5;
    margin-bottom: 0px;
    letter-spacing: 6px;
}

#socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 35px;
}

.social-link {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.social-link img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.social-link span {
    display: inline;
}

@media (max-width: 600px) {
    .social-link span {
        display: none;
    }
}

.card {
    margin-left: 30px;
    margin-right: 30px;
}

#content {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

section {
    display: grid; /* Используем Grid */
    place-items: center;
    min-height: 100vh;
    scroll-snap-align: start;
    max-height: max-content;
}

.accordion-item {
    border-color: #424242 !important;
}

.accordion-button {
    background-color: #242424 !important;
    color: #e5e5e5;
    box-shadow: none !important;
}

.accordion .accordion-item {
    background-color: #1a1a1a !important;
    color: #e5e5e5;
}

.accordion-button:after {
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;
}

.accordion-button:not(.collapsed) {
    color: #ffffff;
    box-shadow: none !important;
}

.modal-content {
    background-color: #1a1a1a !important;
    color: #e5e5e5;
    border-color: #424242 !important;
}

.modal-header {
    background-color: #242424;
    border-bottom: 1px solid #424242;
}

.btn-close {
    color: #fff !important;
    opacity: 1;
}

text {
    cursor: pointer;
}

text:hover {
    stroke: #e7e7e7;
}

#svg ellipse,
#svg line,
#brand,
#svg text,
header,
#socials {
    opacity: 0;
}

.container.roadmap {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.roadmap-wrapper {
    max-width: 600px; /* Вы можете настроить ширину по желанию */
    text-align: left; /* Текст выравнивается слева внутри блока */
}

.timeline {
    list-style-type: none;
    position: relative;
    padding: 0;
    padding-left: 15px;
}

.timeline li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    width: 9px;
    height: 9px;
    text-align: center;
    line-height: 20px;
    border-radius: 50%;
    top: 8px;
    font-size: 12px;
    color: white;
}

.timeline li.done::before {
    content: ""; /* Иконка галочки FontAwesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    background-color: rgb(255, 255, 255);
}

.timeline li.current::before {
    content: "";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    background-color: rgb(255, 255, 255);
}

.timeline li.current {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

.timeline li.todo.first::before {
    content: "";
    position: absolute;
    width: 0px;
    height: 0px;
    top: 8px;
    font-size: 12px;
    content: ""; /* Просто пустой кружок */
    background-color: #737373;
}

.timeline li.todo::before {
    content: ""; /* Просто пустой кружок */
    background-color: #737373;
}

.timeline li::after {
    content: "";
    position: absolute;
    left: 4px; /* Центрирование линии относительно маркера */
    width: 1px; /* Ширина линии */
    background-color: #e5e5e5; /* Цвет линии */
    top: 17px;
    bottom: -28px; /* Смещение вниз для соединения с следующим элементом */
}

.timeline li.current::before {
    top: 10px;
}

.timeline li.current::after {
    top: 20px;
}

.timeline li.current::after,
.timeline li.todo::after {
    background: none;
    height: calc(100% + 20px);
    border-left: 1px dashed #737373;
}

.timeline li:last-child::after {
    display: none;
}

.timeline.sub {
    padding-left: 20px;
    margin-top: -7px;
}

#roadmap h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

#roadmap h3.current {
    color: white;
}

.custom-progress {
    background-color: transparent;
    border: 2px solid #e5e5e5;
    height: 30px;
    border-radius: 15px;
}

.progress-bar {
    background-color: #e5e5e5;
    box-shadow: none;
}

.contacts-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.contacts-link {
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid #e5e5e5;
    padding: 10px;
    padding-bottom: 12px;
    border-radius: 25px;
    margin-right: 20px;
    display: flex;
}

@media (max-width: 310px) {
    .contacts-link {
        margin-right: 0px;
    }
}

.contacts-link:last-child {
    margin-right: 0;
}

.contacts-link:hover {
    border: 1px solid #ffffff;
}

.contacts-link img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.contacts-link span {
    display: inline;
}
