/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Цветовая палитра - СВЕТЛАЯ СИНЯЯ ТЕМА */
    --primary-blue: #3b82f6;         /* Яркий, но не темный синий */
    --primary-light: #60a5fa;        /* Светло-синий */
    --primary-soft: #93c5fd;         /* Мягкий голубой */
    --accent-gold: #fbbf24;          /* Светлый золотой акцент */
    --accent-teal: #22d3ee;          /* Бирюзовый акцент */
    
    /* Фоны - СВЕТЛЫЕ */
    --bg-cream: #f8fafc;             /* Очень светлый серо-голубой */
    --bg-light: #ffffff;             /* Белый */
    --bg-white: #ffffff;             /* Чисто белый */
    
    /* Текст - СВЕТЛЫЕ ОТТЕНКИ */
    --text-dark: #475569;            /* Светло-серый (не черный) */
    --text-medium: #64748b;          /* Средний серый */
    --text-light: #94a3b8;           /* Светлый серый */
    
    /* Розовый для эксклюзивной двери (светлый) */
    --pink-door: #fbcfe8;
    --pink-soft: #f9a8d4;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ШАПКА ===== */
.header {
    background: var(--bg-white);
    box-shadow: 0 2px 20px rgba(59, 130, 246, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    max-height: 200px;
    left: 50%;
    transform: translateX(-50%);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
}

.logo img {
    max-height: 500px !important;
    width: 100px;
    display: block !important;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: var(--primary-blue);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contacts span {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== КНОПКИ ===== */
.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 10px 23px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* ===== ГЛАВНЫЙ БАННЕР ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-blue) 100%);
    color: white;
    padding: 180px 0 120px;
    margin-top: 70px;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== КОНФИГУРАТОР ДВЕРИ ===== */
.door-configurator {
    padding: 100px 0;
    background: var(--bg-light);
}

.configurator-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.configurator-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.main-door-view {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.door-image {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.door-info {
    margin-top: 30px;
}

.door-info h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.door-info p {
    color: var(--text-medium);
    margin-bottom: 20px;
    line-height: 1.6;
}

.door-price .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-blue);
    display: block;
    margin-bottom: 25px;
}

.btn-order {
    background: var(--accent-teal);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-order:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

/* Выбор цвета */
.color-selection {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    border: 1px solid #f1f5f9;
}

.color-selection h4 {
    margin-bottom: 20px;
    color: var(--primary-blue);
    font-size: 1.3rem;
}

.color-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option:hover,
.color-option.active {
    border-color: var(--primary-blue);
    background: var(--bg-cream);
    transform: translateY(-2px);
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
}

.color-swatch.white { background: white; }
.color-swatch.black { background: #4b5563; }
.color-swatch.blue { background: var(--primary-blue); }

.color-name {
    font-weight: 600;
    color: var(--text-dark);
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.features {
    padding: 100px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.feature-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: var(--primary-blue);
    color: white;
    padding: 60px 0 20px;
    width: 100%;
    max-width: 100%; 
    margin: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: var(--accent-gold);
}

.footer-section a {
    display: block;
    color: #e2e8f0;
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-section span {
    display: block;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

/* ===== СТРАНИЦА КАТАЛОГА ===== */
.catalog-page {
    padding: 120px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.catalog-page h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.catalog-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* СЕКЦИИ СЕРИЙ */
.series-section {
    margin-bottom: 60px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    border: 1px solid #f1f5f9;
}

.series-section:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.12);
}

.series-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f5f9;
}

.series-title {
    font-size: 2rem;
    color: var(--primary-blue);
    margin: 0;
}

.series-count {
    background: var(--primary-light);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Подсекции */
.series-section > div > h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

/* КАРТОЧКИ КОЛЛЕКЦИЙ */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.collection-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
    border-color: var(--primary-soft);
}

.card-image {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-cream);
}

.card-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
    line-height: 1.4;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-medium);
    margin-bottom: 15px;
    line-height: 1.5;
    flex-grow: 1;
}

.card-price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.stock-info {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.stock-info.available {
    background: #dcfce7;
    color: #166534;
}

.stock-info.soon {
    background: #fef3c7;
    color: #92400e;
}

.card-content .btn-primary {
    padding: 10px 20px;
    font-size: 1rem;
    width: 100%;
    margin-top: auto;
}

/* ===== СТРАНИЦА ДВЕРИ ===== */
.door-detail {
    padding: 120px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.door-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.door-gallery {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.door-gallery .main-image {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
}

.door-details {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    border: 1px solid #f1f5f9;
}

.door-details h1 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 2.2rem;
}

.door-details .price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 25px;
    display: block;
}

.door-details p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.specifications {
    margin: 30px 0;
}

.specifications h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.specifications ul {
    list-style: none;
    padding: 0;
}

.specifications li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-medium);
}

.specifications li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.exclusive-badge {
    background: linear-gradient(45deg, var(--primary-soft), var(--accent-teal));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    margin: 15px 0;
    font-weight: bold;
    font-size: 0.9rem;
}

/* ===== СТРАНИЦА ПОРТФОЛИО ===== */
.portfolio-page {
    padding: 120px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.portfolio-page h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.portfolio-subtitle {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-medium);
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.portfolio-overlay p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-view {
    background: var(--accent-teal);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-view:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-category {
    background: var(--bg-cream);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.portfolio-info h4 {
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.portfolio-cta {
    background: white;
    padding: 60px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    border: 1px solid #f1f5f9;
}

.portfolio-cta h2 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 2rem;
}

.portfolio-cta p {
    color: var(--text-medium);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.contacts-page {
    padding: 120px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.contacts-page h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-details {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    border: 1px solid #f1f5f9;
}

.contact-details h2 {
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.contact-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.contact-item strong {
    display: block;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item span {
    color: var(--text-medium);
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    border: 1px solid #f1f5f9;
}

.contact-form h2 {
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== СТРАНИЦА УСЛУГ ===== */
.services-page {
    padding: 120px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.services-page h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card-large {
    background: white;
    padding: 50px 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
}

.service-card-large:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
}

.service-card-large .service-icon {
    font-size: 4rem;
    margin-bottom: 25px;
    color: var(--primary-blue);
}

.service-card-large h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.service-card-large p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.service-card-large ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
}

.service-card-large li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-medium);
}

.service-card-large li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* ===== СТРАНИЦА О КОМПАНИИ ===== */
.about-page {
    padding: 120px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.about-page h1 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h2 {
    color: var(--primary-blue);
    margin: 30px 0 20px;
    font-size: 1.8rem;
}

.about-text p {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.advantages {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.advantage {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.08);
    border: 1px solid #f1f5f9;
}

.advantage strong {
    color: var(--primary-blue);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

.about-stats {
    display: grid;
    gap: 25px;
}

.stat-large {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    text-align: center;
    border: 1px solid #f1f5f9;
}

.stat-large .number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.stat-large .label {
    color: var(--text-medium);
    font-size: 1.1rem;
}

/* ===== КАТАЛОГ ГРИД ===== */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.catalog-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #f1f5f9;
}

.catalog-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
    border-color: var(--primary-soft);
}

.catalog-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.catalog-item h3 {
    padding: 25px 25px 10px;
    color: var(--primary-blue);
    font-size: 1.4rem;
}

.catalog-item p {
    padding: 0 25px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 15px;
}

.catalog-item .price {
    display: block;
    padding: 0 25px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.catalog-item .btn-primary {
    margin: 0 25px 25px;
    width: calc(100% - 50px);
    text-align: center;
}

/* ===== ПРОСТЫЕ КОНТАКТЫ ===== */
.contacts-simple {
    padding: 120px 0 80px;
    background: var(--bg-light);
    min-height: 100vh;
}

.contacts-simple h1 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-blue);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.08);
    border: 1px solid #f1f5f9;
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.simple-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.08);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #f1f5f9;
}

.simple-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-blue);
}

.simple-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.simple-form input {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.simple-form input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

/* ===== ФИКСЫ И УТИЛИТЫ ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ФИКС: Полноразмерные изображения дверей */
.catalog-grid .catalog-item .door-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 500px;
    background: var(--bg-cream);
    padding: 20px;
}

.catalog-grid .catalog-item .door-image-placeholder img {
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 450px;
    object-fit: scale-down;
}

/* НАДПИСИ ТИПОВ ДВЕРЕЙ */
.door-type-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.door-type-link {
    background: var(--bg-cream);
    color: var(--primary-blue);
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--primary-soft);
    transition: all 0.3s ease;
    display: inline-block;
}

.door-type-link:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.door-type-link.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.door-type-link.small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* СТИЛИ ДЛЯ ФИЛЬТРОВ */
.catalog-filters {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
    height: fit-content;
    border: 1px solid #f1f5f9;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.filter-checkbox {
    display: block;
    padding: 10px 0;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.filter-checkbox:hover {
    color: var(--primary-blue);
}

.filter-checkbox input {
    margin-right: 10px;
}

/* Адаптивность для фильтров */
@media (max-width: 768px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    
    .catalog-filters {
        position: static;
        margin-bottom: 30px;
    }
}

/* ГРАДИЕНТНЫЕ ЭФФЕКТЫ */
.accent {
    color: var(--accent-teal);
}

.highlight {
    background: linear-gradient(120deg, var(--accent-teal) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Градиентные кнопки */
.btn-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-soft) 100%);
}

/* Дополнительные эффекты */
.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary-blue), var(--accent-teal)) border-box;
}

/* Анимация загрузки */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading-pulse {
    animation: pulse 1.5s infinite;
}

/* Стили для кастомного скроллбара */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-soft);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Выделение текста */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--primary-blue);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 140px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .configurator-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .series-section {
        padding: 20px;
    }
    
    .series-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .series-count {
        align-self: flex-start;
    }
    
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }
    
    .door-detail .container {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .collections-grid {
        grid-template-columns: 1fr;
    }
    
    .collection-card {
        padding: 15px;
    }
    
    .card-image {
        height: 180px;
    }
}

/* ===== РАССТОЯНИЕ МЕЖДУ КНОПКАМИ 5px ===== */
.collection-card .card-content .btn-primary:nth-child(7) {
    margin-bottom: 5px !important; /* Первая кнопка "Заказать" */
}

.collection-card .card-content .btn-primary:nth-child(8) {
    margin-top: 5px !important; /* Вторая кнопка "Заказать комплект" */
}

/* Или просто для всех кнопок в карточке */
.collection-card .card-content .btn-primary {
    margin: 5px 0 !important;
}

/* Оставшиеся импорты (они могут быть пустыми или не существовать) */
@import url('reset.css');
@import url('variables.css');
@import url('typography.css');
@import url('layout.css');
@import url('grid.css');
@import url('responsive.css');
@import url('components/buttons.css');
@import url('components/cards.css');
@import url('components/forms.css');
@import url('components/header.css');
@import url('sections/hero.css');
@import url('sections/configurator.css');
@import url('sections/calculation.css');


/* ===== ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ ===== */
@media (max-width: 768px) {
    /* Увеличиваем высоту хедера на мобильных */
    .header {
        height: 120px !important; /* Больше места для двух строк */
    }
    
    /* Увеличиваем отступ body на мобильных */
    body {
        padding-top: 120px !important;
    }
    
    /* Исправляем отступ для всех страниц на мобильных */
    .catalog-page,
    .door-detail,
    .portfolio-page,
    .services-page,
    .about-page,
    .contacts-page,
    .contacts-simple,
    .door-configurator,
    .features,
    .hero {
        padding-top: 120px !important;
    }
    
    /* Специально для hero страницы */
    .hero {
        padding: 120px 0 80px !important; /* Уже включает padding-top */
        margin-top: 0 !important;
    }
    
    /* Для страниц коллекций, если они используют другой класс */
    .page-container {
        padding-top: 120px !important;
    }
}

/* Дополнительно для очень маленьких экранов */
@media (max-width: 480px) {
    .header {
        height: 140px !important; /* Еще больше для очень маленьких экранов */
    }
    
    body {
        padding-top: 140px !important;
    }
    
    .catalog-page,
    .door-detail,
    .portfolio-page,
    .services-page,
    .about-page,
    .contacts-page,
    .contacts-simple,
    .door-configurator,
    .features,
    .hero,
    .page-container {
        padding-top: 140px !important;
    }
    
    .hero {
        padding: 140px 0 60px !important;
    }
}

