:root {
    --bg-dark: #0a0e1a;
    --bg-card: #141b2d;
    --accent-gold: #d4af37;
    --accent-gold-light: #f1d98a;
    --accent-silver: #e0e0e0;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(20, 27, 45, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    z-index: 10001;
    transition: width 0.1s ease-out;
}

/* Background Animated Orbs */
.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.glow-orb {
    position: absolute;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: orbFloat 20s infinite alternate;
}

.orb-1 {
    background: var(--accent-gold);
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.orb-2 {
    background: #1a3a5f;
    bottom: -10%;
    right: -10%;
    animation-duration: 30s;
    animation-delay: -5s;
}

.orb-3 {
    background: #4a1a5f;
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    animation-duration: 20s;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(10%, 5%) scale(1.1); }
    66% { transform: translate(-5%, 15%) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2 {
    font-family: var(--font-heading);
    color: var(--text-main);
    letter-spacing: -0.01em;
}

h3, h4, h5 {
    font-family: var(--font-body);
    color: var(--text-main);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
    50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.4); }
    100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.2); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Base UI Components */
.btn-premium {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--accent-gold), #b38b28);
    color: var(--bg-dark);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    filter: brightness(1.1);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0s !important;
}

.card-premium {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.card-premium:hover {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0s !important;
}

.card-premium:hover {
    border-color: var(--accent-gold);
    transform: translateY(-10px);
    background: rgba(20, 27, 45, 0.9);
}

/* Specific Sections */
header {
    height: 100px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
}

header.scrolled {
    height: 80px;
    background: rgba(10, 14, 26, 0.95);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.logo span {
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-phone {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

.nav-phone:hover {
    color: var(--accent-gold);
}

.nav-phone i {
    width: 18px;
    margin-right: 8px;
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(rgba(10, 14, 26, 0.8), rgba(10, 14, 26, 0.8)), url('hero_bg_accounting_1775866144485.png');
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Sections and Typography Extensions */
section {
    padding: 140px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 25px;
}

.title-underline {
    width: 80px;
    height: 2px;
    background: var(--accent-gold);
    margin: 0 auto;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 30px;
}

/* Services */
.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 40px;
    text-align: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    padding: 20px;
}

.service-item:hover {
    transform: translateY(-10px);
}

.service-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    position: relative;
    transition: var(--transition-smooth);
}

.service-icon-inner {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #1a2a4a, #0a0e1a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.service-icon-inner i {
    width: 32px;
    height: 32px;
    color: var(--text-main);
}

.service-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-main);
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 250px;
    line-height: 1.4;
}

.service-item:hover .service-icon-wrapper {
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold-light);
}

/* Pricing Table */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.pricing-card {
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-card h3 {
    margin-bottom: 5px;
}

.pricing-card p {
    margin-bottom: 15px;
}

.pricing-card ul {
    flex-grow: 1;
    margin-bottom: 30px !important;
}

.pricing-card.featured {
    border: 1px solid var(--accent-gold);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured::before {
    content: 'РЕКОМЕНДУЕМ';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent-gold);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 5px 40px;
    transform: rotate(45deg);
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 30px 0;
    font-family: var(--font-heading);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 15px;
    color: white;
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255,255,255,0.1);
}

/* Floating Buttons */
.floating-btns {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

.float-btn.whatsapp { background-color: #25d366; }
.float-btn.telegram { background-color: #0088cc; }

.float-btn:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Pain Points Section */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.pain-card {
    background: rgba(255, 59, 48, 0.05);
    border: 1px solid rgba(255, 59, 48, 0.1);
    padding: 30px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.pain-card:hover {
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.3);
    transform: translateY(-5px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0s !important;
}

.pain-icon {
    color: #ff3b30;
    margin-bottom: 20px;
}

/* Steps Section */
.steps-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    margin-top: 60px;
}

.step-item {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.05);
    border: 2px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: 0s !important;
    position: relative;
}

.step-item.active .step-number {
    background: linear-gradient(135deg, var(--accent-gold), #b38b28);
    color: var(--bg-dark);
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}

.step-item:hover .step-number {
    background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
    color: var(--bg-dark);
    border-color: #ffffff;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.8);
    transform: scale(1.2);
}

.steps-line {
    position: absolute;
    top: 30px;
    left: 12.5%;
    width: 75%;
    height: 2px;
    background: rgba(255,255,255,0.05);
    z-index: 0;
    pointer-events: none;
}

.steps-line-inner {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    box-shadow: 0 0 10px var(--accent-gold);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.steps-line.animated .steps-line-inner {
    width: 100%;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.expanded .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.faq-answer {
    overflow: hidden;
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.expanded .faq-answer {
    padding: 0 20px 20px;
}

.faq-icon {
    transition: var(--transition-smooth);
}

.faq-item.expanded .faq-icon {
    transform: rotate(180deg);
}

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: 60px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.trust-item i {
    color: var(--accent-gold);
}

@media (max-width: 768px) {
    .pain-grid, .steps-list {
        grid-template-columns: 1fr;
    }
    
    .steps-line {
        top: 30px;
        left: 30px;
        width: 2px;
        height: calc(100% - 100px); /* Leave space for the last card content */
    }
    
    .step-item {
        text-align: left;
        padding-left: 80px;
        margin-bottom: 40px;
    }
    
    .step-number {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }

    .steps-line-inner {
        width: 100%;
        height: 0%;
        transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .steps-line.animated .steps-line-inner {
        height: 100%;
    }
}

/* Tablet & Mobile */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .contact-container { grid-template-columns: 1fr; }
    .services-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-phone { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .services-list { grid-template-columns: 1fr; gap: 40px; }
}

/* Footer */
footer {
    background: #05070d;
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-info p {
    color: var(--text-muted);
    margin-top: 20px;
}

.footer-contacts a {
    display: block;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition-smooth);
}

.footer-contacts a:hover {
    color: var(--accent-gold);
}

/* Tablet & Mobile */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .contact-container { grid-template-columns: 1fr; }
    .services-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-phone { display: none; }
    .hero h1 { font-size: 2.8rem; }
    .services-list { grid-template-columns: 1fr; gap: 40px; }
}
