:root {
    --primary-bg: #F9F7F2;
    --primary-text: #2D241E;
    --secondary-bg: #FFFFFF;
    --secondary-text: #5C524D;
    --accent-color: #4F7942;
    --accent-text: #FFFFFF;
    --dark-bg: #1A1A1A;
    --dark-text: #F9FAF8;
    --footer-bg: #121212;
    --footer-text: #E5E5E5;
    --button-color: #C27E3A;
    --button-text: #FFFFFF;
    --font-headings: 'Lora', serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --container: 1280px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

a:hover,
a:focus {
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

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

button,
.btn {
    cursor: pointer;
    border: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-weight: 500;
}

button:active {
    transform: scale(0.98);
}

input,
textarea,
select {
    font-family: var(--font-body);
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

@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);
    }

    .mobile-text-sm {
        font-size: 0.875rem;
        word-break: break-all;
    }
}

@media (min-width: 769px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.75rem;
    }

    h3 {
        font-size: 2rem;
    }
}

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

/* ===== header ===== */
#header {
    z-index: 1001;
}

.js-mobile-menu.open {
    display: block !important;
}

.js-mobile-toggle i {
    transition: transform 0.3s ease;
}

.js-mobile-toggle.active i {
    transform: rotate(90deg);
}

nav a {
    hyphens: auto;
}

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

.collage-img {
    position: absolute;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collage-img:nth-child(even) {
    transform: rotate(3deg);
}

.collage-img:nth-child(odd) {
    transform: rotate(-3deg);
}

h1,
h2,
p {
    hyphens: auto;
}

/* ===== news_slider ===== */
#news_slider .js-slider-wrapper {
    display: flex;
    width: 300%
}

#news_slider .js-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease
}

#news_slider .js-slider-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2)
}

@media(max-width:767px) {
    #news_slider .js-slider-container {
        height: 350px
    }
}

/* ===== intro_text ===== */
#intro {
    min-height: 100vh;
    position: relative;
}

#intro .container {
    max-width: 1200px;
}

#intro h1 {
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-text);
}

#intro p {
    margin-bottom: 1rem;
    color: var(--secondary-text);
    hyphens: auto;
}

#intro .bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

.bi-tree::before {
    content: "\f603";
}

.bi-shield-check::before {
    content: "\f52f";
}

.bi-house-heart::before {
    content: "\f76e";
}

/* ===== articles_filter ===== */
.js-article-card img {
    transition: transform .5s ease
}

.js-article-card:hover img {
    transform: scale(1.1)
}

.modal-box {
    max-height: calc(100vh - 2rem);
    overflow-y: auto !important;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) rgba(0, 0, 0, 0.12);
    -webkit-overflow-scrolling: touch
}

.modal-box::-webkit-scrollbar {
    display: block;
    width: 10px
}

.modal-box::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.08)
}

.modal-box::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.08)
}

.btn-active {
    background-color: var(--button-color) !important;
    color: var(--button-text) !important
}

.js-filter-btn:not(.btn-active) {
    background-color: var(--secondary-bg);
    color: var(--primary-text);
    border: 1px solid #ddd
}

/* ===== tips_section ===== */
#tips {
    overflow-x: hidden;
}

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

#tips .bi {
    vertical-align: middle;
}

/* ===== about_info ===== */
#about {
    hyphens: auto;
}

#about img {
    width: 100%;
    transition: transform 0.5s ease;
}

#about img:hover {
    transform: scale(1.03);
}

.bi-heart-fill {
    color: var(--accent-color);
}

/* ===== reader_reviews ===== */
.js-review-card {
    border-radius: 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

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

#reviews {
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

/* ===== contact_form ===== */
#contact .input,
#contact .textarea {
    border-radius: 8px;
    border-width: 1px;
    transition: all 0.3s ease
}

#contact .input:focus,
#contact .textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 121, 66, 0.2)
}

#contact .checkbox {
    border-radius: 4px
}

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

#contact .btn {
    min-height: 3rem;
    height: auto;
    padding: 0.75rem 1rem
}

/* ===== footer ===== */
.footer-section {
    width: 100%;
    position: relative;
}

.footer-logo {
    max-width: 70px;
    height: auto;
    display: block;
}

.footer-section a:hover {
    color: var(--accent-color) !important;
}

.js-back-to-top:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.footer-section p,
.footer-section a {
    hyphens: auto;
}

@media (max-width: 767px) {
    .footer-section h3 {
        font-size: 14px;
        line-height: 1.2;
    }

    .footer-section p {
        font-size: 13px;
        line-height: 1.4;
    }

    .footer-logo {
        max-width: 50px;
    }
}
