/* ==========================================================================
   ProПечати — Global Stylesheet
   Author: Sergey / Луна
   Purpose: Readable, maintainable, production-safe CSS
   NOTE: Порядок селекторов сохранён, чтобы поведение сайта не изменилось.
   Только форматирование и комментарии.
   ========================================================================== */

/* ==========================================================================
   0) Table of Contents
   --------------------------------------------------------------------------
   1) Base / Reset / Typography
   2) Layout Helpers (container, sections)
   3) Header: top header, logo, contacts, nav
   4) Hero section (texts, benefits, CTA, shape, image)
   5) Product listing (cards, titles, details)
   6) About section (text, image, services grid)
   7) FAQ (accordion)
   8) Footer
   9) Slider (Splide)
   10) Scroll-to-top button
   11) Wax seals sub-section specifics
   12) Active nav link
   13) Media Queries:
       - Mobile ≤768px (header, hero, about, product grid, slider, services)
       - Additional mobile tweaks (slider)
       - Wax seals mobile
       - Reverse about layout mobile
       - Misc image center fix mobile
       - Tablet & down ≤1024px (hide hero image)
   ========================================================================== */


/* ==========================================================================
   1) Base / Reset / Typography
   ========================================================================== */

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f2f8fb;
}

html {
    scroll-behavior: smooth;
}


/* ==========================================================================
   2) Layout Helpers
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header {
    background: #f2f8fb;
}

.top-header {
    flex-wrap: wrap;
    margin-top: 15px;
}


/* ==========================================================================
   3) Header: logo, contacts, nav
   ========================================================================== */

.logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.contact-block {
    display: flex;
    align-items: center;
    gap: 70px;
    font-size: 14px;
    margin-left: 60px;
}

.contact-block a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.contact-block>div {
    flex: 1;
    /* равное распределение */
}

.email a,
.phone a {
    font-weight: 700;
}

.messengers {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.messengers span {
    font-weight: 500;
}

.messengers img {
    width: 33px;
    height: 33px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.messengers img:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
}

.call-button {
    background: linear-gradient(90deg, #fedd54, #ffc107);
    padding: 10px 18px;
    border-radius: 24px;
    text-decoration: none;
    font-weight: bold;
    color: #000;
}

/* Main nav */
.main-nav {
    background: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 17px;
    max-width: 1200px;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    /* адаптация */
}

.main-nav ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.5px;

}


/* ==========================================================================
   4) Hero section
   ========================================================================== */

.hero {
    background: none;
    background-color: transparent;
    padding: 0px 0 0px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    margin-top: 20px;
}

/* Title and copy */
.hero-text h1 {
    font-family: 'Manrope', sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
    margin: 0 0 20px;
    margin-bottom: 60px;
}

.hero-text h1 span {
    color: #111;
}

.hero-text p {
    font-size: 18px;
    color: #444;
    margin: 0;
}

.hero-text h1 .light {
    font-weight: 400;
}

/* Benefits row */
.hero-benefits {
    display: flex;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-benefits-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #333;
}

.benefit img {
    width: 20px;
    height: 20px;
}

/* Order row */
.order-info {
    margin-top: 0px;
}

.order-info h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

.order-info p {
    font-size: 16px;
    color: #444;
    margin: 0;
    line-height: 1.5;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

/* WhatsApp CTA */
.whatsapp-big-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 16px;
    gap: 10px;
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    transition: all 0.2s ease;
    align-self: flex-start;
    margin-top: 40px;
}

.whatsapp-big-btn img {
    width: 24px;
    height: 24px;
}

.whatsapp-big-btn:hover {
    background-color: #1ebe5d;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

/* Decorative shape */
.hero-shape {
    position: absolute;
    top: 55%;
    left: -220px;
    transform: translateY(-50%) rotate(135deg);
    width: 380px;
    height: 380px;
    background: white;
    clip-path: polygon(0 0, 100% 0, 0 100%);
    border-radius: 30px;
    z-index: 0;
}

/* Hero image wrapper */
.benefit-image img {
    max-width: 500px;
    height: auto;
    display: block;
}


/* ==========================================================================
   5) Product listing (cards, titles, details)
   ========================================================================== */

.product-title-wrapper {
    width: 100%;
    text-align: center;
}

.product-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 30px;
    margin-top: 30px;
}

.product-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 10px;
    text-align: center;
    width: 190px;
    margin: 3px auto;
    font-family: 'Inter', sans-serif;
}

.product-card img {
    max-width: 100%;
    border-radius: 12px;
}

.product-name {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    margin-top: 4px;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
    text-align: left;
    padding-left: 10px;
    margin-bottom: 15px;
}

.product-details {
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    font-size: 14px;
    color: #444;
}

.product-details .label {
    text-align: left;
    display: block;
    font-size: 12px;
    color: #888;
}

.product-details .value {
    font-weight: 600;
    margin-top: 2px;
}

.product-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}


/* ==========================================================================
   6) About section (text, image, services grid)
   ========================================================================== */

.about-title-section {
    margin-top: 10px;
    margin-bottom: 1px;
}

.about-content-section {
    margin-bottom: 30px;
    margin-top: 60px;
    /* регулируемый внешний отступ */
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.about-image {
    flex: 1;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    margin-left: 80px;
}

/* Services grid */
.about-services-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 20px;
    justify-content: center;
}

/* Service box */
.service-box {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 160px;
    height: 120px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    font-weight: 600;
    font-size: 16px;
    color: #111;
}

/* Service: Facsimile */
.service-box.service-facsimile {
    position: relative;
}

.facsimile-logo {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 90px;
    height: auto;
    opacity: 0.9;
}

/* Service: Exlibris */
.service-box.service-exlibris {
    position: relative;
}

.exlibris-logo {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 90px;
    height: auto;
    opacity: 0.9;
}

/* Service: Stamp */
.service-box.service-stamp {
    position: relative;
}

.service-box.service-stamp .stamp-logo {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 85px;
    height: auto;
    opacity: 0.9;
}

/* Service: Stamp Crush */
.service-box.service-stamp-crush {
    position: relative;
}

.stamp-crush-logo {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 90px;
    height: auto;
    opacity: 0.9;
}


/* ==========================================================================
   7) FAQ (accordion)
   ========================================================================== */

.faq-accordion {
    max-width: 700px;
    margin: 0 auto;
    padding: 5px;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 500;
    padding: 20px;
    text-align: left;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0d1c39;
}

.faq-question .icon {
    font-size: 20px;
    color: #3574f2;
    background: #f3f4f6;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 20px;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.faq-question.active+.faq-answer {
    max-height: 200px;
    /* увеличь при необходимости */
    padding-top: 12px;
    padding-bottom: 20px;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
}


/* ==========================================================================
   8) Footer
   ========================================================================== */

.site-footer {
    background-color: #7089b3;
    color: #fff;
    padding: 20px 20px 30px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.footer-column {
    flex: 1 1 250px;
    min-width: 240px;
}

.footer-column h3 {
    margin-bottom: 12px;
    font-size: 16px;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #f2f2f2;
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-column a:hover {
    opacity: 0.7;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    color: #e0e0e0;
    font-size: 13px;
}

.footer-column {
    flex: 1 1 250px;
    min-width: 240px;
}


/* ==========================================================================
   9) Slider (Splide)
   ========================================================================== */

.splide__slide img {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: none;
    margin: 0 auto;
}

/* Remove inner paddings between slides */
#work-slider .splide__slide {
    padding: 0 10px;
    margin: 0 !important;
}

/* Wrapper container */
#work-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

/* Arrows styles */
.splide__arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3574f2, #5f94f9);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: none;
    /* отключаем анимацию */
}

.splide__arrow svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* Arrow positions */
.splide__arrow--prev {
    left: -60px;
}

.splide__arrow--next {
    right: -60px;
}

#work-slider.splide {
    display: block;
    margin-bottom: 60px;
}

/* Extra positioning correction */
.splide__arrow--prev {
    left: 0;
}

.splide__arrow--next {
    right: 0;
}


/* ==========================================================================
   10) Scroll-to-top button
   ========================================================================== */

#scrollTopBtn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 24px;
    font-weight: bold;
    background: linear-gradient(135deg, #3574f2, #5f94f9);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

#scrollTopBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

#scrollTopBtn svg {
    width: 24px;
    height: 24px;
    display: block;
    margin: auto;
}

/* Show / hide logic helpers */
#scrollTopBtn {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}


/* ==========================================================================
   11) Wax seals specifics
   ========================================================================== */

.about-image img {
    max-width: 350px;
    height: auto;
}

.about-image {
    display: flex;
    justify-content: flex-start;
}

#wax-seals .about-content {
    align-items: center;
}

.about-image img {
    border-radius: 17px;
}

.right-image {
    margin-left: 100px;
}

.about-image img {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
}

.wax-logo img {
    max-width: 350px;
    height: auto;
}


/* ==========================================================================
   12) Active nav link
   ========================================================================== */

.main-nav a.active {
    font-weight: 700;
    color: #3574f2;
    border-bottom: 2px solid #3574f2;
    padding-bottom: 2px;
}


/* ==========================================================================
   13) Media Queries
   ========================================================================== */

/* ---------------------------------------
   ≤768px: General mobile adjustments
   --------------------------------------- */
@media (max-width: 768px) {

    /* Header stack */
    .top-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .logo-block {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }

    .contact-block {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 30px;
        text-align: center;
        margin-left: 0;
    }

    .messengers {
        justify-content: center;
    }

    .messengers span {
        display: block;
        margin-bottom: 6px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 10px;
    }

    .email a,
    .phone a {
        white-space: nowrap;
        font-size: 13px;
    }

    /* Hero: hide image on mobile */
    .benefit-image {
        display: none;
    }

    .hero-text h1 {
        font-size: 45px;
    }

    .hero-benefits {
        justify-content: center;
        text-align: center;
    }

    .order-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .whatsapp-big-btn {
        margin-left: auto;
        margin-right: auto;
    }

    /* About image centering on mobile */
    .about-image {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }

    .about-image img {
        margin-left: 0;
        padding-left: 0;
    }

    /* Product grid: 2 columns */
    .product-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        justify-items: center;
    }

    .product-card {
        width: 100%;
        max-width: 130px;
    }

    .product-name {
        font-size: 90%;
        padding-left: 0;
    }

    .product-card .price-block {
        font-size: 80%;
    }

    .product-card .size-block {
        font-size: 80%;
    }

    .product-details {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .product-list {
        gap: 0px;
        row-gap: 16px;
        justify-content: center;
    }

    .product-card {
        margin: 6px;
    }
}

/* ---------------------------------------
   ≤768px: Slider mobile adjustments
   --------------------------------------- */
@media (max-width: 768px) {
    #work-slider .splide__slide {
        overflow: visible !important;
        border-radius: 12px;
    }

    #work-slider .splide__track,
    #work-slider .splide__list {
        overflow: visible !important;
    }

    .splide__slide img {
        border-radius: 12px;
        display: block;
    }
}

@media (max-width: 768px) {
    #work-slider {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .splide__track,
    .splide__list {
        overflow: hidden !important;
    }

    .splide__slide {
        padding: 0 4px !important;
        box-sizing: border-box;
    }

    .splide__slide img {
        width: 90% !important;
        max-width: 220px;
        height: auto !important;
        border-radius: 12px;
        margin: 0 auto;
    }
}

/* ---------------------------------------
   ≤768px: Services & misc mobile tweaks
   --------------------------------------- */
@media (max-width: 768px) {

    /* Services grid mobile */
    .about-services-grid {
        grid-template-columns: repeat(2, auto);
        gap: 12px;
        justify-content: center;
        padding: 0;
        max-width: 320px;
        /* ограничиваем ширину */
        margin: 0 auto;
        /* центрируем блок */
    }

    .service-box {
        width: 140px;
        height: 100px;
        font-size: 14px;
        padding: 12px;
    }

    /* Facsimile logo size */
    .facsimile-logo {
        width: 80px;
    }

    /* Exlibris logo size */
    .exlibris-logo {
        width: 80px;
    }

    /* Stamp logo size */
    .service-box.service-stamp .stamp-logo {
        width: 65px;
    }

    /* Stamp crush logo size */
    .stamp-crush-logo {
        width: 75px;
    }
}

/* ---------------------------------------
   ≤768px: Wax seals sub-section mobile
   --------------------------------------- */
@media (max-width: 768px) {
    #wax-seals .about-content {
        flex-direction: column;
        /* картинка сверху, текст снизу */
        align-items: center;
        /* по центру */
        text-align: center;
        /* текст по центру */
    }

    #wax-seals .about-image img {
        max-width: 250px;
        /* уменьшение на телефонах */
        height: auto;
        margin: 0 auto;
        display: block;
    }
}

/* ---------------------------------------
   ≤768px: Reverse about layout mobile
   --------------------------------------- */
@media (max-width: 768px) {
    .about-content.reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-content.reverse .about-text {
        text-align: center;
        margin-bottom: 20px;
    }

    .about-content.reverse .about-image {
        justify-content: center;
        margin: 0 auto;
    }

    .about-content.reverse .about-image img {
        max-width: 250px;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

/* ---------------------------------------
   ≤768px: Misc image center fix mobile
   --------------------------------------- */
@media (max-width: 768px) {
    .about-image {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
}

/* ---------------------------------------
   ≤1024px: Tablet & below
   Hide hero image (benefit-image) на планшетах
   --------------------------------------- */
@media (max-width: 1024px) {
    .benefit-image {
        display: none;
    }
}

/* =========================================
   Готовые печати по категориям
   ========================================= */

.stamp-categories-section {
    margin: 60px 0;
}

/* Карточки категорий */
.stamp-category-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.stamp-category-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    text-align: left;
    cursor: pointer;
    border: 1px solid #e0e6ed;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.stamp-category-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #0d1c39;
}

.stamp-category-card p {
    margin: 0;
    font-size: 14px;
    color: #555;
}

.stamp-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

/* Неактивные карточки */
.stamp-category-card.disabled {
    opacity: 0.6;
    cursor: default;
}

.stamp-category-card.disabled:hover {
    transform: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Центральный контент */
.stamp-category-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Сетка макетов */
.stamp-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Макет (заглушка) */
/* Квадратный макет */
.stamp-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Квадрат под изображение */
.stamp-mockup-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px #e0e6ed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Подпись макета */
.stamp-mockup-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

/* Картинка внутри */
.stamp-mockup-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ===== Адаптация ===== */

/* Планшеты */
@media (max-width: 1024px) {
    .stamp-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Мобилки */
@media (max-width: 768px) {
    .stamp-category-cards {
        grid-template-columns: 1fr;
    }

    .stamp-category-grid {
        grid-template-columns: 1fr;
    }

    .stamp-category-content {
        padding: 20px;
    }
}

/* Скрытый (закрытый) вид центрального блока */
.stamp-category-content {
    max-height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    transition:
        max-height 0.4s ease,
        padding 0.3s ease,
        opacity 0.25s ease;
}

/* Открытый вид */
.stamp-category-content.open {
    opacity: 1;
    padding: 30px;
}

/* Кнопка "Закрыть категории" (мобилка) */
#closeCategoryBtn {
    position: fixed;
    bottom: 90px;
    /* над кнопкой "Наверх" */
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3574f2, #5f94f9);
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 998;

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Показ кнопки */
#closeCategoryBtn.show {
    opacity: 1;
    pointer-events: auto;
}

/* Только мобильная версия */
@media (min-width: 769px) {
    #closeCategoryBtn {
        display: none;
    }
}

.stamp-category-grid {
    display: none;
}

.stamp-category-grid.active {
    display: grid;
}