/* Reset and base styles  */
* {
	padding: 0px;
	margin: 0px;
	border: none;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* Links */

a, a:link, a:visited  {
    text-decoration: none;
}

a:hover  {
    text-decoration: none;
}

/* Common */

aside, nav, footer, header, section, main {
	display: block;
}

h1, h2, h3, h4, h5, h6, p {
    font-size: inherit;
	font-weight: inherit;
}

ul, ul li {
	list-style: none;
}

img {
	vertical-align: top;
}

address {
  font-style: normal;
}

/* Form */

input, textarea, button, select {
	font-family: inherit;
    font-size: inherit;
    color: inherit;
    background-color: transparent;
}

input::-ms-clear {
	display: none;
}

button, input[type="submit"] {
    display: inline-block;
    box-shadow: none;
    background-color: transparent;
    background: none;
    cursor: pointer;
}

input:focus, input:active,
button:focus, button:active {
    outline: none;
}

button::-moz-focus-inner {
	padding: 0;
	border: 0;
}

label {
	cursor: pointer;
}

legend {
	display: block;
}

section, footer {
    caret-color: transparent;
}

:root {
    --color-fg-default: #18191A;
    --color-fg-soft: #565D66;
    --color-bg: #ffffff;
    --color-bg-main: #EBF0F5;
    --color-bg-active: #E6EDF5;
    --color-stroke: rgba(0, 0, 0, 0.16);
    --color-accent: #18191A;
    --color-accent-hover: #5C5FFF;
    --color-accent-on: #FFFFFF;

    --color-btn-prime-bg: var(--color-accent);
    --color-btn-prime-bg-hover: var(--color-accent-hover);
    --color-btn-prime-on: var(--color-accent-on);
    --color-btn-prime-on-hover: var(--color-bg);
    --color-btn-outline-bg: var(--color-bg);
    --color-btn-outline-bg-hover: var(--color-accent-hover);
    --color-btn-outline-on: var(--color-fg-default);
    --color-btn-outline-on-hover: var(--color-accent-on);
    --color-btn-link-on: var(--color-fg-default);
    --color-btn-link-on-hover: var(--color-accent-hover);


    --title-lg: 60px;
    --title-lg-lh: 72px;

    --title-md: 60px;
    --title-md-lh: 72px;

    --title-sm: 32px;
    --title-sm-lh: 40px;

    --title-block: 24px;
    --title-block-lh: 32px;
    
    --subtitle: 18px;
    --subtitle-lh: 24px;

    --text-lg: 24px;
    --text-lg-lh: 36px;
    
    --text-md: 20px;
    --text-md-lh: 30px;

    --text-sm: 16px;
    --text-sm-lh: 24px;

    --caption: 16px;
    --caption-lh: 16px;


    --border-radius: 0;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --speed-up: 0.3s;
    --speed-down: 0.6s;

    --animate-swipe-right: swipe-right 0.6s cubic-bezier(0.83, 0, 0.17, 1) forwards;
}

/* BUTTON */

.btn-prime {
    display: flex;
    white-space: nowrap;
    gap: 24px;
    width: fit-content;
    height: 80px;
    padding: 0 60px;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    font-weight: 600;
    color: var(--color-btn-prime-on);
    background-color: var(--color-btn-prime-bg);
    transition: var(--speed-down) var(--ease-out);
}

.btn-prime:hover {
    color: var(--color-btn-prime-on-hover);
    background-color: var(--color-btn-prime-bg-hover);
    transition: var(--speed-up) var(--ease-out);
}

.btn-outline {
    display: flex;
    gap: 24px;
    width: fit-content;
    height: 80px;
    padding: 0px 40px;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--color-btn-outline-on);
    stroke: var(--color-btn-outline-on);
    background-color: transparent;
    border: 1px solid var(--color-stroke);
    transition: var(--speed-down) var(--ease-out);
}

.btn-outline:hover {
    color: var(--color-btn-outline-on-hover);
    background-color: var(--color-btn-outline-bg-hover);
    stroke: var(--color-btn-outline-on-hover);
    transition: var(--speed-up) var(--ease-out);
}

.btn-link {
    display: inline-flex;
    flex-shrink: 0;
    white-space: nowrap;
    gap: 8px;
    width: fit-content;
    height: fit-content;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: var(--color-btn-link-on);
    stroke: var(--color-btn-link-on);
    transition: var(--speed-down) var(--ease-out);
}

.btn-link:hover {
    color: var(--color-btn-link-on-hover);
    stroke: var(--color-btn-link-on-hover);
    transition: var(--speed-up) var(--ease-out);
}

.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.nav-link {
    color: var(--color-fg-default);
    font-size: 16px;
    font-weight: 600;
    transition: var(--speed-down) var(--ease-out);
}

.nav-link:hover {
    color: var(--color-accent-hover);
    transition: var(--speed-up) var(--ease-out);
}

body {
    background-color: var(--color-bg);
    color: var(--color-fg-default);
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    box-sizing: border-box;
}

/* CUBE */

.bg__img {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -10;
}

.cube__container {
    width: 400px;
    height: 400px;
    position: relative;
    perspective: 3000px;
}

.cube {
    width: inherit;
    height: inherit;
    transform-style: preserve-3d;
}

.side {
    width: inherit;
    height: inherit;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-fg-default);
    background-color: rgba(255, 255, 255, 0.8);

    font-size: 240px;
    font-weight: 600;

    padding: 80px;
}

.side__img {
    height: 100%;
}

.side__path {
    fill: var(--color-fg-default);
}

.front {
    transform: translateZ(200px);
}

.back {
    transform: rotateY(180deg) translateZ(200px);
}

.right {
    transform: rotateY(90deg) translateZ(200px);
}

.left {
    transform: rotateY(-90deg) translateZ(200px);
}

.top {
    transform: rotateX(90deg) translateZ(200px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(200px);
}



/* HEADER */

.header {
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 100;
    padding: 16px 40px;
    background-color: var(--color-bg);
    transition: var(--speed-up) var(--ease-out);
}

.logo {
    width: 48px;
}

.header__call {
    height: 48px;
}

.header-mob {
    display: none;
}

.label__text {
    font-weight: normal;
    font-size: var(--text-lg);
}

.nav {
    display: flex;
    gap: 60px;
    height: 64px;
    align-items: center;
    flex-direction: row;
    justify-self: center;
}

.menu-mob {
    display: none;
}

.h2 {
    display: flex;
    font-size: var(--title-md);
    line-height: var(--title-md-lh);
    font-weight: 600;
    overflow: hidden;
    justify-content: center;
}


/* CTA */

.cta {
    padding: 120px 40px;
    display: flex;
    flex-direction: column;
}

.cta__content {
    display: flex;
    flex-direction: column;
    gap: 40px; 
    align-items: center;
}

.cta__title, .cta__subtitle {
    padding: o;
    text-align: center;
}

.cta__subtitle {
    width: 600px;
    margin-bottom: 40px;
}

/* FOOTER */

.footer {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 40px;
}

.footer__head {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.footer__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__content-title {
    font-size: var(--title-sm);
    line-height: var(--title-sm-lh);
    font-weight: 600;
}

.footer__content-text {
    width: 600px;
    font-size: var(--text-sm);
    line-height: var(--text-sm-lh);
    color: var(--color-fg-soft);
}

.footer__links {
    display: flex;
    gap: 24px;
    justify-self: end;
}

.footer__caption {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    line-height: var(--text-sm-lh);
    font-weight: 600;
}

.footer__label {
    display: flex;
    justify-content: space-between;
}

.footer__label-p {
    font-size: 240px;
    font-weight: 100;
    color: var(--color-fg-default);
}


/* POP-UP */

.contact-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    background: #111;
    color: white;
    cursor: pointer;
}

.modal-title {
    font-size: var(--title-sm);
    line-height: var(--title-sm-lh);
}

.modal-subtitle {
    font-size: var(--text-md);
    line-height: var(--text-md-lh);
    margin-top: 8px;
    color: var(--color-fg-soft);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 100;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    width: 600px;
    background: var(--color-bg);
    padding: 80px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.contact-links a {
    width: 100%;
}

@media (max-width: 480px) { 

    :root {
    --title-lg: 36px;
    --title-lg-lh: 40px;

    --title-md: 40px;
    --title-md-lh: 40px;

    --title-sm: 24px;
    --title-sm-lh: 32px;

    --title-block: 20px;
    --title-block-lh: 28px;

    --text-lg: 18px;
    --text-lg-lh: 24px;

    --text-md: 16px;
    --text-md-lh: 24px;

    --border-radius: 0px;
    --border-radius-wrap: 32px;
    }

    .btn-prime, .btn-outline {
        width: 100%;
        height: 60px;
    }
    
    .cube__container {
        width: 200px;
        height: 200px;
    }

    .side {
        padding: 40px;
        font-size: 120px;
    }

    .front {
        transform: translateZ(100px);
    }

    .back {
        transform: rotateY(180deg) translateZ(100px);
    }

    .right {
        transform: rotateY(90deg) translateZ(100px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(100px);
    }

    .top {
        transform: rotateX(90deg) translateZ(100px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(100px);
    }

    /* HEADER */

    .header {
        display: none;
    }

    .header-mob {
        padding: 8px 24px;
        display: flex;
        justify-content: space-between;
        width: 100%;
        position: fixed;
        z-index: 100;
        background-color: var(--color-bg);
    } 

    .header__label {
        justify-content: center;
        align-items: center;
        height: 48px;
        display: flex;
        gap: px;
    }

    .label {
        height: 48px;
    }

    .nav {
        width: fit-content;
        height: 48px;
        padding: 0 24px;
        gap: 32px;
    }

    .nav-link {
        font-size: 14px;
    }
    
    .burger {
        display: block;
        position: relative;
        gap: 8px;
        width: 24px;
        height: 48px;
        background-color: var(--color-bg);
    }

    .burger span, .burger span::before, .burger span::after {
        display: block;
        position: absolute;    
        width: 24px;
        height: 1px;
        background-color: var(--color-fg-soft);
        border-radius: 2px;
        transition: var(--speed-down) var(--ease-out);
    }

    .burger span {
        top: 23px;
        transition: var(--speed-down) var(--ease-out);
    }

    .burger span::before {
        content: '';
        top: -8px;
        transition: var(--speed-down) var(--ease-out);
    }
    
    .burger span::after {
        content: '';
        top: 8px;
        transition: var(--speed-down) var(--ease-out);
    }


    .burger-active {
        display: block;
        position: relative;
        gap: 8px;
        width: 24px;
        height: 48px;
        transition: var(--speed-down) var(--ease-out);
    }

    .burger-active span, .burger-active span::before, .burger-active span::after {
        display: block;
        position: absolute;    
        width: 24px;
        height: 1px;
        background-color: var(--color-fg-default);
        border-radius: 2px;
    }

    .burger-active span {
        top: 23px;
        left: 0px;

        width: 0;
        height: 0;
        transition: var(--speed-down) var(--ease-out);
    }

    .burger-active span::before {
        content: '';
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transform: rotate(-45deg);
        transition: var(--speed-down) var(--ease-out);
    }
    
    .burger-active span::after {
        content: '';
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transform: rotate(45deg);
        transition: var(--speed-down) var(--ease-out);
    }

    body.lock {
        overflow: hidden;
    }

      /* MENU */

    .menu-mob-active {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 100;

        width: 100vw;
        height: calc(100vh - 56px);

        margin-top: 56px;
    }

    .menu-mob__wrap {
        display: flex;
        flex-direction: column;

        align-items: center;   
        justify-content: space-between;

        height: 100%;
        width: 100%;
        padding: 24px;

        background-color: var(--color-bg);
        border-radius: var(--border-radius);
    }

    .menu-mob__nav {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .menu-mob__link {
        display: flex;
        width: 100%;
        height: 60px;
        justify-content: center;
        align-items: center;
        font-size: var(--title-sm);
        font-weight: 600;
        color: var(--color-fg-default);
    }

    .menu-mob__contacts {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
        width: 100%;
    }

    .menu-mob__contacts-title {
        font-size: var(--text-sm);
        line-height: var(--text-sm-lh);
        text-align: center;
        color: var(--color-fg-soft);
        width: 100%;
    }

    /* CTA */

    .cta {
        padding: 40px 32px;
    }

    .cta__content {
        width: 100%;
        margin-bottom: 40px;
    }

    .cta__subtitle {
        width: 100%;
        margin-top: -24px;
    }


    /* FOOTER */

    .footer {
        text-align: center;
        height: fit-content;
        background-color: var(--color-bg);
        justify-content: start;
        gap: 40px;
        padding: 40px 32px 80px 32px;
    }

    .footer__head {
        flex-direction: column;
        gap: 40px;
    }

    .footer__content-text {
        width: 100%;
    }

    .footer__links {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 40px;
    }

    .footer__caption {
        flex-direction: column;
        gap: 24px;
    }

    .footer__links-title {
        color: var(--color-fg-soft);
    }

    .footer__label-p {
        font-size: 80px;
    }

    .modal-content {
        padding: 40px;
        width: 100%;
        height: 100%;
    }

}