/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bg: #f8f9fc;
    --surface: #ffffff;
    --surface-hover: #f0f2f6;
    --text-primary: #0b0c10;
    --text-secondary: #4f5666;
    --text-tertiary: #8b93a6;
    --border: #eaeef3;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .02);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, .06), 0 2px 8px rgba(0, 0, 0, .02);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .02);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-full: 60px;
    --max-width: 1120px;
    --transition: .25s ease;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    background: var(--surface);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: #0b0c10;
    color: #fff;
    box-shadow: 0 4px 16px rgba(11, 12, 16, .12);
}
.btn-primary:hover {
    background: #1f2128;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(11, 12, 16, .16);
}

.btn-tbank {
    background: #ffdd2d;
    color: #0b0c10;
    box-shadow: 0 4px 16px rgba(255, 221, 45, .3);
}
.btn-tbank:hover {
    background: #f5d020;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(255, 221, 45, .35);
}

.btn-yandex {
    background: #fc3f1d;
    color: #fff;
    box-shadow: 0 4px 16px rgba(252, 63, 29, .25);
}
.btn-yandex:hover {
    background: #e63514;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(252, 63, 29, .3);
}

.btn-alfa {
    background: #ef3124;
    color: #fff;
    box-shadow: 0 4px 16px rgba(239, 49, 36, .25);
}
.btn-alfa:hover {
    background: #d62b1f;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(239, 49, 36, .3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1.5px var(--border);
}
.btn-outline:hover {
    background: var(--surface-hover);
    box-shadow: inset 0 0 0 1.5px var(--text-tertiary);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 10px 22px;
    font-size: 14px;
}

/* ===== HEADER ===== */
.header {
    padding: 20px 0 16px;
    border-bottom: 1px solid var(--border);
    background: rgba(248, 249, 252, .7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.3px;
}
.logo svg {
    flex-shrink: 0;
}
.logo span {
    color: var(--text-secondary);
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== HERO ===== */
.hero {
    padding: 48px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(38px, 7vw, 64px);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: 1.08;
    max-width: 720px;
    margin: 0 auto 18px;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, #f5b042, #fc3f1d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.hero-stats-item {
    text-align: center;
}

.hero-stats-item .num {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-stats-item .label {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ===== SECTION ===== */
.section {
    padding: 56px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card-offer {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 24px 24px 28px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.card-offer:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}

.card-offer .card-image {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    background: #f0f2f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    aspect-ratio: 1.6 / 1;
}

.card-offer .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-offer .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-offer .brand-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-offer .brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-offer .brand-name {
    font-weight: 600;
    font-size: 18px;
}

.card-offer .badge {
    font-size: 12px;
    font-weight: 600;
    background: #fef3c7;
    color: #b45309;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-left: auto;
    white-space: nowrap;
}

.card-offer .cashback {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 4px 0 4px;
}

.card-offer .cashback span {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
}

.card-offer .desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}

.card-offer .features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card-offer .features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.card-offer .features li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #22c55e;
}

.card-offer .btn {
    margin-top: auto;
}

/* ===== COMPARISON TABLE ===== */
.comparison-wrap {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    width: 25%;
}
.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
    width: 25%;
}

.comparison-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .bank-cell {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.comparison-table .bank-cell .logo-sm {
    width: 24px;
    height: 24px;
}
.comparison-table .bank-cell .logo-sm img {
    width: 100%;
    height: 100%;
}

.comparison-table .check {
    color: #22c55e;
    font-weight: 700;
}

.comparison-table .row-icon {
    font-size: 18px;
    width: 1.4em;
    text-align: center;
    margin-right: 6px;
    color: var(--text-secondary);
}

/* ===== CTA ===== */
.cta-section {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-top: 16px;
}

.cta-section h2 {
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 17px;
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ===== CONTENT PAGES (about, terms, privacy, cookies) ===== */
.content-page {
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.content-page h1 {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin-bottom: 20px;
}

.content-page h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 28px 0 12px;
    letter-spacing: -0.4px;
}

.content-page p {
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-page ul {
    margin: 12px 0 16px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.content-page ul li {
    margin-bottom: 6px;
}

.content-page a {
    color: var(--text-link, #0b0c10);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.content-page a:hover {
    color: var(--text-primary);
}

.content-page em {
    color: var(--text-tertiary);
    font-style: italic;
}

/* ===== FOOTER ===== */
.footer {
    padding: 32px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: var(--text-tertiary);
}

.footer a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer a:hover {
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

/* ===== COOKIE BANNER (CashUP style) ===== */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 400px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 14px 18px;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--border);
}
.cookie-banner.show {
    display: flex;
}
.cookie-banner p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}
.cookie-banner a {
    color: var(--text-link, var(--text-primary));
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner .btn {
    padding: 6px 18px;
    font-size: 14px;
    font-weight: 600;
    background: var(--button-color-primary, #0b0c10);
    color: var(--text-color-primary-inverted, #fff);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.cookie-banner .btn:hover {
    background: var(--button-color-primary-active, #1f2128);
}
@media (max-width: 640px) {
    .cookie-banner {
        left: 16px;
        right: 16px;
        max-width: none;
        bottom: 16px;
        padding: 12px 16px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .cookie-banner p {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding: 0 16px;
    }
    .container {
        padding: 0 12px;
    }
    .hero {
        padding: 32px 0 28px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }
    .hero-stats-item .num {
        font-size: 22px;
    }
    .section {
        padding: 40px 0;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    .comparison-table {
        font-size: 13px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 12px 14px;
    }
    .cta-section {
        padding: 32px 20px;
    }
    .header .logo {
        font-size: 17px;
    }
    .header-actions .btn-sm {
        padding: 8px 16px;
        font-size: 13px;
    }
    .content-page {
        padding: 24px 12px;
    }
    .content-page h1 {
        font-size: 28px;
    }
    .content-page h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    .comparison-table {
        font-size: 12px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 10px 10px;
    }
    .comparison-table .bank-cell {
        gap: 6px;
        font-size: 13px;
    }
    .content-page h1 {
        font-size: 24px;
    }
    .content-page h2 {
        font-size: 18px;
    }
}

/* ===== FAQ (без фона и рамки, с контейнером) ===== */
.faq-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item summary {
    padding: 28px 0;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    transition: color 0.2s;
}
.faq-item summary:hover {
    color: var(--primary, #6366f1);
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    color: var(--primary, #6366f1);
    font-size: 2rem;
    line-height: 1;
    margin-left: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item p {
    padding-bottom: 28px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== ПЛАВАЮЩИЙ БАННЕР С ЭМОДЗИ ===== */
.floating-gift {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
    animation: gift-pulse 2s ease-in-out infinite;
    transition: transform 0.2s ease;
}

.floating-gift:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.25));
}

.gift-icon-wrapper {
    position: relative;
    display: inline-block;
    font-size: 72px !important;  /* ← увеличенный размер с приоритетом */
    line-height: 1;
}

.gift-emoji {
    display: block;
    font-size: inherit; /* наследует размер от родителя */
}

/* Бейдж-счётчик */
.gift-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #0b0c10;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-family: var(--font, 'Inter', sans-serif);
    line-height: 1;
    text-align: center;
    border: 2px solid #ffffff;
}

.gift-label {
    font-size: 11px;
    font-weight: 700;
    color: #0b0c10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 40px;
    margin-top: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    transition: background 0.2s;
}

.floating-gift:hover .gift-label {
    background: #ffffff;
}

@keyframes gift-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 480px) {
    .floating-gift {
        bottom: 16px;
        right: 16px;
    }
    .gift-icon-wrapper {
        font-size: 56px !important;
    }
    .gift-badge {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        top: -2px;
        right: -4px;
    }
    .gift-label {
        font-size: 9px;
        padding: 3px 10px;
    }
}

/* === АЛЬТЕРНАТИВНЫЕ ВАРИАНТЫ АНИМАЦИИ === */

/* 1. Пульсация (увеличивается и уменьшается) */
@keyframes gift-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
/* Замените animation: gift-bounce ... на animation: gift-pulse ... */

/* 2. Вращение с подпрыгиванием */
@keyframes gift-rotate-bounce {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(10deg) translateY(-8px); }
    75% { transform: rotate(-10deg) translateY(-8px); }
}
/* Замените animation: gift-bounce ... на animation: gift-rotate-bounce 2.5s ease-in-out infinite; */

/* 3. Мягкое покачивание из стороны в сторону */
@keyframes gift-sway {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}
/* Замените animation: gift-bounce ... на animation: gift-sway 2s ease-in-out infinite; */

/* Адаптация для мобильных устройств */
@media (max-width: 480px) {
    .floating-gift {
        font-size: 44px;
        bottom: 16px;
        right: 16px;
    }
}
