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

/*
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 .kol_kristall {
    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: 600px;
    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: 600px;
    margin: 0 auto;
    position: relative;
}

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

.photo-preview {
    max-width: 100%;
    max-height: 400px;
    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: 600px;
    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: 100%;
    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;
}

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

	.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;
	}

/* ПРИМЕР ИЗМЕНЕНИЯ ЦВЕТА (Добавь это в самый конец файла, чтобы перебить старые стили) */
:root {
    --primary-color: #078d66; /* Твой "Солнечный" цвет вместо оранжевого */
}

.action-button, .upload-btn {
    background-color: var(--primary-color) !important;
}
/* Реставрация - дополнительные стили */
.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: 30px;
    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: 600px;
    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-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: 30px;
}

.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: 30px;
    }
}

/* Личный кабинет */
.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: 30px;
}

.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;
    grid-template-columns: repeat(2, 1fr);
    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: 30px;
    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 {
    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;
}

.price-amount {
    display: flex;
    align-items: center;
    justify-content: center;
}
.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: 1400px;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    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%;
    height: 400px;
    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;
}

.comparison-before {
    width: 50%;
    overflow: hidden;
    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: 30px;
    }
}

@media (max-width: 768px) {
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .image-comparison {
        height: 300px;
    }
}

/* 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);
}

.image-comparison {
    height: 400px !important;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.comparison-before,
.comparison-after {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    font-weight: bold;
    color: rgba(255,255,255,0.3);
}

.comparison-before {
    left: 0;
    width: 100%;
    background: #9E9E9E;
}

.comparison-before::before {
    content: 'ДО';
    z-index: 1;
}

.comparison-after {
    right: 0;
    width: 100%;
    background: #83c6b2;
}

.comparison-after::before {
    content: 'ПОСЛЕ';
    z-index: 1;
}

@media (max-width: 768px) {
    .image-comparison {
        height: 300px !important;
        min-height: 300px;
    }
}

/* 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: 500px;
    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: 400px;
    background: #f5f5f5;
    overflow: hidden;
}

.example-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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 {
        height: 300px;
    }
}

/* Скрыть placeholder когда видео загружено */
video[src]:not([src=""]) + .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: 30px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
    
    .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: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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-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-repeat: no-repeat;
    background-position: right 18px center;
    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;
    }
}

/* Кнопка контактов в footer */
.footer-contact-btn {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #4CAF50;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
}

.footer-contact-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.footer-contact-btn:active {
    transform: translateY(0);
}

/* ============================================
   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;
    }
}

.grecaptcha-badge { transform: scale(0.5) !important; transform-origin: 0 0 !important; }
