:root {
    --primary-background: #f0f7ff;
    --secondary-background: #ffffff;
    --accent-background-gradient: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    --main-text-color: #0f172a;
    --secondary-text-color: #475569;
    --accent-color: #0284c7;
    --button-text-color: #ffffff;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #334155;
    background-color: var(--primary-background);
    margin: 0;
    padding: 0;
    transition: background-color 300ms ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    transition: color 300ms ease;
}

button {
    cursor: pointer;
    border: none;
    transition: all 300ms ease;
    border-radius: 12px;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    border-radius: 12px;
}

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

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

    h2 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }

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

    .js-contact-info,
    .js-long-text {
        font-size: 0.95rem;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    #cookieConsentContainer {
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
    }
}

html {
    scroll-behavior: smooth;
}

.fade-in-on-scroll {
    animation: fadeIn 300ms ease-in forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== header_main ===== */
.js-mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    border-top: 0px solid transparent;
}

.js-mobile-menu.open {
    max-height: 400px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.js-nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.js-nav-link:hover {
    color: var(--accent-color) !important;
}

.js-nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.js-nav-link:hover::after {
    width: 100%;
}

@media (max-width: 767px) {
    .header-logo span {
        font-size: 0.7rem !important;
    }
}

/* ===== hero_section ===== */
#hero {
    min-height: 100vh;
    background-image: url('assets/media/modern-living-room_5.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    padding: 80px 0;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.8) 0%, rgba(186, 230, 253, 0.8) 100%);
    z-index: 1;
}

#hero .container {
    z-index: 2;
}

.hero-title {
    color: var(--main-text-color);
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    hyphens: auto;
}

.hero-subtitle {
    color: var(--secondary-text-color);
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    hyphens: auto;
}

#hero .btn {
    background-color: var(--accent-color);
    color: var(--button-text-color);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 4px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#hero .btn:hover {
    transform: translateY(-2px);
    background-color: var(--accent-color);
    filter: brightness(0.9);
    color: var(--button-text-color);
}

#hero .bi-arrow-right {
    font-size: 1.2rem;
    color: var(--button-text-color);
}

@media (max-width: 767.98px) {
    #hero {
        min-height: auto;
        padding: 100px 0;
    }

    .hero-title {
        font-size: 1.125rem !important;
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.875rem !important;
        line-height: 1.3;
        margin-bottom: 1.5rem !important;
    }

    #hero .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
}

/* ===== benefits_block ===== */
#advantages .benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    #advantages .js-title {
        font-size: 1rem !important;
    }

    #advantages .benefit-title {
        font-size: 0.875rem !important;
    }

    #advantages .icon-wrapper {
        width: 48px !important;
        height: 48px !important;
    }

    #advantages .icon-wrapper i {
        font-size: 24px !important;
    }

    #advantages p {
        font-size: 0.85rem !important;
    }
}

/* ===== product_showcase ===== */
#catalog h2 {
    hyphens: auto;
    line-height: 1.2;
}

#catalog h3 {
    hyphens: auto;
    line-height: 1.3;
}

@media (max-width: 767px) {
    #catalog h2 {
        font-size: 1.125rem;
    }

    #catalog h3 {
        font-size: 1rem;
    }

    #catalog p {
        font-size: 0.875rem;
    }

    #catalog .badge {
        font-size: 0.7rem;
    }

    #catalog .card-img-top {
        height: 200px !important;
    }
}

#catalog .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#catalog .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* ===== common_mistakes ===== */
#errors .mistake-list {
    max-width: 550px
}

#errors .js-mistake-item {
    transition: transform 0.3s ease
}

#errors .js-mistake-item:hover {
    transform: translateX(5px)
}

@media(max-width:767px) {
    #errors h2 {
        font-size: 1rem !important;
        line-height: 1.2
    }

    #errors h3 {
        font-size: 0.875rem !important;
        line-height: 1.3
    }

    #errors .flex-shrink-0 i {
        font-size: 1.2rem !important
    }

    #errors .p-3 {
        padding: 1rem !important
    }

    #errors img {
        min-height: 300px !important
    }
}

/* ===== material_details ===== */
#materials h2 {
    font-size: 1.125rem;
}

#materials h3 {
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    #materials h2 {
        font-size: 2rem;
    }

    #materials h3 {
        font-size: 1.1rem;
    }
}

.material-img-wrapper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ===== product_quiz ===== */
#quiz h2 {
    font-size: 2rem;
}

#quiz h3 {
    font-size: 1.25rem;
}

#quiz .js-option.active {
    background-color: var(--accent-color) !important;
    color: var(--button-text-color) !important;
    border-color: var(--accent-color) !important;
}

#quiz .js-option.active i {
    color: var(--button-text-color) !important;
}

#quiz .js-option:hover {
    background-color: var(--primary-background);
}

@media (max-width: 767px) {
    #quiz h2 {
        font-size: 1.125rem !important;
    }

    #quiz h3 {
        font-size: 1rem !important;
    }
}

/* ===== working_steps ===== */
#process .working-process-title {
    font-size: 2.5rem;
    font-weight: 800;
}

#process .working-process-subtitle {
    font-size: 1.25rem;
}

#process .timeline-item {
    transition: transform 0.3s ease;
}

#process .timeline-item:hover {
    transform: translateX(10px);
}

#process .step-indicator {
    font-size: 1.25rem;
    border: 2px solid var(--accent-color);
}

@media (max-width: 767px) {
    #process .working-process-title {
        font-size: 1rem !important;
    }

    #process .working-process-subtitle {
        font-size: 0.875rem !important;
    }

    #process .process-image-wrapper img {
        height: 300px;
    }

    #process .timeline-container {
        padding-left: 0;
    }

    #process .step-indicator {
        width: 36px !important;
        height: 36px !important;
        font-size: 0.875rem;
    }
}

/* ===== qc_standards ===== */
#quality h2 {
    font-size: 2rem;
}

#quality h3 {
    font-size: 1.25rem;
}

.qc-icon-box i {
    line-height: 1;
    display: block;
}

.js-qc-item {
    transition: transform 0.3s ease;
}

.js-qc-item:hover {
    transform: translateX(5px);
}

@media (max-width: 767.98px) {
    #quality {
        padding: 40px 0;
    }

    #quality h2 {
        font-size: 1rem;
    }

    #quality h3 {
        font-size: 0.875rem;
    }

    .qc-image-container img {
        height: 300px;
    }

    .qc-content-wrapper {
        text-align: left;
    }

    .qc-icon-box {
        padding: 8px;
    }

    .qc-icon-box i {
        font-size: 20px;
    }
}

/* ===== shipping_info ===== */
#delivery h2 {
    font-size: 2.5rem;
}

#delivery h3 {
    font-size: 1.5rem;
}

@media (max-width: 767.98px) {
    #delivery h2 {
        font-size: 1.125rem !important;
        line-height: 1.2;
    }

    #delivery h3 {
        font-size: 0.875rem !important;
        line-height: 1.2;
    }

    #delivery .p-4 {
        padding: 1.5rem !important;
    }

    #delivery .rounded-4 {
        border-radius: 1rem !important;
    }

    #delivery .overflow-hidden {
        height: 200px !important;
    }
}

#delivery .shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.01) !important;
}

/* ===== faq_accordion ===== */
#faq .accordion-button:not(.collapsed) {
    background-color: var(--secondary-background);
    color: var(--accent-color);
    box-shadow: none
}

#faq .accordion-button {
    padding: 1.25rem;
    font-weight: 600;
    border: none;
    box-shadow: none;
    transition: all 0.3s ease;
    text-align: left
}

#faq .accordion-button::after {
    background-image: none;
    content: "\f282";
    font-family: "bootstrap-icons";
    color: var(--accent-color);
    transition: transform 0.3s ease
}

#faq .accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg)
}

#faq .accordion-body {
    font-size: 0.95rem;
    line-height: 1.6;
    padding-bottom: 1.5rem
}

@media(max-width:767px) {
    .faq-section-title {
        font-size: 1rem !important;
        line-height: 1.2;
        hyphens: auto
    }

    .faq-question-text {
        font-size: 0.875rem !important;
        line-height: 1.2;
        hyphens: auto
    }

    #faq .accordion-button {
        padding: 1rem
    }

    #faq .accordion-body {
        font-size: 0.85rem
    }
}

/* ===== contact_section ===== */
#order-form h2 {
    @media (max-width: 767px) {
        font-size: 1rem !important;
    }
}

#order-form h3 {
    @media (max-width: 767px) {
        font-size: 0.875rem !important;
    }
}

#order-form .form-control:focus,
#order-form .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(2, 132, 199, 0.1);
}

#order-form .btn:hover {
    opacity: 0.9;
}

/* ===== footer ===== */
#footer {
    hyphens: auto;
}

#footer a {
    transition: color 0.3s ease;
}

#footer a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

@media (max-width: 767.98px) {
    #footer span {
        font-size: 0.7rem !important;
    }

    #footer .js-nav-link {
        font-size: 0.8rem !important;
    }

    .policy-content a,
    .contact-details a,
    .contact-details p,
    address a,
    .privacy-policy-article a,
    .policyContent a,
    .contactInfoDetail a,
    .contactEmail {
        font-size: 0.75rem !important;
        word-break: break-all;
        overflow-wrap: anywhere;
    }
}