:root {
  /* === Backgrounds === */
  --bg-base: #ffffff;
  --bg-inverse: #1c1c1c;
  --bg-highlight: #FFFBF2;

  --bg-accent-primary: #3a1860;
  --bg-accent-muted: #ede0ff;
  --bg-accent-strong: #c240ff;
  --bg-accent-secondary: #ddbffe;

  /* === Text Colors === */
  --text-base: #1c1c1c;
  --text-on-dark: #ffffff;
  --text-accent-primary: #3a1860;
  --text-accent-on-dark: #ddc0fe;
  --text-accent-strong: #c240ff;
  --text-muted: #111111;
}

/* === Custom Fonts === */
/* === e-Ukraine === */
@font-face {
    font-family: 'e-Ukraine';
    src: url('static/fonts/e-Ukraine-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'e-Ukraine';
    src: url('static/fonts/e-Ukraine-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* === e-Ukraine Head === */
@font-face {
    font-family: 'e-Ukraine Head';
    src: url('static/fonts/e-UkraineHead-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'e-Ukraine Head';
    src: url('static/fonts/e-UkraineHead-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'e-Ukraine Head';
    src: url('static/fonts/e-UkraineHead-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'e-Ukraine Head';
    src: url('static/fonts/e-UkraineHead-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

/* === Overall Settings === */
html {
    height: 100%;
}

html, body, h1, h2, figure {
    margin: 0px;
    padding: 0px;
    width: 100%;
}

body {
    color: var(--text-base);
    background-color: var(--bg-base);
    font-family: 'e-Ukraine';
    display: flex;
    flex-direction: column;
    align-content: space-between;
}

.container {
    margin: 0 420px;
}

article {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    gap: 120px;
    padding-top: 125px;
    padding-bottom: 125px;
}

/* === Header === */
header {
    flex-shrink: 0;
    height: 800px;
    width: 100%;
    padding: 173px 604px 218px 405px;
    color: var(--text-on-dark);
    background-image: url('static/images/hero.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 63px;
    width: 1052px;
}

.hero__title {
    font-family: 'e-Ukraine Head';
    font-size: 76px;
    font-weight: 500;
}

/* === Brand === */
.brand {
    display: flex;
    align-items: center;
    width: 245px;

    font-family: 'e-Ukraine Head'; 
    box-sizing: border-box;
}

.brand h2 {
    padding-left: 25px;
    font-size: 35px;
    font-weight: 700;
    display: inline-block;
    border-left: 10px solid var(--text-on-dark);
    line-height: 1.2;
}

/* === Text Block === */
.text-block__title {
    font-family: 'e-Ukraine Head';
    font-size: 35px;
    font-weight: 600;
}

p {
    font-size: 24px;
    font-family: 'e-Ukraine Head';
    font-weight: 300;
    line-height: 42px;
}

.map-block__title,
.stats-block__title,
.factoid-block__title {
    font-family: 'e-Ukraine Head';
    font-size: 40px;
    line-height: 54px;
}

/* === Map Block === */

.map-block__title {
    font-family: 'e-Ukraine Head';
    font-size: 40px;
    font-weight: 400;
    line-height: 54px;
}

.map-block {
    background-color: var(--bg-highlight);
    display: flex;
    gap: 48px;
    justify-content: center;
    align-items: center;
  /* padding: 64px; */
}

.map-block__visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1000px;
    margin: 0 420px;
}

.map-block__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.map-block__info {
    max-width: 480px;
    flex-shrink: 0;
}

.map-block__title {
    font-family: 'e-Ukraine Head';
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
}

.map-block__highlight {
    background-color: var(--background-accent-secondary);
    border-radius: 6px;
    padding: 2px 8px;
}

.map-block__subtitle {
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.map-block__leaders {
    list-style: none;
    padding: 0;
    margin: 0;
}

.map-block__leader {
    background-color: var(--background-accent-secondary);
    padding: 8px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* === Stats Block === */
.stats-block {
    background-color: var(--bg-accent-secondary);
}

.stats-block__title {
    font-family: 'e-Ukraine Head';
    font-size: 40px;
    line-height: 54px;
}

/* === Factoid Block === */
.factoid-block {
    font-family: 'e-Ukraine Head';
    justify-content: center;
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.factoid {
    width: 400px;
    height: 360px;
    padding: 50px 30px;
    border: 3px solid var(--text-accent-primary);
    box-sizing: border-box;
}

.factoid__value {
    color: var(--text-accent-primary);
    font-size: 110px;
    font-weight: 500;
    padding-bottom: 30px;
}

.factoid__text {
    font-size: 25px;
    font-weight: 300;
}

/* === Footer === */
footer {
    flex-shrink: 0;
    color: var(--text-on-dark);
    background-color: var(--bg-accent-primary);
    box-sizing: border-box;
    margin-top: auto;
}

.footer__content {
    padding: 76px 0;
    display: flex;
    flex-direction: column;
    gap: 63px;
}

.footer__brand-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 117px;
}

.footer__partners {
    display: flex;
    align-items: center;
    gap: 63px;
}

.footer__text {
    font-family: 'e-Ukraine Head';
    font-size: 18px;
    line-height: 29px;
    margin: 0;
}


/* RESPONSIVENESS FOR MOBILE AND TABLETS*/

/* === Large Tablets (≤1200px) === */
@media (max-width: 1200px) {
    .container {
        margin: 0 120px;
    }

    header {
        padding: 140px 200px 160px 150px;
        height: 650px;
    }

    .hero__title {
        font-size: 58px;
    }

    .map-block__visual {
        height: 700px;
        margin: 0 120px;
    }
}

/* === Tablets (≤900px) === */
@media (max-width: 900px) {
    .container {
        margin: 0 60px;
    }

    header {
        padding: 120px 80px;
        height: 500px;
    }

    .hero__content {
        width: 100%;
        gap: 40px;
    }

    .hero__title {
        font-size: 44px;
        line-height: 1.15;
    }

    p {
        font-size: 20px;
        line-height: 32px;
    }

    .map-block__visual {
        margin: 0 40px;
        height: 500px;
    }

    .factoid {
        width: 300px;
        height: auto;
        padding: 30px 20px;
    }

    .factoid__value {
        font-size: 80px;
    }

    .factoid__text {
        font-size: 20px;
    }
}

/* === Phones (≤600px) === */
@media (max-width: 600px) {

    /* Layout */
    .container {
        margin: 0 20px;
    }

    article {
        gap: 60px;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* Header */
    header {
        padding: 100px 30px 80px 30px;
        height: auto;
        min-height: 420px;
        background-position: center center;
    }

    .hero__content {
        gap: 30px;
        width: 100%;
    }

    .brand h2 {
        font-size: 26px;
        padding-left: 15px;
        border-left-width: 6px;
    }

    .hero__title {
        font-size: 32px;
        line-height: 1.2;
    }

    /* Text */
    .text-block__title {
        font-size: 28px;
    }

    p {
        font-size: 18px;
        line-height: 28px;
    }

    /* Map blocks */
    .map-block {
        padding: 32px 0;
    }

    .map-block__visual {
        margin: 0 10px;
        height: auto;
        max-height: 350px;
    }

    .map-block__visual img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Factoids */
    .factoid-block {
        gap: 24px;
    }

    .factoid {
        width: 80%;
        height: auto;
        padding: 24px 20px;
    }

    .factoid__value {
        font-size: 54px;
        padding-bottom: 10px;
    }

    .factoid__text {
        font-size: 18px;
    }

    /* Footer */
    .footer__content {
        padding: 40px 20px;
        gap: 40px;
    }

    .footer__brand-block {
        flex-direction: column;
        gap: 40px;
    }

    .footer__partners {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer__text {
        font-size: 16px;
        line-height: 24px;
    }
}
