/* 
   vibixi-vuduxu - Ricette di Cucina Sana
   Stylesheets
*/

:root {
    /* Colors */
    --color-primary: #CFFF04; /* нeоновый лайм */
    --color-background-start: #2C003E; /* баклажановый */
    --color-background-end: #000000; /* чeрный */
    --color-accent-1: #3E00FF; /* ультрамарин */
    --color-accent-2: #3FFFA8; /* мятный */
    --color-text: #FFFFFF; /* бeлый */
    --color-text-light: #DDDDDD; /* свeтло-сeрый */
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 8px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Значение больше высоты шапки */
}

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-background-start), var(--color-background-end));
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent-2);
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background-end);
    box-shadow: 0 4px 12px rgba(207, 255, 4, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-accent-2);
    color: var(--color-background-end);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(63, 255, 168, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-background-end);
}

/* Header */
.main-header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(8px);
    background-color: rgba(44, 0, 62, 0.8);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 24px;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.main-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-nav a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span:nth-child(3) {
    bottom: 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 10px;
}

/* Main Content */
main {
    padding-top: 80px;
}

section {
    padding: 80px 0;
    position: relative;
}

section[id]::before { 
    content: "";
    display: block;
    height: 120px;
    margin-top: -120px;
    visibility: hidden;
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--color-text);
}

h1 {
    font-size: 48px;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
}

h2 {
    font-size: 36px;
    margin-bottom: 25px;
}

h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

p {
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.vantaggi {
    text-align: center;
}

.vantaggi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.section-title h2 {
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(63, 255, 168, 0.1), transparent 60%),
                radial-gradient(circle at bottom left, rgba(62, 0, 255, 0.1), transparent 60%);
    z-index: -1;
}

.hero-content {
    max-width: 650px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    animation: fadeUp 1s ease-out;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--color-text-light);
    animation: fadeUp 1.2s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    animation: fadeUp 1.4s ease-out;
    justify-content: center;
}

/* Recipe Cards */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.recipe-card {
    background: linear-gradient(145deg, rgba(44, 0, 62, 0.8), rgba(0, 0, 0, 0.9));
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(207, 255, 4, 0.1);
    position: relative;
}

.recipe-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 15px rgba(207, 255, 4, 0.2);
}

.recipe-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.1);
}

.recipe-content {
    padding: 24px;
}

.recipe-title {
    font-size: 22px;
    margin-bottom: 12px;
}

.recipe-description {
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.recipe-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 10px 0;
}

/* Testimonials */
.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--color-primary);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 60px;
    position: absolute;
    left: -20px;
    top: -20px;
    opacity: 0.2;
    color: var(--color-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

.testimonial-author-name {
    font-weight: 600;
}

.testimonial-author-title {
    color: var(--color-text-light);
    font-size: 14px;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Order Form */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(44, 0, 62, 0.8), rgba(0, 0, 0, 0.9));
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(207, 255, 4, 0.1);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    font-family: var(--font-main);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(207, 255, 4, 0.2);
}

select.form-control option {
    background-color: var(--color-background-start);
    color: var(--color-text);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.form-checkbox label {
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-light);
}

.form-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
}

.form-checkbox a {
    text-decoration: underline;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, rgba(44, 0, 62, 0.6), rgba(0, 0, 0, 0.7));
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 18px 20px;
    background: linear-gradient(90deg, rgba(44, 0, 62, 0.8), rgba(0, 0, 0, 0.8));
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    border-left: 4px solid var(--color-primary);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* Contact Section */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-card {
    background: linear-gradient(145deg, rgba(44, 0, 62, 0.8), rgba(0, 0, 0, 0.9));
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(207, 255, 4, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(207, 255, 4, 0.1);
    border-radius: 50%;
}

.contact-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--color-primary);
}

/* Cookie Policy Popup */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--color-background-start), var(--color-background-end));
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-content p {
    margin: 0 20px 0 0;
}

.cookie-link {
    font-size: 14px;
    margin-left: 15px;
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(44, 0, 62, 0.8));
    padding: 60px 0 20px;
    color: var(--color-text-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--color-primary);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--color-text-light);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(207, 255, 4, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-primary);
    transform: translateY(-3px);
}

.social-icon:hover svg {
    fill: var(--color-background-end);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(207, 255, 4, 0.4);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(207, 255, 4, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(207, 255, 4, 0);
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        background-color: rgba(0, 0, 0, 0.95);
        transition: height 0.3s ease;
    }
    
    .main-nav.active {
        height: calc(100vh - 80px);
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 40px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content p {
        margin: 0 0 15px;
    }
    
    .cookie-link {
        margin: 15px 0 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Thanks Page */
.thanks-section {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.thanks-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.thanks-icon {
    margin: 0 auto 30px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thanks-buttons {
    margin-top: 30px;
} 