:root {
        --font-family-base: "Roboto Flex", sans-serif;
        --font-family-accent: "Roboto Condensed", sans-serif;
        --container-width: 100rem;
        --container-padding-x: 1rem;
        --header-height: clamp(3.75rem, 3.125rem + 3.125vw, 6.25rem);
        --input-height: clamp(2.5rem, 2.1875rem + 1.5625vw, 3.75rem);
        --padding-block: clamp(0.9375rem, 0.390625rem + 2.734375vw, 3.125rem);
        --radius: clamp(0.625rem, 0.546875rem + 0.390625vw, 0.9375rem);
        --transition-duration: .2s;
        --color-red: #FF0000;
        --color-green: #00CC00;
        --color-blue: #3ea7e2;
        --color-yellow: #FFD11A;
        --color-black: black;
        --color-white: white;
        --color-shadow: rgba(0, 0, 0, 0.4)
}

@font-face {
        font-family: "Roboto Flex";
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url(../fonts/RobotoFlex-Regular.woff2) format("woff2"), url(../fonts/RobotoFlex-Regular.ttf) format("ttf")
}

@font-face {
        font-family: "Roboto Condensed";
        font-style: normal;
        font-weight: 300;
        font-display: swap;
        src: url(../fonts/RobotoCondensed-Light.woff2) format("woff2"), url(../fonts/RobotoCondensed-Light.ttf) format("ttf")
}

@font-face {
        font-family: "Roboto Condensed";
        font-style: normal;
        font-weight: 400;
        font-display: swap;
        src: url(../fonts/RobotoCondensed-Regular.woff2) format("woff2"), url(../fonts/RobotoCondensed-Regular.ttf) format("ttf")
}

@font-face {
        font-family: "Roboto Condensed";
        font-style: normal;
        font-weight: 700;
        font-display: swap;
        src: url(../fonts/RobotoCondensed-Bold.woff2) format("woff2"), url(../fonts/RobotoCondensed-Bold.ttf) format("ttf")
}

*,
::before,
::after {
        box-sizing: border-box
}

:where(ul, ol):where([class]) {
        padding-left: 0
}

body,
:where(blockquote, figure):where([class]) {
        margin: 0
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl):where([class]) {
        margin-block: 0
}

:where(dd[class]) {
        margin-left: 0
}

:where(fieldset[class]) {
        margin-left: 0;
        padding: 0;
        border: none
}

:where(ul[class]) {
        list-style: none
}

:where(address[class]) {
        font-style: normal
}

p {
        --paragraphMarginBottom: 24px;
        margin-block: 0
}

p:where(:not([class]):not(:last-child)) {
        margin-bottom: var(--paragraphMarginBottom)
}

img,
video {
        display: block;
        max-width: 100%;
        height: auto
}

input,
textarea,
select,
button {
        font: inherit
}

html {
        height: 100%
}

html,
:has(:target) {
        scroll-behavior: smooth
}

body {
        min-height: 100%;
        line-height: 1.5
}

a:where([class]) {
        display: inline-flex
}

button,
label {
        cursor: pointer
}

[stroke] {
        stroke: currentColor
}

svg * {
        transition-property: fill, stroke
}

@media(prefers-reduced-motion: reduce) {

        *,
        ::before,
        ::after {
                animation-duration: .01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: .01ms !important;
                scroll-behavior: auto !important
        }
}

html {
        margin-top: 0 !important
}

html.is-lock {
        overflow: hidden
}

body {
        display: flex;
        flex-direction: column;
        row-gap: var(--padding-block);
        font-family: var(--font-family-base);
        font-size: clamp(0.875rem,
                        0.8125rem + 0.3125vw,
                        1.125rem);
        color: var(--color-text);
        background-color: var(--color-background);
        line-height: 1.05
}



main {
        display: flex;
        flex-direction: column;
        row-gap: var(--padding-block);
        flex-grow: 1
}

p {
        --paragraphMarginBottom: 1.5rem
}

a,
button,
label,
input,
textarea,
select,
svg * {
        transition-duration: var(--transition-duration);
}

textarea {
        font-family: var(--font-family-base)
}

a {
        color: inherit
}

@media(any-hover: hover) {
        a:hover {
                color: var(--color-accent)
        }
}

@media(any-hover: none) {
        a:active {
                color: var(--color-accent)
        }
}

a[class] {
        text-decoration: none
}

.container {
        max-width: calc(var(--container-width) + var(--container-padding-x)*2);
        margin-inline: auto;
        padding-inline: var(--container-padding-x)
}



.error {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding-block: 1.875rem;
        background: linear-gradient(280deg, var(--color-background-item) 0%, var(--color-background) 100%)
}

.error .logo__description {
        display: none
}

.error .header {
        width: max-content
}

.error .main {
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 100%;
        height: 100%;
        padding-block: 1.875rem
}

@media(width > 47.99875rem) {
        .error .main {
                flex-grow: 0
        }
}

@media(width > 47.99875rem) {
        .error .main .container {
                display: flex;
                column-gap: clamp(0.625rem,
                                0.390625rem + 1.171875vw,
                                1.5625rem)
        }
}

.error .main .section__body {
        display: flex;
        flex-direction: column;
        row-gap: clamp(0.9375rem,
                        0.78125rem + 0.78125vw,
                        1.5625rem);
        width: min(100%, 34.375rem);
        text-align: center
}

@media(width > 47.99875rem) {
        .error .main .section__body {
                justify-content: center;
                min-width: min(100%, 34.375rem);
                text-align: left
        }
}

.error .main .section__header {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: clamp(0.9375rem,
                        0.78125rem + 0.78125vw,
                        1.5625rem)
}

@media(width > 47.99875rem) {
        .error .main .section__header {
                align-items: flex-start
        }
}

.error .main .section__container p:not(:last-child) {
        padding-bottom: clamp(0.625rem,
                        0.390625rem + 1.171875vw,
                        1.5625rem)
}

.error .main .section__footer {
        display: flex;
        justify-content: center
}

@media(width > 47.99875rem) {
        .error .main .section__footer {
                justify-content: flex-start
        }
}

.error .main .section__title {
        color: var(--color-title);
        font-size: clamp(1.5rem,
                        1.125rem + 1.875vw,
                        3rem);
        font-weight: 900
}

.error .main .section__subtitle {
        font-size: clamp(1rem,
                        0.78125rem + 1.09375vw,
                        1.875rem);
        font-weight: 300
}

.error .main .section__text {
        font-size: clamp(0.875rem,
                        0.71875rem + 0.78125vw,
                        1.5rem);
        font-weight: 300
}

.error .main .section__text .error-email {
        cursor: copy;
        display: inline-flex;
        position: relative;
        color: var(--color-title)
}

@media(any-hover: hover) {
        .error .main .section__text .error-email:hover::before {
                content: attr(data-copy);
                bottom: calc(100% + 0.3125rem)
        }

        .error .main .section__text .error-email:hover::after {
                content: "";
                bottom: calc(100% - 0.0625rem)
        }
}

@media(any-hover: none) {
        .error .main .section__text .error-email:active::before {
                content: attr(data-copy);
                bottom: calc(100% + 0.3125rem)
        }

        .error .main .section__text .error-email:active::after {
                content: "";
                bottom: calc(100% - 0.0625rem)
        }
}

.error .main .section__text .error-email::before,
.error .main .section__text .error-email::after {
        position: absolute;
        transform: translateX(-50%)
}

.error .main .section__text .error-email::before {
        z-index: 2;
        left: 50%;
        bottom: 0.3125rem;
        width: max-content;
        padding: 0.1875rem 0.4375rem;
        border-radius: var(--radius);
        background-color: var(--color-title);
        color: var(--color-background)
}

.error .main .section__text .error-email::after {
        z-index: 1;
        left: 30%;
        bottom: calc(-1*0.125rem);
        width: 0;
        height: 0;
        border-left: 0.3125rem solid rgba(0, 0, 0, 0);
        border-right: 0.3125rem solid rgba(0, 0, 0, 0);
        border-top: 0.4375rem solid var(--color-title)
}

.error .main .section__text .error-email-copy::before {
        background-color: var(--color-black);
        color: var(--color-white)
}

.error .main .section__text .error-email-copy::after {
        border-top-color: var(--color-black)
}

.error .cat {
        z-index: -1;
        position: absolute;
        left: 20vw;
        bottom: 0
}

@media(width > 47.99875rem) {
        .error .cat {
                width: 0;
                position: relative;
                left: auto;
                bottom: auto
        }
}

.error .cat-svg {
        width: 170vw;
        opacity: .2
}

@media(width > 47.99875rem) {
        .error .cat-svg {
                width: auto;
                opacity: 1
        }
}

.error .cat-border {
        fill: var(--color-black)
}

.error .cat-color {
        fill: var(--cat-color)
}

.error .cat-shadow {
        fill: var(--cat-shadow)
}

.error .cat-blick {
        fill: var(--cat-blick)
}

.section__title {
        color: var(--color-title);
        font-family: var(--font-family-accent);
        font-weight: 700
}

.section__title-h1 {
        font-size: clamp(1.875rem,
                        1.71875rem + 0.78125vw,
                        2.5rem)
}


.section__body {
        padding-block: var(--container-padding-x)
}

.social__list {
        display: flex;
        justify-content: center;
        column-gap: 0.625rem;
        width: max-content;
        padding-block: clamp(0.625rem,
                        0.46875rem + 0.78125vw,
                        1.25rem)
}

.social__item-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: clamp(2.5rem,
                        2.34375rem + 0.78125vw,
                        3.125rem);
        height: clamp(2.5rem,
                        2.34375rem + 0.78125vw,
                        3.125rem);
        padding: clamp(0.3125rem,
                        0.234375rem + 0.390625vw,
                        0.625rem);
        border-radius: var(--radius);
        background-color: var(--color-button);
        transition: transform filter .4s ease
}

@media(any-hover: hover) {
        .social__item-link:hover {
                filter: contrast(150%);
                transform: scale(1.05)
        }

        .social__item-link:hover svg {
                transform: scale(1.05)
        }
}

@media(any-hover: none) {
        .social__item-link:active {
                filter: contrast(150%);
                transform: scale(1.05)
        }

        .social__item-link:active svg {
                transform: scale(1.05)
        }
}

.social__item-ico {
        width: 100%;
        height: 100%;
        fill: var(--color-button-text);
        transition: transform .4s linear
}

.logo {
        display: flex;
        align-items: center
}

.logo__link {
        display: block;
        transition: transform .3s ease-in-out
}

@media(any-hover: hover) {
        .logo__link:hover {
                transform: rotate(5deg)
        }
}

@media(any-hover: none) {
        .logo__link:active {
                transform: rotate(5deg)
        }
}

.logo__ico {
        width: var(--header-height);
        height: var(--header-height);
        fill: var(--color-accent);
        transition: var(--transition)
}

.logo__description {
        display: none
}

.logo__name {
        color: var(--color-title);
        font-family: var(--font-family-accent);
        font-weight: 900
}

.switcher {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: max-content;
        height: clamp(2.5rem,
                        2.34375rem + 0.78125vw,
                        3.125rem)
}

.switcher__radio {
        position: absolute;
        width: 0;
        height: 0
}

.switcher__radio:checked {
        filter: invert(1)
}

.switcher__radio:focus {
        outline: none
}

.switcher__radio:checked+label svg {
        fill: var(--color-background)
}

.switcher__item {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        width: clamp(2.5rem,
                        2.34375rem + 0.78125vw,
                        3.125rem);
        height: 100%;
        transition: all .3s linear
}

.switcher__item label {
        cursor: pointer;
        line-height: 0;
        transition: all .3s linear
}

.switcher__item-ico {
        width: clamp(1.25rem,
                        1.09375rem + 0.78125vw,
                        1.875rem);
        height: clamp(1.25rem,
                        1.09375rem + 0.78125vw,
                        1.875rem);
        fill: var(--color-title);
        /* transition-duration: .3s */
}

@media(any-hover: hover) {
        .switcher__item:hover label {
                transform: rotate(5deg) scale(1.1)
        }
}

@media(any-hover: none) {
        .switcher__item:active label {
                transform: rotate(5deg) scale(1.1)
        }
}

.switcher__status {
        z-index: -1;
        position: absolute;
        border-radius: 50%;
        background-color: var(--color-title)
}

.light .switcher__status {
        left: 0
}

.dark .switcher__status {
        left: calc(100% - clamp(2.5rem,
                                2.34375rem + 0.78125vw,
                                3.125rem))
}

.light-auto .switcher__auto svg,
.dark-auto .switcher__auto svg {
        fill: var(--color-background)
}

.light-auto .switcher__status,
.dark-auto .switcher__status {
        left: calc(50% - clamp(2.5rem,
                                2.34375rem + 0.78125vw,
                                3.125rem)/2)
}


@keyframes fillcolor {
        0% {
                fill: var(--color-button)
        }

        100% {
                fill: var(--color-background)
        }
}
