/* 
* Domain - Финансовый аудит
* Основная таблица стилей
*/

/* === Переменные и сброс === */
:root {
    /* Цветовая палитра */
    --color-primary: #0FFFC1;
    --color-background: #1C1C1E;
    --color-heading: #ECECEC;
    --color-accent: #FF647F;
    --color-text: #DDDDDD;
    --color-dark: #222831;
    --color-light: #F8F8F8;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-dark));
    --gradient-accent: linear-gradient(135deg, var(--color-accent), #FF9671);
    
    /* Размеры */
    --container-width: 1440px;
    --header-height: 80px;
    --footer-height: 300px;
    --border-radius: 8px;
    
    /* Переходы */
    --transition-speed: 0.3s;
    --transition-function: ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    overflow-x: hidden;
}

/* === Общие стили === */
.container {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 20px;
    margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    margin: 20px auto 0;
}

h3 {
    font-size: 24px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all var(--transition-speed) var(--transition-function);
}

a:hover {
    color: var(--color-accent);
}

p {
    margin-bottom: 15px;
}

section {
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 20px;
}

/* === Кнопки === */
.btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--color-background);
    padding: 12px 28px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-function);
    text-align: center;
}

.btn:hover {
    background: var(--gradient-accent);
    color: var(--color-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn--large {
    padding: 16px 36px;
    font-size: 18px;
}

.btn--header {
    background: var(--gradient-accent);
    color: var(--color-light);
}

.btn--header:hover {
    background: var(--gradient-primary);
    color: var(--color-background);
}

/* === Хедер === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(28, 28, 30, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo:hover {
    color: var(--color-accent);
}

.main-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
}

.main-menu li {
    margin: 0 15px;
}

.main-menu a {
    color: var(--color-heading);
    font-weight: 600;
    position: relative;
}

.main-menu a:hover, .main-menu a.active {
    color: var(--color-primary);
}

.main-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) var(--transition-function);
}

.main-menu a:hover:after, .main-menu a.active:after {
    width: 100%;
}

/* === Герой-блок === */
.hero {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 80px;
    background-color: var(--color-background);
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(15, 255, 193, 0.1), transparent 70%);
    z-index: 0;
}

.hero__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero__content {
    flex: 0 0 50%;
    max-width: 50%;
}

.hero h1 {
    margin-bottom: 30px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 40px;
}

.hero__image {
    flex: 0 0 45%;
    max-width: 45%;
    position: relative;
}

.hero__image img {
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero__image:before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: var(--border-radius);
    z-index: -1;
}

/* === О компании === */
.about {
    background-color: var(--color-dark);
    position: relative;
}

.about__wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.about__content {
    flex: 0 0 45%;
    max-width: 45%;
}

.about__infographic {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.about__infographic-item {
    flex: 0 0 48%;
    max-width: 48%;
    margin-bottom: 30px;
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(145deg, rgba(34, 40, 49, 0.8), rgba(28, 28, 30, 0.8));
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) var(--transition-function);
}

.about__infographic-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about__infographic-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid var(--color-primary);
}

/* === Услуги === */
.services {
    background-color: var(--color-background);
}

.services__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.service-card {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    margin-bottom: 30px;
    padding: 0 0 30px 0;
    background: linear-gradient(145deg, rgba(34, 40, 49, 0.8), rgba(28, 28, 30, 0.8));
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) var(--transition-function);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-card__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
}

.service-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) var(--transition-function);
}

.service-card:hover .service-card__image img {
    transform: scale(1.05);
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
    z-index: 2;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
    margin: 0 30px 20px;
    color: var(--color-primary);
}

.service-card p {
    margin: 0 30px 20px;
}

.service-card ul {
    margin: 0 30px 30px;
}

.service-card li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    list-style-type: none;
}

.service-card li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.service-card .btn {
    margin: 0 30px;
}

/* === Преимущества === */
.advantages {
    background-color: var(--color-dark);
}

.advantages__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.advantages__column {
    flex: 0 0 48%;
    max-width: 48%;
}

.advantage-card {
    margin-bottom: 30px;
    padding: 30px;
    background: linear-gradient(145deg, rgba(34, 40, 49, 0.8), rgba(28, 28, 30, 0.8));
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) var(--transition-function);
    border-left: 3px solid var(--color-primary);
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-left-color: var(--color-accent);
}

.advantage-card h3 {
    margin-bottom: 15px;
    color: var(--color-heading);
}

/* === Отзывы === */
.testimonials {
    background-color: var(--color-background);
}

.testimonials__slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    padding: 40px;
    background: linear-gradient(145deg, rgba(34, 40, 49, 0.8), rgba(28, 28, 30, 0.8));
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 120px;
    color: rgba(15, 255, 193, 0.1);
    font-family: serif;
    line-height: 0.8;
}

.testimonial-card__content {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-style: italic;
}

.testimonial-card__author {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.testimonial-card__name {
    font-weight: 700;
    color: var(--color-primary);
}

.testimonial-card__company {
    font-size: 14px;
    opacity: 0.7;
}

.testimonial-card__rating {
    margin-top: 10px;
}

.star {
    color: var(--color-accent);
    font-size: 18px;
}

.testimonials__navigation {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.testimonials__dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 5px;
    transition: all var(--transition-speed) var(--transition-function);
}

.testimonials__dot:hover {
    background-color: var(--color-primary);
}

.testimonials__dot.active {
    background-color: var(--color-accent);
}

/* === FAQ === */
.faq {
    background-color: var(--color-dark);
}

.faq__wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    margin-bottom: 20px;
}

.faq__question {
    display: block;
    padding: 20px;
    background: linear-gradient(145deg, rgba(34, 40, 49, 0.8), rgba(28, 28, 30, 0.8));
    color: var(--color-heading);
    font-weight: 700;
    border-radius: var(--border-radius);
    position: relative;
    transition: all var(--transition-speed) var(--transition-function);
}

.faq__question:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    transition: all var(--transition-speed) var(--transition-function);
}

.faq__question.active {
    background: var(--gradient-primary);
    color: var(--color-background);
}

.faq__question.active:after {
    content: '-';
}

.faq__answer {
    display: none;
    padding: 20px;
    background-color: rgba(34, 40, 49, 0.5);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: -5px;
}

.faq__answer.active {
    display: block;
}

/* === Форма заказа === */
.order {
    background-color: var(--color-background);
}

.order__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.order__content {
    flex: 0 0 45%;
    max-width: 45%;
}

.order-form {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 40px;
    background: linear-gradient(145deg, rgba(34, 40, 49, 0.8), rgba(28, 28, 30, 0.8));
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--color-text);
    font-size: 16px;
    transition: all var(--transition-speed) var(--transition-function);
}

.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23DDDDDD" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
    padding-right: 40px;
}

.form-group select option {
    background-color: var(--color-dark);
    color: var(--color-text);
    padding: 10px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(15, 255, 193, 0.2);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 14px;
}

/* === Футер === */
.footer {
    background-color: var(--color-dark);
    padding: 80px 0 30px;
    position: relative;
}

.footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.footer__wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer__info {
    flex: 0 0 30%;
    max-width: 30%;
}

.logo--footer {
    margin-bottom: 20px;
    display: inline-block;
}

.footer__description {
    font-size: 14px;
    opacity: 0.7;
}

.footer__contacts,
.footer__links {
    flex: 0 0 30%;
    max-width: 30%;
}

.footer h3 {
    margin-bottom: 25px;
    color: var(--color-primary);
    position: relative;
}

.footer address {
    font-style: normal;
}

.footer__links ul {
    list-style: none;
    margin: 0;
}

.footer__links li {
    margin-bottom: 10px;
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* === Cookie Consent === */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(34, 40, 49, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cookie-consent__wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-width);
    padding: 0 20px;
    margin: 0 auto;
}

.cookie-consent p {
    margin: 0;
    font-size: 14px;
}

/* === Страница благодарности === */
.thank-you {
    padding-top: calc(var(--header-height) + 80px);
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
    display: flex;
    align-items: center;
}

.thank-you__wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    background: linear-gradient(145deg, rgba(34, 40, 49, 0.8), rgba(28, 28, 30, 0.8));
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.thank-you__wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.thank-you__content {
    margin-top: 30px;
}

.thank-you__contact {
    margin: 30px auto;
    padding: 20px;
    background-color: rgba(15, 255, 193, 0.1);
    border-radius: var(--border-radius);
    display: block;
    max-width: 500px;
    text-align: center;
}

.thank-you__button {
    text-align: center;
    margin: 40px 0 20px;
}

/* === Страницы политик === */
.policy {
    padding-top: calc(var(--header-height) + 80px);
}

.policy h1 {
    text-align: center;
    margin-bottom: 50px;
}

.policy__content {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px;
    background: linear-gradient(145deg, rgba(34, 40, 49, 0.8), rgba(28, 28, 30, 0.8));
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.policy__content h2 {
    text-align: left;
    margin-top: 40px;
}

.policy__content h2:after {
    margin: 15px 0 0;
}

.policy__content h3 {
    margin-top: 30px;
}

.policy__content ul,
.policy__content ol {
    margin-left: 20px;
    margin-bottom: 30px;
}

.policy__content li {
    margin-bottom: 10px;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 30px;
}

.policy-table th,
.policy-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.policy-table th {
    background-color: rgba(15, 255, 193, 0.1);
    font-weight: 700;
}

.policy-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.05);
}

/* === Медиа-запросы === */
@media screen and (max-width: 1200px) {
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    .service-card {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media screen and (max-width: 992px) {
    .desktop-only {
        display: none;
    }
    
    .hero__wrapper {
        flex-direction: column;
    }
    
    .hero__content,
    .hero__image {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero__content {
        margin-bottom: 40px;
        text-align: center;
    }
    
    .about__wrapper {
        flex-direction: column;
    }
    
    .about__content,
    .about__infographic {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .about__content {
        margin-bottom: 40px;
    }
    
    .order__wrapper {
        flex-direction: column;
    }
    
    .order__content,
    .order-form {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .order__content {
        margin-bottom: 40px;
    }
    
    .footer__info,
    .footer__contacts,
    .footer__links {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .service-card,
    .about__infographic-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .advantages__column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .cookie-consent__wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent .btn {
        margin-top: 15px;
    }
    
    .policy__content {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .btn {
        padding: 10px 20px;
    }
    
    .btn--large {
        padding: 12px 24px;
    }
    
    .header__wrapper {
        justify-content: space-between;
    }
    
    .hero {
        padding-top: calc(var(--header-height) + 50px);
        padding-bottom: 50px;
    }
    
    .thank-you__wrapper {
        padding: 40px 20px;
    }
}
