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

:root {
    --primary-color: #1a5490;
    --secondary-color: #4a90e2;
    --accent-color: #f39c12;
    --text-color: #2c3e50;
    --light-bg: #f5f7fa;
    --border-color: #d1d9e0;
    --note-bg: #e8f4f8;
    --note-border: #4a90e2;
    --success-color: #27ae60;
    --highlight-bg: #fff9e6;
    --card-shadow: 0 4px 12px rgba(26, 84, 144, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    background-attachment: fixed;
}

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

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c6ba0 100%);
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    letter-spacing: -0.3px;
    transition: transform 0.2s;
}

.logo-icon {
    font-size: 2rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #e67e22 100%);
    color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(243, 156, 18, 0.3);
    animation: float 3s ease-in-out infinite;
}

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

.logo-text {
    background: linear-gradient(135deg, #ffffff 0%, #e8f4f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover {
    transform: scale(1.03);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation */
.main-nav {
    display: flex;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
    position: relative;
    background: transparent;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.main-nav a.active {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1rem;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 2px;
}

h2 {
    color: var(--primary-color);
    margin: 2.5rem 0 1.2rem;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--secondary-color);
    border-radius: 2px;
}

h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.2rem;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--accent-color);
}

/* Images */
.content-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    margin: 2rem auto;
    display: block;
}

.image-left {
    float: left;
    margin: 0 2rem 1.5rem 0;
    max-width: 300px;
}

.image-right {
    float: right;
    margin: 0 0 1.5rem 2rem;
    max-width: 300px;
}

.image-container {
    text-align: center;
    margin: 2rem 0;
}

.image-container img {
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

/* Note Inserts */
.note {
    background: linear-gradient(135deg, var(--note-bg) 0%, #d4e8f0 100%);
    border-left: 5px solid var(--note-border);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    position: relative;
}

.note::before {
    content: 'i';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: bold;
    color: var(--note-border);
    font-style: italic;
}

.note p {
    margin-bottom: 0.5rem;
}

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

/* Comparison Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    background: white;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th,
.comparison-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c6ba0 100%);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

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

.comparison-table tr:nth-child(even) {
    background-color: var(--light-bg);
}

.comparison-table tr:hover {
    background-color: var(--highlight-bg);
    transition: background-color 0.2s;
}

.comparison-table .pro {
    color: var(--success-color);
    font-weight: 600;
}

.comparison-table .con {
    color: #e74c3c;
    font-weight: 500;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(26, 84, 144, 0.15);
}

.card h3 {
    margin-top: 0;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.card a {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border-radius: 6px;
    transition: all 0.3s;
}

.card a:hover {
    background: var(--secondary-color);
    color: white;
    border-bottom-color: transparent;
    transform: translateX(5px);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

/* Lists */
ul, ol {
    margin: 1.2rem 0 1.2rem 2rem;
}

li {
    margin-bottom: 0.7rem;
    line-height: 1.8;
}

.checklist {
    list-style: none;
    margin-left: 0;
}

.checklist li {
    padding-left: 2.5rem;
    position: relative;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 4px;
    background: white;
}

.checklist li:hover::before {
    background: var(--secondary-color);
    transition: background 0.2s;
}

/* Forms */
form {
    max-width: 600px;
    margin: 2.5rem auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.form-group {
    margin-bottom: 1.8rem;
}

form label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.05rem;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
    width: 100%;
    padding: 0.9rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

form textarea {
    min-height: 120px;
    resize: vertical;
}

form input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

form button {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
    text-decoration: none;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.4);
    border-bottom: none;
}

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

.error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.4rem;
    font-weight: 500;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 1.2rem 1.8rem;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

.toast.show {
    display: block;
}

.toast.error {
    background-color: #e74c3c;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3d5c 100%);
    color: white;
    padding: 2.5rem 0;
    margin-top: 4rem;
    text-align: center;
}

footer p {
    margin-bottom: 1rem;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 500;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    transition: all 0.3s;
}

footer a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-bottom: none;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c6ba0 100%);
    color: white;
    padding: 1.8rem;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    z-index: 10000;
    display: none;
}

.cookie-banner.show {
    display: block;
}

.cookie-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cookie-banner p {
    flex: 1;
    margin: 0;
    min-width: 300px;
    font-size: 1rem;
}

.cookie-banner .buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-banner button {
    padding: 0.7rem 1.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.3s;
    text-decoration: none;
}

.cookie-banner .btn-accept {
    background-color: var(--success-color);
    color: white;
}

.cookie-banner .btn-reject {
    background-color: #e74c3c;
    color: white;
}

.cookie-banner .btn-settings {
    background-color: white;
    color: var(--primary-color);
}

.cookie-banner button:hover {
    transform: scale(1.05);
    opacity: 0.9;
    border-bottom: none;
}

.cookie-settings {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    width: 100%;
}

.cookie-settings.show {
    display: block;
}

.cookie-settings label {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    cursor: pointer;
    font-size: 1rem;
}

.cookie-settings input[type="checkbox"] {
    margin-right: 0.8rem;
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color) 0%, #2c6ba0 100%);
        transition: right 0.3s;
        padding: 5rem 2rem 2rem;
        box-shadow: -4px 0 12px rgba(0,0,0,0.2);
        z-index: 999;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
        border-radius: 6px;
        margin-bottom: 0.5rem;
    }
    
    .main-nav a.active::after {
        display: none;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner .buttons {
        width: 100%;
        justify-content: center;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.8rem;
    }
    
    .image-left,
    .image-right {
        float: none;
        margin: 1.5rem auto;
        display: block;
    }
}
