/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #f8d7da;
    --color-secondary: #fff3cd;
    --color-accent: #d1ecf1;
    --color-text: #2c3e50;
    --color-text-light: #6c757d;
    --color-bg: #ffffff;
    --color-card: #fefefe;
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    font-size: 16px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo:hover {
    opacity: 0.8;
}

/* Navigation */
.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--color-text-light);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-text);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    background: var(--color-primary);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
}

.burger span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: 3px;
    transition: var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 4rem 1.5rem 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    visibility: hidden;
    opacity: 0;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.mobile-menu .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.mobile-menu .nav-link {
    font-size: 1.1rem;
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-secondary);
    display: block;
    transition: var(--transition);
}

.mobile-menu .nav-link {
    position: relative;
}

.mobile-menu .nav-link::after {
    display: none;
}

.mobile-menu .nav-link:hover {
    background: var(--color-secondary);
    padding-left: 1rem;
    border-left: 3px solid var(--color-primary);
}

.mobile-menu .nav-link.active {
    background: var(--color-secondary);
    padding-left: 1rem;
    border-left: 3px solid var(--color-primary);
    font-weight: 600;
    color: var(--color-text);
}

body.menu-open {
    overflow: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 4rem 1rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.hero p {
    font-size: 1.2rem;
    color: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--color-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.card p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.card-link {
    display: inline-block;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: var(--color-accent);
    border-radius: 8px;
    transition: var(--transition);
}

.card-link:hover {
    background: var(--color-primary);
}

/* Content Sections */
.content-section {
    margin: 3rem 0;
}

.content-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    margin-top: 3rem;
    color: var(--color-text);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-primary);
    font-weight: 700;
    line-height: 1.3;
}

.content-section h3 {
    font-size: 1.7rem;
    margin: 2.5rem 0 1.5rem;
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.4;
}

.content-section h4 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: var(--color-text);
    font-weight: 600;
}

.content-section p {
    margin-bottom: 1.5rem;
    color: var(--color-text);
    line-height: 1.9;
    font-size: 1.05rem;
}

.content-section ul, .content-section ol {
    margin: 1.5rem 0 1.5rem 2rem;
    color: var(--color-text);
    line-height: 1.9;
    font-size: 1.05rem;
}

.content-section li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.content-section a {
    color: #d4a574;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.content-section a:hover {
    color: #b8935f;
    border-bottom-color: #b8935f;
}

.content-section img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    box-shadow: var(--shadow-soft);
    display: block;
}

/* Image with text layout */
.content-image-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin: 2.5rem 0;
}

.content-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin: 0;
}

.content-image-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 768px) {
    .content-image-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .content-image-wrapper img {
        order: -1;
    }
}

/* Step by Step */
.steps {
    background: var(--color-secondary);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.steps h3 {
    margin-top: 0;
}

.step {
    margin: 1.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.step::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-text);
}

.steps {
    counter-reset: step-counter;
}

/* Material List */
.materials {
    background: var(--color-accent);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.materials h3 {
    margin-top: 0;
}

.materials ul {
    list-style: none;
    margin-left: 0;
}

.materials li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.materials li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-text);
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--color-text);
    color: #ffffff;
    padding: 3rem 1rem 1.5rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
    background: var(--color-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-secondary);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--color-text);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--color-text-light);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    z-index: 2000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: #dc3545;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-card);
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--color-primary);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cookie-banner-text {
    color: var(--color-text);
    line-height: 1.7;
    font-size: 1rem;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-btn {
    flex: 1;
    min-width: 140px;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-btn-primary {
    background: var(--color-text);
    color: #ffffff;
}

.cookie-btn-primary:hover {
    background: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.cookie-btn-secondary {
    background: var(--color-secondary);
    color: var(--color-text);
    border: 2px solid transparent;
}

.cookie-btn-secondary:hover {
    background: var(--color-primary);
    border-color: var(--color-text);
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.cookie-settings {
    display: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-secondary);
}

.cookie-settings.show {
    display: block;
}

.cookie-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
}

.cookie-setting-item label {
    color: var(--color-text);
    font-weight: 500;
}

.cookie-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    background: #ccc;
    border-radius: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-toggle.active {
    background: var(--color-primary);
}

.cookie-toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: var(--transition);
}

.cookie-toggle.active::after {
    left: 27px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container > .nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cookie-banner-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .content-section h3 {
        font-size: 1.5rem;
    }

    .content-section p {
        font-size: 1rem;
    }

    .content-section ul, .content-section ol {
        font-size: 1rem;
    }

    .mobile-menu {
        padding-top: 3.5rem;
    }

    .mobile-menu .nav-link {
        font-size: 1rem;
        padding: 0.85rem 0;
    }
}
