@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Локальный шрифт хедера — Matahari (как на эталоне lucky-fit.com, .otf) */
@font-face {
    font-family: 'Matahari';
    font-style: normal;
    font-weight: 400;
    src: url('./assets/fonts/Matahari/Matahari-400Regular.otf') format('opentype');
}
@font-face {
    font-family: 'Matahari';
    font-style: normal;
    font-weight: 700;
    src: url('./assets/fonts/Matahari/Matahari-700Bold.otf') format('opentype');
}
@font-face {
    font-family: 'Matahari';
    font-style: normal;
    font-weight: 800;
    src: url('./assets/fonts/Matahari/Matahari-800ExtraBold.otf') format('opentype');
}

/* Анимация появления навигации (вынесена на верхний уровень — @keyframes нельзя вкладывать) */
@keyframes FadeInUp {
    0%   { transform: translateY(15px); opacity: 0; }
    100% { transform: translateY(0px);  opacity: 1; }
}

:root {
    --primary: #2A84FC;
    --primary-hover: #2471D9;
    --accent-orange: #ff5c00; /* Используется в градиенте, не меняем */
    --accent-blue: #00A3FF; /* Добавляем новый акцентный синий цвет */
    --bg-dark: #0a0a0a;
    --bg-light: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Сброс браузерного дефолта body (margin:8px) — как в оригинале (* { margin:0 }) */
body {
    margin: 0;
}

.luckyfit-equipment-page-wrapper {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    scroll-behavior: smooth;

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER-SMALL — пиксельный порт lucky-fit.com/blog/ (тема luckyfit/style.css) ===== */

/* Шрифт хедера — Matahari (как на эталоне). Скоуп только на хедер; остальная страница — Montserrat */
.header-small,
.header-small button {
    font-family: 'Matahari', sans-serif;
}

.header-small a {
    text-decoration: none;
    outline: none;
}

.header-small button {
    cursor: pointer;
    font-size: 14px;
    background: none;
    border: none;
}

/* header.header-small сам резервирует место под fixed-навбар (эталон: header{padding-bottom}) */
.header-small {
    background: url('./assets/img/header-bg.png') #196585 no-repeat;
    background-size: cover;
    padding-bottom: 135px;
    margin-bottom: 0;
}

.header-small .header-nav {
    margin-bottom: 0;
}

/* контейнер хедера — без боковых паддингов на десктопе (эталон: .container без padding) */
.header-small .container {
    padding: 0;
}

/* Фиксированная навигационная обёртка */
.ark-dynamic-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 11;
    transition: 0.3s ease-out 0s;
}

.ark-dynamic-header.header-2 {
    background: url('./assets/img/header-bg.png') #196585 no-repeat;
    background-size: cover;
}

/* при скролле вниз >= 50px */
.header--bg {
    top: 0;
    transition: 0.3s ease-out 0s;
    box-shadow: 0px 4px 4px rgb(0 0 0 / 25%);
    z-index: 11;
    position: fixed;
    width: 100%;
    background: url('./assets/img/header-bg.png') #196585 no-repeat;
    background-size: cover;
    padding: 10px 0px;
}

.header--bg .header-top-line {
    display: none;
}

.header--bg .header-nav {
    margin-bottom: 0;
}

/* скрытие при скролле вниз */
.header--hide {
    transition: 0.3s ease-out 0s;
    top: -200px;
}

/* ---- Верхняя строка ---- */
.header-top-line {
    border-bottom: 1px solid #ffffff4a;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 10px 0;
    margin-bottom: 15px;
}

.header-top-line.no-front {
    justify-content: space-between;
}

.header-top-line > a,
.header-top-line-new-wrapper > a {
    margin-right: 40px;
}

.header-top-line-new-wrapper {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* левое меню топ-бара (Система для секцій / Партнерам / Вакансії) */
.no-front-top-line-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.no-front-top-line-menu ul li {
    margin-right: 20px;
}

.no-front-top-line-menu ul li:last-child {
    margin-right: 0;
}

.no-front-top-line-menu ul li a {
    color: #B6B6B6;
    font-size: 13px;
    font-weight: 600;
}

.no-front-top-line-menu ul li.current-menu-item a {
    color: #FFF;
}

/* почта / телефон */
.header-top-line-mail {
    font-weight: 800;
    color: #FFFFFF;
    display: flex;
    align-items: center;
}

.header-top-line-mail::before {
    content: url('./assets/img/email.svg');
    margin-right: 10px;
}

.header-tel {
    font-weight: 800;
    color: #FFFFFF;
    display: flex;
    align-items: center;
}

.header-tel::before {
    content: url('./assets/img/tel.svg');
    margin-right: 10px;
}

/* соцсети */
.s0cial {
    display: flex;
    align-items: center;
    margin-top: 30px;
}

.s0cial a:not(:last-child) {
    margin: 0 10px 0 0;
}

.s0cial.social-header {
    margin-top: 0;
    margin-right: 50px;
}

.s0cial.social-header img {
    width: 20px;
}

/* переключатель языка */
.lang {
    font-weight: 700;
    color: #FFFFFF;
    position: relative;
    margin-right: 15px;
}

.lang-current {
    position: relative;
    cursor: pointer;
}

.lang-current::after {
    content: '';
    display: block;
    width: 9px;
    height: 5px;
    position: absolute;
    right: -15px;
    top: 4px;
    background: url('./assets/img/dropdown.svg') no-repeat right center;
    transition: all 0.27s ease-in-out;
    transform: rotate(0deg);
}

.lang-current.click::after {
    transform: rotate(180deg);
}

.langs-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 20px;
    left: -3px;
    background: #FFFFFF;
    box-shadow: 0px 2px 13px rgb(221 221 221);
    padding: 10px;
    width: 200%;
    z-index: 9;
}

/* раскрытие списка языков — JS-класс вместо jQuery slideToggle */
.langs-list.open {
    display: flex;
}

.langs-list-wrapper {
    display: flex;
    flex-direction: column;
}

.langs-list-item {
    margin-bottom: 10px;
}

.langs-list-item:last-child {
    margin-bottom: 0;
}

.langs-list-item span {
    color: #7C919B;
    cursor: pointer;
    text-transform: uppercase;
}

.langs-list-item.uk { order: 1; }
.langs-list-item.en { order: 2; }
.langs-list-item.pl { order: 3; }
.langs-list-item.ru { order: 4; }
.langs-list-item.es { order: 5; }
.langs-list-item.kk { order: 6; }

/* ---- Основная навигация ---- */
.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: FadeInUp 700ms ease 1;
}

.header-logo img {
    width: 85%;
    display: block;
}

.header-nav nav ul {
    list-style: none;
    display: flex;
}

.header-nav nav ul li {
    padding: 0 15px;
}

.header-nav nav ul li a {
    font-weight: 700;
    color: #AAD3EA;
}

.header-nav nav ul li a:hover,
.header-nav nav ul li.current-menu-item a {
    color: #fff;
}

/* кнопки хедера (Розпочати пробний період / Вхід) */
.header-nav button {
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 4px;
    padding: 15px;
    transition: all 0.5s;
    text-transform: uppercase;
}

.header-nav button:hover {
    color: #143868;
    background: #FFFFFF;
}

.header-nav button:hover span::before {
    filter: brightness(0.3);
}

.header-buttons-wrapper {
    display: flex;
    align-items: center;
}

.header-auth-btn {
    margin-left: 10px;
}

.header-auth-btn span {
    display: flex;
    align-items: center;
}

.header-auth-btn span::before {
    content: url('./assets/img/auth.svg');
    margin-right: 10px;
    height: 15px;
    margin-top: -5px;
}

/* ---- Мобильный враппер + бургер ---- */
.header-mob-wrapper {
    display: flex;
    align-items: center;
}

.header-mob-wrapper .header-tel,
.header-mob-wrapper > .header-auth-btn {
    display: none;
}

.header-mob-wrapper .s0cial {
    margin-top: 0;
    margin-left: 15px;
}

.header-mob-wrapper .header-auth-btn:hover {
    color: #FFFFFF;
    background: transparent;
}

.header-mob-wrapper .header-auth-btn:hover span::before {
    filter: none;
}

.tel-menu {
    display: none;
}

.adaptive-menu-btn {
    width: 37px;
    cursor: pointer;
}

.adaptive-menu-btn > div {
    width: 100%;
    height: 4px;
    background: #FFFFFF;
    margin-bottom: 6px;
    border-radius: 20px;
}

.adaptive-menu-btn > div:last-child {
    margin-bottom: 0;
}

/* ---- Мобильное меню ---- */
.adaptive-menu-content {
    position: fixed;
    top: 0;
    left: 0;
    background: url('./assets/img/header-bg.png') #196585 no-repeat;
    background-size: cover;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    transform: translateY(-100%);
    transition: all 0.2s ease;
    z-index: 99;
    padding: 35px 0;
    opacity: 0;
}

.adaptive-menu-content.showNav {
    top: 0;
    opacity: 1;
    transform: translateY(0);
}

.close-menu {
    cursor: pointer;
}

.hide-for-desktop {
    display: none;
}

body.no-scroll {
    overflow: hidden;
}

/* ---- Адаптив (брейкпоинты эталона) ---- */
@media (max-width: 1330px) {
    .header-small .container { max-width: 942px; }
    .header-tel span { display: none; }
    .header-logo img { width: 100%; }
    .header-nav nav ul li a { font-size: 12px; }
    .header-nav button { font-size: 10px; padding: 10px; }
    .header-tel::before { margin: 0; }
    .header-auth-btn span::before { display: none; }

    .footer-wrapper {
        grid-template-columns: 30% 67%;
        gap: 0px 3%;
    }

    .footer-column:nth-child(2) {
        grid-template-columns: 50% 40%;
        gap: 0 10%;
    }
}

@media (max-width: 992px) {
    .header-small .container { max-width: 718px; }
    .header-small { padding-bottom: 85px; }
    .social-header { display: none; }
    .header-top-line { display: none; }
    .header-nav > nav,
    .header-nav button,
    .lang,
    .header-buttons-wrapper { display: none; }

    .ark-dynamic-header.header-2 { padding: 10px 0; }
    .ark-dynamic-header { padding: 15px 0 !important; }

    .header-mob-wrapper { display: flex; }
    .header-mob-wrapper .header-tel,
    .header-mob-wrapper > .header-auth-btn { display: flex; border: none; }
    .header-mob-wrapper > .header-auth-btn { margin-right: 25px; }
    .header-mob-wrapper > .header-auth-btn span::before { display: block; margin-right: 0; }

    .header-tel { margin-right: 40px; }
    .header-tel span { display: block; }
    .header-tel::before { margin-right: 10px; }

    .tel-menu { display: block; }
    .tel-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .tel-menu-header-wrap {
        display: flex;
        align-items: center;
    }
    .tel-menu-header-wrap .lang {
        display: block;
        margin-right: 55px;
        font-size: 20px;
    }
    .lang-current::after { top: 6px; }
    .langs-list { top: 25px; left: -9px; }

    .menu-adaptive {
        margin: 0;
        position: absolute;
        top: 50%;
        transform: translate(0, -50%);
    }
    .menu-adaptive ul {
        display: flex;
        flex-direction: column;
        line-height: 60px;
    }
    .header-nav nav ul li { padding: 0; }
    .header-nav nav ul li a {
        font-weight: 700;
        font-size: 24px;
        line-height: 60px;
    }

    .header-buttons-wrapper-mob {
        width: 100%;
        position: absolute;
        bottom: 30px;
    }
    .header-buttons-wrapper-mob .header-auth-btn { margin-bottom: 10px; }
    .header-buttons-wrapper-mob .header-auth-btn span { justify-content: center; }

    .adaptive-menu-content button {
        display: block;
        width: 718px;
        font-size: 14px;
        padding: 16px;
        margin-left: 0;
        text-transform: uppercase;
    }

    .hide-for-desktop { display: list-item; }

    .footer-wrapper {
        display: flex !important;
        flex-direction: column;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-logo-col-partner {
        display: none;
    }

    .footer-markets {
        width: max-content;
    }
}

@media (max-width: 768px) {
    .header-small .container { max-width: 526px; }
    .adaptive-menu-content button { width: 526px; }
}

@media (max-width: 576px) {
    .header-small .container { max-width: 100%; padding: 0; }
    .header-small { padding-bottom: 55px !important; }

    .adaptive-menu-content {
        background: #1a6084;
        padding: 20px 0 30px 0;
    }

    .header-logo { width: 170px; }
    .header-nav { margin-bottom: 110px; }

    .header-tel span { display: none; }
    .header-tel { margin-right: 25px; }
    .header-tel::before { content: url('./assets/img/tel-big.svg'); margin-right: 0; }

    .adaptive-menu-btn > div { height: 6px; }
    .menu-adaptive { top: 45%; }
    .menu-adaptive ul { line-height: 0; }
    .header-nav nav ul li a { font-size: 20px; line-height: 50px; }
    .header-mob-wrapper .s0cial { margin-top: 10px; margin-left: 0; }
    .s0cial a img { width: 40px; }
    .header-mob-wrapper > .header-auth-btn span::before { margin-top: -10px; transform: scale(1.5); }
    .adaptive-menu-content button { width: calc(100% - 30px); }

    .footer-wrapper {
        display: block !important;
        margin-bottom: 40px;
    }

    footer {
        padding-top: 40px;
        background: url('./assets/img/footer-mob-bg.png') #196585 no-repeat;
        background-size: cover;
    }

    .footer-column:first-child {
        margin-bottom: 45px;
    }

    .footer-column:nth-child(2) nav {
        margin: 0 0 45px 0;
    }

    .footer-copyright-wrapper {
        justify-content: center;
    }

    .footer-copyright-wrapper span:nth-child(2) {
        display: none;
    }

    .market-rating {
        display: none;
    }

    .footer-markets {
        width: 100%;
        justify-content: space-between;
    }

    .footer-subcolumn,
    .footer-column nav {
        margin-bottom: 0 !important;
    }

    .footer-subcolumn.footer-subcolumn-icons {
        display: flex;
        flex-direction: column;
        gap: 35px;
    }

    .footer-column:nth-child(2) {
        display: flex !important;
        flex-direction: column;
    }

    .footer-subcolumn {
        gap: 20px !important;
    }
}

@media (max-width: 600px) {
    .header--bg {
        background: url('./assets/img/header-mob-bg.png') #1a6084 no-repeat;
        background-size: cover;
    }
}

@media (max-width: 315px) {
    .header-tel { display: none; }
}


/* General styles (keep existing) */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

/* Categories */
.categories {
  
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    margin-top: 20px;
}

.category-carousel-wrapper {
    position: relative;
    width: 100%; /* Full width */
    display: flex; /* Keep flex for content */
    align-items: center;
    padding: 20px 0;
    overflow: visible;
}

.category-grid {
    flex-grow: 1;
    display: flex;
    gap: 42px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    scroll-snap-type: x mandatory; /* Scroll Snap */
    padding: 12px; /* Додано пэддінг зверху та знизу для запобігання обрізанню карток та тіней при hover */
    margin: -12px 4px; /* Компенсуючий маргін */
}

.category-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

.category-card {
    scroll-snap-align: start; /* Scroll Snap */
}

.category-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera*/
}

.carousel-button {
    position: absolute; /* Position buttons absolutely */
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: var(--primary); /* Blue color */
    color: var(--white); /* White arrow */
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: var(--shadow);
    transition: opacity 0.3s ease, background-color 0.2s; /* Add opacity transition */
    opacity: 0; /* Hidden by default */
    pointer-events: none; /* Disable events when hidden */
}

.carousel-button-prev { left: 20px; }
.carousel-button-next { right: 20px; }

.category-carousel-wrapper:hover .carousel-button {
    opacity: 1; /* Show on hover */
    pointer-events: auto; /* Enable events on hover */
}

.carousel-button:hover {
    background-color: var(--primary-hover); /* Darken blue on hover */
    box-shadow: var(--shadow-lg);
}



.category-card {
    flex-shrink: 0;
    width: 359px; /* Fixed width for consistent display */
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background: var(--white);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    cursor: pointer;
    overflow: hidden;
    text-align: left;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px); /* Підняття на 8px */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Додавання тіні */
}

.category-label {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(42, 132, 252, 0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

/* Спеціальні стилі для карток статей */
.article-card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    padding: 24px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.article-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12) !important;
    border: none !important;
}

.article-card h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.4 !important;
    margin-bottom: 12px !important;
}

.article-card p {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

.product-category-label {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(42, 132, 252, 0.1);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}



.category-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
    white-space: normal; /* Allow text wrapping */
    max-width: 100%;
    word-wrap: break-word; /* Break long words */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2 рядки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px; /* Додайте маргін знизу */
}

.category-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
    white-space: normal; /* Allow text wrapping */
    max-width: 100%;
    word-wrap: break-word; /* Break long words */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* 4 рядки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px; /* Додайте маргін знизу */
}

/* Products */
.products {
    
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-top: 10px;
    padding-bottom: 10px;
}

.filter-btn {
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 99px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.product-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    height: 270px; /* Changed height to 270px */
    background-color: #FFFFFF;
    border: none;
    object-fit: contain;
}

.product-info {
    padding: 24px;
}

.product-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-features {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.product-features li {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.product-features li::before {
    content: "\2022";
    color: var(--primary);
    font-weight: bold;
    margin-right: 8px;
}

.logo-text-accent {
    color: var(--primary);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

.product-detail-btn {
    padding: 8px 16px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
}

/* Contact */
.contact {
    padding: 80px 0;
    background-color: var(--white);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border);
    font-family: inherit;
    font-size: 15px;
}

.contact-form textarea {
    height: 120px;
    resize: none;
}

/* Footer */
footer a {
    text-decoration: none;
}

footer {
    font-family: 'Matahari', sans-serif;
    font-size: 14px;
    line-height: normal;
    background: url('./assets/img/footer-bg.png') #196585 no-repeat;
    background-size: cover;
    padding: 60px 0 0 0;
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 36% 49%;
    gap: 0 10%;
    margin-bottom: 60px;
}

.footer-column:first-child > a {
    display: block;
    margin-bottom: 30px;
}

.footer-column p {
    line-height: 28px;
    letter-spacing: 0.03em;
    color: #C4D5F5;
}

.footer-column:nth-child(2) {
    display: grid;
    grid-template-columns: 65% 30%;
    gap: 0 15%;
}

.footer-column:nth-child(2) nav div {
    margin-bottom: 15px;
}

.footer-partner-title {
    font-size: 14px;
    color: #fff !important;
    font-weight: 600;
    margin: 10px 0;
}

.footer-column:nth-child(2) nav span,
.footer-column:nth-child(2) .footer-contacts div span,
.footer-subcolumn.footer-subcolumn-icons span {
    font-weight: 700;
    font-size: 16px;
    line-height: 128%;
    letter-spacing: 0.03em;
    color: #FFFFFF;
    display: block;
    margin-bottom: 10px;
}

.footer-column:nth-child(2) nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column:nth-child(2) nav ul li {
    line-height: 32px;
}

.footer-column:nth-child(2) nav ul li a {
    color: #FFFFFF;
}

.footer-subcolumn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
}

.footer-contacts div:first-child {
    margin-bottom: 30px;
}

.footer-contacts p,
.footer-contacts a,
.footer-subcolumn p,
.footer-subcolumn a {
    line-height: 20px;
    letter-spacing: 0.03em;
    color: #FFFFFF;
    display: flex;
    align-items: center;
}

.footer-subcolumn-icons > div {
    margin-top: 35px;
}

.footer-subcolumn-icons > div:first-child {
    margin-top: 0;
}

.footer-logo-col {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
}

.footer-subcolumn-icons a {
    margin-bottom: 10px;
}

.footer-subcolumn a img,
.footer-subcolumn-icons a img {
    margin-right: 7px;
}

.footer-contacts div a:first-child {
    margin-bottom: 10px;
}

.footer-copyright {
    padding: 5px 0;
    border-top: 1px solid #3188A9;
}

.footer-copyright-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright-wrapper div {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-copyright-wrapper span {
    font-size: 12px;
    line-height: 36px;
    color: #FFFFFF;
}

.footer-markets {
    display: flex;
}

.as {
    margin-right: 10px;
}

.market-rating {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.market-rating em {
    font-style: normal;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: flex;
    gap: 5px;
}

.market-rating i {
    font-style: normal;
    color: #fff;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 992px) {
    .nav-list { display: none; }
}

@media (max-width: 768px) {
    .header { height: 70px; }
    .hero h1 { font-size: 32px; }
    .hero { padding: 40px 0; }
    .products-header { flex-direction: column; align-items: flex-start; gap: 20px; }
    .nav-actions { display: none; }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 101;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
}

/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
}

.carousel-slides {
    display: flex;
    transition: transform 0.3s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.modal.open {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    position: relative;
    width: 80%;
    max-width: 900px;
    animation: fadeIn 0.3s ease-out;
}

.close-modal {
    color: var(--text-muted);
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-product-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: none;
    object-fit: contain;
}

.modal-product-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.modal-product-features {
    list-style: none;
    margin-bottom: 20px;
    padding-left: 0;
}

.modal-product-features li {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.modal-product-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

.modal-product-price {
    font-size: 25px;
    font-weight: 800;
    color: var(--primary);
}

.modal-header-content {
    margin-bottom: 20px;
}

.modal-title-row {
    display: flex;
  /*  justify-content: space-between;*/
    align-items: baseline;
    gap: 50%;
}

.modal-description-section {
    margin-bottom: 25px;
}

.modal-full-description {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    text-align: justify;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    display: inline-block;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.specs-table tr:nth-child(even) {
    background-color: #f1f5f9;
}

.specs-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.spec-label {
    font-weight: 600;
    color: var(--text-main);
    width: 45%;
}

.spec-value {
    color: var(--text-muted);
}

.spec-note {
    font-style: italic;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 15px !important;
    border-bottom: none !important;
}

.docs-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-doc {
    background-color: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 20px;
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.btn-doc:hover {
    background-color: var(--primary);
    color: var(--white);
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.modal-actions .btn {
    min-width: 120px;
}

.modal-actions .btn-secondary {
    background-color: var(--border);
    color: var(--text-main);
}

.modal-actions .btn-secondary:hover {
    background-color: #DAE2ED;
    transform: translateY(-1px);
}

.modal-body-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.product-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f1f5f9;
    color: #334155;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9em;
    border: 1px solid #e2e8f0;
}

.article-hero-block {
    display: flex;
    align-items: center;
    gap: 24px;
}

.article-video-column {
    flex: 0 0 35%; /* Відео займає близько 35% ширини */
    max-width: 300px; /* Обмежуємо максимальну ширину для вертикального відео */
}

.modal-article-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.article-intro-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-intro-column p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color, #333);
    font-weight: 500; /* Робимо вступний абзац трохи виразнішим */
}

.modal-full-content h3 {
    margin-top: 32px !important;
    margin-bottom: 16px !important;
    color: #1e293b;
    font-size: 1.3rem;
}

.modal-full-content ul {
    padding-left: 20px;
}

.modal-full-content ul li {
    margin-bottom: 12px !important;
}

.article-callout-box {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    margin-top: 40px !important;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .article-hero-block {
        flex-direction: column;
        align-items: center;
    }
    
    .article-video-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Filters styling */
.filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.btn-filter {
    background-color: var(--white);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}

.btn-filter:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-filter.active {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(42, 132, 252, 0.3);
}
}
