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

@font-face {
    font-family: 'Pinyon Script Local';
    src: url('images/PinyonScript-Regular.ttf') format('truetype');
    font-display: swap;
}

:root {
    --primary-dark: #1a1a1a;
    --secondary-dark: #2d2d2d;
    --beige: #d4b896;
    --beige-light: #e8dcc8;
    --beige-dark: #b8956f;
    --light-bg: #f5f1eb;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #4a4a4a;
    --text-gray: #757575;
}

body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.46);
    border-bottom: 1px solid rgba(184, 149, 111, 0.2);
    box-shadow: 0 8px 28px rgba(32, 28, 23, 0.08);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.5rem 0;
}

.top-bar-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.top-bar-info {
    display: flex;
    gap: 2rem;
}

.top-bar a {
    color: var(--white);
    text-decoration: none;
}

.top-bar .top-bar-phone {
    color: var(--beige-light);
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-right: 1.5rem;
}

.top-bar .top-bar-phone:hover {
    color: var(--beige);
}

.header-main {
    max-width: 1400px;
    height: 76px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-dark);
    text-decoration: none;
    margin-right: auto;
    padding-right: 3rem;
}

.logo svg {
    width: 300px;
    height: 84px;
    display: block;
}

.logo span {
    color: var(--beige);
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--beige);
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--beige);
    letter-spacing: 0.5px;
}

.btn-callback {
    background: var(--beige);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-callback:hover {
    background: var(--beige-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 184, 150, 0.3);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(26,26,26,0.8), rgba(26,26,26,0.3));
    display: flex;
    align-items: center;
}

.slide-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    color: var(--white);
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-location {
    margin-bottom: 0.7rem;
    color: var(--beige-light);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    font-weight: 300;
    line-height: 1.8;
}

.btn-primary {
    background: var(--beige);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--beige-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 184, 150, 0.3);
}

.btn-callback {
    background: var(--beige);
    color: var(--white);
    padding: 0.7rem 1.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-callback:hover {
    background: var(--beige-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 184, 150, 0.3);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.2));
    display: flex;
    align-items: center;
}

.slide-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    color: var(--white);
}

.slide-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.slide-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.btn-primary {
    background: var(--beige);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: var(--beige-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 184, 150, 0.3);
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active {
    background: var(--beige);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
    font-weight: 300;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--beige);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-weight: 300;
}

.about-image {
    height: 500px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--beige-light);
    z-index: -1;
}

/* Facades */
.facades-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.facades-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
    gap: 4rem;
    align-items: center;
}

.eyebrow {
    margin-bottom: 0.75rem;
    color: var(--beige-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.facades-layout h2 {
    margin-bottom: 1rem;
    font-size: 2.25rem;
    font-weight: 400;
}

.facades-layout > div > p:last-child {
    color: var(--text-gray);
    line-height: 1.8;
}

.facades-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.facade-sample {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 0.9rem;
    align-items: center;
    min-height: 88px;
    padding: 1rem;
    background: var(--white);
    border: 1px solid rgba(184, 149, 111, 0.2);
}

.facade-sample span {
    grid-row: span 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.facade-sample b { font-size: 0.95rem; font-weight: 600; }
.facade-sample small { color: var(--text-gray); font-size: 0.78rem; }
.facade-sample.plastic span { background: linear-gradient(135deg, #ded9d0 0 48%, #a07c5c 49% 51%, #45413e 52%); }
.facade-sample.mdf span { background: linear-gradient(135deg, #ddd4c7, #a98562); }
.facade-sample.chipboard span { background: repeating-linear-gradient(15deg, #a9774e 0 3px, #c2986c 3px 7px, #91623f 7px 9px); }
.facade-sample.frame span { background: linear-gradient(135deg, #4b3b30 0 25%, #d6c5af 26% 39%, #4b3b30 40% 60%, #d6c5af 61% 74%, #4b3b30 75%); }
.facade-sample.solidwood span { background: repeating-linear-gradient(100deg, #633d25 0 2px, #a66e40 3px 7px, #d0a170 8px 11px); }

/* Advantages */
.advantages {
    background: #201f1d;
    padding: 6.5rem 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
    background: transparent;
    border: none;
}

.advantage-item {
    min-height: 275px;
    padding: 2rem 1.7rem;
    background: linear-gradient(145deg, #302e2a, #272522);
    border: 1px solid rgba(212, 184, 150, 0.24);
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.advantage-item::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    right: -56px;
    bottom: -60px;
    border: 1px solid rgba(212, 184, 150, 0.26);
    border-radius: 50%;
}

.advantage-item:hover {
    background: linear-gradient(145deg, #39342e, #2b2723);
    transform: translateY(-6px);
    z-index: 1;
    border-color: rgba(212, 184, 150, 0.68);
}

.advantage-number {
    position: absolute;
    right: 1.5rem;
    top: 1.3rem;
    color: rgba(226, 195, 154, .45);
    font-size: .72rem;
    letter-spacing: .16em;
}

.advantage-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 1.4rem 0 2.1rem;
    color: var(--beige);
    border: 1px solid rgba(212, 184, 150, 0.65);
    border-radius: 50%;
}

.advantage-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.advantage-item:nth-child(3) .advantage-icon svg {
    fill: currentColor;
    stroke: none;
}

.advantage-item h3 {
    font-size: 1.14rem;
    line-height: 1.45;
    margin-bottom: .9rem;
    color: var(--white);
    font-weight: 500;
}

.advantage-item p {
    color: #d6d0c7;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 300;
    max-width: 225px;
}

/* Partners */
.partners-section {
    padding: 5rem 0;
    background: var(--white);
}

.partners-grid {
    display: flex;
    width: max-content;
    gap: 1.5rem;
    align-items: center;
    animation: partners-scroll 58s linear infinite;
    will-change: transform;
}

.partners-carousel {
    overflow: hidden;
    padding: .75rem 0 1.25rem;
    margin: 0 -1rem;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.partners-carousel:hover .partners-grid {
    animation-play-state: paused;
}

@keyframes partners-scroll {
    to { transform: translateX(calc(-50% - .75rem)); }
}

.partner-logo {
    flex: 0 0 180px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    padding: 1rem;
    background: var(--white);
}

.partner-logo:hover {
    transform: translateY(-4px) scale(1.04);
    border-color: var(--beige);
    box-shadow: 0 10px 24px rgba(212, 184, 150, 0.35);
}

.partner-logo img {
    width: min(160px, 100%);
    height: 92px;
    object-fit: contain;
}

/* Логотип Blum имеет большие внутренние поля в исходном файле. */
.partner-logo img[alt="Blum"] {
    width: min(190px, 100%);
    height: 112px;
}

/* Home page */
.home-hero {
    min-height: 680px;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    background-position: center;
    background-size: cover;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(22, 21, 19, .91) 0%, rgba(22, 21, 19, .72) 43%, rgba(22, 21, 19, .18) 100%);
}

.home-hero-content { position: relative; z-index: 1; padding-top: 2rem; padding-bottom: 2rem; }
.home-kicker { color: #e1c59f; font-size: .76rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1.35rem; }
.home-hero h1 { max-width: 760px; font-size: clamp(3.1rem, 6vw, 5.9rem); font-weight: 350; letter-spacing: -.055em; line-height: .96; margin-bottom: 1.7rem; }
.home-lead { max-width: 570px; color: #eee9e2; font-size: 1.15rem; line-height: 1.8; }
.home-hero-actions { display: flex; align-items: center; gap: 1.4rem; margin-top: 2.5rem; }
.home-btn-light, .home-btn-outline { color: inherit; text-decoration: none; font-weight: 600; letter-spacing: .04em; padding: .9rem 0; border-bottom: 1px solid currentColor; transition: color .25s, padding .25s; }
.home-btn-light:hover, .home-btn-outline:hover { color: var(--beige); padding-left: .35rem; }
.home-btn-light span, .home-text-link span, .home-btn-outline span { margin-left: .4rem; font-size: 1.25em; }
.home-hero-note { position: absolute; left: 2rem; bottom: -11.5rem; color: #65605a; font-size: .84rem; display: flex; align-items: center; gap: .65rem; }
.home-hero-note span { width: 38px; height: 1px; background: var(--beige); }

.home-story { padding: 8rem 0 6rem; background: var(--white); }
.home-story-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.home-story-image { min-height: 545px; position: relative; background-size: cover; background-position: center; }
.home-story-image::after { content: ''; position: absolute; inset: 16px -16px -16px 16px; z-index: 0; border: 1px solid #d5c1a5; }
.home-story-image p { position: absolute; z-index: 1; left: 2rem; bottom: 1.8rem; color: var(--white); font-size: 1.35rem; line-height: 1.3; }
.home-story-copy { position: relative; z-index: 1; }
.home-story-copy h2, .home-section-head h2, .home-works-inner h2 { color: #24211e; font-size: clamp(2.2rem, 4vw, 3.55rem); font-weight: 350; letter-spacing: -.04em; line-height: 1.08; margin-bottom: 1.5rem; }
.home-story-copy > p:not(.eyebrow) { color: #716b64; line-height: 1.85; margin-bottom: 1rem; max-width: 520px; }
.home-text-link { display: inline-block; margin-top: 1rem; color: #8c5c35; font-weight: 650; text-decoration: none; }

.home-directions { padding: 6rem 0; background: #f4f0ea; }
.home-section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.home-section-head h2 { margin-bottom: 0; }
.home-section-head > p { max-width: 315px; color: #716b64; line-height: 1.7; padding-bottom: .35rem; }
.home-directions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.home-direction { min-height: 330px; padding: 1.5rem; position: relative; overflow: hidden; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; background: #4b443d center / cover; isolation: isolate; transition: transform .3s ease; }
.home-direction::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16,14,12,.12), rgba(16,14,12,.86)); transition: background .3s; }
.home-direction:hover { transform: translateY(-5px); }
.home-direction:hover::before { background: linear-gradient(180deg, rgba(16,14,12,.08), rgba(16,14,12,.72)); }
.home-direction-wide { grid-column: span 2; }
.home-direction > span { color: #e0bd92; font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; }
.home-direction h3 { font-size: 1.65rem; font-weight: 400; margin-bottom: .35rem; }
.home-direction p { color: #e7e1d9; font-size: .9rem; line-height: 1.55; }
.home-direction-dark { background: #282522; }
.home-direction-dark::before { background: linear-gradient(135deg, #2b2926, #6e553e); }
.home-direction-dark b { display: block; color: #e3c199; font-size: .8rem; letter-spacing: .06em; margin-top: 1.35rem; }

.home-works-cta { padding: 5.5rem 0; background: #211f1c; color: #fff; }
.home-works-inner { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 3rem; }
.home-works-inner h2 { color: #fff; margin: 0; }
.home-works-inner > div:last-child p { color: #d3ccc3; line-height: 1.75; margin-bottom: 1.8rem; }
.home-btn-outline { color: #e2bf95; }

/* Portfolio Preview */
.portfolio-preview {
    padding: 5rem 0;
    background: var(--white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.portfolio-folder {
    min-height: 420px;
    position: relative;
    overflow: hidden;
    background: #292623 center / cover;
    isolation: isolate;
    transition: transform .35s ease, box-shadow .35s ease;
}

.portfolio-folder:hover { transform: translateY(-6px); box-shadow: 0 18px 35px rgba(26, 23, 20, .2); }
.portfolio-folder-overlay { position: absolute; inset: 0; z-index: 1; padding: 1.7rem; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: linear-gradient(180deg, rgba(19, 17, 15, .28), rgba(19, 17, 15, .88)); }
.portfolio-folder-overlay > span { align-self: flex-start; padding: .35rem .65rem; border: 1px solid rgba(255,255,255,.55); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-folder-overlay h3 { font-size: 1.7rem; font-weight: 400; line-height: 1.2; margin-bottom: .45rem; }
.portfolio-folder-overlay p { color: #e5d9ca; line-height: 1.55; }

.portfolio-intro {
    max-width: 680px;
    margin: 0 auto 3rem;
    text-align: center;
}

.portfolio-intro h2 {
    margin-bottom: 0.8rem;
    font-size: 2.2rem;
    font-weight: 400;
}

.portfolio-intro > p:last-child {
    color: var(--text-gray);
    line-height: 1.75;
}

.portfolio-gallery {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.portfolio-gallery .portfolio-item {
    grid-column: span 4;
    height: 390px;
}

.portfolio-gallery .portfolio-item:nth-child(5n + 1) {
    grid-column: span 8;
}

.portfolio-item {
    height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(26,26,26,0.95));
    color: white;
    transform: translateY(0);
    transition: transform 0.3s;
}

.portfolio-item:hover {
    transform: scale(1.02);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.portfolio-overlay p {
    color: var(--beige-light);
    font-weight: 300;
}

/* Contact Form Section */
.contact-form-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 1rem;
    border: 2px solid var(--beige-light);
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.3s;
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--beige);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--beige-light);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    font-weight: 300;
}

.footer-section a:hover {
    color: var(--beige);
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    font-weight: 300;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-weight: 300;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    max-width: 600px;
    width: 90%;
    padding: 3rem;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--beige);
    color: white;
    width: 35px;
    height: 35px;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--beige-dark);
    transform: rotate(90deg);
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 400;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Catalog Page */
.catalog-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.catalog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/kitchens/modern-white.jpg') center/cover;
    opacity: 0.1;
}

.catalog-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

.catalog-header p {
    position: relative;
    z-index: 1;
    font-weight: 300;
}

.catalog-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.catalog-filters {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.filter-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--beige-light);
    background: var(--white);
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--beige);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.catalog-legacy {
    display: none;
}

.catalog-directions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.catalog-direction {
    min-height: 370px;
    display: flex;
    align-items: flex-end;
    padding: 1.75rem;
    color: var(--white);
    background-position: center;
    background-size: cover;
    position: relative;
    overflow: hidden;
}

.catalog-direction::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 18, 16, 0.1), rgba(20, 18, 16, 0.9));
}

.catalog-direction > div {
    position: relative;
    z-index: 1;
}

.catalog-direction span {
    color: var(--beige-light);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

.catalog-direction h2 {
    margin: 0.4rem 0 0.7rem;
    font-size: 1.8rem;
    font-weight: 400;
}

.catalog-direction p {
    margin-bottom: 1.2rem;
    line-height: 1.55;
    color: #f1ede8;
}

.catalog-direction .btn-order {
    padding: 0.65rem 1rem;
    background: var(--beige);
    color: var(--white);
}

.catalog-direction:first-child {
    grid-column: span 2;
}

.catalog-item {
    background: var(--white);
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.catalog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.catalog-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.catalog-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--beige);
    color: var(--white);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.catalog-info {
    padding: 2rem;
}

.catalog-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--primary-dark);
    font-weight: 400;
}

.catalog-info p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-weight: 300;
}

.catalog-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--beige-light);
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--beige);
}

.btn-order {
    background: var(--primary-dark);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-order:hover {
    background: var(--beige);
}

/* Reviews Page */
.reviews-section {
    padding: 5rem 0;
    background: var(--light-bg);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.review-card {
    background: var(--white);
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--beige) 0%, var(--beige-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    margin-right: 1rem;
}

.review-info h4 {
    margin-bottom: 0.3rem;
    color: var(--primary-dark);
    font-weight: 500;
}

.review-rating {
    color: var(--beige);
    font-size: 1.2rem;
}

.review-text {
    color: var(--text-gray);
    line-height: 1.9;
    font-weight: 300;
}

.review-date {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
    opacity: 0.7;
}

/* Contacts Page */
.contacts-section {
    padding: 5rem 0;
    background: var(--white);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info-item {
    margin-bottom: 2.5rem;
}

.contact-info-item h3 {
    color: var(--primary-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 400;
}

.contact-info-item p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.1rem;
    font-weight: 300;
}

.contact-map { position: relative; height: 450px; overflow: hidden; background: var(--light-bg); border: 1px solid var(--beige-light); }
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-map-route { position: absolute; left: 1.25rem; bottom: 1.25rem; padding: .8rem 1.1rem; background: var(--primary-dark); color: var(--white); text-decoration: none; font-weight: 600; box-shadow: 0 7px 20px rgba(0,0,0,.2); }
.contact-map-route:hover { background: var(--beige-dark); }

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--light-bg);
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.social-link:hover {
    background: var(--beige);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 184, 150, 0.3);
}

.max-logo {
    width: 64px;
    height: 22px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 1024px) {
    .catalog-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-gallery .portfolio-item,
    .portfolio-gallery .portfolio-item:nth-child(5n + 1) {
        grid-column: span 1;
    }

    .catalog-directions {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-directions-grid { grid-template-columns: repeat(2, 1fr); }
    .home-works-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .about-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .facades-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .advantages-grid,
    .catalog-grid,
    .catalog-directions,
    .portfolio-grid,
    .reviews-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .form-row,
    .filters-grid {
        grid-template-columns: 1fr;
    }

    .partner-logo { flex-basis: 155px; }

    .catalog-direction:first-child {
        grid-column: auto;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .home-hero { min-height: 590px; }
    .home-hero-overlay { background: linear-gradient(90deg, rgba(22, 21, 19, .88), rgba(22, 21, 19, .46)); }
    .home-hero-actions { align-items: flex-start; flex-direction: column; gap: .6rem; }
    .home-hero-note { display: none; }
    .home-story { padding: 4.5rem 0; }
    .home-story-grid, .home-works-inner { grid-template-columns: 1fr; }
    .home-story-image { min-height: 390px; }
    .home-section-head { display: block; }
    .home-section-head > p { margin-top: 1rem; }
    .home-directions-grid { grid-template-columns: 1fr; }
    .home-direction, .home-direction-wide { grid-column: auto; min-height: 270px; }
    .home-works-cta { padding: 4.5rem 0; }
}
