/* 
Theme: domain - Financial Audit Company
Description: Custom CSS for domain.com
Author: Claude
*/

/* === ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ === */
:root {
    --primary: #1B365C;    /* Темно-синий */
    --accent: #F9B233;     /* Золотой */
    --neutral-light: #E7E7E7; /* Светло-серый */
    --neutral-bg: #F4F4F4; /* Фоновый белый */
    --text: #111111;       /* Текст */
    --highlight: #00C2A8;  /* Бирюзовый для CTA */
    --transition: 0.3s ease all;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --container: 1200px;
    --header-height: 80px;
}

/* Reset и базовые стили */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--neutral-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--primary);
    font-weight: 700;
}

h1 {
    font-size: 4.8rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.8rem;
}

p {
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 1.2rem 2.8rem;
    background-color: var(--highlight);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--highlight);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary);
}

.btn-accent:hover {
    background-color: var(--primary);
    color: white;
}

/* === ШАПКА === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: var(--header-height);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    font-size: 1.6rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.5rem;
}

.main-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2.4rem;
    color: var(--primary);
}

/* === ГЕРОЙ === */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--highlight) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, transparent 20%, var(--primary) 70%);
    top: -25%;
    left: -25%;
    animation: rotate 20s linear infinite;
    opacity: 0.1;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

.hero h1 {
    color: white;
    margin-bottom: 2rem;
    font-size: 5.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* === О НАС === */
.about {
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-content {
    padding: 2rem 0;
}

.about-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background-color: var(--accent);
    z-index: -1;
    transform: translate(20px, 20px);
    border-radius: var(--radius);
}

/* === ТИПЫ АУДИТА === */
.services {
    background-color: var(--neutral-bg);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: white;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
}

.services::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-color: white;
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--accent);
    transition: var(--transition);
}

.service-card:hover::before {
    height: 100%;
}

.service-card h3 {
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
    font-size: 2.4rem;
}

/* === ПРЕИМУЩЕСТВА === */
.benefits {
    background-color: white;
}

.benefits-list {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    transition: var(--transition);
    border-radius: var(--radius);
}

.benefit-item:hover {
    background-color: var(--neutral-bg);
}

.benefit-icon {
    color: var(--accent);
    font-size: 3rem;
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* === ОТЗЫВЫ === */
.testimonials {
    background-color: var(--primary);
    color: white;
}

.testimonials h2 {
    color: white;
}

.testimonial-slider {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: var(--radius);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 8rem;
    line-height: 1;
    position: absolute;
    top: -2rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.1);
    font-family: serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-info h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.author-info p {
    opacity: 0.7;
    margin-bottom: 0;
    font-size: 1.4rem;
}

/* === КАК МЫ РАБОТАЕМ === */
.how-we-work {
    background-color: var(--neutral-bg);
    position: relative;
}

.process-steps {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    counter-reset: step-counter;
}

.process-step {
    position: relative;
    padding: 3rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    counter-increment: step-counter;
}

.process-step::before {
    content: counter(step-counter);
    position: absolute;
    top: -2.5rem;
    left: 2.5rem;
    width: 5rem;
    height: 5rem;
    background-color: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 2.4rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.process-step h3 {
    margin-bottom: 1.5rem;
}

/* === КОМАНДА === */
.team {
    background-color: white;
}

.team-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.team-member {
    background-color: var(--neutral-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.team-image {
    height: 300px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 2rem;
}

.team-info h3 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.team-info p.position {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* === КОНТАКТНАЯ ФОРМА === */
.contact {
    background: linear-gradient(135deg, var(--primary) 0%, var(--highlight) 100%);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%);
    padding: 12rem 0;
}

.contact h2 {
    color: white;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.contact-form {
    background-color: white;
    padding: 4rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid var(--neutral-light);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1.6rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(27, 54, 92, 0.2);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.form-check input {
    margin-top: 0.4rem;
}

.form-check label {
    font-size: 1.4rem;
    line-height: 1.4;
}

.contact-info {
    color: white;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 2.4rem;
    color: var(--accent);
}

.contact-text h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.contact-text p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* === ПОДВАЛ === */
footer {
    background-color: var(--primary);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.footer-info h3 {
    color: white;
    margin-bottom: 2rem;
}

.footer-info p {
    opacity: 0.8;
}

.footer-links h3 {
    color: white;
    margin-bottom: 2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1.4rem;
    opacity: 0.7;
}

/* === COOKIE POPUP === */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    transition: transform 0.3s ease;
}

.cookie-hidden {
    transform: translateY(100%);
}

.cookie-text {
    flex: 1;
    margin-right: 2rem;
}

.cookie-popup p {
    margin-bottom: 0;
    font-size: 1.4rem;
}

.cookie-buttons {
    flex-shrink: 0;
}

/* === СТРАНИЦЫ ПОЛИТИК === */
.policy-page {
    padding: 12rem 0 8rem;
}

.policy-content {
    background-color: white;
    border-radius: var(--radius);
    padding: 4rem;
    box-shadow: var(--shadow);
}

.policy-content h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
    font-size: 2.8rem;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.policy-content p, .policy-content ul, .policy-content ol {
    margin-bottom: 2rem;
}

.policy-content ul, .policy-content ol {
    padding-left: 2rem;
}

.policy-content li {
    margin-bottom: 1rem;
}

/* === СТРАНИЦА БЛАГОДАРНОСТИ === */
.thank-you {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background-color: var(--neutral-bg);
}

.thank-you-content {
    max-width: 700px;
    padding: 5rem;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.thank-you-content h1 {
    margin-bottom: 2rem;
    color: var(--primary);
}

.thank-you-icon {
    font-size: 8rem;
    color: var(--accent);
    margin-bottom: 3rem;
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    html {
        font-size: 60%;
    }
}

@media (max-width: 991px) {
    html {
        font-size: 58%;
    }
    
    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        margin-top: 3rem;
    }
    
    .contact {
        clip-path: none;
        padding: 8rem 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 80%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        transition: var(--transition);
        z-index: 1000;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 2rem;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 1.5rem;
        width: 100%;
    }
    
    .hero {
        height: auto;
        padding: 12rem 0 8rem;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .process-steps::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .contact-form {
        padding: 3rem 2rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .cookie-popup {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-text {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}
