/* == COLORS ==*/
:root{
    --primary-color: #47331F;
    --primary-light: #E8D7C7;
    --primary-gradient: linear-gradient(135deg, #47331F, #A68059);
}

/* == TYPOGRAPHY ==*/
h1 {
    font-family: "Forum", sans-serif;
    font-size: 4.5rem;
    font-weight: 400;
    line-height: 1;
    color: transparent;
    background: var(--primary-gradient);
    background-clip: text;
    margin: 0;
}
h2 {
    font-family: "Forum", sans-serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.5;
    color: transparent;
    background: var(--primary-gradient);
    background-clip: text;
    margin: 0;
}
span {
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--primary-color);
    margin: 0;
}
p {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--primary-color);
    margin: 0;
}
a {
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    color: var(--primary-color);
    margin: 0;
}
a:hover{
    color: var(--primary-light);
}

/* == ICONS ==*/
.icon--xl { width: 36px; height: 36px; }
.icon--md { width: 20px; height: 20px; }

/* == BODY == */
body{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 4rem auto 4rem auto;
    width: 90%;
    max-width: 1200px;
    gap: 4rem;
    background-color: var(--primary-light);
}

/* == «BUTTON SOUND CONTROL» == */
.button-sound-control {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    box-shadow: 0px 4px 8px rgba(71, 51, 31, 0.25);
    background: var(--primary-gradient);
    color: var(--primary-light);
}
.button-sound-control {
    padding: 0.7rem;
}

/* == FIRST SCREEN == */
.main-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    border: 1px solid var(--primary-color);
}
.main-block__text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2.5rem;
}
.img {
    width: 50%;
    height: 450px;
    object-fit: cover;
    border-left: 1px solid var(--primary-color);
}

/* == INFO-CARDS == */
.cards-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 2.5rem;
}
.info-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
    padding: 2.5rem 2.5rem;
    border: 1px solid var(--primary-color);
}
.info-card__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.info-card__point {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}
.info-card__button {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    gap: 1rem;
    padding: 1.2rem 1rem;
    border: 1px solid var(--primary-color);
}
.info-card__button:hover {
    background: var(--primary-gradient);
    border: 1px solid var(--primary-light);
}
.info-card__button.button__icon:hover {
    color: var(--primary-light);
}

/* == QUESTIONS == */
.info-block{
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 20px;
}
.info-block__point {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--primary-color);
    cursor: pointer;
}
.info-block__point:last-child {
    border-bottom: 1px solid var(--primary-color);
}
.info-block__question{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0px;    
}
.accordeon__icon {
    transition: transform 0.3s ease;
}
.info-block__answer {
    height: 0;
    overflow: hidden;
    transition: height 0.4s;
}
.info-block__answer.open {
    height: auto;
    padding: auto;
}
/* == MODAL WINDOW «ADD TO CALENDAR» == */
.calendar-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    backdrop-filter: blur(5px);
    z-index: 1000;
}
.calendar-popup.active {
    display: flex;
    align-items: center;
    justify-content: center;
}
.calendar-popup__content {
    display: flex;
    flex-direction: column;
    width: 300px;
    padding: 2rem;
    gap: 2.5rem;
    background: var(--primary-light);
    border: 1px solid var(--primary-color);
    pointer-events: auto;
}
.calendar-popup__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.calendar-popup__icon {
  cursor: pointer;
}
.calendar-popup__links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.calendar-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    border: 1px solid var(--primary-color);
}
.calendar-popup__icon{
    color: var(--primary-color);
}
.calendar-link:hover {
    background: var(--primary-gradient);
    border: 1px solid var(--primary-light);
}
.calendar-link:hover .calendar-popup__icon {
    color: var(--primary-light);
}

/* == MEDIA QUERIES ==*/
@media (width < 480px) {

    h1 {font-size: 3.2rem;}
    h2 {font-size: 2.8rem;}
    span {font-size: 1.2rem;}
    a {font-size: 1.2rem;}

    .icon--xl { width: 36px; height: 36px; }
    .icon--md { width: 18px; height: 18px; }

    body{
        flex-direction: column;
        margin: 1.5rem auto 1.5rem auto;
    }
    .main-block {
        flex-direction: column-reverse;
        justify-content: space-between;
    }
    .main-block__text-content {
        flex-direction: column;
        padding: 2.5rem 1.5rem;}
    .img {
        width: 100%;
        height: 400px;
        border-left: none;
        border-bottom: 1px solid var(--primary-color);
    }
    .cards-block {flex-direction: column;}
    .info-card {width: auto; padding: 2rem 1.5rem;}
    .info-card__content {gap: 0.8rem;}
    .info-card__button {padding: 0.8rem 0rem;}
}