/* ===================== */
/* 🔢 Custom properties */
:root {
    --measure: 60ch;
    /* fonts */
    --font-base: 1rem;
    /* --line-height: 1.5; */
    /* --color-bg: #fdfdfd;
    --color-text: #111;
    --color-accent: #2b6cb0;
    --color-accent-hover: #2c5282; */

    /* colors */
    --clr-grey-500: rgb(77, 79, 98);
    --clr-grey-400: rgb(106, 113, 120);
    --clr-white: rgb(255, 255, 255);
    --clr-red: rgb(234, 84, 84);
    --clr-cyan: 68, 211, 210;
    --clr-blue: rgb(84, 158, 242);
    --clr-orange: rgb(252, 174, 74);

    /* font-sizes */
    --fs-36: 2.25rem;
    --fs-20: 1.25rem;
    --fs-15: 0.938rem;
    --fs-13: 0.813rem;
}

@media (width < 36em) {
    :root {
        --fs-36: 1.5rem;
        --fs-20: 0.938rem;
    }
}

@media (36em <=width <=48em) {
    :root {}
}

/* ===================== */
/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body {
    font-size: var(--font-base);
    /* line-height: var(--line-height); */
    font-family: "Poppins", sans-serif;
    color: var(--clr-grey-500);
    background-color: var(--clr-white);
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    text-wrap: balance;
}

a:not([class]) {
    text-decoration-skip-ink: auto;
    text-decoration: none;
    color: currentColor;
}

img,
picture {
    max-width: 100%;
    display: block;
}

input,
button,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

textarea:not([rows]) {
    min-height: 10em;
}

:target {
    scroll-margin-block: 5ex;
}

/* ===================== */
/* 🧱 Layouts */
.container {
    margin: 0 auto;
    max-width: 1222px;
    padding: 0 54px;
}

@media (36em <=width <=48em) {
    .container {
        padding: 0 54px;
    }
}

@media (width < 36em) {
    .container {
        padding: 0 30px;
    }
}

.flex {
    display: flex;
}

/* .flex>*+* {
    margin-block-start: var(--gap, 1rem);
} */

.center {
    margin-inline: auto;
    text-align: center;
    padding-inline: var(--gap, 1rem);
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap, 1rem);
    justify-content: center;
    align-items: center;
}

.with-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap, 1rem);
}

.with-sidebar> :first-child {
    flex-basis: 20rem;
    flex-grow: 1;
}

.with-sidebar> :last-child {
    flex-basis: 0;
    flex-grow: 999;
    min-inline-size: 50%;
}

.switcher {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap, 1rem);
}

.switcher>* {
    flex-grow: 1;
    flex-basis: calc((var(--measure) - 100%) * 999);
}

.cover {
    min-block-size: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap, 1rem);
}

.frame {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
}

.reel {
    display: flex;
    overflow-x: auto;
    gap: var(--gap, 1rem);
}

.imposter {
    position: absolute;
    inset: 0;
    margin: auto;
}

.icon {
    inline-size: 2rem;
    aspect-ratio: 1;
    object-fit: contain;
}

/* ===================== */
/* 🧰 Utility classes */
.text-center {
    text-align: center;
}

/*     --clr-grey-500: rgb(77, 79, 98);
    --clr-grey-400: rgb(106, 113, 120);
    --clr-white: rgb(255, 255, 255);
    --clr-red: rgb(234, 84, 84);
    --clr-cyan: 68, 211, 210;
    --clr-blue: rgb(84, 158, 242);
    --clr-orange: rgb(252, 174, 74); */

.clr-grey-500 {
    color: var(--clr-grey-500);
}

.clr-grey-400 {
    color: var(--clr-grey-400);
}

.clr-white {
    color: var(--clr-white);
}

.clr-red {
    color: var(--clr-red);
}

.clr-cyan {
    color: rgb(var(--clr-cyan));
}

.clr-blue {
    color: var(--clr-blue);
}

.clr-orange {
    color: var(--clr-orange);
}

.text-present-1 {
    font-size: var(--fs-36);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: 0.25px;
}

.text-present-2 {
    font-size: var(--fs-36);
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: 0.25px;
}

.text-present-3 {
    font-size: var(--fs-20);
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-style: normal;
    line-height: 1.35;
    letter-spacing: 0px;
}

.text-present-4 {
    font-size: var(--fs-15);
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: 0px;
}

.text-present-5 {
    font-size: var(--fs-13);
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    letter-spacing: 0px;
}

/* ===================== */
/* 🧩 Custom komponentai */
.card {
    padding: var(--gap, 1rem);
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button {
    padding: 0.5rem 1rem;
    background-color: var(--clr-black);
    color: var(--clr-white);
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
}

.button:hover {
    background-color: var(--clr-cream);
}

header {
    --gap: 0;
    margin-top: 102px;
    max-width: 540px;
}

main {
    align-items: center;
    gap: 32px;
    margin-top: 74px;
    margin-bottom: 193px;
}

@media (36em <=width <=48em) {
    main {
        flex-direction: column;
        margin-bottom: 80px;
    }

    header {
        margin-top: 80px;
    }
}

@media (width < 36em) {
    main {
        flex-direction: column;
        margin-bottom: 46px;
    }

    header {
        margin-top: 56px;
    }
}

main h2 {
    margin: 28px 32px 6px 32px;
}

main p {
    margin: 0 32px;
}

main .img {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    margin-right: 32px;
}

.middle {
    flex-direction: column;
    gap: 32px;
    flex: 1;
}

.middle .img {
    margin-bottom: 32px;
}

main>article:first-child {
    min-height: 250px;
    border-top: 4px solid rgb(var(--clr-cyan));
    box-shadow: 0px 15px 30px -11px rgba(var(--clr-cyan), 0.5);
    border-radius: 8px;
    flex: 1;
}

main>article:last-child {
    min-height: 250px;
    border-top: 4px solid var(--clr-blue);
    box-shadow: 0px 15px 30px -11px rgba(var(--clr-cyan), 0.5);
    border-radius: 8px;
    flex: 1;
}

.middle article:first-child {
    min-height: 250px;
    border-top: 4px solid var(--clr-red);
    box-shadow: 0px 15px 30px -11px rgba(var(--clr-cyan), 0.5);
    border-radius: 8px;
}

.middle article:last-child {
    min-height: 250px;
    border-top: 4px solid var(--clr-orange);
    box-shadow: 0px 15px 30px -11px rgba(var(--clr-cyan), 0.5);
    border-radius: 8px;
}

@media (36em <=width <=48em) {
    .middle {
        flex-direction: row;
    }

    main>article:first-child {
        max-width: 314px;
    }

    main>article:last-child {
        max-width: 314px;
    }

    .middle article:first-child {
        max-width: 314px;
        flex: 1;
    }

    .middle article:last-child {
        max-width: 314px;
        flex: 1;
    }
}

@media (width < 36em) {
    .middle {
        flex-direction: column;
    }

    main>article:first-child {
        max-width: 314px;
    }

    main>article:last-child {
        max-width: 314px;
    }

    .middle article:first-child {
        max-width: 314px;
    }

    .middle article:last-child {
        max-width: 314px;
    }
}