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

@import url('https://fonts.googleapis.com/css2?family=Days+One&display=swap');


body {
    font-family: 'Days One', sans-serif;
    background-color: #f0f0f0;
}

.container{
    padding: 0 40px;
}

.header {
    padding: 40px 0;
    margin-bottom: 100px;
}

.header_container {
    padding: 0 40px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.header_nav {
    width: 30%;
}

.header_menu {
    display: flex;
    justify-content: space-between;
    list-style: none;
    width: 100%;
}

.header_item {
    /* пункты меню занимают равное пространство */
    flex: 1;
    text-align: center;
}

.header_link {
    text-decoration: none;
    color: #000;
    font-size: 20px;
    position: relative;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.header_link:hover {
    opacity: 0.7;
}

.header_link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;

    width: 0;
    height: 2px;
    background-color: black;

    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header_link:hover::after {
    width: 100%;
}

.header_link_non_active {
    text-decoration: none;
    color: #939393;
    font-size: 20px;
    position: relative;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.header_link_non_active:hover {
    opacity: 0.7;
    color: #000;
}

.header_link_non_active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -3px;

    width: 0;
    height: 2px;
    background-color: black;

    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.header_link_non_active:hover::after {
    width: 100%;
}

.header_logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.header_logo-img {
    height: auto;
    width: auto;
    display: block;
}

.header_cart {
    flex-shrink: 0;
}

.header_cart-link {
    text-decoration: none;
    color: #000;
    font-size: 20px;
    transition: opacity 0.2s ease;
    white-space: nowrap; /* чтобы текст не переносился */
}

.header_cart-link:hover {
    opacity: 0.7;
}


.hero {
    width: 100%;
    overflow: hidden;
}

.hero_image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.content {
    font-size: 24px;
    text-align: center;
    width: 75%;
    margin: 160px auto
}

.footer {
    background-color: #000;
    min-height: 300px;
    display: flex;
    align-items: center;
    margin-top: 200px;
}

.footer_container {
    width: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer_logo {
    height: auto;
    width: auto;
}

.footer_center {
    display: flex;
    gap: 60px;
}

.footer_link {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
}

.footer_link:hover {
    opacity: 0.7;
}

.footer_right {
    display: flex;
    gap: 50px;
}

.footer_icon {
    height: 29px;
    width: auto;
}

.disclaimer {
    font-family: 'Days One';
    font-size: 16px;
    color:#939393;
    background-color: #000;
    padding: 20px 40px;
}

.music_container {
    padding: 0 40px;
}

/* сетка */
.music_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.music_item {
    display: flex;
    flex-direction: column;
}

.music_image {
    width: 100%;
    height: auto;
    display: block;
}

.music_title {
    margin-top: 10px;
    font-size: 16px;
    color: #000;
}

.music_title span {
    color: #939393;
    font-family: 'Helvetica Neue', 'Arial';
}

/* смещение второго ряда */
.music_item--offset {
    grid-column: 2 / 3;
}

.music_buttons {
    margin: 80px auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.music_btn {
    width: 450px;
    text-align: center;

    padding: 20px 0;
    border: 1px solid #000;
    border-radius: 50px;
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-family: 'Helvetica Neue', 'Arial';

    transition: all 0.2s ease;
}

.music_btn:hover {
    background-color: #000;
    color: #939393;
}

.store_container{
    padding: 0 40px;
}

.store_title-main {
    font-size: 36px;
    text-transform: uppercase;
    margin: 80px 0 40px;
}

/* сетка магазина */
.grid {
    display: grid;
    gap: 60px;
}

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

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

/* карточка товара*/
.card {
    display: flex;
    flex-direction: column;
}

.card img {
    width: 100%;
    max-width: 420px;
    min-height: 300px;
    margin-bottom: 20px;
}

.card_title {
    font-size: 24px;
    text-transform: uppercase;
}

.card_subtitle {
    font-family: 'Helvetica Neue', 'Arial';
    font-size: 16px;
    color: #939393;
    margin: 5px 0 10px;
}

.card_price {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Helvetica Neue', 'Arial';
}

.store_line {
    height: 1px;
    background: #000;
    margin: 20px 0;
    width: 70%;
}

.store_button {
    width: 260px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;
    color: #939393;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.store_button:hover {
    background-color: #888;
    color: #f0f0f0;
}

.concerts_container{
    margin: 100px auto; 
    max-width: 1085px;
}

.concerts_timepad {
    display: grid;
    grid-template-columns: 280px 1fr 200px;
    align-items: center;
    padding: 40px 0;
}

.concerts_date {
    font-size: 57px;
    font-family: 'Days One';
    color: #000;
}

.concerts_place {
    display: flex;
    flex-direction: column;
}

.concerts_city {
    font-size: 30px;
    font-family: 'Days One';
    color: #000;
}

.concerts_building {
    font-size: 30px;
    font-family: 'Days One';
    color: #939393;
}

.concerts_button {
    justify-self: end;

    width: 180px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: 'Helvetica Neue', 'Arial';
    background: #000;
    color: #939393;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.2s ease;
}

.concerts_button:hover {
    background-color: #888;
    color: #f0f0f0;
}

.concerts_line {
    height: 1px;
    background: #000;
    width: 100%;
}

.faq_question {
    font-size: 18px;
    color:#000;
}

.faq_answer {
    font-size: 18px;
    color: #939393;;
}

.faq_card {
    display: flex;
    flex-direction: column;
    width: 50%;
    margin: 20px auto;
    background-color: #dddddd;
    border-radius: 20px;
    padding: 30px;
}

/* для экранов меньше 900px уменьшаем, но структура сохраняется */
@media (max-width: 900px) {
    .header_logo-img {
        height: 55px;
    }
    
    .header_link {
        font-size: 13px;
    }
    
    .header_cart-link {
        font-size: 13px;
    }
}

@media (max-width: 768px) {

    /*общие отступы*/

    .header_container,
    .music_container,
    .store_container,
    .footer_container,
    .concerts_container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .header {
        margin-bottom: 60px;
        padding: 25px 0;
    }

    .header_container {
        flex-direction: column;
        gap: 25px;
    }

    .header_nav {
        width: 100%;
    }

    .header_menu {
        justify-content: center;
        gap: 25px;
    }

    .header_item {
        flex: unset;
    }

    .header_logo {
        position: static;
        transform: none;
    }

    .header_logo-img {
        width: 220px;
        height: auto;
    }

    .header_link,
    .header_link_non_active,
    .header_cart-link {
        font-size: 16px;
    }

    .hero_image {
        height: 70vh;
        object-fit: cover;
    }

    .content {
        width: 90%;
        font-size: 18px;
        margin: 100px auto;
        line-height: 1.5;
    }

    .faq_card {
    width: 100%;
    padding: 20px;
    border-radius: 16px;
    margin: 15px auto;
    }

    .faq_question {
        font-size: 16px;
        line-height: 1.4;
    }

    .faq_answer {
        font-size: 16px;
        line-height: 1.5;
    }

    .footer {
        margin-top: 120px;
        padding: 50px 0;
    }

    .footer_container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer_center {
        flex-direction: column;
        gap: 20px;
    }

    .footer_right {
        justify-content: center;
        gap: 30px;
    }

    .footer_logo {
        width: 180px;
        height: auto;
    }

    .footer_link {
        font-size: 18px;
    }

    .disclaimer {
        text-align: center;
        font-size: 14px;
        padding: 20px;
    }

    .music_grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .music_item--offset {
        grid-column: auto;
    }

    .music_title {
        font-size: 14px;
    }

    .music_buttons {
        margin: 60px auto;
        gap: 15px;
    }

    .music_btn {
        width: 100%;
        max-width: 320px;
        font-size: 16px;
        padding: 16px 0;
    }

    .store_title-main {
        font-size: 28px;
        margin: 60px 0 30px;
    }

    .grid--2,
    .grid--3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .card img {
        max-width: 100%;
        min-height: auto;
    }

    .card_title {
        font-size: 20px;
    }

    .card_subtitle {
        font-size: 14px;
    }

    .card_price {
        font-size: 20px;
    }

    .store_line {
        width: 100%;
    }

    .store_button {
        width: 100%;
        max-width: 320px;
    }

    .concerts_container {
        margin: 80px auto;
    }

    .concerts_timepad {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }

    .concerts_date {
        font-size: 42px;
    }

    .concerts_city {
        font-size: 24px;
    }

    .concerts_building {
        font-size: 22px;
    }

    .concerts_button {
        width: 100%;
        max-width: 320px;
        justify-self: start;
    }

}

