:root {
    --primary-dark: #25595b;
    --primary-light: #368285;
    --beige: #f5f5dc;
    --light-beige: #ffffffff;
    --gold: #d4af37;
    --dark-text: #1f2c34;
    --light-text: #667781;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--light-beige);
    color: var(--dark-text);
    line-height: 1.7;
    min-height: 100vh;
    font-family: "Montserrat", Helvetica, sans-serif !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
}

.breadcrumbs span {
    margin: 0 8px;
    color: var(--light-text);
}

.breadcrumbs .current {
    color: var(--primary-dark);
    font-weight: 500;
}

/* PRODUCT CARD - две колонки */
.product-card {
    display: flex;
    flex-wrap: wrap;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(37, 89, 91, 0.08);
    overflow: hidden;
    margin-bottom: 60px;
    border: 1px solid rgba(37, 89, 91, 0.1);
    position: relative;
}

.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light), var(--gold));
    z-index: 1;
}

/* ЛЕВАЯ КОЛОНКА - ГАЛЕРЕЯ */
.product-gallery {
    flex: 1.2;
    min-width: 400px;
    padding: 40px;
    background: #fafdfd;
    position: relative;
}

.main-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(37, 89, 91, 0.15);
    background: white;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 89, 91, 0.7);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    font-size: 18px;
}

.slider-arrow:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 15px;
}

.slider-arrow.next {
    right: 15px;
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 12px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-dark);
    width: 28px;
    border-radius: 5px;
}

/* ПРАВАЯ КОЛОНКА - ИНФОРМАЦИЯ */
.product-info {
    flex: 1;
    min-width: 400px;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    background: white;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 30px;
    right: 40px;
    background: linear-gradient(135deg, var(--primary-dark), var(--gold));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 36px;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    padding-right: 100px;
}

.product-city {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 14px;
}

.product-city i {
    color: var(--primary-light);
}

.product-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 20px 0;
    position: relative;
    display: inline-block;
}

.product-price::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    border-radius: 2px;
}

.product-description {
    margin: 25px 0;
    color: var(--light-text);
    line-height: 1.8;
    font-size: 15px;
    background: rgba(245, 245, 220, 0.3);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-light);
}

.product-features {
    margin: 25px 0;
}

.product-features h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-features h3::before {
    content: "✦";
    color: var(--primary-light);
    font-size: 24px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(37, 89, 91, 0.08);
    display: flex;
    align-items: center;
    font-size: 14px;
}

.feature-list li:before {
    content: "✓";
    color: var(--primary-light);
    font-weight: bold;
    margin-right: 12px;
    font-size: 14px;
    background: rgba(54, 130, 133, 0.1);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-label {
    font-weight: 600;
    color: var(--dark-text);
    min-width: 100px;
}

.feature-value {
    color: var(--light-text);
}

/* КНОПКИ */
.product-actions {
    margin-top: auto;
    display: flex;
    gap: 15px;
    padding-top: 25px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    box-shadow: 0 8px 20px rgba(37, 89, 91, 0.3);
    position: relative;
    overflow: hidden;
    gap: 8px;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(37, 89, 91, 0.4);
}

.btn:hover::before {
    left: 100%;
}

.btn i {
    transition: transform 0.3s;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-dark);
    border: 2px solid var(--primary-dark);
    box-shadow: none;
}

.btn-secondary::before {
    display: none;
}

.btn-secondary:hover {
    background: rgba(37, 89, 91, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 89, 91, 0.2);
}

.btn-secondary:hover i {
    transform: translateX(-5px);
}

/* РЕКОМЕНДАЦИИ */
.other-products {
    margin-top: 60px;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    color: var(--primary-dark);
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(37, 89, 91, 0.1);
    position: relative;
    font-weight: 700;
    text-align: center;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(37, 89, 91, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(37, 89, 91, 0.1);
    position: relative;
    text-decoration: none;
    display: block;
    width: 100%;
}

.product-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-light));
    z-index: 1;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 89, 91, 0.15);
}

.product-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease;
    position: relative;
}

.product-item:hover .product-image {
    transform: scale(1.05);
}

.product-details {
    padding: 18px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-price-small {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* УВЕДОМЛЕНИЯ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    background-color: #4caf50;
}

.notification.error {
    background-color: #f44336;
}

/* МОДАЛЬНОЕ ОКНО */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-body {
    padding: 25px;
}

.close {
    position: absolute;
    right: 20px;
    top: 18px;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(37, 89, 91, 0.1);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(245, 245, 220, 0.3);
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    background: white;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1a4142, var(--primary-dark));
    transform: translateY(-2px);
}

/* АНИМАЦИИ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1024px) {
    .product-gallery,
    .product-info {
        min-width: 100%;
    }
    
    .product-card {
        flex-direction: column;
    }
    
    .slide {
        height: 400px;
    }
    
    .product-title {
        font-size: 32px;
        padding-right: 0;
    }
    
    .product-price {
        font-size: 36px;
    }
    
    .product-badge {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .product-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .product-gallery {
        padding: 25px;
    }
    
    .product-info {
        padding: 30px 25px;
    }
    
    .slide {
        height: 280px;
    }
    
    .product-title {
        font-size: 26px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .products-grid {
        gap: 20px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-details {
        padding: 15px;
    }
    
    .product-name {
        font-size: 15px;
        min-height: 40px;
    }
    
    .product-price-small {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .slide {
        height: 220px;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .product-title {
        font-size: 22px;
    }
    
    .product-price {
        font-size: 28px;
    }
    
    .feature-label {
        min-width: 80px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .product-image {
        height: 220px;
    }
    
    .product-item {
        max-width: 100%;
    }
}}