:root {
    --primary-background: #1a0505;
    --secondary-background: #2d0a0a;
    --accent-color: #c53030;
    --text-main: #f9fafb;
    --text-secondary: #d1d5db;
    --border-color: #4a0e0e;
    --button-hover: #e53e3e;
    --gradient: linear-gradient(135deg, #2d0a0a 0%, #1a0505 100%);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--primary-background);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover,
a:focus {
    color: var(--accent-color);
    text-decoration: none;
    outline: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.3s ease-in-out;
    font-family: inherit;
}

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(2rem, 8vw, 3rem);
    }

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

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

    .mobile-long-string {
        word-break: break-all;
        font-size: 0.9em;
    }
}

.js-scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 50;
}

/* ===== header ===== */
html {
    scroll-behavior: smooth;
}

#header {
    overflow: visible;
}

#js-mobile-menu {
    z-index: 9999;
}

.bi-list::before {
    content: "\f479";
}

.bi-x-lg::before {
    content: "\f659";
}

a {
    hyphens: auto;
}

/* ===== hero_section ===== */
#hero {
    overflow: hidden;
}

#hero h1 {
    hyphens: auto;
    -webkit-hyphens: auto;
}

.js-smooth-scroll {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-radius: 2px;
}

/* ===== about_us ===== */
#about {
    background-color: var(--primary-background);
    color: var(--text-main);
}

#about h2,
#about h3 {
    color: var(--text-main);
    line-height: 1.2;
}

#about p {
    color: var(--text-secondary);
}

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

/* ===== product_catalog ===== */
.js-smooth-scroll {
    transition: all 0.3s ease;
}

.js-smooth-scroll:hover {
    background-color: var(--button-hover) !important;
    filter: brightness(1.1);
}

/* ===== cooperation_steps ===== */
.object-fit-cover {
    object-fit: cover
}

.hyphens-auto {
    hyphens: auto;
    word-break: break-word
}

#steps {
    position: relative;
    z-index: 1
}

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

#steps .container {
    max-width: 1200px
}

/* ===== our_projects ===== */
#projects {
    background: var(--primary-background);
}

.js-project-card {
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.js-project-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

#js-project-modal {
    backdrop-filter: blur(5px);
}

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

/* ===== reliability_facts ===== */
.js-quality-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.js-quality-card:hover {
    transform: translateY(-5px);
    border-color: #c53030;
}

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

@media (max-width: 767px) {
    .js-quality-card {
        padding: 1rem;
    }
}

/* ===== top_products ===== */
#best-sellers {
    background-image: var(--gradient);
}

.js-best-seller-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.js-best-seller-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

html {
    scroll-behavior: smooth;
}

/* ===== manufacturing_process ===== */
#production {
    position: relative;
}

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

#production img {
    border-radius: 8px;
}

.js-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s ease-out;
}

/* ===== interior_advice ===== */
#tips {
    scroll-margin-top: 80px;
}

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

#tips img {
    display: block;
    width: 100%;
    height: 100%;
}

/* ===== individual_orders ===== */
#custom-orders {
    overflow: hidden;
}

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

#custom-orders .hyphens-auto {
    hyphens: auto;
    word-break: break-word;
}

#custom-orders .js-scroll-link {
    text-decoration: none;
    cursor: pointer;
}

/* ===== faq_accordion ===== */
#faq .js-faq-toggle.js-active h3 {
    color: var(--accent-color);
}

#faq .js-faq-toggle i {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* ===== contact_and_form ===== */
#order-form input::placeholder,
#order-form textarea::placeholder {
    color: #888;
}

#order-form select option {
    background-color: #1a0505;
    color: #f9fafb;
}

#order-form {
    hyphens: auto;
}

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

#footer .js-footer-link {
    position: relative;
}

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

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