:root {
    --primary-background: #FFFFFF;
    --secondary-background: #F3F4F6;
    --accent-background: #78350F;
    --text-primary: #1A1A1A;
    --text-secondary: #374151;
    --text-muted: #6B7280;
    --text-white: #FFFFFF;
    --font-headings: 'Libre Baskerville', serif;
    --font-body: 'Inter', sans-serif;
    --border-radius: 0.5rem;
    --transition-speed: 0.3s;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

button {
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    transition: all var(--transition-speed) ease;
}

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

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

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

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

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

    .mobile-break {
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-size: 0.9em;
    }
}

.cookie-consent-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-background);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    z-index: 9999;
}

.cookie-consent-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cookie-consent-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-consent-msg {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

.cookie-consent-btns {
    display: flex;
    gap: 1rem;
}

.cookie-consent-accept {
    background-color: var(--accent-background);
    color: var(--text-white);
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.cookie-consent-accept:hover {
    opacity: 0.9;
}

.cookie-consent-customize {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: underline !important;
}

.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.cookie-consent-modal-box {
    background: var(--primary-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 400px;
    width: 90%;
}

.cookie-consent-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.cookie-consent-options {
    margin-bottom: 2rem;
}

.cookie-consent-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.cookie-consent-item label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.cookie-consent-save {
    width: 100%;
    background: var(--accent-background);
    color: var(--text-white);
    padding: 0.75rem;
    font-weight: 600;
}

/* ===== main-header ===== */
#header {
    background-color: var(--primary-background);
    transition: background-color 0.3s ease;
}

.js-nav-link:hover {
    opacity: 0.8;
}

.js-mobile-menu {
    border-top: 0 solid var(--secondary-background);
}

.js-mobile-menu:not(.max-h-0) {
    border-top-width: 1px;
}

@media (max-width: 767px) {

    h1,
    h2,
    h3 {
        line-height: 1.2;
        hyphens: auto;
    }
}

/* ===== hero-section ===== */
#hero {
    overflow: hidden;
    background-attachment: scroll;
}

#hero h1 {
    line-height: 1.1;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    #hero h1 {
        font-size: 42px !important;
    }

    #hero p {
        font-size: 22px !important;
    }
}

.js-hero-btn:hover {
    filter: brightness(1.2);
    transition: all 0.3s ease;
}

.js-hero-btn i {
    font-size: 1.2rem;
}

/* ===== benefits-grid ===== */
#advantages .js-benefit-card {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#advantages .hyphens-auto {
    hyphens: auto;
    -webkit-hyphens: auto;
}

#advantages .bi {
    display: inline-block;
}

/* ===== product-catalog ===== */
.bi-check2 {
    font-weight: bold
}

.container {
    max-width: 1280px
}

#catalog h2,
#catalog h3 {
    hyphens: auto
}

/* ===== material-comparison ===== */
#materials {
    hyphens: auto;
}

#materials table {
    border-spacing: 0;
}

#materials i {
    color: #FFFFFF;
}

/* ===== size-table ===== */
#dimensions .js-tab-btn.active {
    background-color: var(--accent-background);
    color: var(--text-white);
    border-color: var(--accent-background);
}

#dimensions table tbody tr:nth-child(even) {
    background-color: rgba(243, 244, 246, 0.5);
}

#dimensions .js-dim-row {
    transition: opacity 0.3s ease-in-out;
}

/* ===== design-guide ===== */
#decor-tips {
    overflow: hidden;
    hyphens: auto;
}

.bi {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ===== company-stats ===== */
#statistics {
    hyphens: auto;
}

#statistics .js-stat-card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

#statistics .js-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    #statistics .js-stat-card {
        padding: 1.5rem;
    }
}

/* ===== payment-methods ===== */
.js-payment-section {
    hyphens: auto;
}

.js-payment-section h2,
.js-payment-section h3 {
    margin: 0;
    padding: 0;
}

.js-payment-section i {
    line-height: 1;
}

/* ===== order-section ===== */
#order-form input::placeholder,
#order-form textarea::placeholder {
    color: var(--text-muted);
}

#order-form .form-control {
    margin-bottom: 0.5rem;
}

#order-form .checkbox:checked {
    background-color: var(--accent-background);
    border-color: var(--accent-background);
}

#order-form .input:focus,
#order-form .select:focus,
#order-form .textarea:focus {
    outline: 2px solid var(--accent-background);
    border-color: transparent;
}

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

#footer iframe {
    width: 100% !important;
    min-height: 250px;
    border: 0;
    border-radius: var(--border-radius);
    display: block;
}

#footer .js-map-container {
    background: var(--primary-background);
}