/* Основные переменные */
:root {
    --primary: #3C3B6E;
    --secondary: #1DD3B0;
    --accent: #FFF275;
    --dark-text: #1A1A40;
    --light-text: #FFFFFF;
    --gradient: linear-gradient(135deg, #3C3B6E 0%, #1DD3B0 100%);
    --shadow: 0 4px 20px rgba(60, 59, 110, 0.2);
    --transition: all 0.3s ease;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background: #f9f9ff;
    overflow-x: hidden;
}

/* Контейнер */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

h3 {
    font-size: clamp(1.4rem, 2vw, 2rem);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--light-text);
    transform: translateY(-3px);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--dark-text);
}

.btn-accent:hover {
    background-color: var(--secondary);
    color: var(--light-text);
    transform: translateY(-3px);
}

/* Шапка */
.main-header {
    background: var(--gradient);
    padding: 20px 0;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    flex: 0 0 auto;
}

.main-nav {
    flex: 1 1 auto;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.nav-list a {
    color: var(--light-text);
    font-weight: 700;
    padding: 10px;
    font-size: 1.05rem;
    position: relative;
}

.nav-list a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-list a:hover:after {
    width: 100%;
}

/* Мобильная навигация */
.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hamburger {
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--light-text);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Основной контент */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px - 300px); /* 100vh - header - footer */
}

/* Для правильного отображения якорей */
section {
    scroll-margin-top: 120px; /* Современное свойство для скроллинга к якорям */
}

section::before {
    content: "";
    display: block;
    height: 120px; /* Высота шапки + дополнительный отступ */
    margin-top: -120px;
    visibility: hidden;
    pointer-events: none;
}

/* Секции */
section {
    padding: 80px 0;
}

section:nth-child(odd) {
    background-color: #f2f2ff;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 2px;
}

/* Hero секция */
.hero {
    background: var(--gradient);
    color: var(--light-text);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hero-content-centered {
    width: 100%;
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: center;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    width: 100%;
    text-align: center;
}

.hero-button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.text-center {
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
}

/* Оставшаяся часть для совместимости */
.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-form {
    background: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    color: var(--dark-text);
}

.hero-form h3 {
    margin-bottom: 20px;
    text-align: center;
}

/* Формы */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(60, 59, 110, 0.1);
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233C3B6E' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-input {
    margin-right: 10px;
    margin-top: 5px;
}

.checkbox-label {
    flex: 1;
    font-size: 0.9rem;
}

.form-submit {
    width: 100%;
}

/* Услуги */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--light-text);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    height: 200px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* О компании */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content h2 {
    color: var(--primary);
    margin-bottom: 20px;
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-right: 15px;
    line-height: 1;
}

/* Почему мы */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.reason-card {
    background: var(--light-text);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--light-text);
    font-size: 2rem;
}

.reason-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Отзывы */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-item {
    background: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 0 20px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content:before {
    content: '"';
    font-size: 5rem;
    color: rgba(60, 59, 110, 0.1);
    position: absolute;
    top: -30px;
    left: -20px;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin-bottom: 0;
}

.testimonial-author-info p {
    color: #777;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.faq-question {
    padding: 20px;
    background-color: var(--light-text);
    cursor: pointer;
    position: relative;
    font-weight: 700;
}

.faq-question {
    display: block;
    text-decoration: none;
    color: var(--dark-text);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    transition: var(--transition);
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
}

.faq-answer.show {
    padding: 20px;
    max-height: 300px;
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form {
    background: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info {
    background: var(--light-text);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-icon {
    margin-right: 15px;
    color: var(--secondary);
    font-size: 1.3rem;
    line-height: 1.5;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Футер */
.main-footer {
    background: var(--gradient);
    color: var(--light-text);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-company h3, 
.footer-contact h3, 
.footer-legal h3 {
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-legal ul {
    list-style: none;
}

.footer-legal li {
    margin-bottom: 10px;
}

.footer-legal a {
    color: var(--light-text);
}

.footer-legal a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-text);
    color: var(--light-text);
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    flex: 1;
    margin-bottom: 0;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.cookie-btn-accept {
    background-color: var(--secondary);
    color: var(--light-text);
}

.cookie-btn-accept:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.cookie-btn-decline {
    background-color: transparent;
    border: 2px solid var(--light-text);
    color: var(--light-text);
}

.cookie-btn-decline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Медиа запросы */
@media (max-width: 992px) {
    .hero-content,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

/* Стили для политик */
.legal-page {
    padding: 100px 0;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.legal-content h1 {
    color: var(--primary);
    margin-bottom: 10px;
}

.last-updated {
    color: #777;
    margin-bottom: 30px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.legal-section h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px;
    color: var(--secondary);
}

.legal-section p, 
.legal-section ul, 
.legal-section ol {
    margin-bottom: 15px;
}

.legal-section ul, 
.legal-section ol {
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 5px;
}

.legal-section address {
    font-style: normal;
    margin: 15px 0;
}

/* Таблицы на странице политики */
.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.cookie-table th, 
.cookie-table td {
    padding: 10px;
    border: 1px solid #eee;
    text-align: left;
}

.cookie-table th {
    background-color: #f5f5f5;
    font-weight: 700;
}

.cookie-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.cookie-table tr:hover {
    background-color: #f1f1f1;
}

/* Стили для страницы благодарности */
.thank-you {
    padding: 100px 0;
    text-align: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.thank-you-icon {
    margin-bottom: 30px;
}

.thank-you h1 {
    color: var(--primary);
    margin-bottom: 20px;
}

.thank-you p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.thank-you-next {
    margin: 40px 0;
    text-align: left;
}

.thank-you-next h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.thank-you-next ol {
    padding-left: 20px;
}

.thank-you-next li {
    margin-bottom: 10px;
}

.thank-you-actions {
    margin-top: 30px;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--primary);
        padding: 80px 30px 30px;
        transition: var(--transition);
        z-index: 1500;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease forwards;
} 