/* ===== ПЕРЕМЕННЫЕ И ОБЩИЕ СТИЛИ ===== */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

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

/* ===== ШАПКА ===== */
header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    flex-shrink: 0;
}

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

header nav {
    flex-grow: 1;
    text-align: center;
}

header nav ul {
    list-style: none;
    display: inline-flex;
    gap: 2rem;
}

header nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: var(--secondary-color);
}

header nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

header nav a:hover::after {
    width: 100%;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.callback-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.callback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.2s ease;
    background: var(--bg-white);
}

.lang-link.active {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.lang-link:hover:not(.active) {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1002;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
main {
    padding-top: 80px; /* Placeholder, will be set by JS */
}

/* ===== БАННЕР ===== */
.banner {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 6rem 20px;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.banner-button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

.banner-button:hover {
    background: #0ea570;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ===== ОБЩИЕ СЕКЦИИ ===== */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== ФУТЕР ===== */
footer {
    background: linear-gradient(135deg, var(--primary-color), #1a347d);
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

footer h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 0.75rem;
}

footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-column {
    min-width: 250px;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ===== АДАПТИВНЫЕ СТИЛИ ===== */
@media screen and (max-width: 992px) {
    header nav {
        display: none;
    }

    .contact-info .phone {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    header nav.mobile-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: var(--shadow-lg);
        padding: 1rem 0;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            transform: translateY(-10px);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    header nav ul {
        flex-direction: column;
        gap: 0;
    }

    header nav li {
        width: 100%;
        text-align: center;
    }

    header nav a {
        padding: 1rem;
        display: block;
        border-bottom: 1px solid var(--border-color);
    }

    header nav li:last-child a {
        border-bottom: none;
    }
}

@media screen and (max-width: 768px) {
    .banner h1 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .banner h1 {
        font-size: 1.75rem;
    }

    .banner-button {
        width: 100%;
        padding: 0.875rem 2rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 15px;
    }
    
    footer {
        padding: 3rem 0 1.5rem;
        margin-top: 3rem;
    }

    .footer-content {
        gap: 2rem;
    }
}

/* ===== СТИЛИ ДЛЯ БЛОКОВ, КОТОРЫХ НЕ БЫЛО В ШАБЛОНЕ ===== */

/* Стили для Секции с ценами */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
    flex-grow: 1;
}

.pricing-card li {
    margin-bottom: 0.75rem;
}

.pricing-card.popular {
    border-color: var(--secondary-color);
    border-width: 2px;
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Стили для секции методологии */
.methodology-box {
    max-width: 800px; 
    margin: 0 auto; 
    background: white; 
    padding: 2rem; 
    border-radius: 12px; 
    box-shadow: var(--shadow-md);
}
.formula {
    background: var(--text-dark); 
    color: white; 
    padding: 1.5rem; 
    border-radius: 8px; 
    font-family: monospace; 
    text-align: center; 
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

.formula-caption {
  font-size: 0.95em;
  color: #6b7280;
  margin-top: 0.5em;
  text-align: center;
}

/* Стили для секции FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}
.faq-item summary {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1.5rem;
    cursor: pointer;
    list-style: none; /* Убирает стандартный маркер */
    position: relative;
}
.faq-item summary::-webkit-details-marker {
    display: none; /* Для Chrome/Safari */
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    margin: 0;
    border-top: 1px solid var(--border-color);
}


/* Стили для секции Об авторе */
.about-section {
    display: flex; 
    align-items: center; 
    gap: 2rem; 
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}
.about-section img {
    width: 150px; 
    height: 150px; 
    border-radius: 50%; 
    object-fit: cover;
    box-shadow: var(--shadow-lg);
}
.about-text {
    flex: 1;
}

/* ===== СТИЛИ ДЛЯ СЕКЦИИ ОТЗЫВОВ ===== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.review-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.review-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.review-text::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: Georgia, serif;
}

.review-author {
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: var(--text-light);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-dark);
}

.modal h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[readonly] {
    background-color: var(--bg-light);
    color: var(--text-light);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Адаптивность для модального окна */
@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .modal h3 {
        font-size: 1.25rem;
    }
}

.big-green-btn {
    display: inline-block;
    background: linear-gradient(90deg, #10b981 0%, #22d3ee 100%);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(16,185,129,0.15);
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    margin-top: 1rem;
}
.big-green-btn:hover {
    background: linear-gradient(90deg, #059669 0%, #0ea5e9 100%);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(16,185,129,0.25);
}
#promo-quiz {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border-radius: 16px;
    padding: 3rem 0 2.5rem 0;
    margin: 2.5rem auto; /* Используем auto для центрирования по горизонтали */
    max-width: 1200px; /* Ограничиваем ширину для больших экранов */
}

#promo-quiz .container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

#promo-quiz h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

#promo-quiz h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
    margin: 0.5rem auto 0 auto;
}

#promo-quiz a {
    display: inline-block;
    background: linear-gradient(90deg, #10b981 0%, #22d3ee 100%);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(16,185,129,0.15);
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

#promo-quiz a:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 24px rgba(16,185,129,0.25);
}

/* ===== СТИЛИ ДЛЯ FAQ (details/summary) ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem 0;
}

.faq-item {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.5rem;
    transition: box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
}

.faq-item summary {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
    outline: none;
    padding: 0.2rem 0;
    transition: color 0.2s;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:after {
    content: '▼';
    float: right;
    font-size: 1rem;
    color: var(--secondary-color);
    margin-left: 1rem;
    transition: transform 0.2s;
}

.faq-item[open] summary:after {
    transform: rotate(-180deg);
}

.faq-item p {
    margin-top: 1rem;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.6;
    padding-left: 0.5rem;
}