/* 
 * Doleze Jecifi - Main Stylesheet
 * Custom design for herbal tea e-commerce site
 */

/* ========== BASE STYLES ========== */
:root {
    /* Color palette */
    --bg-color: #F5E3D6;
    --accent-1: #1B998B;
    --accent-2: #ED217C;
    --heading-color: #2E1A47;
    --text-color: #3D3D3D;
    --light-color: #FFFFFF;
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Font sizes */
    --h1-size: 3rem;
    --h2-size: 2.5rem;
    --h3-size: 1.8rem;
    --normal-text: 1rem;
    --small-text: 0.875rem;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 5rem;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0; /* Убираем отступ при скролле */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal);
}

a {
    text-decoration: none;
    color: var(--accent-1);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-2);
}

h1, h2, h3 {
    color: var(--heading-color);
    line-height: 1.2;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
    position: relative;
    padding-bottom: var(--space-sm);
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-2), var(--accent-1));
    border-radius: 2px;
}

h3 {
    font-size: var(--h3-size);
}

p {
    margin-bottom: var(--space-sm);
}

ul {
    list-style: none;
}

section {
    padding-bottom: var(--space-xl);
    padding-top: 0; /* Убираем верхний отступ секций */
    scroll-margin-top: 0; /* Убираем отступ при скролле */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    color: var(--light-color);
}

.btn-primary:hover {
    opacity: 0.9;
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-1);
    color: var(--accent-1);
}

.btn-outline:hover {
    background-color: var(--accent-1);
    color: var(--light-color);
}

.btn-buy {
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    color: var(--light-color);
    width: 100%;
    margin-top: var(--space-sm);
}

.btn-buy:hover {
    opacity: 0.9;
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 10px var(--shadow-color);
}

/* ========== HEADER ========== */
.header {
    background-color: rgba(245, 227, 214, 0.95);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-color);
    padding: var(--space-sm) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--heading-color);
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    width: 100%;
    background-color: var(--heading-color);
    margin-bottom: 5px;
    border-radius: 3px;
    transition: all var(--transition-fast);
}

.nav-menu ul {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-menu li a {
    font-weight: 500;
    color: var(--heading-color);
}

.nav-menu li a:hover {
    color: var(--accent-1);
}

/* ========== HERO ========== */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/oD7KbE.jpg');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    text-align: center;
    padding: var(--space-xl) 0;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.hero h1, .hero p {
    color: var(--light-color);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-md);
    background-color: rgba(46, 26, 71, 0.7);
    border-radius: var(--radius-lg);
    animation: fadeIn 1s ease-in-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-sm);
}

.lead {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== ABOUT ========== */
.about-content {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* ========== BENEFITS ========== */
.benefits {
    background-color: rgba(27, 153, 139, 0.1);
}

.benefits h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.benefits h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.benefit-card {
    background-color: var(--light-color);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-normal);
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

/* ========== PRODUCTS ========== */
.products h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.products h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.product-card {
    background-color: var(--light-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: var(--space-md);
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-card h3 {
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.product-card p {
    padding: 0 var(--space-md);
    margin-bottom: var(--space-sm);
}

.product-card ul {
    padding: 0 var(--space-md) var(--space-sm);
    margin-bottom: var(--space-sm);
    list-style: disc;
    margin-left: 1.2rem;
}

.product-card ul li {
    margin-bottom: 5px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-1);
    padding: 0 var(--space-md);
    margin-top: auto;
    margin-bottom: var(--space-sm);
}

/* ========== TESTIMONIALS ========== */
.testimonials {
    background-color: rgba(237, 33, 124, 0.1);
    text-align: center;
}

.testimonials h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial {
    background-color: var(--light-color);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 20px var(--shadow-color);
    margin: var(--space-md) 0;
    position: relative;
}

.testimonial::before {
    content: """;
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(27, 153, 139, 0.2);
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: var(--space-md);
}

.testimonial-author {
    font-weight: bold;
    color: var(--accent-1);
}

/* ========== CERTIFICATES ========== */
.certificates h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.certificates h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.certificate {
    background-color: var(--light-color);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-normal);
}

.certificate:hover {
    transform: translateY(-5px);
}

.certificate img {
    margin-bottom: var(--space-sm);
    max-height: 200px;
    object-fit: cover;
}

/* ========== FAQ ========== */
.faq {
    background-color: rgba(46, 26, 71, 0.05);
}

.faq h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.faq h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.faq-item {
    background-color: var(--light-color);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
}

.faq-question {
    padding: var(--space-md);
    position: relative;
    background-color: rgba(27, 153, 139, 0.1);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.faq-question h3 {
    margin: 0;
    color: var(--heading-color);
}

.faq-answer {
    padding: var(--space-md);
    background-color: var(--light-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-bottom: var(--space-md);
    border: 1px solid rgba(27, 153, 139, 0.2);
    border-top: none;
}

.faq-answer.static {
    display: block;
}

/* ========== ORDER FORM ========== */
.order-form {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, rgba(46, 26, 71, 0.1), rgba(27, 153, 139, 0.1));
}

.order-form h2 {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.order-form h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--light-color);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--accent-1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input {
    width: auto;
    margin-right: var(--space-xs);
    margin-top: 5px;
}

.form-submit {
    text-align: center;
    margin-top: var(--space-lg);
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--heading-color);
    color: var(--light-color);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
    color: var(--accent-2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-column h3 {
    color: var(--light-color);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-xs);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-2);
}

.footer-column ul li {
    margin-bottom: var(--space-xs);
}

.copyright {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--small-text);
    color: rgba(255, 255, 255, 0.6);
}

/* ========== COOKIE CONSENT ========== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(46, 26, 71, 0.95);
    color: var(--light-color);
    padding: var(--space-md);
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.cookie-content p {
    margin: 0;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 992px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 2rem;
        --h3-size: 1.5rem;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 60px);
        background-color: var(--bg-color);
        transition: left var(--transition-normal);
        box-shadow: 5px 0 15px var(--shadow-color);
    }
    
    .nav-menu ul {
        flex-direction: column;
        padding: var(--space-md);
    }
    
    .menu-toggle:checked ~ .nav-menu {
        left: 0;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked + .menu-icon span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content {
        padding: var(--space-md) var(--space-sm);
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 576px) {
    :root {
        --h1-size: 2rem;
        --h2-size: 1.8rem;
        --h3-size: 1.3rem;
        --space-xl: 3rem;
        --space-lg: 2rem;
    }
    
    section {
        padding: var(--space-lg) 0;
    }
    
    .container {
        width: 95%;
    }
    
    .products-grid, .benefits-grid, .certificates-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== SECTION ANCHOR POSITIONING ========== */
#about, #benefits, #products, #testimonials, #certificates, #faq, #order-form {
    scroll-margin-top: 150px; /* Ensure sections with anchor links appear properly below fixed header */
} 