/* Custom Color Variables */
:root {
    --midnight-blue: #001F3F;
    --neo-mint: #2EF9A0;
    --electric-fuchsia: #F012BE;
    --canary-yellow: #FFDC00;
    --off-white: #F8F9FA;
    --gradient-primary: linear-gradient(135deg, var(--midnight-blue), var(--electric-fuchsia));
    --shadow-default: 0 4px 12px rgba(0, 0, 0, 0.15);
    --border-radius: 1rem;
    --transition-default: all 0.3s ease-in-out;
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--off-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--midnight-blue);
    text-decoration: none;
    transition: var(--transition-default);
}

a:hover {
    color: var(--electric-fuchsia);
}

ul, ol {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 4rem 0;
}

/* Якорная навигация - отступ от шапки */
section[id] {
    scroll-margin-top: 100px; /* Высота шапки (80px) + дополнительный отступ */
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-default);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-default);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-accent {
    background-color: var(--neo-mint);
    color: var(--midnight-blue);
    box-shadow: var(--shadow-default);
}

.btn-accent:hover {
    background-color: var(--canary-yellow);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    color: var(--midnight-blue);
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-default);
    padding: 1rem 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo svg {
    margin-right: 0.5rem;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: var(--transition-default);
    border-radius: 3px;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    color: white;
    font-weight: 600;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: var(--neo-mint);
    transition: var(--transition-default);
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

/* Main Content - Adjusting for fixed header */
main {
    padding-top: 80px;
    min-height: calc(100vh - 300px);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 6rem 0;
    background: var(--midnight-blue) url('./img/cJOru5.jpg') center/cover no-repeat;
    color: white;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    z-index: 0;
    background: radial-gradient(ellipse at center, 
        rgba(46, 249, 160, 0.4) 0%, 
        rgba(240, 18, 190, 0.4) 50%, 
        rgba(0, 31, 63, 0.6) 100%);
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-section {
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: flex-start; /* Align items at the top */
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
    object-fit: cover;
    width: 100%;
    height: auto;
    max-width: 100%; /* Full width on mobile */
}

.about-content h2 {
    text-align: center; /* Center the heading */
}

/* Services Section */
.services-section {
    background-color: var(--off-white);
}

.services-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
    padding: 2rem;
    transition: var(--transition-default);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    color: white;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--midnight-blue);
    margin: 1rem 0;
}

/* Benefits Section */
.benefits-section {
    background-color: white;
    text-align: center;
}

.benefits-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
    align-items: center;
}

.benefits-image {
    flex: 0 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
    max-width: 600px;
}

.benefits-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
}

.benefits-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
}

.benefit-icon {
    flex: 0 0 30px;
    margin-right: 1rem;
    color: var(--neo-mint);
}

/* CTA Section */
.cta-section {
    background: var(--electric-fuchsia);
    color: white;
    text-align: center;
    padding: 3rem 0;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    margin-bottom: 1rem;
}

.cta-section p {
    margin-bottom: 2rem;
}

/* Form Section */
.form-section {
    background-color: var(--off-white);
}

.contact-form {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    margin-bottom: 1.5rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-default);
}

.form-control:focus {
    outline: none;
    border-color: var(--midnight-blue);
    box-shadow: 0 0 0 3px rgba(0, 31, 63, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input {
    margin-right: 0.5rem;
    margin-top: 0.3rem;
}

.btn-submit {
    background: var(--neo-mint);
    color: var(--midnight-blue);
    font-weight: 700;
    width: 100%;
    padding: 1rem;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 249, 160, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 249, 160, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 249, 160, 0);
    }
}

/* FAQ Section */
.faq-section {
    background-color: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
    overflow: hidden;
}

.faq-question {
    position: relative;
    padding: 1.5rem;
    background-color: var(--off-white);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:after {
    content: '+';
    font-size: 1.5rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: white;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
}

.faq-toggle {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 1000px;
}

.faq-toggle:checked + .faq-question:after {
    content: '−';
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--off-white);
    padding: 4rem 0;
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.testimonial-slide {
    flex: 0 0 100%;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.testimonial-content {
    position: relative;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-content:before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -20px;
    left: -10px;
    color: rgba(0, 31, 63, 0.1);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    overflow: hidden;
}

.testimonial-name {
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--midnight-blue);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--neo-mint);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    text-align: center;
}

.footer-links {
    text-align: center;
}

.footer-links li {
    margin-bottom: 0.75rem;
    text-align: center;
}

.footer-links a {
    color: white;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--neo-mint);
}

.footer-about p {
    text-align: center;
}

address {
    font-style: normal;
    text-align: center;
}

address p {
    margin-bottom: 0.5rem;
}

address a {
    color: white;
    opacity: 0.8;
}

address a:hover {
    color: var(--neo-mint);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--midnight-blue);
    color: white;
    padding: 1rem 0;
    z-index: 999;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.5s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-banner .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-banner p {
    margin-bottom: 1rem;
}

.cookie-banner a {
    color: var(--neo-mint);
}

/* Legal Pages */
.legal-content {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
    padding: 2rem;
    margin-bottom: 4rem;
}

.legal-content h2 {
    color: var(--midnight-blue);
    margin-top: 2.5rem;
}

.legal-content p,
.legal-content ul {
    margin-bottom: 1.5rem;
}

.legal-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Thank You Page */
.thank-you-section {
    text-align: center;
    padding: 6rem 0;
}

.thank-you-content {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-default);
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background: var(--neo-mint);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--midnight-blue);
}

/* Thank you message */
.thank-you-message {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 1rem 0;
}

.thank-you-message .thank-you-content {
    background-color: white;
    box-shadow: var(--shadow-default);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    animation: slide-down 0.5s ease-out;
}

.thank-you-message .thank-you-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--neo-mint);
    color: var(--midnight-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Media Queries */
@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: flex-start; /* Align at the top in desktop view */
    }
    
    .about-image img {
        max-width: 90%; /* Slightly smaller on desktop */
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Benefits section always keeps image above text */
    .benefits-content {
        flex-direction: column;
        align-items: center;
    }
    
    .benefits-image {
        flex: 0 0 auto;
        margin-bottom: 2rem;
        max-width: 600px;
        margin-right: 0;
    }
    
    .benefits-list {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cookie-banner .container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .cookie-banner p {
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .benefits-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    .testimonial-slide {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (min-width: 1200px) {
    .testimonial-slide {
        flex: 0 0 calc(33.333% - 1.5rem);
    }
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--midnight-blue);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    body.menu-open {
        overflow: hidden;
    }
}

/* CSS Accordion for FAQ */
#faq-1:checked ~ .faq-answer,
#faq-2:checked ~ .faq-answer,
#faq-3:checked ~ .faq-answer,
#faq-4:checked ~ .faq-answer {
    max-height: 1000px;
}

#faq-1:checked + .faq-question:after,
#faq-2:checked + .faq-question:after,
#faq-3:checked + .faq-question:after,
#faq-4:checked + .faq-question:after {
    content: '−';
} 

/* Form error message */
.form-error-message {
    background-color: rgba(255, 87, 87, 0.1);
    border-left: 4px solid #ff5757;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 0.5rem;
}

.form-error-message p {
    margin-bottom: 0;
    color: #d32f2f;
    font-weight: 500;
} 