@font-face {
    font-display: swap;
    font-family: 'Source Code Pro';
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/source-code-pro-latin-400-mKVYA0U.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-display: swap;
    font-family: 'Source Code Pro';
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/source-code-pro-cyrillic-400-aglqMJ3.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-display: swap;
    font-family: 'Source Code Pro';
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/source-code-pro-latin-700-_E72sU6.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-display: swap;
    font-family: 'Source Code Pro';
    font-style: normal;
    font-weight: 700;
    src: url("../fonts/source-code-pro-cyrillic-700-Cp73dG9.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

html, body {
    background-color: white;
    font-family: 'Source Code Pro', monospace;
    margin: 0;
}

:root {
    --primary: rgba(37, 37, 37, 1.0);
    --secondary: rgba(252, 41, 74, 1.0);
    --shades: rgba(238, 238, 238, 1.0);
    --accent: #a91818;
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 12px 24px rgba(0, 0, 0, 0.15);
    --transition: 0.25s ease;
}

[id] {
    scroll-margin-top: 80px;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.button,
form button,
.load-more button {
    background-color: #222;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-family: inherit;
    font-size: 16px;
    padding: 10px 20px;
    text-decoration: none;
    transition: background-color var(--transition);

    &:hover {
        background-color: var(--accent);
    }
}

main p a,
main li a {
    color: var(--accent);
    text-underline-offset: 3px;
    transition: color var(--transition);

    &:hover {
        color: var(--primary);
    }
}

.products-container .product,
.gallery .slider-block-media,
.product-intro-media > a,
.product-intro-thumbs a {
    animation: skeleton 1.4s ease-in-out infinite;
    background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%) 0 0 / 200% 100%;
}

@keyframes skeleton {
    to {
        background-position: -200% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .products-container .product,
    .gallery .slider-block-media,
    .product-intro-media > a,
    .product-intro-thumbs a {
        animation: none;
    }
}

body {
    background-color: var(--primary);
    box-sizing: border-box;
    display: grid;
    font-family: 'Source Code Pro', monospace;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "header"
      "nav"
      "main"
      "footer";
    margin: 0;
    min-height: 100vh;
}

.header {
  grid-area: header;
}

nav {
  grid-area: nav;
}

main {
    align-items: center;
    background-color: white;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    grid-area: main;
    grid-column: 1/-1;
    height: 100%;
    padding: clamp(40px, 8vw, 100px) clamp(20px, 6vw, 100px);
    width: 100%;
}

footer {
  grid-area: footer;
}

main > * {
    max-width: 1200px;
    width: 100%;
}


.slider-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.slider {
    align-items: center;
    display: flex;
    position: relative;
    height: 100%;
}

.slides {
    display: flex;
    margin: 0;
    padding: 0;
    height: 100%;
}

.slide {
    box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    list-style: none;
    overflow: hidden;
    position: relative;
    user-select: none;

    .slider-block-media {
        height: 100%;
    }

    .slider-cover {
        height: 100%;
        object-fit: cover;
        position: relative;
        transition: transform var(--transition);
        width: 100%;
    }

    &:hover .slider-cover {
        transform: scale(1.05);
    }

    .slide-info {
        background: rgba(255, 255, 255, 0.9);
        bottom: 0;
        color: #474747;
        left: 0;
        padding: 10px;
        position: absolute;
        right: 0;

        a {
            color: #474747;

            &:hover {
                text-decoration: underline;
            }
        }
    }
}

.header {
    grid-column: 1/-1;
    max-height: clamp(240px, 45vw, 500px);
}

.header .image, .header video {
    width: 100vw;
    height: 100%;
    object-fit: cover;
}

.home,
.about,
.contact {
    height: 100vh;
}

.header h1 {
    color: var(--shades);
}

.header {
    background-color: var(--primary);
}

.header video {
    width: 100%;
}


