:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --border-color: #e5e5e5;
    --hover-bg: #f5f5f5;
    --accent-color: #000000;
}

.content img {
    border-radius: 10px;
    zoom: 1;
}

.navbar-brand img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 100px;
    object-fit: cover;
    object-position: center;
    transform: scale(1.3);
    margin-right: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: none;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color) !important;
    letter-spacing: -0.5px;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
}

.navbar-nav {
    gap: 0.25rem;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    transition: background 0.2s ease;
}

.nav-item:hover {
    background: var(--hover-bg);
}

.nav-link {
    color: var(--text-color) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    transition: none;
    border-radius: 0;
    white-space: nowrap;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    padding: 0.5rem;
    margin-left: -0.5rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    color: var(--text-color);
}

.dropdown-toggle:hover {
    opacity: 0.6;
}

.dropdown-toggle::after {
    display: none;
}

.dropdown-toggle svg {
    transition: transform 0.2s ease;
}

.dropdown.show .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    padding: 0.5rem;
    margin-top: 0;
    top: 100% !important;
    bottom: auto !important;
    left: auto !important;
    right: 0 !important;
}

/* Hover на десктопі */
@media (min-width: 992px) {
    .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-toggle {
        pointer-events: none;
    }
}

.dropdown-item {
    color: var(--text-color) !important;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 0;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--hover-bg) !important;
    color: var(--text-color) !important;
}

.dropdown-item:focus {
    background: var(--hover-bg) !important;
    color: var(--text-color) !important;
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border-color);
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero .hero-text {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.hero .hero-text:last-child {
    margin-bottom: 0;
}

.hero-button {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.hero-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

main {
    min-height: 80vh;
    padding: 4rem 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.content header p {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 3rem;
}

.content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.875rem;
    letter-spacing: -0.3px;
}

.content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.content section:last-of-type {
    border-bottom: none;
}

.content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1rem;
}

.content a {
    color: #059669;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.content a:hover {
    color: #047857;
    text-decoration-thickness: 2px;
}

.content-card .content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1.5rem 0 !important;
}

.content-card .content ul li {
    padding: 0.75rem 0 !important;
    padding-left: 1.75rem !important;
    position: relative !important;
    font-size: 1rem !important;
}

.content-card .content ul li:before {
    content: "•" !important;
    position: absolute !important;
    left: 0.5rem !important;
    font-size: 1.5rem !important;
    line-height: 1.5rem !important;
}

.content-card .content ol {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1.5rem 0 !important;
    counter-reset: custom-counter !important;
}

.content-card .content ol li {
    padding: 0.75rem 0 !important;
    padding-left: 2.5rem !important;
    position: relative !important;
    font-size: 1rem !important;
    counter-increment: custom-counter !important;
}

.content-card .content ol li:before {
    content: counter(custom-counter) "." !important;
    position: absolute !important;
    left: 0.5rem !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
}

/* Table wrapper for responsive scroll */
.content-card .content .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 2rem 0 !important;
}

.content-card .content table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    margin: 0 !important;
}

/* Mobile specific */
@media (max-width: 768px) {
    .content-card .content table {
        font-size: 0.85rem !important;
    }

    .content-card .content table th,
    .content-card .content table td {
        padding: 0.5rem !important;
    }
}

.content-card .content table thead {
    background: #f8f8f8 !important;
    border-bottom: 2px solid var(--border-color) !important;
}

.content-card .content table thead th {
    padding: 1rem !important;
    text-align: left !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    white-space: nowrap !important;
}

.content-card .content table tbody td {
    padding: 1rem !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: #333 !important;
}

.content-card .content table tbody tr:last-child td {
    border-bottom: none !important;
}

.content-card .content table tbody tr:hover {
    background: #fafafa !important;
}

.content-card .content table strong {
    font-weight: 600 !important;
    color: var(--text-color) !important;
}


.content footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    background: transparent;
    color: #666;
}

.content footer p {
    font-size: 0.9rem;
    color: #666;
}

body > footer {
    background: #000000;
    color: #ffffff;
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-nav {
    margin-bottom: 2rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.2s ease;
}

.footer-nav a:hover {
    opacity: 0.7;
}

body > footer p {
    margin: 0;
    font-size: 0.9rem;
}

body > footer .text-muted {
    color: #999 !important;
}

@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
    }

    .navbar-nav {
        gap: 0;
    }

    .nav-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .dropdown-toggle {
        position: absolute;
        right: 0;
        top: 0;
        pointer-events: all;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background: var(--hover-bg);
        margin: 0.5rem 0 0 1rem;
        border-radius: 0;
    }

    .dropdown-item {
        font-size: 0.9rem;
    }

    .nav-link {
        width: 100%;
    }
}

@media (max-width: 768px) {
    main {
        padding: 2rem 0;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-button {
        font-size: 1rem;
        padding: 0.875rem 2rem;
    }

    .content h1 {
        font-size: 2rem;
    }

    .content h2 {
        font-size: 1.5rem;
    }

    .content h3 {
        font-size: 1.25rem;
    }

    .content h4 {
        font-size: 1.125rem;
    }

    .content h5 {
        font-size: 1rem;
    }

    .content h6 {
        font-size: 0.95rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}
