/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #736CED;
    --accent-color: #FFB997;
    --secondary-color: #A3B18A;
    --background-color: #FDF6EC;
    --text-color: #1E1E3F;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(30, 30, 63, 0.1);
    --shadow-hover: 0 4px 20px rgba(30, 30, 63, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

/* Улучшенная плавная прокрутка для всех браузеров */
* {
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 100px; /* Увеличенная компенсация высоты sticky header */
}

/* Якорные ссылки - дополнительная компенсация для старых браузеров */
section[id] {
    scroll-margin-top: 100px;
}

/* Псевдо-элементы для якорей (альтернативный метод) */
section[id]:before {
    content: '';
    display: block;
    height: 100px;
    margin-top: -100px;
    visibility: hidden;
}

/* Дополнительный отступ для заголовков в секциях */
section h2:first-child {
    padding-top: 20px;
}

/* Особая обработка для заголовков после навигации */
section:target h2:first-child {
    animation: highlight-header 1s ease-out;
}

@keyframes highlight-header {
    0% {
        transform: scale(1.02);
        color: var(--primary-color);
    }
    100% {
        transform: scale(1);
        color: var(--text-color);
    }
}

section {
    padding-top: 20px; /* Дополнительный отступ для всех секций */
}

/* Специальные отступы для конкретных секций */
#about, #services, #contact {
    padding-top: 40px;
}

/* Убираем дополнительный отступ для hero секции */
.hero {
    padding-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.5;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5B54E8 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #FF9A6B 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--text-color) 0%, #2D2D5F 100%);
    color: var(--white);
    padding: 20px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-text p {
    margin: 0;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-buttons .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo svg {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 12px;
    border-radius: 5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(115, 108, 237, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

/* Улучшенная анимация при клике */
.nav-link:active {
    transform: translateY(1px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(115, 108, 237, 0.8), rgba(30, 30, 63, 0.8)), center/cover;
    color: var(--white);
    padding: 120px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-features {
    list-style: none;
    margin-top: 30px;
}

.about-features li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.about-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--background-color);
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 20px;
}

/* Advantages Section */
.advantages {
    padding: 80px 0;
    background: var(--white);
}

.advantages h2 {
    text-align: center;
    margin-bottom: 50px;
}

.advantages-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.advantage-item {
    text-align: left;
    padding: 20px;
}

.advantage-icon {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.advantages-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--background-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 0;
}

.testimonial-author strong {
    color: var(--primary-color);
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

.testimonials-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--white);
}

.contact h2 {
    text-align: center;
    margin-bottom: 50px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.contact-info {
    background: var(--background-color);
    padding: 40px;
    border-radius: 10px;
    height: fit-content;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item strong {
    color: var(--primary-color);
}

/* Form Styles */
.contact-form {
    background: var(--background-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-checkboxes {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 2px;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-color) 0%, #2D2D5F 100%);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

/* Thank You Page */
.thank-you-page {
    padding: 80px 0;
    background: var(--white);
}

.thank-you-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.success-animation {
    margin-bottom: 40px;
}

.checkmark-circle {
    display: inline-block;
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #8FA475 100%);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle-animation {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: draw-circle 1s ease-in-out forwards;
}

.checkmark-animation {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-checkmark 1s ease-in-out 0.5s forwards;
}

@keyframes draw-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-checkmark {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.thank-you-text h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.next-steps {
    background: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
    text-align: left;
}

.next-steps ul {
    list-style: none;
    margin-top: 20px;
}

.next-steps li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
}

.next-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 10px;
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.next-steps ul {
    counter-reset: step-counter;
}

.contact-info {
    background: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    margin: 40px 0;
}

.back-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.info-message {
    background: #e8f4f8;
    border: 1px solid #bee5eb;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    color: #0c5460;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    color: #721c24;
}

/* Policy Pages */
.policy-page {
    padding: 80px 0;
    background: var(--white);
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--background-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.policy-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 20px;
}

.policy-section {
    margin-bottom: 40px;
}

.policy-section h2 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    margin-top: 30px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
}

.policy-section h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    margin-top: 25px;
    font-weight: 600;
}

.policy-section p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.policy-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.policy-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.policy-section strong {
    color: var(--primary-color);
    font-weight: 600;
}

.policy-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.policy-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 150px; /* Увеличенная компенсация для мобильных */
    }
    
    section[id] {
        scroll-margin-top: 150px;
    }
    
    section[id]:before {
        height: 150px;
        margin-top: -150px;
    }
    
    /* Увеличиваем отступы для мобильных */
    section {
        padding-top: 30px;
    }
    
    #about, #services, #contact {
        padding-top: 60px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .advantages-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonials-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .back-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .policy-content {
        padding: 20px;
    }
    
    .policy-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .service-card,
    .contact-form,
    .contact-info {
        padding: 20px;
    }
    
    .sections {
        padding: 60px 0;
    }
    
    .policy-content {
        padding: 15px;
    }
    
    .policy-section h2 {
        font-size: 1.3rem;
    }
} 