@import 'media.css';
@import 'reset.css';
@import 'animate.css';

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1,
h3,
h5 {
    margin: 0;
}

body {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    color: #000;
    line-height: 1.2;
    background-color: #FAFAFA;
    margin: 0;
}

button {
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.container {
    max-width: 1220px;
    padding: 0 10px;
    margin: 0 auto;
}

.header {
    min-height: 100vh;
    position: relative;
}

.header__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.header__nav.show{
    opacity: 1;
}

.menu {
    display: flex;
    margin-left: 40px;
    max-width: 436px;
    gap: 40px;

}

.menu__list {
    display: flex;
    gap: 0 40px;
}

.list__item {
    height: 50px;
    display: flex;
    align-items: center;
}

.menu__link {
    font-weight: 700;
}

.buy__btn {
    padding: 15px 58px;
    border-radius: 30px;
    background-color: #000;
    color: #FAFAFA;
    text-transform: uppercase;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all .5s;
}

@media(hover: hover){
    .buy__btn:hover{
        background-color: #FAFAFA;
        color: #000;
    }
}
@media not all and (hover: hover) {
    .buy__btn:active {
        background-color: #FAFAFA;
        color: #000;
    }
}

.header__content-images {
    text-align: center;
    padding-bottom: 40px;
    max-width: 100%;
}

.content-item {
    display: none;
    max-width: 100%;
}

.content-item__active {
    display: block;
    margin: 0 auto;
}

.header__content-images::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.header__content-images:has(.color--red.content-item__active):before {
    background-image: linear-gradient(0deg,
            hsl(0deg 0% 98%) 7%,
            hsl(9deg 26% 97%) 27%,
            hsl(9deg 39% 96%) 36%,
            hsl(9deg 46% 95%) 42%,
            hsl(9deg 50% 94%) 48%,
            hsl(9deg 53% 93%) 53%,
            hsl(9deg 55% 92%) 59%,
            hsl(9deg 57% 91%) 65%,
            hsl(9deg 58% 90%) 73%,
            hsl(9deg 59% 89%) 94%);
}

.header__content-images:has(.color--skyblue.content-item__active):before {
    background-image: linear-gradient(0deg,
            hsl(0deg 0% 98%) 6%,
            hsl(210deg 21% 97%) 27%,
            hsl(210deg 30% 95%) 35%,
            hsl(210deg 35% 94%) 41%,
            hsl(210deg 38% 93%) 47%,
            hsl(210deg 41% 91%) 52%,
            hsl(209deg 42% 90%) 58%,
            hsl(209deg 43% 88%) 64%,
            hsl(209deg 44% 87%) 73%,
            hsl(209deg 45% 86%) 93%);
}

.header__content-images:has(.color--spacegrey.content-item__active):before {
    background-image: linear-gradient(0deg,
            hsl(0deg 0% 98%) 6%,
            hsl(344deg 0% 95%) 27%,
            hsl(344deg 0% 92%) 35%,
            hsl(344deg 0% 89%) 41%,
            hsl(344deg 0% 86%) 47%,
            hsl(344deg 0% 83%) 52%,
            hsl(344deg 0% 80%) 58%,
            hsl(344deg 0% 77%) 64%,
            hsl(344deg 0% 74%) 73%,
            hsl(0deg 0% 71%) 93%);
}

.header__content-images:has(.color--green.content-item__active):before {
    background-image: linear-gradient(0deg,
            hsl(0deg 0% 98%) 6%,
            hsl(105deg 12% 97%) 27%,
            hsl(105deg 18% 96%) 35%,
            hsl(105deg 22% 95%) 41%,
            hsl(106deg 24% 94%) 47%,
            hsl(106deg 26% 93%) 52%,
            hsl(106deg 27% 92%) 58%,
            hsl(106deg 28% 91%) 64%,
            hsl(106deg 28% 89%) 73%,
            hsl(106deg 29% 88%) 93%);
}

.header__content-title {
    position: absolute;
    font-size: 210px;
    font-weight: 700;
    padding-top: 115px;
}
.header__content-images img {
    opacity: 0; /* Початкова прозорість */
    transition: opacity 0.5s ease; /* Анімація для плавного зміни прозорості протягом 1 секунди */
}

.header__content-images img.show {
    opacity: 1; /* Кінцева прозорість після з'явлення */
}
.title--air{
    opacity: 0;
    transition: opacity 1s ease;
}

.title--pod {
    position: relative;
    z-index: -1;
    opacity: 0; /* Початкова прозорість */
    transition: opacity 1s ease;
}

.title--s {
    display: inline-block;
    transform: translateY(50px);
    opacity: 0; /* Початкова прозорість */
    transition: opacity 1s ease;
}

.title--m {
    display: inline-block;
    transform: translateY(280px) translateX(-56px);
    opacity: 0; /* Початкова прозорість */
    transition: opacity 1s ease;
}

.title--ax {
    display: inline-block;
    position: relative;
    transform: translateY(418px) translateX(-130px);
    z-index: -1;
    opacity: 0; /* Початкова прозорість */
    transition: opacity 1s ease;
}
.title--air.show,.title--pod.show,.title--s.show,.title--m.show,.title--ax.show {
    opacity: 1; /* Кінцева прозорість після з'явлення */
}


.main__title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
}

.choose__color {
    padding: 46px 0 180px;
    text-align: center;
}

.choose__color-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.choose__color-subtitle {
    font-size: 16px;
    max-width: 557px;
    margin: 0 auto 80px;
}

.choose__color-list {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.choose__color-btn {
    padding: 50px 55px;
    border: 1px solid #777777;
    border-radius: 20px;
    transition: all .5s;
}
.choose__color-btn:hover{
    transform: scale(1.1);
}

.choose__color-btn--active {
    display: none;
}

.composition {
    text-align: center;
    margin-bottom: 180px;
}

.composition__subtitle {
    max-width: 653px;
    margin: 0 auto 40px;
}

.composition__inner {
    display: flex;
    justify-content: space-between;
    max-width: 625px;
    margin: 0 auto;
}

.composition__inner-text {
    max-width: 230px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.composition__inner-text p {
    margin: 0;
}

.case {
    margin-bottom: 80px;
    text-align: center;
}

.case__subtitle {
    margin-bottom: 40px;
}

.case__subtitle span {
    font-weight: 700;
}

.case__img {
    margin: 0 auto 80px;
}

.runtime {
    padding: 80px 0;
    text-align: center;
}

.runtime__title {
    margin-bottom: 20px;
}

.runtime__num {
    font-weight: 700;
    font-size: 210px;
    margin: 0 0 40px;
}

.runtime__text {
    max-width: 403px;
    margin: 0 auto;
}

.audio {
    text-align: center;
    background-color: #000;
    position: relative;
}

.audio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(../img/sound-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    width: 100%;
}

.audion__inner {
    min-height: 200vh;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.audio__inner-box {
    color: #FAFAFA;
    max-width: 300px;
    margin-bottom: 465px;
    position: relative;
    z-index: 10;
}

.audio__btn {
    color: #000;
    background-color: #FAFAFA;
}
@media(hover: hover){
    .audio__btn:hover {
        color:#FAFAFA;
        background-color: #000;
    }
}
@media not all and (hover: hover) {
    .audio__btn:active {
        color:#FAFAFA;
        background-color: #000;
        outline: none
    }
}



.footer {
    height: 300px;
    background-color: #000;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 40px;
}

.footer__inner {
    text-align: center;
    color: #FAFAFA;
    margin-bottom: 80px;
}

.footer__inner p {
    margin-bottom: 20px;
}

.footer__list {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #FAFAFA;
    flex-wrap: wrap;
}
