/* Base Styles */
:root {
    --mint-green: #00B894;
    --midnight-indigo: #2D3436;
    --sunset-coral: #FF7675;
    --misty-silver: #B2BEC3;
    --pale-champagne: #FFEAA7;
    --white: #FFFFFF;
    --black: #000000;
    --gray-light: #F8F9FA;
    --gray: #E9ECEF;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--midnight-indigo);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--mint-green);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--mint-green);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--sunset-coral);
}

ul, ol {
    list-style-type: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    display: inline-block;
}

.section-heading h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--mint-green);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--sunset-coral);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn--nav {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--midnight-indigo);
}

.logo--footer {
    color: var(--white);
    margin-bottom: 1rem;
    display: block;
}

.header__nav {
    display: flex;
}

.header__nav-list {
    display: flex;
    align-items: center;
}

.header__nav-list li {
    margin-left: 2rem;
}

.header__nav-list a {
    color: var(--midnight-indigo);
    font-weight: 500;
    position: relative;
}

.header__nav-list a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--mint-green);
    transition: var(--transition);
}

.header__nav-list a:hover:after,
.header__nav-list a.active:after {
    width: 100%;
}

.header__menu-button {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
}

.header__menu-button span {
    width: 100%;
    height: 3px;
    background-color: var(--midnight-indigo);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(0,184,148,0.1) 0%, rgba(255,118,117,0.1) 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero__content {
    max-width: 650px;
    text-align: center;
    margin: 0 auto;
}

.hero__title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease forwards;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--midnight-indigo);
    opacity: 0.9;
    animation: fadeInUp 1s 0.3s ease forwards;
    opacity: 0;
}

.hero__btn {
    animation: fadeInUp 1s 0.6s ease forwards;
    opacity: 0;
}

/* About Section */
.about {
    background-color: var(--white);
}

.about__inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about__content {
    flex: 1;
}

.about__image {
    flex: 1;
    text-align: center;
}

.about__image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Audits Section */
.audits {
    background-color: var(--gray-light);
}

.audits__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.audit-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.audit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.audit-card__image {
    height: 200px;
    overflow: hidden;
}

.audit-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.audit-card:hover .audit-card__image img {
    transform: scale(1.05);
}

.audit-card__content {
    padding: 1.5rem;
}

.audit-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.audit-card__description {
    color: var(--midnight-indigo);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

/* Benefits Section */
.benefits {
    background-color: var(--white);
}

.benefits__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 10px;
    background-color: var(--gray-light);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.benefit-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--mint-green);
    color: var(--white);
    font-size: 1.5rem;
}

.benefit-card__title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--gray-light);
    position: relative;
    overflow: hidden;
}

.testimonials__container {
    position: relative;
}

.testimonials__list {
    position: relative;
    height: 300px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateX(50px);
    transition: var(--transition);
    z-index: 1;
}

.testimonial-card--active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.testimonial-card__quote {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
}

.testimonial-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-card__name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial-card__position {
    font-size: 0.85rem;
    opacity: 0.7;
}

.testimonials__controls {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.testimonial-control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 0.5rem;
    background-color: var(--misty-silver);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-control--active {
    background-color: var(--mint-green);
    transform: scale(1.2);
}

/* FAQ Section */
.faq {
    background-color: var(--white);
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--gray);
    border-radius: 8px;
    overflow: hidden;
}

.faq-item__question {
    padding: 1.25rem;
    background-color: var(--gray-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-item__question h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.faq-item__question-icon {
    width: 20px;
    height: 20px;
    position: relative;
    transition: var(--transition);
}

.faq-item__question-icon:before,
.faq-item__question-icon:after {
    content: '';
    position: absolute;
    background-color: var(--midnight-indigo);
    transition: var(--transition);
}

.faq-item__question-icon:before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.faq-item__question-icon:after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.faq-item--active .faq-item__question {
    background-color: var(--mint-green);
    color: var(--white);
}

.faq-item--active .faq-item__question-icon:before,
.faq-item--active .faq-item__question-icon:after {
    background-color: var(--white);
}

.faq-item--active .faq-item__question-icon:after {
    transform: translateX(-50%) rotate(90deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item--active .faq-item__answer {
    max-height: 500px;
}

.faq-item__answer-inner {
    padding: 1.25rem;
    border-top: 1px solid var(--gray);
}

/* Contact Section */
.contact {
    background-color: var(--gray-light);
}

.contact__inner {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.contact__form {
    flex: 1;
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact__map {
    flex: 1;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact__map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form__input,
.form__select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray);
    border-radius: 4px;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.form__input:focus,
.form__select:focus {
    border-color: var(--mint-green);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.2);
}

.form__checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form__checkbox input {
    margin-right: 0.5rem;
}

.form__error {
    color: var(--sunset-coral);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Legal Section */
.legal {
    background-color: var(--white);
    padding: 3rem 0;
}

.legal__inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.legal__icons {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.legal__icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.legal__icon-image {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
}

.legal__text {
    opacity: 0.8;
}

/* Footer */
.footer {
    background-color: var(--midnight-indigo);
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer__description {
    color: var(--misty-silver);
}

.footer__heading {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer__heading:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--mint-green);
}

.footer__contact-list li,
.footer__links-list li {
    margin-bottom: 0.75rem;
    color: var(--misty-silver);
}

.footer__contact-list a,
.footer__links-list a {
    color: var(--misty-silver);
}

.footer__contact-list a:hover,
.footer__links-list a:hover {
    color: var(--mint-green);
}

.footer__bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(178, 190, 195, 0.2);
    color: var(--misty-silver);
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background-color: var(--midnight-indigo);
    padding: 1rem;
    display: flex;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition);
    opacity: 0;
}

.cookie-popup--active {
    bottom: 0;
    opacity: 1;
}

.cookie-popup__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 0 1rem;
}

.cookie-popup__content p {
    color: var(--white);
    margin-right: 2rem;
    margin-bottom: 0;
}

.cookie-popup__content button {
    padding: 0.5rem 1.5rem;
    background-color: var(--mint-green);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.cookie-popup__content button:hover {
    background-color: var(--sunset-coral);
}

/* Policy Pages */
.policy {
    padding: 8rem 0 5rem;
}

.policy__container {
    max-width: 900px;
}

.policy__content {
    background-color: var(--white);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray);
}

.policy__title {
    margin-bottom: 2rem;
    text-align: center;
}

.policy__section {
    margin-bottom: 2rem;
}

.policy__section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--mint-green);
}

/* Thank You Page */
.thank-you {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0;
    text-align: center;
}

.thank-you__content {
    max-width: 600px;
    width: 90%;
    padding: 3rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

.thank-you__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background-color: var(--mint-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.thank-you__title {
    color: var(--mint-green);
    margin-bottom: 1rem;
}

.thank-you__text {
    margin-bottom: 2rem;
    color: var(--midnight-indigo);
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.75rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .benefits__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .header__nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow: hidden;
        transition: var(--transition);
        opacity: 0;
    }
    
    .header__nav--active {
        height: calc(100vh - 80px);
        opacity: 1;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .header__nav-list {
        flex-direction: column;
        width: 100%;
        padding: 2rem 0;
    }
    
    .header__nav-list li {
        margin: 1rem 0;
        text-align: center;
    }
    
    .header__menu-button {
        display: flex;
    }
    
    .header__nav--active + .header__menu-button span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .header__nav--active + .header__menu-button span:nth-child(2) {
        opacity: 0;
    }
    
    .header__nav--active + .header__menu-button span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .about__inner,
    .contact__inner {
        flex-direction: column;
        gap: 2rem;
    }
    
    .audits__list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__heading:after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero {
        height: auto;
        padding-top: 120px;
        padding-bottom: 3rem;
    }
    
    .benefits__list {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup__content {
        flex-direction: column;
    }
    
    .cookie-popup__content p {
        margin-right: 0;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    /* Предотвращение горизонтальной прокрутки */
    .container {
        padding-left: 10px;
        padding-right: 10px;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    img, svg {
        max-width: 100%;
        height: auto;
    }
    
    section {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* Устранение любых элементов, которые могут вызывать горизонтальную прокрутку */
    .hero__title, 
    .hero__subtitle,
    .about__content,
    .about__image img,
    .audit-card,
    .benefit-card,
    .testimonial-card,
    .faq-item,
    .contact__form,
    .contact__map img,
    .legal__inner,
    .footer__inner {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}
