/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6A5ACD; /* фиолетово-лазурный */
    --secondary-color: #FFF44F; /* лимонно-жёлтый */
    --background-color: #F9F9F9; /* ультра-светло-серый */
    --accent-mint: #3EB489; /* мятный */
    --accent-coral: #FF6F61; /* коралловый */
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-color);
    overflow-x: hidden;
    max-width: 100%;
}

/* Prevent horizontal overflow */
img, svg, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}

pre, code {
    max-width: 100%;
    overflow-x: auto;
}

/* Ensure all sections don't overflow */
section, div, article, aside, header, footer, main {
    max-width: 100%;
    box-sizing: border-box;
}

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Ensure all inputs and buttons don't overflow */
input, textarea, button, select {
    max-width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header Styles */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo-svg {
    height: 60px;
    transition: var(--transition);
}

.logo-svg:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.phone-link {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: var(--transition);
}

.phone-link:hover {
    background: var(--accent-mint);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Main Content */
.main-content {
    margin-top: 90px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-mint));
    color: var(--white);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/aqbFI7.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 18px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background: var(--accent-coral);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Benefits Section */
.benefits-section {
    background: var(--background-color);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.benefit-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

.benefit-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Services Section */
.services-section {
    background: var(--white);
}

.services-tabs-container {
    position: relative;
    text-align: center;
}

.services-tabs-container input[type="radio"] {
    display: none;
}

/* Tabs row */
.services-tabs-container label.service-tab {
    background: var(--background-color);
    border: 2px solid var(--background-color);
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    display: inline-block;
    margin: 0 10px 50px 10px;
}

.services-tabs-container label.service-tab:first-of-type {
    margin-left: 0;
}

.services-tabs-container label.service-tab:last-of-type {
    margin-right: 0;
}

.services-tabs-container label.service-tab:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Style active tab when radio is checked */
#tab-audit:checked + label.service-tab,
#tab-accompagnement:checked + label.service-tab,
#tab-consultation:checked + label.service-tab {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Content styling */
.service-content {
    display: none;
    background: var(--background-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 100%;
    margin-top: 20px;
}

/* Show content when corresponding radio is checked */
#tab-audit:checked ~ #content-audit,
#tab-accompagnement:checked ~ #content-accompagnement,
#tab-consultation:checked ~ #content-consultation {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Create tabs layout on desktop */
@media (min-width: 769px) {
    .services-tabs-container {
        display: block;
        text-align: center;
    }
    
    .services-tabs-container label.service-tab {
        display: inline-block;
        margin: 0 10px 50px 10px;
    }
}

.service-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.service-image {
    text-align: center;
}

.service-image img {
    max-width: 100%;
    max-height: 300px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-image img:hover {
    transform: scale(1.02);
}

.service-text {
    padding: 20px 0;
}

.service-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.service-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-dark);
}

.service-text ul {
    list-style: none;
    padding-left: 0;
}

.service-text ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-text ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-mint);
    font-weight: bold;
    font-size: 1.1rem;
}

.service-list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-mint);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--background-color);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: bold;
    color: var(--primary-color);
}

/* Contact Form Section */
.contact-section {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-form {
    background: var(--background-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    max-width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group {
    margin: 20px 0;
}

.checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-option input {
    margin-top: 4px;
}

.submit-button {
    background: var(--primary-color);
    color: var(--white);
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.submit-button:hover {
    background: var(--accent-mint);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer Styles */
.main-footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
}

.footer-bottom-content p {
    color: #ccc;
    margin-bottom: 5px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: var(--white);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: var(--transition);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.cookie-content a {
    color: var(--secondary-color);
}

.cookie-accept-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
    white-space: nowrap;
}

.cookie-accept-btn:hover {
    background: var(--accent-mint);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes checkmarkDraw {
    0% {
        stroke-dasharray: 0 100;
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dasharray: 100 100;
        stroke-dashoffset: 0;
    }
}

@keyframes successScale {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Success checkmark animation */
.success-checkmark {
    animation: successScale 0.8s ease-out;
}

.success-checkmark path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: checkmarkDraw 0.8s ease-out 0.3s forwards;
}

/* Responsive Design */
@media (max-width: 968px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
    }
    
    .main-nav ul {
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1;
    }
    
    .header-contact {
        order: 2;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
    
    .logo {
        text-align: center;
    }
    
    .logo-svg {
        height: 50px;
    }
    
    .main-nav ul {
        flex-direction: row;
        gap: 15px;
        text-align: center;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    
    .phone-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-grid,
    .contact-grid,
    .service-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-image img {
        max-height: 250px;
    }
    
    .services-tabs-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .services-tabs-container label.service-tab {
        width: 100%;
        max-width: 250px;
        text-align: center;
        margin: 5px 0 20px 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .success-checkmark {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        word-break: break-word;
    }
    
    .hero-title {
        font-size: 2rem !important;
        word-break: break-word;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        word-break: break-word;
    }
    
    .benefit-card,
    .contact-form {
        padding: 25px 15px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1.1rem;
        max-width: 100%;
        word-break: break-word;
    }
    
    .success-checkmark {
        width: 80px;
        height: 80px;
    }
    
    .container {
        padding: 0 10px;
        max-width: 100%;
    }
    
    .cookie-banner {
        padding: 15px 10px;
    }
    
    .cookie-content {
        padding: 0 5px;
    }
    
    .phone-link {
        font-size: 0.8rem;
        padding: 8px 15px;
        word-break: break-word;
    }
} 