:root {
    --color-black: #000000;
    --color-black-60: rgba(0, 0, 0, 0.6);
    --color-white: #FFFFFF;
    --color-white-60: rgba(255, 255, 255, 0.6);
    --color-gray: #E9EAED;
    --color-gray-1: #888888;
    --color-gray-2: #464A53;
    --color-gray-3: #959595;
    --color-gray-4: #767D89;
    --color-red: #CD202C;
    --color-blue: #0066A1;
    --font-family: 'FSRAILWAYTT', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul {
    margin: 0 !important;
}

.container,
.rail__item img {
    margin: 0 auto;
}

h1.title span {
    margin: 0 -0.125rem;
}

ul {
    padding: 0 !important;
}

section {
    padding: 3rem 0;
}

.container {
    padding: 0 1.25rem;
}

h1.title span {
    padding: 0 0.125rem;
}

.btn {
    padding: 0.75rem 1rem;
}

.section__cards-item,
.section__banner,
.section__banner,
.map__content-card,
.section__accordion-item-top {
    padding: 1.25rem;
}

footer {
    padding: 1.75rem 0;
}

.swiper-slide__text {
    padding: 3.75rem 1.25rem 1.25rem;
}

.rail {
    padding: 2rem 0;
}

.section__accordion-item-bottom p {
    padding: 0 1.25rem 1.25rem;
}

#hero {
    padding: 6.375rem 0 0;
}

body,
.section__accordion-item-top {
    font-family: var(--font-family);
}

body {
    background: var(--color-gray);
}

h1.title span,
.swiper .swiper-button-next,
.swiper .swiper-button-prev,
.map__content-card-list::-webkit-scrollbar-thumb {
    background: var(--color-red);
}

.btn {
    background: #CD202C;
}

.section__cards-item,
nav.menu,
.map__content-card-list::-webkit-scrollbar-track,
.section__accordion-item {
    background: var(--color-white);
}

#hero {
    background: url('https://static.tildacdn.com/tild3339-3831-4062-b264-656135643564/Group_2131332145.jpg') no-repeat center top / cover;
}

#how .section__cards-item:nth-child(even),
.section__banner,
.section__banner {
    background: var(--color-blue);
}

footer {
    background: var(--color-gray-2);
}

.footer__social-link {
    background: var(--color-gray-4, #767D89);
}

.swiper-slide__text {
    background: linear-gradient(180deg, rgba(25, 11, 0, 0) 0%, rgba(25, 11, 0, 0.5) 60%);
}

.rail__item {
    background: url('https://static.tildacdn.com/tild3738-3865-4662-a262-363363316166/rail.svg') repeat-y center / auto 100%;
}

.rail__item:before {
    background: url('https://static.tildacdn.com/tild3665-3138-4232-a566-316537626638/rail_top.png') no-repeat center top / contain;
}

.rail__item:after {
    background: url('https://static.tildacdn.com/tild3039-3937-4930-b930-623138666361/rail_bottom.png') no-repeat center bottom / contain;
}

.map__content-card {
    background: #ffffff;
}

.section__accordion-item-top {
    background: none;
}

#hero:before {
    background: linear-gradient(270deg, rgba(30, 14, 0, 0.4) 0%, rgba(30, 14, 0, 0) 32.55%, rgba(30, 14, 0, 0.4) 54.07%);
}

body {
    -webkit-font-smoothing: antialiased;
}

body {
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none !important;
}

a {
    text-decoration: none !important;
}

.section__cards-item-descr a {
    text-decoration: underline !important;
}

.container {
    max-width: 1200px;
}

#hero h1.title {
    max-width: 41.75rem;
}

#program .section__bottom-wrapper-img {
    max-width: 30rem;
}

#hero .descr {
    max-width: 29.4375rem;
}

.menu__descr {
    max-width: 9rem;
}

#program .section__bottom-wrapper,
.rail,
.section__banner,
.section__accordion {
    max-width: 47.9375rem;
}

#program .section__cards-item-descr,
#how .section__cards-item-descr {
    max-width: 25rem;
}

#timeline .section__cards-item {
    max-width: 18.125rem;
}

.rail__item img {
    max-width: 1.875rem;
}

section .container,
.menu .container,
.logo,
.menu__right,
.menu__social-links,
.section__cards,
.section__cards-item,
.section__top-wrapper,
.section__cards-item-content,
.section__cards-item-icon,
.section__banner,
.section__banner,
.footer__links,
.footer__social,
.footer__social-link,
.footer__top,
footer .container,
.swiper-slide__text,
.swiper .swiper-button-next,
.swiper .swiper-button-prev,
.map__content-card,
.map__content-card-list,
.section__accordion,
.section__accordion-item-top,
#hero .section__bottom-wrapper {
    display: flex;
}

.btn,
.rail__item img {
    display: block;
}

#timeline .section__cards,
.gtc-4 {
    display: grid;
}

.swiper .swiper-button-next:after,
.swiper .swiper-button-prev:after {
    display: none;
}

section .container,
.section__cards-item,
.section__top-wrapper,
.section__cards-item-content,
.fd-c,
.footer__links,
footer .container,
.swiper-slide__text,
.map__content-card,
.map__content-card-list,
.section__accordion,
#hero .section__bottom-wrapper {
    flex-direction: column;
}

section .container,
.menu .container,
.logo,
.menu__right,
.menu__social-links,
.section__top-wrapper,
.section__banner,
.section__banner,
.footer__social,
.footer__social-link,
.swiper-slide__text,
.swiper .swiper-button-next,
.swiper .swiper-button-prev,
.section__accordion-item-top {
    align-items: center;
}

#hero .container,
#hero .section__top-wrapper,
.footer__top {
    align-items: flex-start;
}

.section__accordion-item-top svg,
.logo .logo__text,
.logo svg {
    flex-shrink: 0;
}

section .container,
footer .container {
    gap: 2.25rem;
}

.menu .container,
.logo,
.menu__right,
.section__cards,
.section__banner,
.section__banner,
.footer__top,
.map__content-card,
.section__accordion,
.section__accordion-item-top {
    gap: 1.25rem;
}

.menu__social-links,
.section__cards-item,
.section__top-wrapper {
    gap: 1rem;
}

.section__cards-item-content,
.footer__links,
.footer__social,
.swiper-slide__text,
.map__content-card-list,
#hero .section__bottom-wrapper {
    gap: 0.75rem;
}

#timeline .section__cards {
    gap: 2.5rem;
}

#hero .container {
    gap: 7.375rem;
}

h1.title {
    font-size: 3.25rem;
}

h2.title,
#timeline .section__cards-item-icon {
    font-size: 2rem;
}

h3,
.logo__text,
.section__accordion-item-top {
    font-size: 1.25rem;
}

.section__cards-item-descr,
h4,
.btn,
.swiper-slide__text p,
.map__list-item,
.section__accordion-item-bottom p {
    font-size: 1rem;
}

.descr {
    font-size: 1.125rem;
}

.menu__descr,
.sub,
.footer__links-item a,
.footer__bottom-descr {
    font-size: 0.875rem;
}

h1.title,
h2.title,
h3,
.menu__descr,
#timeline .section__cards-item-icon {
    line-height: 1.2;
}

.section__cards-item-descr,
.btn,
.swiper-slide__text p,
.map__list-item,
.section__accordion-item-top,
.section__accordion-item-bottom p {
    line-height: 1.25;
}

h4 {
    line-height: 1.25rem;
}

.descr,
.sub,
.footer__links-item a,
.footer__bottom-descr {
    line-height: 1.3;
}

h4,
.descr,
.btn,
.sub,
.footer__links-item a,
.footer__bottom-descr,
.swiper-slide__text p,
.map__list-item,
.section__accordion-item-bottom p {
    font-weight: 400;
}

.section__accordion-item-top {
    font-weight: 500;
}

h1.title,
h2.title,
h3,
.logo__text,
#timeline .section__cards-item-icon {
    font-weight: 700;
}

h1.title span,
#how .section__cards-item:nth-child(even) .section__cards-item-title,
.section__banner .section__banner-descr,
.section__banner .section__banner-descr,
#footer .footer__links-item a,
.swiper-slide__text {
    color: var(--color-white);
}

.section__cards-item-descr {
    color: var(--color-black-60);
}

.section__accordion-item-top,
.logo__text {
    color: var(--color-black) !important;
}

footer .logo__text,
.btn,
footer .logo__text {
    color: var(--color-white) !important;
}

#hero h1.title,
#hero .descr {
    color: #ffffff;
}

.sub {
    color: var(--color-gray-1);
}

#how .section__cards-item:nth-child(even) .section__cards-item-descr {
    color: var(--color-white-60);
}

.section__cards-item-descr a {
    color: var(--color-red) !important;
}

#footer .footer__links-item.footer__links-item-gray a,
.footer__bottom-descr {
    color: var(--color-gray-3);
}

#timeline .section__cards-item-icon {
    color: var(--color-red);
}

.menu .container,
.footer__top,
.section__accordion-item-top {
    justify-content: space-between;
}

.footer__social-link,
.swiper .swiper-button-next,
.swiper .swiper-button-prev {
    justify-content: center;
}

#hero .descr,
.section__accordion-item-top {
    text-align: left;
}

.menu__descr {
    text-align: right;
}

.btn,
.descr,
h2.title,
.swiper-slide__text {
    text-align: center;
}

.menu__descr,
.btn {
    letter-spacing: -0.01rem;
}

.btn,
.swiper .swiper-button-next,
.swiper .swiper-button-prev {
    border-radius: 0.75rem;
}

.section__cards-item,
.section__banner,
.section__banner,
.teachers__slider .swiper-slide,
.map__content,
.map__content-card,
.section__accordion-item {
    border-radius: 1.25rem;
}

.footer__social-link {
    border-radius: 50%;
}

.btn,
.map__content iframe,
.section__accordion-item-top {
    border: none;
}

.btn,
.section__accordion-item-top {
    cursor: pointer;
}

#program .section__bottom-wrapper,
.section__cards,
.section__cards-item,
.section__top-wrapper,
.swiper,
#timeline .section__cards-item,
.rail,
nav.menu,
.teachers__slider img,
.rail__item img,
.rail__item:before,
.rail__item:after,
.map__content,
.map__content iframe,
.section__accordion-item-top {
    width: 100%;
}

.footer__social-link,
.swiper .swiper-button-next,
.swiper .swiper-button-prev {
    width: 2.75rem;
}

.swiper .swiper-button-next svg,
.swiper .swiper-button-prev svg {
    width: unset;
}

.rail__item {
    width: 2.875rem;
}

.map__content-card {
    width: 18.0625rem;
}

.map__content-card-list::-webkit-scrollbar {
    width: 4px;
}

.gtc-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gtc-4 {
    grid-auto-rows: 1fr;
}

.grs-2 {
    grid-row: span 2;
}

#timeline .section__cards {
    grid-template-columns: repeat(2, 1fr);
}

header {
    height: 4.375rem;
}

.footer__social-link,
.swiper .swiper-button-next,
.swiper .swiper-button-prev {
    height: 2.75rem;
}

.teachers__slider img,
.rail__item,
.map__content-card,
.map__content-card-list {
    height: 100%;
}

.swiper .swiper-button-next svg,
.swiper .swiper-button-prev svg {
    height: unset;
}

.rail__item:before,
.rail__item:after {
    height: 4rem;
}

.map__content iframe {
    height: 30rem;
}

nav.menu {
    position: fixed;
}

#program .section__bottom-wrapper,
.teachers__slider .swiper-slide,
.rail,
.map__content,
#hero {
    position: relative;
}

#program .section__bottom-wrapper-img,
.swiper-slide__text,
.rail__item,
.rail__item:before,
.rail__item:after,
.map__content-card,
#hero:before {
    position: absolute;
}

.map__content-card {
    z-index: 1;
}

.rail__item:before,
.rail__item:after {
    z-index: 2;
}

nav.menu {
    z-index: 10000;
}

#hero:before {
    z-index: -2;
}

nav.menu,
.swiper-slide__text,
.rail__item:before,
.rail__item:after,
.map__content-card {
    left: 0;
}

.swiper .swiper-button-prev {
    left: 1.25rem;
}

.rail__item {
    left: 50%;
}

nav.menu,
.rail__item,
.rail__item:before,
.map__content-card {
    top: 0;
}

.teachers__slider img {
    -o-object-fit: cover;
}

.teachers__slider img {
    object-fit: cover;
}

.teachers__slider img {
    -o-object-position: center;
}

.teachers__slider img {
    object-position: center;
}

.teachers__slider .swiper-slide,
.rail__item,
.map__content,
.section__accordion-item-bottom {
    overflow: hidden;
}

.teachers__slider .swiper-slide {
    max-height: 28.75rem;
}

#program .section__bottom-wrapper-img,
.swiper-slide__text,
.rail__item:after {
    bottom: 0;
}

#program .section__bottom-wrapper-img {
    right: -4rem;
}

.swiper-slide__text {
    right: 0;
}

.swiper .swiper-button-next {
    right: 1.25rem;
}

#timeline .section__cards-item:nth-child(even) {
    margin-left: auto;
}

.rail__item {
    transform: translateX(-50%);
}

.section__accordion-item[data-open="true"] svg {
    transform: rotate(-45deg);
}

.rail__item:before,
.rail__item:after,
#hero:before {
    content: '';
}

.map__content-card {
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.16);
}

.map__content-card-list {
    overflow-y: auto;
}

.map__content-card-list {
    scrollbar-width: thin;
}

.map__content-card-list {
    scrollbar-color: var(--color-red) var(--color-white);
}

.map__content-card-list {
    -ms-scroll-snap-type: y mandatory;
}

.map__content-card-list {
    scroll-snap-type: y mandatory;
}

.map__list-item {
    scroll-snap-align: start;
}

.section__accordion-item-bottom {
    transition: max-height 0.3s ease;
}

.section__accordion-item-top svg {
    transition: transform 0.3s ease;
}

#hero .descr {
    margin-bottom: 1.25rem;
}

#hero .section__bottom-wrapper {
    margin-bottom: -5.125rem;
}

#hero {
    isolation: isolate;
}

#hero:before {
    inset: 0;
}

#hero:before {
    pointer-events: none;
}

#how {
    padding-top: 8.125rem;
}

@media screen and (max-width: 960px) {
    .menu__descr {
        display: none;
    }

    h1.title {
        font-size: 2.75rem;
    }

    #hero h1.title {
        max-width: 560px;
    }

    #hero .section__cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .section__cards.gtc-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .section__cards-item.grs-2 {
        grid-row: unset;
        grid-column: span 2;
    }

    #program {
        overflow: hidden;
    }
}

@media screen and (max-width: 768px) {
    .menu__btn span {
        display: none;
    }

    #hero h1.title {
        max-width: unset;
        padding-right: 30%;
    }

    #hero .container {
        gap: 5rem;
    }

    #hero {
        padding: 5rem 0 0;
    }

    section {
        padding: 2.5rem 0;
    }

    #timeline .section__cards {
        gap: 2.5rem 4rem;
    }

    .map__content iframe {
        height: 25rem;
    }

    .footer__top {
        flex-wrap: wrap;
    }

    #footer .logo {
        width: 100%;
    }
}

@media screen and (max-width: 640px) {
    #hero .container {
        gap: 3rem;
    }

    #hero {
        padding: 3rem 0 0;
        background-position: right 46% center;
    }

    h1.title {
        font-size: 2.5rem;
    }

    .section__cards {
        flex-direction: column;
    }

    .section__cards.gtc-4 {
        grid-template-columns: 1fr 1fr;
    }

    .section__cards-item.grs-2 {
        grid-row: 2;
    }

    #timeline .section__cards {
        display: flex !important;
        flex-direction: column;
        padding-right: 4rem !important;
        gap: 1.25rem;
    }

    #timeline .section__cards-item:nth-child(even) {
        margin: 0;
    }

    #timeline .section__cards-item {
        max-width: unset;
    }

    .rail__item {
        transform: unset;
        right: 0;
        left: unset;
    }

    .map__content-card {
        position: unset;
        box-shadow: unset;
        width: unset;
        height: 20rem;
    }

    .map__content iframe {
        height: 20rem;
        border-radius: 1.25rem;
    }

    .map__content {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .menu__social-links {
        display: none;
    }

    .logo .logo__text {
        font-size: 1rem;
    }

    .logo {
        gap: 1rem;
    }

    #program .section__bottom-wrapper-img {
        display: none;
    }

    #program .section__cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    #program .section__cards-item:last-child {
        grid-column: span 2;
    }
}

@media screen and (max-width: 480px) {
    #hero .section__cards {
        display: flex;
        flex-direction: row;
        overflow-y: auto;
        width: 100%;
        scroll-snap-type: x mandatory;
        scroll-padding: 1rem;
        scrollbar-width: none;
    }

    #hero .section__cards-item {
        flex: 0 0 calc(100% - 1.25rem);
        scroll-snap-align: start;
    }

    #hero .section__bottom-wrapper {
        width: 100%;
    }

    #hero .container {
        padding: 0;
    }

    #hero .section__top-wrapper,
    #hero .section__bottom-wrapper .descr,
    #hero .section__bottom-wrapper .section__cards {
        padding: 0 1rem !important;
    }

    #hero .section__cards::-webkit-scrollbar {
        display: none;
    }

    #hero h1.title {
        padding: 0;
    }

    #hero .sub {
        padding: 0 1.25rem;
    }

    #program .section__cards {
        display: flex;
    }

    .section__cards.gtc-4 {
        display: flex;
    }

    section .container {
        gap: 2rem;
    }

    .section__accordion-item-top {
        font-size: 1.125rem;
    }

    .container {
        padding: 0 1rem;
    }

    .menu .container {
        padding-left: 0;
    }
    
    .logo .logo__text {
        width: 120px;
    }
}