/* =============================================================================
   DOMAIN AUDITORÍA - MODERN RESPONSIVE CSS
   Unique color palette with smooth animations
   ============================================================================= */

/* CSS Custom Properties */
:root {
    /* Colors */
    --primary-color: #FFB300;        /* Солнечный жёлто-оранжевый */
    --accent-color: #1DE9B6;         /* Бирюзово-синий */
    --bg-color: #F9FAFB;             /* Светлый серо-белый */
    --text-color: #2E2E2E;           /* Графитовый серый */
    --white: #FFFFFF;
    --light-gray: #E5E7EB;
    --medium-gray: #9CA3AF;
    --dark-gray: #374151;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FFB300 0%, #1DE9B6 100%);
    --gradient-secondary: linear-gradient(45deg, #1DE9B6 0%, #FFB300 100%);
    --gradient-overlay: linear-gradient(rgba(255, 179, 0, 0.9), rgba(29, 233, 182, 0.9));
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 4rem 0;
    --element-gap: 2rem;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem;
    z-index: 10000;
    opacity: 0;
    transform: translateY(100%);
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-lg);
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-accept {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-info {
    color: var(--white);
    text-decoration: underline;
    font-weight: var(--font-weight-medium);
}

.btn-info:hover {
    opacity: 0.8;
}

/* Header & Navigation */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    transition: var(--transition-normal);
}

.logo:hover svg {
    transform: rotate(5deg);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition-normal);
}

.mobile-toggle.active .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    position: relative;
    transition: var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-phone {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-normal);
}

.nav-phone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Main Content */
.main-content {
    margin-top: 0;
}

/* Hero Section */
.hero {
    background: var(--gradient-overlay), url('./img/4aLsXB.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: var(--font-weight-medium);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: var(--font-weight-semibold);
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #E09A00;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--white);
}

.btn-accent:hover {
    background: #1BC4A0;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    padding: var(--section-padding);
}

.section-alt {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--medium-gray);
    font-size: 1.125rem;
    margin-top: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.card-title {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.card-description {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    opacity: 0.8;
}

.service-content {
    padding: 2rem;
}

.service-price {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-checkbox input {
    margin-top: 0.25rem;
}

.checkbox-label {
    font-size: 0.875rem;
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--accent-color);
}

/* Testimonials */
.testimonials {
    background: var(--gradient-primary);
    color: var(--white);
}

.testimonials .section-subtitle {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.testimonial-author {
    font-weight: var(--font-weight-semibold);
}

.testimonial-company {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Steps */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    margin: 0 auto 1rem;
    position: relative;
    z-index: 2;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 30px;
    left: calc(100% - 30px);
    width: calc(100% - 60px);
    height: 2px;
    background: var(--light-gray);
    z-index: 1;
}

.step-title {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.step-description {
    color: var(--medium-gray);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--light-gray);
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-icon {
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--light-gray);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--dark-gray);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom-content {
    color: var(--light-gray);
}

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* CSS Animations - Replace JavaScript functionality */
@keyframes cssSlideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CSS Animate Classes with Sequential Delays */
.css-animate-1 { animation: cssSlideInUp 0.8s ease 0.1s both; }
.css-animate-2 { animation: cssSlideInUp 0.8s ease 0.2s both; }
.css-animate-3 { animation: cssSlideInUp 0.8s ease 0.3s both; }
.css-animate-4 { animation: cssSlideInUp 0.8s ease 0.4s both; }
.css-animate-5 { animation: cssSlideInUp 0.8s ease 0.5s both; }
.css-animate-6 { animation: cssSlideInUp 0.8s ease 0.6s both; }
.css-animate-7 { animation: cssSlideInUp 0.8s ease 0.7s both; }
.css-animate-8 { animation: cssSlideInUp 0.8s ease 0.8s both; }
.css-animate-9 { animation: cssSlideInUp 0.8s ease 0.9s both; }
.css-animate-10 { animation: cssSlideInUp 0.8s ease 1.0s both; }
.css-animate-11 { animation: cssSlideInUp 0.8s ease 1.1s both; }
.css-animate-12 { animation: cssSlideInUp 0.8s ease 1.2s both; }
.css-animate-13 { animation: cssSlideInUp 0.8s ease 1.3s both; }
.css-animate-14 { animation: cssSlideInUp 0.8s ease 1.4s both; }
.css-animate-15 { animation: cssSlideInUp 0.8s ease 1.5s both; }
.css-animate-16 { animation: cssSlideInUp 0.8s ease 1.6s both; }
.css-animate-17 { animation: cssSlideInUp 0.8s ease 1.7s both; }

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Intersection Observer Animations - Deprecated, replaced with CSS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition-normal);
        pointer-events: none;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-phone {
        margin-top: 1rem;
    }
    
    .hero {
        min-height: 90vh;
        padding-top: 100px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cards-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem 1rem;
        margin: 0 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 2rem 0;
    }
    
    .hero {
        min-height: 80vh;
        background-attachment: scroll;
        padding-top: 120px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .card,
    .service-content {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
}

/* Print Styles */
@media print {
    .cookie-banner,
    .header,
    .footer {
        display: none;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .hero {
        background: none;
        color: var(--text-color);
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
} 