/* Глобальные стили и цветовая палитра */
:root {
    --bg-primary: #0B0D1A;
    --text-primary: #F6F7FB;
    --accent-lime: #C3F73A;
    --accent-magenta: #FF3AC0;
    --accent-cyan: #00E7F2;
    --accent-saffron: #FFC857;
    --surface-card: #1A1B2E;
    --border-neon: #A5FFD6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* Header */
.main-header {
    background: rgba(26, 27, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-neon);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background: var(--accent-lime);
    transition: all 0.3s ease;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-lime), var(--accent-cyan));
    transition: width 0.3s ease;
}

.main-nav a:hover {
    color: var(--accent-lime);
}

.main-nav a:hover::after {
    width: 100%;
}

/* Мобильное меню */
@media (max-width: 767px) {
    .menu-icon {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(26, 27, 46, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-top: 1px solid var(--border-neon);
    }

    .menu-toggle:checked ~ .main-nav {
        transform: translateX(0);
    }

    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* Hero секция */
#hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('./img/0056eK.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 13, 26, 0.7);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-cyan) 50%, var(--accent-magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(195, 247, 58, 0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2rem;
    color: var(--text-primary);
    background: rgba(11, 13, 26, 0.6);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-cyan) 100%);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(195, 247, 58, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-lime);
    border: 2px solid var(--accent-lime);
}

.btn-secondary:hover {
    background: var(--accent-lime);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(195, 247, 58, 0.5);
}

/* Секции */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Карточки пакетов */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.package-card {
    background: rgba(26, 27, 46, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--border-neon);
    border-radius: 18px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-lime), var(--accent-cyan), var(--accent-magenta));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(165, 255, 214, 0.2);
    border-color: var(--accent-lime);
}

.package-card:hover::before {
    opacity: 1;
}

.package-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-lime);
}

.package-card p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.package-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

/* Форма заказа */
.order-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(26, 27, 46, 0.9);
    backdrop-filter: blur(15px);
    border: 2px solid var(--border-neon);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(165, 255, 214, 0.15);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-lime);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-neon);
    border-radius: 8px;
    background: rgba(11, 13, 26, 0.8);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-lime);
    box-shadow: 0 0 15px rgba(195, 247, 58, 0.3);
}

.form-group select option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
    cursor: pointer;
    accent-color: var(--accent-lime);
}

.checkbox-group label {
    font-weight: normal;
    color: var(--text-primary);
    cursor: pointer;
}

.checkbox-group a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.checkbox-group a:hover {
    color: var(--accent-lime);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(26, 27, 46, 0.6);
    border: 1px solid var(--border-neon);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item summary {
    padding: 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--accent-lime);
    list-style: none;
    position: relative;
    transition: background 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.25rem;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    background: rgba(195, 247, 58, 0.1);
}

.faq-item p {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-primary);
    line-height: 1.8;
}

/* Отзывы */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: rgba(26, 27, 46, 0.7);
    border: 1px solid var(--border-neon);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 15px;
    font-size: 4rem;
    color: var(--accent-magenta);
    opacity: 0.3;
}

.testimonial-text {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-style: italic;
}

.testimonial-author {
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: rgba(26, 27, 46, 0.95);
    border-top: 2px solid var(--border-neon);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-lime);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p,
.footer-section ul {
    color: var(--text-primary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-lime);
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(165, 255, 214, 0.2);
    color: var(--text-primary);
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: -200px;
    left: 0;
    right: 0;
    background: rgba(26, 27, 46, 0.98);
    backdrop-filter: blur(15px);
    border-top: 2px solid var(--border-neon);
    padding: 1.5rem;
    z-index: 10000;
    transition: bottom 0.3s ease;
    box-shadow: 0 -5px 30px rgba(0, 0, 0, 0.5);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-content p {
    color: var(--text-primary);
    flex: 1;
    min-width: 250px;
}

.cookie-content a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.cookie-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--accent-lime) 0%, var(--accent-cyan) 100%);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cookie-btn:hover {
    transform: scale(1.05);
}

/* Страницы политик */
.policy-page {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem;
    background: rgba(26, 27, 46, 0.6);
    border: 2px solid var(--border-neon);
    border-radius: 18px;
    backdrop-filter: blur(10px);
}

.policy-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent-lime);
    text-align: center;
}

.policy-page h2 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
}

.policy-page p,
.policy-page ul {
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.policy-page ul {
    padding-left: 2rem;
}

.policy-page a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.policy-page a:hover {
    color: var(--accent-lime);
}

/* Адаптивность */
@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }

    .hero-content {
        padding: 1rem;
    }

    .packages-grid {
        grid-template-columns: 1fr;
    }

    .order-form-container {
        padding: 1.5rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .policy-page {
        padding: 1.5rem;
    }
}

/* Анимации без JS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.package-card,
.testimonial-card {
    animation: fadeIn 0.6s ease-out;
}

/* Улучшение контраста текста */
.content-block {
    background: rgba(11, 13, 26, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    margin-bottom: 1.5rem;
}

.content-block p {
    color: var(--text-primary);
}

/* Стили для секции "O nas" с изображением */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.about-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid var(--border-neon);
    box-shadow: 0 10px 30px rgba(165, 255, 214, 0.2);
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(165, 255, 214, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Стили для секции "Kontakt" с изображением */
.contact-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.contact-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid var(--border-neon);
    box-shadow: 0 10px 30px rgba(165, 255, 214, 0.2);
    transition: transform 0.3s ease;
}

.contact-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(165, 255, 214, 0.3);
}

.contact-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Стили для секции "Jak to działa" с изображением */
.proces-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.proces-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid var(--border-neon);
    box-shadow: 0 10px 30px rgba(165, 255, 214, 0.2);
    transition: transform 0.3s ease;
}

.proces-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(165, 255, 214, 0.3);
}

.proces-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Стили для секции "Dlaczego to pomaga" с изображением */
.korzysci-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.korzysci-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid var(--border-neon);
    box-shadow: 0 10px 30px rgba(165, 255, 214, 0.2);
    transition: transform 0.3s ease;
}

.korzysci-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(165, 255, 214, 0.3);
}

.korzysci-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Адаптивность для изображений */
@media (max-width: 768px) {
    .about-content-wrapper,
    .contact-content-wrapper,
    .proces-content-wrapper,
    .korzysci-content-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-image,
    .contact-image,
    .proces-image,
    .korzysci-image {
        order: -1;
    }
}

/* Стили для кнопки на странице "спасибо" */
.btn-thank-you {
    padding: 1.25rem 3rem;
    border: 2px solid var(--accent-magenta);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    background: rgba(26, 27, 46, 0.8);
    color: var(--accent-magenta);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 58, 192, 0.3);
}

.btn-thank-you::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-magenta) 0%, var(--accent-saffron) 100%);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-thank-you:hover {
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 58, 192, 0.5), 0 0 30px rgba(255, 200, 87, 0.3);
    border-color: var(--accent-saffron);
}

.btn-thank-you:hover::before {
    left: 0;
}

.btn-thank-you:active {
    transform: translateY(-1px);
}

/* Отключение анимаций для пользователей с prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

