:root {
    --viewport-height: 729px;
    --text-color: #402810;
    --hover-text-color: #160c00;
    --hover-background: #F0EEEC;
    --border-boxShadow: #CFCDCB;
    --green: #00F040;
    --hover-green: #00c040;
    --pop-up-window: #160c00c0;

    --minName: 8pt;
    --navButtons: 11pt;
    --productCardText: 12pt;
    --productCardInfo: 12pt;
    --orderButtons: 14pt;
    --contactsTable: 14pt;
    --h4-contactsInnerHeader: 16pt;
    --servises-advantages-aboutUs-delivery: 20pt;
    --name-h3: 24pt;
    --cross: 24pt;
    --h2: 68pt;
    --h1: 76pt;
}

html { 
    scroll-behavior: smooth; 
}

body {
    margin: 0 1em;
    font-family: sans-serif;
    font-size: 12pt;
    color: var(--text-color);
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: space-between;
    width: 1200px;
    height: fit-content;
    margin: 0 auto;
    gap: 120px;
}

button {
    cursor: pointer;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 70px;
    margin: 0 0 -70px 0;
    padding: 15px 0;
    background: #ffffff;
    transition: all 0.25s ease;
    position: sticky;
    top: 0;
    z-index: 2;
}

.footer .header {
    margin: 0;
}

.header a {
    /* width: 100%; */
    margin: 0;
    text-align: right;
    line-height: 14pt;
}

a[href='tel:88469791020'], a[href='tel:89171013605'], a[href='mailto:listsam22@mail.ru'] {
    font-weight: 900;
    font-size: var(--navButtons);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.25s ease;
}

a[href='mailto:listsam22@mail.ru'] {
    font-weight: 100;
    /* font-size: 10pt; */
    line-height: 22pt;
}

a[href='tel:88469791020']:hover, a[href='tel:89171013605']:hover, a[href='mailto:listsam22@mail.ru']:hover {
    color: var(--hover-green);
}

.header-edge-left, .header-edge-right {
    display: flex;
    width: 14%;
    height: 100%;
}

.header-edge-right {
    width: 12%;
    justify-content: right;
}

.logo {
    cursor: pointer;
    transition: all 0.25s ease;
}

.logo:hover {
    color: var(--hover-green);
}

.logo img {
    height: 100%;
    margin: 0 1em 0 0;
}

.header-edge-name, .header-edge-tel {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
}

.header-edge-tel {
    width: fit-content;
}

.header-edge-name strong {
    margin: 0;
    font-size: var(--name-h3);
    font-weight: 600;
    animation: none;
}

.header-edge-name p {
    width: 100%;
    margin: 0;
    font-size: var(--minName);
}

.nav {
    display: flex;
    justify-content: center;
    width: 60%;
    gap: 1em;
}

button[class='nav-button'] {
    padding: 0.75em 1em;
    border: none;
    border-radius: 0.5em;
    background: none;
    font-size: var(--navButtons);
    color: var(--text-color);
    transition: all 0.25s ease;
}

button[class='nav-button']:hover {
    background: var(--hover-background);
    color: var(--hover-text-color);
}

button[class='nav-button']:active {
    background: #ffffff;
    color: var(--text-color);
}

.dropdown-list-button {
    display: none;
    width: fit-content;
    height: fit-content;
    padding: 0 0.25em 0.1em 0.25em;
    border-radius: 0.25em;
    font-size: var(--dropdownListiButton);
    color: var(--text-color);
}

.dropdown-list {
    display: none;
    flex-wrap: wrap;
    width: min-content;
    height: fit-content;
    padding: 0 0 0.75em 0;
    border-radius: 0 0 1em 1em;
    background: #ffffff;
    transition: all 0.25s ease;
    position: fixed;
    top: 10%;
    right: 3%;
    z-index: 3;
}

.dropdown-list:hover {
    color: var(--text-color);
}

.section {
    width: 100%;
    height: 500px;
    overflow-y: hidden;
}

.wholesale {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-side {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    width: 45%;
    height: 100%;
}

.page-section-name {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100% - 25% - 70px);
    padding: 20px;
    border-bottom: solid 1px var(--text-color);
    overflow: hidden;
}

@keyframes up {
    0% {margin-top: 100%; opacity: 0;}
    100% {margin-top: 0; opacity: 1;}
}

h1, h2, h3, h4 {
    height: fit-content;
    margin: 0;
    font-weight: lighter;
}

h1 {
    font-size: var(--h1);
    font-weight: 500;
    line-height: 1em;
    letter-spacing: 0.025em;
    animation: up 2s ease;
}

h2 {
    font-size: var(--h2);
    font-weight: 500;
}

h3 {
    height: min-content;
    font-size: var(--name-h3);
    font-weight: 600;
}

h4 {
    width: 100%;
    font-size: var(--h4-contactsInnerHeader);
    font-weight: 600;
}

.page-section-tiles {
    display: grid;
    grid-template: repeat(2, 1fr) / repeat(12, 1fr);
    gap: 0.5em;
    width: 100%;
    height: 25%;
}

.footer .page-section-tiles {
    display: flex;
    justify-content: space-between;
    height: calc((500px * 0.25 - 0.5em) / 2);
    margin: 0 auto;
}

@keyframes appearing {
    0% {opacity: 0;}
    75% {opacity: 0;}
    100% {opacity: 1;}
}

button[class="nav-tile"] {
    padding: 0.5em;
    border: none;
    border-radius: 0.5em;
    background: #ffffff;
    font-size: var(--navButtons);
    font-weight: lighter;
    color: var(--text-color);
    transition: all 0.25s ease;
}

.footer button[class="nav-tile"] {
    min-width: 10%;
    max-width: 14%;
}

button[class="nav-tile"]:hover {
    background: var(--hover-background);
    color: var(--hover-text-color);
}

button[class="nav-tile"]:active {
    background: #ffffff;
    color: var(--text-color);
}

button[name="printing-paper"] {
    grid-row: 1/2;
    grid-column: 1/4;
}

button[name="packaging-paper"] {
    grid-row: 1/2;
    grid-column: 4/7;
}

button[name="paperboard"] {
    grid-row: 1/2;
    grid-column: 7/10;
}

button[name="engineering-paper"] {
    grid-row: 1/2;
    grid-column: 10/13;
}

button[name="food-industry-paper"] {
    grid-row: 2/3;
    grid-column: 1/5;
}

button[name="filter-paper-and-carton"] {
    grid-row: 2/3;
    grid-column: 5/9;
}

button[name="restoration-paper"] {
    grid-row: 2/3;
    grid-column: 9/13;
}

.section img[id="preview"] {
    width: 45%;
    animation: appearing 2.5s ease;
}

.catalog, .multi-rows-section, .contacts, .contacts-inner {
    display: flex;
    flex-wrap: wrap;
    height: fit-content;   
}

.catalog {
    gap: 150px;
}

.multi-rows-section {
    gap: 3em;
}

.catalog-section-cards {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    width: 100%;
    height: fit-content;
    gap: 6em calc((100% - 75% - 6em) / 2);
}

.product-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    align-content: space-between;
    width: 25%;
    height: 500px;
    padding: 1em;
    border-radius: 0.5em;
}

.product-card-image {
    display: flex;
    align-items: center;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 0.5em;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    cursor: pointer;
    transition: all 0.5s ease;
}

.product-card-image img:hover {
    transform: translateY(-3%);
}

.product-card h4 {
    cursor: pointer;
    transition: all 0.25s ease;
}

.product-card h4:hover {
    color: var(--hover-green);
}

.short-info {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    width: 100%;
    gap: 0.25em;
    cursor: pointer;
}

.short-info p, .product-card span {
    width: 100%;
    margin: 0;
    font-size: var(--productCardText);
    font-weight: lighter;
}

.product-card button[name="order"], button[name="send"] {
    width: 100%;
    height: 2.5em;
    border: none;
    border-radius: 0.5em;
    background: var(--green);
    font-size: var(--orderButtons);
    font-weight: 600;
    color: #ffffff;
    transition: all 0.25s ease;
}

.product-card button[name="order"]:hover, button[name="send"]:hover {
    background: var(--hover-green);
}

.product-card button[name="order"]:active, button[name="send"]:active {
    background: var(--green);
}

.product-card-info-header, .contacts-inner-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    align-content: space-between;
    width: 100%;
    height: fit-content;
    gap: 1.25em;
}

.product-card-info-header {
    /* max-height: 90%; */
    /* overflow: auto; */
}

.contacts-inner-header {
    justify-content: left;
    gap: 0.75em;
}

button[name="cross"] {
    width: fit-content;
    height: fit-content;
    margin: 0 0 0.25em 0;
    border: none;
    border-radius: 0.5em;
    background: none;
    font-size: var(--cross);
    font-weight: lighter;
    line-height: 1.1em;
    color: var(--text-color);
    transition: all 0.25s ease;
}

button[name="cross"]:hover {
    background: var(--hover-background);
    color: var(--hover-text-color);
}

.product-card span {
    font-size: var(--productCardInfo);
    line-height: 1.25em;
}

.services, .about-us, .delivery {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.serv-name, .about-us-name, .delivery-name {
    align-items: end;
    height: calc(50% + 0.5em + 20px);
}

.services-info, .about-us-info, .delivery-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    align-content: center;
    width: 45%;
    height: 100%;
}

.services-info ul {
    padding: 0 0 0 2em;
}

.serv, .about, .deliv {
    display: flex;
    align-items: center;
    height: fit-content;
}

.serv {
    margin: 3em 0;
}

.serv li, .advantage p, .about p, .deliv p {
    font-size: var(--servises-advantages-aboutUs-delivery);
    font-weight: lighter;
}

.serv li {
    list-style-type: "✔";
    padding: 0 0 0 0.75em;
}

.serv li::marker {
    color: var(--hover-green);
}

.advantages {
    display: grid;
    grid-template: repeat(2, 1fr) / repeat(2, 1fr);
    gap: 2em;
}

.advantage {
    display: flex;
    align-items: center;
    padding: 2em;
    gap: 1em;
    overflow-y: hidden;
}

.adv-first {
    grid-row: 1/2;
    grid-column: 1/2;
}

.adv-second {
    grid-row: 2/3;
    grid-column: 1/2;
}

.adv-third {
    grid-row: 1/2;
    grid-column: 2/3;
}

.adv-fourth {
    grid-row: 2/3;
    grid-column: 2/3;
}

.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.icon img {
    width: 100%;
}

.advantage p {
    max-width: 60%;
    margin: 0;
    padding: 0;
}

.contacts {
    height: 660px;
    justify-content: space-between;
}

.contacts-inner {
    height: 100%;
    align-content: space-between;
    width: 45%;
}

.contacts-inner h3, .contacts-inner-header span, .contacts-inner-header a {
    width: 100%;
}

.contacts-inner h3 {
    margin: 1em 0;
}

.contacts-inner-header span {
    font-size: var(--h4-contactsInnerHeader);
    font-weight: lighter;
}

.contacts-inner-header a {
    margin: -0.1em 0;
}

.contacts-inner-header table {
    width: fit-content;
    height: fit-content;
    margin: 0.5em 0 0 0;
    padding: 0.5em;
    border: solid 1px var(--border-boxShadow);
    border-radius: 0.5em;
}

.contacts-inner-header table td {
    padding: 0.25em 0.5em;
    font-size: var(--contactsTable);
    vertical-align: middle;
}

.contacts iframe {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 0.5em;
}

.footer {
    display: flex;
    flex-wrap: wrap;
    align-content: space-between;
    width: 100%;
    gap: 2em;
}

#copyright {
    width: 100%;
    margin: 1em 0 2em 0;
    padding: 1em 0;
    text-align: center;
}

@keyframes popUpWindow {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

.pop-up-window {
    display: none;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    background-color: var(--pop-up-window);
    animation: popUpWindow 0.5s ease;
    position: fixed;
    z-index: 9999;
}

.pop-up-window-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    align-content: start;
    width: 22.5%;
    height: fit-content;
    margin: auto;
    padding: 1.5em;
    gap: 1em;
    border-radius: 0.5em;
    background-color: #ffffff;
}

.pop-up-window-form h3 {
    width: 100%;
    margin: 0.25em 0;
    text-align: left;
    font-weight: lighter;
}

.pop-up-window-form button[name="cross"] {
    margin: 0;
    font-size: var(--cross);
}

input, textarea {
    width: 100%;
    padding: 0.25em;
    border: none;
    border-bottom: solid 2px var(--border-boxShadow);
    outline: none;
    font-size: var(--productCardInfo);
    color: var(--text-color);
}

.field-hint {
    height: fit-content;
    margin: 1em 0 0 0;
    padding: 0.25em 0 0 0;
    font-size: var(--minName);
    color: #808080;
    opacity: 0;
    transition: all 0.25s ease;
}

textarea {
    margin: 2em 0 0 0;
    border: none;
    border-left: solid 2px var(--border-boxShadow);
    font-family: sans-serif;
    resize: none;
}

.checkbox-and-label {
    display: flex;
    height: fit-content;
    margin: 2em 0 0 0;
    gap: 0.5em;
}

input[type="checkbox"] {
    width: 1.25em;
    height: 1.25em;
    accent-color: var(--green);
    cursor: pointer;
}

label {
    margin: 0.25em 0 0 0;
    font-size: var(--navButtons);
    cursor: pointer;
}

label a {
    color: var(--text-color);
    transition: all 0.25s ease;
}

label a:hover {
    color: var(--hover-green);
}

button[name="send"] {
    margin: 2em 0 0 0;
}

button[name="send"]:disabled {
    background: #808080;
    pointer-events: none;
}

@keyframes notification-appearence {

    0% {margin-bottom: -3em; opacity: 1;}
    10% {margin-bottom: 2em;}
    80% {opacity: 1;}
    100% {opacity: 0;}
}

.notification {
    width: fit-content;
    height: fit-content;
    margin: 2em;
    padding: 1em;
    border-radius: 0.5em;
    background-color: var(--hover-background);
    font-size: var(--contactsTable);
    color: var(--text-color);
    opacity: 0;
    animation: notification-appearence 5s ease;
    position: fixed;
    bottom: 0;
    right: 0;
    z-index: 5;
}





@media (min-width: 1920px) {

    :root {
        --minName: 10pt;
        --navButtons: 14pt;
        --productCardText: 16pt;
        --productCardInfo: 14pt;
        --orderButtons: 20pt;
        --contactsTable: 18pt;
        --h4-contactsInnerHeader: 18pt;
        --servises-advantages-aboutUs-delivery: 24pt;
        --name-h3: 32pt;
        --cross: 28pt;
        --h2: 76pt;
        --h1: 92pt;
    }

    body {
        font-size: 14pt;
    }

    .container {
        width: 1600px;
    }

    .section {
        height: 650px;
    }

    .catalog {
        height: fit-content;
    }

    .product-card {
        height: 650px;
    }

    .contacts {
        height: 670px;
    }
}





@media (max-width: 767px) {

    body {
        margin: 0;
        font-size: 10pt;
    }

    .container {
        width: 94%;
        gap: 100px;
    }

    h1 {
        font-weight: 800;
        line-height: 1em;
        letter-spacing: 0.01em;
    }

    .nav {
        display: none;
    }

    .header {
        margin: 0 0 -70px 0;
    }

    .header-edge-left {
        width: fit-content;
    }

    .header-edge-right {
        width: 50%;
    }

    .logo:hover {
        color: var(--text-color);
    }

    .header-edge-name strong {
        line-height: 1em;
    }

    .header-edge-tel {
        display: none;
    }

    .footer .header-edge-tel {
        display: flex;
    }

    a[href='tel:88469791020']:hover, a[href='tel:89171013605']:hover, a[href='mailto:listsam22@mail.ru']:hover {
        color: var(--text-color);
    }

    a[href='tel:88469791020']:hover, a[href='tel:89171013605']:hover, a[href='mailto:listsam22@mail.ru']:hover {
        color: var(--hover-green);
    }

    .dropdown-list-button {
        display: block;
    }

    button[class='nav-button'] {
        width: 100%;
        border-radius: 0;
        text-align: left;
    }

    button[class='nav-button']:hover {
        background: none;
    }

    .left-side {
        width: 100%;
        height: 100%;
        align-content: flex-start;
    }

    .section {
        height: 600px;
    }
    
    .wholesale {
        height: 570px;
    }

    .section img[id="preview"] {
        display: none;
    }

    .page-section-tiles, .footer .page-section-tiles {
        display: grid;
        grid-template: repeat(4, 1fr) / repeat(6, 1fr);
        gap: 0.5em;
        height: fit-content;
        margin: 0 auto;
    }

    .page-section-name {
        height: 45%;
        margin: 0 auto;
        border: none;
    }

    button[class="nav-tile"] {
        padding: 0.75em 0.5em;
        border: solid 1px var(--text-color);
        font-weight: 500;
    }

    button[class="nav-tile"]:hover {
        background: none;
    }

    .footer button[class="nav-tile"] {
        max-width: 100%;
    }

    button[name="printing-paper"] {
        grid-row: 1/2;
        grid-column: 1/4;
    }

    button[name="packaging-paper"] {
        grid-row: 1/2;
        grid-column: 4/7;
    }

    button[name="paperboard"] {
        grid-row: 2/3;
        grid-column: 1/3;
    }

    button[name="food-industry-paper"] {
        grid-row: 2/3;
        grid-column: 3/7;
    }

    button[name="engineering-paper"] {
        grid-row: 3/4;
        grid-column: 1/4;
    }

    button[name="filter-paper-and-carton"] {
        grid-row: 3/4;
        grid-column: 4/7;
    }

    button[name="restoration-paper"] {
        grid-row: 4/5;
        grid-column: 1/7;
    }

    .catalog {
        height: fit-content;
        gap: 75px;
    }

    .multi-rows-section {
        gap: 1.5em;
    }

    .catalog-section-cards {
        gap: 1em calc((100% - 84% - 4em) / 2);
    }

    .product-card {
        width: 42%;
        height: 310px;
    }

    .product-card-info-header {
        gap: 1em;
    }

    .product-card h4:hover {
        color: var(--text-color);
    }

    .product-card span {
        min-height: 280px;
        max-height: auto;
        font-size: 14pt;
    }

    button[name="cross"] {
        margin: 0.25em 0 0.75em 0;
    }

    .services, .about-us, .delivery {
        flex-wrap: wrap;
        height: fit-content;
    }

    .services .left-side, .about-us .left-side, .delivery .left-side {
        width: 100%;
        height: fit-content;
    }

    .serv-name, .about-us-name, .delivery-name {
        height: fit-content;
    }

    .services-info, .about-us-info, .delivery-info {        
        width: 100%;
        height: fit-content;
    }

    .about-us-info, .delivery-info {
        margin: 1em 0 0 0;
    }

    .services-info ul {
        padding: 0 0 0 3em;
    }

    .advantages {
        grid-template: repeat(4, 1fr) / 1fr;
        gap: 0;
    }

    .advantage {
        padding: 1em 0;
        gap: 2em;
    }

    .advantage p {
        width: 60%;
    }

    .adv-first {
        grid-row: 1/2;
        grid-column: 1/2;
    }

    .adv-second {
        grid-row: 2/3;
        grid-column: 1/2;
    }

    .adv-third {
        grid-row: 3/4;
        grid-column: 1/2;
    }

    .adv-fourth {
        grid-row: 4/5;
        grid-column: 1/2;
    }
    
    .about-us-info p, .delivery-info p {
        margin: 0.75em 0;
    }

    .contacts {
        flex-wrap: wrap;
        height: 1100px;
        gap: 2em;
    }

    .contacts-inner {
        width: 100%;
        height: fit-content;
        gap: 2em;
    }

    .contacts-inner span {
        font-size: var(--servises-advantages-aboutUs-delivery);
    }

    .contacts-inner-header {
        gap: 1em;
    }

    .contacts-inner-header h3 {
        margin: 0.5em 0;
    }

    .contacts iframe {
        width: 100%;
        height: 250px;
    }

    .short-info p, .product-card-info-header span, .services-info li, .advantage p, .about p, .deliv p, .contacts-inner-header span {
        font-weight: 400;
    }

    #copyright {
        font-size: var(--orderButtons);
    }

    .pop-up-window-form {
        width: 80%;
    }

    input, textarea {     
        font-size: var(--cross);
    }

    input[type="checkbox"] {
        width: 2em;
        height: 2em;
    }

    label a:hover {
        color: var(--text-color);
    }

    label a:active {
        color: var(--hover-green);
    }

    .notification {
        width: auto;
        left: 0;
    }



    @media (min-width: 425px) and (max-width: 767px) {

        :root {
            --minName: 9pt;
            --navButtons: 13pt;
            --dropdownListiButton: 34pt;
            --productCardText: 9pt;
            --productCardInfo: 10pt;
            --orderButtons: 13pt;
            --contactsTable: 16pt;
            --h4-contactsInnerHeader: 12pt;
            --servises-advantages-aboutUs-delivery: 16pt;
            --name-h3: 26pt;
            --cross: 13pt;
            --h2: 44pt;
            --h1: 64pt;
        }

        .product-card {
            height: 450px;
        }

        @media (min-width: 425px) and (max-width: 499px) {

            .product-card {
                height: 350px;
            }
        }
    }



    @media (min-width: 375px) and (max-width: 424px) {

        :root {
            --minName: 8pt;
            --navButtons: 12pt;
            --dropdownListiButton: 32pt;
            --productCardText: 8pt;
            --productCardInfo: 9pt;
            --orderButtons: 12pt;
            --contactsTable: 14pt;
            --h4-contactsInnerHeader: 10pt;
            --servises-advantages-aboutUs-delivery: 14pt;
            --name-h3: 24pt;
            --cross: 12pt;
            --h2: 42pt;
            --h1: 60pt;
        }
    }



    @media (max-width: 374px) {

        :root {
            --minName: 7pt;
            --navButtons: 10pt;
            --dropdownListiButton: 28pt;
            --productCardText: 8pt;
            --productCardInfo: 9pt;
            --orderButtons: 10pt;
            --contactsTable: 12pt;
            --h4-contactsInnerHeader: 9pt;
            --servises-advantages-aboutUs-delivery: 12pt;
            --name-h3: 22pt;
            --cross: 12pt;
            --h2: 38pt;
            --h1: 52pt;
        }

        body {
            font-size: 8pt;
        }

        .container {
            gap: 80px;
        }

        .product-card {
            height: 280px;
        }

        button[name="cross"] {
            font-size: 16pt;
        }
    }
}