/* === ОСНОВНЫЕ СТИЛИ === */
:root {
    /* Цветовая палитра */
    --primary: #17d4d4;
    --dark: #1a1a1a;
    --accent-orange: #ff6f00;
    --accent-lavender: #b784f6;
    --white: #fefefe;
    --gray: #f2f2f2;
    --gray-dark: #757575;
    
    /* Шрифты */
    --font-primary: 'Poppins', 'Segoe UI', sans-serif;
    --font-secondary: 'Montserrat', Arial, sans-serif;
    
    /* Отступы */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
}

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-lavender);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

section {
    padding: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

/* Стили для якорей-маркеров */
.anchor-target {
    display: block;
    position: relative;
    top: -180px; /* Очень большой отступ, чтобы заголовок был гарантированно виден */
    visibility: hidden;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none; /* Чтобы элемент не мешал взаимодействию */
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* === HEADER === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--space-sm);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.logo svg {
    height: 40px;
    margin-right: 10px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* === HERO SECTION === */
.hero {
    padding: calc(var(--space-lg) * 2) 0 var(--space-lg);
    background: radial-gradient(circle at top right, rgba(183, 132, 246, 0.2), rgba(23, 212, 212, 0.05));
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1 1 500px;
    padding-right: var(--space-md);
}

.hero-image {
    flex: 0 1 500px;
    position: relative;
}

.hero-image:before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary);
    border-radius: 8px;
    z-index: -1;
}

.hero h1 {
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, var(--primary), var(--accent-lavender));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* === COMPANY SECTION === */
.company {
    background-color: var(--gray);
}

.company-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.company-text {
    flex: 1 1 500px;
}

.company-image {
    flex: 0 1 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.company-image:hover {
    transform: scale(1.02);
}

/* === SERVICES SECTION === */
.services {
    background: linear-gradient(135deg, var(--white), var(--gray));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.service-card {
    background: white;
    padding: var(--space-md);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    margin-bottom: var(--space-sm);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.service-card p {
    margin-bottom: var(--space-md);
    color: var(--gray-dark);
}

/* === ADVANTAGES SECTION === */
.advantages {
    background: var(--dark);
    color: var(--white);
    position: relative;
}

.advantages:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary), transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.advantages h2 {
    color: var(--white);
}

.advantages h2:after {
    background: var(--accent-orange);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
}

.advantage-item {
    padding: var(--space-md);
    border-left: 3px solid var(--primary);
    position: relative;
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateX(10px);
    border-left-color: var(--accent-orange);
}

.advantage-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 10px;
    left: 10px;
    line-height: 1;
}

.advantage-item h3 {
    position: relative;
    z-index: 2;
    color: var(--primary);
}

.advantage-item p {
    position: relative;
    z-index: 2;
}

/* === PROCESS SECTION === */
.process {
    background: linear-gradient(to right, var(--white), var(--gray));
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 50px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--primary);
    z-index: 0;
}

.process-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.process-icon span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.process-step h3 {
    color: var(--dark);
    margin-bottom: var(--space-xs);
}

.process-step p {
    color: var(--gray-dark);
}

.process-image {
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* === CONTACT SECTION === */
.contact {
    background: linear-gradient(45deg, var(--primary) 0%, transparent 70%),
                radial-gradient(circle at top right, var(--accent-lavender), transparent 70%),
                var(--white);
    position: relative;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-info {
    flex: 1 1 400px;
    padding: var(--space-md);
    background: var(--dark);
    color: var(--white);
}

.contact-form {
    flex: 1 1 500px;
    padding: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-top: 0.3rem;
    margin-right: 0.5rem;
}

.contact-details {
    list-style: none;
    margin: var(--space-md) 0;
}

.contact-details li {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.contact-details li svg {
    margin-right: 10px;
    color: var(--primary);
}

.contact-image {
    margin-top: var(--space-md);
    border-radius: 8px;
    overflow: hidden;
}

/* === POLICY PAGES === */
.policy {
    padding: var(--space-xl) 0 var(--space-lg);
}

.policy h1 {
    margin-bottom: var(--space-md);
    text-align: center;
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: var(--space-md);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: var(--space-md);
}

.policy-content h3 {
    margin-top: var(--space-sm);
    color: var(--dark);
}

.policy-content ul {
    margin-left: 20px;
    margin-bottom: var(--space-md);
}

.policy-content li {
    margin-bottom: 0.5rem;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
    background: var(--gray);
}

.testimonials-slider {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.testimonial {
    flex: 1 1 300px;
    background: white;
    padding: var(--space-md);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    position: relative;
    padding-top: 20px;
}

.testimonial-content:before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -5px;
    font-size: 4rem;
    font-family: serif;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-author {
    margin-top: var(--space-sm);
    border-top: 1px solid var(--gray);
    padding-top: var(--space-sm);
}

.testimonial-author h4 {
    margin-bottom: 0.2rem;
    color: var(--dark);
}

.testimonial-author p {
    margin: 0;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

/* === FOOTER === */
footer {
    background: var(--dark);
    color: var(--white);
    padding: var(--space-lg) 0 var(--space-sm);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-col {
    flex: 1 1 250px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: var(--space-sm);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #a0a0a0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #a0a0a0;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    color: var(--white);
    padding: var(--space-md);
    z-index: 1000;
    display: none;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

/* === ANIMATIONS === */
.animate-fade {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 991px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .process-step:not(:last-child):after {
        display: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--space-md) 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: calc(var(--space-lg) + 60px) 0 var(--space-md);
    }
    
    .hero-content, 
    .hero-image {
        flex: 1 1 100%;
    }
    
    .hero-content {
        margin-bottom: var(--space-md);
        padding-right: 0;
    }
    
    nav ul {
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    nav ul.show {
        transform: translateY(0);
    }
    
    nav ul li {
        margin: 0;
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid var(--gray);
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .services-grid,
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
} 