@import url('_variables.css');

.container {
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.section {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.section__title {
    font-size: var(--font-size-h2);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

.button {
    display: inline-block;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-md);
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    -webkit-transition: background-color 0.3s ease, color 0.3s ease;
    -moz-transition: background-color 0.3s ease, color 0.3s ease;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button--primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.button--primary:hover {
    background-color: darken(var(--color-primary), 10%);
    background-color: color-mix(in srgb, var(--color-primary) 90%, black);
}

.button--secondary {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
}

.button--secondary:hover {
    background-color: darken(var(--color-secondary), 10%);
    background-color: color-mix(in srgb, var(--color-secondary) 90%, black);
}

/* --- Header --- */
.header {
    background-color: var(--color-yellow);
    padding: var(--spacing-xs) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--spacing-xl);
    z-index: 1000;
    -webkit-box-shadow: var(--shadow-sm);
    -moz-box-shadow: var(--shadow-sm);
    box-shadow: var(--shadow-sm);
}

.header__content {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}

.header__logo {
    color: var(--color-text-light);
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.header__nav {
    display: none;
}

.header__menu {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: var(--spacing-md);
}

.header__menu-link {
    color: var(--color-text-light);
    padding: var(--spacing-xs) 0;
    -webkit-transition: color 0.3s ease;
    -moz-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

.header__menu-link:hover {
    color: var(--color-primary);
}

.header__burger-button {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.header__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-dark);
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.header__burger-button.is-active .header__burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger-button.is-active .header__burger-line:nth-child(1) {
    -webkit-transform: translateY(8px) rotate(45deg);
    -moz-transform: translateY(8px) rotate(45deg);
    -ms-transform: translateY(8px) rotate(45deg);
    transform: translateY(8px) rotate(45deg);
}

.header__burger-button.is-active .header__burger-line:nth-child(3) {
    -webkit-transform: translateY(-8px) rotate(-45deg);
    -moz-transform: translateY(-8px) rotate(-45deg);
    -ms-transform: translateY(-8px) rotate(-45deg);
    transform: translateY(-8px) rotate(-45deg);
}

.header__col.header__col--right {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;

    gap: .5rem;
}

.header__auth-link--gotoapp {
    background-color: var(--color-secondary);
    color: var(--color-white);
    width: 8rem;
    height: 2rem;
    cursor: pointer;

    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;

    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;

    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;

    border-radius: .5rem;

    transition: transform 0.3s ease;

}

.header__auth-link--gotoapp:hover {

    transform: scale(1.1)
}

.header__auth-link--register.button.button--primary {
    color: var(--color-text-dark);
    cursor: pointer;

    transition: transform 0.3s ease;

}

.header__auth-link--register.button.button--primary:hover {
    transform: scale(1.1)
}


@media (min-width: 320px) and (max-width: 767px) {
    .header__auth-link--gotoapp {
        width: 7rem;
        font-size: 0.8rem;
    }

    .header__logo img {
        max-width: 80%;
    }
}


/* --- Styles for language switcher  --- */


.lang-btn {
    cursor: pointer;
}

.lang-btn:hover {
    transform: translateY(1px);
    box-shadow: 0 0 0 #bbb;
}


.lang-switcher[data-active-lang="ua"] .lang-btn[data-lang="en"] {
    display: inline-block;
}

.lang-switcher[data-active-lang="ua"] .lang-btn[data-lang="ua"] {
    display: none;
}

.lang-switcher[data-active-lang="en"] .lang-btn[data-lang="ua"] {
    display: inline-block;
}

.lang-switcher[data-active-lang="en"] .lang-btn[data-lang="en"] {
    display: none;
}


/* --- Styles for mobile devices (up to 992px) --- */

/* Container for hidden menu items */
.header__menu-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    position: fixed;
    top: var(--spacing-xl);
    right: -100%;
    width: 60%;
    height: calc(100vh - var(--spacing-xl));
    background-color: var(--color-yellow);
    padding: var(--spacing-lg);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.header__menu-wrapper.is-open {
    right: 0;
}

.header__burger-button {
    display: flex;
    z-index: 1001;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.menu-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.blur-area {
    transition: filter 0.3s ease-in-out;
}

.body.menu-open .blur-area {
    filter: blur(2px);
}

@media (min-width: 769px) {

    .header__burger-button {
        display: none;
    }

    .header__menu-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background-color: transparent;
        transition: none;
    }


    .header__col.header__col--right {
        gap: 2rem;
    }

    .header__auth-link.header__auth-link--gotoapp {
        width: 13rem;
        height: 2rem;
    }
}


/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    text-align: center;
    min-height: 45vh;
    display: flex;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-pink);
    position: relative;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 10;
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    text-transform: uppercase;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
    color: var(--color-text-dark-2, #212121);
    transform: translateY(2rem);
}

.hero .highlight-dark-blue,
.hero .highlight-white {
    position: relative;
    white-space: nowrap;
}

.hero .highlight-dark-blue {
    color: var(--color-sea, #00BCD4);
}

.hero .highlight-dark-blue::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: var(--color-dark-blue, #1A237E);
    transform: rotate(-2deg);
    inset: .1em -0.5rem;
}

.hero .highlight-white::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: #ffffff;
    transform: rotate(-1deg);
    inset: 0 -0.2em;
}


.highlight-pink {
    white-space: normal;
}



.yellow-warm {
    position: absolute;
    transform: translate(10rem, 18rem);
}

.big_rhombus-one {
    position: absolute;
    transform: translate(10rem, -8rem);
}

.big_rhombus-two {
    position: absolute;
    transform: translate(15rem, 18rem);
}

.blue-semicircle {
    position: absolute;
    transform: translate(10rem, 17rem);
}

.orange-semicircle {
    position: absolute;
    transform: translate(15rem, 0rem);
}

.small-rhombus-blue-one {
    position: absolute;
    transform: translate(9rem, -7rem);
}

.small-rhombus-blue-two {
    position: absolute;
    transform: translate(20rem, 12rem);
}

.small-rhombus-ocean {
    position: absolute;
    transform: translate(21rem, -4rem);
}

.snail {
    position: absolute;
    transform: translate(1rem, -7rem);
    z-index: -1;
}


@media (min-width: 320px) and (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .big_rhombus-one {
        display: none;
    }

    .small-rhombus-ocean {
        transform: translate(0rem, -4rem);
    }

    .blue-semicircle {
        transform: translate(3rem, 8rem);
    }

    .big_rhombus-two,
    .yellow-warm {
        display: none;
    }

    .snail {
        transform: translate(-1rem, -16rem);
    }

    .slider-section {
        margin-top: -20rem;
        /* Поднимаем слайдер на мобильных */
    }
}


@media (min-width: 768px) and (max-width: 1025px) {
    .hero {
        min-height: 90vh;
        position: relative;
        z-index: 10;
    }

    .hero .container {
        flex: none !important;
    }

    .hero__title {
        transform: translateY(0rem);
        font-size: clamp(2rem, 6vw, 3.5rem);
    }

    .small-rhombus-blue-one {
        transform: translate(1rem, -10rem);
    }

    .big_rhombus-one {
        transform: translate(3rem, -11rem);
    }

    .yellow-warm {
        transform: translate(20rem, 9rem);
    }

    .blue-semicircle {
        transform: translate(5rem, 9rem);
    }

    .big_rhombus-two {
        display: none;
    }

    .small-rhombus-blue-two {
        display: none;
    }

    .snail {
        display: none;
    }

    .slider-section {
        margin-top: -20rem;
        /* Поднимаем слайдер на планшетах */
    }
}


@media (min-width: 1024px) {
    .hero {
        min-height: 40vh;
        position: relative;
        z-index: 999;
    }

    .yellow-warm {
        position: absolute;
        transform: translate(27rem, 18rem);
    }

    .big_rhombus-one {
        position: absolute;
        transform: translate(10rem, -8rem);
    }

    .big_rhombus-two {
        position: absolute;
        transform: translate(55rem, 18rem);
    }

    .blue-semicircle {
        position: absolute;
        transform: translate(10rem, 17rem);
    }

    .orange-semicircle {
        position: absolute;
        transform: translate(26rem, 0rem);
    }

    .small-rhombus-blue-one {
        position: absolute;
        transform: translate(9rem, -7rem);
    }

    .small-rhombus-blue-two {
        position: absolute;
        transform: translate(69rem, 12rem);
    }

    .small-rhombus-ocean {
        position: absolute;
        transform: translate(21rem, -4rem);
    }

    .snail {
        position: absolute;
        transform: translate(6rem, -7rem);
        z-index: -1;
    }

    .hero__title {
        transform: translateY(8rem);
        z-index: 1000;
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .hero .highlight-dark-blue::before {
        transform: rotate(-1deg);
        inset: .1em -2rem;
        width: 110%;
    }

    .hero .highlight-white::before {
        inset: 0 -0.1em;
    }


    .highlight-pink {
        white-space: nowrap;
    }

    .slider-section {
        margin-top: 0;
        /* Убедимся, что на десктопе нет смещения */
    }
}


@media screen and (min-width: 1024px) and (max-width: 1440px) {
    .big_rhombus-two {
        transform: translate(48rem, 13rem);
    }

    .small-rhombus-blue-two {
        transform: translate(44rem, 12rem);
    }
}


@media (min-width: 1440px) {
    .small-rhombus-blue-two {
        transform: translate(50rem, 12rem);
    }
}

.slider-section {
    position: relative;
    min-height: 100vh;
    z-index: 30;
}

.stack-cards-container {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background-image: url(/img/cubes-slide-bg.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.stack-cards-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 45%;
    z-index: -1;
    background-color: var(--color-pink);
    background-image: url(/img/cubes-slide-bg-second.png);
    background-repeat: no-repeat;
    background-size: auto 100%;
    background-position: left;
    border-radius: 0 0 1rem 1rem;
    background-size: auto 100%;
    background-position: 400% 0;
    transition: background-position 2s ease-out;
}

.stack-cards-container.scrolled::before {
    background-position: left 0;
}

.stack-cards {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.stack-cards__item {
    background-color: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 0.75rem 1.75rem 0 rgba(0, 0, 0, 0.2), 0 0.125rem 0.25rem 0 rgba(0, 0, 0, 0.1);
    color: #1c1e21;
    padding: 2.5rem;
    position: absolute;
    height: 20rem;
    width: 100%;
    max-width: 46.875rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
    will-change: transform;
    transform-origin: center center;
}

.stack-cards__item-content {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stack-cards__item-col-1 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.stack-cards__item-col-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.stack-cards__item-col-2 img {
    width: 15rem;
}

.stack-cards__item:nth-of-type(1) {
    background-color: var(--color-text-dark);
    color: var(--color-white);
}

.stack-cards__item:nth-of-type(2) {
    background-color: var(--color-text-dark-3);
    color: var(--color-white);
}

.stack-cards__item:nth-of-type(3) {
    background-color: var(--color-yellow);
    color: var(--color-text-dark-2);
}

.stack-cards__item:nth-of-type(4) {
    background-color: var(--color-white);
    color: var(--color-text-dark-2);
}

.stack-cards__item:nth-of-type(5) {
    background-color: var(--color-sea);
    color: var(--color-text-dark-2);
}

.card-slider__title {
    margin-top: 0;
    font-weight: 400;
    margin-bottom: 2rem;
}

.card-slider__text {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.5;
    margin: 0;
}

@media (min-width: 320px) and (max-width: 768px) {

    .stack-cards-container {
        background-image: none;

        background-image: url(/img/cubes-slide-bg.png);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center 20rem;
    }

    .stack-cards-container::before {
        display: none;
    }

    .stack-cards__item {
        height: 15rem;
        max-width: 18.875rem;
    }

    .card-slider__title {
        font-size: 1.2rem;
        margin-bottom: 0.4rem !important;
    }

    .card-slider__text {
        font-size: .8rem;
    }

    .stack-cards__item-col-2 img {
        width: 6rem !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .stack-cards-container::before {
        display: none;
    }

    .stack-cards__item {
        height: 19rem;
        max-width: 30.875rem;
    }
}

@media (max-width: 431px) {
    .stack-cards-container::before {}
}

@media (max-width: 1023px) {

    .stack-cards-container::before {}

    .stack-cards__item {
        padding: 1.5rem;
    }

    .stack-cards__item-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        justify-content: center;
    }

    .stack-cards__item-col-1,
    .stack-cards__item-col-2 {
        width: 100%;
        align-items: center;
    }

    .stack-cards__item-col-2 img {
        width: 10rem;
        height: auto;
    }

    .card-slider__title {
        margin-bottom: 0.75rem;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about {
    padding: 0 0 4rem;
    position: relative;
    height: 95vh;
}

.about .container {
    transform: translateY(-8rem);
}

.about-title {
    position: relative;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--color-text-dark-4);
    width: 100%;
    margin: 0 auto 4rem;
    text-shadow: 0.3rem 0.3rem 0.5rem rgba(0, 0, 0, 0.2);
}

.title-line {
    display: flex;
    align-items: center;
    gap: 0.25em;
}

.highlight-blue {
    position: relative;
    white-space: nowrap;
}

.highlight-blue::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: var(--color-text-blue);
    transform: rotate(-2deg);
    inset: -0.125rem -0.625rem;
}

.diamond-icon {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.semicircle-icon {
    position: absolute;
    width: 4rem;
    bottom: -1rem;
    right: -0.5rem;
}

.about__container-box {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-col__wrapper {
    width: 100%;
    opacity: 0;
    transform: translateY(1.875rem);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-col__wrapper.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.about-col__wrapper:nth-of-type(2).is-visible {
    transition-delay: 0.2s;
}

.about-col__wrapper:nth-of-type(3).is-visible {
    transition-delay: 0.4s;
}

.about-col__wrapper:nth-of-type(4).is-visible {
    transition-delay: 0.6s;
}

.about-col__wrapper .block {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.about-col__wrapper .block.mark img {
    position: relative;
    top: -1.5rem;
}

.about__col-name {
    font-size: var(--font-size-h3);
}

.about__col-desc {
    padding-left: 1.3rem;
}

.about__row--two,
.about__row--three {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

.--block-1 span {
    position: relative;
    padding: 0 0.2rem;
}

.--block-1-color::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 170%;
    background: linear-gradient(to left, #FCD6FF 100%, transparent 61%);
    transform: rotate(-3deg);
    z-index: -1;
}

.--block-2 {
    position: relative;
}

.--block-2-color::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 105%;
    background: linear-gradient(to left, #FFF068 60%, transparent 61%);
    transform: rotate(-1deg);
    z-index: -1;
}

.--block-3 span {
    position: relative;
    padding: 0 0.2rem;
}

.--block-3-color::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 110%;
    background: linear-gradient(to left, #FF8D4C 100%, transparent 61%);
    transform: rotate(-2deg);
    z-index: -1;
}

.--block-4 span {
    position: relative;
    padding: 0 0.2rem;
}

.--block-4-color::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 110%;
    background: linear-gradient(to left, #61DFFF 100%, transparent 61%);
    transform: rotate(-2deg);
    z-index: -1;
}


@media (min-width: 768px) {
    .about {
        /* height: 50vh; */
    }

    .about-title {
        width: 80%;
        margin-left: 2rem;
        margin-bottom: 5rem;
    }

    .semicircle-icon {
        width: 5rem;
        bottom: -1.25rem;
        right: -0.938rem;
    }

    .about__container-box {
        gap: 4rem;
    }

    .about__row--two {
        flex-direction: row;
        gap: 2rem;
        align-items: flex-start;
        margin-bottom: 2rem;
    }

    .about-col__wrapper {
        flex: 1;
        min-width: 0;
    }

    .about__row--three {
        flex-direction: row;
        justify-content: flex-end;
        padding-left: 10%;
        gap: 3rem;
    }
}


@media (min-width: 1024px) {
    .about {
        padding: 6rem 0 4rem;
        min-height: 50rem;
        display: flex;
        align-items: center;
        height: 95vh;
    }

    .about .container {
        transform: translateY(-13rem);
    }

    .about-title {
        width: 55%;
        margin: 6rem 0 6rem 2rem;
        text-shadow: .5rem .5rem 0.938rem rgba(0, 0, 0, 0.3);
    }

    .about__row--two {
        gap: 3rem;
        margin-bottom: 5rem;
    }

    .about-col__wrapper {
        width: 40%;
        flex: none;
    }

    .about__row--three {
        gap: 1rem;
    }
}


@media (min-width: 767px) and (max-width: 1025px) {
    .about .container {
        transform: translateY(0rem);
    }

    .about {
        height: 120vh;
    }
}


@media (min-width: 320px) and (max-width: 768px) {
    .about {
        /* height: 110vh; */
        height: 125vh;
    }

    .about .container {
        transform: translateY(0rem);
        border-radius: 0 0 .5rem .5rem;
    }

    .about-title {
        font-size: 2rem;

    }
}

@media (max-width: 400px) {
    .about {
        height: 130vh;
    }
}

/* about */



/* ==========================================================================
   Map Section
   ========================================================================== */

.map {
    position: relative;
    overflow: hidden;
    perspective: 50rem;
}

.map-title {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--color-text-dark-4);
    text-shadow: .3rem .3rem .6rem rgba(0, 0, 0, 0.2);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem 3rem 1rem;
    text-align: center;
}

.title-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3em;
}

.highlight-cyan {
    position: relative;
    white-space: nowrap;
}

.highlight-cyan::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: var(--color-text-blue);
    transform: rotate(-2deg);
    inset: -0.01em -0.4em;
}

.diamond-icon {
    width: clamp(1.5rem, 4vw, 2rem);
    height: clamp(1.5rem, 4vw, 2rem);
    transform: translateY(-0.1em);
    flex-shrink: 0;
}

.map__content {
    transition: transform 0.3s linear;
    transform-origin: center center;
}

.map__image {
    display: block;
    width: 95%;
    height: auto;
    margin: auto;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transform-style: preserve-3d;
}

.map__pins {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    height: 100%;
    pointer-events: none;
}

.map__pin {
    position: absolute;
    width: 2.5rem;
    height: 3.8rem;
    cursor: pointer;
    opacity: 0;
    z-index: 1;
    transform: translate(-50%, -50%) scale(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    pointer-events: auto;
}

.map__pin-inner {
    width: 100%;
    height: 100%;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

.map__pin:hover .map__pin-inner {
    transform: scale(1.2);
}

.map__pin img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.map-text__block {
    text-align: center;
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 0.8s ease-out 1.2s, transform 0.8s ease-out 1.2s;
}

.map-text__block h3 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

#map.is-visible .map__image {
    opacity: 1;
}

#map.is-visible .map__pin {
    opacity: 1;
    transform: translate(-50%, -50%) scale(var(--scale-factor));
    animation: pulse 2.5s ease-in-out infinite;
}

#map.is-visible .map-text__block {
    opacity: 1;
    transform: translateY(0);
}

#map.is-visible .map__pin:nth-child(1) {
    transition-delay: 0.5s;
}

#map.is-visible .map__pin:nth-child(2) {
    transition-delay: 0.6s;
    animation-delay: 0.2s;
}

#map.is-visible .map__pin:nth-child(3) {
    transition-delay: 0.7s;
}

#map.is-visible .map__pin:nth-child(4) {
    transition-delay: 0.8s;
    animation-delay: 0.4s;
}

#map.is-visible .map__pin:nth-child(5) {
    transition-delay: 0.9s;
}

#map.is-visible .map__pin:nth-child(6) {
    transition-delay: 1.0s;
}

#map.is-visible .map__pin:nth-child(7) {
    transition-delay: 1.1s;
}

#map.is-visible .map__pin:nth-child(8) {
    transition-delay: 1.2s;
}

#map.is-visible .map__pin:nth-child(9) {
    transition-delay: 1.3s;
}

#map.is-visible .map__pin:nth-child(10) {
    transition-delay: 1.4s;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(var(--scale-factor));
    }

    50% {
        transform: translate(-50%, -50%) scale(calc(var(--scale-factor) * 1.1));
    }

    100% {
        transform: translate(-50%, -50%) scale(var(--scale-factor));
    }
}

@media (min-width: 768px) {
    .map {
        --scale-factor: 0.9;
    }

    .map-title {
        padding-bottom: 4rem;
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .title-line {
        justify-content: flex-start;
    }

    .map__image,
    .map__pins {
        width: 85%;
    }
}


@media (max-width: 768px) {

    #map{
        display: none;
    }
}

@media (min-width: 1024px) {
    .map {
        perspective: 62.5rem;
        --scale-factor: 1;
    }

    .map-title {
        padding: 0 0 6rem 0;
        text-shadow: .5rem .5rem 0.938rem rgba(0, 0, 0, 0.3);
    }

    .map__image,
    .map__pins {
        width: 80%;
    }

    .map-text__block {
        transition: opacity 0.8s ease-out 1.8s, transform 0.8s ease-out 1.8s;
    }
}


@media (min-width: 320px) and (max-width: 767px) {
    .map__pin-inner {
        width: 50%;
        height: 50%;
    }

    .map__pin--orange {
        top: 15%;
        left: 11%;
    }


}


/* map section */


/* ==========================================================================
   Info Block Section
   ========================================================================== */

.info-block__right h3 {
    font-size: clamp(1.6rem, 5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-dark-4);
    margin: 0 0 2rem 0;
    width: 100%;
}

.highlight-yellow {
    color: #673AB7;
    position: relative;
    white-space: nowrap;
}

.highlight-yellow::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: #FFF59D;
    transform: rotate(-2deg);
    inset: -0.1em -0.3em;
}

.infoblock-text__block.infoblock-text__row--two {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1rem;
}

.infoblock-text__row--two.col-2 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.infoblock-text__row--three {
    margin-top: 3rem;
}

.infoblock-text__row--three.col {
    width: 100%;
}

.infoblock-desc {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.figure {
    margin-bottom: 1rem;
}

.infoblock-point {
    margin-top: .7rem;
}

.infoblock-text__row--two.col-2 {
    display: none;
}

.infoblock-text__row--three.col {
    width: 70%;
    transform: translateX(8rem);
}


@media (min-width: 768px) {
    .info-block__right h3 {
        width: 55%;
        margin: 0 0 0 40%;
    }

    .infoblock-text__block.infoblock-text__row--two {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 1rem;
        gap: 2rem;
    }

    .infoblock-text__row--two.col-2 {
        flex-direction: row;
        align-items: flex-end;
        margin-right: 5rem;
        gap: 2rem;
    }

    .infoblock-text__row--three.col {
        width: 50%;
        transform: translateX(10rem);
    }

    .infoblock-text__row--two.col-2 {
        display: block;
    }

}

@media (min-width: 1024px) {
    .infoblock-text__row--three.col {
        width: 50%;
        transform: translateX(20rem);
    }
}




/* info block */



/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-title {
    position: relative;
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
    color: var(--color-text-dark-4);
    width: 100%;
    margin: 0 auto 5rem;
    text-align: center;
    /* text-shadow: .3rem .3rem .6rem rgba(0, 0, 0, 0.2); */
}

.contact-title .title-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
}

.contact-title .highlight-blue {
    position: relative;
    white-space: nowrap;
}

.contact-title .highlight-blue::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: var(--color-text-blue);
    transform: rotate(-2deg);
    inset: -0.1em -0.5em;
}

.contact-title .diamond-icon {
    width: clamp(1rem, 3vw, 1.2rem);
    height: clamp(1rem, 3vw, 1.2rem);
    flex-shrink: 0;
}

.contact-title .semicircle-icon {
    position: absolute;
    pointer-events: none;
    width: 4rem;
    bottom: -2.5rem;
    right: 50%;
    transform: translateX(50%);
}

.contact__auth-link--joinus {
    background-color: var(--color-secondary);
    height: 3rem;
    width: 100%;
    max-width: 15rem;
    border-radius: .5rem;
    color: var(--color-white);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    margin-left: auto;
    margin-right: auto;
}

.contact__auth-link--joinus:hover {
    transform: scale(1.05);
}

.contact__row.about__row--one p {
    margin: 3rem 0 2rem 0;
    text-align: center;
}

@media (min-width: 768px) {
    .contact-title {
        text-align: left;
        margin: 0 0 2rem 0;
        width: fit-content;
    }

    .contact-title .title-line {
        justify-content: flex-start;
    }

    .contact-title .semicircle-icon {
        right: -1rem;
        transform: none;
    }

    .contact__auth-link--joinus {
        margin-left: 0;
        margin-right: 0;
    }

    .contact__row.about__row--one p {
        text-align: left;
    }
}


@media (min-width: 1024px) {
    .contact-title {
        text-shadow: none;
    }

    .contact-title .highlight-blue::before {
        transform: rotate(-1deg);
        inset: -0.01em -1rem;
        width: 195%;
    }

    .contact-title .diamond-icon {
        width: 1.2rem;
        height: 1.2rem;
    }

    .contact-title .semicircle-icon {
        width: 5rem;
        bottom: -3rem;
        right: 0;
    }

    .contact__auth-link--joinus {
        height: 2.5rem;
    }

    .contact__auth-link--joinus:hover {
        transform: scale(1.1);
    }

    .contact__row.about__row--one p {
        margin: 5rem 0 2rem 0;
    }
}


/* contact section */


/* ==========================================================================
   Footer Section
   ========================================================================== */

.footer {
    background-image: url(/img/footer-bg.svg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 6rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer__socials {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translate(6rem, 2rem);
    width: 75%;
}

.footer__socials-block__icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}


@media (min-width: 768px) {
    .footer {
        justify-content: flex-end;
        padding: 0 4rem;
        min-height: 18rem;
    }

    .footer__socials {
        /* transform: translate(15rem, -5rem); */
    }
}


@media (min-width: 1023px) {
    .footer {
        padding: 0 8rem;
        min-height: 20rem;
    }

    .footer__socials {
        flex-direction: column;
        gap: .5rem;
        width: 10rem;
        height: 10rem;
        transform: translate(35rem, -5rem);
    }

    .footer__socials-block__icons {
        gap: .7rem;
    }
}

@media (min-width: 1440px) {
    .footer__socials {
        transform: translate(49rem, -5rem);
    }
}


@media (min-width: 320px) and (max-width: 767px) {
    .footer__socials {
        gap: .5rem;
        transform: translate(3rem, 2rem);
    }

    .footer__copy {
        width: 10rem;
    }
}


/* footer */






.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0s 0.4s;
    z-index: 1000;
}

.modal--open {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s ease, visibility 0s;
}

.modal__content {
    background-color: #5EE3F1;
    padding: 0 40px;
    border-radius: .2rem;
    width: 100%;
    max-width: 45rem;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.modal--open .modal__content {
    transform: scale(1);
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 12px;

    padding-top: 30px;
    padding-bottom: 30px;
}

.register-form__title {
    font-size: var(--font-size-h3-22);
    font-weight: normal;
    color: var(--color-text-dark-2);
    text-align: center;
    margin: 4rem 0 2rem 0;
    line-height: 1.3;
}


.register-form__title-part--pink::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: var(--color-pink);
    transform: rotate(-2deg);
    inset: .1em -0.5rem;
    height: 4rem;
    width: 29rem;
    top: 5rem;
    left: 2rem;
}

.register-form__title-part--yellow::before {
    content: "";
    position: absolute;
    z-index: -1;
    background-color: var(--color-yellow);
    transform: rotate(-2deg);
    inset: .1em -0.5rem;
    height: 4rem;
    width: 17rem;
    top: 5rem;
    left: 24rem;
}


.modal-icons {
    position: relative;
    z-index: -1;
}

.modal-orange-warm {
    position: absolute;
    transform: translate(27rem, -1rem);
    width: 20%;
}

.modal-blue-semicircle {
    position: absolute;
    transform: translate(25rem, 47rem);
    width: 15%;
}

.modal-orange-semicircle {
    position: absolute;
    transform: translate(-4rem, 35rem);
    width: 10%;
}

.modal-blue-blob {
    position: absolute;
    transform: translate(25rem, 15.5rem);
    width: 10%;
}


.modal-snail-one {
    position: absolute;
    transform: translate(-2rem, 2rem);
    width: 10%;
}

.modal-snail-two {
    position: absolute;
    transform: translate(27rem, 22rem);
    width: 35%;
}



.register-form__group {
    display: flex;
    flex-direction: column;
}

.register-form__label {
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 6px;
    font-size: 1rem;
}

.register-form__input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: .3rem;
    background-color: #B0EFFF;
    font-size: 0.95rem;
    color: #111827;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
}

.register-form__input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.6);
}

.register-form__input::placeholder {
    color: #6B7280;
    opacity: 1;
}

.register-form__input--textarea {
    min-height: 80px;
    resize: vertical;
}

.register-form__input--error {
    border: 2px solid #DC2626;
    background-color: #FEE2E2;
}

.register-form__error {
    color: #DC2626;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 4px;
    min-height: 1em;
}

.register-form__submit {
    background-color: #8B5CF6;
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.register-form__submit:hover {
    background-color: #7C3AED;
}

.modal__content::-webkit-scrollbar {
    width: 8px;
}

.modal__content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.modal__content::-webkit-scrollbar-thumb {
    background-color: #8B5CF6;
    border-radius: 10px;
    transition: background-color 0.2s ease-in-out;
}

.modal__content::-webkit-scrollbar-thumb:hover {
    background-color: #7C3AED;
}


.register-form__message {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    text-align: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease-in-out, max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}

.register-form__message--success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    opacity: 1;
    max-height: 60px;
    padding: 10px 15px;
}

.register-form__message--error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    opacity: 1;
    max-height: 60px;
    padding: 10px 15px;
}


/* For Firefox */
.modal__content {
    overflow-y: auto;
}

@media (max-width: 768px) {
    .modal__content {
        width: 90%;
        padding: 0 20px;
    }

    .register-form {
        padding-top: 25px;
        padding-bottom: 25px;
    }

    .register-form__title {
        font-size: 1.8rem;
    }

    .register-form__input {
        padding: 10px 12px;
    }
}


@media (min-width: 320px) and (max-width: 767px) {
    .register-form__title-part--pink::before {
        height: 3rem;
        width: 20rem;
    }

    .register-form__title-part--yellow::before {
        height: 3rem;
        width: 14rem;
        top: 8rem;
        left: 5.5rem;
    }

    .modal-orange-warm {
        transform: translate(11rem, -1rem);
    }

    .modal-blue-blob {
        transform: translate(11rem, 15.5rem);
    }

    .modal-snail-two {
        transform: translate(-5rem, 22rem);
    }

    .modal-blue-semicircle {
        transform: translate(17rem, 46rem);
    }
}