/* 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: #FFFFFF;
    --color-fg-soft: #BCBCCC;
    --color-bg: #15151A;
    --color-bg-main: #25253D;
    --color-wrap: #1C1C29;
    --color-bg-active: #15151A;
    --color-stroke: #4E4E66;
    --color-accent: #20E53A;
    --color-accent-on: #2F2F3D;

    --color-btn-prime-bg: var(--color-accent);
    --color-btn-prime-bg-hover: var(--color-fg-default);
    --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);
    --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);


    --title-lg: 80px;
    --title-lg-lh: 80px;

    --title-md: 60px;
    --title-md-lh: 60px;

    --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: 48px;
    --border-radius-wrap: 80px;

    --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 40px;
    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);
    border-radius: 100px;
    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);
    border-radius: 100px;
    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);
    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;
}

.container {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
    padding: 80px;
}

.wrap {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius-wrap);
    background-color: var(--color-wrap);
    overflow: hidden;
    z-index: 1;
}


/* HEADER */

.header {
    display: flex;
    flex-direction: row;
    width: 100vw;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 100;
    padding: 8px 80px;
}

.header__wrap {
    display: flex;
    flex-direction: row;
    background-color: #15151AA0;
    padding: 0 40px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 8px 16px rgba(0, 0, 0, 0.4),
        inset 0 -4px 8px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius);
}

.header__label {
    display: flex;
    gap: 16px;
    align-items: center;
}

.label {
    width: auto;
    height: 32px;
}

.label__text {
    font-weight: normal;
    font-size: var(--text-lg);
}

.nav {
    display: flex;
    gap: 60px;
    justify-content: end;
    align-items: center;
    flex-direction: row;
    justify-self: end;
}

.menu-mob {
    display: none;
}


label {
    display: none;
}

.h2 {
    display: flex;
    font-size: var(--title-md);
    line-height: var(--title-md-lh);
    font-weight: 600;
    overflow: hidden;
    justify-content: center;
}

/* FOOTER */
.footer {
    background-image: 
    radial-gradient(
        ellipse 46% 20% at top center, 
        #20E53A50, 
        #15151A00);
    margin-bottom: 160px;
}

.footer__img-wrapper {
    display: flex;
}

.footer__img {
    width: 280px;
}

.footer__content {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 16px;
    align-items: center;
}

.footer__content-title {
    font-size: var(--title-lg);
    line-height: var(--title-lg-lh);
    font-weight: 600;
}

.footer__content-p {
    width: 700px;
    font-size: var(--text-lg);
    line-height: var(--text-lg-lh);
}

.footer__links-title {
    font-size: var(--title-sm);
    line-height: var(--title-sm-lh);
    font-weight: 600;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.footer__links-list {
    display: flex;
    gap: 8px;
}

@media (max-width: 480px) { 

    :root {
    --title-lg: 48px;
    --title-lg-lh: 48px;

    --title-md: 40px;
    --title-md-lh: 40px;

    --title-sm: 32px;
    --title-sm-lh: 40px;

    --title-block: 20px;
    --title-block-lh: 28px;

    --text-lg: 18px;
    --text-lg-lh: 24px;

    --text-md: 16px;
    --text-md-lh: 24px;

    --border-radius: 24px;
    --border-radius-wrap: 32px;
    }

    .btn-prime, .btn-outline {
        width: 100%;
        height: 60px;
    }

    .img {
        width: 240px;
    }

    .container {
        display: flex;
        flex-direction: column;
        gap: 32px;
        overflow: hidden;
        padding: 40px 16px;
    }

    /* HEADER */

    .header {
        padding: 8px 16px 0 16px;
        justify-content: center;
    } 

    .header__wrap {
        padding: 0;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        height: 48px;
        box-shadow: none;
        background-color: transparent;
        backdrop-filter: none;
    }

    .header__label {
        min-width: 48px;
        justify-content: center;
        height: 48px;
        background-color: #15151Aa0;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 8px 16px rgba(0, 0, 0, 0.4),
            inset 0 -4px 8px rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(8px);
        border-radius: var(--border-radius);
    }
    
    .label__text  {
        display: none;    
    }

    .nav {
        width: fit-content;
        height: 48px;
        padding: 0 24px;
        gap: 32px;
        background-color: #15151Aa0;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 8px 16px rgba(0, 0, 0, 0.4),
            inset 0 -4px 8px rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(8px);
        border-radius: var(--border-radius);
    }

    .nav-link {
        font-size: 14px;
    }

        /* MENU */

    .menu-mob-active {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 100;

        width: 100vw;
        height: calc(100vh - 56px);

        padding: 16px;
        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: #15151Aa0;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 8px 16px rgba(0, 0, 0, 0.4),
            inset 0 -4px 8px rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(24px);
        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;
    }

    .menu-mob__contacts-title {
        font-size: var(--text-sm);
        line-height: var(--text-sm-lh);
        text-align: center;
        color: var(--color-fg-soft);
    }


    .label__text {
        display: block;
    }

    .nav {
        display: none;
    }

    .header__label {
         padding: 0px 24px;
    }

    .burger {
        display: block;
        position: relative;
        gap: 8px;
        width: 48px;
        height: 48px;
        background-color: #15151Aa0;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 8px 16px rgba(0, 0, 0, 0.4),
            inset 0 -4px 8px rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(8px);
        border-radius: var(--border-radius);
    }

    .burger span, .burger span::before, .burger span::after {
        display: block;
        position: absolute;    
        width: 24px;
        height: 2px;
        background-color: var(--color-fg-default);
        border-radius: 2px;
        transition: var(--speed-down) var(--ease-out);
    }

    .burger span {
        top: 23px;
        left: 12px;
        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: 48px;
        height: 48px;
        background-color: #15151Aa0;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            inset 0 8px 16px rgba(0, 0, 0, 0.4),
            inset 0 -4px 8px rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(8px);
        border-radius: var(--border-radius);
        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: 2px;
        background-color: var(--color-fg-default);
        border-radius: 2px;
    }

    .burger-active span {
        top: 23px;
        left: 12px;

        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;
    }

    /* FOOTER */

    .footer {
        text-align: center;
        margin-bottom: 80px;
    }

    .footer__img-wrapper {
        justify-content: center;
    }

    .footer__img {
        width: 160px;
    }

    .footer__content {
        width: 100%;
        gap: 16px;
    }

    .footer__content-title {
        width: 100%;
        font-size: var(--title-md);
        line-height: var(--title-md-lh);
    }

    .footer__content-p {
        width: 100%;
        font-size: 16px;
        line-height: 1.5em;
    }

    .footer__links {
        gap: 24px;
        width: 100%;
    }

    .footer__links-list {
        flex-direction: column;
        width: 100%;
    }

    .footer__btn {
        width: 100%;
    }
}