/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8fafc;
    min-height: 100vh;
}

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

/* ========================================
   СОВРЕМЕННЫЙ HEADER
   ======================================== */

.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.modern-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.modern-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.modern-logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(16, 185, 129, 0.2));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* Navigation Links */
.modern-nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #0f172a;
    background: #f8fafc;
}

.nav-link.active {
    color: #10b981;
    background: #f0f9ff;
}

/* Header CTA Button */
.header-cta {
    padding: 0.625rem 1.25rem;
    background: #10b981;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.header-cta:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Mobile Menu Button */
.modern-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modern-mobile-menu span {
    width: 24px;
    height: 2px;
    background: #64748b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.modern-mobile-menu:hover span {
    background: #0f172a;
}

.modern-mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.modern-mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Основной контент */
main {
    margin-top: 70px;
    padding: 0;
}

.section {
    display: none;
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
}

.section.active {
    display: block;
}

/* Герой блок */
.hero {
    text-align: center;
    padding: 2rem 0;
    color: white;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

/* CTA кнопки */
.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Блоки контента */
.content-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Карточки особенностей */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

/* Инструкции с раскрываемостью */
.instruction-step {
    display: flex;
    align-items: flex-start;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border-left: 4px solid #667eea;
    flex-direction: column;
}

.instruction-step.expandable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.instruction-step.expandable:hover {
    background: rgba(102, 126, 234, 0.08);
}

.step-header {
    display: flex;
    align-items: flex-start;
    width: 100%;
    cursor: pointer;
}

.step-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: #1f2937;
}

.step-content p {
    margin: 0;
    color: #4b5563;
}

.step-arrow {
    color: #667eea;
    font-size: 1.2rem;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.instruction-step.expanded .step-arrow {
    transform: rotate(180deg);
}

.step-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    margin-left: calc(30px + 1rem);
}

.instruction-step.expanded .step-details {
    max-height: 500px;
    padding-top: 1rem;
}

.step-details p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.step-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.step-image-item {
    text-align: center;
}

.step-image-item img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    display: block;
}

.image-caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-style: italic;
}

/* Адаптивность для изображений */
@media (max-width: 768px) {
    .step-images {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-image-item img {
        max-width: 100%;
    }
}

/* FAQ */
.faq-item {
    margin: 1.5rem 0;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    background: rgba(102, 126, 234, 0.05);
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(102, 126, 234, 0.1);
}

.faq-answer {
    padding: 1rem;
    display: none;
}

.faq-answer.active {
    display: block;
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contact-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.contact-item.clickable {
    cursor: pointer;
}

.contact-item.clickable:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.contact-item.clickable:active {
    transform: translateY(0);
}

.contact-item h4 {
    color: #667eea;
    margin: 0.5rem 0;
    font-weight: 600;
}

.contact-item p {
    margin: 0;
    color: #6b7280;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    transition: all 0.3s ease;
}

.contact-item.clickable:hover .contact-icon {
    background: #5a67d8;
    transform: scale(1.1);
}

/* How-To Extra Sections */
.howto-extra-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 15px;
    border-left: 4px solid #10b981;
}

.howto-extra-section h3 {
    color: #0f172a;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.tip-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tip-card strong {
    display: block;
    color: #10b981;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.tip-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.mistakes-list,
.audience-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.mistakes-list li,
.audience-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #ef4444;
    line-height: 1.6;
}

.audience-list li {
    border-left-color: #10b981;
}

.mistakes-list strong,
.audience-list strong {
    color: #0f172a;
}

/* Limitations Section */
.limitations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.limitation-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    text-align: center;
    transition: all 0.2s ease;
}

.limitation-card:hover {
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.limitation-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.limitation-card strong {
    display: block;
    color: #0f172a;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.limitation-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
}

.important-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    border-left: 4px solid #f59e0b;
}

.important-note strong {
    display: block;
    color: #92400e;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.important-note ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.important-note li {
    padding: 0.5rem 0;
    color: #78350f;
    line-height: 1.6;
}

.important-note li strong {
    display: inline;
    color: #92400e;
    font-weight: 700;
}

/* Футер */
footer {
    background: #1f2937;
    color: #d1d5db;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2.5rem 0 1.5rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.footer-section p {
    margin: 0.4rem 0;
    color: #9ca3af;
    line-height: 1.5;
}

.footer-section a {
    color: #10b981;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #34d399;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, #10b981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: #9ca3af;
    font-size: 0.9rem;
}
.webapp-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.url-input-section {
    display: none;
    text-align: center;
    padding: 2rem;
}

.url-input {
    width: 100%;
    max-width: 500px;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    margin: 1rem 0;
    transition: border-color 0.3s;
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
}

.calculate-btn {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.calculate-btn:hover {
    transform: translateY(-2px);
}

/* ========================================
   АДАПТИВ ДЛЯ HEADER
   ======================================== */

@media (max-width: 992px) {
    .modern-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.06);
        gap: 0;
    }

    .modern-nav-links.active {
        display: flex;
    }

    .modern-nav-links li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: left;
    }

    .header-cta {
        display: none;
    }

    .modern-mobile-menu {
        display: flex;
    }

    .modern-nav {
        padding: 1rem 1.5rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .modern-nav {
        padding: 1rem;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
    }

    .logo-text {
        font-size: 1.125rem;
    }
}

/* Старый адаптив */
@media (max-width: 768px) {

    .container {
        padding: 0 15px;
    }

    /* Основной контент */
    main {
        margin-top: 70px;
        padding: 1rem 0;
    }

    /* Герой блок */
    .hero {
        padding: 1.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Контент секции */
    .content-section {
        padding: 1.5rem;
        margin: 1rem 0;
        border-radius: 15px;
    }

    .content-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .content-section h3 {
        font-size: 1.3rem;
    }

    /* Статистика и карточки - двухколоночная сетка */
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 2rem 0;
    }

    /* Блоки статистики на главной */
    [style*="display: grid"][style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* Блоки "Почему выбирают MoneySave" */
    [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important; /* Эти остаются одноколоночными из-за большого текста */
    }

    /* Инструкции */
    .instruction-step {
        padding: 1rem;
        margin: 1rem 0;
    }

    .step-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .step-number {
        margin: 0 1rem 0 0;
        min-width: 30px;
    }

    .step-content h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .step-content p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .step-details {
        margin-left: 0;
        padding-left: calc(30px + 1rem);
        margin-top: 0.5rem;
    }

    .instruction-step.expanded .step-details {
        padding-top: 0.5rem;
    }

    .step-details p {
        font-size: 0.9rem;
    }

    /* Изображения в инструкциях - двухколоночная сетка */
    .step-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .step-image-item img {
        max-width: 100%;
        border-radius: 8px;
    }

    .image-caption {
        font-size: 0.75rem;
        margin-top: 0.4rem;
    }

    /* FAQ */
    .faq-item {
        margin: 1rem 0;
        border-radius: 8px;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 1rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Контакты - двухколоночная сетка */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .contact-item {
        padding: 1rem;
    }

    .contact-item h4 {
        font-size: 0.9rem;
    }

    .contact-item p {
        font-size: 0.85rem;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    /* CTA кнопки */
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        display: block;
        text-align: center;
        margin: 1rem auto;
        max-width: 250px;
    }

    /* WebApp */
    .webapp-container {
        padding: 1.5rem;
        margin: 1rem 0;
        border-radius: 15px;
    }

    .url-input {
        padding: 0.8rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    .calculate-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        width: 100%;
        max-width: 300px;
    }
}

/* Дополнительно для очень маленьких экранов */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    nav {
        padding: 1rem;  /* Уменьшаем отступы для маленьких экранов */
    }

    .logo {
        font-size: 1.7rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 1rem;
    }

    .step-number {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
        margin-right: 0.8rem;
    }

    .step-content h4 {
        font-size: 0.95rem;
    }

    .step-content p {
        font-size: 0.85rem;
    }

    .step-details {
        padding-left: calc(25px + 0.8rem);
        font-size: 0.85rem;
    }

    /* Футер - 3 колонки в 1 строку на мобилке */
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem 0.75rem;
        padding: 1.5rem 0 1rem;
        text-align: left;
    }

    .footer-section {
        min-width: 0; /* Предотвращает переполнение */
    }

    /* Скрываем логотип на мобилке */
    .footer-section:first-child {
        display: none;
    }

    .footer-section h4 {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
    }

    .footer-section p {
        font-size: 0.7rem;
        margin: 0.25rem 0;
        line-height: 1.4;
    }

    .footer-logo {
        font-size: 0.95rem;
        margin-bottom: 0;
    }

    .footer-bottom {
        padding: 0.75rem 0;
        font-size: 0.7rem;
    }

    .footer-bottom p {
        font-size: 0.7rem;
    }
    .features {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .step-images {
        grid-template-columns: 1fr;
    }

    /* Статистические блоки остаются в две колонки */
    [style*="display: grid"][style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }
}

.offer-paragraph {
  margin-bottom: 1rem;
}

.offer-sublist {
  margin: 0.5rem 0 1rem 2rem;
  list-style-type: none; /* можно убрать, если нужны маркеры */
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-logo {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.preloader-text {
    color: white;
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

/* Page transitions */
.section {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Loading state для кнопок */
button.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Skeleton loaders для контента */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Улучшенная производительность */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lazy loading для изображений */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Will-change для анимаций */
.nav-links a,
.cta-button,
button,
.contact-item {
    will-change: transform;
}

/* Оптимизация для touch устройств */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .cta-button,
    button {
        transition-duration: 0.1s;
    }
}

/* ========================================
   МИНИМАЛИСТИЧНЫЙ ДИЗАЙН ГЛАВНОЙ СТРАНИЦЫ
   ======================================== */

/* Minimal Hero */
.minimal-hero {
    padding: 6rem 20px 4rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.minimal-hero-content {
    animation: fadeInUp 0.8s ease;
}

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

.minimal-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #f0f9ff;
    color: #10b981;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.minimal-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.highlight {
    color: #10b981;
    position: relative;
}

.minimal-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.minimal-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #10b981;
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 2px solid #10b981;
}

.btn-main:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #64748b;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
}

.btn-ghost:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.trust-line {
    display: flex;
    gap: 2rem;
    justify-content: center;
    color: #64748b;
    font-size: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    margin-top: 2rem;
}

.avatars {
    display: flex;
    align-items: center;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    border: 2px solid white;
    font-size: 0.875rem;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0f172a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
    border: 2px solid white;
    font-size: 0.75rem;
    font-weight: 600;
}

.social-text {
    color: #64748b;
    font-size: 0.9rem;
}

.social-text strong {
    color: #0f172a;
    font-weight: 600;
}

/* Price Example */
.price-example {
    max-width: 700px;
    margin: 3rem auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.price-card {
    flex: 1;
    min-width: 200px;
    padding: 2rem;
    background: white;
    border: 2px solid #f1f5f9;
    border-radius: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.price-card.highlight-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.price-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.price-value.old-price {
    color: #94a3b8;
    text-decoration: line-through;
}

.price-value.new-price {
    color: #10b981;
}

.price-savings {
    font-size: 0.875rem;
    color: #059669;
    font-weight: 600;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
}

.price-arrow {
    font-size: 2rem;
    color: #10b981;
    font-weight: 700;
}

/* Compact Stats */
.compact-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 20px;
}

.compact-stat {
    text-align: center;
    padding: 2rem 1rem;
    border-radius: 12px;
    background: white;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.compact-stat:hover {
    border-color: #e2e8f0;
    transform: translateY(-3px);
}

.compact-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 0.5rem;
}

.compact-stat-label {
    font-size: 0.875rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Minimal Section */
.minimal-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 20px;
}

.minimal-section-gray {
    background: #f8fafc;
    margin: 3rem 0;
    padding: 3rem 20px;
}

.minimal-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.minimal-h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.minimal-desc {
    font-size: 1.125rem;
    color: #64748b;
}

/* Minimal Steps */
.minimal-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.minimal-step {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.minimal-step:hover {
    border-color: #10b981;
    transform: translateY(-3px);
}

.minimal-step-num {
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.minimal-step-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.minimal-step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.minimal-step-text {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Minimal Grid */
.minimal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.minimal-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.minimal-card:hover {
    border-color: #e2e8f0;
    transform: translateY(-3px);
}

.minimal-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.minimal-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.minimal-card-text {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Minimal CTA Box */
.minimal-cta-box {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(to bottom, #f8fafc, white);
    border-radius: 20px;
    border: 1px solid #f1f5f9;
}

.minimal-cta-box .minimal-desc {
    margin-bottom: 2rem;
}

.minimal-cta-box .btn-main {
    margin-top: 0.5rem;
}

.minimal-cta-center {
    text-align: center;
    margin-top: 2rem;
}

/* ========================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ
   ======================================== */

@media (max-width: 768px) {
    .minimal-hero {
        padding: 3rem 20px 2rem;
    }

    .minimal-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .minimal-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .minimal-cta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn-main,
    .btn-ghost {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .trust-line {
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .social-proof {
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }

    .social-text {
        font-size: 0.85rem;
    }

    /* 2 колонки для статистики */
    .compact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        margin-bottom: 3rem;
    }

    .compact-stat {
        padding: 1.25rem 0.5rem;
    }

    .compact-stat-value {
        font-size: 1.5rem;
    }

    .compact-stat-label {
        font-size: 0.8rem;
    }

    /* Цены */
    .price-example {
        margin: 2rem auto;
        padding: 1rem;
        gap: 1rem;
    }

    .price-card {
        min-width: 140px;
        padding: 1.5rem 1rem;
    }

    .price-value {
        font-size: 1.75rem;
    }

    .price-arrow {
        font-size: 1.5rem;
    }

    /* Заголовки секций */
    .minimal-h2 {
        font-size: 1.75rem;
    }

    .minimal-desc {
        font-size: 1rem;
    }

    .minimal-section {
        margin: 3rem auto;
    }

    .minimal-section-header {
        margin-bottom: 2rem;
    }

    /* 2 колонки для шагов на мобилке */
    .minimal-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .minimal-step {
        padding: 1.25rem;
    }

    .minimal-step-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .minimal-step-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .minimal-step-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    /* 2 колонки для карточек преимуществ */
    .minimal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .minimal-card {
        padding: 1.25rem;
    }

    .minimal-card-icon {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .minimal-card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .minimal-card-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .minimal-section-gray {
        padding: 2.5rem 20px;
    }

    .minimal-cta-box {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .minimal-title {
        font-size: 1.75rem;
    }

    .minimal-hero {
        padding: 2.5rem 15px 1.5rem;
    }

    /* На очень маленьких экранах статистику оставляем в 2 колонки */
    .compact-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .compact-stat {
        padding: 1rem 0.5rem;
    }

    /* Шаги и карточки тоже 2 колонки */
    .minimal-steps {
        gap: 0.75rem;
    }

    .minimal-grid {
        gap: 0.75rem;
    }

    .minimal-step,
    .minimal-card {
        padding: 1rem;
    }
}

/* ========================================
   СТАРЫЙ ДИЗАЙН (УДАЛЕН - НЕ ИСПОЛЬЗУЕТСЯ)
   ======================================== */

/* Hero Section (OLD) */
.hero-section-old {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    margin: 0 -20px 3rem;
    padding: 4rem 20px 5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #059669;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
}

.hero-feature svg {
    stroke: white;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: -2rem auto 3rem;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Section Container */
.section-container {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 0 20px;
}

.section-alt {
    background: linear-gradient(to bottom, #f8fafc 0%, white 100%);
    margin: 5rem -20px;
    padding: 5rem 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1f2937;
    text-align: center;
    margin-bottom: 3rem;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid #f0f9ff;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #10b981;
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.step-description {
    color: #64748b;
    line-height: 1.6;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.benefit-text {
    color: #64748b;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    margin: 5rem -20px;
    padding: 5rem 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-block;
    background: white;
    color: #059669;
    padding: 1.25rem 3rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.section-cta {
    text-align: center;
}

/* SEO Content (скрыт визуально, но индексируется) */
.seo-content {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ========================================
   АДАПТИВ ДЛЯ МОБИЛОК
   ======================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 20px 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
        width: 100%;
    }

    .hero-features {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: -1.5rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-value {
        font-size: 1.75rem;
    }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}