/* Общие стили */
:root {
    --light: #fefae0;
    --transition: all 0.8s ease-out;
    --accent: #2a3f23; /* Благородный песочный */
    --accent-dark: #e2dfce;
   


    --dark: #2c2c2c;
    --bg-light: #eeece0;
    --white: #ffffff;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(212, 163, 115, 0.3);
    --text-muted: #7a6f60;
    --text: #3d3429;
    --bg-color: #1a1110;
    --text-color: #ffffff;
    --accent-color: #ffffff;
}
.hero-btns{
        margin-top: 30px;
}
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background-color: #eeece0;
    line-height: 1.6;
}
.hero_name{
        font-family: 'Montserrat', sans-serif;
    font-size: 66px;
    font-weight: 700;
    text-transform: uppercase;
}
h1, h2 {
        font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* Навигация */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 90%;
    z-index: 100;
    background: #eeece0;
}

.logo {
    font-weight: 600;
    letter-spacing: 2px;
    text-decoration: none;
    color: #2c2c2c;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--dark);
    font-size: 14px;
}

/* Hero секция */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
    background: #e2dfce; /* Легкий бежевый фон */
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.btn-main {
    background: var(--dark);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    margin-right: 10px;
    transition: 0.3s;
}

.btn-main:hover {
    background: var(--accent);
}

/* Анимации */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMove 1s forwards;
}

.fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInMove 1s forwards;
    animation-delay: 0.4s;
}

@keyframes fadeInMove {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Сетка преимуществ */
.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 100px 5%;
}

.card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    max-width: 300px;
}
/* Бургер меню */
.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .burger { display: flex; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 70%;
        background: #eeece0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        align-items: left;
        box-shadow: -5px 0 15px rgba(0,0,0,0.05);
        transition: 0.5s ease-in-out;
    }

    .nav-links.active { right: 0; }
    
    /* Анимация крестика */
    .burger.toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger.toggle span:nth-child(2) { opacity: 0; }
    .burger.toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
}

/* Каталог */
.catalog { padding: 80px 5%; text-align: center; }
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.catalog-item {
    background: #fff;
    background: #e2dfce;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.catalog-item:hover { transform: translateY(-10px); }

.item-img { height: 350px; background-size: cover; background-position: center;background-position: 0 -123px; }
#catalog_page .item-img {
        background-position: center;
}
@media (max-width: 768px) {
.item-img{
    background-position: 0 -90px;
    height: 190px;
    background-size: cover;
    padding-top: 25px;
    margin-bottom: -15px;
}
#catalog_page .item-img {
        background-position: center;
}
}

.item-info { padding: 10px; }
.price { font-weight: 600; color: var(--accent); }
.item-info{
    margin-top: 0;
}
/* Анимация появления */
.anim-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.anim-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
/* --- СОВРЕМЕННЫЕ КНОПКИ --- */
.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 14px 28px;
    border-radius: 7px; 
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px); /* Легкий подъем */
   /* background-color: var(--accent-dark);*/
    box-shadow: var(--shadow-hover);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* --- МОБИЛЬНОЕ МЕНЮ (СТОЛБИК) --- */
@media (max-width: 768px) {
    .modal-content {
    height: 90%;
    overflow: scroll;
}
    .nav-links {
        display: flex;
        flex-direction: column; /* Пункты в столбик */
        gap: 30px;
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 100%; /* На весь экран для чистоты */
        background: var(--bg-light);
        justify-content: center;
        align-items: flex-start;
        transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }
#open-modal.btn-primary{
    margin-left: 15px;
}
    .nav-links a {
        font-size: 24px; /* Крупный шрифт для мобильных */
        font-weight: 300;
        text-decoration: none;
        color: var(--dark);
    }

    .nav-links.active {
        right: 0;
    }
}

/* --- ЭЛЕГАНТНЫЙ ФУТЕР --- */
.footer-info a {
        color: var(--dark);
}
.footer {
    background-color: #e2dfce;
    padding: 80px 5% 40px;
    margin-top: 0px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    /*max-width: 1200px;*/
    margin: 0 auto;
}

.footer h4 {
        font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    font-size: 20px;
}

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

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

.footer ul li a {
    text-decoration: none;
    color: #666;
    transition: 0.3s;
}

.footer ul li a:hover {
    color: var(--accent);
}

.socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.socials a {
    width: 40px;
    height: 40px;
    background: #eeece0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: var(--dark);
    box-shadow: var(--shadow-soft);
    font-size: 12px;
    transition: 0.3s;
}

.socials a:hover {
    background: var(--accent);
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #999;
}
.item-btns {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-catalog-primary, .btn-catalog-outline {
    flex: 1;
    padding: 12px 15px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-catalog-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-catalog-primary:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-catalog-outline {
    background: transparent;
    color: var(--dark);
    border: 1px solid #2a3f23;
    text-decoration: none;
}

.btn-catalog-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(212, 163, 115, 0.05);
}

/* --- СТИЛИ FAQ --- */
.faq-section {
    padding: 80px 5%;
        padding-bottom: 10px;
}

.container-narrow {
    margin: 0 auto;
}

.faq-container {
    margin-top: 40px;
}

.faq-item {
    border-bottom: 1px solid #e2dfce;
    margin-bottom: 10px;
}

.faq-question {
    padding: 25px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
}
.faq-question span{
    width: calc(100% - 35px);
}
.faq-question:hover {
    color: var(--accent);
}

/* Иконка плюсика */
.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
}

.faq-icon::before, .faq-icon::after {
    content: '';
    position: absolute;
    background: var(--dark);
    transition: transform 0.4s ease;
}

.faq-icon::before {
    width: 100%; height: 2px; top: 9px;
}

.faq-icon::after {
    width: 2px; height: 100%; left: 9px;
}

/* Анимация иконки при открытии */
.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}
.faq-item.active .faq-icon::before {
    transform: rotate(180deg);
}

/* Плавное раскрытие ответа */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* Достаточно большое значение */
    transition: max-height 1s ease-in-out;
    opacity: 1;
    padding-bottom: 25px;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
    margin: 0;
}
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex; /* Всегда flex, но скрыт через opacity */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    
    /* Начальное состояние (скрыто) */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease-in-out;
}

/* Состояние при открытии */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Контент окна */
.modal-content {
        border-radius: 7px;
    background: #eeece0;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    box-sizing: border-box;

    /* Начальное состояние: смещено вниз и уменьшено */
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Пружинистый эффект */
}
/* Состояние контента при активном окне */
.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

/* Анимация крестика при наведении */
.modal-close {
    transition: transform 0.3s ease, background 0.3s ease;
}
.modal-close:hover {
    transform: rotate(90deg);
    background: var(--accent);
}
.modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: var(--accent);
    color: #fff;
    border: none;
    width: 30px; height: 30px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 7px;
}

.modal-title {
    font-size: 24px;
    text-transform: lowercase;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    line-height: 1.2;
}

/* Кнопки вверху */
.modal-quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.btn-dark, .btn-outline {
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    border-radius: 7px;
}

.btn-dark { background: var(--accent); color: #fff; }
.btn-outline { border: 1px solid #000; color: #000; }

/* Инпуты (только нижняя линия) */
.input-group {
    margin-bottom: 25px;
}

.input-group input {
    width: calc(100% - 10px);
    border: none;
    padding: 15px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    outline: none;
    background-color: #e2dfce;
    border-radius: 7px;
    padding-left: 10px;
}

/* Радиокнопки и чекбокс */
.radio-section { margin-bottom: 25px; }
.radio-section p { font-size: 16px; margin-bottom: 10px; font-weight: 500; }

.custom-radio {
    display: block;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
}

.custom-radio input, .policy-check input {
    margin-right: 10px;
    accent-color: var(--accent); /* Черный цвет галочки */
}

.policy-check {
    font-size: 11px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 30px;
}

.policy-check a { color: var(--accent); }

/* Кнопка ОТПРАВИТЬ */
.btn-submit {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 20px;
    text-transform: lowercase;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 7px;
}

.btn-submit:hover { background: var(--accent); }

/*timeline*/
.process-section {
    padding: 80px 5%;
   /* max-width: 1200px;*/
    margin: 0 auto;
}

/* Шапка */
.process-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.studio-name {
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
    font-weight: 300;
}

.main-title {
       font-family: 'Montserrat', sans-serif;
    font-size: clamp(30px, 8vw, 80px);
    font-weight: 300;
    margin: 0;
    line-height: 1;
        text-align: left;
            font-weight: 400;
            margin-bottom: 40px;
            text-transform: uppercase;
}
.sub-title {
       font-family: 'Montserrat', sans-serif;
    font-size: clamp(15px, 4vw, 40px);
    font-weight: 300;
    margin: 0;
    line-height: 1;
        text-align: left;
            font-weight: 400;
            margin-top: -30px;
            margin-bottom: 40px;
                margin-left: 3px;
}

/* Контейнер шагов */
.process-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Вертикальная линия для мобильных */
.timeline-line {
    position: absolute;
    left: 7px; /* Центрирование под точкой */
    top: 10px;
    bottom: 10px;
    width: 1px;
        background-color: rgb(42 63 35);
    z-index: 1;
}

/* Элемент шага */
.step-item {
    position: relative;
    padding-left: 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: var(--delay);
}

.dot {
    position: absolute;
    left: 0;
    top: 8px;
    width: 15px;
    height: 15px;
    background-color: var(--accent);
    border-radius: 50%;
    z-index: 2;
}

.step-number {
           font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
    color: var(--accent);
}

.step-title {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark);
}

.step-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--dark);
    font-weight: 300;
    max-width: 400px;
}

/* --- DESKTOP ВЕРСИЯ --- */
@media (min-width: 1024px) {
    .process-steps {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding-top: 0px;
    }

    /* Горизонтальная линия */
    .timeline-line {
        left: 0;
        right: 0;
        top: 7px;
        height: 1px;
        width: 100%;
    }

    .step-item {
        padding-left: 0;
        padding-top: 40px;
        flex: 1;
    }

    .dot {
        left: 0;
        top: 0;
    }

    .step-text {
        padding-right: 30px;
    }
}

/* Анимации */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*PAY*/
.pay-section{
    /*max-width: 1200px;*/
    padding: 40px 5%;
    margin: 0px auto;
}
  /* ===== HERO ===== */
    .conditions-hero {
        text-align: center;
        max-width: 720px;
        margin: 0 auto 60px;
        animation: fadeInUp 0.8s ease both;
    }

    .conditions-hero__eyebrow {
        display: inline-block;
        font-style: italic;
        font-size: 18px;
        color: var(--accent-dark);
        letter-spacing: 2px;
        text-transform: uppercase;
        margin-bottom: 16px;
    }

    .conditions-hero__title {
        font-weight: 500;
        font-size: clamp(36px, 5vw, 56px);
        line-height: 1.1;
        margin: 0 0 20px;
        color: var(--text);
        letter-spacing: -0.5px;
    }

    .conditions-hero__divider {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin: 24px auto;
    }

    .conditions-hero__divider::before,
    .conditions-hero__divider::after {
        content: '';
        width: 60px;
        height: 1px;
        background: var(--accent);
        opacity: 0.5;
    }

    .conditions-hero__divider span {
        color: var(--accent);
        font-size: 18px;
    }

    .conditions-hero__subtitle {
        font-size: 17px;
        color: var(--text-muted);
        margin: 0;
    }

    /* ===== КАРТОЧКИ ===== */
    .conditions-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 28px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .conditions-card {
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 10px 6px;
        box-shadow: var(--shadow);
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        position: relative;
        overflow: hidden;
        animation: fadeInUp 0.8s ease both;
    }

    .conditions-card:nth-child(1) { animation-delay: 0.1s; }
    .conditions-card:nth-child(2) { animation-delay: 0.25s; }
    .conditions-card:nth-child(3) { animation-delay: 0.4s; }

    /* Декоративный уголок */
    .conditions-card::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 120px;
        height: 120px;
        background: radial-gradient(circle at top right, var(--accent-soft) 0%, transparent 70%);
        pointer-events: none;
    }

    .conditions-card__icon {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--accent-soft);
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 24px;
        color: var(--accent-dark);
    }

    .conditions-card__icon svg {
        width: 26px;
        height: 26px;
        stroke: currentColor;
        fill: none;
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .conditions-card__title {
        font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
        font-weight: 600;
        font-size: 28px;
        margin: 0 0 20px;
        color: var(--text);
        letter-spacing: -0.3px;
    }

    .conditions-card__list {
        list-style: none;
        padding: 0;
        margin: 0 0 20px;
    }

    .conditions-card__list li {
        position: relative;
        padding-left: 24px;
        margin-bottom: 12px;
        font-size: 15.5px;
        color: var(--text);
    }

    .conditions-card__list li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 9px;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--accent);
        box-shadow: 0 0 0 3px var(--accent-soft);
    }

    .conditions-card__note {
        font-size: 13.5px;
        font-style: italic;
        color: var(--text-muted);
        margin: 16px 0 0;
        padding-top: 16px;
        border-top: 1px dashed var(--border);
    }

    /* ===== CTA-БЛОК ===== */
    .conditions-card--cta {
        background: linear-gradient(135deg, #fffaf0 0%, #f5ede0 100%);
        border-color: var(--accent);
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .conditions-card--cta .conditions-card__icon {
        background: #fff;
        color: #d4a24c;
    }

    .conditions-card--cta .conditions-card__title {
        font-size: 32px;
    }

    .conditions-card--cta p {
        font-size: 16px;
        color: var(--text-muted);
        margin: 0 0 28px;
        max-width: 320px;
    }

    .conditions-btn {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 14px 34px;
        background: var(--accent);
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        font-size: 15px;
        letter-spacing: 0.5px;
        border-radius: 7px;
        transition: all 0.3s ease;
            border: 0;
    }

    .conditions-btn:hover {
       /* background: var(--accent-dark);*/
        transform: translateY(-2px);
        box-shadow: 0 10px 28px rgba(201, 169, 97, 0.45);
    }

    .conditions-btn svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2;
        transition: transform 0.3s ease;
    }

    .conditions-btn:hover svg {
        transform: translateX(3px);
    }

    /* ===== АНИМАЦИИ ===== */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(24px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* ===== АДАПТИВ ===== */
    @media (max-width: 640px) {
        .hero h1{
                font-size: 1rem;
        }
        .hero_name{
                font-size: 58px;
        }
        .btn-catalog-primary, .btn-catalog-outline {
    padding: 13px 5px;
        }
        #catalog_page .item-img {
            height: 235px;
            margin-bottom: -40px;
        }
        .process-steps{
            gap: 20px;
        }
        .step-content{
            margin-top: -20px;
        }
        .faq-item{
            margin-bottom: 0px;
        }
        .faq-question{
                padding: 15px 0;
        }
    }





    /* === ОБЩИЕ СТИЛИ КОНТЕЙНЕРА === */
.carousel-container {
    position: relative;
    margin-top: 24px; /* Отступ от заголовка */
}

/* === СТРЕЛКИ (по умолчанию для мобильных) === */
.carousel-controls {
    display: flex;
   justify-content: flex-end;
    position: absolute;
    top: -20px; /* Поднимаем стрелки над карточками */
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 4px;
    pointer-events: none; /* Чтобы клики проходили сквозь пустое пространство */
}

.carousel-arrow {
    pointer-events: auto; /* Возвращаем кликабельность кнопкам */
    width: 44px;
    height: 44px;

background-color: transparent;
    border: none;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-arrow:hover:not(:disabled) {
    transform: scale(1.05);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

#catalog .catalog-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
/*overscroll-behavior-y: none;*/
    
    gap: 16px;
    padding: 24px 16px 24px 16px; /* Верхний паддинг компенсирует положение стрелок */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Скрыть скроллбар Firefox */
    scroll-behavior: smooth; /* Плавная прокрутка при клике на стрелки */
}

/* === МОБИЛЬНАЯ КАРУСЕЛЬ === */

.catalog-grid::-webkit-scrollbar {
    display: none; /* Скрыть скроллбар Chrome/Safari */
}

.catalog-item {
    flex: 0 0 85%; /* Карточка занимает 85% ширины, чтобы было видно край следующей */
    scroll-snap-align: start;
    
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* === ДЕСКТОПНАЯ ВЕРСИЯ (отключаем карусель) === */
@media (min-width: 768px) {
    .carousel-controls {
        display: none; /* Скрываем стрелки на больших экранах */
    }
    
    .catalog-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 0;
        gap: 24px;
        scroll-behavior: auto;
    }

    .catalog-item {
        flex: 1 1 auto;
        scroll-snap-align: none;
    }
}