/* Общие стили */

.top-section {
    padding-top: 50px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    /* text-transform: uppercase; */
}

/* --- Certificates Section --- */
.certificates-section {
    /* background-color: #f9fafb; */
    /* padding: 4rem 0; */
}

.certificates-section .section-title {
    text-align: center;
    /* margin-bottom: 2.5rem; */
}

.certificates-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 40px;
    /* Space for arrows */
    max-width: 1200px;
    margin: 0 auto;
}

.certificates-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    width: 100%;
}

.certificates-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.certificate-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    height: 300px;
}

.certificate-link {
    display: block;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.certificate-slide img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cert-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    z-index: 10;
}

.cert-nav-btn:hover {
    background: #f3f4f6;
    color: #111827;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.cert-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cert-prev {
    left: 0;
}

.cert-next {
    right: 0;
}

.cert-nav-btn svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .certificates-slider-container {
        padding: 0;
    }

    .cert-nav-btn {
        display: none;
        /* Hide arrows on mobile, rely on swipe */
    }
}

/* --- Testimonials Section --- */
.testimonials-section {
    /* background-color: transparent; */
    /* background-color: #f3f4f6; */
    padding: 4rem 0 0;
}

.testimonials-section .container {
    position: relative;
}

.testimonials-section .section-title {
    text-align: center;
    /* margin-bottom: 3rem; */
}

.testimonial-slider-container {
    position: relative;
    overflow: hidden;
}

.testimonial-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    background-color: #fff;
}

.testimonial-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 1rem;
}

.testimonial-card {
    background-color: transparent;
    padding: 1rem 4rem;
    text-align: left;
    box-shadow: none;
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.testimonial-avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Placeholder for users without specific image */
.testimonial-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray);
    border: 4px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-avatar-placeholder svg {
    width: 50px;
    height: 50px;
}

.testimonial-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
    color: #1f2937;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
}

.testimonial-stars .star{
    width:20px;
    height:20px;
}

.testimonial-body {
    border-left: 4px solid var(--color-primary);
    padding-left: 2rem;
    margin-left: 35px;
    /* Aligned visually with the text */
}

.testimonial-text {
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px;
}

.testimonial-text::-webkit-scrollbar {
    width: 6px;
}

.testimonial-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.testimonial-text::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.testimonial-text::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.testimonial-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.testimonial-nav button {
    background: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    pointer-events: auto;
}

.testimonial-nav button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.testimonial-nav button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.testimonial-nav button svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 1rem;
    }

    .testimonial-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .testimonial-body {
        margin-left: 0;
        padding-left: 1rem;
    }

    .testimonial-nav {
        display: none;
    }
}



.contacts-section {
    /* background-color: #f8fafc; */
    background-color: #f3f4f6;
    padding: 40px 0;
}

/* Контейнер всего блока */
.contacts-container {
    max-width: 1200px;
    /* box-sizing: border-box; */
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    padding: 2rem 1rem;
    /* 32px */
    border-radius: 1rem;
    /* 16px */
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    /* box-sizing: border-box; */
}

/* Сетка для колонок */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    /* 48px */
}

.contacts-grid .map {
    aspect-ratio: 1;
}

@media (min-width: 1024px) {

    .contacts-grid .map {
        flex: 0 0 600px;
        height: 600px;
        width: 600px;
    }

    .contacts-container {
        padding: 2rem;
    }
}

/* Стили для иконок */
.icon {
    width: 1.5rem;
    /* 24px */
    height: 1.5rem;
    /* 24px */
    /* color: #2563eb;  */
    color: #333;
    /* blue-600 */
    margin-right: 1rem;
    /* 16px */
    flex-shrink: 0;
}

/* Заголовки */
.main-title {
    font-size: 1.875rem;
    /* 30px */
    font-weight: 700;
    color: #1f2937;
    /* gray-800 */
    margin: 0 0 2rem 0;
}

.contacts-container .section-title {
    font-size: 1.25rem;
    /* 20px */
    font-weight: 600;
    text-align: left;
    color: #374151;
    /* gray-700 */
    margin: 0 0 1rem 0;
}

/* Отдельные блоки информации */
.contacts-container .contact-group {
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.contacts-container .contact-group:last-child {
    margin-bottom: 0rem;
}

.contacts-container .contact-group hr {
    border: 0;
    height: 1px;
    background-color: #e5e7eb;
    /* gray-200 */
    margin: 2rem 0;
}

.contacts-container .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contacts-container .contact-item:last-child {
    margin-bottom: 0;
}

.contacts-container .contact-item.center {
    align-items: center;
}

.contacts-container .contact-item-text p {
    margin: 0;
    line-height: 1.5;
}

.contacts-container .contact-item-text .main-text {
    color: #1f2937;
    /* gray-800 */
}

.contacts-container .contact-item-text .sub-text {
    font-size: 0.875rem;
    /* 14px */
    color: #6b7280;
    /* gray-500 */
}

.contact-item-text .font-medium {
    font-weight: 500;
}

/* Баннер о доставке */
.contacts-container .delivery-banner {
    margin-top: 1rem;
    font-size: 0.875rem;
    /* 14px */
    color: #4b5563;
    /* gray-600 */
    background-color: #f3f4f6;
    /* gray-100 */
    padding: 0.75rem;
    /* 12px */
    border-radius: 0.5rem;
    /* 8px */
    display: flex;
    align-items: center;
}

.contacts-container .delivery-banner .icon {
    width: 1.25rem;
    /* 20px */
    height: 1.25rem;
    /* 20px */
    color: #6b7280;
    /* gray-500 */
}

/* Ссылки */
.contacts-container .link {
    color: #1f2937;
    /* gray-800 */
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacts-container .link:hover {
    color: #2563eb;
    /* blue-600 */
}

/* Карта */
.contacts-container .map-wrapper {
    width: 100%;
    height: 20rem;
    /* 320px */
    border-radius: 1rem;
    /* 16px */
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.contacts-container .map-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contacts-container .s-contacts-type-1__map {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}

.contacts-container .s-back-to-top {
    display: none;
}

/* --- Фотографии офиса и производства (Gallery) --- */
.manufact-gallery-section {
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0s;
    padding: 3rem 0rem;
    /* background-color: var(--color-dark); */
    /* border-top: 1px solid var(--color-gray-900); */
}

@media (min-width: 768px) {
    .manufact-gallery-section {
        padding: 4rem 0rem;
    }
}

.manufact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .manufact-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.manufact-card {
    position: relative;
    border-radius: 0.125rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    transition: border-color var(--transition-fast);
}

.manufact-card:hover {
    border-color: var(--color-olive);
}

.manufact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: grayscale(100%); */
    transition: filter var(--transition-slow), transform var(--transition-slow);
}

.manufact-card:hover .manufact-img {
    /* filter: grayscale(0%); */
    transform: scale(1.05);
}

.manufact-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-darker), transparent, transparent);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.manufact-card:hover .manufact-overlay {
    opacity: 0.4;
}

.manufact-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(to top, rgba(25, 24, 23, 0.95), transparent);
    color: var(--color-light-gray);
    /* font-family: var(--font-heading); */
    font-weight: 500;
    font-size: 1.125rem;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-slow);
}

.manufact-card:hover .manufact-caption {
    opacity: 1;
    transform: translateY(0);
}


/* --- НОВЫЙ ВАРИАНТ ФУТЕРА --- */
.site-footer {
    background-color: #ffffff;
    color: #4b5563;
    /* gray-600 */
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    padding: 3rem 1rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    margin-bottom: 1rem;
}

.footer-column .footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    /* gray-800 */
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: #4b5563;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul a:hover {
    color: #2563eb;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    /* gray-900 */
    margin: 0 0 0.5rem 0;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 280px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    /* 40px */
    height: 2.5rem;
    /* 40px */
    background-color: #f3f4f6;
    /* gray-100 */
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.social-links a svg {
    width: 1.25rem;
    height: 1.25rem;
    color: #6b7280;
    fill: #6b7280;
    /* gray-500 */
}

.social-links a svg.vk {
    width: 2.25rem;
    height: 2.25rem;
}

.social-links a:hover {
    background-color: #2563eb;
    /* blue-600 */
}

.social-links a:hover svg {
    color: #ffffff;
    fill: #ffffff;
}

.powered-by {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    /* color: #b7bcc6; */
    /* color: #9ca3af; */
    color: #6b7280;
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem 1rem;
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    /* gray-400 */
}

.footer-bottom a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #2563eb;
}

/* --- НОВЫЕ СТИЛИ ДЛЯ КНОПКИ "НАВЕРХ" --- */
#scrollTopBtn {
    display: none;
    /* Скрыта по умолчанию */
    position: fixed;
    bottom: 9.5rem;
    right: 1.0rem;
    width: 3.5rem;
    /* 56px */
    height: 3.5rem;
    /* 56px */
    background-color: #fff;
    /* blue-600 */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 90;
}

#scrollTopBtn.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#scrollTopBtn:hover {
    background-color: #edf2ffff;
    /* blue-700 */
}

#scrollTopBtn svg {
    width: 1.75rem;
    /* 28px */
    height: 1.75rem;
    /* 28px */
    margin: auto;
    color: #2563eb;
}

/* Адаптивность */
@media (min-width: 640px) {
    .main-title {
        font-size: 2.25rem;
        /* 36px */
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 1024px) {

    /* lg: */
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-wrapper {
        height: 100%;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

/* --- Стили Модального Окна (Modal) --- */
.price-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(17, 24, 39, 0.5);
    /* bg-gray-900 bg-opacity-50 */
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    /* transition: opacity 0.3s ease; */
    opacity: 0;
    pointer-events: none;
}

.price-modal-overlay.modal-active {
    opacity: 1;
    pointer-events: auto;
}

.price-modal-content {
    background-color: #ffffff;
    border-radius: 0.75rem;
    /* rounded-xl */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    /* shadow-2xl */
    width: 100%;
    max-width: 28rem;
    /* max-w-md */
    padding: 2rem;
    /* p-8 */
    margin: 1rem;
    /* m-4 */
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #9ca3af;
    transition: color 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.modal-close:hover {
    color: #4b5563;
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

.modal-title {
    font-size: 1.875rem;
    font-weight: 600;
    color: #111827;
    text-align: center;
    margin-bottom: 1rem;
}

.modal-description {
    color: #4b5563;
    margin-bottom: 2rem;
}

/* Стили формы */
.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #d1d5db;
    outline: none;
    padding: 0.5rem 0;
    color: #1f2937;
    transition: border-color 0.15s;
    background: transparent;
}

.form-input:focus {
    border-color: #111827;
}

.form-input::placeholder {
    color: #6b7280;
}



.form-submit:hover {
    background-color: #f3f4f6;
}



/* Согласие (Custom Checkbox) */
.consent-wrapper {
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
}

.consent-checkbox {
    position: absolute;
    /* Делаем невидимым, но доступным */
    opacity: 0;
    width: 0;
    height: 0;
}

.consent-box {
    width: 1rem;
    /* w-4 */
    height: 1rem;
    /* h-4 */
    border-radius: 0.375rem;
    /* rounded-md */
    border: 1px solid #d1d5db;
    /* border-gray-300 */
    background-color: #f9fafb;
    /* bg-gray-50 */
    margin-right: 0.75rem;
    /* mr-3 */
    margin-top: 0.125rem;
    /* mt-0.5 */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.15s;
}

/* Логика отображения при checked: */
.consent-checkbox:checked+.consent-box {
    background-color: #e5e7eb;
    /* bg-gray-200 */
}

.consent-checkbox:checked+.consent-box .consent-check-icon {
    display: block;
}

.consent-check-icon {
    width: 0.75rem;
    /* w-3 */
    height: 0.75rem;
    /* h-3 */
    color: #1f2937;
    /* text-gray-800 */
    display: none;
}

.consent-text {
    font-size: 0.75rem;
    /* text-xs */
    color: #6b7280;
    /* text-gray-500 */
}

.consent-link {
    color: #4b5563;
    /* text-gray-600 */
    text-decoration: underline;
    transition: color 0.2s;
}

.consent-link:hover {
    color: #111827;
}

/* Сообщение об успехе */
.success-message {
    /* display: none; */
    text-align: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.success-icon {
    width: 4rem;
    height: 4rem;
    color: #32a515ff;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.success-text {
    color: #4b5563;
}

/* Сообщение об ошибке */
.error-message {
    /* display: none; */
    text-align: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    color: #dc2626;
    /* red-600 */
}

.error-icon {
    width: 4rem;
    height: 4rem;
    color: #dc2626;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

/* Вспомогательные классы */
.hidden {
    display: none !important;
}

/* .hidden { visibility: hidden !important; } */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/* Адаптивность */
@media (min-width: 640px) {
    .main-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .map-wrapper {
        height: 100%;
    }
}

/* --- СТИЛИ WIDGET (Без изменений) --- */
.mobile-contact-widget {
    position: fixed;
    bottom: 4.5rem;
    right: 1.0rem;
    z-index: 95;
    font-family: 'Inter', sans-serif;
}

/* Главная кнопка (Триггер) */
.mcw-trigger {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #ffffff;
    /* Белый фон */
    color: #333333;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.3s;
    position: relative;
    overflow: hidden;
}

.mcw-trigger:hover {
    background-color: #edf2ffff;
}

.mcw-trigger:active {
    transform: scale(0.95);
}

/* Анимация потряхивания */
@keyframes mcw-shake {
    0% {
        transform: rotate(0deg);
    }

    20% {
        transform: rotate(-15deg);
    }

    40% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-5deg);
    }

    80% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.mcw-trigger.shaking {
    animation: mcw-shake 0.5s ease-in-out;
}

/* Обертка для меняющейся иконки */
.mcw-icon-current {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, transform 0.3s;
    /* Цвет задается через JS */
}

.mcw-icon-current svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Иконка закрытия (крестик) */
.mcw-icon-close {
    position: absolute;
    width: 1.75rem;
    height: 1.75rem;
    opacity: 0;
    transform: rotate(-90deg);
    transition: opacity 0.3s, transform 0.3s;
    color: #555;
}

/* Состояние открытого меню */
.mobile-contact-widget.active .mcw-trigger {
    background-color: #f3f4f6;
    animation: none;
}

.mobile-contact-widget.active .mcw-icon-current {
    opacity: 0;
    transform: rotate(90deg);
}

.mobile-contact-widget.active .mcw-icon-close {
    opacity: 1;
    transform: rotate(0);
}

/* Меню опций */
.mcw-options {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.mobile-contact-widget.active .mcw-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Элемент меню */
.mcw-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    background-color: #fff;
    color: #333;
    padding: 0.5rem 0.5rem 0.5rem 1.2rem;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
    white-space: nowrap;
    gap: 10px;
    cursor: pointer;
}

.mcw-item:active {
    transform: scale(0.98);
}

.mcw-item-text {
    font-size: 1.0rem;
    font-weight: 500;
}

.mcw-item-icon-circle {
    width: 2.25rem;
    height: 2.25rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mcw-item-icon-circle svg {
    width: 1.5rem;
    height: 1.5rem;
}



/* Оверлей */
.mcw-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 94;
    display: none;
}

.mobile-contact-widget.active+.mcw-overlay {
    display: block;
}


/* --- СТИЛИ ДЛЯ ЯРКОГО ЛИД-МАГНИТА (PDF) --- */
#leadMagnetModal .price-modal-content {
    max-width: 900px;
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
    /* Цветная тень от модалки */
}

@media (max-width: 767px) {
    #leadMagnetModal {
        padding: 0 !important;
    }

    #leadMagnetModal .price-modal-content {
        height: 100%;
        border-radius: 0;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
    }

    #leadMagnetModal .price-modal-content>div {
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Сбрасываем скругления у внутренней обертки на мобилках */
    #leadMagnetModal .lead-inner-box {
        border-radius: 0 !important;
    }

    #leadMagnetModal .lead-desc {
        display: none;
    }
}

.lead-modal-body {
    /* Базовый дисплей */
}

.lead-text-col {
    padding: 2.5rem 1.5rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Анимация подарка */
@keyframes wobbleGift {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    15% {
        transform: rotate(-10deg) scale(1.1);
    }

    30% {
        transform: rotate(8deg) scale(1.1);
    }

    45% {
        transform: rotate(-10deg) scale(1.1);
    }

    60% {
        transform: rotate(8deg) scale(1.1);
    }

    75% {
        transform: rotate(0deg) scale(1.05);
    }
}

.gift-icon-wrapper {
    text-align: center;
    margin-bottom: 0.5rem;
}

.gift-icon-wrapper svg {
    width: 72px;
    height: 72px;
    animation: wobbleGift 2.5s infinite ease-in-out;
    transform-origin: bottom center;
    filter: drop-shadow(0 8px 12px rgba(234, 179, 8, 0.4));
}

/* Яркий бейдж */
.lead-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(90deg, #fef08a, #fde047);
    color: #854d0e;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
    /* Центрируем бейдж под подарком */
    box-shadow: 0 4px 10px rgba(253, 224, 71, 0.4);
}

.lead-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
    /* Центрируем заголовок для большей выразительности */
}

.lead-title span {
    color: #2563eb;
    display: block;
    margin-top: 0.2rem;
    font-size: 1.6rem;
}

.lead-desc {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.lead-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.lead-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: 500;
}

.lead-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    background-color: #dbeafe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-list li::after {
    content: '✓';
    position: absolute;
    left: 4px;
    top: 4px;
    font-size: 0.65rem;
    color: #2563eb;
    font-weight: bold;
}

/* Переливающаяся яркая кнопка */
.lead-submit-btn {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    padding: 1.1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transform: translateY(0);
    transition: transform 0.2s, box-shadow 0.2s;
}

.lead-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
}

/* Анимация перелива (блика) */
.lead-submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shineSweep 3s infinite;
}

@keyframes shineSweep {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.lead-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 0.35rem;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
}

.lead-close:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Десктопная версия (расположение картинки справа внутри текста) */
@media (min-width: 768px) {
    .lead-text-col {
        padding: 3rem;
    }

    .lead-title {
        text-align: left;
        /* Возвращаем выравнивание влево на десктопе */
    }

    .lead-badge {
        margin: 0 0 1.5rem 0;
        /* Прижимаем влево */
        font-size: 1.25rem;
    }

    .gift-icon-wrapper {
        text-align: left;
        margin-left: 0.5rem;
    }

    .lead-list-wrap .lead-image-col-inner {
        display: flex !important;
    }
}



    /* Стили для модального окна (лайтбокса) */
    .lightbox {
        position: fixed;
        z-index: 9999;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        touch-action: none;
        /* Важно для обработки свайпов */
    }

    .lightbox.active {
        opacity: 1;
        visibility: visible;
    }

    .lightbox-content {
        position: relative;
        max-width: 90%;
        max-height: 85%;
        /* transition: transform 0.3s ease; Убираем, чтобы зум работал мгновенно */
    }

    .lightbox-img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 90vh;
        display: block;
        object-fit: contain;
        user-select: none;
        cursor: zoom-in;
        /* Было grab, стало zoom-in */
        transition: transform 0.2s ease-out;
    }

    .lightbox-caption {
        color: #fff;
        text-align: center;
        margin-top: 15px;
        font-size: 16px;
        font-family: sans-serif;
        position: absolute;
        bottom: 20px;
        left: 0;
        width: 100%;
        position: absolute;
        z-index: 50;
    }

    /* Кнопки управления */
    .lightbox-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: none;
        padding: 15px;
        cursor: pointer;
        font-size: 24px;
        border-radius: 5px;
        transition: background 0.3s;
        user-select: none;
    }

    .lightbox-btn:hover {
        background: rgba(255, 255, 255, 0.3);
    }

    .lb-prev {
        left: 20px;
    }

    .lb-next {
        right: 20px;
    }

    .lb-close {
        position: absolute;
        top: 20px;
        right: 30px;
        background: transparent;
        color: #fff;
        border: none;
        font-size: 40px;
        cursor: pointer;
        z-index: 10001;
    }

    /* Скрываем кнопки навигации на мобильных, так как там есть свайп */
    @media (max-width: 768px) {

        .lb-prev,
        .lb-next {
            display: none;
        }
    }