/* 
 * Asesoría Contable - Main Stylesheet
 * Colors:
 * Primary background: #1abc9c (matovo-biryuzovyy)
 * Primary accent: #00ffc6 (lazurnyy s ottenkom layma)
 * Text: #2c3e50 (nasyshchennyy grafit)
 * Secondary background: #ecf0f1 (nezhnyy seryy)
 * Buttons: gradient from #2ecc71 to #27ae60
 * Links hover: #e67e22 (korallovyy)
 */

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #2c3e50;
    line-height: 1.6;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
}

h2:after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #2ecc71, #1abc9c);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: #1abc9c;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover, a:focus {
    color: #e67e22;
}

ul {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 5rem 0;
}

section:nth-child(even) {
    background-color: #ecf0f1;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(to right, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(to right, #27ae60, #2ecc71);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: #1abc9c;
    border: 2px solid #1abc9c;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #1abc9c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.2);
}

.btn-nav {
    padding: 8px 16px;
    font-size: 0.8rem;
    background-color: transparent;
    color: #1abc9c;
    border: 2px solid #1abc9c;
}

.btn-nav:hover, .btn-nav:focus {
    background-color: #1abc9c;
    color: white;
}

.btn-cookie {
    padding: 8px 16px;
    font-size: 0.8rem;
    background: linear-gradient(to right, #2ecc71, #27ae60);
    color: white;
}

.btn-mobile-nav {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 10px 20px;
    background-color: white;
    color: #1abc9c;
    border-radius: 50px;
}

.btn-mobile-nav:hover, .btn-mobile-nav:focus {
    background-color: #ecf0f1;
    color: #1abc9c;
}

/* ========== HEADER ========== */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.logo-svg {
    max-height: 50px;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
}

.nav-list li {
    margin-left: 2rem;
}

.nav-list a {
    color: #2c3e50;
    font-weight: 500;
    position: relative;
}

.nav-list a:hover, .nav-list a:focus {
    color: #1abc9c;
}

.nav-list a:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #1abc9c;
    transition: width 0.3s;
}

.nav-list a:not(.btn):hover::after,
.nav-list a:not(.btn):focus::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
}

/* ========== COOKIE POPUP ========== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1rem;
    z-index: 1000;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-content p {
    margin: 0;
}

.cookie-content a {
    color: #00ffc6;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.9), rgba(0, 255, 198, 0.9));
    background-size: cover;
    background-position: center;
    padding: 8rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    font-size: 2.8rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

/* ========== ABOUT SECTION ========== */
.about {
    text-align: center;
}

.about p {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-item {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
}

.about-item:hover .about-img {
    transform: scale(1.05);
}

/* ========== BENEFITS SECTION ========== */
.benefits {
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.benefit-item {
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
}

.benefit-item:hover {
    transform: translateY(-10px);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(26, 188, 156, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon img {
    max-width: 40px;
    margin: 0 auto;
}

/* ========== SERVICES SECTION ========== */
.services {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card img {
    max-width: 80px;
    margin: 0 auto 1.5rem;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.service-card li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-card li:before {
    content: "✓";
    color: #1abc9c;
    position: absolute;
    left: 0;
}

.service-card .btn {
    margin-top: auto;
}

/* ========== WHY CHOOSE US SECTION ========== */
.why-us {
    text-align: center;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-us-item {
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.why-us-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-us-item img {
    max-width: 60px;
    margin: 0 auto 1.5rem;
}

/* ========== CASE STUDY SECTION ========== */
.case-study {
    text-align: center;
}

.case-study-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.case-study-image img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.case-study-text {
    text-align: left;
}

.testimonial {
    font-style: italic;
    position: relative;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial:before {
    content: """;
    font-size: 4rem;
    color: #1abc9c;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.2;
}

.client-name {
    font-weight: 600;
    text-align: right;
}

.case-results {
    list-style: none;
    margin-top: 2rem;
}

.case-results li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.case-results li:before {
    content: "✓";
    color: #1abc9c;
    position: absolute;
    left: 0;
}

/* ========== CONTACT FORM SECTION ========== */
.contact-form {
    text-align: center;
}

.form-intro {
    max-width: 700px;
    margin: 0 auto 2rem;
}

form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background-color: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ecf0f1;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #1abc9c;
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    margin-right: 10px;
}

.checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ========== FAQ SECTION ========== */
.faq {
    text-align: center;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 1.5rem;
}

.faq-question {
    padding: 1rem;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-question a {
    color: #2c3e50;
    text-decoration: none;
    display: block;
    width: 100%;
}

.faq-answer {
    padding: 0 1rem;
}

/* ========== CONTACT INFO SECTION ========== */
.contact-info {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.contact-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item img {
    max-width: 40px;
    margin: 0 auto 1rem;
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #ecf0f1;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background-color: #ecf0f1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

.map-placeholder svg {
    margin-bottom: 15px;
    opacity: 0.7;
}

.map-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* ========== FOOTER ========== */
.site-footer {
    background-color: #2c3e50;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    max-height: 40px;
    margin-bottom: 1.5rem;
}

.footer-contact-list,
.footer-nav-list,
.footer-legal-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.footer-contact-list svg {
    margin-right: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-nav-list li,
.footer-legal-list li {
    margin-bottom: 0.5rem;
}

.footer-nav-list a,
.footer-legal-list a {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-nav-list a:hover,
.footer-legal-list a:hover,
.footer-contact-list a:hover {
    opacity: 1;
    color: #00ffc6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* ========== MOBILE NAVIGATION ========== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background-color: #1abc9c;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
}

.mobile-nav:target {
    left: 0;
    visibility: visible;
    opacity: 1;
}

.mobile-nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
    }
    .main-nav {
        display: none;
    }
}

.mobile-nav-menu {
    padding: 4rem 2rem 2rem;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    margin-bottom: 1.5rem;
}

.mobile-nav-list a {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero {
        padding: 6rem 0;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .hero {
        padding: 5rem 0;
    }

    form {
        padding: 2rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .about-grid,
    .benefits-grid,
    .services-grid,
    .why-us-grid,
    .contact-grid,
    .contact-details {
        grid-template-columns: 1fr;
    }

    .case-study-content {
        grid-template-columns: 1fr;
    }

    form {
        padding: 1.5rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-item,
.benefit-item,
.service-card,
.why-us-item,
.contact-item {
    animation: fadeIn 0.6s ease-out forwards;
} 