:root {
    --primary: #0F172A;
    --accent: #2563EB;
    --secondary-accent: #38BDF8;
    --background-main: #F8FAFC;
    --background-cards: #FFFFFF;
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --status-success: #22C55E;
    --status-warning: #F59E0B;
    --status-error: #EF4444;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

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

ul,
ol {
    list-style: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.875rem, 8vw, 2.25rem);
    }

    h2 {
        font-size: clamp(1.5rem, 6vw, 1.875rem);
    }

    h3 {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }

    body {
        font-size: 0.9375rem;
    }

    .mobile-break-words {
        overflow-wrap: break-word;
        word-wrap: break-word;
        word-break: break-word;
    }
}

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

/* ===== header ===== */
#header {
    background-color: var(--primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.js-mobile-menu {
    background-color: var(--primary);
}

/* ===== hero_section ===== */
.bg-primary {
    background-color: var(--primary);
}

.bg-accent {
    background-color: var(--accent);
}

.text-secondary-accent {
    color: var(--secondary-accent);
}

.border-accent\/30 {
    border-color: rgba(37, 99, 235, 0.3);
}

.bg-accent\/10 {
    background-color: rgba(37, 99, 235, 0.1);
}

.bg-primary\/80 {
    background-color: rgba(15, 23, 42, 0.8);
}

/* ===== featured_article ===== */
#main-article {
    scroll-margin-top: 2rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.prose ul li {
    position: relative;
    padding-left: 0;
}

/* ===== useful_cards ===== */
.js-modal.hidden {
    display: none
}

.js-modal.flex {
    display: flex
}

body.modal-open {
    overflow: hidden
}

.prose p {
    line-height: 1.7;
    margin-bottom: 1.25rem
}

/* ===== blog_categories ===== */
.ph-bold {
    display: inline-block;
    line-height: 1;
}

#categories .bg-blue-50 {
    background-color: rgba(37, 99, 235, 0.05);
}

/* ===== purchase_checklist ===== */
#checklist {
    width: 100%;
}

.js-download-btn {
    cursor: pointer;
}

/* ===== economy_tips ===== */
#saving-tips {
    width: 100%
}

#saving-tips .ph-calendar-check,
#saving-tips .ph-wrench,
#saving-tips .ph-package,
#saving-tips .ph-magnifying-glass {
    color: var(--accent)
}

/* ===== user_reviews ===== */
#reviews {
    width: 100%;
    background-color: var(--background-main);
}

.review-card {
    background-color: var(--background-cards);
    transition: transform 0.3s ease;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.review-card:hover {
    transform: translateY(-5px);
}

/* ===== newsletter_form ===== */
#contacts {
    width: 100%;
}

/* ===== footer ===== */
#footer {
    position: relative;
    overflow: hidden;
}

.js-back-to-top {
    cursor: pointer;
    border: none;
    outline: none;
}

.js-back-to-top:active {
    transform: scale(0.95);
}