/* ==============================================
   ОБЩИЕ СТИЛИ
   =============================================*/
:root {
    /* Цветовая схема согласно ТЗ */
    --color-primary: #007BA7; /* лазурно-синий */
    --color-secondary: #732C7B; /* насыщенный фиолетовый */
    --color-accent: #C7EA46; /* мягкий лаймовый */
    --color-background: #2B2E34; /* фоновый светлый графит */
    --color-coral: #FF6B6B; /* теплый коралловый */
    --color-white: #FFFFFF;
    --color-light-gray: #F5F5F5;
    --color-gray: #CCCCCC;
    --color-dark-gray: #666666;
    --color-black: #222222;
    
    /* Шрифты */
    --font-main: 'Open Sans', Arial, sans-serif;
    --font-heading: 'Montserrat', Arial, sans-serif;
    
    /* Размеры текста */
    --text-xs: 0.75rem;   /* 12px */
    --text-sm: 0.875rem;  /* 14px */
    --text-base: 1rem;    /* 16px */
    --text-lg: 1.125rem;  /* 18px */
    --text-xl: 1.25rem;   /* 20px */
    --text-2xl: 1.5rem;   /* 24px */
    --text-3xl: 1.875rem; /* 30px */
    --text-4xl: 2.25rem;  /* 36px */
    --text-5xl: 3rem;     /* 48px */
    
    /* Размеры контейнера */
    --container-padding: 1.5rem;
    --container-max-width: 1200px;
}

/* Импорт шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

/* Сброс стилей */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Добавляем отступ для якорей */
}

body {
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-secondary);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    padding: 0 var(--container-padding);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--color-dark-gray);
}

.lead {
    font-size: var(--text-xl);
    font-weight: 300;
}

/* Кнопки */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: var(--text-base);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ==============================================
   ШАПКА САЙТА
   =============================================*/

.main-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 45px;
}

.main-nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin: 0 0.75rem;
}

.main-nav ul li a {
    color: var(--color-black);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--color-secondary);
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.main-nav ul li a.btn-primary {
    color: var(--color-white);
    padding: 0.5rem 1rem;
}

.main-nav ul li a.btn-primary::after {
    display: none;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.mobile-menu-btn span {
    height: 3px;
    width: 100%;
    background-color: var(--color-black);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ==============================================
   HERO-СЕКЦИЯ
   =============================================*/

.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background-color: var(--color-accent);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.1;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: var(--text-5xl);
    margin-bottom: 1.5rem;
}

.hero .lead {
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    margin-left: 2rem;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-5deg);
}

/* ==============================================
   СЕКЦИЯ УСЛУГ
   =============================================*/

.services-info {
    padding: 5rem 0;
    background-color: var(--color-light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--color-light-gray);
    margin: 0 auto 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* ==============================================
   СЕКЦИЯ ПАКЕТОВ УСЛУГ
   =============================================*/

.audit-packages {
    padding: 5rem 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.package-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-gray);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.package-card.featured {
    border: 2px solid var(--color-accent);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.package-header {
    padding: 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.package-card.featured .package-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.package-header h3 {
    margin-bottom: 0.5rem;
}

.package-header .price {
    font-size: var(--text-2xl);
    font-weight: 600;
}

.package-content {
    padding: 2rem;
    background-color: var(--color-white);
}

.package-content ul {
    list-style-type: none;
    margin-bottom: 2rem;
}

.package-content ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.package-content ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.package-cta {
    text-align: center;
}

/* ==============================================
   СЕКЦИЯ О КОМПАНИИ
   =============================================*/

.about-us {
    padding: 5rem 0;
    background-color: var(--color-light-gray);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--color-dark-gray);
}

/* ==============================================
   СЕКЦИЯ ПРЕИМУЩЕСТВА
   =============================================*/

.benefits {
    padding: 5rem 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    margin-bottom: 1.5rem;
}

.icon-circle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: var(--text-2xl);
    font-weight: 600;
    margin: 0 auto;
}

.benefit-card h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
}

/* ==============================================
   СЕКЦИЯ ОТЗЫВОВ
   =============================================*/

.testimonials {
    padding: 5rem 0;
    background-color: var(--color-light-gray);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content p {
    font-style: italic;
}

.testimonial-content p::before,
.testimonial-content p::after {
    content: '"';
    color: var(--color-accent);
    font-size: 3rem;
    font-weight: 700;
    line-height: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1rem;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0;
    color: var(--color-secondary);
}

.author-info p {
    margin-bottom: 0;
    font-size: var(--text-sm);
    color: var(--color-dark-gray);
}

/* ==============================================
   ФОРМА КОНТАКТОВ
   =============================================*/

.contact-form {
    padding: 5rem 0;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--color-white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.form-error {
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--color-coral);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    color: var(--color-coral);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-gray);
    border-radius: 5px;
    font-size: var(--text-base);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    outline: none;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.form-group.checkbox label {
    font-weight: normal;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

/* ==============================================
   ПОДВАЛ САЙТА
   =============================================*/

.main-footer {
    background-color: var(--color-background);
    color: var(--color-white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    color: var(--color-accent);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.footer-column p {
    color: var(--color-light-gray);
}

.footer-column address p {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--color-light-gray);
}

.footer-column a:hover {
    color: var(--color-accent);
}

.legal-links {
    list-style-type: none;
    padding: 0;
}

.legal-links li {
    margin-bottom: 0.5rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    color: var(--color-gray);
    margin-bottom: 0;
}

/* ==============================================
   СТРАНИЦА БЛАГОДАРНОСТИ
   =============================================*/

.thank-you-section {
    padding: 5rem 0;
    text-align: center;
}

.thank-you-content {
    max-width: 700px;
    margin: 0 auto;
}

.thank-you-icon {
    margin-bottom: 2rem;
}

.thank-you-cta {
    margin-top: 2rem;
}

/* ==============================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ
   =============================================*/

.legal-content {
    padding: 5rem 0;
}

.legal-content h1 {
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-secondary);
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: var(--text-2xl);
}

.legal-section h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-size: var(--text-xl);
}

.legal-footer {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray);
    color: var(--color-dark-gray);
}

/* ==============================================
   COOKIE BANNER
   =============================================*/

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    color: var(--color-white);
    padding: 1rem;
    z-index: 1000;
    display: none;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.cookie-content p {
    margin-bottom: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--color-accent);
}

/* ==============================================
   АДАПТИВНЫЙ ДИЗАЙН
   =============================================*/

@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-image {
        margin-left: 0;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column-reverse;
    }
    
    .about-text, .about-image {
        max-width: 100%;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 12px;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-white);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 99;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li {
        margin: 0;
        text-align: center;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 0.75rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero h1 {
        font-size: var(--text-4xl);
    }
    
    .package-card.featured {
        transform: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 10px;
    }
    
    .section-header h2 {
        font-size: var(--text-2xl);
    }
    
    .section-header p {
        font-size: var(--text-base);
    }
    
    .hero h1 {
        font-size: var(--text-3xl);
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .package-content ul li {
        font-size: var(--text-sm);
    }
} 