@font-face {
    font-family: "PT Astra Serif";
    src: url('/local/templates/my/fonts/pt-astra-serif_italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "PT Astra Serif";
    src: url('/local/templates/my/fonts/pt-astra-serif_bold-italic.woff2') format('woff2');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: "PT Astra Serif";
    src: url('/local/templates/my/fonts/pt-astra-serif_regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Alegreya SC";
    src: url("/local/templates/my/fonts/AlegreyaSC-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* 1. CSS-переменные и корень */
html {
    --page-padding: 30px;

}


/* 2. Базовый ресет / основа */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;

    background: #fff;
    overflow-x: clip;
    max-width: 100%;

}

/* 3. Корневые контейнеры */
.page {
    width: 100%;
    position: relative;
}

/* 4. Глобальные layout-ограничения */
.header-wrapper,
.footer-bottombar,
.footer {
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
}

/* 5. Глобальные визуальные эффекты */
::selection {
    background: #E61734;
    color: #FFF;
}

.page-decoration {
    position: relative;
    width: 100%;
    height: 0;
    overflow: visible;
    pointer-events: none;
}

.page-decoration__gnom {
    position: absolute;
    top: -120px;
    right: -1%;
    width: 370px;
    height: auto;
    aspect-ratio: 82 / 85;
    transform: rotate(16.025deg);
    z-index: 10;
    pointer-events: none;
}

.page-decoration__dog {
    position: absolute;
    top: -40px;
    right: 10%;
    width: 415px;
    height: auto;
    transform: rotate(-14.619deg);
    z-index: 10;
    pointer-events: none;
}

.page-decoration__penguin {
    position: absolute;
    top: -110px;
    left: 1%;
    width: auto;
    height: 310px;
    transform: rotate(-8.581deg);
    z-index: 10;
    pointer-events: none;
}

.page-decoration__patterns {
    position: absolute;
    top: 80px;
    left: -9%;
    width: auto;
    height: 598px;
    z-index: 10;
    pointer-events: none;
}


h1.container--nopad--inside {
    color: #005C67;
    font-family: "PT Astra Serif", serif;
    font-size: 48px;
    font-style: italic;
    font-weight: 700;
    line-height: 25.6px;
    margin-bottom: 100px;
}


/* Responsive для гнома */
@media (max-width: 1400px) {
    .page-decoration__gnom {
        width: 320px;
        right: -1%;
        top: -115px;
    }
}

@media (max-width: 1200px) {

    .page-decoration__gnom {
        width: 320px;
        right: -1%;
        top: -115px;
    }
}

@media (max-width: 1024px) {
    .page-decoration__gnom {
        width: 220px;
        right: -1%;
        top: -85px;
    }

    .page-decoration__penguin {
        top: -30px;
        left: 4%;
        height: 210px;
    }

    h1.container--nopad--inside {
        margin-bottom: 40px;
    }


}

@media (max-width: 768px) {
    .page-decoration__gnom {
        width: 200px;
        right: 0;
        top: -20px;
    }
}

@media (max-width: 580px) {

    .page-decoration__gnom {
        width: 180px;
        right: 0;
        top: -15px;
    }

    .page-decoration__penguin {
        top: -20px;
        left: 50%;
        transform: translateX(-50%) rotate(-8.581deg);
        height: 180px;
    }

    h1.container--nopad--inside {
        font-size: 24px;
        margin-bottom: 40px;
    }
}



@media (max-width: 540px) {
    html {
        --page-padding: 12px;
    }

    .page {

        padding-top: 5px;
    }

    .page-decoration__dog {
        top: 0px;
        right: auto;
        left: 50%;
        transform: translateX(-50%) rotate(-14.619deg);
        width: 315px;
    }
}

@media (max-width: 480px) {
    .page-decoration__gnom {
        width: 180px;
        right: 0;
        top: -5px;
    }
}

@media (max-width: 380px) {
    .page-decoration__dog {

        width: 280px;
        top: 0px;
        right: auto;
        left: 48%;
        transform: translateX(-50%) rotate(-14.619deg);
    }
}