form {
  margin: 0;
  padding: 0;
  display: block;
  unicode-bidi: normal;
}
/* Контакты */
.contacts-page {
        height: clamp(800px, 80vh, 850px);
        position: relative;
        background: #F5F5F5;
        overflow: hidden;
        margin-bottom: 0;
    }
    @media (min-width: 768px) {
        .contacts-page {
            margin-bottom: 60px;
        }
    }
    @media (min-width: 1024px) {
        .contacts-page {
            margin-bottom: 132px;
        }
    }

    /* Декор */
    .contacts-page__decor {
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: 1;
        width: clamp(200px, 30vw, 600px);
    }

    .contacts-page__decor img {
        width: 100%;
        height: auto;
        /* сохраняем пропорции */
        object-fit: contain;
    }

    /* Карта */
    .contacts-page__map {
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 0;
        width: clamp(300px, 60vw, 1000px);
        /* адаптивная ширина */
        max-height: 80%;
        /* чтобы не ломала верстку */
    }

    .contacts-page__map img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Контент поверх картинок */
    .contacts-page__wrapper {
        position: relative;
        z-index: 1;
        /* текст всегда поверх */
    }

    .contacts-page__content {
        margin-left: 0; /* базовый для мобильных */
        z-index: 1;
        position: relative;
        color: #000;
        padding: 40px 40px 40px 0;
    }

    /* Очень маленькие экраны */
    @media (min-width: 320px) {
        .contacts-page__content {
            margin-left: 40px;
        }
    }

    /* Смартфоны */
    @media (min-width: 480px) {
        .contacts-page__content {
            margin-left: 150px;
        }
    }

    /* Планшеты */
    @media (min-width: 768px) {
        .contacts-page__content {
            margin-left: 300px;
        }
    }

    /* Малые десктопы */
    @media (min-width: 1024px) {
        .contacts-page__content {
            margin-left: 540px;
        }
    }

    /* Большие экраны */
    @media (min-width: 1280px) {
        .contacts-page__content {
            margin-left: 640px;
        }
    }

    /* Очень большие экраны */
    @media (min-width: 1600px) {
        .contacts-page__content {
            margin-left: 740px;
        }
    }


    .contacts-page__title {
        margin-top: clamp(50px, 5vw, 205px);
        color: rgba(0, 0, 0, 1);
        font-family: 'Trajan Pro 3', serif;
        font-size: 30px;
        font-weight: 400;
        text-align: center;
    }

    @media (min-width: 768px) {
        .contacts-page__title {
            font-size: 50px;
            text-align: left;
        }
    }

    @media (min-width: 1024px) {
        .contacts-page__title {
            font-size: 70px;
        }
    }

    .contacts-page__data-list {
        margin-top: 40px;
        margin-bottom: 23px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .contact-item {
        display: flex;
        gap: 4px;
        align-items: center;
    }

    .contact-item__icon {
        max-width: 36px;
        max-height: 36px;
    }

    @media (min-width: 1024px) {
        .contact-item__icon {
            max-width: 48px;
            max-height: 48px;
        }
    }

    .contact-item__text {
        color: rgba(79, 79, 79, 1);
        font-family: 'Century Gothic', sans-serif;
        font-size: 18px;
        font-weight: 400;
    }

    @media (min-width: 768px) {
        .contact-item__text {
            font-size: 24px;
        }
    }

    .contact-item__phone {
        color: rgba(79, 79, 79, 1);
        font-family: 'Century Gothic', sans-serif;
        font-size: 27px;
        font-weight: 400;
    }

    @media (min-width: 768px) {
        .contact-item__phone {
            font-size: 36px;
        }
    }

    .contacts-page__button {
        padding: 8px 17px;
        background-color: #4B4B4B;
        color: rgba(255, 255, 255, 1);
        font-family: 'Century Gothic', sans-serif;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 2px;
        border-radius: 37px;
    }

    @media (min-width: 1024px) {
        .contacts-page__button {
            padding: 11px 22px;
            font-size: 16px;
        }
    }

    .contacts-page__footer {
        margin-top: clamp(20px, 2vw, 60px);
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 20px;
    }
    @media (min-width: 1024px) {
        .contacts-page__footer {
            flex-direction: row;
            gap: 58px;
        }
    }

    .info-card {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 7px;
    }

    @media (max-width: 1024px) {
    
    /* Скрываем исходный тег <img> */
    .contacts-page__map img {
        visibility: hidden;
    }

    /* Применяем новое изображение как фон к родительскому блоку */
    .contacts-page__map {
        /* Вот правильный относительный путь из вашего CSS к вашему изображению */
        background-image: url('../image/about_us/contacts-sec.png');
        width: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    }

    .info-card__header {
        color: rgba(148, 148, 148, 1);
        font-family: 'Century Gothic', sans-serif;
        font-size: 13px;
        font-weight: 400;
    }

    @media (min-width: 1024px) {
        .info-card__header {
            font-size: 18px;
        }
    }
    .info-card__header-item {
        display: flex;
        align-items: center;
        gap: 7px;
    }


    .info-card__title {
        font-family: 'Century Gothic', sans-serif;
        font-size: 13px;
        font-weight: 400;
        color: #949494;
    }
    .info-card__title span {
        color: #000;
    }
    @media (min-width: 768px) {
        .info-card__title {
            font-size: 18px;
        }
    }

    .socials {
        display: flex;
        align-items: center;
        gap: 23px;
    }
    .socials__item {
        width: 29px;
        height: 29px;
    }
    @media (min-width: 768px) {
        .socials__item {
            width: 38px;
            height: 38px;
        }
    }
    .socials__item img {
        width: 100%;
        height: 100%;
    }

/* Конец Стилей Контакты */

/* Рекомендуемые товары на Оплата и Доставка */
    .products-section {
        width: 100%;
    }

    .products-container {
        max-width: 1660px;
        margin: 0 auto;
        padding: 0 20px;
    }

    /* Header */
    .products-header {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        margin-bottom: 5px;
        margin-top: 40px;
    }

    .products-title {
        color: rgba(0, 0, 0, 1);
        font-family: 'Trajan Pro 3', sans-serif;
        font-size: 22px;
        font-weight: 400;
        line-height: 130%;
        margin: 0;
    }

    /* Navigation */
    .products-nav {
        display: none;
        gap: 8px;
    }

    .nav-button {
        width: 40px;
        height: 40px;
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0;
        transition: opacity 0.3s;
    }

    .nav-button-icon {
        width: 40px;
        height: 40px;
    }

    /* Swiper Slides */
    .product-slide {
        height: auto;
        padding: 12px 0;
    }

    /* Product Card */
    .product-card {
        background-color: #fafafa;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transition: all 0.3s;
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Product Image Container */
    .product-image-container {
        position: relative;
        aspect-ratio: 1 / 1;
        overflow: hidden;
    }

    .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
    }

    .product-card:hover .product-image {
        transform: scale(1.1);
    }

    .product-link {
        position: absolute;
        inset: 0;
        z-index: 10;
    }

    /* Wishlist Button */
    .wishlist-button {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 20;
        cursor: pointer;
        background: transparent;
        border: none;
        padding: 0;
    }

    .wishlist-icon {
        width: 14px;
        height: 12px;
    }

    /* Product Content */
    .product-content {
        padding: 8px 8px 12px 8px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .product-title-wrapper {
        margin: 0 0 8px 0;
    }

    .product-title-link {
        color: rgba(0, 0, 0, 1);
        font-family: 'Century Gothic', sans-serif;
        font-size: 12px;
        font-weight: 400;
        line-height: 130%;
        text-decoration: none;
        transition: color 0.3s;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .product-title-link:hover {
        color: #4a5568;
    }

    .product-sticker-new {
        position: absolute;
        top: 10px;
        left: 10px;
        background: transparent;
        color: white;
        border-radius: 4px;
        font-size: 12px;
        font-weight: bold;
        z-index: 15;
    }

    /* Price and Cart */
    .product-price-cart {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 20px;
    }


    .product-price {
        font-weight: 600;
        color: rgba(0, 0, 0, 1);
        font-family: 'Century Gothic', sans-serif;
        font-size: 22px;
    }

    .product-price-special {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .price-special {
        font-weight: 600;
        font-size: 16px;
        color: #dc2626;
    }

    .price-old {
        font-size: 12px;
        color: #6b7280;
        text-decoration: line-through;
    }

    /* Cart Button with animations */
    .cart-button {
        position: relative;
        width: 100%;
        background: #D7B56D;
        color: white;
        padding: 8px 16px;
        border-radius: 24px;
        color: rgba(255, 255, 255, 1);
        font-family: 'Century Gothic', sans-serif;
        font-size: 14px;
        font-weight: 600;
        border: none;
        cursor: pointer;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateZ(0);
        backface-visibility: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    /* Hover эффект */
    .cart-button:hover:not(:disabled) {
        background: rgba(215, 181, 109, 1);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    /* Эффект нажатия */
    .cart-button:active:not(:disabled) {
        transform: translateY(0);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    /* Ripple эффект при клике */
    .cart-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .cart-button.ripple::before {
        width: 300px;
        height: 300px;
    }

    /* Состояние загрузки */
    .cart-button.loading {
        color: transparent;
        pointer-events: none;
    }

    .cart-button.loading .cart-button-text {
        opacity: 0;
    }

    .cart-button.loading::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        top: 50%;
        left: 50%;
        margin-left: -10px;
        margin-top: -10px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spinner 0.8s linear infinite;
    }

    /* Анимированный спиннер */
    @keyframes spinner {
        to {
            transform: rotate(360deg);
        }
    }

    /* Состояние успеха */
    .cart-button.success {
        background: #4CAF50 !important;
        pointer-events: none;
    }

    .cart-button .cart-button-text {
        font-size: 14px;
        display: inline-block;
        transition: all 0.3s ease;
    }

    .cart-button .success-icon {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
        font-size: 20px;
        font-weight: bold;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .cart-button.success .cart-button-text {
        opacity: 0;
        transform: scale(0.8);
    }

    .cart-button.success .success-icon {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    /* Pulse анимация после успеха */
    @keyframes pulse-success {
        0% {
            box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
        }

        70% {
            box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
        }

        100% {
            box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
        }
    }

    .cart-button.pulse-animation {
        animation: pulse-success 0.8s ease-out;
    }

    /* Disabled состояние */
    .cart-button:disabled {
        opacity: 1;
        cursor: not-allowed;
    }

    /* Анимация добавления в корзину */
    @keyframes addToCart {
        0% {
            transform: scale(1);
        }

        25% {
            transform: scale(0.95);
        }

        50% {
            transform: scale(1.05);
        }

        100% {
            transform: scale(1);
        }
    }

    .cart-button.adding {
        animation: addToCart 0.6s ease-out;
    }

    @keyframes shake {

        0%,
        100% {
            transform: translateX(0);
        }

        10%,
        30%,
        50%,
        70%,
        90% {
            transform: translateX(-5px);
        }

        20%,
        40%,
        60%,
        80% {
            transform: translateX(5px);
        }
    }

    .cart-button.error {
        background: #f44336 !important;
        animation: shake 0.5s;
    }

    /* Button States */
    .products-prev-button.swiper-button-disabled,
    .products-next-button.swiper-button-disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

    .products-prev-button:not(.swiper-button-disabled),
    .products-next-button:not(.swiper-button-disabled) {
        opacity: 1;
    }

    /* Ensure equal height cards */
    .products-swiper .swiper-slide {
        height: auto;
    }

    .products-swiper .swiper-slide article {
        height: 100%;
    }

    /* Media Queries */
    @media (min-width: 768px) {
        .products-container {
            padding: 0 24px;
        }

        .nav-button {
            width: 48px;
            height: 48px;
        }

        .nav-button-icon {
            width: 48px;
            height: 48px;
        }

        .product-title-link {
            font-size: 18px;
        }

        .product-price {
            font-size: 18px;
        }

        .price-special {
            font-size: 18px;
        }

        .price-old {
            font-size: 14px;
        }

        .cart-button-text {
            font-size: 14px;
            text-transform: uppercase;
        }
        .product-price-cart {
            flex-direction: row;
            align-items: center;
        }
    }

    @media (min-width: 1024px) {
        .products-header {
            margin-bottom: 32px;
        }

        .products-title {
            font-size: 58px;
        }

        .products-nav {
            display: flex;
        }

        .product-slide {
            padding: 24px 0;
        }

        .product-content {
            padding: 10px 16px 22px 16px;
        }

        .product-title-link {
            font-size: 22px;
        }

        .wishlist-icon {
            width: 24px;
            height: 20px;
        }

        .cart-button {
            background: rgba(215, 181, 109, 1);
            padding: 15px 25px;
        }
    }

    @media (min-width: 768px) and (max-width: 1023px) {
        .products-title {
            font-size: 24px;
        }
    }

/* Конец рекомендованных */

/* Условия и доставка стили */
    .payment-delivery-content {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 64px;
        padding-bottom: 162px;
        padding: 64px 20px 162px 20px;
    }

.payment-delivery-content + .products-section {
    margin-bottom: 213px;
}

    @media (min-width: 768px) {
        .payment-delivery-content {
            padding-top: 120px;
        }
    }

    @media (min-width: 1024px) {
        .payment-delivery-content {
            padding-top: 217px;
        }
    }

    .payment-delivery-content__title {
        color: rgba(0, 0, 0, 1);
        font-family: 'Trajan Pro 3', serif;
        font-size: 48px;
        font-weight: 400;
        line-height: 130%;
        max-width: 650px;
        text-align: center;
    }

    .info-section {
        max-width: 540px;
        margin-top: 43px;
        display: flex;
        flex-direction: column;
        gap: 43px;
    }

    .info-section h2 {
        margin-bottom: 31px;
    }

    @media (min-width: 1024px) {
        .info-section {
            margin-top: 67px;
            gap: 67px;
        }
    }
    .info-title {
        color: rgba(0, 0, 0, 1);
        font-family: 'Century Gothic', sans-serif;
        font-size: 24px;
        font-weight: 400;
    }
    .info-list {
        color: rgba(79, 79, 79, 1);
        font-family: 'Century Gothic', sans-serif;
        font-size: 20px;
        font-weight: 400;
        line-height: 130%;
        list-style-type: disc;
        margin-left: 24px;
    }
    .info-list li:not(:last-child) {
        margin-bottom: 8px;
    }
    .payment-decor-element-01 {
        position: absolute;
        top: 0;
        left: 0;
        width: clamp(277px, 50vw, 886px);
        z-index: -1;
    }
    .payment-decor-element-02 {
        position: absolute;
        bottom: 0;
        left: 0;
        width: clamp(341px, 30vw, 563px);
        z-index: -1;
    }
    .payment-decor-element-03 {
        position: absolute;
        top: 20%;
        right: 0;
        width: clamp(233px, 40vw, 617px);
        z-index: -1;
    }

    @media (max-width: 1024px) {
        .payment-decor-element-01 {
            left: auto;
            right: 0;
            transform: scaleX(-1);
        }
        .payment-decor-element-02 {
            bottom: -100px;
            left: 15%;
        }
        .payment-decor-element-03 {
            right: -100px;
        }
    }
/* Конец условия и доставка стили */

/* Страница Контрактное производство */
    .contract__page-video {
        position: relative;
        height: 534px;
        background-image: url(../image/contract-bg.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
    }

    .contract__page-header {
        margin-top: 109px;
        padding: 0 20px;
    }

    .header-content {
        margin-top: 55px;
        display: flex;
        flex-direction: row;
        gap: 22px;
        justify-content: center;
        align-items: center;
    }

    .content-image {
        flex: 1 1 50%;
        max-width: 680px;
    }

    .content-text {
        flex: 1 1 50%;
        max-width: 680px;
    }

    /* Экраны меньше 1024px — уводим в колонку */
    @media (max-width: 1024px) {
        .header-content {
            flex-direction: column;
            align-items: center;
            /* чтобы картинка и текст были по центру */
        }

        .content-image,
        .content-text {
            max-width: 100%;
            /* растягиваются на всю ширину контейнера */
            flex: 1 1 auto;
        }
    }

    /* Экраны меньше 768px — текст шириной 100%, картинка сверху */
    @media (max-width: 768px) {
        .header-content {
            flex-direction: column;
            align-items: flex-start;
            /* текст по ширине, не центрированный */
        }

        .content-text {
            width: 100%;
        }
    }

    .contract__page-manufacturing {
        position: relative;
        margin-top: 95px;
    }

    .manufacturing-decor {
        position: absolute;
        left: 0;
        top: 50px;
        width: clamp(142px, 20vw, 414px);
        z-index: 1;
    }
    .manufacturing-decor2 {
        position: absolute;
        right: 0;
        bottom: 0;
        width: clamp(119px, 20vw, 410px);
        z-index: 1;
    }
    @media (min-width: 768px) {
        .manufacturing-decor2 {
            bottom: -200px;
        }
    }
    @media (min-width: 1024px) {
        .manufacturing-decor2 {
            bottom: -500px;
        }
    }

    .manufacturing-block {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 20px;
        max-width: 1660px;
        margin: 62px auto 0 auto;
        justify-items: center;
    }

    .block-item {
        position: relative;
        max-width: 540px;
        max-height: 318px;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .block-item img {
        max-width: 100%;
        height: auto;
        display: block;
        margin-bottom: 10px;
    }

    .block-item span {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: rgba(255, 255, 255, 1);
        font-family: 'Trajan Pro 3', serif;
        font-size: 36px;
        font-weight: 600;
        line-height: 100%;
        text-align: center;
        pointer-events: none;
    }
    @media (max-width: 1024px) {
        .manufacturing-block {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    /* Мобильные: 1 колонка */
    @media (max-width: 768px) {
        .manufacturing-block {
            grid-template-columns: 1fr;
        }

        .block-item {
            max-width: 100%;
        }
    }

    .contract__page-images {
        padding-top: 312px;
        padding-bottom: 177px;
    }
    @media (max-width: 1024px) {
        .contract__page-images {
            padding-top: 152px;
        }
    }

    .images-block {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 колонки на ПК */
        gap: 20px;
        max-width: 1660px;
        margin: 0 auto;
        justify-items: center;
    }

    .image-block-item {
        max-width: 350px;
        width: 100%;
        display: flex;
        flex-direction: column; /* текст под картинкой */
        align-items: center; /* центр по горизонтали */
        text-align: center;
    }
    .image-block-item img {
        max-width: 240px;
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 10px; /* расстояние между картинкой и текстом */
    }
    .image-block-item span {
        color: rgba(0, 0, 0, 1);
        font-family: 'Trajan Pro 3', serif;
        font-size: 25.38px;
        font-weight: 400;
    }
    @media (min-width: 1025px) {
        .image-block-item:nth-child(n+4) {
            margin-left: 250px; /* сдвигаем второй ряд */
        }
    }

    @media (max-width: 1480px) {
        .images-block {
            grid-template-columns: repeat(2, 1fr);
        }
                .image-block-item:nth-child(n+4) {
            margin-left: 0; /* убираем сдвиг на планшете */
        }
    }


    /* Мобильные: 1 колонка */
    @media (max-width: 768px) {
        .images-block {
            grid-template-columns: 1fr;
        }

        .image-block-item {
            max-width: 100%;
        }
    }

    .video-btn {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, 50%);
        padding: 24px 43px;
        background: #D7B56D;
        color: rgba(255, 255, 255, 1);
        font-family: 'Century Gothic', sans-serif;
        font-size: 16px;
        font-weight: 400;
        text-transform: uppercase;
        border-radius: 37px;
        box-shadow: 0px 10px 16px 0px rgba(75, 75, 75, 0.45);
        text-wrap: nowrap;
    }
    @media (max-width: 1024px) {
        .video-btn {
            padding: 21px 93px;
            bottom: -57px;
        }
    }

    .block-title,
    .manufacturing-title,
    .images-title {
        color: rgba(0, 0, 0, 1);
        font-family: 'Trajan Pro 3', serif;
        font-size: 30px;
        font-weight: 400;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    @media (min-width: 1024px) {

        .block-title,
        .manufacturing-title,
        .images-title {
            font-size: 58px;
        }
    }

    .title-margin {
        margin-left: 0;
        font-weight: 600;
        font-size: 30px;
    }

    @media (min-width: 768px) {
        .title-margin {
            font-size: 50px;
        }
    }
    @media (min-width: 1024px) {
        .title-margin {
            margin-left: 20%;
            font-size: 70px;
        }
    }

    .about__content-text-cursive {
        font-family: 'Century Gothic', sans-serif;
        font-style: italic;
        font-size: 20px;
        line-height: 135.91%;
        margin-bottom: 15px;
        color: #272727;
    }

    .about__content-text {
        font-family: 'Century Gothic', sans-serif;
        font-size: 12px;
        line-height: 135.91%;
        color: #272727;
    }

    .about__content-text:not(:last-child) {
        margin-bottom: 4px;
    }
    .about__content-text:last-of-type {
        margin-bottom: 30px;
    }

    .text-bullet {
        color: rgba(116, 128, 89, 1);
        font-family: 'Trajan Pro 3', serif;
        font-size: 24px;
        font-weight: 400;
        text-align: left;
        margin-top: 46px;
    }
    @media (min-width: 1024px) {
        .about__content-text:last-of-type {
        margin-bottom: 46px;
    }
    }

/* Конец Страница Контрактное производство */

/* Blog статьи а также Related Article */
.latest-row {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  text-align: center;
  color: rgba(0, 0, 0, 1);
  font-family: 'Trajan Pro 3', serif;
  font-size: 30px;
  font-weight: 400;
  
}
@media (min-width: 768px) {
  .latest-row {
    margin-top: 120px;
    font-size: 45px;
  }
}
@media (min-width: 1024px) {
  .latest-row {
    margin-top: 186px;
    font-size: 70px;
  }
}
.latest__header {
  margin-bottom: 60px;
}

/* Основные стили для сетки статей */
.showcase-list {
    width: 100%;
}

/* Сетка статей на Grid с кроссбраузерной поддержкой */
.articles-grid {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 400px));
    -ms-grid-columns: (minmax(340px, 400px))[auto-fill];
    gap: 30px;
    grid-gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* Карточка статьи */
.article-card {
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    cursor: pointer;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    min-height: 500px;
    max-height: 640px;
    max-width: 400px;
    width: 100%;
}

.article-card:hover {
    background: #ffffff;
    -webkit-box-shadow: 0px 10px 26px 0px rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0px 10px 26px 0px rgba(0, 0, 0, 0.1);
    box-shadow: 0px 10px 26px 0px rgba(0, 0, 0, 0.1);
}

/* Изображение статьи */
.article-card .image {
    width: 100%;
    height: 315px; /* твоя фиксированная высота */
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background: #f5f5f5;
    position: relative;
    padding: 0 !important;
}
.article-card .image a {
  display: block;
  width: 100%;
  height: 100%;
}

.article-card .image img {
    width: 100% !important;
    height: 100% !important;        /* картинка равна блоку */
    object-fit: cover;   /* растягивает, не искажая */
    display: block;      /* убирает возможные пробелы */
}



.article-card:hover .image img {
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}

/* Placeholder для отсутствующих изображений */
.article-card .image.no-image {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
    background: #f0f0f0;
}

/* Контент карточки */
.article-card .caption {
    padding: 43px 30px 16px 30px;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}

/* Заголовок статьи */
.article-card h4 {
    margin: 0 0 15px 0;
}

.article-card h4 a {
    font-family: 'Trajan Pro 3', serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 120%;
    color: rgba(0, 0, 0, 1);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

/* Описание статьи */
/* Обертка для управления высотой и градиентом */
.description-wrapper {
    position: relative;
    max-height: 125px; /* Начальная высота (примерно 6 строк) - можете настроить */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out; /* Плавный переход для высоты */
    flex: 1; /* Чтобы обертка занимала доступное место, как раньше p.description */
}

/* Градиент, который будет плавно исчезать */
.description-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px; /* Высота градиента */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff); /* Градиент до белого цвета (фона карточки при наведении) */
    transition: opacity 0.5s ease-in-out; /* Плавный переход для прозрачности */
    pointer-events: none;
    opacity: 1; /* Изначально видим */
}

/* Сам текст описания (убрали все лишнее) */
.article-card .description {
    color: rgba(51, 51, 51, 1);
    font-family: 'Century Gothic', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    text-align: left;
    margin: 0; /* Убираем лишние отступы у параграфа */
}

/* Эффекты при наведении на всю карточку */
.article-card:hover .description-wrapper {
    max-height: 500px; /* Раскрываем блок на большую высоту */
}

.article-card:hover .description-wrapper::after {
    opacity: 0; /* Делаем градиент полностью прозрачным */
}

/* Рейтинг */
.article-card .rating {
    margin-bottom: 15px;
}

/* Нижняя панель с кнопками */
.article-card .button-group {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    -ms-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 13px 30px 30px 30px;
}

.article-meta {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 15px;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
}

.article-meta .meta-item {
    background: transparent;
    border: none;
    color: rgba(120, 120, 120, 1);
    font-size: 14px;
    padding: 0;
    cursor: default;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    gap: 5px;
}

.article-meta .meta-item span {
  color: rgba(126, 126, 126, 1);
  font-family: 'Century Gothic', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 5.5%;
  text-transform: uppercase;
}

/* Кнопка подробнее */
.btn-more {
    border-radius: 54px;
    background: rgba(75, 75, 75, 1);
    padding: 10px 20px;
    color: rgba(255, 255, 255, 1);
    font-family: 'Century Gothic', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-decoration: none;
    display: -webkit-inline-box;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    gap: 8px;

    /* --- ИЗМЕНЕНИЕ: Скрываем кнопку по умолчанию --- */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px); /* Добавляем небольшой сдвиг для анимации "появления" */
}

/* --- ИЗМЕНЕНИЕ: Показываем кнопку при наведении на ВСЮ карточку --- */
.article-card:hover .btn-more {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-more:hover {
    background: rgba(60, 60, 60, 1);
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px); /* Этот эффект сработает при наведении уже на саму кнопку */
    color: rgba(255, 255, 255, 1);
    text-decoration: none;
}

.btn-more i {
    font-size: 12px;
}

/* --- СТИЛИ ПАГИНАЦИИ --- */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}

.custom-pagination {
    display: flex;
    align-items: center;
    gap: 8px; /* Расстояние между элементами */
}

/* Общие стили для всех элементов пагинации */
.custom-pagination a,
.custom-pagination span {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    font-family: 'Century Gothic', sans-serif;
    font-size: 24px;
    text-decoration: none;
    border-radius: 50%; /* Все элементы будут круглыми по форме */
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Спокойное состояние (без фона и рамки) */
.custom-pagination a {
    background: transparent;
    border: 1px solid transparent; /* Занимаем место под рамку, чтобы не было скачка при наведении */
    color: #7E7E7E;
    cursor: pointer;
}

/* Наведение на цифру (круглая обводка) */
.custom-pagination a:hover:not(.active):not(.disabled) {
    background: transparent;
    border: 1px solid #4B4B4B;
    color: #4B4B4B; /* Можно изменить цвет текста для акцента */
}

/* Активная страница (фон) */
.custom-pagination .active {
    background: #4B4B4B;
    border-color: #4B4B4B;
    color: #fff;
    cursor: default;
}

/* Многоточие и другие не-ссылки */
.custom-pagination span {
    color: #7E7E7E;
    border: none;
    cursor: default;
}

/* Отключенные кнопки */
.custom-pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.custom-pagination .disabled:hover {
    border-color: transparent; /* Убираем ховер-эффект для отключенных кнопок */
}

/* Отступы между кнопками-стрелками и цифрами (ПК) */
.custom-pagination .nav-btn:nth-of-type(2) {
    margin-right: calc(27px - 8px); /* 8px - это gap родителя */
}
.custom-pagination .nav-btn:nth-last-of-type(2) {
    margin-left: calc(27px - 8px); /* 8px - это gap родителя */
}
/* --- КОНЕЦ СТИЛЕЙ ПАГИНАЦИИ --- */


/* Индикатор загрузки */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4B4B4B;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 1s linear infinite;
    -moz-animation: spin 1s linear infinite;
    -o-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes spin {
    0% { -moz-transform: rotate(0deg); }
    100% { -moz-transform: rotate(360deg); }
}

@-o-keyframes spin {
    0% { -o-transform: rotate(0deg); }
    100% { -o-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптив для планшетов */
@media (min-width: 768px) and (max-width: 1200px) {
    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        -ms-grid-columns: (minmax(340px, 1fr))[auto-fill];
    }
}

/* Адаптив для мобильных устройств */
@media (max-width: 767px) {
    .articles-grid {
        grid-template-columns: 1fr;
        -ms-grid-columns: 1fr;
        gap: 20px;
        grid-gap: 20px;
        padding: 0 10px;
    }
    
    .article-card {
        max-width: 100%;
        min-height: 500px;
    }
    
    .article-card .caption {
        padding: 20px;
    }
    
    .article-card .button-group {
        padding: 0 20px 20px 20px;
        -webkit-flex-wrap: wrap;
        -moz-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    
    .article-card .description {
        color: rgba(79, 79, 79, 1);
        font-size: 14px;
    }
    
    /* Скрываем текст кнопки на мобильных */
    .btn-more span {
        display: none;
    }
    
    .btn-more {
        padding: 10px 15px;
    }
    
    /* ИЗМЕНЕНИЯ ПАГИНАЦИИ ДЛЯ МОБИЛЬНЫХ */
    .custom-pagination {
        -webkit-flex-wrap: wrap;
        -moz-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        justify-content: center; /* Центрируем, если переносится на новую строку */
        gap: 5px;
    }
    
    .custom-pagination a,
    .custom-pagination span {
        min-width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    /* Отступы между кнопками-стрелками и цифрами (мобильные) */
    .custom-pagination .nav-btn:nth-of-type(2) {
        margin-right: calc(17px - 5px); /* 5px - это gap родителя */
    }
    
    .custom-pagination .nav-btn:nth-last-of-type(2) {
        margin-left: calc(17px - 5px); /* 5px - это gap родителя */
    }
}

/* Для очень больших экранов - ограничиваем до 4 колонок */
@media (min-width: 1600px) {
    .articles-grid {
        grid-template-columns: repeat(4, minmax(340px, 400px));
        -ms-grid-columns: minmax(340px, 400px) minmax(340px, 400px) minmax(340px, 400px) minmax(340px, 400px);
    }
}

/* IE 11 поддержка */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .articles-grid {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-flex-wrap: wrap;
        -moz-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-justify-content: center;
        -moz-justify-content: center;
        -ms-justify-content: center;
        justify-content: center;
    }
    
    .article-card {
        margin: 15px;
        -webkit-flex: 0 0 calc(25% - 30px);
        -moz-flex: 0 0 calc(25% - 30px);
        -ms-flex: 0 0 calc(25% - 30px);
        flex: 0 0 calc(25% - 30px);
    }
    
    @media (max-width: 1200px) {
        .article-card {
            -webkit-flex: 0 0 calc(33.333% - 30px);
            -moz-flex: 0 0 calc(33.333% - 30px);
            -ms-flex: 0 0 calc(33.333% - 30px);
            flex: 0 0 calc(33.333% - 30px);
        }
    }
    
    @media (max-width: 768px) {
        .article-card {
            -webkit-flex: 0 0 calc(50% - 30px);
            -moz-flex: 0 0 calc(50% - 30px);
            -ms-flex: 0 0 calc(50% - 30px);
            flex: 0 0 calc(50% - 30px);
        }
    }
    
    @media (max-width: 480px) {
        .article-card {
            -webkit-flex: 0 0 100%;
            -moz-flex: 0 0 100%;
            -ms-flex: 0 0 100%;
            flex: 0 0 100%;
        }
    }
}
/* Конец Blog статьи а также Related Article */