/* Home Page Styles */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Common Container */
.home-container {
    max-width: 1524px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ==================== HERO SECTION ==================== */
.home-hero {
    position: relative;
    background: linear-gradient(165deg, #f1f5f9 0%, #e3eef8 42%, #e2e8f0 100%);
    color: #0f172a;
    padding: 140px 0;
    overflow: hidden;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    background: transparent;
}

.home-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 10;
}

@media (min-width: 972px) {
    .home-hero-content {
        flex-direction: row;
        align-items: center;
    }
}

.home-hero-text {
    flex: 1;
    text-align: center;
}

@media (min-width: 972px) {
    .home-hero-text {
        text-align: right;
    }
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 16px;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #f8fafc;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #0a1931;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
}

/* Точка как в 1.html: w-2 h-2 rounded-full bg-blue */
.home-hero-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0056D2;
    margin-left: 8px;
    flex-shrink: 0;
}

.home-hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    color: #0a1931;
}

@media (min-width: 972px) {
    .home-hero-title {
        font-size: 60px;
    }
}

.home-hero-title-accent {
    background: #0056d2;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-hero-description {
    font-size: 20px;
    color: #475569;
    margin-bottom: 32px;
    max-width: 512px;
    line-height: 1.6;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 972px) {
    .home-hero-description {
        margin-left: 0;
        margin-right: 0;
        font-size: 24px;
    }
}

.home-hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .home-hero-buttons {
        flex-direction: row;
    }
}

@media (min-width: 972px) {
    .home-hero-buttons {
        justify-content: flex-start;
    }
}

.home-btn-primary {
    background: #ff6b00;
    color: white;
    font-weight: bold;
    padding: 16px 32px;
    border-radius: 9999px;
    border: 1px solid #ff6b00;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    text-decoration: none;
}

.home-btn-primary:hover {
    background: #f86e0b;
    transform: translateY(-4px);
}

.home-btn-primary svg {
    width: 20px;
    height: 20px;
}

.home-btn-secondary {
    background: #fff;
    color: #0a1931;
    border: 1px solid #e2e8f0;
    font-weight: bold;
    padding: 16px 32px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.home-btn-secondary:hover {
    background: #f7f7f7;
    border-color: #f2f2f2;
}

.home-hero-proof {
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

@media (min-width: 768px) {
    .home-hero-proof {
        justify-content: flex-start;
    }
}

.home-hero-proof-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    display: inline-block;
    animation: pulse 2s infinite;
}

.home-hero-proof-dot circle {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.home-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

@media (min-width: 768px) {
    .home-hero-visual {
        width: auto;
    }
}

@media (min-width: 972px) {
    .home-hero-visual {
        flex: 1.15;
        min-width: 0;
    }
}

.home-hero-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .home-hero-card-wrapper {
        max-width: 720px;
    }
}

@media (min-width: 972px) {
    .home-hero-card-wrapper {
        max-width: 820px;
    }
}

@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.home-hero-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blob 7s infinite;
}

/* Blur stays on the decorative layer only, so inner text stays readable */
.home-hero-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: inherit;
    filter: blur(80px);
    opacity: 0.35;
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: -1;
}

.home-hero-glow-1 {
    top: 0;
    left: -16px;
    background: #2563eb;
}

.home-hero-glow-2 {
    top: 0;
    right: -16px;
    background: #06b6d442;
    animation-delay: 2s;
    animation: blob 7s infinite;
}

.home-hero-glow ul {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-hero-glow li {
    margin: 0;
    padding: 0;
}

.home-hero-card-inner {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

/* Glow как в 1.html: absolute -top-20 -left-20 w-64 h-64 bg-blue/20 blur-3xl */
.home-hero-card-inner::before {
    content: '';
    position: absolute;
    top: -5rem;
    left: -5rem;
    width: 16rem;
    height: 16rem;
    background: rgba(0, 86, 210, 0.2);
    border-radius: 50%;
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
}

.home-hero-card-inner > * {
    position: relative;
    z-index: 1;
}

.home-hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.home-hero-card-question-num {
    font-weight: bold;
    color: #0056d2;
}

.home-hero-card-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #b91c1c;
    font-family: 'Assistant', sans-serif;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.home-hero-card-timer svg {
    width: 16px;
    height: 16px;
}

.home-hero-card-question {
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: #0f172a;
}

.home-hero-card-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-hero-card-answer {
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #334155;
}

.home-hero-card-answer:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.home-hero-card-answer-selected {
    border-color: #3b82f6;
    background: #eff6ff;
    position: relative;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
    font-weight: bold;
}

.home-hero-card-answer-selected span {
    font-weight: bold;
    color: #0f172a;
}

.home-hero-card-answer-letter {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #64748b;
    flex-shrink: 0;
}

.home-hero-card-answer-selected .home-hero-card-answer-letter {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.home-hero-card-answer-check {
    width: 24px;
    height: 24px;
    color: #2563eb;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.home-hero-card-explanation {
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #15803d;
    background: #f0fdf4;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #bbf7d0;
}

/* ==================== HOME HERO SLIDER ==================== */
.home-hero-slider.home-hero-card-inner {
    padding: 0;
    overflow: hidden;
}

.home-hero-slider.home-hero-card-inner::before {
    display: none;
}

.home-hero-slider__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 300px;
    background: #f8fafc;
}

.home-hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.home-hero-slider__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.home-hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.home-hero-slider__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    user-select: none;
    -webkit-user-drag: none;
}

.home-hero-slider__dots-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 7px;
    background: #dde6ee9c;
}

.home-hero-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.home-hero-slider__dot.is-active {
    background: #0056d2;
    transform: scale(1.15);
}

.home-hero-slider__dot:hover {
    background: #94a3b8;
}

.home-hero-slider__dot.is-active:hover {
    background: #0056d2;
}

.home-hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-hero-slider__arrow:hover {
    transform: translateY(-50%) scale(1.05);
    background: #fff;
}

.home-hero-slider__arrow--prev {
    left: 12px;
}

.home-hero-slider__arrow--next {
    right: 12px;
}

@media (min-width: 768px) {
    .home-hero-slider__viewport {
        aspect-ratio: 16 / 10;
        min-height: 420px;
    }
}

@media (min-width: 972px) {
    .home-hero-slider__viewport {
        aspect-ratio: 16 / 10;
        min-height: 500px;
    }
}

/* ==================== STATS SECTION ==================== */
.home-stats {
    padding: 48px 0;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    text-align: center;
}

@media (min-width: 768px) {
    .home-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-stats-item {
    padding: 10px;
}

.home-stats-grid .home-stats-item:nth-child(odd) .home-stats-value {
    color: #ff6b00;
}

@media (min-width: 768px) {
    .home-stats-item {
        border-left: 1px solid #e2e8f0;
        padding-right: 32px;
    }
    
    .home-stats-item:last-child {
        border-left: none;
    }
}

.home-stats-value {
    font-size: 36px;
    font-weight: 800;
    color: #3b82f6;
}

@media (min-width: 768px) {
    .home-stats-value {
        font-size: 48px;
    }
}

.home-stats-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

@media (min-width: 768px) {
    .home-stats-label {
        font-size: 16px;
    }
}

/* ==================== HOW IT WORKS SECTION ==================== */
.home-how-it-works {
    padding: 80px 0;
    background: #f8fafc;
}

.home-how-it-works-header {
    text-align: center;
    margin-bottom: 64px;
}

.home-how-it-works-title {
    font-size: 30px;
    font-weight: bold;
    color: #0a1931;
    margin-bottom: 16px;
}

@media (min-width: 768px) {
    .home-how-it-works-title {
        font-size: 36px;
    }
}

.home-how-it-works-subtitle {
    font-size: 20px;
    color: #475569;
    max-width: 672px;
    margin: 0 auto;
}

.home-how-it-works-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    position: relative;
}

@media (min-width: 768px) {
    .home-how-it-works-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-how-it-works-line {
    display: none;
}

@media (min-width: 768px) {
    .home-how-it-works-line {
        display: block;
        position: absolute;
        top: 48px;
        right: 0;
        left: 0;
        height: 2px;
        background: #e2e8f0;
        transform: translateY(-50%);
        width: 66.666%;
        margin: 0 auto;
        z-index: 0;
    }
}

.home-how-it-works-step {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.home-how-it-works-step-circle {
    width: 96px;
    height: 96px;
    background: #fff;
    border: 4px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.home-how-it-works-step-circle-1 {
    border-color: #2563eb;
    color: #3b82f6;
}

.home-how-it-works-step-circle-2 {
    background: #ffffff;
    border-color: #FF6B00;
    color: #FF6B00;
    box-shadow: 0 4px 6px -1px rgba(255, 107, 0, 0.1), 0 2px 4px -2px rgba(255, 107, 0, 0.1);
}

.home-how-it-works-step-circle-3 {
    border-color: #2563eb;
    color: #3b82f6;
}

.home-how-it-works-step-title {
    font-size: 24px;
    font-weight: bold;
    color: #0a1931;
    margin-bottom: 12px;
}

.home-how-it-works-step-text {
    color: #475569;
    padding: 0 16px;
}

/* ==================== FEATURES SECTION ==================== */
.home-features {
    padding: 80px 0;
    background: #fff;
}

.home-features-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

@media (min-width: 768px) {
    .home-features-content {
        flex-direction: row;
    }
}

.home-features-text {
    flex: 1;
}

.home-features-title {
    font-size: 30px;
    font-weight: bold;
    color: #0a1931;
    margin-bottom: 24px;
    border-right: 4px solid #ff6b00;
    padding-right: 24px;
}

@media (min-width: 768px) {
    .home-features-title {
        font-size: 36px;
    }
}

.home-features-description {
    font-size: 18px;
    color: #475569;
    margin-bottom: 32px;
    line-height: 1.6;
}

.home-features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.home-features-item {
    display: flex;
    gap: 16px;
}

.home-features-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(0, 86, 210, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0056D2;
}

.home-features-item:nth-child(2) .home-features-icon {
    background: rgba(255, 107, 0, 0.1);
    color: #FF6B00;
}

.home-features-icon svg {
    width: 24px;
    height: 24px;
}

.home-features-item-content {
    flex: 1;
}

.home-features-item-title {
    font-size: 20px;
    font-weight: bold;
    color: #0a1931;
    margin-bottom: 4px;
}

.home-features-item-text {
    color: #475569;
}

.home-features-image {
    flex: 1;
    position: relative;
}

.home-features-image-glow {
    position: absolute;
    inset: 0;
    background: #2563eb;
    border-radius: 16px;
    transform: rotate(3deg);
    opacity: 0.2;
    filter: blur(20px);
}

.home-features-img {
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid #e2e8f0;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.home-testimonials {
    padding: 80px 0;
    background: #f8fafc;
}

.home-testimonials-title {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 64px;
    color: #0a1931;
}

@media (min-width: 768px) {
    .home-testimonials-title {
        font-size: 36px;
    }
}

.home-testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
    align-items: start;
}

@media (min-width: 768px) {
    .home-testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
    }
}

.home-testimonial-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

.home-testimonial-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 107, 0, 0.3);
}



@media (min-width: 768px) {
    .home-testimonial-card-featured {
        transform: translateY(-16px);
    }
}

.home-testimonial-quote {
    font-size: 48px;
    position: absolute;
    top: 16px;
    left: 16px;
}

.home-testimonial-card:nth-child(1) .home-testimonial-quote,
.home-testimonial-card:nth-child(3) .home-testimonial-quote {
    color: #0056D2;
    opacity: 0.2;
}

.home-testimonial-card:nth-child(2) .home-testimonial-quote {
    color: #FF6B00;
    opacity: 0.2;
}

.home-testimonial-text {
    margin-bottom: 24px;
    font-style: italic;
    color: #475569;
    font-size: 16px;
    line-height: 1.6;
    flex-grow: 1;
}

.home-testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 1px solid;
    flex-shrink: 0;
}

.home-testimonial-avatar-1 {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.home-testimonial-avatar-2 {
    background: #FF6B00;
    color: #ffffff;
    border-color: #FF6B00;
}

.home-testimonial-avatar-3 {
    background: #0056D2;
    color: #ffffff;
    border-color: #0056D2;
}

.home-testimonial-info {
    flex: 1;
}

.home-testimonial-name {
    font-weight: bold;
    color: #0a1931;
}

.home-testimonial-role {
    font-size: 12px;
    color: #475569;
}

.home-testimonials-link {
    text-align: center;
}

.home-testimonials-link-text {
    color: #ff6b00;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s;
}

.home-testimonials-link-text:hover {
    color: #e56000;
}

/* ==================== CTA SECTION ==================== */
.home-cta {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.home-cta-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 86, 210, 0.06);
}

.home-cta-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #dbeafe 0%, #f1f5f9 55%, #f8fafc 100%);
}

.home-cta-content {
    text-align: center;
    position: relative;
    z-index: 10;
}

.home-cta-title {
    font-size: 30px;
    font-weight: 800;
    color: #0a1931;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .home-cta-title {
        font-size: 36px;
    }
}

.home-cta-description {
    font-size: 20px;
    color: #475569;
    margin-bottom: 32px;
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;
}

.home-cta-button {
    background: #FF6B00;
    color: #ffffff;
    font-weight: bold;
    padding: 20px 48px;
    border-radius: 9999px;
    border: 1px solid #FF6B00;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 18px;
    box-shadow: 0 0 25px rgba(255, 107, 0, 0.4);
    text-decoration: none;
    display: inline-block;
}

.home-cta-button:hover {
    background: #E56000;
    box-shadow: 0 0 35px rgba(255, 107, 0, 0.6);
    transform: translateY(-4px);
}
