/* 
* domain - Finanční audit a transparentnost
* Základní стили сайта
*/

/* Переменные для цветов из ТЗ */
:root {
    --color-bg-main: #001F3F;
    --color-accent: #B10DC9;
    --color-text: #F8F9FA;
    --color-section-bg: #FF8552;
    --color-cta-start: #00C9A7;
    --color-cta-end: #005F73;
    --font-main: 'Montserrat', sans-serif;
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-main);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Базовые контейнеры */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    font-weight: 700;
}

h1 {
    font-size: 3rem;
    margin-bottom: 30px;
}

h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(to right, var(--color-cta-start), var(--color-cta-end));
    color: var(--color-text);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: var(--color-text);
}

/* Хедер и навигация */
.main-header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(0, 31, 63, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: lowercase;
    position: relative;
}

.logo a:before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.logo a:hover:before {
    transform: scaleX(1);
    transform-origin: left;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav a {
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.main-nav a:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    z-index: 999;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.menu-toggle .line {
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* Hero секция */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-image: linear-gradient(rgba(0, 31, 63, 0.8), rgba(0, 31, 63, 0.9)), url('./img/TNiduO.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Секция "О компании" */
.about {
    background-color: var(--color-bg-main);
}

.about {
    position: relative;
}

.about h2 {
    text-align: center;
    margin-bottom: 60px;
}

.about h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1.2;
}

.about-image {
    flex: 0.8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: all 0.5s ease;
}

.about-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Секция "Виды аудитов" */
.services {
    background-color: var(--color-section-bg);
    position: relative;
}

.services h2 {
    text-align: center;
    margin-bottom: 60px;
}

.services h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-bg-main);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card-img {
    height: 200px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img img {
    transform: scale(1.05);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--color-accent), transparent);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover:before {
    opacity: 0.1;
}

.service-card h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.service-card h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-accent);
}

/* Секция "Преимущества" */
.benefits {
    background-color: var(--color-bg-main);
}

.benefits h2 {
    text-align: center;
    margin-bottom: 60px;
}

.benefits h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}

/* Секция "Этапы аудита" */
.stages {
    background-color: var(--color-section-bg);
    position: relative;
}

.stages h2 {
    text-align: center;
    margin-bottom: 60px;
}

.stages h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.stages-list {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.stages-list:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(50px / 2);
    width: 4px;
    background-color: var(--color-accent);
    transform: translateX(-50%);
}

.stage-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.stage-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, var(--color-cta-start), var(--color-cta-end));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 30px;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stage-content {
    background-color: var(--color-bg-main);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

/* Секция "Отзывы" */
.testimonials {
    background-color: var(--color-bg-main);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-text {
    position: relative;
    padding: 0 15px;
}

.testimonial-text:before, .testimonial-text:after {
    content: '"';
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.5;
    position: absolute;
    line-height: 0;
}

.testimonial-text:before {
    top: 15px;
    left: -5px;
}

.testimonial-text:after {
    bottom: -5px;
    right: -5px;
}

.testimonial-author {
    margin-top: 20px;
    display: flex;
    align-items: center;
}

.author-name {
    font-weight: 600;
}

.author-position {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Секция "Форма заказа" */
.order-form {
    background-color: var(--color-section-bg);
    position: relative;
}

.order-form h2 {
    text-align: center;
    margin-bottom: 50px;
}

.order-form h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-bg-main);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(177, 13, 201, 0.3);
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23F8F9FA" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    cursor: pointer;
}

.form-select option {
    background-color: var(--color-bg-main);
    color: var(--color-text);
    padding: 12px;
}

.form-select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 10px rgba(177, 13, 201, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-group label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 0;
}

.checkbox-group label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked + label:before {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.checkbox-group label:after {
    content: '';
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.3s ease;
}

.checkbox-group input[type="checkbox"]:checked + label:after {
    opacity: 1;
}

.checkbox-group label {
    color: var(--color-text);
}

.checkbox-group label a {
    color: var(--color-text);
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

.form-submit {
    display: block;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Секция "FAQ" */
.faq {
    background-color: var(--color-bg-main);
}

.faq h2 {
    text-align: center;
    margin-bottom: 60px;
}

.faq h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-right: 40px;
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    color: var(--color-text);
    font-size: 1rem;
    font-family: var(--font-main);
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.faq-question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.faq-answer {
    background-color: rgba(255, 255, 255, 0.02);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer-content {
    padding: 20px;
}

.faq-active .faq-question {
    background-color: rgba(177, 13, 201, 0.2);
}

.faq-active .faq-question:after {
    content: '−';
}

.faq-active .faq-answer {
    padding: 0;
    max-height: 500px;
}

/* Секция "Контакты" */
.contact {
    background-color: var(--color-section-bg);
    position: relative;
}

.contact h2 {
    text-align: center;
    margin-bottom: 60px;
}

.contact h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    background-color: var(--color-bg-main);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-details strong {
    font-weight: 600;
    min-width: 70px;
    display: inline-block;
}

.contact-map {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Footer */
.main-footer {
    background-color: #001730;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-column h3 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--color-accent);
}

.contact-list li, .legal-links li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 400px;
    background-color: var(--color-bg-main);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-content h3 {
    margin-bottom: 15px;
}

.cookie-content p {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Страницы политик */
.policy-page {
    padding: 150px 0 80px;
}

.policy-container {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
    margin-bottom: 40px;
}

.policy-container h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

/* Страница благодарности */
.thank-you-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 150px 0 80px;
    text-align: center;
}

.thank-you-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.thank-you-container h1 {
    margin-bottom: 30px;
}

.thank-you-container p {
    font-size: 1.2rem;
    margin-bottom: 40px;
}

/* Адаптивность */
@media (max-width: 1200px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    /* Обеспечение отсутствия горизонтальной прокрутки */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-bg-main);
        padding-top: 80px;
        transition: all 0.3s ease;
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
        z-index: 99;
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0 20px;
    }
    
    .main-nav li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav a {
        display: block;
        padding: 15px 0;
    }
    
    section {
        padding: 60px 0;
    }
    
    /* Адаптация первого блока */
    .hero {
        padding-top: 60px;
        min-height: 70vh;
    }
    
    .hero-content {
        padding: 0 15px;
        width: 100%;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .services-grid,
    .benefits-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Фиксация мобильных проблем */
    .container {
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    section {
        padding: 50px 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .hero .btn {
        width: 100%;
    }
    
    .form-container,
    .policy-container,
    .thank-you-container {
        padding: 30px 20px;
    }
    
    .cookie-popup {
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    /* Дополнительные мобильные стили */
    .benefit-item, .testimonial-card, .service-card {
        margin-bottom: 20px;
    }
    
    .service-card-img {
        height: 150px;
    }
}
