/*!
Theme Name: septikpro
Theme URI: http://underscores.me/
Author: Vlad Baka
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: septikpro
*/

/* ================= VARIABLES ================= */
:root {
    --brand-blue: #0066A2;
    --brand-blue-hover: #004d7a;
    --brand-green: #4CAF50;
    --brand-green-hover: #3e8e41;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-dark: #0f172a;
    --container-width: 100%;
}

/* ================= AKROBAT FONT FAMILY ================= */
@font-face { font-family: 'Akrobat'; src: url('fonts/Akrobat-Thin.ttf') format('truetype'); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: 'Akrobat'; src: url('fonts/Akrobat-ExtraLight.ttf') format('truetype'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Akrobat'; src: url('fonts/Akrobat-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Akrobat'; src: url('fonts/Akrobat-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Akrobat'; src: url('fonts/Akrobat-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Akrobat'; src: url('fonts/Akrobat-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Akrobat'; src: url('fonts/Akrobat-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Akrobat'; src: url('fonts/Akrobat-Black.ttf') format('truetype'); font-weight: 900; font-style: normal; font-display: swap; }

/* ================= RESET & BASE ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Akrobat', sans-serif;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    background: #f8f9fc;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

h2 {
    font-family: 'Akrobat', sans-serif;
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    color: #1a1a1a;
}

/* ================= UTILITY CLASSES ================= */
.bg-brand-blue { background-color: var(--brand-blue); color: #fff; }
.bg-brand-green { background-color: var(--brand-green); color: #fff; }
.pb-0 { padding-bottom: 0 !important; }

/* Універсальні секції (замість news-section, about-section і т.д.) */
.page-section {
    padding: 60px 0;
}

.bg-light {
    background-color: #f8fafc;
}

.section-bg-white {
    background-color: #ffffff;
}

/* ================= SLIDER BACKGROUND ================= */
.slider-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: #000;
}

.slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9);
    transition: opacity 0.7s ease-in-out;
    opacity: 0;
    z-index: 0;
}

.slide-bg.active {
    opacity: 1;
    z-index: 10;
}

.bg-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
    z-index: 20;
}

@media (min-width: 768px) {
    .bg-overlay { width: 66.666%; }
}

/* ================= HEADER ================= */
.main-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

.logo img {
    height: 40px;
    object-fit: contain;
    margin-right: 32px;
}

.main-nav {
    display: none;
    align-items: center;
    gap: 1.25rem;
    font-size: 17px;
    font-weight: 700;
    color: #334155;
    flex-grow: 1;
}

@media (min-width: 1280px) {
    .main-nav { display: flex; }
}

.nav-link { transition: color 0.3s;    text-transform: uppercase; }
.nav-link:hover { color: var(--brand-blue); }

.dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 0;
    cursor: pointer;
    color: var(--brand-green);
}

.dropdown-wrapper svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.dropdown-wrapper:hover svg { transform: rotate(180deg); }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 256px;
    padding-top: 8px;
    display: none;
    z-index: 50;
}

.dropdown-wrapper:hover .dropdown-menu { display: block; }

.dropdown-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    overflow: hidden;
}

.dropdown-content a {
    padding: 10px 20px;
    color: #334155;
    transition: all 0.2s;
}

.dropdown-content a:hover {
    background: #f8fafc;
    color: var(--brand-blue);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: .8rem;
    flex-shrink: 0;
}

.contact-info {
    /* display: none; */
    text-align: right;
}

@media (min-width: 640px) {
    .contact-info { display: flex; flex-direction: column; }
}

.contact-phone {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 20px;
    font-weight: 900;
    transition: color 0.3s;
    gap: 6px;
}

.contact-phone svg {
    width: 24px;
    height: 24px;
    color: var(--brand-blue);
}

.contact-phone:hover { color: var(--brand-blue); }

.contact-time {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s ease;
    gap: 8px;
    font-size: 18px;
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.btn-primary {
    background: var(--brand-blue);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 102, 162, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 162, 0.23);
}

.btn-success {
    background: var(--brand-green);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    box-shadow: 0 10px 25px -5px rgba(76, 175, 80, 0.4);
}

.btn-success:hover {
    background: var(--brand-green-hover);
    transform: translateY(-4px);
}

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

.btn-outline {
    background: #fff;
    color: var(--text-main);
    border: 2px solid #e2e8f0;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 18px;
}

.btn-outline:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* ================= HERO SECTION ================= */
.hero {
    position: relative;
    z-index: 10;
    height: calc(100vh - 50px);
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 768px;
    width: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-content.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

h1 {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    color: var(--text-main);
}

@media (min-width: 768px) { h1 { font-size: 78px; } }

.text-gradient {
    background: linear-gradient(to right, var(--brand-blue), #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.features-list {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.features-list li {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #334155;
    gap: 12px;
}

.features-list svg {
    width: 24px;
    height: 24px;
    color: var(--brand-green);
    flex-shrink: 0;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .hero-actions { flex-direction: row; }
}

/* ================= SLIDER CONTROLS ================= */
.slider-controls-wrapper {
    position: absolute;
    bottom: 32px;
    left: 0;
    width: 100%;
    z-index: 30;
}

.controls-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.dots-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dot {
    height: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active { width: 32px; background: var(--brand-blue); }
.dot.inactive { width: 8px; background: #cbd5e1; }
.dot.inactive:hover { background: rgba(0, 102, 162, 0.5); }

.arrows-container {
    display: none;
    align-items: center;
    gap: 16px;
}

@media (min-width: 768px) {
    .arrows-container { display: flex; }
}

.arrow-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s;
}

.arrow-btn svg { width: 24px; height: 24px; }

.arrow-btn:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

/* ================= OBJECT TYPES SECTION ================= */
.premium-section {
    background-color: transparent;
    padding: 100px 0;
    position: relative;
    z-index: 40;
    background: #fff;
}

.premium-header {
    margin-bottom: 60px;
}

.premium-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px;
}

@media (min-width: 768px) {
    .premium-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .premium-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.p-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ЗОБРАЖЕННЯ ТА МАСКА */
.p-image-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.img-mask-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath fill='%23000' d='M400 215C400 226.046 391.046 235 380 235H355C343.954 235 335 243.954 335 255V280C335 291.046 326.046 300 315 300H20C8.95431 300 0 291.046 0 280V20C0 8.9543 8.95431 0 20 0H380C391.046 0 400 8.9543 400 20V215Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 300'%3E%3Cpath fill='%23000' d='M400 215C400 226.046 391.046 235 380 235H355C343.954 235 335 243.954 335 255V280C335 291.046 326.046 300 315 300H20C8.95431 300 0 291.046 0 280V20C0 8.9543 8.95431 0 20 0H380C391.046 0 400 8.9543 400 20V215Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.img-mask-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.p-heading-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(255, 255, 255, 1);
    color: #1a1a1a;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 800;
    z-index: 5;
    margin: 0;
    white-space: nowrap;
    line-height: 1.1;
}

.p-card:hover .img-mask-wrapper img { transform: scale(1.05); }

.p-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background-color: var(--brand-green);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.p-card:hover .p-btn { transform: scale(1.08); }
.p-btn svg { width: 22px; height: 22px; transition: transform 0.3s; }
.p-card:hover .p-btn svg { transform: translate(2px, -2px); }

/* ================= CATALOG GRID ================= */
.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .catalog-grid { grid-template-columns: repeat(4, 1fr); }
    .catalog-grid.row-reverse .cat-card { order: 4; }
}

/* ================= CATEGORY HEADER CARD ================= */
.cat-card {
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.cat-card-top h3 {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
}

/* Список всередині картки категорії */
.cat-card-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cat-card-list li {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    
    /* Магия обрезания в одну строку: */
    display: block; /* Змінюємо flex на block */
    white-space: nowrap; /* Забороняємо тексту переноситися на новий рядок */
    overflow: hidden; /* Ховаємо все, що вилазить за межі картки */
    text-overflow: ellipsis; /* Додаємо красиве трієточіє "..." в кінці */
}

/* Оскільки ми прибрали flex і gap, повертаємо відступ для точки вручну */
.cat-card-list li::before {
    content: "•";
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    line-height: 1;
    position: relative;
    top: -2px;
    margin-right: 10px; /* Ось цей відступ замінює колишній gap */
}

.cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #1a1a1a;
    padding: 16px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.3s ease;
    text-align: center;
    gap: 8px;
    z-index: 2;
}

.cat-card.bg-brand-blue .cat-btn { color: var(--brand-blue); }
.cat-card.bg-brand-green .cat-btn { color: var(--brand-green); }

.cat-btn svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.cat-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); }
.cat-btn:hover svg { transform: translateX(4px); }

/* ================= PRODUCT CARD ================= */
.product-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.product-card:hover {
    border-color: rgba(0, 102, 162, 0.3);
    box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}

.product-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.product-img-box {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

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

.product-info {
    padding: 1rem 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.product-card:hover .product-title { color: var(--brand-blue); }

.product-specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* margin-top: auto; */
}

/* Убираем отступ снизу у первого списка */
.product-specs.single-specs:first-of-type {
    margin-bottom: 0 !important;
}

/* Убираем отступ сверху у второго списка */
.product-specs.single-specs:last-of-type {
    margin-top: 0 !important;
}

.product-specs li {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 600;
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.product-specs li span {
    color: #64748b;
    font-weight: 400;
    display: flex;
    align-items: flex-end;
    flex-grow: 1;
    margin-right: 8px;
}

.product-specs li span::after {
    content: "";
    flex-grow: 1;
    border-bottom: 1px dotted #cbd5e1;
    margin-left: 8px;
    position: relative;
    top: -4px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-blue);
    transition: all 0.3s ease;
}

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

.product-card:hover .btn-more { color: var(--brand-green); }
.product-card:hover .btn-more svg { transform: translateX(4px); }

/* ================= SERVICES V3 GRID (4 Columns) ================= */
.services-v3-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .services-v3-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Десктопна сітка рівно на 4 колонки */
@media (min-width: 1024px) {
    .services-v3-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
    }
}

/* --- Сама картка --- */
.svc-v3-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1; /* Робимо всі картки ідеально квадратними */
    border-radius: 20px;
    text-decoration: none;
    /* background-color: #e2e8f0; */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-v3-card:hover {
    transform: translateY(-4px);
}

/* --- SVG Маска (Виріз у правому нижньому куті) --- */
.svc-v3-mask {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    /* Твоя маска з точним viewBox 300x300 */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cpath fill='%23000' d='M300 215C300 226.046 291.046 235 280 235H255C243.954 235 235 243.954 235 255V280C235 291.046 226.046 300 215 300H20C8.9543 300 0 291.046 0 280V20C0 8.9543 8.95431 0 20 0H280C291.046 0 300 8.9543 300 20V215Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cpath fill='%23000' d='M300 215C300 226.046 291.046 235 280 235H255C243.954 235 235 243.954 235 255V280C235 291.046 226.046 300 215 300H20C8.9543 300 0 291.046 0 280V20C0 8.9543 8.95431 0 20 0H280C291.046 0 300 8.9543 300 20V215Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.svc-v3-mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-v3-card:hover .svc-v3-mask img {
    transform: scale(1.08); /* Зум картинки */
}

/* --- Блок з Інформацією (Знизу зліва) --- */
.svc-v3-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: calc(100% - 25% - 20px); /* Залишаємо місце для вирізу (25%) */
    /* background-color: rgba(255, 255, 255, 0.85); */
    background: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 16px;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.svc-v3-title {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.svc-v3-card:hover .svc-v3-title {
    color: var(--brand-blue);
}

/* Магія анімації опису (Виїжджає знизу) */
.svc-v3-desc-wrapper {
    display: grid;
    grid-template-rows: 0fr; /* Сховано за замовчуванням */
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-v3-desc-inner {
    overflow: hidden;
}

.svc-v3-desc-inner p {
    margin: 0;
    padding-top: 10px;
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
    
    /* Многострочная обрезка текста */
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Укажи максимальное количество строк (3, 4 или 5) */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.svc-v3-card:hover .svc-v3-desc-wrapper {
    grid-template-rows: 1fr; /* Плавне розкриття блоку з текстом */
}

/* --- Синя кнопка в куті --- */
.svc-v3-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20%; /* Ідеально підігнано під розмір вирізу твоєї маски */
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background-color: var(--brand-blue);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
    z-index: 10;
}

.svc-v3-btn svg {
    width: 45%;
    height: 45%;
    transition: transform 0.3s ease;
}

/* Ховер ефекти на кнопку */
.svc-v3-card:hover .svc-v3-btn {
    transform: scale(1.05);
}

.svc-v3-card:hover .svc-v3-btn svg {
    transform: translate(2px, -2px);
}

/* ================= CASES SECTION (Before/After & Portfolio) ================= */
.cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
}

@media (min-width: 1024px) {
    .cases-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* Оновлена картка роботи (Case Card) */
.case-card {
    background-color: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 16px;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.1);
    border-color: rgba(0, 102, 162, 0.2);
}

.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8;
    overflow: hidden;
    background: #e2e8f0;
    border-radius: 16px;
}

.ba-img-before, .ba-img-after {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.ba-img-after-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    overflow: hidden;
    border-right: 2px solid #ffffff;
    z-index: 2;
}

.ba-img-after-wrapper img { width: 200%; max-width: none; }

.ba-slider-input {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 10;
    margin: 0;
}

.ba-handle {
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background-color: transparent;
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
}

.ba-handle-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    background-color: var(--brand-blue);
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.ba-handle-btn svg { width: 20px; height: 20px; }

.ba-label {
    position: absolute;
    bottom: 16px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    pointer-events: none;
    backdrop-filter: blur(4px);
    z-index: 4;
}

.label-before { left: 16px; }
.label-after { right: 16px; }

/* Контент кейсу (оновлено) */
.case-content {
    padding: 24px 16px 16px 16px;
    border-radius: 16px;
}

.case-title {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 24px;
    line-height: 1.3;
}

.case-specs {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item {
    display: flex;
    align-items: flex-end;
    font-size: 17px;
}

.spec-label {
    color: #64748b;
    font-weight: 400;
    display: flex;
    flex-grow: 1;
    margin-right: 8px;
}

.spec-label::after {
    content: "";
    flex-grow: 1;
    border-bottom: 1px dotted #cbd5e1;
    margin-left: 8px;
    position: relative;
    top: -4px;
}

.spec-val {
    color: #1a1a1a;
    font-weight: 600;
    text-align: right;
    max-width: 60%;
}

/* Фільтри для сторінки портфоліо */
.works-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 48px;
}

.filter-btn {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.filter-btn.active {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 8px 16px -4px rgba(0, 102, 162, 0.3);
}

/* ================= WORKFLOW TIMELINE SECTION ================= */
.workflow-section {
    padding: 120px 0;
    background-color: #ffffff;
}

.workflow-layout {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 1024px) {
    .workflow-layout {
        flex-direction: row;
        gap: 80px;
        align-items: flex-start;
    }
    .workflow-left { width: 35%; position: sticky; top: 90px; }
    .workflow-right { width: 65%; }
    .workflow-left .premium-header { text-align: left; }
}

.premium-header { margin-bottom: 40px; }
.header-subtitle { color: #64748b; margin-top: 20px; line-height: 1.6; font-weight: 700; }

.timeline-container { position: relative; margin: 0; }

.timeline-line {
    position: absolute; top: 0; bottom: 0; left: 24px; width: 2px;
    background-image: linear-gradient(to bottom, #cbd5e1 50%, transparent 50%);
    background-size: 2px 16px; background-repeat: repeat-y; z-index: 1;
}

.timeline-item {
    position: relative; margin-bottom: 40px; width: 100%;
    display: flex; justify-content: flex-start; padding-left: 60px; z-index: 2;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
    position: absolute; left: 24px; top: 32px; width: 16px; height: 16px;
    border-radius: 50%; border: 4px solid #ffffff; transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8); z-index: 3;
}

.timeline-card {
    background: #f8fafc; border: 1px solid #f1f5f9; border-radius: 20px;
    padding: 32px; width: 100%; position: relative; overflow: hidden; transition: all 0.3s ease;
}

.timeline-card:hover {
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px); border-color: #e2e8f0;
}

.bg-number {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 140px;
    font-weight: 900;
    color: #fff;
    /* opacity: 0.5; */
    line-height: 1;
    pointer-events: none;
    z-index: 0;
    transition: all 0.4s ease;
    -webkit-text-stroke: 1px var(--brand-green);
}

.timeline-card:hover .bg-number { transform: scale(1.1) translate(-10px, 10px); opacity: 0.2; }

.step-title { font-size: 24px; font-weight: 800; color: #1a1a1a; margin-bottom: 16px; position: relative; z-index: 2; }
.step-desc { line-height: 1.6; color: #64748b; margin-bottom: 24px; position: relative; z-index: 2; }

.step-list { list-style: none; padding: 0; margin: 0 0 24px 0; position: relative; z-index: 2; }
.step-list li { font-size: 17px; line-height: 1.6; color: #64748b; margin-bottom: 12px; position: relative; padding-left: 16px; }
.step-list li::before { content: "•"; color: var(--brand-blue); font-weight: bold; font-size: 20px; position: absolute; left: 0; top: -2px; }
.step-list strong { color: #1a1a1a; }

.step-accent {
    display: flex; align-items: flex-start; gap: 12px; padding: 16px;
    border-radius: 12px; font-size: 17px; font-weight: 600; line-height: 1.5; position: relative; z-index: 2;
}

.step-accent svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.badge-blue { background-color: rgba(0, 102, 162, 0.08); color: var(--brand-blue); }
.badge-green { background-color: rgba(76, 175, 80, 0.08); color: var(--brand-green); }

/* ================= CONTACTS PAGE ================= */
.page-main {
    background-color: #f8fafc;
    padding-bottom: 30px;
}

.page-hero {
    padding: 40px 0 0;
}

.page-title {
    font-size: 56px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 24px;
}

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

@media (min-width: 1024px) {
    .contacts-layout { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.contacts-info { display: flex; flex-direction: column; gap: 20px; }

.c-card {
    display: flex; align-items: center; gap: 24px; background-color: #ffffff;
    padding: 24px; border-radius: 20px; border: 1px solid #e2e8f0;
    text-decoration: none; transition: all 0.3s ease;
}

a.c-card:hover {
    border-color: rgba(0, 102, 162, 0.3);
    box-shadow: 0 16px 32px -12px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px);
}

.c-icon {
    width: 56px; height: 56px; border-radius: 12px; display: flex;
    justify-content: center; align-items: center; flex-shrink: 0;
    color: #ffffff; transition: transform 0.3s ease;
}

a.c-card:hover .c-icon { transform: scale(1.1); }
.c-icon svg { width: 24px; height: 24px; }
.c-icon.bg-brand-blue { background-color: var(--brand-blue); }
.c-icon.bg-brand-green { background-color: var(--brand-green); }

.c-text { display: flex; flex-direction: column; gap: 4px; }
.c-label { font-size: 14px; color: #64748b; font-weight: 500; }
.c-value { font-size: 18px; font-weight: 600; color: #1a1a1a; transition: color 0.3s ease; }
a.c-card:hover .c-value { color: var(--brand-blue); }

.contacts-form-wrapper {
    background-color: #ffffff; padding: 48px; border-radius: 24px;
    border: 1px solid #e2e8f0; box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
}

.form-title { font-size: 28px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; }
.form-desc { font-size: 15px; color: #64748b; margin-bottom: 32px; line-height: 1.6; }

.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }

.form-control {
    width: 100%; padding: 16px 20px; background-color: #f8fafc;
    border: 1px solid #e2e8f0; border-radius: 12px; font-family: inherit;
    font-size: 15px; color: #1a1a1a; transition: all 0.3s ease; box-sizing: border-box;
}

.form-control::placeholder { color: #94a3b8; }
.form-control:focus { outline: none; background-color: #ffffff; border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(0, 102, 162, 0.1); }

textarea.form-control { resize: vertical; min-height: 120px; }
.w-100 { width: 100%; }

.form-policy { font-size: 12px; color: #94a3b8; text-align: center; margin-top: 16px; }
.form-policy a { color: var(--brand-blue); text-decoration: underline; }

.map-wrapper {
    width: 100%; height: 450px; border-radius: 24px; overflow: hidden;
    border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    filter: grayscale(100%) opacity(0.8); transition: filter 0.5s ease;
}

.map-wrapper:hover { filter: grayscale(0%) opacity(1); }

/* ================= ABOUT US PAGE SPECIFICS ================= */
.about-layout { display: grid; grid-template-columns: 1fr; gap: 60px; }

@media (min-width: 1024px) {
    .about-layout { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: flex-start; }
}

.section-title { font-size: 36px; font-weight: 700; color: #1a1a1a; margin-bottom: 32px; }
.about-text { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.text-lead { font-weight: 600; color: #1a1a1a; }
.about-text p { margin: 0; }

.about-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px;
    padding: 14px 28px; border-radius: 12px; font-weight: 600;
    border: 2px solid #e2e8f0; color: #1a1a1a; background: transparent;
    transition: all 0.3s ease; text-decoration: none;
}

.about-btn svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.about-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.about-btn:hover svg { transform: translateX(4px); }

.about-video-wrapper {
    position: relative; width: 100%; aspect-ratio: 16 / 9;
    border-radius: 20px; overflow: hidden; box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.about-video-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

.about-features { display: grid; grid-template-columns: 1fr; gap: 24px; }

@media (min-width: 768px) {
    .about-features { grid-template-columns: 1.2fr 1fr; grid-auto-rows: min-content; }
    .bg-green { grid-column: 1 / 2; grid-row: 1 / 2; }
    .bg-blue { grid-column: 1 / 2; grid-row: 2 / 3; }
    .bg-white.floating-card {
        grid-column: 2 / 3; grid-row: 1 / 3; align-self: center;
        margin-left: -60px; z-index: 10;
    }
}

.feature-card {
    padding: 40px 32px; border-radius: 24px; display: flex;
    flex-direction: column; gap: 16px; transition: transform 0.3s ease;
}

.feature-card:hover { transform: translateY(-4px); }
.feature-card h3 { font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0; }
.feature-card p { line-height: 1.6; margin: 0; opacity: 0.9; }

.bg-white {
    background-color: #ffffff; color: #1a1a1a;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.15);
    border: 1px solid #f1f5f9;
}
.bg-white p { color: #64748b; }

/* ================= NEWS / BLOG SPECIFICS ================= */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }

@media (min-width: 768px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 1024px) {
    .news-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
    .featured-post { grid-column: span 2; display: flex; flex-direction: column; }
}

.news-card {
    background-color: #ffffff; border-radius: 24px; overflow: hidden;
    border: 1px solid #e2e8f0; transition: all 0.4s ease;
    display: flex; flex-direction: column; padding: 32px;
}

.news-card:hover {
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.1);
    transform: translateY(-6px); border-color: rgba(0, 102, 162, 0.3);
}

.news-img-link { display: block; width: 100%; overflow: hidden; border-radius: 18px; }
.news-img-box { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; }

@media (min-width: 1024px) { .featured-post .news-img-box { aspect-ratio: 16 / 8; } }

.news-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.news-card:hover .news-img-box img { transform: scale(1.05); }

.news-badge {
    position: absolute; top: 20px; left: 20px; padding: 6px 14px;
    border-radius: 8px; color: #ffffff; font-size: 13px; font-weight: 700;
    letter-spacing: 0.5px; text-transform: uppercase; z-index: 2;
}

.news-content { padding-top: 32px; display: flex; flex-direction: column; flex-grow: 1; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #64748b; margin-bottom: 16px; font-weight: 500; }
.news-dot { font-size: 10px; color: #cbd5e1; }
.news-title { font-size: 20px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.featured-post .news-title { font-size: 28px; }
.news-title a { color: #1a1a1a; text-decoration: none; transition: color 0.3s ease; }
.news-card:hover .news-title a { color: var(--brand-blue); }
.news-excerpt { font-size: 15px; color: #64748b; line-height: 1.6; margin-bottom: 24px; flex-grow: 1; }
.featured-post .news-excerpt { font-size: 16px; display: none; }

.news-read-more {
    display: inline-flex; align-items: center; gap: 8px; font-size: 15px;
    font-weight: 700; color: var(--brand-blue); text-decoration: none;
    transition: all 0.3s ease; margin-top: auto;
}

.news-read-more svg { width: 18px; height: 18px; transition: transform 0.3s ease; }
.news-read-more:hover { color: var(--brand-green); }
.news-card:hover .news-read-more svg { transform: translateX(6px); }

.news-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 60px; }
.page-numbers {
    display: flex; justify-content: center; align-items: center; width: 44px; height: 44px;
    border-radius: 12px; font-weight: 600; font-size: 16px; color: #1a1a1a;
    background-color: #ffffff; border: 1px solid #e2e8f0; text-decoration: none; transition: all 0.3s ease;
}
.page-numbers:hover:not(.dots):not(.inactive) {
    border-color: var(--brand-blue); color: var(--brand-blue);
    transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(0, 102, 162, 0.3);
}
.page-numbers.current { background-color: var(--brand-blue); color: #ffffff; border-color: var(--brand-blue); pointer-events: none; }
.page-numbers.dots { border: none; background: transparent; pointer-events: none; }
.page-numbers.inactive { color: #cbd5e1; background-color: #f1f5f9; pointer-events: none; }
.page-numbers svg { width: 20px; height: 20px; }

/* ================= BREADCRUMBS ================= */
.breadcrumbs { margin-bottom: 24px; display: flex; width: 100%; }
.breadcrumbs ul { list-style: none; padding: 0; margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li { display: flex; align-items: center; font-size: 14px; font-family: inherit; color: #64748b; }
.breadcrumbs a { color: #64748b; text-decoration: none; transition: color 0.3s ease; font-weight: 500; }
.breadcrumbs a:hover { color: var(--brand-blue); }
.breadcrumbs svg { width: 16px; height: 16px; color: #cbd5e1; margin: 0 4px; margin-top: 1px; }
.breadcrumbs .current { color: #1a1a1a; font-weight: 600; }

/* ================= SERVICES PAGE LIST ================= */
.services-list { display: flex; flex-direction: column; gap: 40px; }

.s-card {
    background-color: #ffffff; border-radius: 24px; overflow: hidden; border: 1px solid #e2e8f0;
    display: flex; gap: 3rem; flex-direction: column; transition: all 0.4s ease;
}

.s-card:hover {
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.1);
    transform: translateY(-4px); border-color: rgba(0, 102, 162, 0.2);
}

@media (min-width: 1024px) {
    .services-list { gap: 60px; }
    .s-card { flex-direction: row; align-items: stretch; padding: 2rem; }
    .s-card.reverse { flex-direction: row-reverse; }
}

.s-card-img { position: relative; width: 100%; aspect-ratio: 16 / 5; overflow: hidden; border-radius: 1rem; }
@media (min-width: 1024px) { .s-card-img { width: 45%; min-height: 100%; } }
.s-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.s-card:hover .s-card-img img { transform: scale(1.05); }

.s-card-content { display: flex; flex-direction: column; flex-grow: 1; }
@media (min-width: 1024px) { .s-card-content { width: 55%; justify-content: center; } }

.s-card-icon {
    width: 48px; height: 48px; border-radius: 12px; display: flex;
    justify-content: center; align-items: center; color: #ffffff; margin-bottom: 24px;
}
.s-card-icon svg { width: 24px; height: 24px; }
.s-card-title { font-size: 28px; font-weight: 700; color: #1a1a1a; margin-bottom: 16px; line-height: 1.2; }
.s-card-desc { font-size: 16px; color: #64748b; line-height: 1.6; margin-bottom: 24px; }

.s-card-features { list-style: none; padding: 0; margin: 0 0 32px 0; display: flex; flex-direction: column; gap: 12px; }
.s-card-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: #1a1a1a; }
.s-card-features svg { width: 20px; height: 20px; flex-shrink: 0; }

.s-card-footer {
    display: flex; align-items: center; flex-wrap: wrap; gap: 24px;
    margin-top: auto; padding-top: 24px; border-top: 1px solid #e2e8f0;
}
.s-card-price { font-size: 18px; font-weight: 700; color: #1a1a1a; }

/* CTA BLOCK */
.cta-box {
    border-radius: 24px; padding: 48px 32px; display: flex; flex-direction: column;
    gap: 32px; color: #ffffff; text-align: center; position: relative;
    overflow: hidden; background-image: linear-gradient(135deg, var(--brand-blue) 0%, #1e3a8a 100%);
}

@media (min-width: 1024px) {
    .cta-box { flex-direction: row; text-align: left; align-items: center; justify-content: space-between; padding: 60px 80px; }
    .cta-content { max-width: 60%; }
}

.cta-title { font-size: 32px; font-weight: 700; margin-bottom: 16px; color: #ffffff; }
.cta-desc { font-size: 16px; line-height: 1.6; opacity: 0.9; margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 16px; flex-shrink: 0; }
@media (min-width: 768px) { .cta-actions { flex-direction: row; justify-content: center; } }

.cta-btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 28px; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 12px;
    color: #ffffff; font-weight: 600; text-decoration: none; transition: all 0.3s ease;
}
.cta-btn-outline:hover { border-color: #ffffff; background-color: rgba(255, 255, 255, 0.1); }
.cta-btn-outline svg { width: 20px; height: 20px; }

.cta-btn-solid {
    display: inline-flex; align-items: center; justify-content: center; padding: 16px 28px;
    background-color: var(--brand-green); color: #ffffff; border-radius: 12px;
    font-weight: 700; text-decoration: none; transition: all 0.3s ease; font-size: 18px;
}
.cta-btn-solid:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -8px rgba(76, 175, 80, 0.4); }

/* ================= SINGLE SERVICE & SINGLE POST PAGE LAYOUTS ================= */
.service-hero-layout { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .service-hero-layout { grid-template-columns: 1fr 1fr; gap: 60px; } }

.service-hero-content { display: flex; flex-direction: column; align-items: flex-start; }
.service-hero-content .breadcrumbs { justify-content: flex-start; margin-bottom: 32px; }
.service-hero-content .page-title { font-size: 42px; margin-bottom: 24px; text-align: left; }
.service-lead { font-size: 18px; color: #475569; line-height: 1.6; margin-bottom: 32px; }

.service-hero-meta {
    display: flex; flex-wrap: wrap; gap: 24px; padding-top: 24px; border-top: 1px solid #cbd5e1; width: 100%;
}
.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 13px; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.meta-value { font-size: 18px; font-weight: 700; color: var(--brand-blue); }

.service-hero-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1); }
.service-hero-img img { width: 100%; height: 100%; object-fit: cover; }

.service-main-layout { display: grid; grid-template-columns: 1fr; gap: 60px; }
@media (min-width: 1024px) {
    .service-main-layout { grid-template-columns: 1.8fr 1fr; gap: 80px; align-items: flex-start; }
}

.service-details h2 { font-size: 32px; font-weight: 700; color: #1a1a1a; margin-bottom: 24px; }
.service-details h3 { font-size: 24px; font-weight: 700; color: #1a1a1a; margin: 40px 0 20px 0; }
.service-details p { margin-bottom: 20px; }

.check-list { list-style: none; padding: 0; margin: 0 0 32px 0; display: flex; flex-direction: column; gap: 16px; }
.check-list li {
    display: flex; align-items: flex-start; gap: 16px; line-height: 1.2;
    background-color: #f8fafc; padding: 16px 20px; border-radius: 12px; border: 1px solid #e2e8f0;
}
.check-list svg { width: 24px; height: 24px; color: var(--brand-green); flex-shrink: 0; margin-top: -2px; }

.service-steps { display: flex; flex-direction: column; gap: 20px; }
.step-item { display: flex; gap: 20px; align-items: flex-start; }
.step-num { width: 48px; height: 48px; background-color: var(--brand-blue); color: #ffffff; font-size: 20px; font-weight: 700; border-radius: 50%; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.step-text { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: #475569; line-height: 1.5; padding-top: 4px; }
.step-text strong { font-size: 20px; color: #1a1a1a; font-weight: 700; }

.service-sidebar { position: sticky; top: 100px; }
.sticky-form-box {
    background-color: #f8fafc; padding: 40px 32px; border-radius: 24px;
    border: 1px solid #e2e8f0; box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
}
.sidebar-title { font-size: 24px; font-weight: 700; color: #1a1a1a; margin-bottom: 12px; }
.sidebar-desc { font-size: 14px; color: #64748b; line-height: 1.5; margin-bottom: 24px; }
.sticky-form-box .form-group { margin-bottom: 16px; }
.sidebar-contact { margin-top: 24px; padding-top: 24px; border-top: 1px solid #cbd5e1; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.sidebar-contact span { font-size: 13px; color: #64748b; }
.sidebar-phone { font-size: 22px; font-weight: 700; color: #1a1a1a; text-decoration: none; transition: color 0.3s ease; }
.sidebar-phone:hover { color: var(--brand-blue); }

/* ================= SINGLE CASE STUDY ================= */
.case-hero-header { max-width: 800px; margin: 0 auto 48px auto; }
.case-hero-header .breadcrumbs { margin-bottom: 24px; }
.case-hero-header .page-title { font-size: 42px; font-weight: 700; color: #1a1a1a; margin-bottom: 16px; }

.case-main-visual { width: 100%; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.15); margin-bottom: 40px; }
.large-slider .ba-img-before, .large-slider .ba-img-after { aspect-ratio: 16 / 7; }

.case-meta-bar {
    display: grid; grid-template-columns: 1fr; gap: 20px; background-color: #ffffff;
    padding: 32px; border-radius: 20px; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
}
@media (min-width: 768px) { .case-meta-bar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .case-meta-bar { grid-template-columns: repeat(4, 1fr); } }

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

.case-layout { display: grid; grid-template-columns: 1fr; gap: 60px; }
@media (min-width: 1024px) { .case-layout { grid-template-columns: 1.8fr 1fr; gap: 80px; align-items: flex-start; } }

.case-story h2 { font-size: 32px; font-weight: 700; color: #1a1a1a; margin: 48px 0 24px 0; line-height: 1.2; }
.case-story h2:first-child { margin-top: 0; }
.case-story p { margin-bottom: 24px; }

.image-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 40px 0; }
@media (min-width: 768px) { .image-grid { grid-template-columns: 1fr 1fr; } }
.rounded-img { width: 100%; height: auto; border-radius: 16px; object-fit: cover; aspect-ratio: 4 / 3; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.case-steps-list { list-style: none; padding: 0; margin: 0 0 40px 0; display: flex; flex-direction: column; gap: 16px; }
.case-steps-list li { line-height: 1.2; background-color: #f8fafc; padding: 16px 24px; border-radius: 12px; border-left: 4px solid var(--brand-blue); }
.case-steps-list li strong { color: var(--brand-blue); margin-right: 8px; font-size: 18px; }

.case-sidebar { position: sticky; top: 100px; }
.sticky-cta-card { border-radius: 24px; padding: 40px 32px; color: #ffffff; box-shadow: 0 20px 40px -15px rgba(0, 102, 162, 0.4); margin-bottom: 24px; }
.sticky-cta-card .cta-title { font-size: 26px; font-weight: 700; color: #ffffff; margin-bottom: 12px; }
.sticky-cta-card .cta-desc { font-size: 15px; line-height: 1.6; opacity: 0.9; margin-bottom: 32px; }

.light-form .form-control { background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #ffffff; }
.light-form .form-control::placeholder { color: rgba(255, 255, 255, 0.6); }
.light-form .form-control:focus { background-color: rgba(255, 255, 255, 0.2); border-color: #ffffff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); }
.light-form .form-group { margin-bottom: 16px; }

.trust-block { display: flex; flex-direction: column; gap: 12px; padding: 24px; background-color: #f8fafc; border-radius: 16px; border: 1px solid #e2e8f0; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: #1a1a1a; }
.trust-item svg { width: 20px; height: 20px; }

/* ================= SINGLE PRODUCT PAGE ================= */
.product-top-layout {
    display: grid; grid-template-columns: 1fr; gap: 40px; background-color: #ffffff;
    border-radius: 24px; padding: 32px; border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05); margin-bottom: 40px;
}
@media (min-width: 1024px) { .product-top-layout { grid-template-columns: 1fr 1fr; gap: 60px; padding: 48px; } }

.product-gallery { width: 100%; }
.main-image-box { position: relative; width: 100%; aspect-ratio: 4 / 3; background-color: #f1f5f9; border-radius: 16px; display: flex; justify-content: center; align-items: center; padding: 24px; }
.main-image-box img { width: 100%; height: 100%; object-fit: contain; }

.product-badge { position: absolute; top: 20px; left: 20px; padding: 6px 14px; border-radius: 8px; color: #ffffff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-summary { display: flex; flex-direction: column; }
.single-product-title { font-size: 32px; font-weight: 800; color: #1a1a1a; margin-bottom: 16px; line-height: 1.2; }

.product-meta-row { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; font-size: 14px; font-weight: 600; }
.in-stock { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-green); }
.in-stock svg { width: 18px; height: 18px; }
.product-sku { color: #94a3b8; }

.single-product-price { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #e2e8f0; }
.single-product-price .price-current { font-size: 36px; font-weight: 800; color: #1a1a1a; }
.single-product-price .price-old { font-size: 20px; font-weight: 600; color: #94a3b8; text-decoration: line-through; }

.product-short-desc { font-size: 16px; color: #475569; line-height: 1.6; margin-bottom: 24px; }

.single-specs { margin-bottom: 32px !important; }
.single-specs li { font-size: 16px !important; }

.product-actions { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .product-actions { flex-direction: row; } }

.product-bottom-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 1024px) { .product-bottom-layout { grid-template-columns: 2fr 1fr; gap: 60px; align-items: flex-start; } }

.product-details-content { background-color: #ffffff; border-radius: 24px; padding: 32px; border: 1px solid #e2e8f0; }
@media (min-width: 1024px) { .product-details-content { padding: 48px; } }

.product-details-content h2 { font-size: 28px; font-weight: 800; margin-bottom: 24px; }
.product-details-content h3 { font-size: 20px; font-weight: 700; margin: 32px 0 16px 0; }
.product-details-content p { font-size: 16px; line-height: 1.7; color: #475569; margin-bottom: 20px; }
.product-details-content ul { list-style: none; padding: 0; margin: 0 0 24px 0; display: flex; flex-direction: column; gap: 12px; }
.product-details-content ul li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.6; color: #1a1a1a; }
.product-details-content ul li::before { content: "•"; color: var(--brand-blue); font-weight: bold; font-size: 24px; position: absolute; left: 0; top: -4px; }
.product-kit-list li::before { color: var(--brand-green) !important; }

.sticky-promo-box {
    position: sticky; top: 100px; background-image: linear-gradient(135deg, var(--brand-blue) 0%, #1e3a8a 100%);
    border-radius: 24px; padding: 32px; color: #ffffff; box-shadow: 0 20px 40px -15px rgba(0, 102, 162, 0.4);
}
.promo-icon { width: 56px; height: 56px; background-color: rgba(255, 255, 255, 0.1); border-radius: 16px; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; }
.promo-icon svg { width: 28px; height: 28px; color: #ffffff; }
.sticky-promo-box h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; color: #ffffff; }
.sticky-promo-box p { font-size: 15px; line-height: 1.6; opacity: 0.9; margin-bottom: 24px; }

.promo-price-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.2); border-bottom: 1px solid rgba(255, 255, 255, 0.2); margin-bottom: 24px; }
.promo-price-row span { font-size: 15px; opacity: 0.9; }
.promo-price-row strong { font-size: 20px; font-weight: 800; color: #ffffff; }

.section-heading { font-size: 32px; font-weight: 800; color: #1a1a1a; }
.mb-40 { margin-bottom: 40px; }

/* ================= SINGLE ARTICLE (BLOG POST) ================= */
.article-hero-inner { max-width: 800px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.article-hero-inner .breadcrumbs { margin-bottom: 32px; }
.article-badges { margin-bottom: 24px; }
.article-title { font-size: 42px; font-weight: 800; color: #1a1a1a; line-height: 1.2; margin-bottom: 24px; }

.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 15px; color: #64748b; font-weight: 500; }
.meta-author { display: flex; align-items: center; gap: 12px; color: #1a1a1a; font-weight: 700; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #ffffff; }
.author-avatar svg { width: 16px; height: 16px; }
.meta-read-time { display: flex; align-items: center; gap: 6px; }
.meta-read-time svg { width: 16px; height: 16px; }
.meta-dot { color: #cbd5e1; font-size: 12px; }

.featured-image-wrapper { width: 100%; aspect-ratio: 21 / 9; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.15); }
.featured-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.article-layout { display: grid; grid-template-columns: 1fr; gap: 60px; max-width: 1100px; margin: 0 auto; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: 1fr 320px; gap: 80px; align-items: flex-start; } }

.article-content { font-size: 18px; line-height: 1.8; color: #334155; }
.article-lead { font-size: 20px; font-weight: 600; color: #1a1a1a; margin-bottom: 40px; }
.article-content h2 { font-size: 32px; font-weight: 800; color: #1a1a1a; margin: 48px 0 24px 0; line-height: 1.3; }
.article-content h3 { font-size: 24px; font-weight: 700; color: #1a1a1a; margin: 40px 0 20px 0; }
.article-content p { margin-bottom: 24px; }
.article-content ul { margin: 0 0 32px 0; padding-left: 20px; }
.article-content li { margin-bottom: 12px; padding-left: 8px; }
.article-content li::marker { color: var(--brand-blue); }

.article-content blockquote {
    position: relative; margin: 48px 0; padding: 32px 40px; background-color: #f8fafc;
    border-radius: 16px; border-left: 4px solid var(--brand-blue); font-size: 20px;
    font-weight: 600; color: #1a1a1a; font-style: italic; line-height: 1.6;
}

.article-content blockquote svg { position: absolute; top: -16px; left: 32px; width: 40px; height: 40px; color: rgba(0, 102, 162, 0.1); }
.article-content img { width: 100%; height: auto; border-radius: 16px; margin: 40px 0 16px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.image-caption { display: block; text-align: center; font-size: 14px; color: #64748b; margin-bottom: 40px; }

.article-sidebar { position: sticky; top: 100px; }
.share-block { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid #e2e8f0; }
.share-title { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.share-links { display: flex; gap: 12px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #ffffff; transition: transform 0.3s ease; }
.share-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -5px rgba(0, 102, 162, 0.4); }
.share-btn svg { width: 18px; height: 18px; }

.sticky-article-cta { padding: 32px; border-radius: 20px; color: #ffffff; box-shadow: 0 20px 40px -15px rgba(76, 175, 80, 0.4); }
.sticky-article-cta h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; color: #ffffff; }
.sticky-article-cta p { font-size: 15px; line-height: 1.6; margin-bottom: 24px; opacity: 0.95; }
.cta-note { font-size: 12px !important; text-align: center; margin-top: 12px !important; margin-bottom: 0 !important; opacity: 0.8 !important; }

/* ================= FOOTER SECTION ================= */
.premium-footer { background-color: #111827; color: #f8fafc; padding: 80px 0 32px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 48px; margin-bottom: 60px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; } }

.footer-logo { display: inline-flex; align-items: center; gap: 12px; font-family: 'Akrobat', sans-serif; font-size: 24px; font-weight: 700; color: #ffffff; text-decoration: none; margin-bottom: 20px; letter-spacing: -0.5px; }
.footer-logo span { color: var(--brand-blue); }
.footer-logo svg { width: 32px; height: 32px; color: var(--brand-green); }
.footer-desc { color: #94a3b8; font-size: 15px; line-height: 1.6; margin-bottom: 24px; max-width: 320px; }

.footer-socials { display: flex; gap: 16px; }
.soc-link { display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; border-radius: 50%; background-color: rgba(255, 255, 255, 0.05); color: #cbd5e1; transition: all 0.3s ease; }
.soc-link svg { width: 20px; height: 20px; }
.soc-link:hover { background-color: var(--brand-blue); color: #ffffff; transform: translateY(-4px); }

.footer-heading { font-family: 'Akrobat', sans-serif; font-size: 20px; font-weight: 900; color: #ffffff; margin-bottom: 24px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.footer-nav a { color: #94a3b8; text-decoration: none; font-size: 15px; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--brand-green); }

.footer-contacts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.footer-contacts li { display: flex; align-items: flex-start; gap: 12px; color: #94a3b8; font-size: 15px; line-height: 1.5; }
.footer-contacts svg { width: 20px; height: 20px; color: var(--brand-blue); flex-shrink: 0; margin-top: 2px; }
.contact-link { color: #f8fafc; text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.contact-link:hover { color: var(--brand-blue); }

.footer-bottom { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #64748b; font-size: 17px; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.footer-bottom p { margin: 0; }
.legal-links { display: flex; gap: 24px; }
.legal-links a { color: #64748b; text-decoration: none; transition: color 0.3s ease; }
.legal-links a:hover { color: #cbd5e1; }

.product-type-tab.is-active {
    background: var(--brand-blue) !important;
    color: #fff;
    border-color: var(--brand-blue);
}

/* ================= MOBILE MENU & HEADER TWEAKS ================= */

/* Приховуємо кнопку "Консультація" на маленьких екранах, щоб вліз логотип і бургер */
@media (max-width: 767px) {
    .d-none-mobile {
        display: none !important;
    }
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    justify-content: space-between;
    text-transform: uppercase;
}

/* Кнопка бургера */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text-main);
    z-index: 60;
    transition: color 0.3s;
}

.menu-toggle:hover {
    color: var(--brand-blue);
}

/* Ховаємо бургер на десктопі */
@media (min-width: 1280px) {
    .menu-toggle {
        display: none;
    }
}

/* Мобільна навігація (до 1280px) */
@media (max-width: 1279px) {
    .main-nav {
        /* Перевизначаємо display: none з попереднього CSS */
        display: flex; 
        position: fixed;
        top: 50px; /* Висота шапки */
        left: 0;
        width: 100%;
        height: calc(100vh - 50px);
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        gap: 1rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        border-top: 1px solid #e2e8f0;
    }

    /* Клас, який додає JS для відкриття меню */
    .main-nav.is-open {
        transform: translateX(0);
    }

    /* Адаптація дропдауну під мобільний "акордеон" */
    .dropdown-wrapper {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        width: 100%;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: none;
        padding-top: 16px;
        padding-left: 16px;
        display: none !important; /* JS буде перемикати цей стан */
    }

    .dropdown-wrapper.is-active .dropdown-menu {
        display: block !important;
    }

    .dropdown-wrapper.is-active .dropdown-trigger svg {
        transform: rotate(180deg);
    }

    .dropdown-content {
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--brand-blue);
        border-radius: 0;
        padding: 0 0 0 16px;
        gap: 16px;
    }
    
    .dropdown-content a {
        padding: 8px 0;
    }
}

/* ================= HEADER SOCIALS ================= */
.header-socials {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.header-soc-link {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--brand-blue); /* Іконка фірмового синього кольору */
    transition: all 0.3s ease;
}

.header-soc-link svg {
    width: 25px;
    height: 25px;
}

.header-soc-link:hover {
    /* background-color: var(--brand-blue);
    color: #ffffff; */
    transform: translateY(-2px);
    /* box-shadow: 0 4px 10px rgba(0, 102, 162, 0.2); */
}


/* Утиліти для тексту (якщо ще немає) */
.text-brand-blue { color: var(--brand-blue); }
.text-brand-green { color: var(--brand-green); }

/* ================= MAIN CATALOG LIST (CATEGORIES) ================= */
.catalog-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 1024px) {
    .catalog-list-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на десктопі, як на скріншоті */
        gap: 32px;
    }
}

/* --- Сама картка --- */
.catalog-item-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 24px;
}

.catalog-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.1);
    border-color: #e2e8f0;
}

/* Десктопний макет: Зображення зліва, Текст справа */
@media (min-width: 640px) {
    .catalog-item-card {
        flex-direction: row;
        align-items: center; /* Центруємо по вертикалі */
    }
}

/* --- Номер категорії (01, 02...) --- */
.catalog-item-num {
    position: absolute;
    top: 24px;
    left: 32px;
    font-size: 20px;
    font-weight: 800;
    opacity: 0.6; /* Напівпрозорий, як на скріншоті (там рожевий, у нас бренд-кольори) */
    z-index: 5;
}

/* --- Зображення --- */
.catalog-item-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-top: 24px; /* Відступ під номером на мобілці */
}

@media (min-width: 640px) {
    .catalog-item-img {
        width: 220px; /* Фіксована ширина зображення на десктопі */
        height: 220px;
        margin-top: 0;
    }
}

.catalog-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.catalog-item-card:hover .catalog-item-img img {
    transform: scale(1.05);
}

/* --- Текстовий контент --- */
.catalog-item-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-top: 8px;
}

.catalog-item-title {
    font-size: 26px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.catalog-item-card:hover .catalog-item-title {
    color: var(--brand-blue);
}

.catalog-item-desc {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* --- Кнопка (Як на макеті: пігулка з круглою іконкою) --- */
.catalog-item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 6px 6px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 100px; /* Робить кнопку повністю круглою по краях */
    width: fit-content;
    transition: all 0.3s ease;
}

.catalog-item-btn span {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f1f5f9;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

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

/* Ховер-ефект кнопки */
.catalog-item-card:hover .catalog-item-btn {
    border-color: var(--brand-blue);
}

.catalog-item-card:hover .catalog-item-btn span {
    color: var(--brand-blue);
}

.catalog-item-card:hover .btn-circle {
    background-color: var(--brand-blue);
    color: #ffffff;
}

.catalog-item-card:hover .btn-circle svg {
    transform: translateX(2px);
}

@media (max-width: 767px) {
    .catalog-grid .product-card:nth-child(4) {
        display: none;
    }
}

.case-card-image {
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 24px;
}

.case-main-image {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
}
@media (max-width: 767px) {
    .case-main-image {
        height: 220px;
    }
}

.case-single-image-wrap {
    border-radius: 24px;
    overflow: hidden;
}

.case-single-main-image {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: cover;
}

@media (max-width: 767px) {
    .case-single-main-image {
        height: 260px;
    }
}

/* ================= SIDE PANEL (OFF-CANVAS) ================= */
.side-panel-wrapper {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
}

/* Класс, который показывает панель */
.side-panel-wrapper.is-open {
    visibility: visible;
}

/* Темный фон с блюром */
.side-panel-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: pointer; /* Показывает, что можно кликнуть для закрытия */
}

.side-panel-wrapper.is-open .side-panel-overlay {
    opacity: 1;
}

/* Сама выезжающая панель */
.side-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 480px; /* Ширина панели */
    height: 100vh; /* На всю высоту экрана */
    background-color: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transform: translateX(100%); /* Изначально спрятана за правым краем */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-panel-wrapper.is-open .side-panel {
    transform: translateX(0); /* Выезжает на экран */
}

/* Кнопка закрытия */
.side-panel-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.side-panel-close:hover {
    background-color: #e2e8f0;
    color: var(--brand-blue);
    transform: rotate(90deg); /* Крутой эффект вращения при наведении */
}

.side-panel-close svg {
    width: 24px;
    height: 24px;
}

/* Контент внутри панели */
.side-panel-content {
    padding: 80px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (max-width: 640px) {
    .side-panel-content {
        padding: 80px 24px 32px 24px; /* На мобилке отступы поменьше */
    }
}

.side-panel-header {
    margin-bottom: 48px;
}

.side-panel-header h2 {
    font-size: 40px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.1;
}

.side-panel-header p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Номера телефонов */
.side-panel-contacts {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.sp-phone {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 32px; /* Огромные цифры, как в видео */
    font-weight: 800;
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

@media (max-width: 640px) {
    .sp-phone {
        font-size: 26px;
    }
}

.sp-phone svg {
    width: 32px;
    height: 32px;
    color: var(--brand-green);
    flex-shrink: 0;
}

.sp-phone:hover {
    color: var(--brand-green);
}

/* Мессенджеры */
.side-panel-socials p {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 16px;
    font-weight: 600;
}

.sp-social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sp-soc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sp-soc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 102, 162, 0.4);
}

.sp-soc-btn svg {
    width: 20px;
    height: 20px;
}

/* Оригинальные цвета мессенджеров для боковой панели */
.sp-viber {
    background-color: #7360f2; /* Фирменный фиолетовый Viber */
}

.sp-viber:hover {
    background-color: #5d4be6; /* Чуть темнее при наведении */
}

.sp-telegram {
    background-color: #2AABEE; /* Фирменный голубой Telegram */
}

.sp-telegram:hover {
    background-color: #229ED9; /* Чуть темнее при наведении */
}

/* ================= SIDEBAR CONTACT BOX ================= */
.sticky-contact-box {
    background-color: #f8fafc;
    padding: 40px 32px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.05);
}

.sidebar-contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.sidebar-contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--brand-blue);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.sidebar-contact-item:hover .contact-icon {
    border-color: var(--brand-blue);
    transform: scale(1.05);
}

.contact-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    transition: color 0.3s;
}

.sidebar-contact-item:hover .contact-value {
    color: var(--brand-blue);
}

/* Спеціальний стиль для головного телефону */
.main-phone .contact-icon {
    background-color: var(--brand-blue);
    color: #ffffff;
    border: none;
}

.main-phone .contact-value {
    font-size: 22px;
}

/* Месенджери */
.messengers-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.messenger-btns-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.m-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.m-btn svg {
    width: 18px;
    height: 18px;
}

.m-viber { background-color: #7360f2; }
.m-telegram { background-color: #2AABEE; }

.m-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.sidebar-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #cbd5e1;
    text-align: center;
}

.work-time {
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}


/* ================= STICKY CTA CARD CONTACTS ================= */
.cta-direct-contacts {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-phone-link {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cta-icon-box {
    width: 48px;
    height: 48px;
    background-color: var(--brand-green); /* Акцентний зелений для іконки слухавки */
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    flex-shrink: 0;
}

.cta-icon-box svg {
    width: 24px;
    height: 24px;
}

.cta-phone-link span {
    font-size: 24px;
    font-weight: 800;
}

.cta-phone-link:hover {
    transform: translateX(5px);
}

/* Месенджери всередині синьої картки */
.cta-messengers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cta-m-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-m-btn svg {
    width: 18px;
    height: 18px;
}

/* Використовуємо яскраві фірмові кольори месенджерів */
.cta-m-btn.viber { background-color: #7360f2; }
.cta-m-btn.telegram { background-color: #2AABEE; }

.cta-m-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
}

.cta-work-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 8px 0 0 0 !important;
}

/* ================= BOTTOM CTA SECTION ================= */
.cta-section {
    padding-bottom: 80px;
    background-color: #ffffff;
}

.cta-box {
    background-image: linear-gradient(135deg, var(--brand-blue) 0%, #1e3a8a 100%);
    border-radius: 24px;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    color: #ffffff;
    text-align: center;
    box-shadow: 0 20px 40px -15px rgba(0, 102, 162, 0.4);
}

/* Десктопна версія: розносимо текст і кнопки по краях */
@media (min-width: 1024px) {
    .cta-box {
        flex-direction: row;
        text-align: left;
        align-items: center;
        justify-content: space-between;
        padding: 60px 80px;
    }

    .cta-content {
        max-width: 55%;
    }
}

.cta-title {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #ffffff;
    line-height: 1.2;
}

.cta-desc {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-shrink: 0;
}

/* Планшети і десктопи: кнопки стають в один ряд */
@media (min-width: 768px) {
    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ================= ДИНАМИЧЕСКИЙ НОМЕР ТЕЛЕФОНА В CTA ================= */
.cta-phone-dynamic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-phone-dynamic svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* По умолчанию (мобилка): прячем сам номер, показываем текст "Зателефонувати" */
.cta-phone-dynamic .text-desktop { display: none; }
.cta-phone-dynamic .text-mobile { display: inline; }

.cta-phone-dynamic:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* На десктопе меняем дизайн: убираем рамку, увеличиваем шрифт и показываем цифры */
@media (min-width: 1024px) {
    .cta-actions {
        align-items: center; /* Центрируем элементы по вертикали */
    }

    .cta-phone-dynamic {
        border-color: transparent;
        background-color: transparent;
        padding: 16px 24px 16px 24px; /* Убираем левый отступ, чтобы иконка была вровень с текстом выше */
        font-size: 26px; /* Огромный и читабельный номер */
        font-weight: 800;
    }
    
    .cta-phone-dynamic svg {
        width: 26px;
        height: 26px;
    }

    /* Меняем текст */
    .cta-phone-dynamic .text-desktop { display: inline; }
    .cta-phone-dynamic .text-mobile { display: none; }

    /* Крутой hover эффект без рамки */
    .cta-phone-dynamic:hover {
        background-color: transparent;
        transform: translateY(-2px);
        color: var(--brand-green); /* Цифры красиво подсвечиваются салатовым при наведении */
    }
}

@media (max-width: 1279px) {
    /* 1. Робимо плавний Grid-акордеон замість display: none */
    .dropdown-menu {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;
        padding: 0; /* ВАЖЛИВО: не можна давати вертикальні відступи сюди */
    }

    .dropdown-wrapper.is-active .dropdown-menu {
        grid-template-rows: 1fr;
    }

    /* 2. Ховаємо контент, який вилазить за межі 0 висоти */
    .dropdown-content {
        overflow: hidden;
        border-left: 2px solid var(--brand-blue);
        padding: 0 0 0 16px;
        margin-left: 8px; /* Трохи зсуваємо лінію вправо */
        display: flex;
        flex-direction: column;
    }

    /* 3. Додаємо відступи самим посиланням, щоб зберегти простір, не ламаючи анімацію */
    .dropdown-content a {
        padding: 10px 0;
        font-size: 15px;
        color: #475569;
    }

    .dropdown-content a:first-child {
        margin-top: 12px; /* Відступ від заголовка зверху */
    }

    .dropdown-content a:last-child {
        margin-bottom: 12px; /* Відступ знизу */
    }

    /* Анімація стрілочки */
    .dropdown-trigger svg {
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .dropdown-wrapper.is-active .dropdown-trigger svg {
        transform: rotate(180deg);
        color: var(--brand-blue);
    }
}

