/*
Theme Name: Классика Окон
Theme URI: 
Author: Ваше имя
Author URI: 
Description: Премиальная тема для оконной компании
Version: 3.0
License: GPL v2 or later
Text Domain: classica-okon
*/

/* ============================================
   БАЗОВЫЕ СТИЛИ И ПЕРЕМЕННЫЕ
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #333333;
    background-color: #f8f6f2;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

:root {
    --gold: #d4af37;
    --light-gold: #e8d9b0;
    --dark-gold: #b8941f;
    --cream: #f8f6f2;
    --light-cream: #fffefb;
    --warm-gray: #e8e6e1;
    --text-dark: #333333;
    --text-light: #5a5a5a;
    --accent-blue: #4537d3;
}

/* ============================================
   ШАПКА И НАВИГАЦИЯ
   ============================================ */
header {
    background: var(--light-cream);
    border-bottom: 1px solid var(--light-gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(212, 175, 55, 0.08);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Два логотипа в шапке */
.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-divider {
    width: 1px;
    height: 40px;
    background: var(--light-gold, #e8d9b0);
}

.logo-img,
.custom-logo {
    max-height: 50px;
    max-width: 180px;
    width: auto;
    height: auto;
}

.second-logo {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.second-logo-img {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
/* Два логотипа в шапке */
.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-divider {
    width: 1px;
    height: 40px;
    background: var(--light-gold, #e8d9b0);
}

.logo-img,
.custom-logo {
    max-height: 50px;
    max-width: 180px;
    width: auto;
    height: auto;
}

.second-logo {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.second-logo-img {
    max-height: 40px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .logo-container {
        gap: 10px;
    }
    .logo-divider {
        height: 25px;
    }
    .logo-img,
    .custom-logo {
        max-height: 35px;
        max-width: 130px;
    }
    .second-logo {
        max-width: 80px;
    }
    .second-logo-img {
        max-height: 30px;
    }
}
/* Мобильная адаптация */
@media (max-width: 768px) {
    .logo-container {
        gap: 10px;
    }
    .logo-divider {
        height: 25px;
    }
    .logo-img,
    .custom-logo {
        max-height: 35px;
        max-width: 130px;
    }
    .second-logo {
        max-width: 80px;
    }
    .second-logo-img {
        max-height: 30px;
    }
}
.header-contact {
    text-align: right;
}

.phone {
    color: var(--gold);
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
}

.callback-btn {
    background: var(--gold);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.callback-btn:hover {
    background: var(--dark-gold);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--gold);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.desktop-nav {
    background: var(--warm-gray);
    border-top: 1px solid var(--light-gold);
}

.nav-menu {
    display: flex;
    list-style: none;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 18px 25px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.nav-menu a:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-menu a:hover::after {
    transform: scaleX(1);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--light-cream);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: right 0.4s ease;
    padding: 80px 20px 20px;
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: 10px;
    border-bottom: 1px solid var(--warm-gray);
}

.mobile-nav a {
    display: block;
    padding: 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s;
}

.mobile-nav a:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
    padding-left: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   ГЛАВНЫЙ БАННЕР
   ============================================ */
.hero {
    background: linear-gradient(rgba(248, 246, 242, 0.95), rgba(248, 246, 242, 0.95));
    background-size: cover;
    background-position: center;
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 48px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: normal;
}

.hero h1 strong {
    color: var(--gold);
    font-weight: bold;
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ============================================
   КНОПКИ
   ============================================ */
.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gold);
    color: white;
    margin-right: 15px;
}

.btn-primary:hover {
    background: var(--dark-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.btn-outline {
    border-color: var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold);
    color: white;
}

/* ============================================
   СЕКЦИИ
   ============================================ */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
}

/* ============================================
   ПРЕИМУЩЕСТВА
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light-cream);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--warm-gray);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.1);
    border-color: var(--light-gold);
}

.feature-icon {
    height: 60px;
    margin-bottom: 20px;
}

.feature-icon img {
    height: 100%;
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 20px;
}

/* ============================================
   УСЛУГИ
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-cream);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border: 1px solid var(--warm-gray);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.1);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 22px;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ============================================
   ОКНА (КАРТОЧКИ)
   ============================================ */
.windows-full-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f6f2 0%, #fff 100%);
}

.windows-full-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.window-full-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: transform 0.3s;
}

.window-full-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
}

.window-full-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.window-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.window-full-card:hover .window-full-image img {
    transform: scale(1.05);
}

.window-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #d4af37;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}

.window-type-badge.premium {
    background: #b8941f;
}

.window-full-content {
    padding: 30px;
}

.window-full-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.window-full-price {
    font-size: 32px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 20px;
}

.window-specs-block {
    background: #f8f6f2;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.window-specs-block h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.specs-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: #666;
}

.spec-value {
    font-weight: 600;
    color: #333;
}

.window-features-block {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.feature-tag {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #f0f0f0;
    color: #555;
}

.feature-tag.safety { background: #e3f2fd; color: #1565c0; }
.feature-tag.heat { background: #fff3e0; color: #ef6c00; }
.feature-tag.noise { background: #e8f5e9; color: #2e7d32; }
.feature-tag.sun { background: #fff8e1; color: #f9a825; }
.feature-tag.fall { background: #fce4ec; color: #c62828; }

.window-full-btn {
    background: #d4af37;
    color: #333;
    border: none;
    padding: 14px 25px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.window-full-btn:hover {
    background: #b8941f;
    transform: translateY(-2px);
    color: white;
}

/* ============================================
   КОМПЛЕКТУЮЩИЕ
   ============================================ */
.components-section {
    padding: 80px 0;
    background: #fff;
}

.components-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.component-card {
    display: flex;
    background: #f8f6f2;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s;
    min-height: 200px;
}

.component-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.component-image {
    width: 180px;
    flex-shrink: 0;
}

.component-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.component-content {
    padding: 25px;
    flex: 1;
}

.component-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.component-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* ============================================
   ОСОБЕННОСТИ
   ============================================ */
.features-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item-small {
    text-align: center;
    padding: 20px;
}

.feature-icon-small img {
    height: 50px;
    margin-bottom: 15px;
}

.feature-item-small h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 18px;
}

/* ============================================
   ПОРТФОЛИО
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 25px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h4 {
    margin: 0;
    font-size: 18px;
}

/* ============================================
   ОТЗЫВЫ
   ============================================ */
.reviews-carousel-section {
    padding: 80px 0;
    background: #f8f6f2;
}

.reviews-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.carousel-container {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.review-slide {
    flex: 0 0 100%;
    padding: 20px;
}

.review-card-slide {
    background: white;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.review-header-slide {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.review-avatar-slide {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
}

.review-avatar-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-info-slide h4 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.review-date-slide {
    font-size: 14px;
    color: #999;
}

.review-text-slide p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    font-style: italic;
}

.carousel-btn {
    background: #d4af37;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    color: #333;
}

.carousel-btn:hover {
    background: #b8941f;
    transform: scale(1.05);
    color: white;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: #d4af37;
    width: 30px;
    border-radius: 10px;
}

/* ============================================
   ПОДВАЛ
   ============================================ */
footer {
    background: var(--text-dark);
    color: var(--cream);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--gold);
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-column a {
    color: var(--cream);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-column a:hover {
    color: var(--light-gold);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--light-gold);
    font-size: 14px;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    position: relative;
    background: white;
    border-radius: 28px;
    width: 90%;
    max-width: 850px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(0,0,0,0.5);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: white;
    z-index: 10;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #d4af37;
    transform: rotate(90deg);
}

.modal-split {
    display: flex;
    flex-wrap: wrap;
}

.modal-image-side {
    flex: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.modal-image-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.modal-image-title {
    font-size: 28px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 15px;
}

.modal-image-text {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-features {
    text-align: left;
    max-width: 200px;
    margin: 0 auto;
}

.modal-feature {
    color: #fff;
    margin-bottom: 12px;
    font-size: 14px;
}

.modal-form-side {
    flex: 1;
    padding: 40px 35px;
    background: white;
}

.modal-form-header {
    margin-bottom: 25px;
    text-align: center;
}

.modal-form-header h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 8px;
}

.modal-form-header p {
    font-size: 14px;
    color: #888;
}

.modal-product-info {
    background: #f8f6f2;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #555;
    border-left: 3px solid #d4af37;
}

.modal-form-group {
    margin-bottom: 18px;
}

.modal-form-group input,
.modal-form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #fafafa;
}

.modal-form-group input:focus,
.modal-form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.modal-submit {
    width: 100%;
    background: #d4af37;
    color: #333;
    border: none;
    padding: 15px;
    border-radius: 40px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-submit:hover {
    background: #b8941f;
    transform: translateY(-2px);
    color: white;
}

.modal-message {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

/* ============================================
   АДАПТАЦИЯ
   ============================================ */
@media (max-width: 1024px) {
    .windows-full-grid {
        grid-template-columns: 1fr;
    }
    .components-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: row;
        align-items: center;
        padding: 10px 0;
    }
    
    .menu-toggle {
        display: block;
        order: 1;
    }
    
    .logo-container {
        order: 2;
        flex: 1;
        justify-content: center;
    }
    
    .header-contact {
        display: none;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
        padding: 0 20px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    section {
        padding: 50px 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        gap: 8px;
    }
    
    .window-full-title {
        font-size: 20px;
    }
    
    .window-full-price {
        font-size: 28px;
    }
    
    .component-card {
        flex-direction: column;
    }
    
    .component-image {
        width: 100%;
        height: 180px;
    }
    
    .reviews-carousel {
        gap: 8px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .review-card-slide {
        padding: 20px;
    }
    
    .review-header-slide {
        gap: 12px;
    }
    
    .review-avatar-slide {
        width: 50px;
        height: 50px;
    }
    
    .review-info-slide h4 {
        font-size: 16px;
    }
    
    .review-text-slide p {
        font-size: 14px;
    }
    
    .modal-image-side {
        display: none;
    }
    
    .modal-form-side {
        flex: none;
        width: 100%;
        padding: 30px 25px;
    }
    
    .modal-container {
        max-width: 450px;
    }
}

@media (min-width: 769px) {
    .mobile-nav, .overlay {
        display: none;
    }
}
</style>