:root {
    --primary-dark: #0F172A;
    --secondary-dark: #1E293B;
    --accent-blue: #2563EB;
    --accent-blue-hover: #1D4ED8;
    --bg-light: #F8FAFC;
    --surface-white: #FFFFFF;
    --border-light: #E2E8F0;
    --border-dark: #334155;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    line-height: 1.25;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.875rem;
        line-height: 2.25rem;
        word-break: break-word;
    }

    h2 {
        font-size: 1.5rem;
        line-height: 2rem;
        word-break: break-word;
    }

    h3 {
        font-size: 1.25rem;
        line-height: 1.75rem;
        word-break: break-word;
    }

    h4,
    h5,
    h6 {
        font-size: 1.125rem;
        line-height: 1.5rem;
        word-break: break-word;
    }

    a,
    p,
    span,
    input,
    textarea {
        overflow-wrap: break-word;
    }
}

/* ===== site_header ===== */
#header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

.fixed-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fixed-dropdown.is-open {
    max-height: 420px;
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
}

#hero a {
    text-decoration: none;
}

#hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== featured_review_block ===== */
#featured-review {
    overflow: hidden;
}

#featured-review h1,
#featured-review h2,
#featured-review h3,
#featured-review h4,
#featured-review h5 {
    hyphens: auto;
    line-height: 1.2;
}

/* ===== popular_categories_block ===== */
#categories {
    overflow: hidden;
    hyphens: auto;
}

#categories h2,
#categories h3 {
    line-height: 1.25;
}

/* ===== latest_reviews_block ===== */
#reviews {
    overflow: hidden;
}

#reviews img {
    width: 100%;
    object-fit: cover;
}

/* ===== comparison_table_block ===== */
#comparisons {
    overflow: hidden;
}

#comparisons table {
    width: 100%;
}

#comparisons th,
#comparisons td {
    border-color: var(--border-light);
}

/* ===== practical_guides_block ===== */
#guides {
    overflow: hidden;
}

#guides article {
    width: 100%;
    hyphens: auto;
}

#guides article:hover {
    border-color: #2563EB;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.06);
}

/* ===== rating_system_block ===== */
#rating-system {
    width: 100%;
}

/* ===== newsletter_block ===== */
#newsletter input::placeholder {
    color: #94a3b8;
}

#newsletter input:focus {
    outline: none;
}

/* ===== about_block ===== */
#about {
    overflow: hidden;
}

#about h2,
#about h3 {
    hyphens: auto;
}

/* ===== contact_block ===== */
#contact {
    overflow: hidden;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: var(--text-secondary, #475569);
    opacity: 1;
}

/* ===== footer ===== */
#footer {
    position: relative;
    background-color: #0F172A;
    color: #F8FAFC;
}

#footer a {
    transition: color 0.2s ease-in-out;
}