/* Main styles for domain accounting services website */

:root {
    /* Color palette */
    --background: #2F2F2F;
    --text: #EAEAEA;
    --accent-lime: #C5FF0D;
    --accent-orange: #FF5722;
    --accent-purple: #6A1B9A;
    --accent-aqua: #00BFA5;
    
    /* Font sizes */
    --fs-xl: clamp(2.5rem, 5vw, 3.5rem);
    --fs-lg: clamp(1.8rem, 3vw, 2.5rem);
    --fs-md: clamp(1.2rem, 2vw, 1.8rem);
    --fs-sm: clamp(1rem, 1.5vw, 1.2rem);
    --fs-xs: clamp(0.8rem, 1vw, 1rem);
}

/* Reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--fs-xl);
}

h2 {
    font-size: var(--fs-lg);
    position: relative;
}



h3 {
    font-size: var(--fs-md);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-lime);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--accent-orange);
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-lime);
    color: var(--background);
    border: none;
    border-radius: 4px;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--accent-orange);
    color: var(--text);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(47, 47, 47, 0.9);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--fs-md);
    font-weight: 300;
    color: var(--text);
}

.logo span {
    color: var(--accent-lime);
}

.contact-info {
    display: none;
}

/* Navigation */
.menu-toggle {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text);
    font-size: var(--fs-md);
}

.nav {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background-color: var(--background);
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.nav.active {
    right: 0;
}

.nav ul {
    list-style: none;
    padding: 2rem;
}

.nav ul li {
    margin-bottom: 1rem;
}

.nav ul li a {
    color: var(--text);
    font-size: var(--fs-sm);
    transition: color 0.3s;
    display: block;
    padding: 0.5rem 0;
}

.nav ul li a:hover {
    color: var(--accent-lime);
}

/* Hero section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.4), rgba(0, 191, 165, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    width: 100%;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: var(--fs-md);
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* About section */
.about {
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Services section */
.services {
    padding: 5rem 0;
    background: linear-gradient(to right, rgba(47, 47, 47, 0.95), rgba(47, 47, 47, 0.8)), url('./img/ZCLdwl.jpg');
    background-size: cover;
    background-position: center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease;
    border-bottom: 3px solid var(--accent-lime);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--accent-lime);
}

/* Testimonials section */
.testimonials {
    padding: 5rem 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--accent-lime);
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
}

.testimonial-image {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.client-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.client-name {
    font-weight: 600;
    color: var(--accent-lime);
}

.client-position {
    font-size: var(--fs-xs);
    opacity: 0.8;
}

/* Why us section */
.why-us {
    padding: 5rem 0;
    background: linear-gradient(to right, rgba(47, 47, 47, 0.9), rgba(47, 47, 47, 0.8)), url('./img/Zj6f5i.jpg');
    background-size: cover;
    background-position: center;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.why-us-item {
    display: flex;
    align-items: flex-start;
}

.why-us-icon {
    background-color: var(--accent-lime);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.why-us-icon i {
    color: var(--background);
    font-size: 1.5rem;
}

/* FAQ section */
.faq {
    padding: 5rem 0;
}

.faq .container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-question {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    width: 100%;
    display: block;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    background: rgba(255, 255, 255, 0.02);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 1000px;
}

/* Contact section */
.contact {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(106, 27, 154, 0.2), rgba(0, 191, 165, 0.2));
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: var(--text);
    font-size: var(--fs-sm);
}

/* Особый стиль для опций в выпадающем списке */
select option {
    background-color: var(--background);
    color: var(--text);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-lime);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-section h3 {
    color: var(--accent-lime);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-contact p {
    margin-bottom: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-lime);
    color: var(--background);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: var(--fs-xs);
    opacity: 0.7;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: rgba(47, 47, 47, 0.95);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transition: bottom 0.5s ease;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-text {
    flex: 1;
}

.cookie-btn {
    margin-left: 1rem;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Animation classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Базовые стили анимируемых элементов - переопределяются в index.php */
.animate {
    opacity: 0;
}

/* Responsive design */
@media (min-width: 768px) {
    .contact-info {
        display: block;
        font-size: var(--fs-xs);
    }
    
    .menu-toggle {
        display: none;
    }
    
    .nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background-color: transparent;
        box-shadow: none;
        overflow-y: visible;
    }
    
    .nav ul {
        display: flex;
        padding: 0;
    }
    
    .nav ul li {
        margin-bottom: 0;
        margin-left: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .services-grid, 
    .testimonial-grid, 
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid, 
    .testimonial-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .why-us-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
