:root {
    --color-bg-base: #F9F9F8; /* Молочный/каменный */
    --color-text-main: #2A2A2A;
    --color-text-muted: #6B6B6B;
    --color-accent: #611b22; /* Темная вишня */
    --color-accent-hover: #4a1319;
    --color-border: #E5E5E5;
    
    --font-ui: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-ui);
    color: var(--color-text-main);
    background-color: var(--color-bg-base);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Animations */
@keyframes zoomBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-100%); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Header (Glassmorphism) */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(249, 249, 248, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    animation: slideDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    text-decoration: none;
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-text-main);
    color: #fff;
}
.btn-primary:hover {
    background-color: #000;
}

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
}
.btn-accent:hover {
    background-color: var(--color-accent-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-text-main);
}
.btn-outline:hover {
    background-color: var(--color-text-main);
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding-top: 60px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-text-main);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-muted);
    margin-bottom: 48px;
    max-width: 500px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 80px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

/* Benefits Row */
.benefits-row {
    display: flex;
    gap: 48px;
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.benefit-number, .benefit-icon {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--color-accent);
    font-style: italic;
}

.benefit-text {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}

/* Catalog Section */
.catalog {
    padding: 120px 40px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 60px;
    text-align: center;
    color: var(--color-text-main);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.catalog-card {
    display: block;
    position: relative;
    height: 480px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
}

.catalog-img {
    position: absolute;
    inset: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    transition: opacity 0.3s ease;
}

.catalog-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
}

.catalog-card p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.catalog-link {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.catalog-link .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* Hover effects */
.catalog-card:hover .catalog-img {
    transform: scale(1.08);
}
.catalog-card:hover .catalog-content {
    transform: translateY(0);
}
.catalog-card:hover .catalog-link {
    opacity: 1;
}
.catalog-card:hover .catalog-link .arrow {
    transform: translateX(4px);
}

/* Custom Sewing Section */
.custom-sewing {
    position: relative;
    padding: 140px 0;
    color: #fff;
    overflow: hidden;
}

.custom-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.custom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: -1;
}

.custom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.custom-text {
    flex: 1;
    max-width: 500px;
}

.custom-text h2 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 24px;
}

.custom-text p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
}

.mt-32 {
    margin-top: 32px;
}

.custom-features {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 48px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.c-feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.c-icon {
    font-size: 32px;
}

.c-text {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Fabrics Collections (fabrics.html) */
.collection-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px;
}
.collection-row.reverse {
    flex-direction: row-reverse;
}
.collection-text {
    flex: 1;
}
.collection-text h2 {
    font-family: var(--font-display);
    font-size: 40px;
    margin-bottom: 24px;
}
.collection-text p {
    color: var(--color-text-muted);
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.6;
}
.collection-images {
    flex: 1.5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.collection-images > div {
    height: 400px;
    border-radius: 8px;
}
.collection-images .offset-image {
    transform: translateY(40px);
}
.collection-images.single-image {
    display: block;
    height: 500px;
    border-radius: 8px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .custom-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .custom-features {
        width: 100%;
    }
    .collection-row, .collection-row.reverse {
        flex-direction: column;
        gap: 40px;
    }
    .collection-text {
        text-align: center;
    }
    .collection-images {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none; /* Mobile menu needed later */
    }
    .hero-title {
        font-size: 42px;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .catalog-card {
        height: 380px;
    }
    .benefits-row {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    .custom-features {
        grid-template-columns: 1fr;
    }
    .collection-images {
        grid-template-columns: 1fr;
    }
    .collection-images .offset-image {
        transform: translateY(0);
    }
    .page-hero h1 {
        font-size: 42px !important;
    }
}
