/* Основные стили */
:root {
    --grad-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --grad-accent:  linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    --c-primary-50 : #667eea;
    --c-primary-80 : #764ba2;
    --c-accent-50  : #ff6b6b;
    --c-accent-80  : #ee5a24;
    --c-text-dark  : #2c3e50;
    --c-text-gray  : #7f8c8d;
}

/* Базовые градиентные кнопки */
.btn-gradient {
    background: var(--grad-accent);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    border: none;
    transition: transform .25s, box-shadow .25s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

/* Переопределение существующих классов кнопок через базу */
.btn-primary,
.cta-btn-primary,
.btn-get {
    background: var(--grad-accent);
}

/* Замена основного фона */
.hero {
    /* ... existing code ... */
    background: var(--grad-primary);
}

/* Замена градиентов в иконках и прогрессе */
.advantage-icon,
.progress-fill {
    background: var(--grad-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Предотвращение горизонтального скролла */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

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

/* Логотип в героя */
.hero-logo {
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
    background: none;
    border: none;
    padding: 0;
}

.hero-logo-img {
    max-height: 100px;
    max-width: 100%;
    width: auto;
    height: auto;
    transition: transform 0.3s ease;
    background: transparent;
    border: none;
    box-shadow: none;
    outline: none;
}

.hero-logo-img:hover {
    transform: scale(1.05);
}

/* Главная секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
    background: url('Im/2131.webp') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    color: white;
    z-index: 2;
    position: relative;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 10px;
}

.highlight {
    color: #ffd700;
    display: block;
    font-size: 0.8em;
    font-weight: 600;
}

.hero-advantages {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-advantages.compact {
    gap: 20px;
    margin: 30px 0;
}

.hero-advantage {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px 25px;
    transition: all 0.3s ease;
}

.hero-advantages.compact .hero-advantage {
    padding: 15px 20px;
    min-width: 200px;
    gap: 12px;
}

.hero-advantage:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.hero-advantage-icon {
    width: 50px;
    height: 50px;
    background: var(--grad-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.hero-advantages.compact .hero-advantage-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

.hero-advantage-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-advantage-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
}

.hero-advantages.compact .hero-advantage-title {
    font-size: 1rem;
    font-weight: 600;
}

.hero-advantage-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--grad-accent);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.btn-primary.hero-quiz-btn {
    animation: buttonPulse 2s infinite;
    font-weight: 700;
}

.btn-primary.hero-quiz-btn:hover {
    animation-play-state: paused;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Секция преимуществ */
.advantages {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #2c3e50;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.advantage-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
    width: 60px;
    height: 60px;
    background: var(--grad-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 24px;
}

.advantage-icon.vtb-icon,
.hero-advantage-icon.vtb-icon,
.hero-advantage-icon.no-background {
    background: transparent;
    border: none;
}

.vtb-logo {
    width: 50px;
    height: 50px;
}

.hero-advantages.compact .vtb-logo {
    width: 40px;
    height: 40px;
}

.advantage-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.advantage-card p {
    color: #7f8c8d;
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Калькулятор доходности */
.calculator {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.calculator-description {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.calculator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.calculator-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.calculator-form h3 {
    margin-bottom: 30px;
    color: var(--c-text-dark);
    font-size: 1.5rem;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--c-text-dark);
}

.input-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--c-primary-50);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.preset-buttons h4 {
    margin-bottom: 20px;
    color: var(--c-text-dark);
    font-size: 1.2rem;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.preset-btn {
    padding: 20px 15px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.preset-btn:hover {
    border-color: var(--c-primary-50);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.preset-btn.active {
    border-color: var(--c-accent-50);
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 36, 0.1) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
}

.preset-btn i {
    font-size: 1.5rem;
    color: var(--c-primary-50);
}

.preset-btn.active i {
    color: var(--c-accent-50);
}

.preset-btn span {
    font-weight: 600;
    color: var(--c-text-dark);
}

.preset-btn small {
    color: var(--c-text-gray);
    font-size: 0.9rem;
}

.results-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.results-container h3 {
    margin-bottom: 30px;
    color: var(--c-text-dark);
    font-size: 1.5rem;
}

.result-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.result-icon {
    width: 60px;
    height: 60px;
    background: var(--grad-accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.result-info h4 {
    margin: 0;
    color: var(--c-text-dark);
    font-size: 1.3rem;
}

.result-info span {
    color: var(--c-accent-50);
    font-weight: 600;
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.result-item.total {
    border-top: 2px solid var(--c-primary-50);
    padding-top: 15px;
    margin-top: 10px;
}

.result-item.final {
    background: var(--grad-accent);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 1.1rem;
}

.result-item strong {
    font-size: 1.1rem;
    color: var(--c-accent-50);
}

.result-item.final strong {
    color: white;
}

.comparison-chart {
    margin-top: 30px;
}

.comparison-chart h4 {
    margin-bottom: 20px;
    color: var(--c-text-dark);
}

.chart-bars {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chart-bar {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.chart-bar.active {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(238, 90, 36, 0.1) 100%);
    border: 2px solid var(--c-accent-50);
}

.bar-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bar-info span {
    font-weight: 600;
    color: var(--c-text-dark);
}

.bar-info small {
    color: var(--c-accent-50);
    font-weight: 600;
}

.bar-container {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.bank-bar {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
}

.stocks-bar {
    background: linear-gradient(90deg, #007bff 0%, #6610f2 100%);
}

.bonds-bar {
    background: linear-gradient(90deg, #6c757d 0%, #495057 100%);
}

.apartment-bar {
    background: linear-gradient(90deg, #fd7e14 0%, #e83e8c 100%);
}

.hotels-bar {
    background: var(--grad-accent);
}

.investment-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.warning-icon {
    color: #856404;
    font-size: 1.2rem;
    margin-top: 2px;
}

.warning-text {
    color: #856404;
    font-size: 0.95rem;
    line-height: 1.4;
}

.warning-text strong {
    color: #664d03;
}

.calculator-cta {
    margin-top: 30px;
    text-align: center;
}

.calculator-cta .btn {
    padding: 15px 30px;
    font-size: 1.1rem;
}

/* Секция кейсов */
.cases {
    padding: 100px 0;
    background: white;
}

.cases-description {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

.cases-grid {
    display: grid;
    gap: 30px;
}

.cases-row-1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.cases-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.case-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.case-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.case-card.active {
    border: 2px solid #ff6b6b;
}

.case-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-image img {
    transform: scale(1.05);
}

.case-content {
    padding: 30px;
}

.case-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.case-location {
    color: #7f8c8d;
    margin-bottom: 10px;
    font-weight: 500;
}

.case-result {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}

.case-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Анимационное выделение процентов в кейсах */
.percentage {
    font-weight: 700;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 1.2em;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(255, 107, 107, 0.4); }
    100% { text-shadow: 0 0 15px rgba(255, 107, 107, 0.8); }
}

/* CTA секция */
.cta {
    min-height: 100vh;
    padding: 50px 0;
    position: relative;
    background: url('Im/fon1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}



.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 40px;
    animation: pulse 2s infinite;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 15px 20px;
    transition: all 0.3s ease;
    min-width: 180px;
}

.cta-feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.cta-feature i {
    font-size: 18px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-feature span {
    font-weight: 600;
    font-size: 14px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-btn-primary {
    position: relative;
    overflow: hidden;
    background: var(--grad-accent);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
    transform: scale(1.1);
    animation: buttonPulse 2s infinite;
}

.cta-btn-primary:hover {
    transform: scale(1.15) translateY(-3px);
    box-shadow: 0 20px 50px rgba(255, 107, 107, 0.5);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.cta-btn-primary:hover .btn-shine {
    left: 100%;
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
}

/* Квиз */
.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10002; /* Выше чем у куки (10001) */
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.quiz-overlay.active {
    display: flex;
}

.quiz-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    animation: slideUp 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.quiz-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 10;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.quiz-progress {
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 20%;
}

.progress-text {
    color: #7f8c8d;
    font-size: 14px;
}

.quiz-content {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}

.quiz-content::-webkit-scrollbar {
    width: 4px;
}

.quiz-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.quiz-content::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 2px;
}

.quiz-content::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.quiz-question {
    margin-bottom: 30px;
}

.quiz-question h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #2c3e50;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 769px) {
    .quiz-options {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.quiz-options.two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quiz-option.with-icon {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quiz-option.with-icon i {
    font-size: 20px;
}

.quiz-option.with-icon .flag-emoji {
    font-size: 20px;
    margin-right: 10px;
}

.quiz-option.with-icon .fa-whatsapp {
    color: #25D366;
}

.quiz-option.with-icon .fa-telegram {
    color: #0088cc;
}

.quiz-option.with-icon .fa-coins {
    color: #f39c12;
}

.quiz-option.with-icon .fa-money-bill-wave {
    color: #27ae60;
}

.quiz-option.with-icon .fa-money-bills {
    color: #2980b9;
}

.quiz-option.with-icon .fa-sack-dollar {
    color: #8e44ad;
}

.quiz-option.with-icon .fa-gem {
    color: #e74c3c;
}

.quiz-option.with-icon .fa-globe {
    color: #3498db;
}

.quiz-option.with-icon .fa-umbrella-beach {
    color: #f39c12;
}

.quiz-option.with-icon .fa-star {
    color: #f1c40f;
}

.quiz-option.with-icon .fa-plane {
    color: #9b59b6;
}

.quiz-option.with-icon .fa-mountain {
    color: #95a5a6;
}

.quiz-option.with-icon .fa-wine-glass {
    color: #8e44ad;
}

.quiz-option.with-icon .fa-anchor {
    color: #34495e;
}

.quiz-option.with-icon .fa-tree {
    color: #27ae60;
}

.quiz-option.with-icon .fa-calendar-check {
    color: #27ae60;
}

.quiz-option.with-icon .fa-chart-line {
    color: #3498db;
}

.quiz-option.with-icon .fa-exchange-alt {
    color: #e67e22;
}

.quiz-option.with-icon .fa-laptop {
    color: #34495e;
}

.quiz-option.with-icon .fa-handshake {
    color: #f39c12;
}

.quiz-option.with-icon .fa-question-circle {
    color: #95a5a6;
}

/* Поля ввода в квизе */
.quiz-input-container {
    margin: 20px 0;
}

.quiz-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 18px;
    z-index: 2;
}

.quiz-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.quiz-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.quiz-input:focus + .input-icon {
    color: #667eea;
}

.validation-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error::before {
    content: "⚠";
    font-size: 14px;
}

/* Слайд согласия на обработку данных */
.privacy-slide {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.privacy-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.privacy-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #2c3e50;
}

.privacy-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    animation: pulse 2s infinite;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
    flex-shrink: 0;
}

.privacy-content {
    text-align: left;
}

.privacy-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.privacy-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    text-align: center;
}

.privacy-feature i {
    color: #27ae60;
    font-size: 16px;
}

.privacy-feature span {
    font-size: 12px;
    color: #2c3e50;
}

.privacy-text {
    font-size: 15px;
    line-height: 1.5;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.privacy-agreement {
    font-size: 14px;
    line-height: 1.5;
    color: #7f8c8d;
    text-align: center;
    margin: 0;
}

.privacy-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.quiz-option {
    padding: 15px 20px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quiz-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.quiz-option.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.quiz-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    flex-shrink: 0;
    padding-top: 20px;
    border-top: 1px solid #ecf0f1;
}

.quiz-disclaimer {
    margin-top: 10px;
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
}

.quiz-disclaimer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.quiz-disclaimer a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.btn-outline {
    background: none;
    border: 2px solid #ecf0f1;
    color: #7f8c8d;
}

.btn-outline:hover {
    border-color: #667eea;
    color: #667eea;
}

/* Форма */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10003; /* Выше чем у квиза (10002) и куки (10001) */
    animation: fadeIn 0.3s ease;
}

.form-overlay.active {
    display: flex;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.form-header {
    margin-bottom: 30px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

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

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-get {
    background: var(--grad-accent);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px 36px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-get:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.btn-get:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-get:hover:before {
    left: 100%;
}

/* Футер */
.footer {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-company {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-company h4 {
    color: #667eea;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.footer-company p {
    margin: 0;
    color: #7f8c8d;
    font-size: 0.8rem;
    white-space: nowrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-link:hover {
    color: #764ba2;
}

.footer-link[href*="rrda.ru"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.footer-link[href*="rrda.ru"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.footer-bottom {
    display: none;
}

/* Toast куки */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    color: #2c3e50;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 10001; /* Увеличиваем z-index для гарантии */
    transform: translateX(-400px);
    transition: transform 0.4s ease, opacity 0.4s ease;
    max-width: 320px;
    border-left: 3px solid #667eea;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none; /* Изначально скрыт */
    visibility: hidden;
    opacity: 0;
}

.cookie-banner.show {
    transform: translateX(0);
    opacity: 1;
}

.cookie-banner.hide {
    transform: translateX(-400px);
    opacity: 0;
    pointer-events: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cookie-icon {
    font-size: 18px;
    color: #f39c12;
    flex-shrink: 0;
}

.cookie-text {
    flex: 1;
    margin: 0;
}

.cookie-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #7f8c8d;
}

.cookie-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cookie-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.cookie-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    flex-shrink: 0;
}

.cookie-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

/* Плавающие кнопки */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-buttons.show {
    opacity: 1;
    visibility: visible;
}

.floating-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    animation: buttonPulse 2s infinite;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
    animation-play-state: paused;
}

.floating-btn.telegram-only {
    width: 60px;
    height: 60px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
    animation: none;
    justify-content: center;
}

.floating-btn.telegram-only:hover {
    box-shadow: 0 12px 35px rgba(0, 136, 204, 0.5);
}

.floating-btn.telegram-only i {
    font-size: 24px;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes buttonPulse {
    0% {
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4), 0 0 0 0 rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4), 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4), 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-advantages {
        gap: 20px;
        margin: 30px 0;
    }

    .hero-advantage {
        padding: 15px 20px;
        gap: 12px;
    }

    .hero-advantage-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .hero-advantage-title {
        font-size: 1rem;
    }

    .hero-advantage-desc {
        font-size: 0.85rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: auto;
        min-width: 200px;
        max-width: 300px;
    }
    
    .btn-primary.hero-quiz-btn {
        height: 60px;
        font-size: 18px;
        font-weight: 700;
        padding: 18px 30px;
        width: auto;
        min-width: 200px;
    }
    
    .btn-secondary {
        height: 50px;
        font-size: 16px;
        width: auto;
        min-width: 180px;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .cases-description {
        font-size: 1rem;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .calculator-description {
        font-size: 1rem;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .calculator-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .calculator-form,
    .results-container {
        padding: 30px 20px;
    }

    .preset-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .cases-row-1 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-row-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-row-1,
    .cases-row-2 {
        grid-template-columns: 1fr;
    }
    
    .quiz-options.two-columns {
        grid-template-columns: 1fr;
    }
    
    .privacy-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .privacy-features {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .privacy-feature {
        flex-direction: row;
        gap: 8px;
    }
    
    .privacy-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .quiz-overlay {
        padding: 10px;
    }
    
    .quiz-container,
    .form-container {
        padding: 20px 15px;
        margin: 0;
        max-height: 95vh;
        border-radius: 15px;
    }
    
    .quiz-header {
        margin-bottom: 20px;
    }
    
    .quiz-progress {
        margin-bottom: 20px;
    }
    
    .quiz-question {
        margin-bottom: 20px;
    }
    
    .quiz-question h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .quiz-options {
        gap: 12px;
    }
    
    .quiz-option {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .cta {
        padding: 100px 0;
        background-attachment: scroll; /* Отключаем fixed на планшетах для лучшей производительности */
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-content p {
        font-size: 1.2rem;
    }
    
    .cta-features {
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .cta-btn-primary {
        height: 60px;
        font-size: 18px;
        font-weight: 700;
        transform: scale(1);
        width: auto;
        min-width: 200px;
    }
    
    .cta-btn-secondary {
        height: 50px;
        font-size: 16px;
        width: auto;
        min-width: 220px;
    }
    
    .cta-btn-primary:hover {
        transform: scale(1.05) translateY(-2px);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-advantages {
        flex-direction: column;
        gap: 15px;
        margin: 25px 0;
    }

    .hero-advantage {
        padding: 12px 15px;
        gap: 10px;
    }

    .hero-advantage-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .hero-advantage-title {
        font-size: 0.95rem;
    }

    .hero-advantage-desc {
        font-size: 0.8rem;
    }
    
    .cases-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .calculator-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .calculator-form,
    .results-container {
        padding: 25px 15px;
    }

    .preset-btn {
        padding: 15px 10px;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary.hero-quiz-btn {
        height: 55px;
        font-size: 17px;
        font-weight: 700;
        padding: 16px 28px;
        width: auto;
        min-width: 180px;
        max-width: 280px;
    }
    
    .btn-secondary {
        height: 45px;
        font-size: 15px;
        width: auto;
        min-width: 160px;
        max-width: 280px;
    }
    
    .cta {
        background-attachment: scroll; /* Отключаем fixed на мобильных для лучшей производительности */
    }

    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-icon {
        width: 80px;
        height: 80px;
        font-size: 30px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-btn-primary {
        height: 55px;
        font-size: 17px;
        font-weight: 700;
        width: auto;
        min-width: 180px;
        max-width: 280px;
    }
    
    .cta-btn-secondary {
        height: 45px;
        font-size: 15px;
        width: auto;
        min-width: 200px;
        max-width: 280px;
    }
    
    .quiz-overlay {
        padding: 5px;
    }
    
    .quiz-container {
        padding: 15px 10px;
        max-height: 98vh;
        border-radius: 10px;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .quiz-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 15px;
        position: relative;
    }
    
    .quiz-header h2 {
        font-size: 1.1rem;
    }
    
    .quiz-progress {
        margin-bottom: 15px;
    }
    
    .quiz-question {
        margin-bottom: 15px;
    }
    
    .quiz-question h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .quiz-options {
        gap: 10px;
    }
    
    .quiz-option {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .quiz-buttons {
        flex-direction: row;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
    }
    
    .quiz-buttons .btn-outline {
        width: 45px;
        height: 45px;
        min-width: 45px;
        max-width: 45px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 16px;
        border-width: 2px;
        box-sizing: border-box;
    }
    
    .quiz-buttons .btn-outline span {
        display: none;
    }
    
    .quiz-buttons .btn-primary {
        flex: 1;
        min-width: 0;
        padding: 12px 16px;
        font-size: 14px;
        font-weight: 600;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border-radius: 22px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-company {
        flex-direction: column;
        gap: 5px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .cookie-banner {
        bottom: 15px; /* Изначально внизу */
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 12px 15px;
        transform: translateY(100px);
        border-radius: 12px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        transition: transform 0.4s ease, opacity 0.4s ease, bottom 0.3s ease;
    }
    
    .cookie-banner.move-up {
        bottom: 90px; /* Поднимаем когда появляются плавающие кнопки */
    }
    
    .cookie-banner.show {
        transform: translateY(0);
        opacity: 1;
    }
    
    .cookie-banner.hide {
        transform: translateY(100px);
        opacity: 0;
        pointer-events: none;
    }
    
    .cookie-content {
        flex-direction: row;
        gap: 12px;
        text-align: left;
        align-items: center;
    }
    
    .cookie-text {
        flex: 1;
    }
    
    .cookie-text p {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .cookie-btn {
        padding: 8px 18px;
        font-size: 13px;
        border-radius: 8px;
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .floating-buttons {
        bottom: 15px;
        left: 15px;
        right: 15px;
        transform: none;
        gap: 12px;
        max-width: calc(100vw - 30px);
        box-sizing: border-box;
    }
    
    .floating-btn {
        padding: 12px 16px;
        font-size: 14px;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 67px);
    }
    
    .floating-btn.telegram-only {
        width: 55px;
        height: 55px;
        flex: none;
    }
    
    .floating-btn.telegram-only i {
        font-size: 22px;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 375px) and (max-height: 667px) {
    .quiz-overlay {
        padding: 2px;
    }
    
    .quiz-container {
        padding: 12px 8px;
        max-height: 99vh;
        border-radius: 8px;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .quiz-header {
        margin-bottom: 12px;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        position: relative;
    }
    
    .quiz-header h2 {
        font-size: 1.1rem;
    }
    
    .quiz-progress {
        margin-bottom: 12px;
    }
    
    .progress-bar {
        height: 6px;
    }
    
    .quiz-question {
        margin-bottom: 12px;
    }
    
    .quiz-question h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .quiz-options {
        gap: 8px;
    }
    
    .quiz-option {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .quiz-buttons {
        flex-direction: row;
        gap: 8px;
        margin-top: 12px;
        padding-top: 12px;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
    }
    
    .quiz-buttons .btn-outline {
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 14px;
        border-width: 2px;
        box-sizing: border-box;
    }
    
    .quiz-buttons .btn-outline span {
        display: none;
    }
    
    .quiz-buttons .btn-primary {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
        font-size: 12px;
        font-weight: 600;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .privacy-features {
        padding: 10px;
        gap: 12px;
    }
    
    .privacy-feature span {
        font-size: 11px;
    }
    
    .floating-buttons {
        bottom: 10px;
        left: 10px;
        right: 10px;
        gap: 10px;
        max-width: calc(100vw - 20px);
        box-sizing: border-box;
    }
    
    .floating-btn {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 60px);
    }
    
    .floating-btn.telegram-only {
        width: 50px;
        height: 50px;
    }
    
    .floating-btn.telegram-only i {
        font-size: 20px;
    }
}

/* Стили для ландшафтной ориентации на мобильных */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .quiz-overlay {
        padding: 5px;
    }
    
    .quiz-container {
        padding: 10px 15px;
        max-height: 95vh;
        max-width: 100vw;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .quiz-header {
        margin-bottom: 10px;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        position: relative;
    }
    
    .quiz-header h2 {
        font-size: 1.1rem;
    }
    
    .quiz-progress {
        margin-bottom: 10px;
    }
    
    .quiz-question {
        margin-bottom: 10px;
    }
    
    .quiz-question h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .quiz-options {
        gap: 8px;
    }
    
    .quiz-option {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .quiz-buttons {
        flex-direction: row;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
        align-items: center;
        max-width: 100%;
        overflow: hidden;
    }
    
    .quiz-buttons .btn-outline {
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        font-size: 14px;
        border-width: 2px;
        box-sizing: border-box;
    }
    
    .quiz-buttons .btn-outline span {
        display: none;
    }
    
    .quiz-buttons .btn-primary {
        flex: 1;
        min-width: 0;
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 600;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        border-radius: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .privacy-features {
        flex-direction: row;
        gap: 15px;
        padding: 10px;
    }
    
    .privacy-feature {
        flex-direction: column;
        gap: 4px;
    }
}

/* Дополнительные стили для очень узких экранов */
@media (max-width: 320px) {
    .cookie-banner {
        left: 5px;
        right: 5px;
        bottom: 10px;
        padding: 8px 10px;
        border-radius: 8px;
    }
    
    .cookie-banner.move-up {
        bottom: 75px;
    }
    
    .cookie-banner.hide {
        transform: translateY(100px);
        opacity: 0;
        pointer-events: none;
    }
    
    .cookie-content {
        gap: 8px;
    }
    
    .cookie-text p {
        font-size: 11px;
        line-height: 1.3;
    }
    
    .cookie-btn {
        padding: 6px 12px;
        font-size: 11px;
        min-width: 40px;
    }
    
    .floating-buttons {
        left: 5px;
        right: 5px;
        gap: 8px;
        max-width: calc(100vw - 10px);
        box-sizing: border-box;
    }
    
    .floating-btn {
        padding: 8px 10px;
        font-size: 12px;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100% - 53px);
    }
    
    .floating-btn.telegram-only {
        width: 45px;
        height: 45px;
    }
    
    .floating-btn.telegram-only i {
        font-size: 18px;
    }
}

/* Стили для загрузки и ошибок квиза */
.quiz-loading {
    text-align: center;
    padding: 60px 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    margin-bottom: 30px;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.quiz-loading h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.quiz-loading p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.quiz-error {
    text-align: center;
    padding: 60px 20px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-icon {
    margin-bottom: 30px;
}

.error-icon i {
    font-size: 4rem;
    color: #e74c3c;
}

.quiz-error h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.quiz-error p {
    color: #7f8c8d;
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 400px;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.quiz-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-width: 160px;
    justify-content: center;
}

.quiz-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.quiz-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.quiz-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #dee2e6;
}

.quiz-btn.secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

/* Адаптивные стили для загрузки и ошибок */
@media (max-width: 768px) {
    .quiz-loading,
    .quiz-error {
        padding: 40px 15px;
        min-height: 250px;
    }
    
    .quiz-loading h3,
    .quiz-error h3 {
        font-size: 1.5rem;
    }
    
    .quiz-loading p,
    .quiz-error p {
        font-size: 1rem;
    }
    
    .error-icon i {
        font-size: 3rem;
    }
    
    .spinner {
        width: 50px;
        height: 50px;
    }
    
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .quiz-btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .quiz-loading,
    .quiz-error {
        padding: 30px 10px;
        min-height: 200px;
    }
    
    .quiz-loading h3,
    .quiz-error h3 {
        font-size: 1.3rem;
    }
    
    .quiz-loading p,
    .quiz-error p {
        font-size: 0.9rem;
    }
    
    .error-icon i {
        font-size: 2.5rem;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
}