/*
Theme Name: SunColor
Author: You
Description: Тема для сервиса оживления фото
Version: 1.0
*/


/* 1. СБРОС И БАЗА */
:root {
    --primary-color: #078d66;
    --bg-color: #f4f7f6;
    --text-color: #333;
    --white: #ffffff;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

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

/* 2. ШАПКА (Исправляем кривизну) */
header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Делаем всё в одну строку */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Ограничиваем логотип, чтобы он не был огромным */
.logo img {
    height: 40px; /* Фиксируем высоту */
    width: auto;   /* Ширина подстроится */
    display: block;
}

/* Меню в строку */
.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    font-size: 15px;
    color: #555;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Кнопка входа и баланс */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none; /* Скрываем на ПК */
}


.balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f0f9f6;
    border-radius: 20px;
}

.balance .balance-count {
    font-size: 1.2em;
    font-weight: 700;
    color: #078d66;
}

.balance img {
    width: 24px;
    height: 24px;
}
/* 3. ГЛАВНАЯ СЕКЦИЯ (HERO) */
.hero {
    text-align: center;
    padding: 60px 0 100px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.welcome-text p {
    font-size: 1.1rem;
    color: #666;
    max-width: 900px;
    margin: 0 auto 40px;
}

/* Зона загрузки */
.upload-area {
    background: var(--white);
    border: 2px dashed #ccc;
    border-radius: 16px;
    padding: 50px 20px;
    cursor: pointer;
    transition: all 0.3s;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #e6f3ef;
}

.photo-preview {
    max-width: 100%;
    max-height: 2000px;
    height: auto;
    border-radius: 8px;
    margin-top: 10px;
}

/* Кнопка внутри загрузки */
.upload-btn {
    background: #333;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    margin-top: 15px;
    cursor: pointer;
}

/* 4. НАСТРОЙКИ (Скрытый блок) */
.settings-container {
    background: var(--white);
    padding: 30px;
    border-radius: 16px;
    max-width: 900px;
    margin: 30px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: left;
}

.setting-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.textarea-field, .select-field {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box; /* Важно, чтобы не вылезало */
    margin-bottom: 20px;
}

/* Главная кнопка действия */
.action-button {
    background: #078d66;
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    display: block;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(131, 198, 178, 0.3);
    transition: transform 0.2s;
}

.action-button:hover {
    transform: translateY(-2px);
}

.action-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* 5. РЕЗУЛЬТАТ */
.result-section {
    max-width: 800px;
    margin: 50px auto;
    text-align: center;
}

.video-wrapper {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

video {
    width: 100%;
    display: block;
}

/* Прогресс бар */
#processing-status {
    margin-bottom: 20px;
}

#progress-bar-container {
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

#progress-bar {
    height: auto;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s;
}

/* 6. ПОДВАЛ */
footer {
    text-align: center;
    padding: 40px 0;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #eee;
    margin-top: 50px;
}

/* 7. МОДАЛКА */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    position: relative;
    text-align: left;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.input-group input {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
    text-align: center;
}

.modal-btn {
    width: 90%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Кнопка повторной отправки кода */
.resend-btn {
    width: 90%;
    padding: 12px;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.resend-btn:disabled {
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
    background: #f5f5f5;
}

.resend-btn:not(:disabled):hover {
    background: var(--primary-color);
    color: white;
}

.step-icon img {
    width: 50px;
    height: 50px;
}

	.step-icon, .user-icon {
    color: white;
    /*width: 85px;
    height: 71px;*/
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 15px;
	}
.step-icon {
padding: 16px;
	}
	
.user-icon {
width: 50px!important;
height: 40px!important;
margin-bottom: 5px;
border-radius: 15px;
margin: 0!important;
	}
	
.user-icon:hover {
    background: #078d66;
}
	
img.user-icon-em  {
width: 40px;
height: 40px;
 background-color: #e6f3ef;
padding: 10px;
margin: 0 15px 0 0px;
border-radius: 10px;
vertical-align: middle;
}


.user-icon img {
width: 23px;
padding-top: 9px;
	}

/* Реставрация - дополнительные стили */
.cost-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 15px;
    background: #e6f3ef;
    border-radius: 8px;
}

.cost-label {
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 500;
}

.cost-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #078d66;
}

.cost-icon {
    width: 24px;
    height: 24px;
}


.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.download-btn, .animate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 16px;
    white-space: nowrap;
    max-width: fit-content;
    flex-shrink: 0;
}

.download-btn img {
    width: 20px;
    height: 20px;
}

.download-btn {
    background: #078d66;
    color: white;
    text-decoration: none;
}

.animate-btn {
    background: #333;
    color: white;
    border: none;
}

.download-btn:hover, .animate-btn:hover {
    transform: translateY(-2px);
}

.result-image {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Landing Page - Главная страница */
.landing-hero {
    padding: 60px 0 80px;
}

.landing-hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 60px 0;
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.service-card.featured {
    background: #83c6b2;
    color: white;
}

.service-card.featured h3,
.service-card.featured p {
    color: white;
}

.service-card.full-width {
    grid-column: 1 / -1;
    max-width: 900px;
    margin: 0 auto;
}

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(7, 141, 102, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card.featured .service-icon {
    background: rgba(255,255,255,0.2);
}

.service-card.featured-dark {
    background: #006341;
    color: white;
}

.service-card.featured-dark h3,
.service-card.featured-dark p {
    color: white;
}

.service-card.featured-dark .service-icon {
    background: rgba(255,255,255,0.2);
}

.service-card.featured-dark .restoration-features,
.service-card.featured-dark .restoration-features li {
    color: white;
}


.service-icon img {
    width: 45px;
    height: 45px;
}

.service-card h3 {
    font-size: 1.5em;
    margin: 15px 0 10px;
}

.service-card p {
    color: #666;
    margin: 10px 0 20px;
    line-height: 1.6;
}

.service-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0;
    font-size: 1.3em;
    font-weight: bold;
}

.service-card.featured .service-price {
    color: white;
}

.price-icon {
    width: 24px;
    height: 24px;
}

.service-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 20px 0;
    font-size: 1.1em;
}

.service-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #078d66;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.service-btn:hover {
    background: #046247;
    transform: scale(1.05);
}

.service-btn.primary {
    background: white;
    color: #078d66;
}

.service-btn.primary:hover {
    background: #f5f5f5;
}

.service-card.featured .service-btn {
    background: white;
    color: #078d66;
}

.features-section {
    margin-top: 80px;
    text-align: center;
}

.features-section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
}

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

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 3em;
    display: block;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-size: 1.3em;
    margin: 15px 0 10px;
}

.feature-item p {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .landing-hero h1 {
        font-size: 2em;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}


/* Модификатор для выравнивания кнопок */
.services-grid.services-align {
    display: flex;
    align-items: stretch;
}

.services-grid.services-align .service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.services-grid.services-align .service-card .service-btn {
    margin-top: auto;
}
/* Личный кабинет */
.my-account-section {
    padding: 60px 0;
    background: #f5f5f5;
    min-height: calc(100vh - 200px);
}

.my-account-section h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
}

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

.account-widget {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.account-widget h2 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

/* Баланс виджет */
.balance-widget .oldphoto-balance-widget {
    margin-top: 10px;
}

/* Быстрые действия */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #f8f8f8;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.action-btn:hover {
    background: #078d66;
    color: white;
    transform: translateX(5px);
}

.action-icon {
    font-size: 1.5em;
}

/* Информация о пользователе */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: #666;
}

.info-value {
    color: #333;
}

/* Статистика */
.stats-grid {
    display: grid;
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #078d66;
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* Страница тарифов - ИСПРАВЛЕННАЯ ВЕРСИЯ */
.pricing-section {
    padding: 60px 0 80px;
    background: #f5f5f5;
}

.pricing-section h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
}


.faq-payment h2 {
    color: #078d66;
}
.payment-info {
    text-align: center;
    margin-bottom: 50px;
}

.payment-logo {
    max-width: 200px;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #666;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
    padding: 0 15px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.pricing-card.free {
    border: 3px solid #078d66;
}

.pricing-card.popular {
    background: #83c6b2;
    color: white;
}

.pricing-card.popular:hover {
    transform: translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
}

.price-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.price-amount {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: bold;
    color: #078d66;
    margin-bottom: 15px;
}

.pricing-card.popular .price-amount {
    color: white;
}

.price-description {
    margin: 15px 0;
    line-height: 1.6;
    flex-grow: 1;
}

.price-description p {
    margin: 5px 0;
    color: #666;
    font-size: 0.95em;
}

.pricing-card.popular .price-description p {
    color: rgba(255,255,255,0.95);
}

.price-description .or {
    font-style: italic;
    color: #999;
    font-size: 0.85em;
}

.pricing-card.popular .price-description .or {
    color: rgba(255,255,255,0.7);
}

.price-value {
    font-size: 1.6em;
    font-weight: bold;
    color: #333;
    margin: 20px 0 25px;
}

.price-value.free-badge {
    color: #078d66;
    font-size: 1.4em;
}

.pricing-card.popular .price-value {
    color: white;
}

.pricing-btn {
    display: block;
    max-width: 95%;
    padding: 14px 25px;
    background: #078d66;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    margin: auto auto 0 auto;
}

.pricing-btn:hover {
    background: #046247;
    transform: scale(1.02);
}

.pricing-btn.primary {
    background: #078d66;
}

.pricing-btn.disabled {
    background: #ccc;
    cursor: not-allowed;
	max-width: 95%;
    margin: auto auto 0 auto;
}

.pricing-card.popular .pricing-btn {
    background: white;
    color: #078d66;
}

.pricing-card.popular .pricing-btn:hover {
    background: #f5f5f5;
}


/* Иконка листика в цене */
.price-leaf-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    margin-left: 8px;
}

.pricing-notes {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-top: 40px;
}

.pricing-notes h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.pricing-notes ul {
    list-style: none;
    padding: 0;
}

.pricing-notes li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.05em;
    line-height: 1.6;
}

.pricing-notes li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        min-height: auto;
    }
}


/* Картинка с методами оплаты на странице тарифов */
.payment-methods-image {
    text-align: center;
    margin: 30px 0 40px 0;
}

.payment-methods-image .payments-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .payment-methods-image {
        margin: 20px 0 30px 0;
    }
    
    .payment-methods-image .payments-img {
        max-width: 100%;
    }
}

/* Примеры работ - Image Comparison */
.examples-section {
    padding: 80px 0;
    background: white;
}

.examples-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
}

.examples-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    color: #666;
    line-height: 1.8;
    font-size: 1.05em;
}

.examples-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}


.example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.image-comparison {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    height: auto;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.comparison-after,
.comparison-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
}

.comparison-before {
    width: 100%;
    clip-path: inset(0 50% 0 0);
    
    z-index: 2;
}

.comparison-before::after {
    content: 'БЫЛО';
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.3em;
    font-weight: 600;
    letter-spacing: 1px;
}

.comparison-after::after {
    content: 'СТАЛО';
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(7, 141, 102, 0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.3em;
    font-weight: 600;
    letter-spacing: 1px;
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    z-index: 3;
    cursor: grab;
    transform: translateX(-50%);
}

.comparison-slider::before {
    content: '⟨ ⟩';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    font-size: 1.2em;
    color: #078d66;
    font-weight: bold;
    letter-spacing: -2px;
}

.comparison-slider:active {
    cursor: grabbing;
}

.example-description {
    padding: 25px;
}

.example-description h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333;
}

.example-description p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95em;
}


/* Планшеты - 2 колонки */
@media (max-width: 1200px) and (min-width: 769px) {
    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .image-comparison {
        aspect-ratio: 3 / 2;
        height: auto;
    }
}

/* Magic Login Modal Integration */
.magic-login-modal .modal-body {
    padding: 20px 0;
}

.magic-login-modal #magic-login-shortcode {
    max-width: 100%;
}

.magic-login-modal .magic-login-form {
    margin: 0;
}

.magic-login-modal .magic-login-form input[type="email"],
.magic-login-modal .magic-login-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 15px;
}

.magic-login-modal .magic-login-form input[type="email"]:focus,
.magic-login-modal .magic-login-form input[type="text"]:focus {
    border-color: #078d66;
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 141, 102, 0.1);
}

.magic-login-modal .magic-login-form .magic-login-submit {
    width: 100%;
    padding: 14px;
    background: #078d66;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.magic-login-modal .magic-login-form .magic-login-submit:hover {
    background: #046247;
    transform: scale(1.02);
}

.magic-login-modal .magic-login-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.magic-login-modal .magic-login-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.magic-login-modal .magic-login-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.magic-login-modal .magic-login-info {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 15px;
    line-height: 1.6;
}

/* Authentication Modal Styles */
.auth-modal {
    max-width: 500px;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.auth-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-tab:hover {
    color: #078d66;
    background: #e6f3ef;
}

.auth-tab.active {
    color: #078d66;
    border-bottom-color: #078d66;
    font-weight: 600;
}

.auth-content {
    display: none;
}

.auth-content.active {
    display: block;
}

.auth-description {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
}

.auth-form {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.auth-form input[type="tel"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 80%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.auth-form input:focus {
    border-color: #078d66;
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 141, 102, 0.1);
}

.checkbox-container {
    margin: 20px 0;
}

.checkbox-container label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-container span {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
}

.checkbox-container a {
    color: #078d66;
    text-decoration: underline;
}

/* Code Inputs */
.code-inputs-container {
    margin-top: 25px;
}

.code-inputs {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0 25px;
}

.code-input {
    width: 60px !important;
    height: 60px;
    text-align: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px;
    padding: 0 !important;
    margin: 0 !important;
}

.code-input:focus {
    border-color: #078d66 !important;
    box-shadow: 0 0 0 3px rgba(7, 141, 102, 0.1);
}

/* Messages */
.auth-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-size: 0.95em;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-note {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 0.9em;
}

.auth-note a {
    color: #078d66;
    text-decoration: none;
}

.auth-note a:hover {
    text-decoration: underline;
}

/* Phone Input specific */
.phone-input {
    font-size: 1.1em !important;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-modal {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .code-inputs {
        gap: 10px;
    }
    
    .code-input {
        width: 50px !important;
        height: 50px;
        font-size: 1.5em;
    }
    
    .auth-tab {
        padding: 12px 15px;
        font-size: 0.9em;
    }
}

/* Placeholder styles for examples */
.placeholder-before {
    background: #078d66 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-after {
    background: #078d66 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-before .placeholder-text,
.placeholder-after .placeholder-text {
    font-size: 3em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

/* Different colors for variety */
.example-item:nth-child(2) .placeholder-after {
    background: #078d66 !important;
}

.example-item:nth-child(3) .placeholder-after {
    background: #83c6b2 !important;
}

.example-item:nth-child(4) .placeholder-after {
    background: #078d66 !important;
}

.example-item:nth-child(5) .placeholder-after {
    background: #078d66 !important;
}

.example-item:nth-child(6) .placeholder-after {
    background: #078d66 !important;
}

/* Format hint для загрузки фото */
.format-hint {
    margin-top: 15px;
    font-size: 0.85em;
    color: #666;
    text-align: center;
}

/* Кнопка удаления фото (корзина) */
#foto-del {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#foto-del:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

#foto-del:active {
    transform: scale(0.95);
}

#foto-del img {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
}

.ramka {
    position: relative;
}

/* Фиксированные размеры и границы для примеров работ */
.example-item {
    max-width: 450px;
    margin: 0 auto;
    border: 2px solid #e6f3ef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* SEO блок - Реставрация фотографий */
.restoration-info {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    line-height: 1.8;
}

.restoration-info h2 {
    font-size: 1.8em;
    color: #078d66;
    margin-bottom: 20px;
    line-height: 1.3;
}

.restoration-info h3 {
    font-size: 1.3em;
    color: #046247;
    margin-top: 30px;
    margin-bottom: 15px;
}

.restoration-info p {
    margin-bottom: 15px;
    color: #444;
}

.restoration-info ul,
.restoration-info ol {
    margin: 15px 0 20px 30px;
    color: #444;
}

.restoration-info li {
    margin-bottom: 8px;
}

.restoration-info strong {
    color: #078d66;
    font-weight: 600;
}

/* FAQ секция */
.faq-section {
    max-width: 900px;
    margin: 40px auto 60px;
    padding: 40px;
    background: #f8fbfa;
    border-radius: 12px;
}

.faq-section h2 {
    font-size: 1.8em;
    color: #078d66;
    margin-bottom: 30px;
    text-align: center;
}


/* FAQ аккордеон */
.faq-item {
    background: #ffffff;
    border: 1px solid #e6f3ef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #078d66;
    box-shadow: 0 2px 8px rgba(7, 141, 102, 0.1);
}

.faq-question {
    font-size: 1.1em;
    color: #046247;
    margin: 0;
    padding: 20px;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #078d66;
}

.faq-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: #078d66;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    height: auto;
    padding: 0 20px 20px 20px;
}

.faq-answer p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* Адаптив для SEO блоков */
@media (max-width: 768px) {
    .restoration-info,
    .faq-section {
        padding: 25px 20px;
        margin: 30px 15px;
    }
    
    .restoration-info h2,
    .faq-section h2 {
        font-size: 1.4em;
    }
    
    .restoration-info h3 {
        font-size: 1.1em;
    }
}


/* Секция примеров видео */
.video-example-item {
    border: 2px solid #e6f3ef;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    max-width: 450px;
    margin: 0 auto;
}

.video-example-item:hover {
    box-shadow: 0 6px 20px rgba(7, 141, 102, 0.15);
    transform: translateY(-3px);
}

.video-wrapper {
    position: relative;
    width: 100%;
    
    height: auto;
    
    background: #f5f5f5;
    overflow: hidden;
}

.example-video {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #000;
    display: block;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
    font-weight: 600;
    pointer-events: none;
}

.video-caption {
    padding: 15px;
    font-size: 0.9em;
    color: #555;
    text-align: center;
    line-height: 1.5;
    margin: 0;
    background: #fff;
}

/* Адаптивность для видео */
@media (max-width: 768px) {
    .video-wrapper {
        aspect-ratio: 3 / 2;
        height: auto;
    }
}

/* Скрыть placeholder когда видео загружено */
.example-video + .video-placeholder {
    display: none;
}
/* SEO блок для оживления */
.animation-info {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    line-height: 1.8;
}

.animation-info h2 {
    font-size: 1.8em;
    color: #078d66;
    margin-bottom: 20px;
}

.animation-info h3 {
    font-size: 1.3em;
    color: #046247;
    margin-top: 30px;
    margin-bottom: 15px;
}

.animation-info p {
    color: #555;
    margin-bottom: 15px;
}

.animation-info ul,
.animation-info ol {
    margin: 15px 0;
    padding-left: 25px;
}

.animation-info li {
    margin-bottom: 10px;
    color: #555;
}

.animation-info strong {
    color: #078d66;
    font-weight: 600;
}

.animation-info a {
    color: #078d66;
    text-decoration: none;
    font-weight: 600;
}

.animation-info a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .animation-info {
        padding: 25px 20px;
        margin: 30px 15px;
    }
    
    .animation-info h2 {
        font-size: 1.4em;
    }
    
    .animation-info h3 {
        font-size: 1.1em;
    }
}

/* ================================
   FOOTER STYLES
   ================================ */

.site-footer {
    background: #f8f8f8;
    padding: 50px 0 30px;
    margin-top: 80px;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 40px;
}

/* Логотип */
.footer-logo {
    flex-shrink: 0;
}

.footer-logo-img {
    height: 40px;
    width: auto;
}

/* Навигация */
.footer-nav {
    display: flex;
    gap: 80px;
    flex-grow: 1;
}

.footer-column {
    flex: 1;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.footer-menu li {
    margin-bottom: 15px;
    text-align: left;
}

.footer-menu a {
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    text-align: left;
}

.footer-menu a:hover {
    color: #078d66;
}


/* Кнопка контактов */
.footer-contact {
    flex-shrink: 0;
}

.footer-contact-btn {
    display: inline-block;
    padding: 14px 40px;
    background: #078d66;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
}

.footer-contact-btn:hover {
    background: #046247;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 141, 102, 0.3);
}

/* Copyright */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.copyright {
    color: #666;
    font-size: 14px;
    margin: 0;
    text-align: center;
}


/* Адаптивность */
@media (max-width: 1024px) {
    .footer-content {
        gap: 40px;
    }
    
    .footer-nav {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-logo {
        text-align: center;
    }
    
    .footer-contact {
        text-align: center;
    }
    
    .footer-contact-btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}
/* Модальное окно контактов */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.contact-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.contact-modal-close:hover {
    color: #FF6B00;
}

.contact-modal-title {
    font-size: 36px;
    font-weight: 700;
    color: #2D3E50;
    margin: 0 0 30px 0;
    text-align: center;
}

/* Форма */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-form-group .required {
    color: #FF6B00;
    margin-left: 2px;
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #ffffff;
}

.contact-form-group input:focus,
.contact-form-group select:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.contact-form-group select {
    cursor: pointer;
    appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-position: right 18px center;
    background-repeat: no-repeat;
    background-size: 12px 8px;
    padding-right: 45px;
}

.contact-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: #9CA3AF;
}

/* Кнопка отправки */
.contact-submit-btn {
    margin-top: 10px;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: #078d66;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
}

.contact-submit-btn:hover {
    background: #066d50;
}

.contact-submit-btn:active {
    transform: scale(0.98);
}

.contact-submit-btn:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
}

/* Сообщения */
.contact-form-message {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    margin-top: 10px;
    text-align: center;
}

.contact-form-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 2px solid #10B981;
}

.contact-form-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 2px solid #EF4444;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-modal-content {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    .contact-modal-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .contact-form {
        gap: 16px;
    }
    
    .contact-form-group input,
    .contact-form-group select,
    .contact-form-group textarea {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .contact-submit-btn {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* ============================================
   COOKIE NOTICE
   ============================================ */

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2D3748;
    color: #fff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.cookie-notice.show {
    transform: translateY(0);
}

.cookie-notice-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-notice-text {
    flex: 1;
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #E2E8F0;
    min-width: 300px;
}

.cookie-notice-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn-accept {
    background: #078d66;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept:hover {
    background: #066d50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 141, 102, 0.3);
}

.cookie-btn-policy {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.cookie-btn-policy:hover {
    background: #fff;
    color: #2D3748;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Адаптивность */
@media (max-width: 768px) {
    .cookie-notice {
        padding: 15px;
    }
    
    .cookie-notice-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-notice-text {
        font-size: 13px;
        min-width: auto;
        text-align: center;
    }
    
    .cookie-notice-buttons {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }
    
    .cookie-btn-accept,
    .cookie-btn-policy {
        font-size: 13px;
        padding: 10px 16px;
        text-align: center;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        min-width: 0;
    }
    
    
    .modal-content {
        padding: 20px 15px;
        max-width: 95%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    h1 {
        font-size: 20px;
        max-width: 100%;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .cookie-notice-text {
        font-size: 12px;
    }
    
    .cookie-btn-accept {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cookie-btn-policy {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Restoration card without background */
.service-card.restoration {
    background: #a30834;
    color: white;
    box-shadow: none;
}

.service-card.restoration h3,
.service-card.restoration p {
    color: white;
}

.service-card.restoration .restoration-features li {
    color: white;
}

.service-card.restoration:hover {
    box-shadow: none;
}

/* Restoration Features List */
.restoration-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    text-align: left;
}

.restoration-features li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    font-size: 1.05em;
    color: #333;
}

.restoration-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: #078d66;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.service-card.restoration h3 {
    font-size: 1.6em;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    }

@media (max-width: 768px) {
    }

/* Block B - Left card color */


/* Block B - Right card color */


/* Результат анимации - адаптивный размер */
.result-section .video-wrapper,
#result-wrapper {
    height: auto !important;
    max-height: none !important;
    background: transparent;
}

.result-section video,
#result-wrapper video {
    width: 100%;
    max-width: 640px;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

/* ===== Чекбоксы действий для анимации ===== */
.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.action-checkbox {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.action-checkbox:hover {
    border-color: #28a745;
    background: #f0fff4;
}

.action-checkbox input[type="checkbox"] {
    display: none;
}

.action-checkbox input[type="checkbox"]:checked + .action-label {
    font-weight: 600;
}

.action-checkbox:has(input:checked) {
    background: #d4edda;
    border-color: #28a745;
}

.action-checkbox.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.action-label {
    font-size: 13px;
    color: #333;
}

.actions-hint {
    font-size: 12px;
    color: #888;
    margin: 5px 0 0 0;
}

.text-field {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.text-field:focus {
    outline: none;
    border-color: #28a745;
}

.char-counter {
    font-size: 11px;
    color: #aaa;
    text-align: right;
    margin: 3px 0 0 0;
}

@media (max-width: 500px) {
    .actions-grid {
        grid-template-columns: 1fr 1fr;
    }
}


/* ===== Примеры работ - 2 столбика ===== */
.examples-grid.two-columns {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    max-width: 800px !important;
    margin: 0 auto !important;
}

.examples-grid.two-columns .video-example-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.examples-grid.two-columns .video-wrapper {
    height: auto !important;
    background: #000;
}

.examples-grid.two-columns .example-video {
    width: 100%;
    height: auto;
    display: block;
}

.examples-grid.two-columns .video-caption {
    padding: 12px 15px;
    margin: 0;
    font-size: 14px;
    color: #555;
    text-align: center;
    background: #f9f9f9;
}

@media (max-width: 600px) {
    .examples-grid.two-columns {
        grid-template-columns: 1fr !important;
    }
}

/* Центрирование описания примеров */
.examples-section .section-description {
    text-align: center;
}

/* ===== Секция "Как это работает" ===== */
.how-it-works-section {
    padding: 60px 20px;
    background: #f9fafb;
    text-align: center;
}

.how-it-works-section .section-label {
    display: block;
    color: #a30834;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.how-it-works-section .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 50px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    background: #fff;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #fce8ec;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .how-it-works-section .section-title {
        font-size: 28px;
    }
}

/* Mixed Examples Grid (Homepage) */
.examples-grid.mixed-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.examples-grid.mixed-examples .example-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.examples-grid.mixed-examples .example-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Video wrapper in mixed grid */
.examples-grid.mixed-examples .video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #f5f5f5;
    overflow: hidden;
}

.examples-grid.mixed-examples .example-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image comparison in mixed grid */
.examples-grid.mixed-examples .image-comparison {
    aspect-ratio: 3 / 2;
    height: auto;
}

/* Example type badge */
.example-type-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.example-type-badge.animation {
    background: #e0f2fe;
    color: #0277bd;
}

.example-type-badge.restoration {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Example description */
.examples-grid.mixed-examples .example-description {
    padding: 15px 20px 20px;
}

.examples-grid.mixed-examples .example-description h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.examples-grid.mixed-examples .example-description p {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 992px) {
    .examples-grid.mixed-examples {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .examples-grid.mixed-examples {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Кнопка "Пропустить" в popup */
.skip-btn {
    width: 90%;
    padding: 12px;
    background: transparent;
    color: #666;
    border: none;
    font-size: 14px;
    cursor: pointer;
    margin-top: 10px;
    text-decoration: underline;
}

.skip-btn:hover {
    color: #333;
}


.password-field input {
    width: 100%;
    padding-right: 45px;
}


/* Поле пароля с глазиком */
.password-field {
    position: relative;
    width: 100%;
    display: block;
}

.password-field input {
    width: 100%;
    padding-right: 45px !important;
    box-sizing: border-box;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 10;
}

.password-toggle:hover {
    color: #666;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.eye-icon,
.eye-off-icon {
    pointer-events: none;
}

/* Фикс для формы с паролем */
.auth-form .password-field {
    margin-bottom: 0;
}

.auth-form label + .password-field {
    margin-top: 0;
}

#email-login-form .password-field,
#add-email-form .password-field {
    max-width: 100%;
    overflow: hidden;
}

/* Фикс: одинаковые стили для password и text в password-field */
.auth-form .password-field input[type="password"],
.auth-form .password-field input[type="text"] {
    width: 90% !important;
    padding: 14px 45px 14px 16px !important;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    margin-bottom: 0;
    transition: all 0.3s;
    box-sizing: border-box;
}

.auth-form .password-field input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.auth-form .password-field {
    width: 80%;
    margin-bottom: 15px;
}

/* Popup добавления email - фиксы */
#addEmailModal .modal-title {
    text-align: center;
}

#addEmailModal .auth-description {
    text-align: center;
}

#addEmailModal .auth-form input[type="email"] {
    width: 80%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#addEmailModal .auth-form .password-field {
    width: 80%;
}

/* Валидация паролей - цвета рамок */
#add-password-confirm-input.valid {
    border-color: #27ae60 !important;
}

#add-password-confirm-input.invalid {
    border-color: #e74c3c !important;
}

/* Сообщение об ошибке - такой же размер как кнопка */
#phone-auth .error-message,
#phone-auth .success-message,
#phone-auth .error-message {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.95em;
    box-sizing: border-box;
    text-align: center;
    margin: 10px auto;
}


.logout-btn:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

/* Белый текст в правом блоке (featured-bottom) */


/* Выравнивание кнопок на одном уровне */
/* Исправление ширины сообщений об ошибках в формах авторизации */
.auth-content .error-message,
.auth-content .success-message,
.modal-body .error-message,
.modal-body .success-message {
    width: 80% !important;
    max-width: 100%;
    padding: 14px 20px !important;
    border-radius: 10px !important;
    font-size: 0.95em;
    box-sizing: border-box;
    text-align: center;
    margin: 10px auto !important;
    display: block;
}

.auth-content .error-message[style*="display: block"],
.auth-content .success-message[style*="display: block"] {
    display: block !important;
}

/* Исправление ширины сообщений в форме авторизации */
#phone-auth .auth-message,
#email-auth .auth-message,
.modal-body .auth-message {
    width: 90% !important;
    max-width: 90% !important;
    padding: 14px 20px !important;
    border-radius: 10px !important;
    font-size: 0.95em;
    box-sizing: border-box;
    text-align: center;
    margin: 10px 0 !important;
}

/* =========================================
   PAGE 27 – FIX MIXED EXAMPLES GRID
   ========================================= */

.examples-grid.mixed-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Карточка */
.examples-grid.mixed-examples .example-item {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.examples-grid.mixed-examples .example-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

/* === ОБЩАЯ ПРОПОРЦИЯ ДЛЯ ВИДЕО И СЛАЙДЕРА === */
.examples-grid.mixed-examples .video-wrapper,
.examples-grid.mixed-examples .image-comparison {
    aspect-ratio: 3 / 2;
    width: 100%;
    flex-shrink: 0;
}

/* Видео */
.examples-grid.mixed-examples .example-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Слайдер */
.examples-grid.mixed-examples .comparison-after,
.examples-grid.mixed-examples .comparison-before {
    background-size: cover;
    background-position: center;
}

/* Описание — фиксируем высоту */
.examples-grid.mixed-examples .example-description {
    padding: 18px 20px 22px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Заголовки */
.examples-grid.mixed-examples .example-description h3 {
    font-size: 16px;
    margin: 8px 0 6px;
}

/* Текст */
.examples-grid.mixed-examples .example-description p {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    margin: 0;
}

/* ===== АДАПТИВ ===== */

/* Планшет */
@media (max-width: 1024px) {
    .examples-grid.mixed-examples {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобилка */
@media (max-width: 640px) {
    .examples-grid.mixed-examples {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .examples-grid.mixed-examples .example-description {
        min-height: auto;
    }
}
.grecaptcha-badge {visibility: hidden;}


/* =========================================
   PAGE 35 – FIX EXAMPLES GRID (RESTORATION)
   ========================================= */

.examples-grid.restoration-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Карточка */
.examples-grid.restoration-examples .example-item {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.examples-grid.restoration-examples .example-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

/* Общая пропорция изображений */
.examples-grid.restoration-examples .image-comparison {
    aspect-ratio: 3 / 2;
    width: 100%;
    flex-shrink: 0;
}

/* Изображения */
.examples-grid.restoration-examples .comparison-after,
.examples-grid.restoration-examples .comparison-before {
    background-size: cover;
    background-position: center;
}

/* Описание — идентично page-27 */
.examples-grid.restoration-examples .example-description {
    padding: 18px 20px 22px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Заголовок */
.examples-grid.restoration-examples .example-description h3 {
    font-size: 16px;
    margin: 8px 0 6px;
}

/* Текст */
.examples-grid.restoration-examples .example-description p {
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    margin: 0;
}

/* ===== АДАПТИВ ===== */

/* Планшет */
@media (max-width: 1024px) {
    .examples-grid.restoration-examples {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобилка */
@media (max-width: 640px) {
    .examples-grid.restoration-examples {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .examples-grid.restoration-examples .example-description {
        min-height: auto;
    }
}
/* =========================================
   PAGE 36 – FIX VIDEO EXAMPLES GRID (3 COL)
   ========================================= */

.examples-grid.animation-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* ← 3 колонки на десктопе */
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Карточка */
.examples-grid.animation-examples .video-example-item {
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.examples-grid.animation-examples .video-example-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.15);
}

/* Видео — единая пропорция */
.examples-grid.animation-examples .video-wrapper {
    aspect-ratio: 3 / 2;
    width: 100%;
    flex-shrink: 0;
}

/* Видео */
.examples-grid.animation-examples .example-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Подпись */
.examples-grid.animation-examples .video-caption {
    padding: 18px 20px 22px;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    margin: 0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== АДАПТИВ ===== */

/* Планшет — 2 колонки */
@media (max-width: 1024px) {
    .examples-grid.animation-examples {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Мобилка — 1 колонка */
@media (max-width: 640px) {
    .examples-grid.animation-examples {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .examples-grid.animation-examples .video-caption {
        min-height: auto;
    }
}


/* ===== Share Buttons Inline ===== */
.share-buttons-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid #ddd;
}

.share-label-sm {
    color: #666;
    font-size: 14px;
    white-space: nowrap;
}

.share-btn-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, opacity 0.2s;
    text-decoration: none;
}

.share-btn-sm:hover {
    transform: scale(1.15);
    opacity: 0.9;
}

.share-btn-sm svg {
    width: 20px;
    height: 20px;
}

.share-btn-sm.share-vk {
    background: #4C75A3;
    color: white;
}

.share-btn-sm.share-ok {
    background: #EE8208;
    color: white;
}

.share-btn-sm.share-tg {
    background: #0088cc;
    color: white;
}

.share-btn-sm.share-wa {
    background: #25D366;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .share-buttons-inline {
        margin-left: 0;
        margin-top: 15px;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid #ddd;
        padding-top: 15px;
        justify-content: center;
        width: 100%;
    }
    
    .result-actions {
        flex-wrap: wrap;
    }
}

/* ===== Universal Share Button ===== */
.share-btn-universal {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.share-btn-universal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.share-btn-universal svg {
    flex-shrink: 0;
}

/* ===== Share Modal ===== */
.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.share-modal.show {
    display: flex;
}

.share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.share-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: shareModalIn 0.3s ease;
}

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

.share-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.share-modal-close:hover {
    background: #e0e0e0;
}

.share-modal-content h3 {
    margin: 0 0 20px;
    text-align: center;
    color: #333;
    font-size: 20px;
}

.share-modal-preview {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    max-height: 200px;
}

.share-modal-preview img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.share-modal-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.share-modal-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.share-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-modal-btn svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.share-modal-btn.share-vk {
    background: #4C75A3;
}

.share-modal-btn.share-ok {
    background: #EE8208;
}

.share-modal-btn.share-tg {
    background: #0088cc;
}

.share-modal-btn.share-wa {
    background: #25D366;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .share-modal-buttons {
        grid-template-columns: 1fr;
    }
    
    .share-modal-content {
        padding: 20px;
    }
}

/* ===== Unified Action Buttons (Mobile) ===== */
@media (max-width: 768px) {
    .result-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 0 20px;
    }
    
    .result-actions .download-btn,
    .result-actions .animate-btn,
    .result-actions .share-btn-universal {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        padding: 14px 24px;
        font-size: 16px;
        border-radius: 50px;
        box-sizing: border-box;
    }
    
    .result-actions .download-btn {
        background: #078d66;
    }
    
    .result-actions .animate-btn {
        background: #333;
    }
    
    .result-actions .share-btn-universal {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

/* ===== Animation Page - Unified Button Styles (Desktop & Mobile) ===== */

/* Базовые стили для всех кнопок результата */
#result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}

#result-actions .result-btn,
#result-actions .share-btn-universal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    min-width: 180px;
}

#result-actions .result-btn:hover,
#result-actions .share-btn-universal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Скачать видео - зелёная */
#result-actions .result-btn.btn-download,
#result-actions #download-video {
    background: linear-gradient(135deg, #078d66 0%, #0a9d74 100%);
    color: white;
}

/* Поделиться - фиолетовая */
#result-actions .share-btn-universal {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Реставрировать - белая с рамкой */
#result-actions .result-btn.btn-restore {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
}

/* Оживить фото - красная/бордовая */
#result-actions .result-btn.btn-animate {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
}

/* Кнопки ожидания - тот же стиль */
.waiting-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.waiting-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 180px;
}

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

.waiting-btn.btn-restore {
    background: white;
    color: #333;
    border: 2px solid #e0e0e0;
}

.waiting-btn.btn-animate {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%);
    color: white;
    border: none;
}

/* Мобильная версия */
@media (max-width: 768px) {
    #result-actions {
        flex-direction: column;
        align-items: center;
        padding: 20px 15px;
    }
    
    #result-actions .result-btn,
    #result-actions .share-btn-universal {
        width: 100%;
        max-width: 300px;
    }
    
    .waiting-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .waiting-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ===== Animation Page - Override Fix ===== */

/* Принудительные стили для всех кнопок */
.result-section #result-actions .result-btn,
.result-section #result-actions .share-btn-universal,
#result-actions a.result-btn,
#result-actions button.share-btn-universal {
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Специфичные цвета */
#result-actions a.result-btn.btn-download {
    background: linear-gradient(135deg, #078d66 0%, #0a9d74 100%) !important;
    color: white !important;
    border: none !important;
}

#result-actions a.result-btn.btn-restore {
    background: white !important;
    color: #333 !important;
    border: 2px solid #e0e0e0 !important;
}

#result-actions a.result-btn.btn-animate {
    background: linear-gradient(135deg, #8B0000 0%, #A52A2A 100%) !important;
    color: white !important;
    border: none !important;
}

/* Видео результата - не обрезать */
.result-section #result-wrapper,
#result-wrapper.video-wrapper {
    background: transparent !important;
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

#result-wrapper video,
.result-section video {
    width: 100% !important;
    height: auto !important;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
}

/* Мобильные фиксы для видео */
@media (max-width: 768px) {
    #result-wrapper {
        margin: 15px 10px;
    }
    
    #result-wrapper video {
        border-radius: 10px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }
}

/* ===== Animation Page - Mobile Buttons Full Width ===== */
@media (max-width: 768px) {
    #result-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        padding: 20px 15px !important;
        width: 100% !important;
    }
    
    #result-actions .result-btn,
    #result-actions .share-btn-universal,
    #result-actions a,
    #result-actions button {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 14px 24px !important;
        border-radius: 50px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        box-sizing: border-box !important;
    }
}
/* ===== Result Actions - Hidden by Default ===== */
#result-actions {
    display: none !important;
}

#result-actions.visible {
    display: flex !important;
}

/* ===== Auth Modal Mobile Fixes ===== */
@media (max-width: 500px) {
    .modal-content {
        padding: 25px 20px;
        max-height: 90vh;
        overflow-y: auto;
        margin: 10px;
        border-radius: 12px;
    }
    
    .auth-modal {
        max-width: 100%;
        margin: 0;
    }
    
    .auth-modal h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }
    
    .auth-tabs {
        margin-bottom: 15px;
    }
    
    .auth-tab {
        padding: 10px 12px;
        font-size: 0.85em;
    }
    
    .auth-description {
        font-size: 0.85em;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .auth-form input[type="tel"],
    .auth-form input[type="email"],
    .auth-form input[type="password"] {
        padding: 12px 14px;
        font-size: 0.95em;
        margin-bottom: 10px;
    }
    
    .checkbox-container {
        margin: 12px 0;
    }
    
    .checkbox-container span {
        font-size: 0.8em;
        line-height: 1.4;
    }
    
    .checkbox-container input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-right: 8px;
    }
    
    .auth-btn {
        padding: 12px 20px;
        font-size: 0.95em;
    }
    
    .auth-note {
        margin-top: 12px;
        font-size: 0.85em;
    }
    
    .code-inputs {
        gap: 8px;
        margin: 15px 0;
    }
    
    .code-input {
        width: 45px !important;
        height: 45px;
        font-size: 1.3em;
    }
    
    .close {
        top: 10px;
        right: 15px;
        font-size: 20px;
    }
}

/* Result Actions - 2 rows layout */
#result-actions .result-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

#result-actions .result-row:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    #result-actions .result-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* Equal size buttons in row 1 */
#result-actions .result-row-1 .result-btn,
#result-actions .result-row-1 .share-btn-universal {
    min-width: 200px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
}

/* ===== Reviews Section - New Design ===== */
.reviews-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 20px;
    margin: 40px 0;
}

.reviews-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: #333;
}

.reviews-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

/* Before/After для реставрации */
.review-media.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.ba-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.ba-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-label {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4a7dff 0%, #6b5ce7 100%);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Video для анимации */
.review-media.video-media {
    aspect-ratio: 1;
    overflow: hidden;
}

.review-media.video-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Контент отзыва */
.review-content {
    padding: 20px;
}

.review-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.review-badge.restoration {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.review-badge.animation {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    font-style: italic;
}

.review-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.author-location {
    color: #888;
    font-size: 13px;
}

/* Mobile */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .reviews-section h2 {
        font-size: 1.5rem;
    }
    
    .review-text {
        font-size: 14px;
    }
}

/* ===== Reviews Carousel ===== */
.reviews-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 50px;
}

.reviews-carousel {
    overflow: hidden;
    width: 100%;
    border-radius: 16px;
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease;
}

.reviews-track .review-card {
    min-width: 100%;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 18px;
    color: #333;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: #4a7dff;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev-btn {
    left: 0;
}

.carousel-btn.next-btn {
    right: 0;
}

.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.review-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.review-dot.active {
    background: linear-gradient(135deg, #4a7dff 0%, #6b5ce7 100%);
    transform: scale(1.2);
}

.review-dot:hover {
    background: #999;
}

/* Mobile carousel */
@media (max-width: 768px) {
    .reviews-carousel-wrapper {
        padding: 0 40px;
    }
    
    .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Review card - vertical layout (image top, text bottom) */
.review-card {
    display: flex;
    flex-direction: column;
}

.review-media {
    width: 100%;
}

.review-media.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.ba-image {
    aspect-ratio: 1;
}

.review-media.video-media {
    aspect-ratio: 4/3;
}

.review-content {
    width: 100%;
    padding: 25px;
}

/* ================================================
   НОВЫЙ ДИЗАЙН HERO - Карточки услуг (Figma)
   ================================================ */

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.hero-title .highlight {
    color: #078d66;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.service-card-new {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    position: relative;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon-new {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon-new.green {
    background: linear-gradient(135deg, #078d66 0%, #05a676 100%);
}

.service-icon-new.red {
    background: linear-gradient(135deg, #e85a6b 0%, #ff7b8a 100%);
}

.service-card-new h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.service-card-new > p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-price-new {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.service-price-new .price-leaf {
    width: 20px;
    height: 20px;
}

.service-price-new strong {
    font-weight: 700;
    color: #1a1a1a;
}

.service-link {
    color: #078d66;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.service-link:hover {
    color: #056b4e;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #078d66;
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Декоративные элементы как на скриншоте */
.service-card-new::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}

.service-card-new:first-child::before {
    background: #078d66;
    top: -20px;
    left: -20px;
}

.service-card-new:last-child::before {
    background: #e85a6b;
    top: -20px;
    right: -20px;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .services-grid-new {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .service-card-new {
        padding: 25px;
    }
}


/* ================================================
   FIGMA ДИЗАЙН - Hero секция и карточки услуг
   ================================================ */

/* Hero заголовок */
.hero-header {
    text-align: center;
    margin-bottom: 48px;
}

.hero-title-new {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #111827;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero-title-gradient {
    display: block;
    background: linear-gradient(to right, #006341, #00875a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-new {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Сетка карточек */
.services-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto 48px;
}

/* Карточка услуги */
.service-card-figma {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    text-decoration: none;
    display: block;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card-figma:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.service-card-figma:hover .card-bg-circle {
    transform: translate(64px, -64px) scale(1.5);
}

.service-card-figma:hover .card-icon {
    transform: scale(1.1);
}

.service-card-figma:hover .card-link {
    transform: translateX(4px);
}

/* Декоративный круг */
.card-bg-circle {
    position: absolute;
    top: 0;
    right: 0;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    transform: translate(64px, -64px);
    transition: transform 0.5s ease;
}

.card-bg-circle.green {
    background: linear-gradient(to bottom right, #dcfce7, #d1fae5);
}

.card-bg-circle.red {
    background: linear-gradient(to bottom right, #fee2e2, #fce7f3);
}

/* Badge Популярное */
.card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(to right, #a30834, #c9184a);
    color: #fff;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

/* Контент карточки */
.card-content {
    position: relative;
    z-index: 1;
}

/* Иконка */
.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.card-icon.green {
    background: linear-gradient(to bottom right, #006341, #00875a);
}

.card-icon.red {
    background: linear-gradient(to bottom right, #a30834, #c9184a);
}

/* Заголовок карточки */
.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

/* Описание */
.card-description {
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.6;
    font-size: 1rem;
}

/* Футер карточки */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

/* Цена */
.card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-leaf-wrap {
    background: #f0fdf4;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-leaf-icon {
    width: 16px;
    height: 16px;
}

.price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.price-label {
    color: #4b5563;
    font-size: 1rem;
}

/* Ссылка */
.card-link {
    color: #006341;
    font-weight: 600;
    transition: transform 0.3s ease;
}

/* ================================================
   Мобильная адаптация
   ================================================ */
@media (max-width: 768px) {
    .hero-title-new {
        font-size: 2.25rem;
    }
    
    .hero-subtitle-new {
        font-size: 1rem;
    }
    
    .services-cards-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }
    
    .service-card-figma {
        padding: 24px;
    }
    
    .card-icon {
        width: 56px;
        height: 56px;
    }
    
    .card-title {
        font-size: 1.25rem;
    }
}


/* ================================================
   Блок "Почему выбирают нас"
   ================================================ */

.why-us-section {
    padding: 80px 0;
    background: #fff;
}

.why-us-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 48px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.why-us-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.why-us-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-us-icon.green {
    background: #f0fdf4;
    color: #006341;
}

.why-us-icon.red {
    background: #fef2f2;
    color: #a30834;
}

.why-us-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.why-us-card p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* Мобильная адаптация */
@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .why-us-section {
        padding: 60px 20px;
    }
    
    .why-us-title {
        font-size: 2rem;
    }
}


/* ================================================
   НОВАЯ СТРАНИЦА ТАРИФОВ (по макету Figma)
   ================================================ */

.pricing-page-new {
    padding: 40px 0 80px;
    background: #f8fafb;
}

/* Заголовок с рейтингом */
.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.pricing-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6b7280;
    font-size: 0.95rem;
}

.pricing-rating .stars {
    color: #fbbf24;
}

.pricing-rating .rating-value {
    font-weight: 600;
    color: #111827;
}

.pricing-rating .divider {
    color: #d1d5db;
}

/* Баннер подарка */
.gift-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 20px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.2);
}

.gift-icon {
    flex-shrink: 0;
}

.gift-icon img {
    width: 64px;
    height: 64px;
}

.gift-content {
    flex: 1;
}

.gift-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 4px;
}

.gift-content p {
    color: #78350f;
    margin-bottom: 8px;
}

.gift-tags {
    display: flex;
    gap: 16px;
}

.gift-tag {
    font-size: 0.875rem;
    color: #92400e;
}

.gift-btn {
    background: linear-gradient(135deg, #006341 0%, #00875a 100%);
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.gift-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 99, 65, 0.3);
}

.gift-btn.disabled {
    background: #9ca3af;
    cursor: default;
}

/* Сетка карточек (4 в ряд) */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* Карточка тарифа */
.pricing-card-new {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card-new:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pricing-card-new.highlighted {
    border-color: #006341;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}

.pricing-card-new.featured {
    border-color: #006341;
    background: #fff;
}

/* Лейблы */
.card-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.card-label.right {
    color: #006341;
}

.discount-badge-new {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #006341;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.hit-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #006341 0%, #00875a 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Количество листиков */
.card-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.card-amount .amount-number {
    font-size: 3rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.card-amount.green .amount-number {
    color: #006341;
}

.card-amount .amount-leaf {
    width: 32px;
    height: 32px;
}

/* Цена */
.card-price-value {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 16px;
}

.card-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-subtitle span {
    color: #9ca3af;
}

.card-price-block {
    margin-bottom: 16px;
}

.old-price-new {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    display: block;
}

.new-price-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: #006341;
}

.card-ideal {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 12px;
}

/* Фичи */
.card-features {
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #374151;
}

.feature-item small {
    display: block;
    color: #9ca3af;
    font-size: 0.75rem;
}

.feature-icon {
    width: 16px;
    height: 16px;
}

.feature-divider {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 8px 0;
}

.plus-icon {
    color: #006341;
    font-weight: 600;
}

/* Кнопки карточек */
.card-btn {
    display: block;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.card-btn.outline {
    background: #fff;
    border: 2px solid #e5e7eb;
    color: #374151;
}

.card-btn.outline:hover {
    border-color: #006341;
    color: #006341;
}

.card-btn.primary {
    background: linear-gradient(135deg, #006341 0%, #00875a 100%);
    color: #fff;
    border: none;
}

.card-btn.primary:hover {
    box-shadow: 0 8px 20px rgba(0, 99, 65, 0.3);
}

.card-btn.dark {
    background: #1f2937;
    color: #fff;
    border: none;
}

.card-btn.dark:hover {
    background: #111827;
}

/* Большие пакеты (горизонтальные строки) */
.pricing-large-packages {
    margin-bottom: 32px;
}

.large-package-row {
    background: #fff;
    border-radius: 16px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.large-package-row:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.package-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
}

.package-amount .big-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
}

.package-amount .package-leaf {
    width: 24px;
    height: 24px;
}

.package-amount .package-label {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 8px;
    border-radius: 6px;
}

.package-features {
    flex: 1;
    font-size: 0.9rem;
    color: #6b7280;
}

.package-features .or {
    margin: 0 8px;
    color: #9ca3af;
}

.package-price {
    text-align: right;
    min-width: 120px;
}

.package-price .old {
    font-size: 0.875rem;
    color: #9ca3af;
    text-decoration: line-through;
    display: block;
}

.package-price .new {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.package-discount {
    background: #dcfce7;
    color: #166534;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
}

.package-btn {
    background: linear-gradient(135deg, #006341 0%, #00875a 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.package-btn:hover {
    box-shadow: 0 8px 20px rgba(0, 99, 65, 0.3);
    transform: translateY(-2px);
}

/* Блок оплаты */
.payment-info-block {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 48px;
    border: 1px solid #e5e7eb;
}

.payment-guarantee {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
}

.payment-methods-new {
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-logo {
    height: 32px;
}

.payment-icons {
    display: flex;
    gap: 8px;
}

.pay-icon {
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
}

.pay-icon.mir { background: #4cb649; color: #fff; }
.pay-icon.sbp { background: #fff; border: 1px solid #e5e7eb; }
.pay-icon.tbank { background: #ffdd2d; color: #333; }
.pay-icon.yoo { background: #8b3ffd; color: #fff; }
.pay-icon.mc { background: #eb001b; color: #fff; }
.pay-icon.visa { background: #1a1f71; color: #fff; }

/* FAQ новый стиль */
.faq-section-new {
    max-width: 900px;
    margin: 0 auto;
}

.faq-section-new h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 32px;
}

.faq-section-new .faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.faq-section-new .faq-question {
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.faq-section-new .faq-question:hover {
    background: #f9fafb;
}

.faq-section-new .faq-arrow {
    font-size: 0.75rem;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.faq-section-new .faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-section-new .faq-answer {
    display: none;
    padding: 0 24px 20px;
    color: #6b7280;
    line-height: 1.6;
}

.faq-section-new .faq-item.active .faq-answer {
    display: block;
}

/* Мобильная адаптация */
@media (max-width: 1024px) {
    .pricing-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pricing-page-new {
        padding: 20px 16px 60px;
    }
    
    .gift-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .gift-tags {
        flex-direction: column;
        gap: 4px;
    }
    
    .pricing-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .large-package-row {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .package-amount {
        min-width: 100%;
    }
    
    .package-features {
        width: 100%;
    }
    
    .payment-info-block {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .payment-icons {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ================================================
   FIGMA ТАРИФЫ - Финальный дизайн
   ================================================ */

.pricing-figma {
    padding: 40px 0 80px;
    background: #F9FAFB;
    min-height: 100vh;
}

/* Header */
.pricing-figma-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-figma-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 16px;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.rating-badge .stars { color: #facc15; font-size: 14px; letter-spacing: 1px; }
.rating-badge .score { font-weight: 700; color: #111827; }
.rating-badge .divider { color: #d1d5db; }
.rating-badge .count { color: #6b7280; font-size: 14px; }

/* Gift Banner */
.gift-banner-figma {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 20px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gift-banner-figma .gift-icon {
    font-size: 56px;
    flex-shrink: 0;
}

.gift-banner-figma .gift-text { flex: 1; }
.gift-banner-figma .gift-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 4px;
}
.gift-banner-figma .gift-text p {
    color: #78350f;
    margin-bottom: 8px;
    font-size: 15px;
}
.gift-banner-figma .gift-text strong { color: #1f2937; }
.gift-banner-figma .gift-tags {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #92400e;
}

.gift-btn-figma {
    background: #078d66;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.gift-btn-figma:hover {
    background: #006c48;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(7,141,102,0.3);
}
.gift-btn-figma.disabled {
    background: #9ca3af;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Pricing Cards Grid */
.pricing-cards-figma {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto 32px;
    align-items: stretch;
}

/* Price Card */
.price-card-figma {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    border: 2px solid #e5e7eb;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

.price-card-figma:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.price-card-figma.highlighted {
    border-color: #078d66;
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 50%);
}

.price-card-figma.popular {
    border-color: #078d66;
    border-width: 2px;
    box-shadow: 0 20px 40px rgba(7,141,102,0.15);
    transform: translateY(-8px);
    z-index: 2;
}

.price-card-figma.popular:hover {
    transform: translateY(-12px);
}

/* Badges */
.card-badge {
    position: absolute;
    top: 0;
    left: 0;
    padding: 8px 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 0 0 12px 0;
    border-top-left-radius: 22px;
}

.card-badge.gray { background: #f3f4f6; color: #6b7280; }
.card-badge.green { background: #dcfce7; color: #166534; }
.card-badge.green.right { left: auto; right: 0; border-radius: 0 0 0 12px; border-top-right-radius: 22px; }

.card-badge-corner {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}
.card-badge-corner.green { background: #078d66; color: #fff; }

.card-badge-top {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.card-badge-top.gold { background: #facc15; color: #1f2937; }

/* Credits */
.card-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    margin-bottom: 8px;
}

.price-card-figma.popular .card-credits { margin-top: 24px; }

.card-credits .num {
    font-size: 48px;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}

.card-credits .num.big { font-size: 64px; }
.card-credits.green .num { color: #078d66; }

.card-credits .leaf { width: 28px; height: 28px; }
.card-credits .leaf.big { width: 36px; height: 36px; }

/* Price */
.card-price {
    font-size: 20px;
    color: #6b7280;
    margin-bottom: 16px;
}
.card-price.big { font-size: 28px; color: #078d66; font-weight: 700; }

.card-subtitle {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
}
.card-subtitle .muted { color: #9ca3af; }

.card-price-block { margin-bottom: 16px; }
.card-price-block .old {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    display: block;
}
.card-price-block .new {
    font-size: 24px;
    font-weight: 700;
    color: #078d66;
}

.card-ideal {
    font-size: 11px;
    font-weight: 600;
    color: #078d66;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

/* Features Box */
.card-features-box {
    background: #f9fafb;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-features-box.green {
    background: #ecfdf5;
    border: 1px solid #d1fae5;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #374151;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row .f-icon { width: 18px; height: 18px; flex-shrink: 0; }

.feature-row strong { display: block; font-weight: 600; color: #111827; }
.feature-row small { display: block; font-size: 12px; color: #078d66; }

.feature-row.plus {
    padding-top: 12px;
    border-top: 1px solid #d1fae5;
    margin-top: 12px;
}

.feature-row .plus-sign {
    width: 18px;
    text-align: center;
    font-weight: 700;
    color: #078d66;
    font-size: 18px;
}

.feature-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
}

.feature-divider::before,
.feature-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* Card Buttons */
.card-btn-figma {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    margin-top: auto;
}

.card-btn-figma.outline {
    background: #fff;
    border: 2px solid #e5e7eb;
    color: #374151;
}
.card-btn-figma.outline:hover {
    border-color: #078d66;
    color: #078d66;
}

.card-btn-figma.primary {
    background: #078d66;
    color: #fff;
    border: none;
}
.card-btn-figma.primary:hover {
    background: #006c48;
    box-shadow: 0 8px 20px rgba(7,141,102,0.3);
}

.card-btn-figma.dark {
    background: #1f2937;
    color: #fff;
    border: none;
}
.card-btn-figma.dark:hover {
    background: #111827;
}

/* Wholesale Plans */
.wholesale-plans-figma {
    max-width: 1000px;
    margin: 0 auto 32px;
}

.wholesale-row {
    background: #fff;
    border-radius: 16px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.wholesale-row:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.ws-credits {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.ws-num {
    font-size: 40px;
    font-weight: 800;
    color: #111827;
}

.ws-leaf { width: 24px; height: 24px; }

.ws-label {
    font-size: 12px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 6px;
}

.ws-features {
    flex: 1;
    font-size: 14px;
    color: #6b7280;
}

.ws-features .or {
    margin: 0 8px;
    color: #9ca3af;
}

.ws-price {
    text-align: right;
    min-width: 100px;
}

.ws-price .old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
    display: block;
}

.ws-price .new {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.ws-discount {
    background: #dcfce7;
    color: #166534;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.ws-btn {
    background: #078d66;
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.ws-btn:hover {
    background: #006c48;
    box-shadow: 0 8px 20px rgba(7,141,102,0.3);
}

/* Payment Security */
.payment-security-figma {
    max-width: 800px;
    margin: 0 auto 48px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e5e7eb;
}

.security-text {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6b7280;
    font-size: 14px;
}

.security-text svg { color: #9ca3af; }

.payment-methods-figma {
    display: flex;
    gap: 8px;
}

.pm {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}

.pm.mir { background: #4ade80; color: #fff; }
.pm.sbp { background: #fff; border: 1px solid #e5e7eb; color: #374151; }
.pm.tbank { background: #facc15; color: #1f2937; }
.pm.yoomoney { background: #8b5cf6; color: #fff; }
.pm.mc { background: #ef4444; color: #fff; }
.pm.visa { background: #1e3a8a; color: #fff; }

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

.faq-figma h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 32px;
}

.faq-item-figma {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.faq-item-figma .faq-q {
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item-figma .faq-q:hover { background: #f9fafb; }

.faq-item-figma .arrow {
    font-size: 12px;
    color: #9ca3af;
    transition: transform 0.3s;
}

.faq-item-figma.active .arrow { transform: rotate(180deg); }

.faq-item-figma .faq-a {
    display: none;
    padding: 0 24px 20px;
    color: #6b7280;
    line-height: 1.6;
    font-size: 14px;
}

.faq-item-figma.active .faq-a { display: block; }

/* Mobile */
@media (max-width: 1024px) {
    .pricing-cards-figma {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .price-card-figma.popular {
        transform: none;
    }
}

@media (max-width: 768px) {
    .pricing-figma { padding: 20px 16px 60px; }
    
    .gift-banner-figma {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .gift-banner-figma .gift-tags {
        flex-direction: column;
        gap: 4px;
    }
    
    .pricing-cards-figma {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .price-card-figma.popular {
        order: -1;
    }
    
    .wholesale-row {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .ws-credits { min-width: 100%; }
    .ws-features { width: 100%; }
    
    .payment-security-figma {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .payment-methods-figma {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* ================================================
   FIGMA HOME PAGE - ТОЧНАЯ КОПИЯ
   ================================================ */

/* Hero Section */
.hero-figma {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 16px 64px;
}

@media (min-width: 1024px) {
    .hero-figma {
        padding: 80px 32px;
    }
}

.hero-header-figma {
    text-align: center;
    margin-bottom: 48px;
}

.hero-title-figma {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .hero-title-figma { font-size: 3rem; }
}

@media (min-width: 1024px) {
    .hero-title-figma { font-size: 3.75rem; }
}

.hero-gradient-text {
    display: block;
    background: linear-gradient(to right, #006341, #00875a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle-figma {
    font-size: 1.25rem;
    color: #4b5563;
    max-width: 672px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Service Cards Grid */
.service-cards-figma {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1024px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .service-cards-figma {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Service Card */
.service-card-f {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    border: 1px solid #f3f4f6;
    text-decoration: none;
    display: block;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: left;
}

.service-card-f:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.service-card-f:hover .card-bg-decoration {
    transform: translate(64px, -64px) scale(1.5);
}

.service-card-f:hover .card-icon-f {
    transform: scale(1.1);
}

.service-card-f:hover .card-link-f {
    transform: translateX(4px);
}

/* Background Decoration Circle */
.card-bg-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    transform: translate(64px, -64px);
    transition: transform 0.5s ease;
}

.card-bg-decoration.green {
    background: linear-gradient(to bottom right, #dcfce7, #d1fae5);
}

.card-bg-decoration.red {
    background: linear-gradient(to bottom right, #fee2e2, #fce7f3);
}

/* Badge */
.card-badge-f {
    position: absolute;
    top: 24px;
    right: 24px;
    background: linear-gradient(to right, #a30834, #c9184a);
    color: #fff;
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Card Inner */
.card-inner {
    position: relative;
    z-index: 1;
}

/* Card Icon */
.card-icon-f {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card-icon-f.green {
    background: linear-gradient(to bottom right, #006341, #00875a);
}

.card-icon-f.red {
    background: linear-gradient(to bottom right, #a30834, #c9184a);
}

/* Card Title */
.card-title-f {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

/* Card Description */
.card-desc-f {
    color: #4b5563;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* Card Footer */
.card-footer-f {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid #f3f4f6;
}

/* Card Price */
.card-price-f {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-leaf-circle {
    background: #f0fdf4;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.price-text {
    color: #4b5563;
}

/* Card Link */
.card-link-f {
    color: #006341;
    font-weight: 600;
    transition: transform 0.3s ease;
}

/* Trial Banner */
.trial-banner-figma {
    max-width: 1024px;
    margin: 32px auto 0;
    background: linear-gradient(to right, #fffbeb, #fff7ed);
    border: 2px solid #fcd34d;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .trial-banner-figma {
        flex-direction: column;
        text-align: center;
    }
}

.trial-icon {
    flex-shrink: 0;
}

.trial-icon-box {
    background: linear-gradient(to bottom right, #f59e0b, #f97316);
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.trial-content {
    flex: 1;
}

.trial-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.trial-content p {
    color: #374151;
    margin: 0;
}

.trial-btn {
    background: linear-gradient(to right, #006341, #00875a);
    color: #fff;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-block;
}

.trial-btn:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: scale(1.05);
}

.trial-btn.disabled {
    background: #9ca3af;
    cursor: default;
    transform: none;
}

/* How It Works */
.how-it-works-figma {
    background: #fff;
    padding: 64px 16px;
}

@media (min-width: 1024px) {
    .how-it-works-figma {
        padding: 96px 32px;
    }
}

.section-header-f {
    text-align: center;
    margin-bottom: 64px;
}

.section-header-f h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

@media (min-width: 1024px) {
    .section-header-f h2 {
        font-size: 2.25rem;
    }
}

.section-header-f p {
    font-size: 1.125rem;
    color: #4b5563;
    max-width: 768px;
    margin: 0 auto;
}

/* Steps Grid */
.steps-grid-f {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1024px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps-grid-f {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.step-icon-f {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.step-icon-f.green {
    background: linear-gradient(to bottom right, #f0fdf4, #ecfdf5);
}

.step-icon-f.red {
    background: linear-gradient(to bottom right, #fef2f2, #fce7f3);
}

.step-num-f {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #fff;
    font-weight: 700;
}

.step-num-f.green { background: #006341; }
.step-num-f.red { background: #a30834; }

.step-item-f h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.step-item-f p {
    color: #4b5563;
    line-height: 1.6;
}

/* Examples Section */
.examples-figma {
    background: #fff;
    padding: 64px 16px;
}

.examples-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1024px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .examples-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.example-card-f {
    background: #f3f4f6;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.example-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 14px;
}

/* Advantages Section */
.advantages {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px;
}

@media (min-width: 1024px) {
    .advantages {
        padding: 32px 32px;
    }
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1024px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .advantages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.advantage-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border: 1px solid #f3f4f6;
}

.advantage-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.advantage-icon.green { background: #f0fdf4; }
.advantage-icon.red { background: #fef2f2; }

.advantage-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}

.advantage-card p {
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* CTA Section */
.cta-figma {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 16px;
}

.cta-box-f {
    background: linear-gradient(to bottom right, #006341, #00875a);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .cta-box-f {
        padding: 64px;
    }
}

.cta-decoration-1,
.cta-decoration-2 {
    position: absolute;
    width: 256px;
    height: 256px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.cta-decoration-1 {
    top: 0;
    right: 0;
    transform: translate(128px, -128px);
}

.cta-decoration-2 {
    bottom: 0;
    left: 0;
    transform: translate(-128px, 128px);
}

.cta-content-f {
    position: relative;
    z-index: 1;
}

.cta-content-f h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

@media (min-width: 1024px) {
    .cta-content-f h2 {
        font-size: 2.25rem;
    }
}

.cta-content-f p {
    font-size: 1.25rem;
    color: #dcfce7;
    margin-bottom: 32px;
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-f {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.cta-btn-f {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn-f:hover {
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    transform: scale(1.05);
}

.cta-btn-f.white {
    background: #fff;
    color: #006341;
}

.cta-btn-f.red {
    background: #a30834;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.2);
}

.cta-btn-f.red:hover {
    background: #8a0629;
}


/* Fix: CTA блоки на мобильных - один под другим */
@media (max-width: 768px) {
    .services-grid.services-align {
        flex-direction: column;
        gap: 20px;
    }
    
    .services-grid.services-align .service-card {
        width: 100%;
    }
}

/* Fix: CTA карточки на мобильных - вмещаются в экран */
@media (max-width: 768px) {
    .services-grid.services-align .service-card {
        max-width: 100%;
        box-sizing: border-box;
        padding: 24px 20px;
        margin: 0;
    }
    
    .services-grid.services-align .service-card h3 {
        font-size: 1.4rem;
        word-wrap: break-word;
    }
    
    .services-grid.services-align .service-card ul,
    .services-grid.services-align .service-card p {
        font-size: 0.95rem;
        padding-right: 0;
    }
    
    .services-grid.services-align {
        padding: 0 16px;
        margin: 40px 0;
    }
}

/* Кнопка "Меню" вместо бургера */
.mobile-menu-toggle .menu-text {
    font-size: 16px;
    font-weight: 600;
    color: #078d66;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-menu-toggle {
    height: auto !important;
    padding: 8px 16px !important;
    border: 2px solid #078d66 !important;
    border-radius: 8px !important;
    background: transparent !important;
}

.mobile-menu-toggle:hover {
    background: #078d66 !important;
}

.mobile-menu-toggle:hover .menu-text {
    color: #fff;
}

/* Fix: Кнопка Меню - полностью видна */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        min-width: auto !important;
        width: auto !important;
        white-space: nowrap !important;
        overflow: visible !important;
        padding: 6px 12px !important;
    }
    
    .mobile-menu-toggle .menu-text {
        font-size: 14px !important;
        display: block !important;
    }
}

/* Fix: CTA карточки одинаковой высоты */
.services-grid.services-align {
    display: flex;
    align-items: stretch;
}

.services-grid.services-align .service-card {
    flex: 1;
    min-height: 100%;
}

.services-grid.services-align .service-card.restoration,
.services-grid.services-align .service-card.animation {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
