/* 
* FinAudit - Стили для одностраничного сайта
* Автор: Claude
* Дата: 2023
*/

/* ======= ПЕРЕМЕННЫЕ И ОСНОВНЫЕ СТИЛИ ======= */
:root {
    /* Основная цветовая палитра */
    --color-primary: #1DE9B6; /* Яркий бирюзовый */
    --color-accent: #FF6F61; /* Лососевый */
    --color-bg: #263238; /* Глубокий графит */
    --color-text: #ECEFF1; /* Светлый серый */
    
    /* Дополнительные цвета */
    --color-bg-light: #37474F;
    --color-bg-lighter: #455A64;
    --color-text-dark: #B0BEC5;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.7);
    
    /* Скругления */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Размеры шрифта */
    --font-xxs: 0.75rem;   /* 12px */
    --font-xs: 0.875rem;   /* 14px */
    --font-sm: 1rem;       /* 16px */
    --font-md: 1.125rem;   /* 18px */
    --font-lg: 1.5rem;     /* 24px */
    --font-xl: 2rem;       /* 32px */
    --font-xxl: 3rem;      /* 48px */
    
    /* Межстрочный интервал */
    --line-height: 1.6;
    
    /* Переходы */
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ======= СБРОС СТИЛЕЙ ======= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--color-accent);
}

/* ======= СЕТКА И КОНТЕЙНЕРЫ ======= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

/* ======= ТИПОГРАФИЯ ======= */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--color-text);
    font-weight: 700;
}

h1 {
    font-size: var(--font-xxl);
}

h2 {
    font-size: var(--font-xl);
}

h3 {
    font-size: var(--font-lg);
}

h4 {
    font-size: var(--font-md);
}

p {
    margin-bottom: 16px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    border-radius: var(--radius-sm);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px;
    color: var(--color-text-dark);
    font-size: var(--font-md);
}

/* ======= КНОПКИ ======= */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: var(--font-sm);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.btn--primary:hover {
    background-color: #16c9a0;
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--accent {
    background-color: var(--color-accent);
    color: white;
}

.btn--accent:hover {
    background-color: #e85a4f;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    border: 2px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary);
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

/* ======= ШАПКА И НАВИГАЦИЯ ======= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(38, 50, 56, 0.95);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo__svg {
    transition: var(--transition);
}

.logo:hover .logo__svg {
    transform: scale(1.05);
}

.nav__list {
    display: flex;
    gap: 30px;
}

.nav__link {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link:hover::after {
    width: 100%;
}

.header__contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header__phone {
    color: var(--color-text);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--color-text);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle--active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle--active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle--active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 992px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-bg);
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        padding: 100px 30px 30px;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav--active {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 20px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header__contact {
        display: none;
    }
}

/* ======= HERO СЕКЦИЯ ======= */
.hero {
    padding: 160px 0 80px;
    overflow: hidden;
    position: relative;
}

.hero__wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero__content {
    flex: 1;
}

.hero__title {
    font-size: var(--font-xxl);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease forwards;
}

.hero__text {
    font-size: var(--font-md);
    margin-bottom: 30px;
    color: var(--color-text-dark);
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero__btn {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero__image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(800px) rotateY(-10deg);
    transition: var(--transition);
    animation: fadeInRight 1s ease forwards;
}

.hero__image:hover {
    transform: perspective(800px) rotateY(-5deg) translateZ(20px);
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero__wrapper {
        flex-direction: column;
    }
    
    .hero__title {
        font-size: var(--font-xl);
    }
    
    .hero__image {
        transform: none;
    }
    
    .hero__image:hover {
        transform: none;
    }
}

/* ======= О НАС СЕКЦИЯ ======= */
.about__wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about__image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about__content {
    flex: 1;
}

.about__text {
    margin-bottom: 20px;
}

.about__list {
    margin-top: 30px;
}

.about__item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.about__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .about__wrapper {
        flex-direction: column;
    }
}

/* ======= УСЛУГИ СЕКЦИЯ ======= */
.services__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card__icon {
    margin-bottom: 20px;
    color: var(--color-primary);
}

.service-card__title {
    font-size: var(--font-lg);
    margin-bottom: 15px;
}

.service-card__text {
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.service-card__list {
    margin: 15px 0;
    flex-grow: 1;
}

.service-card__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.service-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
}

.service-card__link {
    font-weight: 600;
    margin-top: auto;
    display: inline-block;
    padding: 8px 0;
}

/* ======= ПРЕИМУЩЕСТВА СЕКЦИЯ ======= */
.advantages__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    background-color: var(--color-bg-light);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.advantage-item__icon {
    margin-bottom: 20px;
}

.advantage-item__title {
    margin-bottom: 15px;
}

.advantage-item__text {
    color: var(--color-text-dark);
}

/* ======= ЭТАПЫ РАБОТЫ СЕКЦИЯ ======= */
.process__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -10px;
    width: 20px;
    height: 20px;
    border-top: 2px dashed var(--color-primary);
    border-right: 2px dashed var(--color-primary);
    transform: rotate(45deg);
}

.process-step__number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-lg);
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.process-step__title {
    margin-bottom: 10px;
}

.process-step__text {
    color: var(--color-text-dark);
}

@media (max-width: 992px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
}

/* ======= ФОРМА ЗАКАЗА СЕКЦИЯ ======= */
.form-section__wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

.form-section__image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.form-section__content {
    flex: 1;
}

.form {
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form__input,
.form__select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-bg-lighter);
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: var(--font-sm);
}

.form__input:focus,
.form__select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form__group--checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form__checkbox {
    width: 18px;
    height: 18px;
}

.form__checkbox-label {
    font-size: var(--font-xs);
}

.form__submit {
    margin-top: 30px;
    text-align: center;
}

.form__btn {
    min-width: 200px;
}

@media (max-width: 768px) {
    .form-section__wrapper {
        flex-direction: column;
    }
    
    .form {
        padding: 30px 20px;
    }
}

/* ======= ОТЗЫВЫ КЛИЕНТОВ СЕКЦИЯ ======= */
.testimonials__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 80px;
    line-height: 1;
    color: rgba(29, 233, 182, 0.1);
    font-family: Georgia, serif;
}

.testimonial__rating {
    margin-bottom: 20px;
}

.star {
    color: #FFD700;
    font-size: var(--font-md);
}

.testimonial__text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial__author {
    margin-top: 30px;
}

.testimonial__name {
    font-size: var(--font-md);
    margin-bottom: 5px;
}

.testimonial__position {
    font-size: var(--font-xs);
    color: var(--color-text-dark);
}

/* ======= КАРТА СЕКЦИЯ ======= */
.map-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-md);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-light);
    position: relative;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(38, 50, 56, 0.9);
    padding: 20px;
    backdrop-filter: blur(10px);
}

/* ======= ПОДВАЛ ======= */
.footer {
    background-color: var(--color-bg-light);
    padding: 80px 0 30px;
    margin-top: 40px;
}

.footer__wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer__logo {
    margin-bottom: 20px;
    display: block;
}

.footer__description {
    color: var(--color-text-dark);
    margin-bottom: 20px;
}

.footer__title {
    font-size: var(--font-md);
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: var(--radius-sm);
}

.footer__item {
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.footer__link {
    color: var(--color-text);
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid var(--color-bg-lighter);
    text-align: center;
}

.footer__copyright {
    color: var(--color-text-dark);
    font-size: var(--font-xs);
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 30px;
    }
}

/* ======= COOKIE БАННЕР ======= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(38, 50, 56, 0.95);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-slow);
}

.cookie-banner__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
}

.cookie-banner__content p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .cookie-banner__content {
        flex-direction: column;
        text-align: center;
    }
}

/* ======= СТРАНИЦА БЛАГОДАРНОСТИ ======= */
.thanks {
    padding: 160px 0;
    text-align: center;
}

.thanks__wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.thanks__icon {
    margin: 0 auto 30px;
    animation: bounce 2s infinite;
}

.thanks__title {
    margin-bottom: 30px;
}

.thanks__text {
    color: var(--color-text-dark);
    font-size: var(--font-md);
    margin-bottom: 30px;
}

.thanks__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* ======= СТРАНИЦА ПОЛИТИКИ ======= */
.policy {
    padding: 160px 0 80px;
}

.policy__title {
    margin-bottom: 40px;
    text-align: center;
}

.policy__content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--color-bg-light);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.policy__content h2 {
    font-size: var(--font-lg);
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.policy__content h3 {
    font-size: var(--font-md);
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy__content ul {
    margin: 20px 0;
    padding-left: 20px;
}

.policy__content ul li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
}

.policy__content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.policy__date {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-bg-lighter);
    text-align: right;
    font-style: italic;
    color: var(--color-text-dark);
    font-size: var(--font-xs);
}

/* ======= АНИМАЦИИ ======= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ======= УТИЛИТЫ ======= */
.mb-0 {
    margin-bottom: 0 !important;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
} 