/*
 * CompteExpert - Site web de comptabilité professionnelle
 * Palette de couleurs:
 * - Fond: #02735E (nefritovo-zelenyj)
 * - Texte: #F4EFEA (svetlyj kremovyj)
 * - Accentuations: #C65D21 (medno-oranževyj), #3F5185 (indigo), #424B54 (stal'noj seryj)
*/

/* ========== Réinitialisation et bases ========== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #02735E;
    --color-text: #F4EFEA;
    --color-accent-1: #C65D21;
    --color-accent-2: #3F5185;
    --color-accent-3: #424B54;
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition-normal: all 0.3s ease;
}

html {
    font-size: 62.5%; /* 10px */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-primary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--color-text);
}

h1 { font-size: 4.2rem; }
h2 { font-size: 3.6rem; }
h3 { font-size: 2.4rem; }

p {
    margin-bottom: 1.6rem;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--color-accent-1);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, .btn {
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1.2rem 2.4rem;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
    background: linear-gradient(135deg, var(--color-accent-1) 0%, #E17A3C 100%);
    color: var(--color-text);
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.container {
    width: 100%;
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-subtitle {
    display: block;
    font-size: 1.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent-1);
    margin-bottom: 1rem;
}

/* ========== Header & Navigation ========== */
.main-header {
    background-color: rgba(2, 115, 94, 0.95);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    box-shadow: var(--shadow-soft);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    padding: 0.8rem 1.2rem;
    font-weight: 500;
    font-family: var(--font-primary);
}

.btn-contact {
    background-color: var(--color-accent-1);
    border-radius: var(--border-radius);
    padding: 0.8rem 1.6rem;
    color: var(--color-text);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 3rem;
    height: 2rem;
    background: transparent;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-text);
    border-radius: 3px;
}

/* ========== Hero Section ========== */
.hero {
    height: 100vh;
    min-height: 60rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(2, 115, 94, 0.9) 0%, rgba(3, 94, 75, 0.9) 100%), url('./img/XAhk6h.jpg');
    background-size: cover;
    background-position: center;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -5%;
    right: -5%;
    width: 50%;
    height: 50%;
    background-color: rgba(198, 93, 33, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -5%;
    left: -5%;
    width: 30%;
    height: 30%;
    background-color: rgba(63, 81, 133, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 60rem;
    margin: 0 auto;
}

.hero h1 {
    font-size: 5.2rem;
    margin-bottom: 2rem;
}

.hero p {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.hero-cta .btn {
    padding: 1.6rem 3.2rem;
    font-size: 1.8rem;
}

/* ========== Company Section ========== */
.company {
    background-color: rgba(66, 75, 84, 0.05);
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0% 100%);
    padding: 12rem 0;
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.company-image {
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* ========== Services Section ========== */
.services {
    background: linear-gradient(135deg, #024D3E 0%, var(--color-primary) 100%);
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
    padding: 12rem 0;
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
    gap: 3rem;
}

.service-card {
    background-color: rgba(244, 239, 234, 0.05);
    border-radius: var(--border-radius);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.service-icon {
    width: 6rem;
    height: 6rem;
    background-color: var(--color-accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 2rem;
}

.service-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 2.4rem;
    color: var(--color-accent-1);
    font-weight: 700;
    margin: 2rem 0;
}

.service-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-features li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent-1);
}

.service-cta {
    align-self: flex-start;
}

/* ========== Advantages Section ========== */
.advantages {
    background-color: rgba(63, 81, 133, 0.05);
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0% 100%);
    padding: 12rem 0;
}

/* Стили для главного изображения секции */
.advantages-image {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto 5rem;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.advantages-hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: var(--transition-normal);
}

.advantages-hero-image:hover {
    transform: scale(1.02);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
    gap: 4rem;
}

.advantage-card {
    padding: 2rem;
    border-left: 3px solid var(--color-accent-2);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.advantage-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-soft);
}

.advantage-icon {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
}

.advantage-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.advantage-card:hover .advantage-icon img {
    transform: scale(1.1);
}

.advantage-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* ========== Testimonials Section ========== */
.testimonials {
    background: linear-gradient(135deg, var(--color-primary) 0%, #024D3E 100%);
    clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%);
    padding: 12rem 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(32rem, 1fr));
    gap: 3rem;
}

.testimonial-card {
    background-color: rgba(244, 239, 234, 0.05);
    border-radius: var(--border-radius);
    padding: 3rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 8rem;
    font-family: Georgia, serif;
    position: absolute;
    top: -1rem;
    left: 1rem;
    color: rgba(198, 93, 33, 0.2);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 1.5rem;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-role {
    font-size: 1.4rem;
    opacity: 0.8;
}

/* ========== FAQ Section ========== */
.faq {
    background-color: rgba(66, 75, 84, 0.05);
    clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 100%);
    padding: 12rem 0 8rem;
}

.faq-container {
    max-width: 80rem;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(244, 239, 234, 0.1);
    padding-bottom: 2rem;
}

.faq-question {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-accent-1);
}

/* ========== Contact Form Section ========== */
.contact {
    background: linear-gradient(135deg, #024D3E 0%, var(--color-primary) 100%);
    padding: 8rem 0;
}

.form-container {
    max-width: 60rem;
    margin: 0 auto;
    background-color: rgba(244, 239, 234, 0.05);
    border-radius: var(--border-radius);
    padding: 4rem;
    box-shadow: var(--shadow-medium);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background-color: rgba(244, 239, 234, 0.1);
    border: 1px solid rgba(244, 239, 234, 0.2);
    border-radius: var(--border-radius);
    color: #000000;
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    transition: var(--transition-normal);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-accent-1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23F4EFEA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.8rem;
    padding-right: 4rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-checkbox input {
    margin-right: 1rem;
    margin-top: 0.4rem;
}

.form-submit {
    width: 100%;
    padding: 1.4rem;
}

.form-error {
    color: #e74c3c;
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

/* ========== Footer ========== */
.main-footer {
    background-color: rgba(2, 115, 94, 0.95);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-about, .footer-contact, .footer-links, .footer-legal {
    flex: 1;
    min-width: 200px;
    margin: 0 1rem;
}

.footer-about {
    flex: 2;
}

.footer-about h3, .footer-contact h3, .footer-links h3, .footer-legal h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.footer-contact address {
    font-style: normal;
}

.footer-links ul, .footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(244, 239, 234, 0.1);
    font-size: 1.4rem;
}

/* ========== Cookie Banner ========== */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    background-color: rgba(66, 75, 84, 0.95);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    align-items: center;
}

.cookie-content p {
    flex: 1;
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.btn-cookie {
    padding: 1rem 2rem;
}

.btn-cookie-secondary {
    background: transparent;
    border: 1px solid var(--color-text);
}

.btn-cookie-secondary:hover {
    background-color: rgba(244, 239, 234, 0.1);
}

/* Применение стилей для всех страниц политики */
.policy-page {
    padding: 12rem 0 8rem;
}

.policy-content {
    max-width: 80rem;
    margin: 0 auto;
    background-color: rgba(244, 239, 234, 0.05);
    border-radius: var(--border-radius);
    padding: 4rem;
}

.policy-last-update {
    margin-bottom: 3rem;
    font-style: italic;
    color: rgba(244, 239, 234, 0.8);
}

.policy-section {
    margin-bottom: 4rem;
}

.policy-section h2 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    color: var(--color-accent-1);
}

.policy-section h3 {
    font-size: 2rem;
    margin: 2rem 0 1.5rem;
}

.policy-section ul {
    list-style: disc;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.policy-section ul li {
    margin-bottom: 0.8rem;
}

/* ========== Дополнительные стили для фотографий ========== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.gallery-image {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-normal);
}

.gallery-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-image img {
    width: 100%;
    height: 25rem;
    object-fit: cover;
}

/* ========== Media Queries ========== */
@media (max-width: 1024px) {
    html {
        font-size: 58%;
    }
    
    .footer-grid {
        flex-wrap: wrap;
    }
    
    .footer-about, .footer-contact, .footer-links, .footer-legal {
        flex: 1 1 calc(50% - 2rem);
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
    }
    
    .company-content {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 4.2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-about, .footer-contact, .footer-links, .footer-legal {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 3.6rem;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .form-container, .policy-content {
        padding: 3rem 2rem;
    }
    
    .gallery-image img {
        height: 20rem;
    }
} 