/* CSS для сайта бухгалтера в Португалии */
/* Цветовая палитра:
   Основной: неоново-фиолетовый (#9E00FF)
   Вторичный: солнечно-желтый (#FFD700)
   Фон: градиент от графитово-серого (#2C2C2C) к ночному синему (#1B1F3B)
   Акценты: белый (#FFFFFF), бирюзовый (#00E6E6)
*/

:root {
    --primary-color: #9E00FF;
    --secondary-color: #FFD700;
    --bg-dark: #2C2C2C;
    --bg-night: #1B1F3B;
    --accent-white: #FFFFFF;
    --accent-teal: #00E6E6;
    --text-light: #F0F0F0;
    --text-dark: #1A1A1A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-night) 100%);
    min-height: 100vh;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(158, 0, 255, 0.3); }
    50% { box-shadow: 0 0 30px rgba(158, 0, 255, 0.6); }
}

/* Header */
.header {
    background: rgba(28, 31, 59, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-teal);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-night) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('./img/OUFRxF.jpg') right top/45% auto no-repeat,
        url('./img/Vp15qp.jpg') left bottom/40% auto no-repeat,
        url('./img/0ZHXk9.jpg') center/cover no-repeat;
    opacity: 0.7;
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(158, 0, 255, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.2) 0%, transparent 60%),
        linear-gradient(135deg, rgba(44, 44, 44, 0.4) 0%, rgba(27, 31, 59, 0.5) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    border: 1px solid rgba(158, 0, 255, 0.3);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--accent-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: glow 2s infinite;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(158, 0, 255, 0.4);
}

/* Sections */
.section {
    padding: 5rem 0;
    position: relative;
}

.section:nth-child(even) {
    background: rgba(158, 0, 255, 0.05);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-teal));
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(158, 0, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(158, 0, 255, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Services */
.service-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
    border-radius: 15px 15px 0 0;
}

.service-card.service-1::before {
    background-image: url('./img/qkQ6Tb.jpg');
}

.service-card.service-2::before {
    background-image: url('./img/OUFRxF.jpg');
}

.service-card.service-3::before {
    background-image: url('./img/Vp15qp.jpg');
}

.service-card .card-icon {
    position: relative;
    z-index: 1;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    margin-top: 1rem;
}

.service-card h3,
.service-card p {
    position: relative;
    z-index: 1;
}

/* Sobre Nós Section */
.sobre-section {
    position: relative;
    overflow: hidden;
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 600px;
}

.sobre-images {
    position: relative;
    height: 500px;
}

.sobre-image-1,
.sobre-image-2 {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.sobre-image-1 {
    top: 0;
    left: 0;
    width: 65%;
    height: 70%;
    z-index: 2;
}

.sobre-image-2 {
    bottom: 0;
    right: 0;
    width: 60%;
    height: 65%;
    z-index: 1;
}

.sobre-image-1:hover,
.sobre-image-2:hover {
    transform: scale(1.05);
}

.sobre-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.sobre-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sobre-cards .card {
    background: linear-gradient(135deg, rgba(158, 0, 255, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 1px solid rgba(158, 0, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.sobre-cards .card::before {
    background: linear-gradient(135deg, rgba(158, 0, 255, 0.1) 0%, rgba(0, 230, 230, 0.1) 100%);
}

.sobre-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(158, 0, 255, 0.3);
}

.service-price {
    font-size: 2rem;
    color: var(--accent-teal);
    font-weight: bold;
    margin: 1rem 0;
    position: relative;
    z-index: 1;
}

/* Testimonials */
.testimonial {
    text-align: center;
    font-style: italic;
    position: relative;
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: -20px;
    left: 20px;
}

.testimonial-author {
    color: var(--secondary-color);
    font-weight: bold;
    margin-top: 1rem;
}

/* FAQ - CSS Only Solution */
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-toggle {
    display: none;
}

.faq-question {
    display: block;
    padding: 1.5rem;
    background: rgba(158, 0, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    color: var(--text-light);
    font-size: 1.1rem;
    position: relative;
}

.faq-question:hover {
    background: rgba(158, 0, 255, 0.2);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-teal);
    transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-toggle:checked + .faq-question + .faq-answer {
    max-height: 200px;
    padding: 1.5rem;
}

/* Form */
.form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(158, 0, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(158, 0, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239E00FF' 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: 1em;
    padding-right: 3rem;
}

.form-group select option {
    background: var(--accent-white);
    color: var(--text-dark);
    padding: 0.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(158, 0, 255, 0.3);
    background: rgba(255, 255, 255, 1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(26, 26, 26, 0.6);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
}

.submit-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--accent-white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(158, 0, 255, 0.4);
}

/* Footer */
.footer {
    background: var(--bg-night);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(158, 0, 255, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-teal);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(158, 0, 255, 0.1);
    color: var(--text-light);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 31, 59, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    z-index: 1001;
    border-top: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(100%);
}

.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.cookie-accept {
    background: var(--primary-color);
    color: var(--accent-white);
}

.cookie-accept:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.cookie-decline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--text-light);
}

.cookie-decline:hover {
    background: var(--text-light);
    color: var(--text-dark);
}

/* Responsive Design - Улучшенная мобильная адаптация */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .grid-2 {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.5rem 0;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        min-height: auto;
    }
    
    .logo {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
    }
    
    .nav-menu li {
        flex: 0 0 auto;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
        background: rgba(158, 0, 255, 0.1);
        border-radius: 15px;
        border: 1px solid rgba(158, 0, 255, 0.2);
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background: rgba(158, 0, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .hero {
        min-height: 75vh;
        padding: 1rem 0;
        display: flex;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    .hero-content {
        padding: 1.5rem;
        margin: 1rem;
        position: relative;
        z-index: 2;
    }
    
    .hero::before {
        background: 
            url('./img/0ZHXk9.jpg') center/cover no-repeat;
        opacity: 0.5;
    }
    
    .hero::after {
        background: 
            radial-gradient(circle at 50% 50%, rgba(158, 0, 255, 0.4) 0%, transparent 70%),
            linear-gradient(135deg, rgba(44, 44, 44, 0.8) 0%, rgba(27, 31, 59, 0.9) 100%);
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sobre-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
    }
    
    .sobre-images {
        height: 350px;
        order: 2;
    }
    
    .sobre-cards {
        order: 1;
    }
    
    .card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card .card-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.3rem 0.5rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .nav-menu {
        gap: 0.3rem;
    }
    
    .nav-menu a {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    .hero {
        min-height: 100vh;
        padding: 1rem 0;
        display: flex;
        align-items: center;
    }
    
    .hero::before {
        background: url('./img/0ZHXk9.jpg') center/cover no-repeat;
        opacity: 0.8;
    }
    
    .hero::after {
        background: 
            radial-gradient(circle at 50% 50%, rgba(158, 0, 255, 0.15) 0%, transparent 70%),
            linear-gradient(135deg, rgba(44, 44, 44, 0.5) 0%, rgba(27, 31, 59, 0.6) 100%);
    }
    
    .hero-content {
        padding: 1.5rem;
        margin: 1rem;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(1px);
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .sobre-content {
        gap: 2rem;
    }
    
    .sobre-images {
        height: 280px;
    }
    
    .sobre-image-1 {
        width: 70%;
        height: 60%;
    }
    
    .sobre-image-2 {
        width: 65%;
        height: 55%;
    }
    
    .form-container {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 16px; /* Предотвращает зум на iOS */
    }
    
    .submit-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .cookie-banner {
        padding: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.8rem;
    }
}

/* Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }
.show { display: block; }

/* Page-specific styles */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-night) 100%);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    line-height: 1.8;
}

.page-content h2 {
    color: var(--secondary-color);
    margin: 2rem 0 1rem;
}

.page-content h3 {
    color: var(--accent-teal);
    margin: 1.5rem 0 0.5rem;
}

.page-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

.page-content a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-content a:hover {
    color: var(--secondary-color);
} 