/* --- ОБЩИЕ СТИЛИ --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    background-color: #121212;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', 'Courier New', Courier, monospace;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}
h1, h2, h3, h4 { font-weight: 700; }
a { color: #FDD06E; text-decoration: none; }
a:hover { color: #fdeab8; }
.text-center { text-align: center; }

/* --- ОСНОВНОЙ КОНТЕНТ --- */
#main-content { max-width: 960px; margin: 0 auto; padding: 40px 20px; width: 100%; overflow-x: hidden; }

/* --- HERO БЛОК --- */
.hero { min-height: 90vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; margin-bottom: 60px; position: relative; overflow: hidden; }
.hero h1 { color: #FDD06E; font-size: 3rem; margin-bottom: 20px; line-height: 1.2; }
.hero .subtitle { font-size: 1.2rem; color: #b0b0b0; max-width: 600px; }
.hero-background-image { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: -1; max-width: 1000px; width: 150%; opacity: 0.1; pointer-events: none; }

/* --- ОБЩИЕ СТИЛИ КОНТЕНТ-БЛОКОВ --- */
.content-block { background-color: #1f1f1f; padding: 40px; border-radius: 8px; margin-bottom: 40px; }
.content-block h2 { color: #FFB800; margin-bottom: 30px; text-align: center; font-size: 2rem; }

/* --- БЛОК ПРОБЛЕМ --- */
.problems-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 30px; }
.problem-item { background-color: #2a2a2a; padding: 25px; border-radius: 8px; text-align: center; transition: transform 0.3s ease, border-left 0.3s ease; border-left: 4px solid transparent; }
.problem-item:hover { transform: translateY(-5px); border-left: 4px solid #FFB800; }
.problem-icon { font-size: 2.5rem; margin-bottom: 15px; line-height: 1; }
.problem-item h4 { color: #FDD06E; font-size: 1.2rem; margin-bottom: 10px; }
.problem-item p { color: #b0b0b0; font-size: 0.9rem; line-height: 1.5; }

/* --- БЛОК РЕЗУЛЬТАТОВ --- */
.results-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; margin-top: 30px; }
.result-item { background-color: #2a2a2a; padding: 25px; border-radius: 8px; border-left: 4px solid #FFB800; transition: transform 0.3s ease; text-align: center; }
.result-item:hover { transform: translateY(-5px); }
.result-number { font-size: 1.5rem; font-weight: 700; color: #FFB800; margin-bottom: 10px; }

/* --- БЛОК С ТАРИФАМИ --- */
.pricing-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; margin-top: 40px; align-items: stretch; justify-content: center; }
.price-card { background-color: #2a2a2a; border: 1px solid #444; padding: 35px; border-radius: 12px; text-align: center; display: flex; flex-direction: column; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; }
.price-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.3); }
.price-card h3 { color: #FDD06E; font-size: 1.8rem; margin-bottom: 5px; }
.price-card .card-subtitle { color: #b0b0b0; font-size: 0.9rem; margin-bottom: 25px; min-height: 40px; }
.price-card ul { list-style: none; padding-left: 0; text-align: left; flex-grow: 1; margin: 20px 0; }
.price-card ul li { margin-bottom: 15px; padding-left: 25px; position: relative; line-height: 1.5; }
.price-card ul li::before { content: '✓'; position: absolute; left: 0; color: #FFB800; }
.price-card .price { font-size: 2.5rem; font-weight: 700; color: #fff; margin: 15px 0 10px; }
.price-card .price span { font-size: 1rem; font-weight: 400; color: #aaa; }
.price-card.recommended { border: 2px solid #FFB800; transform: scale(1.05); z-index: 1; box-shadow: 0 5px 15px rgba(255, 184, 0, 0.2); }
.price-card.recommended:hover { transform: scale(1.05) translateY(-8px); box-shadow: 0 15px 30px rgba(255, 184, 0, 0.3); }
.recommended-badge { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); background-color: #FFB800; color: #121212; padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 700; white-space: nowrap; z-index: 2; }
.price-card .cta-button { width: 100%; margin-top: auto; padding: 18px 25px; }

/* --- БЛОК ОБ АВТОРЕ С ФОТО --- */
.author-block {}
.author-content-wrapper { display: flex; align-items: center; gap: 40px; margin-bottom: 40px; }
.author-photo-container { flex-shrink: 0; }
.author-photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; border: 4px solid #333; }
.author-text h3 { color: #FDD06E; margin-bottom: 15px; font-size: 1.8rem; }
.author-text p { margin-bottom: 1em; }
.author-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 25px; }
.stat-item { background-color: #2a2a2a; padding: 20px; border-radius: 8px; text-align: center; border-bottom: 4px solid #FFB800; }
.stat-number { font-size: 1.5rem; font-weight: 700; color: #FFB800; margin-bottom: 8px; }
.stat-item p { color: #b0b0b0; font-size: 0.9rem; line-height: 1.4; }

/* --- FAQ БЛОК --- */
.faq-container { margin-top: 30px; }
.faq-item { background-color: #2a2a2a; border-radius: 8px; margin-bottom: 15px; overflow: hidden; }
.faq-question { padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question h4 { color: #FDD06E; margin: 0; flex-grow: 1; }
.faq-icon { color: #FFB800; font-size: 1.5rem; font-weight: 700; transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 20px 20px 20px; }
.faq-answer p { color: #b0b0b0; margin: 0; }

/* --- КНОПКИ --- */
.cta-button { display: inline-block; background-color: #FFB800; color: #121212; padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: transform 0.2s ease, background-color 0.2s ease; border: none; cursor: pointer; font-family: inherit; font-size: 1rem; }
.cta-button:hover { transform: scale(1.03); }

/* --- МОДАЛЬНОЕ ОКНО --- */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content { background-color: #1f1f1f; margin: 15% auto; padding: 40px; border: 1px solid #444; width: 90%; max-width: 500px; border-radius: 12px; position: relative; text-align: center; animation: slideIn 0.4s; }
@keyframes slideIn { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-button { color: #aaa; position: absolute; top: 15px; right: 20px; font-size: 28px; font-weight: bold; border: none; background: none; cursor: pointer; }
.close-button:hover, .close-button:focus { color: #fff; text-decoration: none; }
.modal-content h3 { color: #FFB800; margin-bottom: 30px; }
.messenger-buttons { display: flex; justify-content: center; gap: 20px; }
.messenger-button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; border-radius: 8px; background-color: #2a2a2a; transition: transform 0.2s, background-color 0.2s; color: #e0e0e0; }
.messenger-button:hover { transform: translateY(-5px); background-color: #333; }
.messenger-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.tg-icon { background-color: #0088cc; color: white; }
.vk-icon { background-color: #0077FF; color: white; }

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero .subtitle { font-size: 1rem; }
    .content-block { padding: 30px 20px; }
    .pricing-container { grid-template-columns: 1fr; gap: 40px; max-width: 400px; margin-left: auto; margin-right: auto; }
    .price-card { transform: none !important; }
    .price-card.recommended { box-shadow: 0 2px 8px rgba(255, 184, 0, 0.2); }
    .price-card:hover, .price-card.recommended:hover { transform: none !important; }
    .author-content-wrapper { flex-direction: column; text-align: center; gap: 25px; }
    .author-photo { width: 150px; height: 150px; }
    .author-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .problems-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 480px) {
    #main-content { padding: 20px 15px; }
    .hero h1 { font-size: 1.8rem; }
    .hero .subtitle { font-size: 0.9rem; }
    .content-block { padding: 25px 15px; margin-bottom: 30px; }
    .content-block h2 { font-size: 1.5rem; margin-bottom: 20px; }
    .pricing-container { grid-template-columns: 1fr; max-width: none; }
    .price-card { padding: 25px 20px; }
    .price-card h3 { font-size: 1.5rem; }
    .price-card .price { font-size: 2rem; }
    .price-card ul li { font-size: 0.9rem; }
    .author-stats { grid-template-columns: 1fr; }
    .results-grid { grid-template-columns: 1fr; }
}