
:root {
    --deep-blue: #004d4d;      /* Глибокий колір морської хвилі */

    --ocean-blue: #006666;     /* Насичений бірюзовий */

    --sea-blue: #008b8b;       /* Темний ціан */

    --light-blue: #40e0d0;     /* Яскрава бірюза (Turquoise) */

    --accent-gold: #ffcc33;    /* Колір гарячого піску */

    --accent-orange: #ff7f50;  /* Корал (Coral) */

    --text-light: #f5fffa;     /* "Морська піна" (білий з відтінком) */

    --text-muted: #367d93;     /* Приглушений аквамарин */

    --bg-light: #e0ffff;       /* Світлий льодяний блакитний */

    --success-green: #53adc0;  /* Колір водоростей */

    --error-red: #ff4d4d;      /* Яскравий червоний анемон */

    --wave-color: rgba(255, 255, 255, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a2e;
    background: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: linear-gradient(180deg, var(--deep-blue) 0%, var(--ocean-blue) 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-login {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--light-blue);
}

.btn-login:hover {
    background: var(--light-blue);
    color: white;
}

.btn-register {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-gold) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
}

/* ========================================
   Banner
   ======================================== */
.banner {
    background: linear-gradient(180deg, var(--ocean-blue) 0%, var(--sea-blue) 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(45, 107, 163, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 74, 122, 0.4) 0%, transparent 50%);
    pointer-events: none;
}

.banner-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.banner-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
}

/* ========================================
   Wave Divider
   ======================================== */
.wave-divider {
    background: var(--sea-blue);
    margin-top: -1px;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: 40px;
}

/* ========================================
   Categories
   ======================================== */
.categories {
    background: var(--bg-light);
    padding: 40px 0;
}

.categories-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(10, 22, 40, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--light-blue);
    box-shadow: 0 8px 25px rgba(10, 22, 40, 0.15);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--sea-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.category-card span {
    font-size: 14px;
    font-weight: 600;
    color: var(--ocean-blue);
}

/* ========================================
   Content Section
   ======================================== */
.content {
    background: var(--bg-light);
    padding: 60px 0;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--deep-blue);
    margin-bottom: 25px;
    line-height: 1.2;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ocean-blue);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--accent-gold);
    display: inline-block;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--sea-blue);
    margin: 25px 0 15px;
}

p {
    margin-bottom: 18px;
    color: #2d3748;
}

strong {
    color: var(--ocean-blue);
    font-weight: 600;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(10, 22, 40, 0.08);
}

thead {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--sea-blue) 100%);
    color: white;
}

th {
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 15px 20px;
    border-bottom: 1px solid #e8f4fd;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:nth-child(even) {
    background: #f8fbff;
}

tbody tr:hover {
    background: #e8f4fd;
}

/* Lists */
ul, ol {
    margin: 20px 0;
    padding-left: 25px;
}

li {
    margin-bottom: 10px;
    color: #2d3748;
}

.pros-list {
    list-style: none;
    padding-left: 0;
}

.pros-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.pros-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    top: 0;
}

.cons-list {
    list-style: none;
    padding-left: 0;
}

.cons-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.cons-list li::before {
    content: '❗';
    position: absolute;
    left: 0;
    top: 0;
}

ol {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

ol li {
    position: relative;
    padding-left: 45px;
    margin-bottom: 15px;
}

ol li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: -2px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-gold) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--ocean-blue) 0%, var(--deep-blue) 100%);
    color: var(--text-light);
    position: relative;
}

.footer-wave {
    margin-bottom: -1px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-muted);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Sea Elements - Bubbles
   ======================================== */
#bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -50px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(173, 216, 230, 0.3));
    border-radius: 50%;
    animation: bubble-rise linear infinite;
    opacity: 0.6;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) scale(0.8);
        opacity: 0;
    }
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .categories-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .header-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .btn {
        padding: 8px 18px;
        font-size: 13px;
    }
    
    .categories-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-card {
        padding: 15px 10px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .content {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.35rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 12px 15px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 0;
    }
    
    .categories-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .category-card span {
        font-size: 12px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    /* Responsive tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .header,
    .banner,
    .wave-divider,
    .categories,
    .footer,
    #bubbles-container {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content {
        padding: 0;
    }
    
    h1, h2, h3 {
        color: black;
    }
    
    table {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
