/* ===== CSS Variables ===== */
:root {
    --primary-color: #3F51B5;          /* Глубокий васильковый */
    --secondary-color: #FF6F61;        /* Яркий коралловый */
    --accent-color: #00BFA5;           /* Насыщенный мятный */
    --light-color: #FCE4EC;            /* Светлый песочный */
    --dark-color: #263238;             /* Серо-графитовый */
    
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #6c757d;
    --border-color: #e9ecef;
    
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --heading-font: 'Georgia', serif;
    
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    
    --container-max-width: 1200px;
    --header-height: 80px;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.3rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Utility Classes ===== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.responsive-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.hidden {
    display: none !important;
}

/* ===== Alert Messages ===== */
.alert {
    padding: 1rem 0;
    position: relative;
    z-index: 100;
}

.alert-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: var(--white);
}

.alert-success {
    background: linear-gradient(135deg, var(--accent-color), #4caf50);
    color: var(--white);
}

.alert p {
    margin: 0;
    text-align: center;
    font-weight: 500;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(63, 81, 181, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ===== Cookie Banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: var(--white);
    padding: 1rem 0;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--white);
}

.cookie-content p {
    color: var(--white);
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-buttons .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--heading-font);
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Checkbox (hidden) */
.nav-checkbox {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle-label span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(63, 81, 181, 0.8), 
        rgba(0, 191, 165, 0.6),
        rgba(255, 111, 97, 0.7)
    );
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--white) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--light-color);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== About Section ===== */
.about {
    padding: 5rem 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== Services Section ===== */
.services {
    padding: 5rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.service-card.featured {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--light-color), var(--white));
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: bold;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.service-icon svg {
    width: 40px;
    height: 40px;
}

.service-description {
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    padding: 0.3rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.service-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* ===== Advantages Section ===== */
.advantages {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--light-color), var(--light-gray));
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.advantage-icon svg {
    width: 35px;
    height: 35px;
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 5rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border-left: 4px solid var(--accent-color);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    font-style: italic;
    color: var(--dark-color);
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.author-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--gray);
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-rating {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* ===== FAQ Section ===== */
.faq {
    padding: 5rem 0;
    background: var(--light-gray);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ Checkbox (hidden) */
.faq-checkbox {
    display: none;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    transition: var(--transition);
    user-select: none;
}

.faq-question:hover {
    background: var(--light-color);
}

/* Active state when checkbox is checked */
.faq-checkbox:checked + .faq-question {
    background: var(--light-color);
}

.faq-question h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: bold;
    transition: var(--transition);
}

/* Rotate toggle when checked */
.faq-checkbox:checked + .faq-question .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    background: var(--light-color);
    transition: max-height 0.4s ease, padding 0.4s ease;
}

/* Show answer when checkbox is checked */
.faq-checkbox:checked ~ .faq-answer {
    max-height: 300px;
    padding: 0 1.5rem 1.5rem;
}

/* ===== Order Form Section ===== */
.order-form {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.order-form .section-header h2,
.order-form .section-subtitle {
    color: var(--white);
}

.form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.1);
}

.form-checkboxes {
    display: grid;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.4;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* ===== Contact Section ===== */
.contact {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-item:hover {
    background: var(--light-color);
    transform: translateY(-2px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.contact-icon svg {
    width: 30px;
    height: 30px;
}

.contact-map {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.map-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.map-iframe {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
}

.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(38, 50, 56, 0.9));
    color: var(--white);
    padding: 2rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--light-gray);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--light-gray);
}

.contact-info a {
    color: var(--accent-color);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 2rem 0 1rem;
}

.footer-copyright {
    text-align: center;
    color: var(--gray);
}

.footer-disclaimer {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* ===== Responsive Design ===== */

/* Tablet styles (medium screens) */
@media (max-width: 1024px) and (min-width: 769px) {
    .form-wrapper {
        max-width: 600px;
        margin: 0 auto;
        padding: 2.5rem 2rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 15px;
        padding: 14px;
        min-height: 42px;
    }
    
    .form-group select {
        background-size: 18px;
        padding-right: 42px;
    }
    
    .btn-large {
        padding: 16px 24px;
        font-size: 1.05rem;
        min-height: 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        box-shadow: var(--box-shadow);
        z-index: 999;
    }

    /* Show menu when checkbox is checked */
    .nav-checkbox:checked ~ .nav-menu {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    /* Auto-close menu when clicking on links */
    .nav-link {
        color: var(--dark-color);
        font-size: 1.2rem;
        font-weight: 500;
        padding: 1rem 2rem;
        border-radius: var(--border-radius);
        transition: var(--transition);
    }
    
    .nav-link:hover {
        background: var(--light-color);
        color: var(--primary-color);
    }

    .nav-toggle-label {
        display: flex;
    }

    /* Menu button animation when checked */
    .nav-checkbox:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-checkbox:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }

    .nav-checkbox:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: 550px;
        padding-top: calc(var(--header-height) + 2rem);
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cookie-buttons {
        justify-content: center;
    }

    .order-form {
        padding: 4rem 0;
    }
    
    .form-wrapper {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .contact-form {
        gap: 1.25rem;
    }
    
    .form-group label {
        font-size: 0.95rem;
        font-weight: 500;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 16px 12px;
        min-height: 44px; /* Apple's recommended touch target */
        border-radius: 8px;
        border-width: 1px;
    }
    
    .form-group select {
        background-size: 20px;
        padding-right: 45px;
    }
    
    .form-group textarea {
        min-height: 120px;
        padding: 16px 12px;
    }
    
    .form-checkboxes {
        gap: 1.25rem;
    }
    
    .checkbox-group {
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .checkbox-group label {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }

    .services-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .map-iframe {
        height: 350px;
    }
    
    /* FAQ Mobile Improvements */
    .faq-question {
        padding: 1rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .faq-toggle {
        font-size: 1.3rem;
        min-width: 30px;
        text-align: center;
    }
    
    .faq-checkbox:checked ~ .faq-answer {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 500px;
        padding-top: calc(var(--header-height) + 1rem);
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        gap: 0.5rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .order-form {
        padding: 3rem 0;
    }
    
    .order-form .section-header h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .order-form .section-subtitle {
        font-size: 1rem;
    }
    
    .form-wrapper {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 18px 14px;
        font-size: 16px; /* Critical for iOS to prevent zoom */
        border-radius: 10px;
        min-height: 48px; /* Even larger touch targets for very small screens */
        border-width: 1px;
        line-height: 1.2;
    }
    
    .form-group select {
        background-size: 18px;
        padding-right: 50px;
        background-position: right 15px center;
    }
    
    .form-group textarea {
        min-height: 140px;
        padding: 18px 14px;
        line-height: 1.4;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
        font-weight: 600;
    }
    
    .form-checkboxes {
        gap: 1rem;
    }
    
    .checkbox-group {
        gap: 0.75rem;
        align-items: flex-start;
        padding: 8px 0;
    }
    
    .checkbox-group input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-top: 0;
        transform: scale(1.2);
        cursor: pointer;
    }
    
    .checkbox-group label {
        font-size: 0.9rem;
        line-height: 1.5;
        cursor: pointer;
        padding-left: 8px;
    }
    
    .btn-large {
        width: 100%;
        padding: 18px 20px;
        font-size: 1.1rem;
        min-height: 56px;
        border-radius: 10px;
        font-weight: 600;
        margin-top: 8px;
    }
    
    .map-iframe {
        height: 300px;
    }
    
    /* Enhanced mobile form focus states */
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.15);
        transform: scale(1.02);
    }
    
    /* Mobile-specific input styling */
    .form-group input[type="tel"] {
        letter-spacing: 1px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="tel"] {
        -webkit-appearance: none;
        -moz-appearance: textfield;
    }
    
    /* Better touch targets for mobile */
    .checkbox-group {
        min-height: 44px;
        padding: 12px 8px;
        background: rgba(252, 228, 236, 0.3);
        border-radius: 8px;
        margin: 4px 0;
    }
    
    .btn:active,
    .btn-large:active {
        transform: scale(0.98);
    }
}

/* ===== Legal Pages Styles ===== */
.legal-page {
    padding: 6rem 0 3rem;
    background: var(--light-gray);
    min-height: 80vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.legal-content h1 {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.last-updated {
    color: var(--gray);
    font-style: italic;
    margin-bottom: 2rem;
    text-align: right;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-section h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section a {
    color: var(--accent-color);
    text-decoration: underline;
}

.legal-section a:hover {
    color: var(--primary-color);
}

.legal-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Cookie Table Styles */
.cookie-table {
    margin: 1rem 0 2rem;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.cookie-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.cookie-table tr:last-child td {
    border-bottom: none;
}

.cookie-table tr:nth-child(even) {
    background: var(--light-gray);
}

.cookie-controls {
    margin: 2rem 0;
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: var(--border-radius);
}

/* Legal Pages Mobile Adaptation */
@media (max-width: 768px) {
    .legal-page {
        padding: 5rem 0 2rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
    }
    
    .legal-section {
        margin-bottom: 2rem;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
    
    .legal-section h3 {
        font-size: 1.1rem;
    }
    
    .legal-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cookie-table {
        font-size: 0.9rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .cookie-controls {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
    }
    
    .legal-content h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .legal-section h2 {
        font-size: 1.2rem;
    }
    
    .legal-section h3 {
        font-size: 1rem;
    }
    
    .legal-section ul {
        margin-left: 1rem;
    }
    
    .legal-section li {
        margin-bottom: 0.75rem;
    }
    
    .last-updated {
        font-size: 0.9rem;
    }
    
    .cookie-table {
        font-size: 0.8rem;
    }
    
    .cookie-table th,
    .cookie-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .cookie-controls {
        padding: 1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .cookie-banner,
    .nav-toggle,
    .hero-cta,
    .order-form,
    .footer {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }

    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}
