/* ============================================
   Design System: Living Plants Interior Design System
   Adapted for Aoying Cosmetics
   ============================================ */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-dark-green: #2d5f4f;
    --accent-orange: #e87e51;
    --light-bg: #e8f0e8;
    --cream-white: #fafaf8;
    --text-primary-dark: #1a2f2a;
    --text-secondary-gray: #7a8a7e;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --padding-horizontal-desktop: 40px;
    --padding-horizontal-mobile: 20px;
    --padding-vertical-section: 80px;
    
    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 24px;
    
    /* Shadows */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary-dark);
    background-color: var(--cream-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--padding-horizontal-desktop);
}

/* ============================================
   Typography
   ============================================ */

h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark-green);
    text-transform: uppercase;
    margin-bottom: 20px;
}

h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-dark-green);
}

h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark-green);
}

p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-primary-dark);
}

.section-title {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary-gray);
    font-size: 14px;
    margin-bottom: 48px;
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    padding: 16px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark-green);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-orange);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-dark-green);
    transition: all 0.3s ease;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    margin-top: 82px;
    padding: var(--padding-vertical-section) 0;
    background: linear-gradient(to bottom, var(--cream-white), var(--light-bg));
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary-gray);
    margin-bottom: 32px;
}

.hero-image {
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-large);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.btn-primary {
    background-color: var(--accent-orange);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #d76b3f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-dark-green);
    border: 1px solid var(--primary-dark-green);
    padding: 10px 20px;
    border-radius: 20px;
}

.btn-secondary:hover {
    background-color: var(--primary-dark-green);
    color: #ffffff;
}

.btn-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ============================================
   Catalog Section
   ============================================ */

.catalog {
    padding: var(--padding-vertical-section) 0;
    background-color: #ffffff;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background-color: var(--cream-white);
    border-radius: var(--radius-medium);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: var(--light-bg);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
}

.product-title {
    margin-bottom: 12px;
    font-size: 20px;
}

.product-description {
    font-size: 14px;
    color: var(--text-secondary-gray);
    line-height: 1.6;
}

/* ============================================
   About Section
   ============================================ */

.about {
    padding: var(--padding-vertical-section) 0;
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-description {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary-dark);
    margin-bottom: 20px;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-medium);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefit-card {
    padding: 32px 24px;
    border-radius: var(--radius-small);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    aspect-ratio: 1;
    min-height: 200px;
}

.benefit-card-dark {
    background-color: var(--primary-dark-green);
    color: #ffffff;
}

.benefit-card-light {
    background-color: var(--cream-white);
    color: var(--text-primary-dark);
}

.benefit-title {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: inherit;
}

.benefit-card-dark .benefit-title {
    color: #ffffff;
}

.benefit-text {
    font-size: 14px;
    line-height: 1.5;
    color: inherit;
}

.benefit-card-dark .benefit-text {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Reviews Section
   ============================================ */

.reviews {
    padding: var(--padding-vertical-section) 0;
    background-color: #ffffff;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.review-card {
    background-color: var(--cream-white);
    padding: 32px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.review-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-location {
    font-size: 12px;
    color: var(--text-secondary-gray);
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary-dark);
    margin-bottom: 16px;
    font-style: italic;
}

.review-rating {
    color: var(--accent-orange);
    font-size: 16px;
}

/* ============================================
   Contacts Section
   ============================================ */

.contacts {
    padding: var(--padding-vertical-section) 0;
    background-color: var(--light-bg);
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    margin-bottom: 32px;
}

.contact-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-dark-green);
}

.contact-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary-dark);
}

.contact-form-wrapper {
    background-color: #ffffff;
    padding: 40px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary-dark-green);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-dark-green);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d0d0d0;
    border-radius: var(--radius-small);
    font-size: 14px;
    font-family: var(--font-primary);
    color: var(--text-primary-dark);
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-dark-green);
}

.form-input.error,
.form-textarea.error {
    border-color: #dc3545;
}

.nav-link.active {
    color: var(--accent-orange);
}

.nav-link.active::after {
    width: 100%;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-small);
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ============================================
   Footer
   ============================================ */

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--primary-dark-green);
    color: #ffffff;
    padding: 60px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo-wrapper {
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 32px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-partners {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-partner-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-small);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.footer-partner-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    opacity: 1;
    transform: translateY(-2px);
}

.footer-partner-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

/* ============================================
   Modal Windows
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: var(--radius-medium);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    padding: 40px;
    margin: 20px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-secondary-gray);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background-color: var(--light-bg);
    color: var(--primary-dark-green);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark-green);
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-right: 50px;
}

.modal-body {
    color: var(--text-primary-dark);
    line-height: 1.8;
}

.modal-body p {
    margin-bottom: 16px;
    font-size: 16px;
}

.modal-body strong {
    color: var(--primary-dark-green);
    font-weight: 600;
}

.modal-body ul {
    margin: 16px 0;
    padding-left: 24px;
}

.modal-body li {
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.6;
}

.modal-body ul li::marker {
    color: var(--accent-orange);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1199px) {
    .container {
        padding: 0 var(--padding-horizontal-mobile);
    }
    
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .hero-content {
        gap: 40px;
    }
    
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-partners {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 0 var(--padding-horizontal-mobile);
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .header-content {
        position: relative;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-medium);
        display: none;
        gap: 16px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        margin-top: 70px;
        padding: 40px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-partners {
        justify-content: center;
        gap: 16px;
    }
    
    .footer-partner-logo {
        height: 35px;
        max-width: 100px;
    }
    
    section {
        padding: 40px 0 !important;
    }
    
    .modal-content {
        padding: 24px;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-title {
        font-size: 24px;
        padding-right: 40px;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        font-size: 28px;
        width: 36px;
        height: 36px;
    }
    
    .modal-body p,
    .modal-body li {
        font-size: 14px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Fallback */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Loading State for Images */
img[src*="aoying-al.ru"] {
    background-color: var(--light-bg);
    min-height: 200px;
}

