:root {
    --primary: #1e3a8a;
    --secondary: #0ea5e9;
    --accent: #38bdf8;
    --background-main: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    --background-alt: #ffffff;
    --text-main: #1f2937;
    --text-muted: #4b5563;
    --button-text: #ffffff;
    --border-color: #e5e7eb;
    --radius: 0.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background-main);
    color: var(--text-main);
    font-weight: 400;
    line-height: 1.6;
    min-height: 100vh;
    -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;
    color: inherit;
    transition: color 0.3s ease, opacity 0.3s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

ul,
ol {
    list-style: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    width: 100%;
    background-color: var(--background-alt);
}

input:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.checkbox {
    width: auto;
    margin-right: 0.5rem;
    cursor: pointer;
}

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

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

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

    body {
        font-size: 0.9375rem;
    }

    .mobile-text-break {
        word-break: break-all;
        overflow-wrap: break-word;
    }
}

@media (min-width: 1024px) {
    body {
        font-size: 1rem;
    }
}

/* ===== header ===== */
header {
    width: 100%;
    z-index: 50;
}

nav {
    width: 100%;
}

.navbar {
    display: flex;
    width: 100%;
}

.js-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* ===== hero_section ===== */
#hero {
    width: 100%;
    position: relative;
}

.js-hero-section {
    opacity: 0;
    transition: opacity 1s ease-in;
}

.js-hero-section.loaded {
    opacity: 1;
}

.hero-shape-1 {
    animation: float 20s infinite alternate;
}

.hero-shape-2 {
    animation: float 25s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, -30px) scale(1.1);
    }
}

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

#advantages .shadow-lg {
    transition: transform 0.3s ease-in-out;
}

#advantages .shadow-lg:hover {
    transform: translateY(-5px);
}

/* ===== featured_content ===== */
.prose h2 {
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-main);
}

.prose h3 {
    color: var(--secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ===== category_grid ===== */
#categories {
    width: 100%;
}

.category-grid-wrapper {
    width: 100%;
}

.category-card {
    background-color: var(--background-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    width: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* ===== article_list ===== */
.prose h4 {
    color: var(--primary);
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

#modal-overlay {
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

/* ===== user_feedback ===== */
#reviews {
    width: 100%
}

.js-review-card {
    transition: border-color 0.3s ease, transform 0.3s ease;
    cursor: default
}

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

/* ===== car_gallery ===== */
.js-gallery-card {
    transition: transform 0.3s ease, border-color 0.3s ease
}

.js-gallery-card:hover {
    transform: translateY(-5px)
}

/* ===== feedback_form ===== */
.js-feedback-form input:focus,
.js-feedback-form textarea:focus {
    border-color: var(--secondary) !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
}

/* ===== footer ===== */
#footer {
    width: 100%;
}

.footer-title {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}