@font-face {
    font-family: 'A24';
    src: url("../fonts/A24-Regular.otf") format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-Regular.ttf") format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-Regular.ttf") format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-SemiBold.ttf") format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url("../fonts/Montserrat-Bold.ttf") format('truetype');
    font-weight: 700;
    font-display: swap;
}

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


.desktop {
    display: block;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #C70709;
    background-color: #FFFFEE;
    overflow-x: hidden;
    /* Защита от горизонтального скролла */
}


/* ================= SIDE MENU ================= */
/* Стили для бокового меню */
.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    /* Прячем за левым краем */
    width: 300px;
    height: 100%;
    color: #C70709;
    background-color: #FFFFEE;
    /* Или черный, как на скрине */
    z-index: 1001;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 25px;
    display: flex;
    flex-direction: column;
}

.side-menu.open {
    left: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

.menu-close-btn {
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    align-self: flex-start;
    margin-bottom: 50px;
}


.menu-link {
    color: #C70709;
    text-decoration: none;
    font-size: 25px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.menu-link:hover {
    opacity: 0.7;
}

/* Чтобы скрыть скролл при открытом меню */
body.no-scroll {
    overflow: hidden;
}


/* ================= MOBILE MENU ================= */
/* Мобильное меню */
.mobile-side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    /* Спрятано слева */
    width: 100%;
    /* Не на весь экран, чтобы был виден оверлей */
    height: 100%;
    background-color: #FFFFEE;
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.77, 0.2, 0.05, 1.0);
}

.mobile-side-menu.active {
    transform: translateX(100%);
}


.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px 20px;
}

.mobile-menu-close {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 60px;
}


.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mob-link {
    color: #C70709;
    text-decoration: none;
    font-size: 40px;
    letter-spacing: 1px;
}

.mobile-menu-footer {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-transform: uppercase;
}


/* ================= HEADER ================= */
header {
    width: 100%;
    position: sticky;
    z-index: 100;
    top: 0;
}

.header {
    background-color: #C70709;
    color: #FFFFEE;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(10px, 2vw, 10px) clamp(15px, 4vw, 30px);
    transition: all 0.3s ease;
}

.menu-icon img {
    cursor: pointer;
    width: clamp(30px, 6vw, 100px);
    height: auto;
}

.logo {
    font-family: 'A24', sans-serif;
    line-height: 0.8;
    font-size: clamp(40px, 8vw, 140px);
    text-align: center;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-icons {
    display: flex;
    align-items: center;
    gap: clamp(5px, 1.5vw, 15px);
}

.header-icons img {
    width: clamp(20px, 3.5vw, 60px);
    height: auto;
    cursor: pointer;
}


/* ================= CART ================= */
/* Окно корзины */
.cart-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    /* Начальное состояние чуть меньше */
    width: 90%;
    max-width: 500px;
    background-color: #FFFFEE;
    border-radius: 2vw;
    z-index: 2001;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Шапка корзины */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #C70709;
    padding-bottom: 10px;
}

.cart-title {
    color: #C70709;
    font-size: 24px;
    text-transform: uppercase;
    margin: 0;
}

.cart-close-btn {
    background: none;
    border: none;
    color: #C70709;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

/* Список товаров */
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    background: #eee;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cart-item-name {
    color: #C70709;
    font-weight: bold;
    text-transform: lowercase;
}

.cart-item-price {
    color: #C70709;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #C70709;
    font-size: 20px;
    cursor: pointer;
}

/* Футер корзины */
.cart-footer {
    margin-top: 20px;
    border-top: 2px solid #C70709;
    padding-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    color: #C70709;
    font-weight: bold;
    font-size: 20px;
    margin-bottom: 20px;
}

.cart-checkout-btn {
    width: 100%;
    background-color: #C70709;
    color: #FFFFEE;
    border: none;
    padding: 15px;
    font-size: 18px;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.cart-checkout-btn:hover {
    background-color: #000;
}





/* CONTENT */
.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: left;
    padding: 2vw 2vw;
    color: #000;
}

.container a {
    font-size: 40px;
    text-decoration: none;
    color: #000;
}

.subtitle {
    width: 95%;
    font-size: clamp(19px, 2.5vw, 60px);
    font-weight: 600;
    margin: 1vw 0;
}

.text-content {
    width: 95%;
    font-size: clamp(14px, 1.9vw, 55px);
    font-weight: 500;
    margin-bottom: 2vw;
}

ol.custom-counter {
    list-style: none;
    /* Убираем стандартные маркеры */
    counter-reset: item;
    /* Инициализируем счётчик */
}

ol.custom-counter li {
    counter-increment: item;
    /* Увеличиваем счётчик для каждого элемента */
    padding-left: 1.5em;
    /* место под номер */
    text-indent: -1.8em;
    /* сдвигаем первую строку назад */
}

ol.custom-counter li::before {
    display: inline-block;
    text-indent: 0.6em;
    /* сдвигаем первую строку назад */

    width: 1.5em;
    /* Фиксированная ширина для выравнивания */
    margin-right: 0.3em;
    /* Отступ справа */
    text-align: center;
    /* Выравнивание номера по правому краю внутри блока */
}

ol.counter-dash li::before {
    content: "- ";
}

ol.counter-dot li::before {
    content: "• ";

    font-size: 60px;
    line-height: 15px;
}

ol.counter-num li::before {
    content: counter(item) ". ";
}

ol.counter-num2 li::before {
    content: counter(item) ") ";
}

#features-nylon li::before {
    content: counter(item) ") ";
    /* Выводим номер + скобка + пробел */

}

#cant-do li::before {
    content: "- ";
    /* Выводим номер + скобка + пробел */

}

#cleaning-needle li::before {
    content: counter(item) ". ";
    /* Выводим номер + скобка + пробел */
}

/* Список с тире (Совет 3, Совет 4 запреты, Календарь) */
#disk-cleaning li::before,
#vinyl-donts li::before,
#calendar li::before {
    content: "- ";
}

/* Список с цифрой и точкой (Совет 4, Совет 5) */
#vinyl-rules li::before,
#tools-list li::before {
    content: counter(item) ". ";
}

/* Стили для выделения важных предупреждений */
.text-content strong {
    font-weight: 700;
}

/* Список с тире для климатических зон и календаря */
#climate-wet li::before,
#climate-dry li::before,
#climate-temp li::before,
#final-calendar li::before {
    content: "•";
    font-size: 60px;
    line-height: 15px;
}

#climate-wet li,
#climate-dry li,
#climate-temp li,
#final-calendar li {
    text-indent: -2.7em;

}

img {
    width: 40%;
    margin: 2vw 0;
}




.articles {
    height: 80vh;
    min-height: 700px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.articles-row {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 45%;
}

.articles-item {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: clamp(10px, 1.4vw, 55px);
    text-align: center;
    transition: transform 0.4s ease;
}

.articles-item:hover {
    transform: scale(1.1);
}

.articles-item img {
    width: 70%;
    height: 16vw;
    border-radius: 2vw;
    object-fit: cover;
    margin-bottom: 1vw;
}

.articles-item p {
    height: 20%;
    width: 100%;
}

.double-width {
    width: 130%;
}


.mobile {
    display: none;
}
@media (max-width: 768px) {
    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }


    .articles {
        height: 100vh;
        justify-content: flex-start;
    }

    .articles-item {
        height: 40%;
    }
    .articles-item p{
        height: auto;
    }

    .articles-row {
        flex-direction: column;
    }

    .articles-row a {
        flex-direction: row;
        width: 100%;
    }

    .articles-row img {
        height: 70%;
        width: 30%;
        margin: 0 3vw;
    }

    .articles-row p {
        width: 60%;
        font-size: 15px;
    }

    #climate-wet li::before,
    #climate-dry li::before,
    #climate-temp li::before,
    #final-calendar li::before {
        font-size: 20px;
    }
}