/**
 * Main styles for Pavorielthuna.com
 * Financial audit website
 */

/* === Variables === */
:root {
    /* Color palette */
    --color-primary: #3B1E78;    /* Насыщенный индиго */
    --color-secondary: #2FD5A7;  /* Мягкий бирюзово-ментоловый */
    --color-accent: #FFD447;     /* Яркий солнечно-жёлтый */
    --color-bg: #F5F0EB;         /* Светлый дымчато-бежевый */
    --color-text: #2C2C2C;       /* Глубокий угольно-серый */
    
    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.1);
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
}

/* === Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
}

/* === Layout === */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 var(--space-sm);
    margin: 0 auto;
}

.section {
    padding: var(--space-lg) 0;
}

.section__title {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    text-align: center;
}

.section__subtitle {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid system (12 columns) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    padding: 0 15px;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-1 { width: 8.33%; }
    .col-md-2 { width: 16.66%; }
    .col-md-3 { width: 25%; }
    .col-md-4 { width: 33.33%; }
    .col-md-5 { width: 41.66%; }
    .col-md-6 { width: 50%; }
    .col-md-7 { width: 58.33%; }
    .col-md-8 { width: 66.66%; }
    .col-md-9 { width: 75%; }
    .col-md-10 { width: 83.33%; }
    .col-md-11 { width: 91.66%; }
    .col-md-12 { width: 100%; }
}

@media (min-width: 992px) {
    .col-lg-1 { width: 8.33%; }
    .col-lg-2 { width: 16.66%; }
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.33%; }
    .col-lg-5 { width: 41.66%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.33%; }
    .col-lg-8 { width: 66.66%; }
    .col-lg-9 { width: 75%; }
    .col-lg-10 { width: 83.33%; }
    .col-lg-11 { width: 91.66%; }
    .col-lg-12 { width: 100%; }
}

/* === Header === */
.header {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--color-secondary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
}

/* Navigation */
.nav__list {
    display: flex;
}

.nav__item {
    margin-left: var(--space-md);
}

.nav__link {
    color: white;
    position: relative;
}

.nav__link:hover {
    color: var(--color-accent);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 110;
}

.menu-toggle__line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-primary);
        padding: 80px var(--space-md);
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .nav--open {
        right: 0;
    }
    
    .nav__list {
        flex-direction: column;
    }
    
    .nav__item {
        margin: var(--space-xs) 0;
        margin-left: 0;
    }
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* === Cards === */
.card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: var(--space-md);
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card__icon {
    width: 60px;
    height: 60px;
    background-color: rgba(47, 213, 167, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    color: var(--color-secondary);
    font-size: 1.5rem;
}

.card__title {
    color: var(--color-primary);
    font-size: 1.3rem;
    margin-bottom: var(--space-xs);
}

.card__text {
    color: var(--color-text);
}

/* === Hero Section === */
.hero {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, rgba(59, 30, 120, 0.8), rgba(47, 213, 167, 0.4)), url('../img/FKkMdK.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.hero__title {
    font-size: 3.5rem;
    margin-bottom: var(--space-sm);
    animation: fadeIn 1s ease;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1.5s ease;
}

.hero__cta {
    animation: fadeIn 2s ease;
}

/* === About Section === */
.about__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-lg);
}

.about__text {
    flex: 1;
    min-width: 300px;
}

.about__image {
    flex: 1;
    min-width: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about__title {
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

/* === Services Section === */
.services__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.services__item {
    flex: 1;
    min-width: 280px;
}

/* === Advantages Section === */
.advantages {
    background-color: rgba(59, 30, 120, 0.03);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-md);
}

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: center;
    margin-top: var(--space-lg);
}

.stats__item {
    padding: var(--space-md);
}

.stats__number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.stats__label {
    color: var(--color-text);
    font-size: 1.1rem;
}

/* === Testimonials Section === */
.testimonials__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.testimonial {
    flex: 1;
    min-width: 280px;
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
}

.testimonial__text {
    font-style: italic;
    margin-bottom: var(--space-sm);
    position: relative;
}

.testimonial__text::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-secondary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.testimonial__author {
    display: flex;
    align-items: center;
}

.testimonial__image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: var(--space-xs);
    object-fit: cover;
}

.testimonial__name {
    font-weight: 600;
}

.testimonial__position {
    font-size: 0.9rem;
    color: #666;
}

/* === Process Section === */
.process__steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: var(--space-md);
}

.step__number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.step__content {
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.step__title {
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.step:last-child .step__content {
    border-bottom: none;
}

/* === Order Form === */
.order {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.order::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--color-secondary), var(--color-accent));
}

.form__group {
    margin-bottom: var(--space-md);
}

.form__label {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--color-primary);
    font-weight: 600;
}

.form__input,
.form__select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form__input:focus,
.form__select:focus {
    border-color: var(--color-secondary);
    outline: none;
}

.form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: var(--space-xs);
}

.form__checkbox input {
    margin-top: 5px;
}

.form__checkbox label {
    font-size: 0.9rem;
}

.form__submit {
    width: 100%;
}

/* === Blog Section === */
.blog__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

.blog-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card__content {
    padding: var(--space-md);
}

.blog-card__date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: var(--space-xs);
}

.blog-card__title {
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.blog-card__excerpt {
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.blog-card__link {
    color: var(--color-secondary);
    font-weight: 600;
}

.blog-card__link:hover {
    color: var(--color-primary);
}

/* === Footer === */
.footer {
    background-color: var(--color-primary);
    color: white;
    padding: var(--space-lg) 0 var(--space-md);
    margin-top: var(--space-xl);
}

.footer__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer__company,
.footer__contact,
.footer__legal {
    flex: 1;
    min-width: 250px;
}

.footer__title {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: white;
}

.footer__description {
    opacity: 0.8;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__icon {
    font-size: 1.2rem;
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__address {
    font-style: normal;
    opacity: 0.8;
}

.footer__bottom {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* === Cookie Consent === */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;
    transform: translateY(200%);
    transition: transform 0.5s ease;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-consent__text {
    margin-right: var(--space-md);
}

.cookie-consent__button {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    color: var(--color-primary);
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

/* === Legal Pages === */
.legal-page {
    max-width: 800px;
    margin: var(--space-lg) auto;
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
}

.legal-page__title {
    color: var(--color-primary);
    margin-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-secondary);
    padding-bottom: var(--space-xs);
}

.legal-page__section {
    margin-bottom: var(--space-md);
}

.legal-page__subtitle {
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 1s ease;
}

/* === Media Queries === */
@media (max-width: 991px) {
    .hero__title {
        font-size: 2.8rem;
    }
    
    .hero__subtitle {
        font-size: 1.3rem;
    }
    
    .section__title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {
    .hero__title {
        font-size: 2.2rem;
    }
    
    .hero__subtitle {
        font-size: 1.1rem;
    }
    
    .section__title {
        font-size: 2rem;
    }
    
    .footer__wrapper {
        flex-direction: column;
        gap: var(--space-md);
    }
}

@media (max-width: 576px) {
    .hero {
        padding: var(--space-lg) 0;
    }
    
    .hero__title {
        font-size: 1.8rem;
    }
    
    .section {
        padding: var(--space-md) 0;
    }
    
    .stats__number {
        font-size: 2.5rem;
    }
    
    .cookie-consent {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent__text {
        margin-right: 0;
        margin-bottom: var(--space-sm);
    }
}
