/* Основные переменные и сброс стилей */
:root {
    --deep-blue: #002B5B;
    --azure: #00C2FF;
    --peach-orange: #FF7F50;
    --milk-white: #F8F8F8;
    --dark-charcoal: #1B1B1B;
    
    --font-primary: 'Arial', 'Helvetica', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-bold: 700;
    
    --border-radius: 8px;
    --shadow: 0 4px 20px rgba(0, 43, 91, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--dark-charcoal);
    background-color: var(--milk-white);
    overflow-x: hidden;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    color: var(--deep-blue);
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-size: 2rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

a {
    color: var(--azure);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--peach-orange);
    text-decoration: underline;
}

/* Контейнеры и сетка */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--azure), var(--deep-blue));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--deep-blue), var(--azure));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: var(--peach-orange);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--deep-blue);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--azure);
    color: var(--azure);
}

.btn-outline:hover {
    background-color: var(--azure);
    color: white;
}

/* Хедер */
.header {
    background-color: white;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: var(--font-weight-bold);
    color: var(--deep-blue);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    font-weight: var(--font-weight-bold);
    color: var(--dark-charcoal);
}

.nav a:hover {
    color: var(--azure);
}

/* Герой-секция */
.hero {
    background: linear-gradient(135deg, var(--deep-blue), var(--azure));
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/02WzVy.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    color: white;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Секции */
.section {
    padding: 80px 0;
    scroll-margin-top: 90px;
}

.section-alt {
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--dark-charcoal);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* О компании */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Преимущества */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.benefit-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 43, 91, 0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--azure), var(--peach-orange));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

/* Виды аудита */
.audit-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.audit-card {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.audit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--azure), var(--peach-orange));
    z-index: 2;
}

.audit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 43, 91, 0.15);
}

.audit-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: var(--transition);
}

.audit-card:hover .audit-image {
    transform: scale(1.05);
}

.audit-price {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--peach-orange);
    margin-bottom: 10px;
}

.audit-features {
    list-style: none;
    margin: 20px 0;
}

.audit-features li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.audit-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--azure);
    font-weight: bold;
}

/* Отзывы (слайдер) */
.testimonials {
    background: var(--deep-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--deep-blue), var(--azure));
    z-index: 1;
}

.testimonials::after {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    right: -50%;
    bottom: 0;
    background: url('./img/QbGEdV.jpg') center/cover;
    opacity: 0.1;
    z-index: 2;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.testimonials .container {
    position: relative;
    z-index: 3;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 43, 91, 0.3);
}

.testimonial {
    padding: 40px;
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--peach-orange);
    font-family: serif;
    line-height: 1;
}

.testimonial::after {
    content: '"';
    position: absolute;
    bottom: 10px;
    right: 20px;
    font-size: 4rem;
    color: var(--peach-orange);
    font-family: serif;
    line-height: 1;
}

.testimonial p {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    font-weight: var(--font-weight-bold);
    color: white;
    position: relative;
    padding: 15px 30px;
    background: rgba(0, 194, 255, 0.2);
    border-radius: var(--border-radius);
    margin-top: 20px;
    border-left: 4px solid var(--azure);
}

/* Форма заказа */
.order-form {
    background: linear-gradient(135deg, var(--milk-white), white);
    padding: 60px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: var(--font-weight-bold);
    color: var(--deep-blue);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--azure);
    box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* FAQ */
.faq-item {
    background: white;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-question {
    padding: 25px;
    background: var(--milk-white);
    font-weight: var(--font-weight-bold);
    color: var(--deep-blue);
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--azure);
    color: white;
}

.faq-answer {
    padding: 25px;
    background: white;
}

/* Контакты */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--azure);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.contact-map {
    width: 100%;
    height: 350px;
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow);
}

/* Футер */
.footer {
    background: var(--dark-charcoal);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--azure);
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--azure);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    opacity: 0.6;
}

/* Cookie баннер */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-charcoal);
    color: white;
    padding: 20px;
    z-index: 1001;
    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-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Типографика */
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* Хедер */
    .header .container {
        flex-direction: column;
        gap: 12px;
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin: 0;
    }
    
    .nav a {
        font-size: 0.9rem;
        padding: 8px 12px;
        border-radius: 20px;
        transition: all 0.3s ease;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
    }
    
    .nav a:hover {
        background-color: rgba(0, 194, 255, 0.1);
    }
    
    /* Якоря для мобильной версии */
    .section {
        scroll-margin-top: 70px;
    }
    
    /* Герой */
    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    /* Секции */
    .section {
        padding: 60px 0;
    }
    
    /* Сетки */
    .about-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .audit-types {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Кнопки */
    .btn {
        padding: 18px 35px;
        font-size: 1.2rem;
        display: block;
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Форма */
    .order-form {
        padding: 40px 20px;
        margin: 0 15px;
    }
    
    /* Карточки аудита */
    .audit-image {
        height: 150px;
    }
    
    /* Отзывы */
    .testimonial::before,
    .testimonial::after {
        font-size: 2.5rem;
    }
    
    .testimonial::before {
        top: 0px;
        left: 15px;
    }
    
    .testimonial::after {
        bottom: 15px;
        right: 15px;
    }
    
    /* Карта контактов */
    .contact-map {
        height: 250px;
    }
    
    /* Cookie баннер */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    /* Ещё более компактный header для маленьких экранов */
    .header .container {
        gap: 8px;
        padding: 8px 15px;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav ul {
        gap: 15px;
    }
    
    .nav a {
        font-size: 0.85rem;
        padding: 6px 10px;
        min-height: 40px;
    }
    
    /* Якоря для маленьких экранов */
    .section {
        scroll-margin-top: 60px;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .benefit-card,
    .audit-card {
        padding: 30px 20px;
    }
    
    .order-form {
        padding: 30px 15px;
    }
    
    /* Отзывы для маленьких экранов */
    .testimonial::before,
    .testimonial::after {
        font-size: 2rem;
    }
    
    /* Карточки аудита для маленьких экранов */
    .audit-image {
        height: 120px;
    }
    
    /* Карта для маленьких экранов */
    .contact-map {
        height: 200px;
    }
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 194, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 194, 255, 0);
    }
}

.section:target {
    animation: pulse 2s ease-out;
}

/* Утилиты */
.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
} 