/* Основные переменные */
:root {
    --primary: #00D3A9;
    --accent: #FF6B6B;
    --background: #F9F8F6;
    --text: #333333;
    --gray-light: #f1f1f1;
    --gray: #ddd;
    --gradient: linear-gradient(135deg, #FF6B6B, #00D3A9);
}

/* Сброс и основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--accent);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary);
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-gradient {
    background: var(--gradient);
    color: white;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-gradient:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00D3A9, #FF6B6B);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-gradient:hover {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-gradient:hover:before {
    opacity: 1;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav li a {
    font-weight: 600;
    position: relative;
}

nav li a:not(.btn-gradient):after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

nav li a:not(.btn-gradient):hover:after {
    width: 100%;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
}

.cookie-content .btn-gradient {
    min-width: 120px;
    padding: 10px 20px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
}

/* Секции */
section {
    padding: 80px 0;
}

/* Корректировка для якорей */
section[id] {
    scroll-margin-top: 80px;
}

/* Hero секция */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--primary);
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.8;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 650px;
}

.hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Секция "О нас" */
.about-section {
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.about-item {
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.about-item i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Секция преимуществ */
.benefits-section {
    background-color: var(--gray-light);
    position: relative;
    overflow: hidden;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: scale(1.03);
}

.benefit-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.8rem;
}

/* Секция услуг */
.services-section {
    background-color: #fff;
}

.services-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: none;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    color: var(--text);
    transition: all 0.3s ease;
    text-decoration: none;
}

.tab-btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active:after {
    width: 50%;
}

.services-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.service-image {
    flex: 1;
    min-width: 300px;
}

.service-info {
    flex: 1;
    padding: 20px;
    min-width: 300px;
}

.service-info ul {
    list-style: none;
    margin-bottom: 30px;
}

.service-info li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.service-info li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Секция отзывов */
.testimonials-section {
    background: var(--gray-light);
    position: relative;
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-content:before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: 10px;
    left: 20px;
    color: var(--accent);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.author-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.author-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #777;
}

/* Секция FAQ */
.faq-section {
    background: white;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

.faq-question {
    padding: 20px;
    background-color: #fff;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-question:hover {
    background-color: var(--gray-light);
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
}

details[open] .faq-question {
    background: var(--gradient);
    color: white;
}

details[open] .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 20px;
    background-color: white;
}

/* Секция формы заказа */
.contact-section {
    background: linear-gradient(135deg, rgba(0, 211, 169, 0.1), rgba(255, 107, 107, 0.1));
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-top: 5px;
    margin-right: 10px;
}

.form-submit {
    text-align: center;
}

/* Footer */
footer {
    background: var(--text);
    color: white;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

.footer-section a {
    color: #ddd;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section i {
    margin-right: 10px;
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    margin-top: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 40px 0;
    }
    
    .hero-image {
        position: relative;
        width: 100%;
        height: auto;
        display: none;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .services-content {
        flex-direction: column;
    }
    
    .service-image {
        order: 1;
    }
    
    .service-info {
        order: 2;
    }
}

/* Иконки */
.icon-phone:before {
    content: '📞';
}

.icon-mail:before {
    content: '✉️';
}

.icon-map:before {
    content: '📍';
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Стили для юридических страниц */
.legal-section {
    padding: 60px 0;
    background-color: var(--background);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.legal-date {
    color: #777;
    margin-bottom: 30px;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.legal-content h2 {
    margin-top: 40px;
    font-size: 1.8rem;
    color: var(--accent);
}

.legal-content h3 {
    margin-top: 30px;
    font-size: 1.5rem;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-back {
    margin-top: 50px;
    text-align: center;
}

/* Адаптивность для юридических страниц */
@media screen and (max-width: 768px) {
    .legal-content {
        padding: 30px 20px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-content h2 {
        font-size: 1.5rem;
    }
} 