/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-color: #0b0d17;
    --card-bg: #15192b;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #3b82f6;
    --accent-glow: #3b82f680;
    --gradient: linear-gradient(135deg, #3b82f6 0%, #a855f7 100%);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-padding-top: 90px; /* Учитывает высоту твоей шапки + небольшой отступ */
    scroll-behavior: smooth; /* Заодно сделает так, чтобы страница скроллилась плавно, а не прыгала резко */
}


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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(11, 13, 23, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 20px; 
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1; 
    background: var(--gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: flex; 
    align-items: center;
    animation: gradientMove 5s ease infinite;
}

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 30px; 
}

.nav-links a:hover { 
    color: var(--accent); 
}


.btn {
    background: var(--gradient);
    background-size: 200% auto;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: 0.3s;
    color: white;
}
.btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 25px var(--accent-glow);
    background-position: right center;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    padding-bottom: 50px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    width: 100%;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

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

.glow-bg {
    position: absolute;
    top: 20%; right: 10%; width: 400px; height: 400px;
    background: var(--gradient);
    filter: blur(120px); 
    opacity: 0.25;
    border-radius: 50%; 
    z-index: 1;
    animation: pulse 8s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.25; }
    100% { transform: scale(1.1); opacity: 0.35; }
}

/* Offer Card */
.offer-card {
    background: rgba(21, 25, 43, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(15px);
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: float 6s ease-in-out infinite;
}

.offer-badge {
    position: absolute; top: -15px; right: 20px;
    background: #10b981; color: white; padding: 5px 15px;
    border-radius: 50px; font-weight: bold; font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.offer-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: #fff; }
.offer-card p { color: var(--text-muted); margin-bottom: 20px; font-size: 0.95rem; }

.check-list li {
    margin-bottom: 10px; display: flex; align-items: center;
    gap: 10px; font-size: 0.95rem;
}
.check-list li svg { width: 20px; height: 20px; fill: var(--accent); }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content p { margin: 0 auto 30px; }
    .hero { padding-top: 140px; }
    .offer-card { max-width: 400px; margin: 0 auto; text-align: left; }
    .glow-bg { top: 10%; right: 50%; transform: translateX(50%); }
}

/* --- SECTIONS --- */
section { padding: 100px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* --- ABOUT --- */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text p { margin-bottom: 20px; color: var(--text-muted); }
.tech-stack { display: flex; flex-wrap: wrap; gap: 15px; }
.tech-tag {
    background: rgba(255,255,255,0.05); padding: 8px 16px;
    border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem; color: var(--accent); transition: 0.3s;
}
.tech-tag:hover { border-color: var(--accent); color: white; background: var(--accent-glow); }

/* --- PORTFOLIO --- */
.portfolio-item {
    background: var(--card-bg); border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
}
.portfolio-item:hover { transform: translateY(-5px); border-color: var(--accent); }
.portfolio-img {
    width: 100%; height: 250px; object-fit: cover;
    background-color: #2a2f45; display: flex; align-items: center;
    justify-content: center; color: #555; font-size: 0.9rem;
}
.portfolio-info { padding: 25px; }
.portfolio-info h3 { margin-bottom: 10px; }
.portfolio-info p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.portfolio-link { color: var(--accent); font-weight: 600; font-size: 0.9rem; }

/* --- SERVICES --- */
.card {
    background: var(--card-bg); padding: 30px; border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05); transition: 0.3s;
}
.card:hover { transform: translateY(-10px); border-color: var(--accent); }
.card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--accent); }

/* --- PRICING --- */
.pricing { background: linear-gradient(to bottom, var(--bg-color), #0f1221); }
.price-card {
    background: var(--card-bg); padding: 40px; border-radius: 20px;
    text-align: center; border: 1px solid rgba(255,255,255,0.05);
    position: relative; overflow: hidden; transition: 0.3s;
}
.price-card:hover { transform: translateY(-5px); }
.price-card.popular { border: 1px solid var(--accent); box-shadow: 0 0 30px rgba(59, 130, 246, 0.15); }
.tag {
    background: var(--accent); color: white; padding: 5px 15px;
    border-radius: 20px; font-size: 0.8rem; position: absolute; top: 20px; right: 20px;
}
.price { 
    font-size: 3rem; 
    font-weight: 800; 
    margin: 20px 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.3)); 
}
.price span { 
    font-size: 1rem; 
    font-weight: 400; 
    background: none;
    -webkit-text-fill-color: var(--text-muted);
    color: var(--text-muted);
    display: inline-block; 
    margin-left: 5px;
    filter: none; 
}
.price-list { margin: 30px 0; text-align: left; }
.price-list li { margin-bottom: 15px; color: var(--text-muted); }
.price-list li::before { content: "✓"; color: var(--accent); margin-right: 10px; font-weight: bold; }

/* --- CONTACTS --- */
.contact-box {
    background: var(--card-bg); max-width: 600px; margin: 0 auto;
    padding: 50px; border-radius: 20px; text-align: center;
}
.contact-links { display: flex; justify-content: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.contact-btn {
    border: 1px solid rgba(255,255,255,0.2); padding: 15px 30px;
    border-radius: 10px; display: flex; align-items: center; gap: 10px;
}
.contact-btn:hover { background: rgba(255,255,255,0.1); border-color: var(--accent); }

/* --- FOOTER --- */
footer {
    padding: 30px 0; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); font-size: 0.9rem;
}

.footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .legal-info {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.4); /* Приглушенный цвет */
        line-height: 1.5;
        margin-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
        width: 100%;
        max-width: 600px;
    }
    .legal-info p {
        margin: 2px 0;

}


/* --- APPROACH SECTION --- */

.approach {
    background: linear-gradient(to bottom, var(--bg-color), #0f1221);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.approach__intro {
    max-width: 700px;
    margin-bottom: 70px;
}

.approach__lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-top: 20px;
}

.approach__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.approach__block {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.approach__block:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
}

.approach__block h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.approach__block p {
    color: var(--text-muted);
}

.approach__bottom {
    max-width: 700px;
    margin: 80px auto 0;
    text-align: center;
}

.approach__bottom p {
    font-size: 1.1rem;
    color: var(--text-muted);
}







/* --- MOBILE ADAPTIVE FIXES --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .hero { height: auto; padding: 150px 0 100px; }
    .about-content { grid-template-columns: 1fr; }
}



/* --- FAQ SECTION --- */
.faq-section {
    padding: 100px 0; /* Сделал отступы как у остальных section */
    background: transparent;
}

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

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px; /* Выровнял отступ под ваши .section-title */
    color: var(--text-main);
}

/* Оформляем вопросы в виде карточек, как в ваших Services и Pricing */
.faq-item {
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.faq-item:hover {
    border-color: rgba(59, 130, 246, 0.3); /* Легкий голубой акцент при наведении */
}

.faq-item.active {
    border-color: var(--accent); /* Подсветка активной вкладки */
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 24px 30px;
    font-size: 1.125rem;
    font-weight: 600;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    transition: color 0.3s ease;
    font-family: inherit;
}

.faq-question:hover,
.faq-item.active .faq-question {
    color: var(--accent); 
}

/* Иконка плюса/крестика */
.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 15px;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.faq-question:hover .faq-icon,
.faq-item.active .faq-icon {
    color: var(--accent);
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: transform 0.3s ease;
}

.faq-icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

/* Анимация иконки при открытии */
.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}
.faq-item.active .faq-icon::before {
    transform: rotate(180deg);
}

/* Скрытый контент ответа */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p, 
.faq-answer ul {
    margin: 0;
    padding: 0 30px 24px 30px; /* Отступы внутри карточки */
    line-height: 1.6;
    color: var(--text-muted);
    font-size: 1rem;
}

.faq-answer ul {
    padding-left: 50px;
}

.faq-answer li {
    margin-bottom: 8px;
}