:root {
    --primary-color: #fcb426;
    --primary-hover: #e09b1f;
    --text-dark: #1a1d20;
    --text-muted: #555555;
    --bg-light: #ffffff;
    --header-height: 80px;
    --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* === Основний контейнер Хедера === */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast), height var(--transition-fast);
    animation: headerFadeIn 0.8s ease-out forwards;
}

/* Стан при скролі (Sticky) */
.site-header.is-sticky {
    height: 70px;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

/* === Логотип === */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--transition-fast);
}

.site-logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 38px;
    height: 38px;
    transition: transform 0.5s ease;
}

.site-logo:hover .logo-icon {
    transform: rotate(30deg);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* === Навігаційне меню === */
.main-navigation .nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 28px;
}

.main-navigation .nav-menu a {
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

/* Анімація підкреслення при наведенні */
.main-navigation .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

.main-navigation .nav-menu a:hover {
    color: var(--primary-color);
}

.main-navigation .nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* === Контакти та Кнопка === */
.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    transition: color var(--transition-fast);
}

.phone-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(252, 180, 38, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.header-phone:hover {
    color: var(--primary-color);
}

.header-phone:hover .phone-icon-wrapper {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: scale(1.1);
}

.phone-icon-wrapper svg {
    width: 16px;
    height: 16px;
}

/* Кнопка */
.btn-primary {
    background-color: var(--primary-color);
    color: #111111;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 4px 15px rgba(252, 180, 38, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 180, 38, 0.45);
}

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

/* === Анімація Появи Хедера === */
@keyframes headerFadeIn {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Поворот SVG-іконки при наведенні на логотип */
.site-logo:hover .logo-icon {
    transform: rotate(90deg);
}


/* === Темний Футер === */
.site-footer {
    background-color: #12161f; /* Темний графітовий фон */
    color: #a0aec0;
    padding-top: 60px;
    padding-bottom: 25px;
    border-top: 3px solid var(--primary-color);
    font-family: inherit;
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.9fr 1.1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* --- Колонка 1: Бренд --- */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
    transition: transform 0.4s ease-in-out;
}

.footer-logo:hover .logo-icon {
    transform: rotate(90deg);
}

.footer-logo .logo-text {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #12161f;
    transform: translateY(-3px);
}

/* --- Заголовки колонок --- */
.footer-heading {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
}

/* --- Список посилань --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

/* --- Контакти --- */
.footer-contacts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    color: #94a3b8;
}

.footer-contacts a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: var(--primary-color);
}

.contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(252, 180, 38, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 14px;
    height: 14px;
}

/* --- Нижня панель --- */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

/* === Адаптивність для мобільних пристроїв === */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* === Hero Section === */
.hero-section {
    position: relative;
    background-color: #080a10;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(252, 180, 38, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 30%, rgba(252, 180, 38, 0.05) 0%, transparent 35%);
    padding-top: 130px; /* Зсув враховуючи фіксований хедер */
    padding-bottom: 70px;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #ffffff;
}

.hero-slider {
    width: 100%;
    position: relative;
}

/* === Слайди та переходи === */
.hero-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-slide.active {
    display: block;
    opacity: 1;
}

.hero-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: center;
}

/* === Контент слайду === */
.hero-content {
    z-index: 2;
}

.hero-title {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    color: var(--primary-color, #fcb426);
    display: block;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 32px;
    max-width: 520px;
}

/* Кнопка */
.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.hero-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* === Зображення/Монітор === */
.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.media-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(252, 180, 38, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.8s ease;
}

/* === Анімація появи тексту при зміні слайду === */
.hero-slide.active .hero-title {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-slide.active .hero-subtitle {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
}

.hero-slide.active .hero-btn {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.hero-slide.active .media-wrapper {
    animation: fadeInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === Пагінація (Крапки) === */
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color, #fcb426);
    width: 32px;
    border-radius: 6px;
}

/* === Адаптивність === */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-section {
        padding-top: 110px;
    }
}


/* === Секція Про Компанію (Світла стилістика) === */
.about-company-section {
    background-color: #ffffff;
    color: #1a1d20;
    padding: 80px 0;
    position: relative;
}

.about-company-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Верхній блок --- */
.about-company-top {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 70px;
}

.about-subtitle {
    color: var(--primary-color, #fcb426);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 12px;
}

.about-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 28px;
    color: #1a1d20;
}

.about-description p {
    color: #4a5568;
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 18px;
}

.about-description p:last-child {
    margin-bottom: 0;
}

/* --- Відео плеєр --- */
.about-company-video {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Нижній блок --- */
.about-company-bottom {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    padding-top: 50px;
    border-top: 1px solid #e2e8f0;
    align-items: center;
}

.bottom-title-col h3 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1d20;
    line-height: 1.3;
}

.bottom-text-col p {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

/* === Адаптивність === */
@media (max-width: 992px) {
    .about-company-top,
    .about-company-bottom {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-title {
        font-size: 26px;
    }

    .bottom-title-col h3 {
        font-size: 22px;
    }
}


/* === Секція Принципи Нашої Роботи === */
.principles-section {
    background-color: #12161f; /* Контрастний темний фон */
    color: #ffffff;
    padding: 40px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.principles-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.principles-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #ffffff;
    margin-bottom: 50px;
    position: relative;
}

.principles-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color, #fcb426);
    margin: 12px auto 0 auto;
    border-radius: 2px;
}

/* --- Сітка на 4 колонки --- */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* --- Картка принципу --- */
.principle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.principle-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.04);
    border-color: rgba(252, 180, 38, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(252, 180, 38, 0.1);
}

/* --- Іконка --- */
.principle-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(252, 180, 38, 0.1);
    color: var(--primary-color, #fcb426);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.principle-icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.principle-card:hover .principle-icon-wrapper {
    background-color: var(--primary-color, #fcb426);
    color: #0b1120;
    transform: scale(1.1);
}

/* --- Текст --- */
.principle-text {
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
    font-weight: 500;
}

/* === Адаптивність === */
@media (max-width: 992px) {
    .principles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .principles-title {
        font-size: 22px;
    }
}


/* === Секція Продукти === */
.products-section {
    background-color: #f8fafc;
    padding: 80px 0;
    color: #1a1d20;
}

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

/* --- Заголовок секції --- */
.products-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.products-subtitle {
    color: var(--primary-color, #fcb426);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.products-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
    line-height: 1.25;
}

.products-description {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* --- Сітка продуктів (3 колонки) --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* --- Картка продукту --- */
.product-card {
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

/* --- Зображення та круглий ікон-бедж --- */
.product-media {
    position: relative;
    height: 200px;
    width: 100%;
    overflow: hidden;
    background-color: #f1f5f9;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-media img {
    transform: scale(1.05);
}

.product-badge-icon {
    position: absolute;
    bottom: -22px;
    left: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.product-badge-icon svg {
    width: 22px;
    height: 22px;
}

.product-card:hover .product-badge-icon {
    background-color: var(--primary-color, #fcb426);
    border-color: var(--primary-color, #fcb426);
    color: #0f172a;
}

/* --- Текстовий вміст картки --- */
.product-body {
    padding: 36px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
    line-height: 1.35;
}

.product-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-card-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.product-card-link:hover {
    color: #1d4ed8;
}

.product-card-link:hover svg {
    transform: translateX(4px);
}

/* --- Нижній блок з кнопкою --- */
.products-footer {
    text-align: center;
}

.btn-all-products {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.btn-all-products svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.btn-all-products:hover {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.btn-all-products:hover svg {
    transform: translateX(4px);
}

/* === Адаптивність === */
@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-title {
        font-size: 26px;
    }
}


/* === Загальні стилі сторінок продуктів === */
.site-main {
    background-color: #f8fafc;
    min-height: 80vh;
}

/* --- Hero Банер для Архіву та Single --- */
.page-hero-section,
.single-product-hero {
    background-color: #0b162c; /* Темний темно-синій фон як на скріншоті */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 60px 0 70px 0;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
}

.hero-container,
.single-container,
.archive-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Хлібні крихти */
.breadcrumbs {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.breadcrumbs .sep {
    margin: 0 8px;
    color: #64748b;
}

.breadcrumbs .current {
    color: #94a3b8;
}

/* Посилання назад */
.back-link {
    display: inline-block;
    color: #38bdf8;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 25px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
    color: #7dd3fc;
    transform: translateX(-3px);
}

/* Заголовки */
.hero-title {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 750px;
    line-height: 1.6;
    margin: 0;
}

/* --- Single Hero Title & Icon --- */
.single-product-title-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-hero-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #0b162c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.product-hero-icon svg {
    width: 26px;
    height: 26px;
}

.single-product-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

/* --- Основний контент детальної сторінки (Single) --- */
.single-product-body {
    padding: 50px 0 80px 0;
}

.product-content-card {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 45px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.entry-content {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content p:last-child {
    margin-bottom: 0;
}

/* Блок з кнопкою консультації */
.product-cta-block {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.btn-consultation {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid #2563eb;
    border-radius: 6px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    background-color: transparent;
}

.btn-consultation:hover {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* --- Контент Архіву --- */
.products-archive-content {
    padding: 60px 0 80px 0;
}

.archive-pagination {
    margin-top: 50px;
    text-align: center;
}

.archive-pagination .nav-links {
    display: inline-flex;
    gap: 8px;
}

.archive-pagination a,
.archive-pagination .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.archive-pagination a:hover,
.archive-pagination .current {
    background-color: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* === Адаптивність === */
@media (max-width: 768px) {
    .page-hero-section,
    .single-product-hero {
        padding: 40px 0 50px 0;
    }

    .hero-title,
    .single-product-title {
        font-size: 24px;
    }

    .product-content-card {
        padding: 25px 20px;
    }

    .single-product-title-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}



/* ==========================================================================
   Single Product Styles (ANSYS / Soft Engineering Style)
   ========================================================================== */

.product-single-page {
    background-color: #f8fafc;
    color: #1e293b;
    font-family: inherit;
}

.product-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero Section --- */
.product-hero {
    margin-top: 50px;
    background-color: #0b1120;
    background-size: cover;
    background-position: center;
    padding: 55px 0 65px 0;
    border-bottom: 2px solid rgba(252, 180, 38, 0.25);
    color: #ffffff;
}

.hero-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    transition: all 0.25s ease;
}

.hero-back-link:hover {
    color: #fcb426;
    border-color: #fcb426;
    background: rgba(252, 180, 38, 0.08);
}

.hero-title-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-icon-box {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(252, 180, 38, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* --- Content Layout --- */
.product-content-area {
    padding: 50px 0 80px 0;
}

.product-grid-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

/* --- Main Card --- */
.product-main-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 40px 48px;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.04);
}

/* --- Automatic Formatting for Content --- */
.entry-content {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}

/* Перший вступний абзац (Lead Paragraph) */
.entry-content > p:first-of-type {
    font-size: 16px;
    line-height: 1.75;
    color: #0f172a;
    background-color: #f8fafc;
    border-left: 4px solid #fcb426;
    padding: 18px 22px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 30px;
}

/* Всі наступні абзаци */
.entry-content p {
    margin-bottom: 22px;
}

/* Виділення назв продуктів у тексті */
.entry-content strong {
    color: #0f172a;
    font-weight: 700;
}

/* Заголовки всередині контенту */
.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    color: #0b1120;
    font-weight: 700;
    margin: 35px 0 16px 0;
    line-height: 1.3;
}

.entry-content h2 { font-size: 22px; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; }
.entry-content h3 { font-size: 18px; }

/* Списки */
.entry-content ul {
    margin: 0 0 25px 0;
    padding-left: 0;
    list-style: none;
}

.entry-content ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #fcb426;
}

/* --- CTA Banner --- */
.product-cta-banner {
    margin-top: 45px;
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    border-radius: 10px;
    padding: 30px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #ffffff;
}

.cta-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #ffffff;
}

.cta-info p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* Кнопка */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background-color: #fcb426;
    color: #0b1120;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(252, 180, 38, 0.3);
}

.btn-gold:hover {
    background-color: #f5a60b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 180, 38, 0.4);
    color: #000000;
}

/* --- Sidebar --- */
.sidebar-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 28px;
    position: sticky;
    top: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.sidebar-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fcb426;
    background-color: #0b1120;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

.sidebar-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sidebar-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.sidebar-phone:hover {
    color: #fcb426;
}

.btn-sidebar-outline {
    display: block;
    text-align: center;
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #0b1120;
    border-radius: 6px;
    color: #0b1120;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.btn-sidebar-outline:hover {
    background-color: #0b1120;
    color: #ffffff;
}

/* --- Adaptive Mobile --- */
@media (max-width: 992px) {
    .product-grid-layout {
        grid-template-columns: 1fr;
    }

    .product-main-card {
        padding: 28px 24px;
    }

    .product-cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-gold {
        width: 85%;
    }

    .hero-title {
        font-size: 26px;
    }
}

/* ==========================================================================
   Стилізація посилань на PDF-файли та документи
   ========================================================================== */

/* Автоматичний вигляд для всіх посилань, що ведуть на .pdf */
.entry-content a[href*=".pdf"] {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    margin: 20px 0;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #fcb426; /* Золотиста акцентна смуга */
    border-radius: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    max-width: 550px;
}

/* Ховер-ефект */
.entry-content a[href*=".pdf"]:hover {
    background-color: #ffffff;
    border-color: #cbd5e1;
    border-left-color: #f5a60b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    color: #0b1120;
}

/* Іконка документа перед текстом */
.entry-content a[href*=".pdf"]::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fcb426' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'%3E%3C/path%3E%3Cpolyline points='14 2 14 8 20 8'%3E%3C/polyline%3E%3Cline x1='12' y1='18' x2='12' y2='12'%3E%3C/line%3E%3Cpolyline points='9 15 12 18 15 15'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Блок-плашка "PDF / Завантажити" праворуч */
.entry-content a[href*=".pdf"]::after {
    content: "PDF";
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fcb426;
    background-color: #0b1120;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.entry-content a[href*=".pdf"]:hover::after {
    background-color: #fcb426;
    color: #0b1120;
}


/* ==========================================================================
   Archive Products Styles (Soft Engineering / ANSYS Theme)
   ========================================================================== */

.products-archive-page {
    background-color: #f8fafc;
    min-height: 85vh;
}

.archive-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero Section --- */
.archive-hero {
    margin-top: 50px;
    background-color: #0b1120;
    background-size: cover;
    padding: 50px 0 60px 0;
    border-bottom: 2px solid rgba(252, 180, 38, 0.25);
    color: #ffffff;
}

.archive-breadcrumbs {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 25px;
}

.archive-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.archive-breadcrumbs a:hover {
    color: #fcb426;
}

.archive-breadcrumbs .sep {
    margin: 0 8px;
    color: #475569;
}

.archive-breadcrumbs .current {
    color: #94a3b8;
}

.archive-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fcb426;
    background: rgba(252, 180, 38, 0.1);
    border: 1px solid rgba(252, 180, 38, 0.3);
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.archive-hero-title {
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.archive-hero-desc {
    font-size: 16px;
    color: #94a3b8;
    max-width: 720px;
    line-height: 1.6;
    margin: 0;
}

/* --- Archive Grid Section --- */
.archive-grid-section {
    padding: 60px 0 80px 0;
}

.products-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Product Card --- */
.archive-product-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.archive-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(252, 180, 38, 0.5);
    box-shadow: 0 12px 30px rgba(11, 17, 32, 0.12);
}

/* Card Media Header */
.card-media-wrapper {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0b1120;
}

.card-media-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-product-card:hover .card-media-wrapper img {
    transform: scale(1.06);
}

/* Floating Icon Badge */
.card-icon-badge {
    position: absolute;
    bottom: -18px;
    left: 24px;
    width: 44px;
    height: 44px;
    background: #0b1120;
    border: 2px solid #fcb426;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* Card Body */
.card-content-wrapper {
    padding: 30px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-product-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.card-product-title a {
    color: #0b1120;
    text-decoration: none;
    transition: color 0.2s ease;
}

.archive-product-card:hover .card-product-title a {
    color: #fcb426;
}

.card-product-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Card Footer & Link */
.card-footer {
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.card-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b1120;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.card-more-btn svg {
    transition: transform 0.2s ease;
}

.archive-product-card:hover .card-more-btn {
    color: #fcb426;
}

.archive-product-card:hover .card-more-btn svg {
    transform: translateX(4px);
}

/* --- Pagination --- */
.archive-pagination-wrap {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.archive-pagination-wrap .nav-links {
    display: flex;
    gap: 8px;
}

.archive-pagination-wrap a,
.archive-pagination-wrap .current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.archive-pagination-wrap a:hover,
.archive-pagination-wrap .current {
    background-color: #0b1120;
    color: #fcb426;
    border-color: #0b1120;
}

/* --- Help / CTA Banner --- */
.archive-help-banner {
    margin-top: 60px;
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    border-radius: 12px;
    padding: 35px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    color: #ffffff;
    border: 1px solid rgba(252, 180, 38, 0.2);
}

.help-banner-text h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
}

.help-banner-text p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.btn-archive-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background-color: #fcb426;
    color: #0b1120;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(252, 180, 38, 0.3);
}

.btn-archive-cta:hover {
    background-color: #f5a60b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 180, 38, 0.4);
    color: #000000;
}

/* --- Responsive Layout --- */
@media (max-width: 1024px) {
    .products-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-archive-grid {
        grid-template-columns: 1fr;
    }

    .archive-help-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 20px;
    }

    .btn-archive-cta {
        width: 85%;
    }

    .archive-hero-title {
        font-size: 28px;
    }
}

/* ==========================================================================
   Homepage Products Section
   ========================================================================== */

.home-products-section {
    padding: 80px 0 90px 0;
    background-color: #f8fafc;
}

.home-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section Header --- */
.home-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.home-section-subtitle {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fcb426;
    margin-bottom: 12px;
}

.home-section-title {
    font-size: 34px;
    font-weight: 800;
    color: #0b1120;
    margin: 0 0 14px 0;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.home-section-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* --- Products Grid (3 Columns) --- */
.home-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Card Design --- */
.home-product-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.home-product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(252, 180, 38, 0.5);
    box-shadow: 0 12px 30px rgba(11, 17, 32, 0.1);
}

/* Card Media */
.home-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0b1120;
}

.home-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-product-card:hover .home-card-media img {
    transform: scale(1.06);
}

/* Badge Icon */
.home-card-badge {
    position: absolute;
    bottom: -16px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: #0b1120;
    border: 2px solid #fcb426;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

/* Card Body */
.home-card-body {
    padding: 28px 22px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.home-card-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.home-card-title a {
    color: #0b1120;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-product-card:hover .home-card-title a {
    color: #fcb426;
}

.home-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Card Link */
.home-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b1120;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.home-card-link svg {
    transition: transform 0.2s ease;
}

.home-product-card:hover .home-card-link {
    color: #fcb426;
}

.home-product-card:hover .home-card-link svg {
    transform: translateX(4px);
}

/* --- Bottom Button "Усі продукти" --- */
.home-products-footer {
    margin-top: 50px;
    text-align: center;
}

.btn-home-all-products {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background-color: #ffffff;
    border: 1px solid #0b1120;
    border-radius: 8px;
    color: #0b1120;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(11, 17, 32, 0.05);
}

.btn-home-all-products:hover {
    background-color: #0b1120;
    color: #fcb426;
    border-color: #0b1120;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 17, 32, 0.15);
}

/* --- Adaptive --- */
@media (max-width: 1024px) {
    .home-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .home-products-grid {
        grid-template-columns: 1fr;
    }

    .home-section-title {
        font-size: 26px;
    }

    .home-products-section {
        padding: 50px 0 60px 0;
    }
}



/* ==========================================================================
   Why Choose Us Section Styles
   ========================================================================== */

.why-us-section {
    padding: 80px 0;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.why-us-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.why-us-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.why-us-subtitle {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fcb426;
    margin-bottom: 10px;
}

.why-us-title {
    font-size: 32px;
    font-weight: 800;
    color: #0b1120;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1.25;
}

/* Grid */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/* Card Style */
.why-us-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Accent top border on hover */
.why-us-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #fcb426;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.why-us-card:hover {
    background-color: #ffffff;
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 30px rgba(11, 17, 32, 0.08);
}

.why-us-card:hover::before {
    opacity: 1;
}

/* Icon Container */
.why-us-icon {
    width: 56px;
    height: 56px;
    background-color: #0b1120;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 4px 12px rgba(11, 17, 32, 0.15);
    transition: transform 0.3s ease;
}

.why-us-card:hover .why-us-icon {
    transform: scale(1.05);
}

/* Content */
.why-us-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0b1120;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.why-us-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-us-section {
        padding: 50px 0;
    }

    .why-us-title {
        font-size: 26px;
    }

    .why-us-card {
        padding: 24px;
    }
}


/* ==========================================================================
   Applications CPT Styles
   ========================================================================== */

.applications-archive-page,
.single-application-page {
    background-color: #f8fafc;
    min-height: 85vh;
}

.app-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Hero Section --- */
.app-archive-hero,
.single-app-hero {
    margin-top: 50px;
    background-color: #0b1120;
    padding: 50px 0 60px 0;
    border-bottom: 2px solid rgba(252, 180, 38, 0.25);
    color: #ffffff;
}

.app-breadcrumbs {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 25px;
}

.app-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.app-breadcrumbs a:hover {
    color: #fcb426;
}

.app-breadcrumbs .sep {
    margin: 0 8px;
    color: #475569;
}

.app-breadcrumbs .current {
    color: #94a3b8;
}

.app-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fcb426;
    background: rgba(252, 180, 38, 0.1);
    border: 1px solid rgba(252, 180, 38, 0.3);
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.app-hero-title,
.single-app-title {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    letter-spacing: -0.5px;
}

.app-hero-desc {
    font-size: 16px;
    color: #94a3b8;
    max-width: 720px;
    line-height: 1.6;
    margin: 0;
}

/* --- Archive Grid --- */
.app-grid-section {
    padding: 60px 0 80px 0;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.app-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.app-card:hover {
    transform: translateY(-6px);
    border-color: rgba(252, 180, 38, 0.5);
    box-shadow: 0 12px 30px rgba(11, 17, 32, 0.1);
}

.app-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0b1120;
}

.app-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.app-card:hover .app-card-media img {
    transform: scale(1.06);
}

.app-card-badge {
    position: absolute;
    bottom: -16px;
    left: 20px;
    width: 38px;
    height: 38px;
    background: #0b1120;
    border: 2px solid #fcb426;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.app-card-body {
    padding: 28px 22px 22px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.app-card-title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.app-card-title a {
    color: #0b1120;
    text-decoration: none;
    transition: color 0.2s ease;
}

.app-card:hover .app-card-title a {
    color: #fcb426;
}

.app-card-excerpt {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.app-card-footer {
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.app-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0b1120;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.app-more-btn svg {
    transition: transform 0.2s ease;
}

.app-card:hover .app-more-btn {
    color: #fcb426;
}

.app-card:hover .app-more-btn svg {
    transform: translateX(4px);
}

/* --- Single Page Layout --- */
.single-app-body {
    padding: 60px 0;
}

.single-app-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
}

.single-app-main {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.single-app-featured-img {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.single-app-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}

.cta-widget {
    background: #0b1120;
    border-color: rgba(252, 180, 38, 0.3);
    color: #ffffff;
}

.cta-widget h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #ffffff;
}

.cta-widget p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.btn-app-sidebar {
    display: block;
    text-align: center;
    background-color: #fcb426;
    color: #0b1120;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-app-sidebar:hover {
    background-color: #f5a60b;
}

.nav-widget h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0b1120;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #fcb426;
}

.nav-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-widget li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.nav-widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.nav-widget a {
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-widget a:hover {
    color: #fcb426;
}

/* Responsive */
@media (max-width: 1024px) {
    .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .single-app-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .applications-grid {
        grid-template-columns: 1fr;
    }
    .single-app-main {
        padding: 20px;
    }
}


/* ==========================================================================
   Continuous Seamless Logos Ticker
   ========================================================================== */

.logos-ticker-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.logos-header {
    text-align: center;
    margin-bottom: 35px;
    padding: 0 24px;
}

.logos-subtitle {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fcb426;
    margin-bottom: 8px;
}

.logos-title {
    font-size: 26px;
    font-weight: 800;
    color: #0b1120;
    margin: 0;
    letter-spacing: -0.5px;
}

/* Оболонка з градієнтною маскою згасання по краях */
.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Рухома смуга */
.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 45s linear infinite;
    will-change: transform;
}

/* Зупинка анімації при наведенні курсору */
.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

/* Групи логотипів */
.ticker-group {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-right: 60px; /* Фіксований відступ між кінцем 1-ї та початком 2-ї групи */
    flex-shrink: 0;
}

.ticker-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

.ticker-item img {
    max-height: 40px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.ticker-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* Зсув рівно на -50% (довжину однієї групи) забезпечує ідеальний безшовний повтор */
@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Адаптивність */
@media (max-width: 768px) {
    .logos-ticker-section {
        padding: 40px 0;
    }
    .logos-title {
        font-size: 22px;
    }
    .ticker-group {
        gap: 40px;
        padding-right: 40px;
    }
    .ticker-track {
        animation-duration: 18s;
    }
    .ticker-item img {
        max-height: 32px;
    }
}


/* ==========================================================================
   News Section & Pages (ANSYN Theme Light Style)
   ========================================================================== */

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Common Text Headings */
.section-subtitle {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fcb426;
    margin-bottom: 8px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: #0b1120;
    margin: 0;
    letter-spacing: -0.5px;
}

/* --- Homepage News Section --- */
.home-news-section {
    padding: 80px 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.news-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.btn-all-news {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #0b1120;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-all-news:hover {
    border-color: #fcb426;
    background-color: #fcb426;
    color: #0b1120;
}

/* --- News Grid --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- News Card --- */
.news-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(11, 17, 32, 0.08);
    border-color: #cbd5e1;
}

.news-card-image-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0b1120;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img {
    transform: scale(1.06);
}

.news-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    color: #fcb426;
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 2px;
}

.news-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: #fcb426;
    color: #0b1120;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.news-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 12px 0;
}

.news-card-title a {
    color: #0b1120;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: #fcb426;
}

.news-card-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #0b1120;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.news-read-more:hover {
    color: #d99200;
    gap: 10px;
}

/* --- Archive Page --- */
.news-archive-page {
    background-color: #ffffff;
    padding-bottom: 80px;
}

.news-hero {
    margin-top: 50px;
    background-color: #f8fafc;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 60px;
}

.page-title {
    font-size: 36px;
    font-weight: 900;
    color: #0b1120;
    margin: 0 0 12px 0;
}

.hero-description {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.news-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.news-pagination .nav-links {
    display: flex;
    gap: 8px;
}

.news-pagination a, .news-pagination .current {
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    text-decoration: none;
    font-weight: 700;
    color: #0b1120;
}

.news-pagination .current {
    background-color: #fcb426;
    border-color: #fcb426;
}

/* --- Single Post Page --- */
.single-news-page {
    background-color: #ffffff;
    padding: 50px 0 80px 0;
}

.single-news-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-link {
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-decoration: none;
}

.back-link:hover {
    color: #0b1120;
}

.single-news-title {
    font-size: 34px;
    font-weight: 900;
    color: #0b1120;
    line-height: 1.25;
    margin: 0 0 16px 0;
}

.single-news-meta-row {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #64748b;
    padding-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-news-featured-image {
    margin: 30px 0 40px 0;
}

.single-news-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #1e293b;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content h2, .entry-content h3 {
    color: #0b1120;
    font-weight: 800;
    margin: 36px 0 16px 0;
}

.related-news-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    padding-bottom: 80px;
}

.related-title {
    font-size: 20px;
    font-weight: 800;
    color: #0b1120;
    margin-bottom: 30px;
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .news-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .single-news-title {
        font-size: 26px;
    }
}


/* ==========================================================================
   Contacts Page (ANSYN Light Theme)
   ========================================================================== */

.contacts-page {
    background-color: #ffffff;
    padding-bottom: 80px;
}

.contacts-hero {
    background-color: #f8fafc;
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.hero-description {
    font-size: 16px;
    color: #64748b;
    max-width: 640px;
    margin: 12px auto 0 auto;
    line-height: 1.6;
}

/* --- Contact Cards Grid --- */
.contacts-cards-section {
    padding: 50px 0;
}

.contacts-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(11, 17, 32, 0.06);
    border-color: #fcb426;
}

.card-icon {
    width: 46px;
    height: 46px;
    background-color: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fcb426;
    flex-shrink: 0;
}

.card-content {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.card-value {
    font-size: 15px;
    font-weight: 800;
    color: #0b1120;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-value:hover {
    color: #fcb426;
}

.card-value-text {
    font-size: 14px;
    font-weight: 700;
    color: #0b1120;
    line-height: 1.4;
}

/* --- Layout Grid (Form + Map) --- */
.contacts-main-section {
    padding-top: 20px;
}

.contacts-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-wrapper,
.contact-map-wrapper {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px;
}

.form-block-title {
    font-size: 22px;
    font-weight: 800;
    color: #0b1120;
    margin: 0 0 8px 0;
}

.form-block-desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
}

/* --- Form Fields --- */
.ansyn-contact-form .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.ansyn-contact-form label {
    font-size: 13px;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 6px;
}

.ansyn-contact-form input,
.ansyn-contact-form textarea {
    width: 100%;
    padding: 12px 5px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0b1120;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ansyn-contact-form input:focus,
.ansyn-contact-form textarea:focus {
    border-color: #fcb426;
    box-shadow: 0 0 0 3px rgba(252, 180, 38, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-submit-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background-color: #fcb426;
    color: #0b1120;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-submit-contact:hover {
    background-color: #f3a812;
    transform: translateY(-2px);
}

/* --- Map Block --- */
.map-container {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    background-color: #e2e8f0;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .contacts-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contacts-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .contacts-cards-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper,
    .contact-map-wrapper {
        padding: 24px;
    }
}


/* ==========================================================================
   Courses Section & Pages (ANSYN Light Theme)
   ========================================================================== */

.courses-archive-page, .single-course-page {
    background-color: #ffffff;
    padding-bottom: 80px;
}

.courses-hero, .single-course-hero {
    background-color: #f8fafc;
    padding: 60px 0;
    border-bottom: 1px solid #e2e8f0;
}

.courses-hero {
    margin-top: 50px;
    text-align: center;
}

.courses-list-section {
    padding: 60px 0;
}

/* --- Courses Grid --- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.course-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(11, 17, 32, 0.08);
    border-color: #fcb426;
}

.course-card-image-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #0b1120;
}

.course-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover .course-card-img {
    transform: scale(1.06);
}

.course-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    color: #fcb426;
    font-weight: 900;
    font-size: 20px;
}

.course-level-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background-color: #0b1120;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
}

.course-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-meta-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.course-card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 12px 0;
}

.course-card-title a {
    color: #0b1120;
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-card-title a:hover {
    color: #fcb426;
}

.course-card-excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-course-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 800;
    color: #0b1120;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.btn-course-more:hover {
    color: #d99200;
    gap: 10px;
}

/* --- Single Course Styling --- */
.single-course-title {
    font-size: 32px;
    font-weight: 900;
    color: #0b1120;
    margin: 16px 0 24px 0;
}

.course-info-row {
    display: flex;
    gap: 24px;
}

.info-box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
}

.info-value {
    font-size: 15px;
    font-weight: 800;
    color: #0b1120;
}

.single-course-main {
    padding-top: 50px;
}

.course-layout-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

.single-course-banner {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.single-course-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sidebar Registration Box */
.course-register-box {
    position: sticky;
    top: 30px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
}

.course-register-box h3 {
    font-size: 20px;
    font-weight: 800;
    color: #0b1120;
    margin: 0 0 8px 0;
}

.course-register-box p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}

.course-reg-form .form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.course-reg-form label {
    font-size: 12px;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 4px;
}

.course-reg-form input {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.course-reg-form input:focus {
    border-color: #fcb426;
}

.btn-submit-course {
    width: 100%;
    padding: 12px;
    background-color: #fcb426;
    color: #0b1120;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-submit-course:hover {
    background-color: #f3a812;
}

/* Responsive */
@media (max-width: 1024px) {
    .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .course-layout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .courses-grid {
        grid-template-columns: 1fr;
    }
    .course-info-row {
        flex-direction: column;
        gap: 10px;
    }
}




/* ==========================================================================
   Language Switcher, Mobile Menu & Modal (ANSYN Theme)
   ========================================================================== */

/* --- Language Switcher (Ansyn Style) --- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.lang-item {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}

.lang-item:hover {
    color: #0b1120;
}

.lang-item.active {
    background-color: #fcb426;
    color: #0b1120;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* --- Burger Button --- */
.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-btn span {
    width: 100%;
    height: 3px;
    background-color: #0b1120;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-btn.is-active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.burger-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.burger-btn.is-active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* --- Mobile Menu Drawer --- */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -10px 0 30px rgba(11, 17, 32, 0.15);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 90px 24px 30px 24px;
    display: flex;
    flex-direction: column;
}

.mobile-menu-drawer.is-open {
    right: 0;
}

.mobile-navigation .mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-nav-menu a {
    font-size: 18px;
    font-weight: 700;
    color: #0b1120;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mobile-nav-menu a:hover {
    color: #fcb426;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-phone {
    font-size: 16px;
    font-weight: 800;
    color: #0b1120;
    text-decoration: none;
}

.mobile-btn {
    text-align: center;
    width: 85%;
}

/* --- Modal Window --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background-color: #ffffff;
    width: 100%;
    max-width: 460px;
    border-radius: 16px;
    padding: 36px;
    position: relative;
    box-shadow: 0 20px 40px rgba(11, 17, 32, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
}

.modal-overlay.is-open .modal-window {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #0b1120;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: #0b1120;
    margin: 0 0 8px 0;
}

.modal-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.modal-form .form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.modal-form label {
    font-size: 13px;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 6px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: #fcb426;
    box-shadow: 0 0 0 3px rgba(252, 180, 38, 0.2);
}

.btn-submit-modal {
    width: 100%;
    padding: 14px;
    background-color: #fcb426;
    color: #0b1120;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-submit-modal:hover {
    background-color: #f3a812;
}

body.no-scroll {
    overflow: hidden;
}

/* --- Responsive Adaptations --- */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .burger-btn {
        display: flex;
    }

    .header-actions .header-phone,
    .header-actions .btn-primary {
        display: none;
    }
}


/* ==========================================================================
   Adaptive Modal Window (ANSYN Light Theme)
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh; /* Підтримка динамічної висоти екрана мобільних браузерів */
    background-color: rgba(11, 17, 32, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background-color: #ffffff;
    width: 100%;
    max-width: 460px;
    /* Запобігає виходу вікна за межі екрана по вертикалі */
    max-height: calc(100dvh - 32px); 
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 20px 40px rgba(11, 17, 32, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
    /* Вмикає внутрішню прокрутку, якщо вміст не вміщується на малих екранах */
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.is-open .modal-window {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 5;
}

.modal-close:hover {
    background-color: #e2e8f0;
    color: #0b1120;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #0b1120;
    margin: 0 0 8px 0;
    padding-right: 28px; /* Запобігає накладанню на кнопку закриття */
}

.modal-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-form .form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
}

.modal-form label {
    font-size: 13px;
    font-weight: 700;
    color: #0b1120;
    margin-bottom: 6px;
}

.modal-form input,
.modal-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.modal-form input:focus,
.modal-form textarea:focus {
    border-color: #fcb426;
    box-shadow: 0 0 0 3px rgba(252, 180, 38, 0.2);
}

.btn-submit-modal {
    width: 100%;
    padding: 14px;
    background-color: #fcb426;
    color: #0b1120;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-submit-modal:hover {
    background-color: #f3a812;
}

/* --- Mobile Specific Adaptations (Смартфони) --- */
@media (max-width: 576px) {
    .modal-overlay {
        padding: 12px;
    }

    .modal-window {
        padding: 24px 20px;
        border-radius: 14px;
        max-height: calc(100dvh - 24px);
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-subtitle {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .modal-form .form-group {
        margin-bottom: 12px;
    }

    /* Розмір 16px запобігає автоматичному наближенню (zoom) екрана в iOS Safari при фокусі на полі */
    .modal-form input,
    .modal-form textarea {
        font-size: 16px;
        padding: 10px 12px;
    }

    .btn-submit-modal {
        padding: 12px;
        font-size: 14px;
    }
}




.courses-hero .section-subtitle {
    color: #fcb426;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.courses-hero .page-title {
    font-size: 36px;
    margin-top: 10px;
    font-weight: 800;
}

/* Форматування тексту в стилі Ansyn */
.courses-text-block {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    margin-top: -30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    line-height: 1.7;
    color: #334155;
}

.courses-text-block h2 {
    font-size: 22px;
    color: #0f172a;
    margin-top: 30px;
    margin-bottom: 15px;
    border-left: 4px solid #fcb426;
    padding-left: 12px;
}

.courses-text-block ul {
    list-style: none;
    padding-left: 0;
}

.courses-text-block ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
}

.courses-text-block ul li::before {
    content: "•";
    color: #fcb426;
    font-weight: bold;
    font-size: 20px;
    position: absolute;
    left: 8px;
    top: -2px;
}

/* Картка форми */
.courses-form-card {
    background: #0b1120;
    color: #fff;
    padding: 40px;
    border-radius: 12px;
    margin-top: 40px;
}

.courses-form-card h3 {
    color: #fcb426;
    margin-bottom: 8px;
}

.ansyn-courses-form .form-group {
    margin-bottom: 18px;
}

.ansyn-courses-form input,
.ansyn-courses-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
}

.btn-yellow-submit {
    background: #fcb426;
    color: #0b1120;
    font-weight: 700;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.btn-yellow-submit:hover {
    background: #e59e10;
}

/* Аккордеон */
.ansyn-accordion {
    margin-top: 30px;
}

.accordion-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 24px;
    background: #f8fafc;
}

.accordion-item.active .accordion-body {
    max-height: 1000px;
    padding: 20px 24px;
    border-top: 1px solid #e2e8f0;
}


/* ==========================================
   Стилі сторінки Курсів (Без ACF / Native WP)
   ========================================== */

.courses-landing-native {
    background-color: #fff;
    padding-bottom: 80px;
}

.courses-hero {
    background: #f8fafc;
    
}

.courses-hero .section-subtitle {
    color: #fcb426;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}

.courses-hero .page-title {
    font-size: 36px;
    font-weight: 800;
    margin: 0;
}

.courses-content-wrapper {
    margin-top: 30px;
}

.courses-entry-body {
    background: #f8f8f8;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    color: #334155;
    line-height: 1.75;
}

/* Оформлення заголовків H2, H3 */
.courses-entry-body h2 {
    font-size: 24px;
    color: #0f172a;
    margin-top: 35px;
    margin-bottom: 18px;
    padding-left: 14px;
    border-left: 4px solid #fcb426;
}

.courses-entry-body h3 {
    font-size: 19px;
    color: #1e293b;
    margin-top: 25px;
    margin-bottom: 12px;
}

/* Оформлення маркованих списків */
.courses-entry-body ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 24px;
}

.courses-entry-body ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
}

.courses-entry-body ul li::before {
    
    color: #fcb426;
    font-weight: bold;
    font-size: 22px;
    position: absolute;
    left: 8px;
    
}

/* Стилізація нативного блоку WordPress "Деталі" (<details> / <summary>) під аккордеон */
.courses-entry-body details {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 14px;
    padding: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.courses-entry-body details[open] {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.courses-entry-body summary {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.courses-entry-body summary::-webkit-details-marker {
    display: none;
}

.courses-entry-body summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
    color: #fcb426;
    transition: transform 0.2s ease;
}

.courses-entry-body details[open] summary::after {
    content: "−";
}

.courses-entry-body details > *:not(summary) {
    padding: 0 20px 20px 20px;
}

/* Стилізація блоків форм у контенті */
.courses-entry-body .ansyn-form-block {
    background: #0b1120;
    color: #ffffff;
    padding: 35px;
    border-radius: 10px;
    margin: 40px 0;
}

.courses-entry-body .ansyn-form-block h3 {
    color: #fcb426;
    margin-top: 0;
}

.courses-entry-body .ansyn-form-block label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #cbd5e1;
}

.courses-entry-body .ansyn-form-block input,
.courses-entry-body .ansyn-form-block textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.courses-entry-body .ansyn-form-block button {
    background: #fcb426;
    color: #0b1120;
    font-weight: 700;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.courses-entry-body .ansyn-form-block button:hover {
    background: #e59e10;
}


/* ==========================================
   Плаваюча кнопка та Модальне вікно
   ========================================== */

/* Фіксована кнопка при скролі (внизу праворуч) */
.floating-feedback-btn {
    position: fixed;
    right: 25px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fcb426;
    color: #0b1120;
    border: none;
    padding: 12px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(252, 180, 38, 0.35);
    transition: transform 0.25s ease, background 0.2s ease, box-shadow 0.25s ease;
}

.floating-feedback-btn:hover {
    background: #e59e10;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(252, 180, 38, 0.5);
}

/* Модальне вікно (оверлей) */
.feedback-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.feedback-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.feedback-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 17, 32, 0.75);
    backdrop-filter: blur(4px);
}

/* Контейнер форми */
.feedback-modal-container {
    position: relative;
    z-index: 1;
    background: #0b1120;
    color: #ffffff;
    width: 90%;
    max-width: 440px;
    padding: 35px 30px;
    border-radius: 12px;
    border: 1px solid rgba(252, 180, 38, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.feedback-modal.is-open .feedback-modal-container {
    transform: translateY(0) scale(1);
}

/* Хрестик закриття */
.feedback-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.feedback-modal-close:hover {
    color: #fcb426;
}

/* Заголовки та інпути */
.feedback-modal-header h3 {
    color: #fcb426;
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
}

.feedback-modal-header p {
    color: #94a3b8;
    font-size: 13.5px;
    margin: 0 0 22px 0;
}

.feedback-modal-form .form-group {
    margin-bottom: 16px;
}

.feedback-modal-form label {
    display: block;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.feedback-modal-form input,
.feedback-modal-form textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
}

.feedback-modal-form input:focus,
.feedback-modal-form textarea:focus {
    outline: none;
    border-color: #fcb426;
}

/* Адаптив для мобільних пристроїв */
@media (max-width: 576px) {
    .floating-feedback-btn span {
        display: none; /* на мобілці залишається тільки кругла кнопка з іконкою */
    }
    .floating-feedback-btn {
        padding: 14px;
        right: 15px;
        bottom: 20px;
        border-radius: 50%;
    }
}

/* ==========================================
   Бічна акцентна кнопка "Залишити заявку"
   ========================================== */

/* Фіксований бічний ярлик праворуч */
.side-request-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fcb426;
    color: #0b1120;
    padding: 16px 20px 16px 16px;
    border: none;
    border-radius: 12px 0 0 12px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: -6px 0 25px rgba(252, 180, 38, 0.45);
    transition: transform 0.3s ease, background 0.2s ease, padding-left 0.2s ease;
}

.side-request-btn:hover {
    background: #ffffff;
    color: #0b1120;
    transform: translateY(-50%) translateX(-6px);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25);
}

/* Імпульсне свічення для привернення уваги */
.btn-pulse {
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: #fcb426;
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translateY(-50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-50%) scale(2.8);
        opacity: 0;
    }
}

/* --- Модальне вікно --- */
.courses-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.courses-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.courses-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(5px);
}

.courses-modal-card {
    position: relative;
    z-index: 1;
    background: #0b1120;
    color: #ffffff;
    width: 90%;
    max-width: 450px;
    padding: 40px 32px;
    border-radius: 14px;
    border: 2px solid #fcb426;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.courses-modal.is-open .courses-modal-card {
    transform: scale(1);
}

.courses-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.courses-modal-close:hover {
    color: #fcb426;
}

.modal-head h3 {
    color: #fcb426;
    margin: 0 0 10px 0;
    font-size: 22px;
}

.modal-head p {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 24px;
}

.courses-modal-form .form-group {
    margin-bottom: 18px;
}

.courses-modal-form label {
    display: block;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.courses-modal-form input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    box-sizing: border-box;
}

.courses-modal-form input:focus {
    outline: none;
    border-color: #fcb426;
}

/* На мобільних пристроях переносимо кнопку вниз для зручності */
@media (max-width: 768px) {
    .side-request-btn {
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
        border-radius: 50px;
        padding: 14px 22px;
        box-shadow: 0 10px 30px rgba(252, 180, 38, 0.5);
    }
    .side-request-btn:hover {
        transform: translateY(-3px);
    }
}

/* ==========================================
   Світле модальне вікно "Залишити заявку"
   ========================================== */

.courses-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.courses-modal.is-open {
    opacity: 1;
    visibility: visible;
}

/* Напівпрозорий затемнений фон з розмиттям */
.courses-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}

/* Світла картка модального вікна */
.courses-modal-card {
    position: relative;
    z-index: 1;
    background: #ffffff;
    color: #0f172a;
    width: 90%;
    max-width: 450px;
    padding: 36px 32px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.courses-modal.is-open .courses-modal-card {
    transform: scale(1);
}

/* Хрестик закриття */
.courses-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.courses-modal-close:hover {
    color: #0f172a;
}

/* Текстові блоки */
.modal-head h3 {
    color: #0f172a;
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 700;
}

.modal-head p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Форма та поля вводу */
.courses-modal-form .form-group {
    margin-bottom: 18px;
}

.courses-modal-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.courses-modal-form input,
.courses-modal-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #0f172a;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.courses-modal-form input::placeholder,
.courses-modal-form textarea::placeholder {
    color: #94a3b8;
}

.courses-modal-form input:focus,
.courses-modal-form textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #fcb426;
    box-shadow: 0 0 0 3px rgba(252, 180, 38, 0.2);
}

/* Кнопка відправки */
.courses-modal-form .btn-yellow-submit {
    margin-top: 6px;
    background: #fcb426;
    color: #0b1120;
    font-weight: 700;
    font-size: 15px;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease, transform 0.1s ease;
}

.courses-modal-form .btn-yellow-submit:hover {
    background: #e59e10;
}


/* Стилізація посилань у блоці контенту */
.courses-entry-body a {
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    padding: 1px 5px;
    border-bottom: 2px solid #fcb426;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.courses-entry-body a:hover {
    background-color: rgba(252, 180, 38, 0.18);
    color: #0b1120;
    border-bottom-color: #e59e10;
}


/* Перевизначення для AOS, WOW.js, ScrollReveal та кастомних класів */
[data-aos],
.wow,
.animate-on-scroll,
.fade-in-element {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
}


.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.news-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

/* Жовта акцентна лінія згори при ховері */
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ffc700;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
    border-color: #cbd5e1;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.news-badge {
    background: #fff8e1;
    color: #b78100;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-card-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-card-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-card-title a:hover {
    color: #d99b00;
}

.news-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 20px;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #0f172a;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.news-read-more:hover {
    color: #b78100;
    gap: 12px;
}


/* Стилізація посилань у тексті новин та статей */
.entry-content a,
.single-news-page a:not(.news-read-more) {
    color: #b78100; /* Фірмовий золотисто-жовтий колір для гарної читабельності */
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(255, 199, 0, 0.45); /* Напівпрозора жовта лінія */
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    word-break: break-word; /* Запобігає виходу довгих URL за межі контейнера */
    transition: color 0.2s ease, text-decoration-color 0.2s ease, text-underline-offset 0.2s ease;
}

/* Ефект при наведенні курсору */
.entry-content a:hover,
.single-news-page a:not(.news-read-more):hover {
    color: #0f172a; /* Темний бренд-колір при наведенні */
    text-decoration-color: #ffc700; /* Яскраво-жовта лінія */
    text-underline-offset: 6px; /* Лінія плавно опускається трохи нижче */
}

/* Якщо посилання є Email або телефоном */
.entry-content a[href^="mailto:"],
.entry-content a[href^="tel:"] {
    font-weight: 600;
    color: #0f172a;
    text-decoration-color: rgba(15, 23, 42, 0.2);
}

.entry-content a[href^="mailto:"]:hover,
.entry-content a[href^="tel:"]:hover {
    color: #b78100;
    text-decoration-color: #ffc700;
}


/* ==========================================================================
   Сторінка сертифікатів (ANSYN Style)
   ========================================================================== */

/* Контейнер форми перевірки */
.cert-checker-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px;
    max-width: 860px;
    margin: 40px auto 60px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.cert-checker-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.cert-checker-header p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 28px;
    line-height: 1.5;
}

/* Інпут та кнопка пошуку */
.cert-form .cert-input-wrapper {
    display: flex;
    gap: 12px;
}

.cert-form input {
    flex: 1;
    height: 52px;
    padding: 0 20px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}

.cert-form input:focus {
    border-color: #ffc700;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 199, 0, 0.15);
}

.cert-form button {
    height: 52px;
    padding: 0 32px;
    background: #ffc700;
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cert-form button:hover {
    background: #e6b400;
    transform: translateY(-1px);
}

.cert-form button:active {
    transform: translateY(0);
}

/* Результати перевірки */
#cert-result-container {
    margin-top: 28px;
}

.cert-loading {
    font-size: 14px;
    color: #64748b;
    text-align: center;
    padding: 20px;
}

/* Карточка результату */
.cert-result-card {
    border-radius: 12px;
    padding: 28px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Успішний статус */
.cert-result-card.cert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.cert-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #15803d;
    background: #dcfce7;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.cert-code-number {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.cert-code-number span {
    color: #b78100;
}

.cert-body-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.cert-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* Кнопка завантаження */
.cert-actions {
    display: flex;
    justify-content: flex-start;
}

.btn-cert-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-cert-download:hover {
    background: #ffc700;
    color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 199, 0, 0.3);
}

.btn-cert-download svg {
    transition: transform 0.2s ease;
}

.btn-cert-download:hover svg {
    transform: translateY(2px);
}

/* Статус помилки */
.cert-result-card.cert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.cert-status-badge.error {
    color: #b91c1c;
    background: #fee2e2;
}

.cert-error-text {
    color: #991b1b;
    font-size: 15px;
    font-weight: 500;
    margin-top: 8px;
}

/* Адаптивність */
@media (max-width: 640px) {
    .cert-checker-container {
        padding: 20px;
    }
    .cert-form .cert-input-wrapper {
        flex-direction: column;
    }
    .cert-form button {
        width: 100%;
    }
    .btn-cert-download {
        width: 100%;
        justify-content: center;
    }
}


/* ==========================================================================
   Головна секція сторінки сертифікатів
   ========================================================================== */
.certificates-main-section {
    padding: 50px 0 80px 0;
}

/* Перевірка сертифіката */
.cert-checker-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 36px;
    max-width: 860px;
    margin: 0 auto 60px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.cert-checker-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.cert-checker-header p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 24px;
}

.cert-form .cert-input-wrapper {
    display: flex;
    gap: 12px;
}

.cert-form input {
    flex: 1;
    height: 52px;
    padding: 0 20px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 15px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: all 0.2s ease;
}

.cert-form input:focus {
    border-color: #ffc700;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 199, 0, 0.15);
}

.cert-form button {
    height: 52px;
    padding: 0 32px;
    background: #ffc700;
    color: #0f172a;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cert-form button:hover {
    background: #e6b400;
}

/* Результат перевірки */
#cert-result-container {
    margin-top: 24px;
}

.cert-result-card {
    border-radius: 12px;
    padding: 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.cert-result-card.cert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.cert-result-card.cert-error {
    background: #fef2f2;
    border-color: #fecaca;
}

.cert-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    color: #15803d;
    background: #dcfce7;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.cert-status-badge.error {
    color: #b91c1c;
    background: #fee2e2;
}

.cert-code-number {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.cert-code-number span {
    color: #b78100;
}

.btn-cert-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.btn-cert-download:hover {
    background: #ffc700;
    color: #0f172a !important;
}

/* ==========================================================================
   Постійна галерея сертифікатів компанії
   ========================================================================== */
.company-certificates-block {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.section-header-inline {
    margin-bottom: 32px;
    text-align: center;
}

.section-header-inline h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.yellow-accent-line {
    width: 60px;
    height: 4px;
    background: #ffc700;
    margin: 0 auto;
    border-radius: 2px;
}

/* Стилізація сітки контенту (зображень та галерей Gutenberg) */
.company-certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    align-items: start;
}

.company-certs-grid figure,
.company-certs-grid p,
.company-certs-grid .wp-block-image,
.company-certs-grid .wp-block-gallery {
    margin: 0 !important;
}

.company-certs-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.company-certs-grid img:hover {
    border-color: #ffc700;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

/* Адаптивність */
@media (max-width: 768px) {
    .cert-checker-container {
        padding: 24px;
    }
    .cert-form .cert-input-wrapper {
        flex-direction: column;
    }
    .cert-form button {
        width: 100%;
    }
    .company-certs-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
}

/* Повноекранне модальне вікно (Lightbox) */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
    box-sizing: border-box;
}

.cert-modal.is-open {
    display: flex;
    opacity: 1;
}

.cert-modal-content {
    max-width: 92%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-modal.is-open .cert-modal-content {
    transform: scale(1);
}

.cert-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

.cert-modal-close:hover {
    color: #ffc700;
    transform: scale(1.1);
}

/* Курсор-вказівник для зображень сертифікатів */
.company-certs-grid img,
.cert-body-content img {
    cursor: zoom-in !important;
}

/* ==========================================================================
   Випадаюче меню (Dropdown Submenu)
   ========================================================================== */

/* Відносне позиціонування батьківського елемента */
.desktop-nav .nav-menu > li.menu-item-has-children {
    position: relative;
}

/* Простір затримки для курсора (щоб меню не зникало при переході) */
.desktop-nav .nav-menu > li.menu-item-has-children::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

/* Контейнер випадаючого списку */
.desktop-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px 0;
    margin-top: 10px;
    list-style: none;
    border: 1px solid #e2e8f0;
    
    /* Анімація появи */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}

/* Відображення при наведенні */
.desktop-nav .nav-menu > li.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Елементи випадаючого списку */
.desktop-nav .sub-menu li {
    margin: 0;
    padding: 0;
}

.desktop-nav .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.desktop-nav .sub-menu li a:hover {
    background: #f8fafc;
    color: #fcb426;
}

/* Мобільна версія меню */
.mobile-nav-menu .sub-menu {
    padding-left: 20px;
    margin-top: 8px;
    list-style: none;
}

.mobile-nav-menu .sub-menu li a {
    font-size: 15px;
    padding: 6px 0;
    opacity: 0.85;
}


/* Контейнер логотипа */
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

/* Логотип-зображення з адмінки */
.logo-image {
    max-height: 65px; /* Висота лого у хедері */
    width: auto;
    display: block;
    object-fit: contain;
}

/* Фолбек: SVG-іконка */
.logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

/* Фолбек: назва сайту */
.logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-logo .logo-image {
    max-height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}


/* --- СТОРІНКА КОМПЛАЄНС (ПРОСТА) --- */
.compliance-page {
    padding: 120px 20px 80px;
    background: #f8f9fa;
    color: #222222;
    min-height: 60vh;
}

.compliance-container {
    max-width: 900px; /* Оптимальна ширина для читання тексту */
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Хлібні крихти */
.compliance-container .breadcrumbs {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 13px;
    color: #888;
}

.compliance-container .breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.compliance-container .breadcrumbs a:hover {
    color: #fcb426;
}

/* Заголовки */
.compliance-page .page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #fcb426; /* Жовтий акцент */
    color: #111111;
}

/* Оформлення документа */
.compliance-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
}

.compliance-content h2 {
    font-size: 22px;
    margin: 30px 0 10px 0;
    text-align: center;
    color: #111111;
}

.compliance-content h3 {
    font-size: 18px;
    margin: 25px 0 12px 0;
    color: #111111;
    border-left: 3px solid #fcb426;
    padding-left: 10px;
}

.compliance-content p {
    margin-bottom: 15px;
}

.compliance-content .doc-sub {
    text-align: center;
    font-weight: 600;
    color: #666666;
    margin-bottom: 30px;
}

/* Штамп "Затверджено" */
.compliance-content .doc-stamp {
    float: right;
    max-width: 320px;
    font-size: 13px;
    background: #f1f3f5;
    padding: 12px 15px;
    border-left: 3px solid #fcb426;
    margin: 0 0 20px 20px;
    color: #555555;
}

/* Списки */
.compliance-content ol, 
.compliance-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.compliance-content li {
    margin-bottom: 8px;
}

/* Адаптивність */
@media (max-width: 768px) {
    .compliance-page {
        padding: 90px 15px 40px;
    }
    .compliance-container {
        padding: 25px 20px;
    }
    .compliance-content .doc-stamp {
        float: none;
        max-width: 100%;
        margin: 0 0 20px 0;
    }
}


/* Сітка продуктів */
.products-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Базова картка */
.archive-product-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* Обгортка зображення (тільки для .has-image) */
.archive-product-card .card-media-wrapper {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.archive-product-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Текстовий контент */
.archive-product-card .card-content-wrapper {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Заповнює весь вільний простір */
}

.archive-product-card .card-product-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.archive-product-card .card-product-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.archive-product-card .card-product-title a:hover {
    color: #fcb426; /* Жовтий акцент */
}

.archive-product-card .card-product-excerpt {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Футер картки з кнопкою */
.archive-product-card .card-footer {
    margin-top: auto; /* Притискає кнопку до низу картки */
    padding-top: 15px;
}

.archive-product-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.archive-product-card .card-link:hover {
    color: #fcb426;
}

/* Оформлення картки БЕЗ зображення */
.archive-product-card.no-image {
    border-top: 4px solid #fcb426; /* Легкий акцент зверху замість картинки */
}

.archive-product-card.no-image .card-content-wrapper {
    padding-top: 28px;
}


/* Переноси тексту та обмеження ширини для картки продукту */
.product-main-card {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word; /* Перенос довгих слів та посилань */
    word-break: break-word;
}

/* Обмеження ширини текстового блоку та його елементів */
.product-main-card .entry-content,
.product-main-card .entry-content * {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Скидання відступів Gutenberg-блоків, які можуть виходити за рамки */
.product-main-card .wp-block-paragraph,
.product-main-card .wp-block-image,
.product-main-card .wp-block-group {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Адаптивні відступи для мобільних екранів */
@media (max-width: 576px) {
    .product-main-card {
        padding: 20px 16px !important; /* Зменшуємо внутрішні відступи для вузьких екранів */
    }
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-intro-media img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

@media (max-width: 992px) {
    .about-intro-grid { grid-template-columns: 1fr; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-values-grid { grid-template-columns: 1fr; }
}


/* ==========================================================================
   ABOUT PAGE STYLES
   ========================================================================== */

/* 1. Hero Section */
.about-hero {
    background-color: #0e131f;
    color: #ffffff;
    padding: 50px 0 65px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 24px;
}

.about-breadcrumbs a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-breadcrumbs a:hover {
    color: #fcb426;
}

.about-breadcrumbs .sep {
    color: #475569;
}

.about-breadcrumbs .current {
    color: #fcb426;
    font-weight: 500;
}

.about-hero-header {
    max-width: 820px;
}

.section-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fcb426;
    margin-bottom: 12px;
}

.about-hero .page-title {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 16px;
    line-height: 1.2;
}

.about-hero .hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
}

/* 2. Intro Section */
.about-intro-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.badge-tag {
    display: inline-block;
    background: rgba(252, 180, 38, 0.15);
    color: #d97706;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.about-intro-content h2 {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #0f172a;
}

.about-intro-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 16px;
}

.about-intro-media img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* 3. Stats Section */
.about-stats-section {
    background: #f8fafc;
    padding: 60px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: #ffffff;
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
    border-color: #fcb426;
}

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 800;
    color: #fcb426;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 15px;
    font-weight: 500;
    color: #64748b;
}

/* 4. Values Section */
.about-values-section {
    padding: 80px 0;
}

.section-header.center {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 48px;
}

.section-header.center h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 8px;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.value-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 36px 28px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: #fcb426;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
    transform: translateY(-4px);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: rgba(252, 180, 38, 0.12);
    color: #d97706;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f172a;
}

.value-card p {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* 5. CTA Section */
.about-cta-section {
    padding-bottom: 80px;
}

.cta-banner-box {
    background: linear-gradient(135deg, #0e131f 0%, #1e293b 100%);
    border-radius: 16px;
    padding: 44px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 8px;
}

.cta-content p {
    color: #94a3b8;
    font-size: 16px;
    margin: 0;
}

.btn-cta-primary {
    background-color: #fcb426;
    color: #000000;
    font-weight: 700;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-cta-primary:hover {
    background-color: #e59f14;
    transform: translateY(-2px);
}

/* Адаптивність */
@media (max-width: 992px) {
    .about-hero .page-title { font-size: 32px; }
    .about-intro-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .about-values-grid { grid-template-columns: 1fr; }
    .cta-banner-box { flex-direction: column; text-align: center; padding: 36px 24px; }
}

@media (max-width: 576px) {
    .about-hero { padding: 36px 0 44px; }
    .about-stats-grid { grid-template-columns: 1fr; }
}

/* Приховуємо підменю в мобільному меню за замовчуванням */
.mobile-nav-menu .menu-item-has-children > .sub-menu {
    display: none;
    padding-left: 16px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

/* Показати підменю при активному класі */
.mobile-nav-menu .menu-item-has-children.is-open > .sub-menu {
    display: block;
}

/* Іконка-стрілочка для пунктів із підменю */
.mobile-nav-menu .menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    margin-left: 10px;
}

/* Поворот стрілочки при розгортанні */
.mobile-nav-menu .menu-item-has-children.is-open > a::after {
    transform: rotate(-135deg);
}


/* ==========================================================================
   SEARCH WAYS SECTION
   ========================================================================== */

.search-ways-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.search-ways-header {
    text-align: center;
    margin-bottom: 36px;
}

.search-ways-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 8px;
    letter-spacing: 0.5px;
}

.search-ways-header p {
    font-size: 15px;
    color: #64748b;
    margin: 0;
}

.search-ways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Картка */
.search-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

/* Фонові плашки / 3D елементи */
.card-product::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -10px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(252, 180, 38, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.card-task::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -10px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

/* Верхня частина картки */
.card-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-yellow {
    background: rgba(252, 180, 38, 0.15);
    color: #fcb426;
    border: 1px solid rgba(252, 180, 38, 0.3);
}

.icon-blue {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

.card-titles {
    display: flex;
    flex-direction: column;
}

.tag-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.tag-yellow {
    color: #d97706;
}

.tag-blue {
    color: #0284c7;
}

.card-titles h3 {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

.sub-label {
    font-size: 13px;
    color: #64748b;
    margin: 4px 0 0;
}

/* Форма пошуку */
.search-card-form {
    position: relative;
    z-index: 2;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrapper:focus-within {
    border-color: #fcb426;
    box-shadow: 0 0 0 3px rgba(252, 180, 38, 0.2);
    background: #ffffff;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 10px 14px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: #94a3b8;
}

.search-input-wrapper button {
    background-color: #fcb426;
    color: #000000;
    border: none;
    width: 44px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
}

.search-input-wrapper button:hover {
    background-color: #e59f14;
}

/* Адаптивність */
@media (max-width: 868px) {
    .search-ways-grid {
        grid-template-columns: 1fr;
    }
}


.search-input-wrapper {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    z-index: 100;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}

.search-results-dropdown.is-active {
    display: block;
}

.search-results-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.search-results-dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-results-dropdown li a:hover {
    background: #f8fafc;
    color: #d97706;
}

.search-results-dropdown img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.search-results-dropdown .no-results {
    padding: 14px 16px;
    font-size: 14px;
    color: #64748b;
    text-align: center;
}


/* Дозволяємо випадаючому списку виходити за межі картки */
.search-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    overflow: visible !important; /* Важливо: дозволяє випадаючому блоку виходити за межі */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    z-index: 10;
}

/* Обгортка input та списку */
.search-input-wrapper {
    position: relative;
    z-index: 20;
}

/* Випадаючий список результатів */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: none;
    max-height: 320px;
    overflow-y: auto;
}

.search-results-dropdown.is-active {
    display: block;
}

.search-dropdown-title {
    padding: 10px 16px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    background-color: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

/* Дозволяємо випадання блоку через усі контейнери */
.search-ways-section,
.search-ways-grid,
.search-card,
.search-card-content,
.search-card-form {
    overflow: visible !important;
    position: relative;
}

.search-card {
    z-index: 50;
}

.search-input-wrapper {
    position: relative;
    z-index: 100;
}

/* Список підказок */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 9999 !important;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-results-dropdown.is-active {
    display: block !important;
}

.search-dropdown-title {
    padding: 8px 14px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.search-results-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

.search-results-dropdown li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    color: #0f172a;
    text-decoration: none;
    font-size: 14px;
}

.search-results-dropdown li a:hover {
    background: #f8fafc;
    color: #d97706;
}

.search-results-dropdown img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 4px;
}

.search-results-dropdown .no-results {
    padding: 12px;
    font-size: 13px;
    color: #64748b;
    text-align: center;
}


/* Секція напрямків */
.directions-section {
    padding: 50px 0;
    background-color: #f8f9fa;
    color: #1a1a1a;
    font-family: system-ui, -apple-system, sans-serif;
}

.directions-section .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Заголовок секції */
.directions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.directions-header .section-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
    color: #111827;
}

.directions-header .all-products-link {
    color: #d97706; /* Жовто-гарячий акцент ANSYS */
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.directions-header .all-products-link:hover {
    opacity: 0.8;
    transform: translateX(3px);
}

/* Сітка на 4 колонки */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Картка напрямку */
.direction-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 20px 10px 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    min-height: 250px;
}

.direction-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Шапка картки (Іконка + Заголовок) */
.direction-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.direction-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}

.direction-titles {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.direction-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #111827;
    line-height: 1.25;
}

.direction-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
    line-height: 1.35;
    font-weight: 500;
}

/* Зображення симуляції знизу картки */
.direction-card-image {
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    height: 120px;
}

.direction-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    transition: transform 0.3s ease;
}

.direction-card:hover .direction-card-image img {
    transform: scale(1.03);
}

/* Адаптивність */
@media (max-width: 1100px) {
    .directions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .directions-grid {
        grid-template-columns: 1fr;
    }
    
    .directions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* Секція напрямків */
.directions-section {
    padding: 60px 0;
    background-color: #f9fafb;
}

.directions-section .container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.directions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.directions-header .section-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    color: #111827;
}

.directions-header .all-products-link {
    color: #d97706;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.directions-header .all-products-link:hover {
    opacity: 0.85;
    transform: translateX(3px);
}

/* Сітка з однаковою висотою колонок */
.directions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Картка */
.direction-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-sizing: border-box;
}

.direction-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Верхній блок (іконка + заголовок + продукти) */
.direction-card-top {
    margin-bottom: 16px;
}

.direction-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.direction-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.direction-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #111827;
    line-height: 1.25;
}

/* Перелік продуктів у категорії */
.direction-products {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.4;
    padding-left: 38px; /* Вирівнювання під заголовком з урахуванням іконки */
}

/* Блок зображення знизу */
.direction-card-image {
    width: 100%;
    height: 110px;
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.direction-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.direction-card:hover .direction-card-image img {
    transform: scale(1.04);
}

/* Адаптивність */
@media (max-width: 1024px) {
    .directions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .directions-grid {
        grid-template-columns: 1fr;
    }
    
    .direction-products {
        padding-left: 0;
    }
}


/* Шапка картки */
.direction-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

/* Контейнер-плашка для іконки */
.direction-icon-box {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background-color: #f3f4f6; /* Світло-сірий м'який фон */
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

/* Сама іконка всередині плашки */
.direction-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* Ефект підсвічування плашки при наведенні на картку */
.direction-card:hover .direction-icon-box {
    background-color: #fffbe2; /* М'який фірмовий золотистий відтінок */
    border-color: #fcd34d;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

/* Блок заголовка */
.direction-title-wrap {
    flex-grow: 1;
}

.direction-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    color: #111827;
    line-height: 1.25;
}

/* Список продуктів без зайвого відступу зліва */
.direction-products {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 6px;
}


/* Контейнер табів фільтрації */
.archive-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
    align-items: center;
}

/* Окремий таб */
.filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    border-radius: 30px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.filter-tab:hover {
    border-color: #f59e0b;
    color: #111827;
}

/* Активний таб */
.filter-tab.active {
    background-color: #111827;
    border-color: #111827;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15);
}

/* Горизонтальний скрол на мобільних */
@media (max-width: 768px) {
    .archive-filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        scrollbar-width: none; /* Приховує скролбар для Firefox */
    }

    .archive-filter-tabs::-webkit-scrollbar {
        display: none; /* Приховує скролбар для Chrome/Safari */
    }
}


/* Верхня навігація в Hero */
.hero-top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.hero-top-nav .nav-sep {
    color: rgba(255, 255, 255, 0.3);
}

.product-hero-cat-tag {
    color: #fcb426;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.product-hero-cat-tag:hover {
    opacity: 0.8;
}

/* Плашка категорії над заголовком */
.hero-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.product-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: rgba(252, 180, 38, 0.15);
    border: 1px solid rgba(252, 180, 38, 0.4);
    color: #fcb426;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
}



/* Секція задач */
.tasks-section {
    padding: 50px 0;
    
}

.tasks-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.tasks-header .section-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    color: #111827;
    letter-spacing: 0.5px;
}

.tasks-header .all-tasks-link {
    color: #d97706;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.tasks-header .all-tasks-link:hover {
    transform: translateX(3px);
}

/* Сітка на 6 колонок */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

/* Картка */
.task-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px 14px 16px 14px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.25s ease;
    
}

.task-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.task-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Іконка в центрі */
.task-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: background-color 0.2s ease;
}

.task-icon-box img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.task-card:hover .task-icon-box {
    background-color: #e0f2fe;
}

/* Тексти */
.task-title {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.task-products {
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
    font-weight: 500;
}

/* Стрілка знизу */
.task-arrow {
    margin-top: 16px;
    color: #9ca3af;
    transition: color 0.2s ease, transform 0.2s ease;
}

.task-card:hover .task-arrow {
    color: #111827;
    transform: translateX(3px);
}

/* Адаптивність */
@media (max-width: 1100px) {
    .tasks-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .tasks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}



/* Секція задач */
.tasks-section {
    padding: 60px 0;
    
}

.tasks-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.tasks-header .section-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.tasks-header .all-tasks-link {
    color: #d97706;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.tasks-header .all-tasks-link:hover {
    transform: translateX(4px);
}

/* Оновлена сітка: 3 колонки у 2 рядки замість 6 стиснутих */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Картка */
.task-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 24px 24px 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.task-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.task-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Збільшений контейнер іконки */
.task-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

.task-card:hover .task-icon-box {
    background-color: #e0f2fe;
    transform: scale(1.05);
}

.task-icon-box img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* Чіткі та виразні заголовки */
.task-title {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.35;
}

/* Виразний список продуктів */
.task-products {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    font-weight: 500;
}

/* Стрілка внизу */
.task-arrow {
    margin-top: 24px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.task-card:hover .task-arrow {
    color: #d97706;
    transform: translateX(4px);
}

/* Адаптивність для планшетів та смартфонів */
@media (max-width: 1024px) {
    .tasks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .tasks-grid {
        grid-template-columns: 1fr;
    }
    
    .task-card {
        padding: 24px 18px;
    }
}

/* Секція задач */
.tasks-section {
    padding: 50px 0;
    
}

/* Розширюємо контейнер, щоб 6 карток мали більше простору */
.tasks-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.tasks-header .section-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.tasks-header .all-tasks-link {
    color: #d97706;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.tasks-header .all-tasks-link:hover {
    transform: translateX(4px);
}

/* 6 колонок в один рядок з мінімальним зазором */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

/* Картка */
.task-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 10px 14px 10px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Критично для сітки з 6 колонок: запобігає виходу тексту за межі картки */
    min-width: 0; 
    word-break: break-word;
}

.task-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 20px -4px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.task-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Виразний контейнер іконки */
.task-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    transition: all 0.25s ease;
}

.task-card:hover .task-icon-box {
    background-color: #e0f2fe;
    transform: scale(1.05);
}

.task-icon-box img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* Заголовки (оптимальний розмір для 6 колонок) */
.task-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
    line-height: 1.25;
    hyphens: auto;
}

/* Перелік продуктів */
.task-products {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
    font-weight: 500;
}

/* Стрілка внизу */
.task-arrow {
    margin-top: 14px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.task-card:hover .task-arrow {
    color: #d97706;
    transform: translateX(3px);
}

/* Горизонтальний скрол замість зламу сітки на планшетах та мобільних */
@media (max-width: 1200px) {
    .tasks-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
        scrollbar-width: thin;
    }

    .task-card {
        flex: 0 0 200px;
        scroll-snap-align: start;
    }
}

/* Контейнер сторінки задач */
.tasks-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Темний Hero-банер сторінки архіву задач */
.tasks-archive-hero {
    background-color: #0b1120;
    background-image: linear-gradient(180deg, rgba(11, 17, 32, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
    padding: 55px 0 65px 0;
    color: #ffffff;
    text-align: center;
}

.tasks-archive-hero .archive-breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.tasks-archive-hero .archive-breadcrumbs a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.tasks-archive-hero .archive-breadcrumbs a:hover {
    color: #fcb426;
}

.tasks-archive-hero .archive-breadcrumbs .current {
    color: #ffffff;
    font-weight: 500;
}

.tasks-archive-hero .archive-hero-badge {
    display: inline-block;
    padding: 4px 14px;
    background-color: rgba(252, 180, 38, 0.15);
    border: 1px solid rgba(252, 180, 38, 0.4);
    color: #fcb426;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 4px;
    margin-bottom: 14px;
}

.tasks-archive-hero .archive-hero-title {
    font-size: 34px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.tasks-archive-hero .archive-hero-desc {
    font-size: 15px;
    color: #94a3b8;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Секція зі списком задач */
.tasks-grid-section {
    padding: 60px 0;
    background-color: #f8fafc;
}

/* Сітка на 3 колонки (по 3 картки в ряд) */
.tasks-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Стилізація картки задачи */
.archive-task-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 24px 24px 24px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.archive-task-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.archive-task-card .task-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.archive-task-card .task-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background-color: #f0f9ff;
    border: 1px solid #e0f2fe;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.25s ease;
}

.archive-task-card:hover .task-icon-box {
    background-color: #e0f2fe;
    transform: scale(1.05);
}

.archive-task-card .task-icon-box img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.archive-task-card .task-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.35;
}

.archive-task-card .task-products {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

.archive-task-card .task-arrow {
    margin-top: 24px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.archive-task-card:hover .task-arrow {
    color: #d97706;
    transform: translateX(4px);
}

/* Адаптивність */
@media (max-width: 992px) {
    .tasks-archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .tasks-archive-grid {
        grid-template-columns: 1fr;
    }

    .archive-task-card {
        padding: 24px 18px;
    }
}


/* Секція екосистеми */
.ecosystem-section {
    padding: 36px 0;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.ecosystem-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.ecosystem-heading {
    font-size: 18px;
    font-weight: 800;
    text-transform: uppercase;
    color: #0f172a;
    margin: 0 0 20px 0;
    letter-spacing: 0.5px;
}

/* 5 плашок в один рядок */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

/* Стилізація окремої плашки */
.ecosystem-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.2s ease;
    min-width: 0;
}

.ecosystem-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Контейнер іконки */
.ecosystem-icon-box {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background-color: #fffbebf5;
    border: 1px solid #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecosystem-icon-box img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/* Текст */
.ecosystem-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}

/* Адаптивність */
@media (max-width: 1100px) {
    .ecosystem-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}


/* Секція рішень компанії */
.solutions-section {
    padding: 50px 0;
    background-color: #f8fafc;
}

.solutions-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.solutions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.solutions-header .section-title {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    color: #0f172a;
    margin: 0;
    letter-spacing: 0.5px;
}

.solutions-header .all-solutions-link {
    color: #d97706;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.solutions-header .all-solutions-link:hover {
    transform: translateX(4px);
}

/* 5 колонок в один рядок */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* Картка рішення */
.solution-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 10px 22px -4px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

/* Зображення-банер */
.solution-img-box {
    width: 100%;
    height: 125px;
    overflow: hidden;
    background-color: #0f172a;
    position: relative;
}

.solution-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.solution-card:hover .solution-img-box img {
    transform: scale(1.05);
}

.solution-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Текстовий блок під зображенням */
.solution-content {
    padding: 16px 14px;
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.solution-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.35;
}

/* Адаптивність */
@media (max-width: 1100px) {
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .solutions-grid {
        grid-template-columns: 1fr;
    }
}


/* CTA Секція */
.cta-section {
    padding: 60px 0;
    
    border-top: 1px solid #e2e8f0;
}

.cta-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: center;
}

/* Лівий блок */
.cta-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cta-title-highlight {
    display: block;
    color: #f59e0b;
}

.cta-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
    margin: 0 0 32px 0;
    max-width: 520px;
}

/* 4 переваги в ряд під текстом */
.cta-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.cta-benefit-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.cta-benefit-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: #fffbebf5;
    border: 1px solid #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-benefit-item span {
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

/* Правий блок: Форма */
.cta-form-wrapper {
    background: transparent;
}

.cta-form-wrapper .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.cta-form-wrapper .form-group {
    display: flex;
    flex-direction: column;
}

.cta-form-wrapper .form-group.full-width {
    margin-bottom: 16px;
}

.cta-form-wrapper label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

/* Стилі інпутів CF7 */
.cta-form-wrapper input[type="text"],
.cta-form-wrapper input[type="email"],
.cta-form-wrapper input[type="tel"],
.cta-form-wrapper textarea {
    width: 100%;
    padding: 10px 14px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13.5px;
    color: #0f172a;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.cta-form-wrapper input:focus,
.cta-form-wrapper textarea:focus {
    border-color: #f59e0b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.cta-form-wrapper textarea {
    height: 85px;
    resize: vertical;
}

/* Кнопка відправки */
.cta-form-wrapper .cta-submit-btn {
    width: 100%;
    background-color: #f59e0b;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.cta-form-wrapper .cta-submit-btn:hover {
    background-color: #d97706;
    color: #ffffff;
}

/* Адаптивність */
@media (max-width: 1024px) {
    .cta-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 640px) {
    .cta-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cta-form-wrapper .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}


/* ==========================================
   СЕКЦІЯ CTA (ГОТОВІ ЗНАЙТИ НАЙКРАЩЕ РІШЕННЯ)
   ========================================== */

.cta-section {
    
    padding: 60px 0 !important;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.cta-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1.1fr; /* Лівий та правий блоки */
    gap: 56px;
    align-items: center;
}

/* --- ЛІВИЙ БЛОК (Текст та Переваги) --- */
.cta-content {
    display: flex;
    flex-direction: column;
}

/* Головний заголовок — ВИПРАВЛЕНО КОЛІР */
.cta-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0f172a !important; /* Темно-синій/вугільний колір замість білого */
    line-height: 1.3 !important;
    margin: 0 0 14px 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Акцентна частина заголовка */
.cta-title-highlight {
    display: block;
    color: #f59e0b !important; /* Яскраво-жовтий / бурштиновий */
    margin-top: 4px;
}

/* Опис під заголовком — ВИПРАВЛЕНО КОЛІР */
.cta-desc {
    font-size: 14.5px !important;
    color: #475569 !important; /* Чіткий темно-сірий колір */
    line-height: 1.55 !important;
    margin: 0 0 32px 0 !important;
    max-width: 500px;
}

/* Сітка 4 переваг у ряд */
.cta-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.cta-benefit-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Жовта квадратна іконка */
.cta-benefit-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background-color: #fffbebf5;
    border: 1px solid #fef3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
}

.cta-benefit-icon svg {
    stroke: #d97706;
}

/* Текст під іконкою */
.cta-benefit-item span {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.35;
}


/* --- ПРАВИЙ БЛОК (ФОРМА) --- */
.cta-form-wrapper {
    background: #ffffff;
    padding: 28px 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
}

.cta-form-wrapper .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.cta-form-wrapper .form-group {
    display: flex;
    flex-direction: column;
}

.cta-form-wrapper .form-group.full-width {
    margin-bottom: 18px;
}

/* Назви полів */
.cta-form-wrapper label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #334155 !important;
    margin-bottom: 6px;
}

/* Поля вводу (Input / Textarea) */
.cta-form-wrapper input[type="text"],
.cta-form-wrapper input[type="email"],
.cta-form-wrapper input[type="tel"],
.cta-form-wrapper textarea {
    width: 100% !important;
    padding: 11px 14px !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.cta-form-wrapper input::placeholder,
.cta-form-wrapper textarea::placeholder {
    color: #94a3b8 !important;
}

/* Фокус на полях вводу */
.cta-form-wrapper input:focus,
.cta-form-wrapper textarea:focus {
    background-color: #ffffff !important;
    border-color: #f59e0b !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
}

.cta-form-wrapper textarea {
    height: 90px !important;
    resize: vertical;
}

/* Жовта кнопка відправки */
.cta-submit-btn,
.cta-form-wrapper input[type="submit"] {
    width: 100% !important;
    background-color: #f59e0b !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    padding: 13px 20px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-submit-btn:hover,
.cta-form-wrapper input[type="submit"]:hover {
    background-color: #d97706 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}


/* --- АДАПТИВНІСТЬ (Мобільні пристрої) --- */
@media (max-width: 1024px) {
    .cta-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .cta-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .cta-form-wrapper {
        padding: 20px 16px;
    }

    .cta-form-wrapper .form-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}


.radio-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #1e293b;
}

.radio-option input[type="radio"] {
    accent-color: #f59e0b;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.compact-form {
    max-width: 560px;
    width: 100%;
    
    
    border-radius: 8px;
    
    font-size: 13px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.form-group label {
    font-weight: 600;
    font-size: 12px;
    color: #334155;
}

.form-group input,
.form-group textarea {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 13px;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #d97706;
}

.radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-top: 2px;
}

.radio-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 12px;
    color: #1e293b;
    cursor: pointer;
}

.radio-grid input[type="radio"] {
    accent-color: #d97706;
}

.compact-submit-btn {
    width: 100%;
    padding: 10px;
    background: #d97706;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.compact-submit-btn:hover {
    background: #b45309;
}


.error-404-page {
    padding: 100px 0;
    background-color: #f8fafc;
    min-height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.error-404-content {
    max-width: 580px;
    margin: 0 auto;
    text-align: center;
}

.error-code {
    font-size: 110px;
    font-weight: 800;
    line-height: 1;
    color: #d97706;
    margin-bottom: 12px;
    letter-spacing: -2px;
}

.error-title {
    font-size: 30px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
}

.error-description {
    font-size: 15px;
    color: #475569;
    margin-bottom: 32px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-404-primary {
    background-color: #d97706;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.btn-404-primary:hover {
    background-color: #b45309;
    color: #ffffff;
}

.btn-404-secondary {
    background-color: transparent;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-404-secondary:hover {
    border-color: #d97706;
    color: #d97706;
}




.news-search-wrapper {
    margin-top: 24px;
    max-width: 480px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field {
    width: 100%;
    padding: 10px 42px 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.search-field:focus {
    border-color: #d97706;
}

.search-submit {
    position: absolute;
    right: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-submit:hover {
    color: #d97706;
}

.news-search-wrapper {
    margin: 24px auto 0 auto; /* auto по боках центрує блок з обмеженою max-width */
    max-width: 480px;
    width: 100%;
}


/* Контейнер пагінації */
.products-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

/* Загальні стилі елементів пагінації */
.products-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background-color: #FFFFFF;
    color: #1F2937;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Ховер ефект для посилань */
.products-pagination a.page-numbers:hover {
    border-color: #FFC107;
    color: #000000;
    background-color: #FFFBEB;
    transform: translateY(-1px);
}

/* Поточна активна сторінка */
.products-pagination .page-numbers.current {
    background-color: #FFC107; /* Фірмовий жовтий колір сайту */
    border-color: #FFC107;
    color: #000000;
    font-weight: 700;
    cursor: default;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

/* Стрелки « / » */
.products-pagination .page-numbers.prev,
.products-pagination .page-numbers.next {
    font-size: 18px;
    line-height: 1;
}


/* Сітка для архіву застосувань */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

/* Картка застосування */
.app-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: #0284c7;
    box-shadow: 0 12px 24px -8px rgba(2, 132, 199, 0.15);
}

/* Верхня частина з іконкою та стрілкою */
.app-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.app-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-icon-box img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.app-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f8fafc;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.app-card:hover .app-card-arrow {
    background-color: #0284c7;
    color: #ffffff;
    transform: translateX(3px);
}

/* Основний текст */
.app-card-body {
    flex-grow: 1;
}

.app-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.app-card:hover .app-card-title {
    color: #0284c7;
}

.app-card-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

/* Футер картки */
.app-card-footer {
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.app-card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0284c7;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* Контейнер пагінації */
.applications-pagination {
    margin-top: 48px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.applications-pagination .nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Базові елементи пагінації */
.applications-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* Ховер на звичайні посилання */
.applications-pagination a.page-numbers:hover {
    border-color: #0284c7;
    color: #0284c7;
    background-color: #f0f9ff;
    transform: translateY(-1px);
}

/* Активна сторінка */
.applications-pagination .page-numbers.current {
    background-color: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.25);
}

/* Стрілки Назад / Вперед */
.applications-pagination .page-numbers.prev,
.applications-pagination .page-numbers.next {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Троеточіє (...) */
.applications-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #94a3b8;
    padding: 0 4px;
    min-width: auto;
}