/* 
* Domain - Financial Audit Services
* Color Palette:
* - Background: #F4F8F6 (light greenish-gray)
* - Accents: #D63E99 (bright pink), #1A1A40 (dark blue)
* - Buttons: #0F766E (aquamarine), hover: #115E59
* - Text: #222222, secondary: #5C5C5C
* - Lines/icons: #D9D9D9
* - Light gradient blocks: from #F4F8F6 to #FFFFFF
*/

/* === Reset & Base Styles === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* Отступ для якорей */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #222222;
    background-color: #F4F8F6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #0F766E;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #115E59;
}

ul {
    list-style: none;
}

/* === Layout === */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 4rem 0;
}

.section--light {
    background: linear-gradient(to bottom, #F4F8F6, #FFFFFF);
}

.section--dark {
    background: #1A1A40;
    color: #FFFFFF;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1A1A40;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background-color: #D63E99;
}

.text-white {
    color: #ffffff !important;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-secondary {
    color: #5C5C5C;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #0F766E;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.btn:hover {
    background-color: #115E59;
    color: white;
}

.btn--secondary {
    background-color: #D63E99;
}

.btn--secondary:hover {
    background-color: #C5338A;
}

.btn--outline {
    background-color: transparent;
    border: 2px solid #0F766E;
    color: #0F766E;
}

.btn--outline:hover {
    background-color: #0F766E;
    color: white;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1A1A40;
    letter-spacing: 1px;
}

.footer__logo {
    color: #FFFFFF;
}

.main-nav__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.main-nav__list {
    display: flex;
    align-items: center;
}

.main-nav__item {
    margin-left: 1.5rem;
}

.main-nav__link {
    color: #222222;
    position: relative;
}

.main-nav__link:hover,
.main-nav__item.active .main-nav__link {
    color: #D63E99;
}

.main-nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #D63E99;
    transition: width 0.3s ease;
}

.main-nav__link:hover::after,
.main-nav__item.active .main-nav__link::after {
    width: 100%;
}

.btn-nav {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #0F766E;
    color: white !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
    text-align: center;
}

.btn-nav:hover {
    background-color: #115E59;
    color: white !important;
}

.btn-nav::after {
    display: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle-input {
    display: none;
}

.menu-toggle-label {
    display: flex;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.bar {
    height: 3px;
    width: 100%;
    background-color: #222222;
    margin: 2px 0;
    transition: 0.4s;
}

.menu-toggle-input:checked ~ .menu-toggle-label .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle-input:checked ~ .menu-toggle-label .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle-input:checked ~ .menu-toggle-label .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* === Hero Section === */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(244, 248, 246, 0.9), rgba(244, 248, 246, 0.9)), url('../img/1bDP2Q.jpg') no-repeat center center/cover;
    margin-top: 76px; /* Header height */
}

.hero__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #1A1A40;
}

.hero__title span {
    color: #D63E99;
}

.hero__text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* === About Section === */
.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about__image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* === Services Section === */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-card__image {
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    height: 200px;
    margin: -2rem -2rem 1.5rem -2rem;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-card__title {
    color: #1A1A40;
    margin-bottom: 1rem;
}

.service-card__content {
    flex-grow: 1;
}

/* === Features Section === */
.features {
    background: linear-gradient(to right, #1A1A40, #342F7E);
    color: white;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature__icon {
    font-size: 2.5rem;
    color: #D63E99;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.experience-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D63E99'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm.5-13H11v6l5.2 3.2.8-1.3-4.5-2.7V7z'/%3E%3C/svg%3E");
}

.certificate-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D63E99'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2s2-.9 2-2c0-.74-.4-1.38-1-1.72V8h3v8H8V8h2V6H6v12h12V6z'/%3E%3C/svg%3E");
}

.approach-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D63E99'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
}

.confidentiality-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D63E99'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
}

.feature__title {
    color: white;
    margin-bottom: 1rem;
}

/* === Testimonials Section === */
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial__text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial__text::before {
    content: '"';
    font-size: 3rem;
    color: #D9D9D9;
    position: absolute;
    top: -1rem;
    left: -1rem;
}

.testimonial__author {
    display: flex;
    align-items: center;
}

.testimonial__avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    overflow: hidden;
}

.testimonial__name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.testimonial__role {
    color: #5C5C5C;
    font-size: 0.9rem;
}

/* === FAQ Section === */
.faq {
    background: linear-gradient(to bottom, #F4F8F6, #FFFFFF);
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 6px;
    overflow: hidden;
}

.faq-question {
    background: white;
    padding: 1.25rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #1A1A40;
    border: 1px solid #D9D9D9;
    position: relative;
}

.faq-question:after {
    content: "+";
    font-size: 1.5rem;
    color: #D63E99;
}

.faq-item.active .faq-question {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-item.active .faq-question:after {
    content: "−";
}

.faq-answer {
    background: white;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border: 1px solid #D9D9D9;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.faq-item.active .faq-answer {
    padding: 1.25rem;
    max-height: 1000px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* === Certificates Section === */
.certificates__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.certificate {
    filter: grayscale(1);
    transition: filter 0.3s ease;
    max-width: 150px;
}

.certificate:hover {
    filter: grayscale(0);
}

/* === Order Form Section === */
.order-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #D9D9D9;
    border-radius: 4px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #0F766E;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-check-input {
    margin-right: 0.75rem;
    margin-top: 0.3rem;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-message {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.form-message--success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.form-message--error {
    background-color: #f8d7da;
    color: #842029;
}

/* === Footer === */
.footer {
    background: #1A1A40;
    color: white;
    padding: 4rem 0 0;
}

.footer__container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}

.footer__col {
    padding: 0 1rem;
}

.footer__logo-container {
    margin-bottom: 1rem;
}

.footer__tagline {
    color: #D9D9D9;
    margin-top: 1rem;
}

.footer__heading {
    color: white;
    margin-bottom: 1.5rem;
}

.footer__list li {
    margin-bottom: 0.75rem;
}

.footer__list a {
    color: #D9D9D9;
}

.footer__list a:hover {
    color: #D63E99;
}

.footer__address p {
    margin-bottom: 0.75rem;
}

.footer__address a {
    color: #D9D9D9;
}

.footer__address a:hover {
    color: #D63E99;
}

.footer__bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
    color: #D9D9D9;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* === Cookie Popup === */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.cookie-popup.show {
    display: block;
}

.cookie-popup__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-popup__text {
    flex: 1;
    min-width: 280px;
    margin-bottom: 0;
}

.cookie-popup__buttons {
    display: flex;
    gap: 1rem;
}

/* === Policy Pages === */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 120px;
    margin-bottom: 4rem;
}

.policy-title {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #D9D9D9;
}

.policy-section {
    margin-bottom: 2rem;
}

.policy-section h3 {
    margin-bottom: 1rem;
    color: #1A1A40;
}

/* === Responsive === */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about__content {
        grid-template-columns: 1fr;
    }
    
    .footer__container {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer__col:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .main-nav--open {
        right: 0;
    }
    
    .main-nav__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav__list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .main-nav__item {
        margin: 0 0 1.5rem 0;
        width: 100%;
    }
    
    .btn-nav {
        margin: 1rem 0 0 0;
        width: 100%;
        text-align: center;
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .footer__container {
        grid-template-columns: 1fr;
    }
    
    .footer__col {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .hero__title {
        font-size: 2.2rem;
    }
    
    .order-form {
        padding: 2rem;
    }
    
    .policy-container {
        padding: 2rem;
        margin-top: 100px;
    }
}

/* === Utility Classes === */
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.text-center { text-align: center; }
.text-right { text-align: right; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
