﻿@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 400;
    src: url('fira-sans-v16-latin-regular.eot');
    src: local(''), url('fira-sans-v16-latin-regular.eot@') format('embedded-opentype'), url('fira-sans-v16-latin-regular.woff2') format('woff2'), url('fira-sans-v16-latin-regular.woff') format('woff'), url('fira-sans-v16-latin-regular.ttf') format('truetype'), url('fira-sans-v16-latin-regular.svg') format('svg');
}

@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 700;
    src: url('fira-sans-v16-latin-700.eot');
    src: local(''), url('fira-sans-v16-latin-700.eot@') format('embedded-opentype'), url('fira-sans-v16-latin-700.woff2') format('woff2'), url('fira-sans-v16-latin-700.woff') format('woff'), url('fira-sans-v16-latin-700.ttf') format('truetype'), url('fira-sans-v16-latin-700.svg') format('svg');
}

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

html {
    min-height: 100%;
}

body {
    font-family: 'Fira Sans', Arial, sans-serif;
    font-size: 15px;
    line-height: 21px;
    color: #242021;
    font-weight: 400;
}

#wrapper {
    max-width: 540px;
    margin: 16px auto;
    border: solid thin #242021;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    background: #ee3696;
}

header {
    position: relative;
    background: #fff;
    padding: 0 0 30px;
}

article {
    padding: 22px 1.75rem 2.0625rem;
}

figure {
    position: absolute;
    bottom: 5px;
    right: 29px;
}

aside {
    position: absolute;
    top: 1.25rem;
    right: 0;
}

footer {
    display: flex;
    align-items: flex-end;
    padding: 0 1.75rem 27px;
    gap: 20px;
}

footer p {
    font-size: 1.4375rem;
    line-height: 1.6875rem;
}

section {
    background: url('background.jpg') 0 0 no-repeat;
    width: 374px;
    height: 138px;
    padding: 29px 0 0 14px;
    background-size: 100% 100%;
}

section p strong {
    font-size: 16px;
}

:is(strong, h1, h2) {
    font-weight: 700;
}

h1 {
    font-size: 29px;
    margin: 0.625rem 0 1rem 0;
    line-height: 1.75rem;
    position: relative;
    color: #fff;
}

h1:before {
    position: absolute;
    content: "";
    background: #fff;
    width: 1.375rem;
    height: 3px;
    bottom: -8px;
    left: 0;
}

h1 span {
    font-size: 0.9375rem;
    line-height: 22px;
    font-weight: 400;
}

h1 span:nth-of-type(2) {
    display: block;
}

h2 {
    font-size: 3.625rem;
    margin: 1rem 1.75rem 1rem;
    line-height: 4.0625rem;
    color: #ED3896;
}

img {
    max-width: 100%;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: #fff;
    text-decoration: none;
}

@media screen and (max-width:540px) {
    #wrapper {
        border: none;
        margin: 0 auto;
        hyphens: auto;
    }

    header {
        padding-bottom: 10px
    }

    section {
        max-width: 338px;
    }

    article {
        padding: 0 3%;
    }

    h1 {
        font-size: 1.3125rem;
        line-height: 1.2;
    }

    h1 br {
        display: none;
    }

    h2 {
        font-size: 12vw;
        line-height: 1.1;
        margin: 3%;
    }

    figure {
        width: 30%;
        right: -9px;
    }

    footer {
        padding-top: 30px
    }

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

    aside {
        width: 160px;
    }

    section p strong {
        font-size: 15px;
    }
}

@media screen and (max-width:380px) {
    figure {
        display: none
    }

    footer {
        flex-direction: column;
        align-items: center;
        gap: 10px
    }

    section {
        width: auto;
        background: #fff;
        height: auto;
        padding: 16px;
    }

    section br {
        display: none
    }
}