/* 
* raxube-kexizo - Natural Tea Website
* Color Palette:
* - Page Background: #0E1D1B (Deep dark green)
* - Accent (CTA): #F05D5E (Bright coral)
* - Secondary Block Background: #FFFBE6 (Warm beige, "tea" tone)
* - Main Text: #F5F7F8 (Light gray, eye-comfortable)
* - Headings: #FFE156 (Yellowish, creates contrast)
* - Decorative Element: #3FB68B (Mint green, herbal association)
*/

/* Base Styles & Reset */
:root {
    --color-bg: #0E1D1B;
    --color-accent: #F05D5E;
    --color-secondary-bg: #FFFBE6;
    --color-text: #F5F7F8;
    --color-heading: #FFE156;
    --color-decorative: #3FB68B;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-headings: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--color-accent);
    transition: var(--transition);
}

a:hover {
    color: var(--color-heading);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-heading);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2rem;
    text-align: center;
}

h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(even) {
    background-color: rgba(255, 251, 230, 0.05);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transform: translateY(100%);
    transition: var(--transition);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    background-color: #d84748;
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: white;
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(14, 29, 27, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
}

.logo svg {
    display: block;
    height: 50px;
    width: auto;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--color-heading);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('img/xvnBB0.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    text-align: center;
    margin-top: 0;
    padding-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(14, 29, 27, 0.8), rgba(14, 29, 27, 0.6));
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeIn 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.3s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeIn 1s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(63, 182, 139, 0.3), rgba(240, 93, 94, 0.3));
    z-index: 1;
}

.about-image img {
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* How It Works Section */
.how-it-works {
    background-color: var(--color-secondary-bg);
    color: var(--color-bg);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: 5rem 0;
}

.how-it-works h2, .how-it-works h3 {
    color: var(--color-bg);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--color-decorative);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 251, 230, 0.05);
    border-radius: 10px;
    transition: var(--transition);
}

.benefit:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 251, 230, 0.1);
}

.benefit-icon {
    margin: 0 auto 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ingredients Section */
.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.ingredient {
    text-align: center;
    transition: var(--transition);
}

.ingredient img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.ingredient:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Testimonials Section */
.testimonials {
    background: linear-gradient(135deg, rgba(14, 29, 27, 0.9), rgba(14, 29, 27, 0.8)), url('img/ehCgl3.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    margin: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 2rem;
    transition: var(--transition);
}

.testimonial:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -10px;
    color: rgba(240, 93, 94, 0.2);
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author h3 {
    margin-bottom: 0.25rem;
}

.testimonial-author p {
    font-size: 0.9rem;
    color: rgba(245, 247, 248, 0.8);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product {
    background-color: rgba(255, 251, 230, 0.05);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 251, 230, 0.1);
}

.product.featured {
    border: 2px solid var(--color-accent);
    transform: scale(1.05);
    z-index: 1;
}

.product.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.featured-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.product h3 {
    margin-top: 1rem;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-heading);
    margin: 1rem 0;
}

.product ul {
    text-align: left;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
    flex-grow: 1;
}

.product ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.product ul li::before {
    content: '✓';
    color: var(--color-decorative);
    position: absolute;
    left: 0;
    top: 0;
}

.product .btn {
    align-self: center;
}

/* Order Form Section */
.order {
    background-color: var(--color-secondary-bg);
    color: var(--color-bg);
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    margin-top: 5rem;
    padding-bottom: 7rem;
}

.order h2, .order h3, .order label {
    color: var(--color-bg);
}

/* Делаем заголовок Narudžba čaja белым */
.order h2 {
    color: white;
}

form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(240, 93, 94, 0.2);
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    width: auto;
    margin-right: 10px;
}

.checkbox label {
    margin-bottom: 0;
}

/* Contact Section */
.contact {
    background-color: rgba(14, 29, 27, 0.8);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    max-width: 500px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item svg {
    margin-right: 1rem;
    flex-shrink: 0;
}

/* Footer */
.main-footer {
    background-color: rgba(10, 20, 18, 0.9);
    padding: 5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.slogan {
    margin-top: 1rem;
    font-style: italic;
    color: rgba(245, 247, 248, 0.8);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(245, 247, 248, 0.1);
    text-align: center;
    color: rgba(245, 247, 248, 0.6);
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(10, 20, 18, 0.95);
    padding: 1.5rem 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 0.8rem 0;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav {
        width: 100%;
        overflow-x: auto;
    }
    
    .main-nav ul {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 0.5rem;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .main-nav ul::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .main-nav ul li {
        flex: 0 0 auto;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    form {
        padding: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    section {
        padding: 3rem 0;
    }
    
    .product.featured {
        transform: scale(1);
    }
    
    .product.featured:hover {
        transform: translateY(-10px);
    }
    
    .testimonial {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes scale {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Thank You Page */
.thank-you {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background-color: rgba(255, 251, 230, 0.05);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-out;
}

.thank-you-icon {
    margin: 0 auto 2rem;
    animation: scale 2s infinite ease-in-out;
}

.thank-you h1 {
    margin-bottom: 1.5rem;
}

.thank-you p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.thank-you-actions {
    margin-top: 2.5rem;
} 