@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');

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

html {
    scroll-behavior: smooth;
}

html,
body {
    height: 100%;
    width: 100%;
}

:root {
    --font-color: #000000;
    --font-color-secondary: #555555;
    --background-color: #f4f4f4;
    --background-color-secondary: #aeaeae;
    --background-color-tertiary: #e0e0e0;
    --accent-color: #0000FF;
}

body {
    font-family: sans-serif;
    line-height: 1.2;
    background-color: var(--background-color);
    color: var(--font-color);
    font-size: 1rem;
}

a {
    color: inherit;
}

h1 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    line-height: 1.2;
}

h2 {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 300;
}

h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

h4 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

p {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

p,
li,
h3,
h4,
.small,
.price,
.button,
.name {
    font-family: 'Mulish', sans-serif;
}

.button {
    padding: clamp(0.9375rem, 1vw, 1.875rem) 1.25rem;
    border-radius: 0.3125rem;
    outline: solid 0.0625rem var(--font-color);
    align-content: center;
    font-weight: 800;
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    cursor: pointer;
}

.button.secondary {
    background-color: var(--accent-color);
    color: #FFFFFF;
    outline: none;
}

header {
    display: none;
}

@media (min-width: 600px) {
    header {
        display: flex;
        flex-direction: row;
        gap: clamp(2.5rem, 6vw, 4.375rem);
        justify-content: center;
        align-items: center;
        padding-top: clamp(1.25rem, 3vw, 2.5rem);
        font-size: clamp(1rem, 2.5vw, 1.2rem);
    }
}

.menu-toggle {
    z-index: 2;
    display: block;
    position: fixed;
    top: 2.5rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    cursor: pointer;
    outline: solid 0.0625rem var(--font-color);
    border-radius: 50%;
    padding: 0.4375rem;
    background-color: var(--background-color);
    transition: opacity 0.3s ease-in-out;
}

.menu-toggle img {
    width: 100%;
    height: 100%;
}

aside {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    width: 100vw;
    background-color: var(--background-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1;
    padding-top: 3.125rem;
    padding-bottom: 1.875rem;
}

@media (min-width: 600px) {

    aside,
    .menu-toggle {
        display: none;
    }
}

aside nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.875rem;
    margin-bottom: 3.125rem;
}

aside nav ul li {
    text-align: center;
    font-size: clamp(1.5rem, 5vw, 1.875rem);
    font-weight: bold;
}

.socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

aside .socials {
    margin-top: auto;
    margin-bottom: 1rem;
}

.socials div {
    display: flex;
    flex-direction: row;
    gap: 0.9375rem;
}

.socials img {
    width: 1.875rem;
    height: 1.875rem;
}

#menu-toggle:checked~aside {
    transform: translateX(0);
}

#menu-toggle:checked~.menu-toggle {
    opacity: 0;
}

html:has(#menu-toggle:checked) {
    overflow: hidden;
}

aside .cross {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    cursor: pointer;
}

aside .cross span {
    display: block;
    width: 1.5625rem;
    height: 0.0625rem;
    background-color: var(--font-color);
    transform: rotate(45deg);
    position: relative;
    top: 0.5rem;
}

aside .cross span:nth-child(1) {
    transform: rotate(-45deg);
}

aside .cross span:nth-child(2) {
    transform: rotate(45deg);
    top: 0.4375rem;
}

main {
    padding-top: 2.5rem;
    min-width: 21.875rem;
}

section.start {
    display: flex;
    flex-direction: column;
    margin-inline: clamp(0.625rem, 4vw, 3.125rem);
}

section.start div {
    position: relative;
    margin-top: clamp(1.875rem, 4vw, 1.25rem);
    padding: clamp(1.875rem, 4vw, 1.875rem) 1.25rem;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 4vw, 1.875rem);
    border-radius: 0.3125rem;
    background-color: var(--background-color-secondary);
    container-type: inline-size;
    overflow: hidden;
}

section.start div p {
    width: fit-content;
    max-width: min(28.125rem, 60%);
    padding: clamp(0.9375rem, 3vw, 1.875rem);
    padding-right: clamp(0.9375rem, 5vw, 1.875rem);
    outline: solid 0.125rem var(--font-color-secondary);
    border-radius: 0.3125rem;
}

section.start .button {
    width: 50%;
}

section.start img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
}

@container (max-width: 600px) {
    section.start img {
        right: -4rem;
    }
}

@media (min-width: 1050px) {
    section.start {
        max-width: 1000px;
        margin-inline: unset;
        margin: auto;
    }

    section.start div {
        display: grid;
        grid-template-columns: 1fr 1fr 1.2fr;
        grid-template-rows: 0.5fr 0.5fr 0.3fr;
        overflow: visible;
    }

    section.start div p {
        place-content: center;
        text-align: center;
        padding: clamp(0.625rem, 2.5vw, 1.25rem);
        max-width: none;
        width: unset;
    }

    section.start div p:nth-of-type(1) {
        grid-column: 1;
        grid-row: 1;
    }

    section.start div p:nth-of-type(2) {
        grid-column: 2;
        grid-row: 1;
    }

    section.start div p:nth-of-type(3) {
        grid-column: 1;
        grid-row: 2;
    }

    section.start div p:nth-of-type(4) {
        grid-column: 2;
        grid-row: 2;
    }

    section.start div img {
        height: 155%;
    }

    section.start div .button {
        width: unset;
        grid-row: 3;
        grid-column: 1 / span 2;
    }
}

/* Icon masks: shared paint + geometry */
section.about-myself ul li::before,
section.offers .offer-card ul li::before,
section.about-myself .paragraph .star-icon,
section.offers .offer-card .place .place-icon {
    background-color: var(--accent-color);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

section.about-myself ul li::before,
section.offers .offer-card ul li::before,
section.about-myself .paragraph .star-icon {
    -webkit-mask-image: url(assets/star.svg);
    mask-image: url(assets/star.svg);
}

section.offers .offer-card .place .place-icon {
    -webkit-mask-image: url(assets/place.png);
    mask-image: url(assets/place.png);
}

section.about-myself {
    margin-top: clamp(1.875rem, 5vw, 3.125rem);
    padding-block: clamp(1.875rem, 5vw, 3.125rem);
    background-color: var(--background-color-tertiary);
}

section.about-myself .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2.5rem);
    text-align: center;
    position: relative;
    padding-inline: clamp(0.625rem, 4vw, 3.125rem);
}

section.about-myself h2 span {
    font-weight: 800;
    color: var(--accent-color);
}

section.about-myself img {
    width: 100%;
    height: 100%;
    border-radius: 0.3125rem;
    object-fit: cover;
}

section.about-myself ul {
    list-style: none;
    text-align: left;
    max-width: 37.5rem;
}

section.about-myself ul li {
    position: relative;
    padding-left: clamp(3.125rem, 5vw, 5rem);
    margin-bottom: clamp(0.625rem, 2.5vw, 1.25rem);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

section.about-myself ul li::before {
    content: "";
    width: clamp(1.25rem, 2.5vw, 2rem);
    height: clamp(1.25rem, 2.5vw, 2rem);
    position: absolute;
    left: clamp(0.625rem, 5vw, 1.25rem);
    top: 50%;
    transform: translateY(-50%);
}

section.about-myself .paragraph {
    padding-inline: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: clamp(0.3125rem, 1vw, 0.625rem);
}

section.about-myself .paragraph .star-icon {
    width: clamp(1.875rem, 7vw, 3rem);
    aspect-ratio: 1;
    align-self: center;
}

section.about-myself p {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    line-height: 1.4;
}

@media (min-width: 1050px) {
    section.about-myself .content {
        max-width: 1000px;
        margin: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(0.8rem, 1.5vw, 1.2rem);
    }

    section.about-myself .content h2 {
        grid-column: span 2;
    }

    section.about-myself .content .name,
    section.about-myself .content p,
    section.about-myself .content ul {
        grid-column: span 1;
    }

    section.about-myself .content img:nth-of-type(1) {
        grid-column: 1;
        grid-row: span 5;
    }

    section.about-myself .content img:nth-of-type(2) {
        grid-column: 2;
        grid-row: span 2;
    }

    section.about-myself .content .paragraph {
        grid-column: 1;
        grid-row: 7;
    }

    section.about-myself .content img:nth-of-type(3) {
        grid-column: 1;
        align-self: flex-end;
    }
}

section.offers {
    padding-block: clamp(1.875rem, 5vw, 3.125rem);
    margin-inline: clamp(0.625rem, 4vw, 3.125rem);
}

section.offers h1 {
    margin-bottom: clamp(1.25rem, 4vw, 2.5rem);
}

section.offers .offer-card {
    background-color: var(--background-color-secondary);
    border-radius: 0.3125rem;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    margin-bottom: clamp(1.25rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(0.625rem, 2.5vw, 1.25rem);
}

section.offers .offer-card:last-of-type {
    margin-bottom: 0;
}

section.offers .offer-card h3 {
    margin-bottom: clamp(0.625rem, 2.5vw, 1.25rem);
}

section.offers .offer-card h4 {
    margin-top: 0.8rem;
}

section.offers .offer-card .desc {
    line-height: 1.4;
}

section.offers .offer-card .place {
    display: flex;
    align-items: center;
    gap: clamp(0.625rem, 2.5vw, 1.25rem);
    margin-top: clamp(0.625rem, 2.5vw, 1.25rem);
}

section.offers .offer-card .place .place-icon {
    width: clamp(1.875rem, 5vw, 2.5rem);
    aspect-ratio: 1;
    flex: 0 0 auto;
}

section.offers .offer-card .price-block {
    display: flex;
    flex-direction: column;
    gap: clamp(0.625rem, 3.5vw, 1.5625rem);
    margin-block: clamp(1.25rem, 4vw, 1.875rem);
}

section.offers .offer-card .price {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 2.5rem);
}

section.offers .offer-card .small {
    font-size: clamp(0.5rem, 2vw, 0.9rem);
    font-weight: normal;
    font-style: italic;
}

section.offers .offer-card ul {
    list-style: none;
}

section.offers .offer-card ul li {
    position: relative;
    padding-left: clamp(2.5rem, 3vw, 3.125rem);
    margin-bottom: clamp(0.5rem, 2vw, 0.9375rem);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

section.offers .offer-card ul li::before {
    content: "";
    width: clamp(1.25rem, 2vw, 1.5625rem);
    height: clamp(1.25rem, 2vw, 1.5625rem);
    position: absolute;
    left: clamp(0rem, 3vw, 0.3125rem);
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 1050px) {
    section.offers {
        max-width: 1000px;
        margin-inline: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        place-content: center;
    }

    section.offers h1 {
        margin-bottom: unset;
    }

    section.offers .offer-card {
        margin-bottom: unset;
    }

    section.offers .offer-card .price-block {
        margin-block: unset;
        justify-self: center;
        margin-top: auto;
        flex-direction: row;
        gap: 6rem;
    }

    section.offers .offer-card:nth-of-type(1) {
        grid-column: 1;
    }

    section.offers .offer-card:nth-of-type(2) {
        grid-row: 1 / 3;
        grid-column: 2;
    }

    section.offers .offer-card:nth-of-type(3) {
        grid-column: span 2;
        display: flex;
        margin-bottom: 1.25rem;
    }
}

footer {
    background-color: var(--background-color-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 1.875rem);
    padding-block: clamp(1.25rem, 3vw, 1.875rem);
}

footer .socials {
    display: flex;
    flex-direction: row;
    gap: clamp(0.9375rem, 3vw, 1.875rem);
}

@media (min-width: 600px) {
    footer .socials img {
        width: 3rem;
        height: 3rem;
    }
}

@media (max-width: 1049px) {
    h1 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    p {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    section.about-myself ul li {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    section.about-myself p {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    section.offers .offer-card ul li {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
    }

    section.offers .offer-card .price {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    section.offers .offer-card .small {
        font-size: clamp(0.7rem, 2.5vw, 1rem);
    }

    .button {
        font-size: clamp(1rem, 3vw, 1.5rem);
    }
}
