html {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* Дополнительный reset для убирания белых полей */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  overflow-x: hidden;
}

/*
  Modern Financial Offers Landing Page Style
  Designer: Gemini Pro, 2025
*/

/* 1. Variables & Base */
:root {
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --background-color: #f8f9fa; /* Light gray, almost white */
    --text-color: #212529; /* Dark, almost black */
    --primary-color: #005cff; /* A vibrant, trustworthy blue */
    --primary-hover-color: #004ccc;
    --card-background: #ffffff;
    --card-border-color: #e9ecef;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
    --card-hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --approval-high: #198754; /* Green */
    --approval-medium: #ffc107; /* Orange/Yellow */
    --approval-low: #dc3545; /* Red */
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.site-content {
    flex-grow: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === УБРАНЫ СТАРЫЕ СТИЛИ ШАПКИ === */
/* Старые стили .site-header-main заменены на новую шапку в header.php */

/* 2. Hero Section */
.hero-section {
    background-color: #285ffe;
    color: #fff;
    padding: 60px 0;
    border-radius: 24px;
    margin-bottom: 40px;
    margin-top: 90px; /* Отступ для шапки */
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1 1 55%;
}

.hero-image {
    flex: 1 1 45%;
    align-self: flex-end;
    margin-bottom: -60px; /* Pull image down to overlap */
}

.hero-image img {
    max-width: 100%;
    display: block;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.hero-tag {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.hero-tag--icon img {
    height: 20px;
}

.hero-license {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-license img {
    width: 24px;
    height: 24px;
}

.hero-title {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.hero-guarantee {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.hero-guarantee svg {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 4px;
}


/* 2. Header */
.main-header {
    padding: 60px 0;
    text-align: center;
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.main-header p {
    font-size: 1.125rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* 3. Offers Grid */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding-bottom: 60px;
    align-items: start;
}

/* 4. Offer Card */
.offer-card {
    background: var(--card-background);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--card-border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

/* Единые стили для всех карточек - одинаковая высота */
.offer-card__header {
    margin-bottom: 18px;
}

.offer-card__body {
    margin-bottom: 18px;
}

.offer-card__detail-item {
    padding: 12px 0;
}

.offer-card__footer {
    margin-top: 16px;
}

.offer-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.offer-card__online-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #4caf50;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    animation: float 3s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    border: 2px solid white;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.offer-card__online-indicator::before {
    content: '🟢';
    font-size: 10px;
}

.offer-card__badge {
    background: #ff4b4b;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    position: relative;
    animation: pulse 2s infinite;
    min-height: 34px;
    box-sizing: border-box;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.offer-card__badge::after {
    content: '🔥';
    margin-left: 4px;
}

.offer-card__badge-container {
    margin-bottom: 16px;
    min-height: 34px; /* Резервируем место для бейджа */
    display: flex;
    align-items: flex-start;
}

.offer-card__badge-placeholder {
    height: 34px; /* Невидимый плейсхолдер */
    margin-bottom: 0;
}

/* Базовые стили - переопределяются адаптивными классами */
.offer-card__header {
    text-align: center;
}

.offer-card__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    height: 60px;
}

.offer-card__logo img {
    max-height: 50px;
    max-width: 140px;
    object-fit: contain;
}

.offer-card__name {
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 10px;
    line-height: 1.4;
}

.offer-card__meta-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.offer-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.offer-card__rating-star {
    color: #ffc107;
    width: 18px;
    height: 18px;
}

.offer-card__rating span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.offer-card__approval {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
}

/* Разные цвета фонов для разных уровней одобрения */
.offer-card--approval-высокое .offer-card__approval {
    background: #e8f5e9;
    color: #2e7d32;
}

.offer-card--approval-среднее .offer-card__approval {
    background: #fff3e0;
    color: #f57c00;
}

.offer-card--approval-низкое .offer-card__approval {
    background: #ffebee;
    color: #d32f2f;
}

.offer-card__approval-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.offer-card__approval-indicator--high { 
    background: #4caf50;
}

.offer-card__approval-indicator--medium { 
    background: #ff9800;
}

.offer-card__approval-indicator--low { 
    background: #f44336;
}

.offer-card__promo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 9px 12px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    line-height: 1.3;
    box-sizing: border-box;
}

.offer-card__promo-container {
    margin-bottom: 16px;
    min-height: 38px; /* Резервируем место для промо-баннера */
}

.offer-card__promo-placeholder {
    height: 38px; /* Невидимый плейсхолдер для промо */
    margin-bottom: 0;
}

.offer-card__details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-card__detail-item {
    display: flex;
    align-items: center;
    /* padding переопределяется адаптивными классами */
    border-bottom: 1px solid #f0f0f0;
}

.offer-card__detail-item:last-child {
    border-bottom: none;
}

.offer-card__detail-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.offer-card__detail-item:nth-child(1) .offer-card__detail-icon-wrapper {
    background: #fff3e0;
    color: #f57c00;
}

.offer-card__detail-item:nth-child(2) .offer-card__detail-icon-wrapper {
    background: #e3f2fd;
    color: #1976d2;
}

.offer-card__detail-item:nth-child(3) .offer-card__detail-icon-wrapper {
    background: #f3e5f5;  
    color: #7b1fa2;
}

.offer-card__detail-label {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.offer-card__detail-label span:first-child {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.offer-card__detail-item span:last-child {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.offer-card__amount-value {
    font-size: 18px !important;
    color: #ff4b4b !important;
    font-weight: 700 !important;
}

/* Базовый стиль footer - переопределяется адаптивными классами */

/* Улучшенные кнопки CTA с градиентами */
.cta-button {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #005cff 0%, #4285f4 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 92, 255, 0.3);
}

.cta-button:hover {
    background: linear-gradient(135deg, #0052e6 0%, #3b78e7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 92, 255, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button:active {
    transform: translateY(0);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: left 0.3s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Главные CTA кнопки "Получить деньги" - самый яркий градиент */
.cta-button--primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button--primary:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #d67d15 100%);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
    transform: translateY(-2px);
}

.cta-button--primary::before {
    background: rgba(255,255,255,0.25);
}

/* Плавная прокрутка для якорных ссылок */
html {
    scroll-behavior: smooth;
}

/* 14. Keyframe Animations */
@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes pulseAnimation {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@keyframes blinkAnimation {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 2.5. Page Intro Section */
.page-intro-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-intro-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-intro-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.page-intro-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 16px 0;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.page-intro-date {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.page-intro-date::before {
    content: '🕒';
    font-size: 16px;
}

/* Адаптивность для приветственного блока */
@media (max-width: 768px) {
    .page-intro-header {
        padding: 24px 20px;
        margin-bottom: 30px;
    }
    
    .page-intro-title {
        font-size: 22px;
        line-height: 1.4;
    }
    
    .page-intro-date {
        font-size: 13px;
    }
    
    /* Мобильные стили для промо-плашки */
    .offer-card__promo-link {
        -webkit-tap-highlight-color: transparent;
    }
    
    .offer-card__promo-link:active .offer-card__promo {
        background: linear-gradient(135deg, #5a6fd8 0%, #6d42a0 100%);
        transform: scale(0.98);
    }
}

@media (max-width: 480px) {
    .page-intro-header {
        padding: 20px 16px;
        border-radius: 12px;
    }
    
    .page-intro-title {
        font-size: 20px;
    }
    
    .page-intro-date {
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }
}

/* 7. Reviews Section */
.reviews-section {
    margin-top: 4rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.review-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.review-card__header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 16px;
    object-fit: cover;
}

.review-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-card__author {
    font-weight: 600;
    color: #1a1a1a;
}

.review-card__details {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.review-card__text {
    font-style: italic;
    color: #495057;
}

.show-more-container {
    text-align: center;
    margin-top: 2.5rem; /* Увеличиваем отступ сверху */
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Делаем кнопки под отзывами компактнее */
.show-more-container .cta-button {
    width: auto;
    padding: 12px 24px;
}

.cta-button--secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(108, 117, 125, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button--secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transition: left 0.3s ease;
}

.cta-button--secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 18px rgba(108, 117, 125, 0.4);
}

.cta-button--secondary:hover::before {
    left: 100%;
}

/* 8. Creditors Section */
.creditors-section {
    margin-top: 4rem;
}

.creditors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 2rem;
}

.creditor-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.creditor-card__name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.creditor-card__info {
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 8px; /* Добавляем отступ для лучшей читаемости */
}

.creditor-card__info:last-child {
    margin-bottom: 0;
}

.creditor-card__info strong {
    color: #212529;
}

/* 9. Recommendation Form */
.recommendation-section {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
}

.recommendation-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    color: #344054;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fff;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 92, 255, 0.15);
}

.form-control::placeholder {
    color: #98a2b3;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Custom File Upload Styling */
.file-upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.file-upload-tile {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 2px dashed var(--card-border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
}

.file-upload-tile:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.file-upload-tile input[type="file"] {
    display: none;
}

.file-upload-icon {
    font-size: 1.5rem;
    color: #adb5bd;
    margin-bottom: 8px;
}

.file-upload-text {
    font-size: 0.75rem;
    color: #6c757d;
    font-weight: 500;
    padding: 0 5px;
}

.file-upload-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.file-upload-tile.has-preview .file-upload-preview {
    opacity: 1;
}

.file-upload-tile.has-preview .file-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.9);
    color: white;
    font-size: 12px;
    z-index: 2;
}

.file-upload-tile.has-preview .file-upload-icon::before {
    content: '✓';
}

.file-upload-tile.has-preview .file-upload-text {
    display: none;
}

.recommendation-form .cta-button {
    width: 100%;
    margin-top: 15px;
}


/* 7. Reviews & Creditors Sections */
.reviews-section, .recommendation-section, .creditors-section {
    padding: 60px 0;
    border-top: 1px solid var(--card-border-color);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.review-card {
    background-color: var(--card-background);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.review-card__text {
    font-style: italic;
    color: #495057;
    margin-bottom: 20px;
    flex-grow: 1;
}

.review-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border-color);
}

.review-card__author-info {
    display: flex;
    flex-direction: column;
}

.review-card__author-name {
    font-weight: 600;
    font-size: 1rem;
}

.review-card__author-details {
    font-size: 0.875rem;
    color: #6c757d;
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-button {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.load-more-button:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.load-more-button:disabled {
    background-color: #e9ecef;
    border-color: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
}

/* 8. Creditors Section */
.creditors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.creditor-card {
    background-color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #4b5563;
}

.creditor-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.creditor-card__license {
    font-style: italic;
    color: #6b7280;
    margin-bottom: 1rem;
}

.creditor-card__address,
.creditor-card__details,
.creditor-card__phone {
    margin-bottom: 0.25rem;
}

.creditor-card__phone {
    margin-bottom: 0;
}

/* 9. Footer */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

/* Декоративный элемент */
.site-footer::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.footer-brand {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    justify-content: center;
}

.footer-logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.footer-logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.footer-logo-text {
    color: white;
    font-size: 20px;
    font-weight: 700;
}

.footer-brand-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

/* Дисклеймер */
.footer-disclaimer {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.footer-disclaimer p {
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin: 0;
}

/* Информация о компании */
.footer-info {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 24px;
}

.footer-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-info p:last-child {
    margin-bottom: 0;
}

.footer-info a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover {
    color: #764ba2;
}

/* Нижняя часть */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Cookie баннер */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    /* Убрал animation: slideUp - он конфликтовал */
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-banner__close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.cookie-banner__close:hover {
    background: #f5f5f5;
    color: #333;
}

.cookie-banner__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cookie-banner__icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.cookie-banner__text {
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

.cookie-banner__text a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner__text a:hover {
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.cookie-banner__btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cookie-banner__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(102, 126, 234, 0.3);
}

/* Кнопка "Наверх" */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    border: none;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Анимация при скролле вверх */
@keyframes scrollPulse {
    0% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(102, 126, 234, 0.5);
    }
    100% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    }
}

.scroll-to-top.scrolling {
    animation: scrollPulse 0.5s ease;
}

/* Адаптивность футера */
@media (max-width: 768px) {
    .hero-section {
        margin-top: 80px; /* Меньший отступ для мобильных */
        padding: 40px 0;
        margin-bottom: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 12px;
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 12px;
        border-radius: 10px;
        bottom: 15px;
    }
    
    .cookie-banner__content {
        gap: 8px;
    }
    
    .cookie-banner__icon {
        font-size: 20px;
        margin-bottom: 2px;
    }
    
    .cookie-banner__text {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .cookie-banner__btn {
        padding: 8px 16px;
        font-size: 12px;
    }    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
      /* Компактные плашки загрузки на планшетах */
    .file-upload-tile {
        aspect-ratio: 2 / 1;
        min-height: 80px;
        padding: 8px;
    }
    
    /* Когда фото загружено - делаем плашку квадратной для лучшего превью */
    .file-upload-tile.has-preview {
        aspect-ratio: 1 / 1;
        min-height: 100px;
    }
    
    .file-upload-icon {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }
    
    .file-upload-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-disclaimer {
        padding: 16px;
    }
    
    .footer-disclaimer p {
        font-size: 11px;
    }
    
    .cookie-banner {
        padding: 10px;
        bottom: 10px;
        left: 8px;
        right: 8px;
    }
    
    .cookie-banner__close {
        top: 6px;
        right: 6px;
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
    
    .cookie-banner__content {
        gap: 6px;
    }
    
    .cookie-banner__icon {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    .cookie-banner__text {
        font-size: 11px;
        line-height: 1.2;
    }
      .cookie-banner__btn {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 6px;
    }
      /* Очень компактные плашки загрузки на мобильных */
    .file-upload-tile {
        aspect-ratio: 3 / 1;
        min-height: 60px;
        padding: 6px;
        border-radius: 8px;
    }
    
    /* Когда фото загружено - делаем плашку больше для лучшего превью */
    .file-upload-tile.has-preview {
        aspect-ratio: 2 / 1;
        min-height: 80px;
    }
    
    .file-upload-icon {
        font-size: 1rem;
        margin-bottom: 2px;
    }
    
    .file-upload-text {
        font-size: 0.65rem;
        padding: 0 2px;
    }
}

/* 2.7. Стикер-лайфхак */
.important-notice-sticker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 16px;
    margin: 50px auto 40px; /* Увеличен верхний отступ для булавки */
    max-width: 800px;
    position: relative;
    transform: rotate(-1.5deg);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    overflow: visible; /* Позволяем элементам выходить за границы */
}

.important-notice-sticker:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Декоративный элемент */
.important-notice-sticker::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Кнопка-булавка */
.important-notice-sticker::after {
    content: '📌';
    position: absolute;
    top: -25px; /* Выносим еще выше */
    right: 25px;
    font-size: 32px;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3));
    animation: pinBounce 2s infinite;
    z-index: 10; /* Поверх всех элементов */
}

@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.notice-sticker-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.notice-sticker-icon {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.notice-sticker-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
    color: #fef3c7;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.notice-sticker-message {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .important-notice-sticker {
        padding: 18px 24px;
        margin: 45px 20px 35px; /* Увеличен верхний отступ */
        transform: rotate(-1deg);
        border-radius: 14px;
        overflow: visible;
    }

    .important-notice-sticker::after {
        font-size: 26px;
        top: -20px; /* Выносим выше на мобильных */
        right: 20px;
    }

    .notice-sticker-content {
        gap: 16px;
    }

    .notice-sticker-icon {
        width: 45px;
        height: 45px;
        font-size: 24px;
        border-radius: 12px;
    }

    .notice-sticker-title {
        font-size: 14px;
        margin-bottom: 6px;
        letter-spacing: 0.5px;
    }

    .notice-sticker-message {
        font-size: 15px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .important-notice-sticker {
        padding: 16px 20px;
        margin: 40px 15px 30px; /* Увеличен верхний отступ */
        transform: rotate(-0.5deg);
        overflow: visible;
    }

    .important-notice-sticker::after {
        font-size: 24px;
        top: -18px; /* Выносим выше */
        right: 15px;
    }

    .notice-sticker-content {
        gap: 14px;
    }

    .notice-sticker-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .notice-sticker-title {
        font-size: 13px;
    }

    .notice-sticker-message {
        font-size: 14px;
    }
}

/* Анимация появления */
@keyframes stickerAppear {
    from {
        opacity: 0;
        transform: rotate(-1.5deg) scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: rotate(-1.5deg) scale(1) translateY(0);
    }
}

.important-notice-sticker {
    animation: stickerAppear 0.6s ease-out;
}

/* === СТРАНИЦА БЛАГОДАРНОСТИ (Thank You) === */
.thank-you-page {
    text-align: center;
    padding: 60px 30px;
    max-width: 600px;
    margin: 120px auto 0 auto;
}

.thank-you-page__icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    border-radius: 50%;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(52, 211, 153, 0.3);
    animation: successBounce 0.6s ease-out;
}

.thank-you-page__icon {
    width: 50px;
    height: 50px;
    color: white;
    stroke-width: 3;
}

.thank-you-page h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
    line-height: 1.2;
}

.thank-you-page p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.6;
}

.thank-you-page .cta-button {
    display: inline-block;
    width: auto;
    padding: 16px 32px;
    font-size: 16px;
    margin-top: 10px;
}

/* Анимация успеха */
@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Адаптивность для thank-you страницы */
@media (max-width: 768px) {
    .thank-you-page {
        padding: 40px 20px;
    }
    
    .thank-you-page__icon-wrapper {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }
    
    .thank-you-page__icon {
        width: 40px;
        height: 40px;
    }
    
    .thank-you-page h2 {
        font-size: 26px;
        margin-bottom: 14px;
    }
    
    .thank-you-page p {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .thank-you-page .cta-button {
        padding: 14px 28px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .thank-you-page {
        padding: 30px 15px;
    }
    
    .thank-you-page h2 {
        font-size: 22px;    }
    
    .thank-you-page p {
        font-size: 15px;
    }
    
    .thank-you-page .cta-button {
        width: 100%;
        padding: 12px 24px;
    }
}

/* Дополнительные иконки на карточках офферов */
.offer-card__additional-icons {
    position: absolute;
    top: 30px;
    right: -8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 9;
}

.offer-card__service-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid white;
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.offer-card__service-icon--tinkoff {
    animation-delay: 0.7s;
}

.offer-card__service-icon--gosuslugi {
    animation-delay: 1s;
}

.offer-card__service-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Адаптивность для иконок */
@media (max-width: 768px) {
    .offer-card__additional-icons {
        top: 26px;
        right: -6px;
    }
    
    .offer-card__service-icon {
        width: 28px;
        height: 28px;
    }
    
    .offer-card__service-icon img {
        width: 18px;
        height: 18px;
    }
    
    .offer-card__additional-icons {
        gap: 4px;
    }
}

/* Стили для кликабельной промо-плашки */
.offer-card__promo-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-card__promo-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.offer-card__promo-link:hover .offer-card__promo {
    background: linear-gradient(135deg, #5a6fd8 0%, #6d42a0 100%);
}

.offer-card__promo-link:active {
    transform: translateY(0);
}
