/*!
Theme Name: best in hamilton
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
*/
/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    /* Fonts */
    --font-primary: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Colors */
    --primary-color: #3B82F6;
    --secondary-color: #10B981;
    --accent-pink: #f88286;
    --accent-purple: #ef94d2;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --text-blue: #3e6485;
    --text-light-cream: #fff7c5;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
    --gradient-title-line: linear-gradient(268deg, #6db6f0 0%, #318fdb 100%);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 5rem;

    /* Container */
    --container-max: 1320px;
    --container-padding: 1rem;

    /* Font Sizes */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-base: 16px;
    --font-md: 17px;
    --font-lg: 1.5rem;
    --font-xl: 2.5rem;
    --font-2xl: 3rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-navbar: 1000;
    --z-dropdown: 1001;
}

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

html {
    overflow-x: hidden; /* Убираем горизонтальную прокрутку */
}

body {
    font-family: var(--font-secondary); /* Open Sans - основной шрифт */
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Скрываем горизонтальную прокрутку от анимированных кругов */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary); /* Montserrat - только заголовки */
}

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

ul {
    list-style: none;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: var(--z-navbar);
}

/* Navbar при скролле - усиленная тень + backdrop blur */
.navbar.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================
   LOGO
   ============================================ */
.logo-text {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-normal);
}

.logo-text:hover {
    transform: scale(1.05);
}

/* ============================================
   MOBILE MENU TOGGLE
   ============================================ */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    background: none;
    border: 2px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.nav-toggle:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    transform: scale(1.05);
}

.nav-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.nav-toggle-icon {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
}

/* Анимация burger → X */
.nav-toggle.active .nav-toggle-icon:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-icon:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-icon:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   NAVIGATION MENU
   ============================================ */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Толкаем меню вправо (как ms-auto в Bootstrap) */
.navbar-nav {
    margin-left: auto;
}

.nav-item {
    position: relative;
    margin: 0 0.5rem;
}

.nav-link {
    display: block;
    font-family: var(--font-primary); /* Montserrat - меню */
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.875rem 0.75rem;
    position: relative;
    transition: color var(--transition-normal);
    letter-spacing: 0.01em;
}

/* Градиентная линия снизу при hover */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Активный пункт меню */
.nav-link.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Dropdown icon */
.dropdown-icon {
    display: inline-block;
    margin-left: 0.25rem;
    transition: transform var(--transition-normal);
}

.nav-item-dropdown.active .dropdown-icon {
    transform: rotate(180deg);
}

/* ============================================
   DROPDOWN MENU - DESKTOP (ACCORDION STYLE)
   ============================================ */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    padding: 0;
    margin-top: 0.5rem;
    min-width: 200px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--transition-normal), opacity var(--transition-normal), padding var(--transition-normal);
    z-index: var(--z-dropdown);
}

.nav-item-dropdown.active .dropdown-menu {
    max-height: 400px;
    opacity: 1;
    padding: 0.5rem 0;
}

.dropdown-link {
    display: block;
    font-family: var(--font-primary);
    font-size: var(--font-sm);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    position: relative;
    transition: all var(--transition-fast);
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.dropdown-link:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: var(--primary-color);
    padding-left: 1.75rem;
}

.dropdown-link:hover::before {
    transform: scaleY(1);
}

/* ============================================
   CTA BUTTON
   ============================================ */
.cta-nav-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    color: white;
    font-family: var(--font-primary);
    font-size: var(--font-sm);
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    transition: all var(--transition-normal);
}

.cta-nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
    color: white;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    /* Show mobile toggle */
    .nav-toggle {
        display: flex;
    }

    /* Mobile menu */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all var(--transition-normal);
    }

    .nav-menu.active {
        max-height: 500px;
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        padding: 0 var(--container-padding);
    }

    .nav-item {
        margin: 0.25rem 0;
    }

    .nav-link {
        padding: 0.875rem 1rem;
        border-radius: 8px;
    }

    .nav-link:hover {
        background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    }

    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin: 0;
        padding: 0 0 0 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-normal);
    }

    .nav-item-dropdown.active .dropdown-menu {
        max-height: 300px;
    }

    .dropdown-link {
        padding: 0.75rem 1rem;
    }

    /* CTA button */
    .cta-nav-button {
        margin: 1rem var(--container-padding);
        text-align: center;
    }
}

/* ============================================
   TABLET RESPONSIVE
   ============================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   SECTION COMMON STYLES (для всех секций сайта)
   ============================================ */

/* Pre-title - маленький бейдж над заголовком */
.section-pretitle {
    display: block;
    width: fit-content;
    margin: 0 auto 20px auto;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    color: var(--bg-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main title - большой заголовок секции */
.section-title {
    position: relative;
    display: inline-block;
    font-weight: 600;
    font-size: var(--font-xl);
    color: var(--text-blue);
}

/* Линия под заголовком */
.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: var(--gradient-title-line);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Accent word - выделенное слово в заголовке */
.section-title .accent-word {
    background-color: var(--text-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Text center wrapper для заголовков */
.text-center {
    text-align: center;
}

/* Margin bottom utility */
.mb-5 {
    margin-bottom: var(--spacing-2xl);
}

/* Padding Y utility для секций */
main.py-5 {
    padding-top: var(--spacing-3xl);
    padding-bottom: 3rem;
}

.py-5 {
    padding-top: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
}

/* Background light */
.bg-light {
    background-color: var(--bg-light);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    background: var(--gradient-primary);
    padding: 10rem 0 5rem 0; /* ~5rem navbar + 4rem отступ = 9rem сверху */
    text-align: center;
    overflow: hidden; /* Убираем горизонтальную прокрутку от анимированных кругов */
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Анимированные круги по бокам */
.hero-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    bottom: -150px;
    right: -150px;
    animation: float 10s ease-in-out infinite reverse;
    z-index: 0;
}

/* Анимация плавания */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
}

.hero-title {
    /* font-family наследуется от h1 → Montserrat */
    font-weight: 600;
    font-size: 3rem;
    letter-spacing: -0.025em;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    /* font-family наследуется от body → Open Sans */
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Статистика */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 150px;
}

.stat-number {
    /* font-family наследуется от body → Open Sans */
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--text-light-cream);
    line-height: 1.2;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-label {
    /* font-family наследуется от body → Open Sans */
    font-size: 1.1rem;
    color: var(--text-light-cream);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
}

.stat-icon svg {
    width: 56px;
    height: 56px;
    color: var(--text-light-cream);
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.stat-item:hover .stat-icon svg {
    transform: scale(1.15) translateY(-3px);
    opacity: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

/* Hero responsive */
@media (max-width: 992px) {
    .hero-section {
        min-height: 550px;
        padding: 9rem 0 4rem 0; /* Tablet */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 50px;
    }

    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 500px;
        padding: 8rem 0 3.5rem 0; /* Mobile */
    }

    .hero-content {
        padding: 0 1rem; /* Убираем вертикальные отступы, они в hero-section */
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-item {
        min-width: 100px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-label {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .stat-icon svg {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 450px;
        padding: 7rem 0 3rem 0; /* Small Mobile */
    }

    .hero-content {
        padding: 0 1rem; /* Убираем вертикальные отступы, они в hero-section */
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-stats {
        gap: 25px;
    }

    .stat-item {
        min-width: 80px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .stat-icon svg {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   HERO GRADIENTS FOR RATING PAGES
   ============================================ */
/* Градиенты для hero-секції рейтингів (по категоріям) */
.hero-rating-1 {
    background: linear-gradient(135deg, #ffeaa7 0%, #eac147 100%);
}

.hero-rating-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.hero-rating-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00a6ae 100%);
}

.hero-rating-4 {
    background: linear-gradient(135deg, #1fb050 0%, #22c2a6 100%);
}

.hero-rating-5 {
    background: linear-gradient(135deg, #fa709a 0%, #f0d542 100%);
}

.hero-rating-6 {
    background: linear-gradient(135deg, #00d3d5 0%, #5454c0 100%);
}

.hero-rating-7 {
    background: linear-gradient(135deg, #1fe2d9 0%, #0dcaf0 100%);
}

.hero-rating-8 {
    background: linear-gradient(135deg, #f88286 0%, #ef94d2 100%);
}

.hero-rating-9 {
    background: linear-gradient(135deg, #f5d09e 0%, #fcb69f 100%);
}

.hero-rating-10 {
    background: linear-gradient(135deg, #ff6e7f 0%, #f2389f 100%);
}

/* ============================================
   RATING PAGE STYLES
   ============================================ */

/* Lead paragraph - вступний текст */
.lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Rating Main Title - основний заголовок рейтингу */
.rating-main-title {
    display: inline-block;
    font-family: var(--font-primary); /* Montserrat */
    font-size: 2.5rem; /* --font-xl */
    font-weight: 600;
    color: var(--text-blue); /* #3e6485 */
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

/* Іконка зірки перед заголовком */
.rating-main-title::before {
    content: '⭐ ';
    font-size: 2.5rem; /* Такий самий як текст */
    line-height: 1.2; /* Такий самий як текст */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Лінія під заголовком (50% ширини, як у section-title) */
.rating-main-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: var(--gradient-title-line);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Grid System - Bootstrap-like */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
    align-items: flex-start;
}

.g-4 {
    gap: 1.5rem;
}

.col-lg-8 {
    flex: 0 0 auto;
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.col-lg-4 {
    flex: 0 0 auto;
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.col-md-6 {
    flex: 0 0 auto;
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.col-lg-3,
.col-md-4,
.col-lg-9,
.col-md-8 {
    flex: 0 0 auto;
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.col {
    flex: 1 0 0%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

@media (min-width: 576px) {
    .col-md-6 {
        width: 50%;
    }
}

@media (min-width: 768px) {
    .col-md-4 {
        width: 33.333333%;
    }

    .col-md-8 {
        width: 66.666667%;
    }
}

@media (min-width: 992px) {
    .col-lg-8 {
        width: 66.666667%;
    }

    .col-lg-4 {
        width: 33.333333%;
    }

    .col-lg-3 {
        width: 25%;
    }

    .col-lg-9 {
        width: 75%;
    }
}

/* Service Card - карточка компанії */
.service-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    margin-bottom: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Card Variants - різні фони для візуального відрізнення клінік */
.card-variant-1 {
    background: var(--bg-white);
}

.card-variant-2 {
    background: var(--bg-white);
}

.card-variant-3 {
    background: var(--bg-white);
}

.card-variant-4 {
    background: var(--bg-white);
}

.card-variant-5 {
    background: var(--bg-white);
}

.card-variant-6 {
    background: var(--bg-white);
}

.card-variant-7 {
    background: var(--bg-white);
}

.card-variant-8 {
    background: var(--bg-white);
}

.card-variant-9 {
    background: var(--bg-white);
}

.card-variant-10 {
    background: var(--bg-white);
}

/* Card Header */
.card-header {
    padding: 20px 25px;
    background-color: #abfaef;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1f2937;
}

/* Градієнтні заголовки для service-card */
.card-variant-1 .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.card-variant-1 .card-title {
    color: white;
}

.card-variant-2 .card-header {
    background: linear-gradient(135deg, #f88286 0%, #f5576c 100%);
    color: white;
    color: white;
}

.card-variant-2 .card-title {
    color: white;
}

.card-variant-3 .card-header {
    background: linear-gradient(135deg, #4facfe 0%, #3b82f6 100%);
    color: white;
}

.card-variant-3 .card-title {
    color: white;
}

.card-variant-4 .card-header {
    background: linear-gradient(135deg, #10b981 0%, #21c58e 100%);
    color: white;
}

.card-variant-4 .card-title {
    color: white;
}

.card-variant-5 .card-header {
    background: linear-gradient(135deg, #fa709a 0%, #f88286 100%);
    color: white;
}

.card-variant-5 .card-title {
    color: white;
}

.card-variant-6 .card-header {
    background: linear-gradient(281deg, #087fd8 0%, #0943a1 100%);
    color: white;
}

.card-variant-6 .card-title {
    color: white;
}

.card-variant-7 .card-header {
    background: linear-gradient(135deg, #0a8d87 0%, #10b981 100%);
    color: white;
}

.card-variant-7 .card-title {
    color: white;
}

.card-variant-8 .card-header {
    background: linear-gradient(135deg, #ed7378 0%, #f25dc2 100%);
    color: white;
}

.card-variant-8 .card-title {
    color: white;
}

.card-variant-9 .card-header {
    background: linear-gradient(135deg, #f88286 0%, #ef7148 100%);
    color: white;
}

.card-variant-9 .card-title {
    color: white;
}

.card-variant-10 .card-header {
    background: linear-gradient(135deg, #10b981 0%, #1aa4ed 100%);
    color: white;
}

.card-variant-10 .card-title {
    color: white;
}

/* Card Content */
.card-content {
    padding: 25px;
}

/* Info Wrapper - лого + контакти */
.info-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 25px;
}

/* Company Logo */
.company-logo {
    flex-shrink: 0;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px;
    box-sizing: border-box;
}

.company-logo-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform var(--transition-normal);
    display: block;
}

.company-logo-img:hover {
    transform: scale(1.05);
}

/* Contact Info */
.contact-info {
    flex-grow: 1;
    min-width: 0;
}

.contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contacts-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    line-height: 1.6;
}

.contacts-list li:last-child {
    border-bottom: none;
}

.contacts-list strong {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 130px;
    display: inline-block;
}

/* Description */
.description {
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    margin-bottom: 25px;
}

.services-section h4,
.advantages-section h4,
.reviews-section h4,
.prices-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1f2937;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #10b981;
}

/* Prices Section */
.prices-section {
    margin-bottom: 25px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 10px;
}

/* Базовий стиль для таблиць */
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #1f2937;
    vertical-align: top;
    border-color: #f0f0f0;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
}

.price-table thead {
    background-color: rgba(59, 130, 246, 0.1);
}

.price-table th,
.price-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.price-table th {
    font-weight: 600;
    color: #1f2937;
    font-size: 16px;
}

.price-table td {
    color: #1f2937;
    font-size: 16px;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

.price-table tbody tr:hover {
    background-color: #f9fafb;
}

/* Price table thead colors для кожного варіанту */
.card-variant-1 .price-table thead {
    background-color: rgba(59, 130, 246, 0.1);
}

.card-variant-2 .price-table thead {
    background-color: rgba(16, 185, 129, 0.1);
}

.card-variant-3 .price-table thead {
    background-color: rgba(245, 158, 11, 0.1);
}

.card-variant-4 .price-table thead {
    background-color: rgba(67, 233, 123, 0.1);
}

.card-variant-5 .price-table thead {
    background-color: rgba(250, 112, 154, 0.1);
}

.card-variant-6 .price-table thead {
    background-color: rgba(48, 207, 208, 0.1);
}

.card-variant-7 .price-table thead {
    background-color: rgba(168, 237, 234, 0.1);
}

.card-variant-8 .price-table thead {
    background-color: rgba(255, 154, 158, 0.1);
}

.card-variant-9 .price-table thead {
    background-color: rgba(255, 236, 210, 0.1);
}

.card-variant-10 .price-table thead {
    background-color: rgba(255, 110, 127, 0.1);
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 10px;
    font-style: italic;
}

/* Reviews Section */
.reviews-section {
    margin-bottom: 25px;
}

.clinic-reviews-wrapper {
    position: relative;
}

.review-card {
    background-color: var(--bg-white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.review-card:last-child {
    margin-bottom: 0;
}

/* Перший відгук з fade-ефектом */
.review-card.first-review {
    position: relative;
    margin-bottom: 0;
}

/* Hidden reviews - спочатку сховані */
.hidden-reviews {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.hidden-reviews.show {
    max-height: 5000px; /* Велике значення для анімації */
    opacity: 1;
    margin-top: 15px;
}

/* Fade-ефект знизу першого відгуку */
.reviews-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 70%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
    border-radius: 0 0 10px 10px;
    transition: opacity 0.3s ease;
}

.reviews-fade.hidden {
    opacity: 0;
}

/* Контейнер для кнопки */
.reviews-fade-container {
    text-align: center;
    margin-top: 15px;
}

/* Кнопка розгортання відгуків */
.toggle-reviews-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.toggle-reviews-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.toggle-reviews-btn .icon {
    display: inline-block;
    transition: transform var(--transition-normal);
    font-size: 14px;
}

.toggle-reviews-btn.expanded .icon {
    /* Символ міняється в JS (▼ → ▲), rotate не потрібен */
}

.review-text {
    font-style: italic;
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    color: #4b5563;
    line-height: 1.6;
}

.review-text::before {
    content: '"';
    font-size: 40px;
    position: absolute;
    left: 0;
    top: -10px;
    opacity: 0.3;
    color: var(--primary-color);
}

.review-author {
    text-align: right;
    font-weight: 600;
    margin-bottom: 0;
    font-size: 14px;
}

/* Review author colors для кожного варіанту */
.card-variant-1 .review-author {
    color: #3B82F6;
}

.card-variant-2 .review-author {
    color: #10B981;
}

.card-variant-3 .review-author {
    color: #F59E0B;
}

.card-variant-4 .review-author {
    color: #43e97b;
}

.card-variant-5 .review-author {
    color: #fa709a;
}

.card-variant-6 .review-author {
    color: #30cfd0;
}

.card-variant-7 .review-author {
    color: #a8edea;
}

.card-variant-8 .review-author {
    color: #ff9a9e;
}

.card-variant-9 .review-author {
    color: #ffecd2;
}

.card-variant-10 .review-author {
    color: #ff6e7f;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .info-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .company-logo {
        margin: 0 auto;
    }

    .contact-info {
        text-align: left;
    }

    .lead {
        font-size: 1rem;
    }

    .rating-main-title {
        font-size: 1.75rem;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .rating-main-title::before {
        font-size: 1.5rem; /* Менша іконка для мобільних */
    }

    .card-title {
        font-size: 1.25rem;
    }
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */

/* Section Pretitle - розовый бейдж над заголовком */
.section-pretitle {
    display: block;
    width: fit-content;
    margin: 0 auto 12px auto;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    color: var(--bg-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Title - основной заголовок секции */
.section-title {
    position: relative;
    display: inline-block;
    font-weight: 600;
    font-size: var(--font-xl);
    color: var(--text-blue);
}

/* Линия под заголовком */
.section-title::after {
    content: '';
    display: block;
    width: 50%;
    height: 4px;
    background: var(--gradient-title-line);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

/* Accent word - выделенное слово в заголовке */
.section-title .accent-word {
    background-color: var(--text-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Categories Grid - сетка категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Category Card - карточка категории */
.category-card {
    position: relative;
    padding: 35px 30px;
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Category Icon - эмодзи иконка */
.category-icon {
    font-size: 56px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    /* Fix CLS - фиксированные размеры для иконок */
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Category Title - название категории */
.category-title {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

/* Category Description - описание категории */
.category-desc {
    font-family: var(--font-secondary);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    flex-grow: 1;
}

/* Category Arrow - стрелка при hover */
.category-arrow {
    position: absolute;
    bottom: 20px;
    right: 25px;
    font-size: 28px;
    color: white;
    opacity: 0;
    transform: translateX(-10px);
    transition: all var(--transition-normal);
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Градиенты для каждой категории */
.category-card-1 {
    background: linear-gradient(135deg, #ffeaa7 0%, #eac147 100%);
}

.category-card-2 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.category-card-3 {
    background: linear-gradient(135deg, #4facfe 0%, #00a6ae 100%);
}

.category-card-4 {
    background: linear-gradient(135deg, #1fb050 0%, #22c2a6 100%);
}

.category-card-5 {
    background: linear-gradient(135deg, #fa709a 0%, #f0d542 100%);
}

.category-card-6 {
    background: linear-gradient(135deg, #00d3d5 0%, #5454c0 100%);
}

.category-card-7 {
    background: linear-gradient(135deg, #1fe2d9 0%, #0dcaf0 100%);
}

.category-card-8 {
    background: linear-gradient(135deg, #f88286 0%, #ef94d2 100%);
}

.category-card-9 {
    background: linear-gradient(135deg, #f5d09e 0%, #fcb69f 100%);
}

.category-card-10 {
    background: linear-gradient(135deg, #ff6e7f 0%, #f2389f 100%);
}

.category-card-11 {
    background: linear-gradient(135deg, #89e5cb 0%, #73b5be 100%);
}

.category-card-12 {
    background: linear-gradient(135deg, #f7aee5 0%, #ddbaea 100%);
}

/* Categories Grid - адаптив для tablet */
@media (max-width: 991px) and (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* Categories Grid - адаптив для mobile */
@media (max-width: 767px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .category-card {
        padding: 25px 20px;
    }

    .category-icon {
        font-size: 48px;
        width: 48px;
        height: 48px;
    }

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

    .category-desc {
        font-size: 14px;
    }
}

/* Very small screens - 1 column */
@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CTA SECTION (Хочете співпрацювати?)
   ============================================ */

.cta-card {
    background: var(--gradient-primary);
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Пульсирующий эффект на фоне */
.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-text {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 16px 50px;
    background: white;
    color: var(--primary-color);
    font-family: var(--font-secondary); /* Open Sans - обычный текст кнопки */
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
    color: var(--primary-color);
    text-decoration: none;
}

/* CTA Section - адаптив для tablet */
@media (max-width: 768px) {
    .cta-card {
        padding: 40px 25px;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-button {
        padding: 14px 35px;
        font-size: 1rem;
    }
}

/* CTA Section - адаптив для mobile */
@media (max-width: 576px) {
    .cta-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   POPULAR PAGES SECTION (Популярні рейтинги)
   ============================================ */

/* Popular Pages Section - градиентный фон + анимированный шарик */
#popular-pages {
    position: relative;
    background: linear-gradient(135deg, rgb(254, 248, 241) 0%, rgb(240, 253, 244) 100%);
    overflow-x: hidden; /* Убираем горизонтальную прокрутку от шарика */
}

/* Анимированный шарик сбоку */
#popular-pages::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    right: -150px;
    transform: translateY(-50%);
    animation: floatSlow 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    50% {
        transform: translateY(-50%) translateX(-30px);
    }
}

/* Popular Pages Grid */
.popular-pages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Popular Page Card */
.popular-page-card {
    display: block;
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-normal);
    text-decoration: none;
    height: 100%;
}

.popular-page-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

/* Popular Page Image */
.popular-page-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: var(--bg-light);
}

.popular-page-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.popular-page-card:hover .popular-page-image img {
    transform: scale(1.08);
}

/* Popular Page Content */
.popular-page-content {
    padding: 25px;
    background: var(--bg-white);
}

/* Category Badge - розовый градиентный бейдж */
.category-badge {
    display: block;
    width: fit-content;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-purple) 100%);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-normal);
}

.popular-page-card:hover .category-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 130, 134, 0.35);
}

/* Popular Page Title */
.popular-page-title {
    font-family: var(--font-primary);
    font-size: 19px;
    font-weight: 600;
    color: var(--text-blue);
    margin: 0;
    line-height: 1.5;
    transition: color var(--transition-normal);
}

.popular-page-card:hover .popular-page-title {
    color: var(--secondary-color);
}

/* Popular Page Divider - горизонтальная линия */
.popular-page-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    margin: 15px 0;
}

/* Popular Page Meta - мета-информация */
.popular-page-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

/* Meta Item - иконка + текст */
.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 600;
}

.meta-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Popular Pages Grid - адаптив для tablet */
@media (max-width: 991px) {
    .popular-pages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .popular-page-image {
        height: 240px;
    }
}

/* Popular Pages Grid - адаптив для mobile */
@media (max-width: 767px) {
    .popular-pages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .popular-page-image {
        height: 220px;
    }

    .popular-page-content {
        padding: 20px;
    }

    .popular-page-title {
        font-size: 17px;
    }

    .meta-item {
        font-size: 13px;
    }

    .meta-item svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   RECENT POSTS SECTION (Останні публікації)
   ============================================ */

/* Recent Posts Grid */
.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Recent Post Card */
.recent-post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-dark);
    border-left: 4px solid transparent;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-normal);
    height: 100%;
}

.recent-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-left-width: 6px;
}

/* Recent Post Category - цветной бейдж */
.recent-post-category {
    display: inline-block;
    /* Цвет задается inline для каждой категории */
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    width: fit-content;
}

/* Recent Post Title */
.recent-post-title {
    font-family: var(--font-primary); /* Montserrat для заголовка */
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 auto 0;
    color: var(--text-gray);
    transition: color var(--transition-normal);
}

.recent-post-card:hover .recent-post-title {
    color: var(--primary-color);
}

/* Recent Post Divider */
.recent-post-divider {
    height: 2px;
    background: var(--gradient-primary);
    margin: 12px 0;
    opacity: 0.3;
    transition: opacity var(--transition-normal);
}

.recent-post-card:hover .recent-post-divider {
    opacity: 0.6;
}

/* Recent Post Meta */
.recent-post-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item-small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    font-family: var(--font-secondary);
    font-size: 13px;
    font-weight: 600;
}

.meta-item-small svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Recent Post Date */
.recent-post-date {
    font-family: var(--font-secondary);
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 12px;
    font-weight: 500;
}

/* Recent Posts Grid - адаптив для tablet */
@media (max-width: 992px) {
    .recent-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .recent-post-card {
        padding: 18px;
    }

    .recent-post-title {
        font-size: 15px;
    }
}

/* Recent Posts Grid - адаптив для tablet small */
@media (max-width: 768px) {
    .recent-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .recent-post-card {
        padding: 16px;
    }

    .recent-post-title {
        font-size: 14px;
    }

    .recent-post-category {
        font-size: 10px;
        padding: 4px 10px;
    }

    .recent-post-date {
        font-size: 12px;
    }
}

/* Recent Posts Grid - адаптив для mobile */
@media (max-width: 576px) {
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   ABOUT SECTION (Про проєкт)
   ============================================ */

.about-content {
    display: flex;
    justify-content: center;
}

.team-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-left: 6px solid var(--primary-color);
    transition: all var(--transition-normal);
    max-width: 800px;
    width: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-left-color: var(--secondary-color);
}

.team-text {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4b5563;
    margin: 0;
    text-align: center;
}

/* About Section - адаптив для tablet */
@media (max-width: 768px) {
    .team-card {
        padding: 35px 25px;
    }

    .team-text {
        font-size: 1rem;
    }
}

/* ============================================
   LEGAL PAGES (Privacy, Terms, etc.)
   ============================================ */

.legal-content {
    display: flex;
    justify-content: center;
}

.legal-content .team-card {
    max-width: 900px;
}

.legal-text {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
    text-align: left;
}

.legal-text h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.legal-text h2:first-child {
    margin-top: 0;
}

.legal-text h3 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 0.75rem 0;
}

.legal-text p {
    margin: 0 0 1rem 0;
}

.legal-text ul,
.legal-text ol {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

.legal-text strong {
    color: var(--text-dark);
    font-weight: 600;
}

.legal-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-text a:hover {
    color: var(--secondary-color);
}

/* Hero for pages */
.hero-section-page {
    padding: 80px 0 60px;
}

.hero-section-page .hero-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-section-page .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .legal-content .team-card {
        padding: 30px 20px;
    }

    .legal-text h2 {
        font-size: 1.3rem;
    }

    .hero-section-page .hero-title {
        font-size: 2rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e5e5e5;
    padding: 60px 0 0 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Левая колонка - Логотип и описание */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: var(--font-primary); /* Montserrat */
    font-weight: 700;
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
    transition: all var(--transition-normal);
}

.footer-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.footer-description {
    font-family: var(--font-secondary);
    font-size: 15px;
    line-height: 1.7;
    color: #b0b0b0;
    margin: 0;
    max-width: 280px;
}

/* Правая часть - Меню колонки */
.footer-menus {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 35px;
}

.footer-menu-column {
    display: flex;
    flex-direction: column;
}

.footer-menu-title {
    font-family: var(--font-primary); /* Montserrat */
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 12px;
}

.footer-menu-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-menu-list li a {
    font-family: var(--font-secondary);
    color: #b0b0b0;
    text-decoration: none;
    font-size: 14px;
    transition: all var(--transition-normal);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-menu-list li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all var(--transition-normal);
    color: var(--primary-color);
}

.footer-menu-list li a:hover {
    color: white;
    padding-left: 20px;
    transform: translateX(5px);
}

.footer-menu-list li a:hover::before {
    opacity: 1;
    left: 0;
}

/* Disclaimer */
.footer-disclaimer {
    padding-top: 25px;
    padding-bottom: 15px;
    text-align: center;
}

.footer-disclaimer p {
    font-family: var(--font-secondary);
    font-size: 13px;
    line-height: 1.5;
    color: #7d8494;
    max-width: 650px;
    margin: 0 auto;
}

/* Copyright */
.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-copyright {
    font-family: var(--font-secondary);
    font-size: 14px;
    color: #b0b0b0;
    margin: 0;
}

/* Footer - адаптив для large tablet */
@media (max-width: 1200px) {
    .footer-menus {
        gap: 25px;
    }
}

/* Footer - адаптив для tablet */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-menus {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-description {
        max-width: 100%;
    }
}

/* Footer - адаптив для mobile */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0 0;
        margin-top: 60px;
    }

    .footer-content {
        gap: 30px;
        padding-bottom: 30px;
    }

    .footer-menus {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-description {
        font-size: 14px;
    }

    .footer-menu-title {
        font-size: 15px;
        margin-bottom: 15px;
    }

    .footer-menu-list {
        gap: 10px;
    }

    .footer-menu-list li a {
        font-size: 13px;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-copyright {
        font-size: 13px;
    }
}

/* ============================================
   CATEGORY PAGE STYLES
   ============================================ */

/* Hero Stats для страницы категории (без чисел) */
.hero-stats-category .stat-item {
    gap: 16px;
}

.hero-stats-category .stat-label {
    order: 1;
    margin-bottom: 0;
    font-size: 1rem;
}

.hero-stats-category .stat-icon {
    order: 2;
}

.hero-stats-category .stat-icon svg {
    width: 48px;
    height: 48px;
}

/* Breadcrumbs */
.hero-breadcrumbs {
    margin-top: 2.5rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-normal);
    position: relative;
}

.breadcrumb-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.6);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.breadcrumb-item a:hover {
    color: var(--text-light-cream);
}

.breadcrumb-item a:hover::after {
    transform: scaleX(1);
}

.breadcrumb-item.active {
    color: var(--text-light-cream);
    font-weight: 600;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    user-select: none;
}

/* Breadcrumbs responsive */
@media (max-width: 768px) {
    .hero-breadcrumbs {
        margin-top: 2rem;
    }

    .breadcrumb-item {
        font-size: 0.875rem;
    }

    .hero-stats-category .stat-label {
        font-size: 0.9rem;
    }

    .hero-stats-category .stat-icon svg {
        width: 40px;
        height: 40px;
    }
}

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

/* Mission Section */
.mission-wrapper {
    display: flex;
    justify-content: center;
}

.mission-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-left: 6px solid var(--primary-color);
    transition: all var(--transition-normal);
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-left-color: var(--secondary-color);
}

.mission-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.mission-text {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #4b5563;
    margin: 0;
}

@media (max-width: 768px) {
    .mission-card {
        padding: 35px 25px;
    }

    .mission-icon {
        font-size: 3rem;
    }

    .mission-text {
        font-size: 1rem;
    }
}

/* About Page Grid Systems */
.about-grid-3,
.about-grid-4 {
    display: grid;
    gap: 30px;
}

.about-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.about-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* About Cards */
.about-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all var(--transition-normal);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.about-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.about-card-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 1rem 0;
    line-height: 1.4;
}

.about-card-text {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

/* Process Numbers */
.process-number {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}

/* Contact Info Card */
.contact-info-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-left: 6px solid var(--primary-color);
    transition: all var(--transition-normal);
    max-width: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-left-color: var(--secondary-color);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.contact-value {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

.contact-value a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.contact-value a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-info-card {
        padding: 35px 25px;
        gap: 25px;
    }

    .contact-icon {
        font-size: 2rem;
    }

    .contact-label {
        font-size: 1.05rem;
    }

    .contact-value {
        font-size: 1rem;
    }

    .contact-item {
        gap: 15px;
    }
}

/* About Page Responsive */
@media (max-width: 992px) {
    .about-grid-3,
    .about-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .about-card {
        padding: 30px 25px;
    }

    .about-icon {
        font-size: 3rem;
    }

    .about-card-title {
        font-size: 1.15rem;
    }

    .process-number {
        font-size: 3rem;
    }
}

@media (max-width: 576px) {
    .about-grid-3,
    .about-grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-card {
        padding: 25px 20px;
    }

    .about-icon {
        font-size: 2.5rem;
    }

    .about-card-title {
        font-size: 1.1rem;
    }

    .about-card-text {
        font-size: 0.95rem;
    }

    .process-number {
        font-size: 2.5rem;
    }
}

/* ============================================
   404 PAGE STYLES
   ============================================ */

.error-404-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.error-404-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.error-404-hero .container {
    position: relative;
    z-index: 1;
}

/* 404 Number */
.error-404-number {
    font-family: var(--font-secondary); /* Open Sans - тонший шрифт */
    font-size: 180px;
    font-weight: 600; 
    line-height: 1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float404 3s ease-in-out infinite;
}

@keyframes float404 {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.error-404-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.error-404-text {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem 0;
}

@media (max-width: 768px) {
    .error-404-number {
        font-size: 120px;
    }

    .error-404-hero {
        padding: 80px 0 60px;
    }

    .error-404-title {
        font-size: 2.5rem;
    }

    .error-404-text {
        font-size: 1.125rem;
    }
}

/* ============================================
   INFO SECTION (How to Choose)
   ============================================ */
.info-section-wrapper {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 3rem 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.info-section-wrapper .section-title {
    margin-bottom: 2rem;
}

.info-section-wrapper p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.list-unstyled {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.list-unstyled li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.info-card {
    background: var(--bg-white);
    border-radius: 8px;
    padding: 1.75rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
    border-color: var(--secondary-color);
}

.info-card h3 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--text-blue);
    margin-bottom: 1rem;
}

.info-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
}

/* Utility Classes */
.h-100 {
    height: 100%;
}

.h5 {
    font-size: 1.25rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 2.5rem;
}

.align-items-center {
    align-items: center;
}

/* Grid для info-section карточек */
.info-section-wrapper .row .col-md-6 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 576px) {
    .info-section-wrapper .row .col-md-6 {
        width: calc(50% - 0.75rem);
    }
}

/* Responsive для info-section */
@media (max-width: 768px) {
    .info-section-wrapper {
        padding: 2rem 1.5rem;
    }

    .info-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .info-section-wrapper {
        padding: 1.5rem 1rem;
    }

    .info-section-wrapper .section-title {
        font-size: 1.5rem;
        word-wrap: break-word;
        max-width: 100%;
    }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    margin-top: 3rem;
    margin-bottom: 2.5rem;
}

.faq-section .section-title {
    margin-bottom: 2rem;
}

.faq-list {
    max-width: 100%;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-blue);
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color var(--transition-normal), color var(--transition-normal), padding var(--transition-normal);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question h3 {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    margin: 0;
    flex: 1;
}

.faq-question::after {
    content: '▼';
    font-size: 0.875rem;
    color: var(--primary-color);
    transition: transform var(--transition-normal);
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] .faq-question::after {
    transform: rotate(180deg);
}

.faq-item[open] .faq-question {
    background-color: rgba(59, 130, 246, 0.05);
    color: var(--primary-color);
    padding: 1rem 1.5rem;
}

.faq-answer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    animation: fadeIn 0.3s ease-in-out;
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

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

/* Responsive для FAQ */
@media (max-width: 768px) {
    .faq-question {
        font-size: 1rem;
        padding: 1rem 1.25rem;
    }

    .faq-item[open] .faq-question {
        padding: 0.875rem 1.25rem;
    }

    .faq-answer {
        padding: 0.875rem 1.25rem 1.25rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .faq-question {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }

    .faq-item[open] .faq-question {
        padding: 0.75rem 1rem;
    }

    .faq-answer {
        padding: 0.75rem 1rem 1rem 1rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }
}

/* ============================================
   AUTHOR PROFILE
   ============================================ */
.author-profile {
    background: linear-gradient(135deg, rgb(254, 248, 241) 0%, rgb(240, 253, 244) 100%);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    margin-top: 3rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.author-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.author-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.author-name {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-blue);
    margin-bottom: 0.5rem;
}

.author-position {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.author-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0;
}

.author-stat {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.author-bio {
    margin-bottom: 0;
}

.author-bio p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.author-methodology {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.author-methodology li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
}

.author-methodology li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive для Author Profile */
@media (max-width: 992px) {
    .author-profile {
        padding: 2rem 1.5rem;
    }

    .author-name {
        font-size: 1.5rem;
    }

    .author-position {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .author-profile {
        padding: 1.75rem 1.25rem;
    }

    .author-image {
        width: 120px;
        height: 120px;
    }

    .author-name {
        font-size: 1.35rem;
    }

    .author-stats {
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .author-profile {
        padding: 1.5rem 1rem;
    }

    .author-profile .row {
        flex-direction: column;
        text-align: center;
    }

    .author-image {
        width: 100px;
        height: 100px;
    }

    .author-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .author-name {
        font-size: 1.25rem;
    }

    .author-position {
        font-size: 0.95rem;
    }
}

/* ============================================
   RELATED POSTS
   ============================================ */
.related-posts {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-top: 3rem;
    margin-bottom: 0;
}

.related-posts .section-title {
    margin-bottom: 2rem;
}

.related-list {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: start;
}

.related-list li {
    position: relative;
    padding-left: 1.5rem;
    min-height: fit-content;
}

.related-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.related-list a {
    display: inline-block;
    color: var(--text-blue);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.6;
    transition: color var(--transition-normal);
}

.related-list a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive для Related Posts */
@media (max-width: 992px) {
    .related-posts {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .related-posts {
        padding: 1.75rem 1.25rem;
    }

    .related-list {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .related-posts {
        padding: 1.5rem 1rem;
    }
}

/* ============================================
   SIDEBAR
   ============================================ */
/* Sidebar parent positioning for JS sticky */
.row > .col-lg-4 {
    position: relative;
    align-self: stretch; /* Растягиваем колонку на всю высоту row для sticky */
}

/* Bootstrap-like sticky-top class */
.sticky-top {
    position: -webkit-sticky;
    position: sticky;
    z-index: 10;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.widget-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.widget-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-blue);
    margin: 0;
}

.widget-body {
    padding: 1.5rem;
}

/* TOC Navigation */
#toc-list {
    margin: 0;
}

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

.toc-item {
    margin-bottom: 0.75rem;
}

.toc-link {
    display: block;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.5rem 0.75rem;
    border-left: 3px solid transparent;
    transition: all var(--transition-normal);
}

.toc-link:hover {
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
    border-left-color: var(--primary-color);
}

.toc-link.active {
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* Recent Articles List */
.recent-articles-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-articles-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.recent-articles-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-articles-list a {
    color: var(--text-blue);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: color var(--transition-normal);
    display: block;
}

.recent-articles-list a:hover {
    color: var(--primary-color);
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-white);
}

.cta-widget .widget-body {
    padding: 2rem 1.5rem;
}


.cta-button {
    display: inline-block;
    background: var(--bg-white);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: var(--primary-color);
}

/* Responsive для Sidebar */
@media (max-width: 992px) {
    .sticky-top {
        position: static;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .widget-header {
        padding: 1rem 1.25rem;
    }

    .widget-body {
        padding: 1.25rem;
    }

    .cta-widget .widget-body {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 576px) {
    .widget-header {
        padding: 0.875rem 1rem;
    }

    .widget-body {
        padding: 1rem;
    }

    .cta-widget .widget-body {
        padding: 1.5rem 1rem;
    }

    .cta-title {
        font-size: 1.2rem;
    }
}

/* ============================================
   BREADCRUMBS SECTION (для рейтингових статей)
   ============================================ */
.breadcrumbs-section {
    background: #f4f4f4;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0;
}

.breadcrumbs-section .breadcrumb-list {
    display: flex;
    align-items: center;
    justify-content: center; /* Вирівнювання по центру */
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    color: #6c757d;
    gap: 0; /* Без gap, використовуємо margin в separator */
}

.breadcrumbs-section .breadcrumb-item {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 400;
    color: #6c757d;
}

.breadcrumbs-section .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color var(--transition-fast);
    position: relative;
}

.breadcrumbs-section .breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.breadcrumbs-section .breadcrumb-item.active {
    color: #495057;
    font-weight: 500;
}

.breadcrumbs-section .breadcrumb-separator {
    margin: 0 0.5rem;
    color: #adb5bd;
    user-select: none;
}

/* Responsive: на мобільних breadcrumbs компактніші */
@media (max-width: 768px) {
    .breadcrumbs-section {
        padding: 0.75rem 0;
    }

    .breadcrumbs-section .breadcrumb-list {
        font-size: 0.8125rem;
    }

    .breadcrumbs-section .breadcrumb-item {
        font-size: 0.8125rem;
    }

    .breadcrumbs-section .breadcrumb-separator {
        margin: 0 0.35rem;
    }
}

/* ============================================
   PROS & CONS SECTION
   ============================================ */
.pros-cons-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
}

.pros-cons-section .row {
    margin: 0 -12px;
}

.pros-cons-section .col-md-6 {
    padding: 0 12px;
}

.pros-title,
.cons-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pros-title {
    color: #059669;
}

.pros-title::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: #d1fae5;
    color: #059669;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
}

.cons-title {
    color: #d97706;
}

.cons-title::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: #fef3c7;
    color: #d97706;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
}

.pros-list,
.cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-list li,
.cons-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.pros-list li:last-child,
.cons-list li:last-child {
    margin-bottom: 0;
}

.pros-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    color: #10b981;
    font-weight: bold;
    font-size: 14px;
}

.cons-list li::before {
    content: '•';
    position: absolute;
    left: 6px;
    top: 0;
    color: #f59e0b;
    font-weight: bold;
    font-size: 18px;
}

@media (max-width: 767px) {
    .pros-cons-section {
        padding: 20px 16px;
    }

    .pros-cons-section .col-md-6:first-child {
        margin-bottom: 24px;
    }
}

/* ============================================
   AMENITIES SECTION
   ============================================ */
.amenities-section {
    margin: 28px 0;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.amenities-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.amenities-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.amenity-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 34px;
    cursor: help;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.amenity-icon:hover {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

/* Amenities expandable block */
.amenities-details {
    width: 100%;
}

.amenities-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.25s ease;
}

.amenities-toggle:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
}

.amenities-toggle::after {
    content: '▼';
    font-size: 10px;
    transition: transform 0.25s ease;
    color: var(--text-gray);
}

.amenities-details[open] .amenities-toggle::after {
    transform: rotate(180deg);
}

.amenities-content {
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Grid layout for amenities groups */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.amenities-group {
    background: var(--bg-light);
    border-radius: 10px;
    padding: 20px;
}

.amenities-group-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.2);
}

.amenities-group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.amenities-group-list li {
    padding: 8px 0;
    padding-left: 26px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.5;
}

.amenities-group-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: #10b981;
    font-weight: bold;
    font-size: 14px;
}

@media (max-width: 991px) {
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .amenities-section {
        margin: 24px 0;
        padding-top: 20px;
    }

    .amenities-content {
        padding: 20px;
    }

    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .amenity-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .amenities-group {
        padding: 16px;
    }
}

/* ============================================
   COMPANY CARD PAGE
   ============================================ */

/* Quick Info Widget (sidebar) */
.quick-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

.quick-info-item:last-child {
    border-bottom: none;
}

.quick-info-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-info-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

a.quick-info-value:hover {
    color: var(--primary-color);
}

/* CTA Widget (sidebar) */
.company-cta-widget {
    background: var(--gradient-primary) !important;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}

.company-cta-widget .widget-body {
    padding: 30px 20px;
}

.company-cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    line-height: 1.3;
}

.company-cta-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0 0 20px;
    line-height: 1.5;
}

.company-cta-button {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.company-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Gallery Grid */
.company-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.company-gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
}

.company-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.company-gallery-item:hover img {
    transform: scale(1.05);
}

/* Company Map */
.company-map-inline {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.company-map-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

/* Editor Opinion */
.company-opinion-text {
    color: #374151;
    line-height: 1.7;
    font-style: italic;
    padding-left: 20px;
    border-left: 3px solid var(--primary-color);
    margin-top: 1.5rem;
}

.company-opinion-text h3 {
    font-style: normal;
    margin-bottom: 0.5rem;
}

/* Expand/Collapse Button */
.company-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    margin-top: 10px;
}

.company-expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.company-expand-btn.expanded .icon {
    transform: rotate(180deg);
}

.company-expand-btn .icon {
    transition: transform 0.2s;
    font-size: 12px;
}

/* Company contacts section override — no hover lift */
.company-contacts-section {
    cursor: default;
}

.company-contacts-section:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Link to map */
.company-link-map {
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
}

.company-link-map:hover {
    text-decoration: underline;
}

/* FAQ Block */
.faq-item {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.faq-item:first-child {
    padding-top: 0;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.faq-answer {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
    margin: 0;
}

.faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

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

@media (max-width: 480px) {
    .company-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   IE11 FALLBACK
   ============================================ */
@supports not (display: grid) {
    .nav-list {
        display: -ms-flexbox;
        display: flex;
    }
}
