/* ============================================= */
/*               БАЗОВЫЕ СТИЛИ                   */
/* ============================================= */
:root {
    --background-faq-question: #f8f9fa;
    --background-faq-note: #f8f9fa;
}

/* Тёмная тема */
[data-theme="dark"] {
    --background-faq-question: #2b3c4d;
    --background-faq-note: #2b3c4d;
}

/* ============================================= */
/*               ОБЩИЕ КОМПОНЕНТЫ                */
/* ============================================= */
main {
    display: block !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
}

.hero-banner {
    margin-bottom: 0;
}

.container{
    margin-top: 0;
}

section:last-child {
  margin-bottom: 2rem;
}

/* ============================================= */
/*                 HERO-BANNER                   */
/* ============================================= */
/* Общий стиль баннера */
.hero-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 2rem;
    min-height: 80vh;
    height: 100vh;
    max-height: 900px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--light-blue), var(--bg-secondary));
    transition: background 0.3s ease;
}

[data-theme="dark"] .hero-banner {
    background: linear-gradient(135deg, var(--light-blue), var(--bg-primary));
}

/* Контент */
.hero-content {
    flex: 1 1 45%;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
}

.hero-content h1 {
    color: #000;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.08;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    transition: color 0.3s ease;
}

[data-theme="dark"] .hero-content h1 {
    color: #fff;
}

.hero-title-accent {
    color: var(--primary-blue);
}

.hero-content p {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.hero-content .hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--text-blue);
    border-color: var(--text-blue);
    padding: 0.875rem 2.5rem;
    min-width: min(100%, 220px);
    max-width: min(100%, 18rem);
    white-space: normal;
    text-wrap: balance;
    line-height: 1.2;
}

.hero-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #c9d7e6;
    color: var(--text-blue);
    padding: 0.875rem 2rem;
    min-width: min(100%, 200px);
    max-width: min(100%, 18rem);
    line-height: 1.2;
}

.hero-secondary-cta:hover,
.hero-secondary-cta:focus {
    background: #f7fbff;
    border-color: #abc4dd;
    color: var(--text-blue);
}

.hero-content .hero-cta::after {
    content: "";
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("../../img/icons/arrow-right.svg") center / contain no-repeat;
    mask: url("../../img/icons/arrow-right.svg") center / contain no-repeat;
}

/* Иллюстрация */
.hero-illustration {
    flex: 0 1 auto;
    max-width: 480px;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
}

.hero-illustration img {
    width: clamp(220px, 35vw, 500px);
    height: auto;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .hero-illustration img {
    filter: brightness(0.9);
}

/* Анимация появления */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================= */
/*               ABOUT                           */
/* ============================================= */
.section-description {
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.about-features-grid {
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.about-actions{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.how-it-works-modal {
    max-width: 54rem;
}

.how-it-works-layout {
    display: grid;
    grid-template-columns: minmax(12rem, 0.85fr) minmax(0, 1.45fr);
    align-items: stretch;
    gap: 2rem;
}

.how-it-works-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.how-it-works-copy {
    display: flex;
    flex-direction: column;
}

.how-it-works-visual img {
    width: min(100%, 280px);
    height: auto;
    margin: 0.4rem 0 1rem;
}

.how-it-works-modal h3 {
    margin-bottom: 0.5rem;
    align-self: stretch;
}

.how-it-works-modal p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.how-it-works-intro {
    color: var(--text-primary);
    align-self: stretch;
    font-size: 0.9rem;
    line-height: 1.5;
}

.how-it-works-note {
    display: grid;
    grid-template-columns: 2rem 1fr;
    align-items: center;
    gap: 0.75rem;
    align-self: stretch;
    margin: 0;
    padding: 1rem;
    border: 1px solid rgba(52, 147, 209, 0.16);
    border-radius: 10px;
    background: rgba(230, 243, 255, 0.9);
    color: var(--text-primary);
    font-size: 0.86rem;
    line-height: 1.45;
    font-weight: 600;
}

.how-it-works-note img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.how-it-works-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    flex: 1;
    gap: 1rem;
    grid-template-rows: repeat(4, minmax(0, 1fr));
}

.how-it-works-steps li {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) 3rem;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem;
    border: 1px solid rgba(67, 97, 238, 0.12);
    border-radius: 14px;
    background: rgba(67, 97, 238, 0.04);
}

.how-it-works-modal .step-badge {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 243, 255, 0.96);
    border: 1px solid rgba(25, 118, 210, 0.28);
    color: var(--text-blue);
    font-weight: 700;
    font-size: 0.98rem;
    box-shadow: 0 8px 20px rgba(52, 147, 209, 0.12);
}

.how-it-works-modal .step-text {
    color: var(--text-primary);
    line-height: 1.5;
    font-weight: 600;
}

.how-it-works-modal .step-icon {
    width: 3rem;
    height: 3rem;
    padding: 0.42rem;
    border-radius: 12px;
    object-fit: contain;
}

.how-it-works-steps li:nth-child(1) .step-icon {
    background: rgba(52, 147, 209, 0.12);
}

.how-it-works-steps li:nth-child(2) .step-icon {
    background: rgba(56, 142, 60, 0.12);
}

.how-it-works-steps li:nth-child(3) .step-icon {
    background: rgba(245, 158, 11, 0.13);
}

.how-it-works-steps li:nth-child(4) .step-icon {
    background: rgba(142, 92, 246, 0.12);
}

.how-it-works-cta {
    display: grid;
    justify-items: stretch;
    margin-top: auto;
}

.how-it-works-modal .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--text-blue);
    border-color: var(--text-blue);
    color: #fff;
    margin-top: 1.5rem;
}

.how-it-works-cta p {
    margin: 0.65rem 0 0;
    color: #7a8794;
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
}

.how-it-works-modal .btn::after {
    content: "";
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
    background-color: currentColor;
    -webkit-mask: url("../../img/icons/arrow-right.svg") center / contain no-repeat;
    mask: url("../../img/icons/arrow-right.svg") center / contain no-repeat;
}

[data-theme="dark"] .how-it-works-steps li {
    border-color: rgba(76, 201, 240, 0.16);
    background: rgba(76, 201, 240, 0.08);
}

[data-theme="dark"] .how-it-works-note {
    background: rgba(76, 201, 240, 0.08);
    border-color: rgba(76, 201, 240, 0.18);
    color: var(--text-primary);
}

[data-theme="dark"] .how-it-works-modal .step-badge {
    background: rgba(74, 168, 255, 0.14);
    border-color: rgba(74, 168, 255, 0.28);
    color: var(--primary-blue);
    box-shadow: none;
}

/* ============================================= */
/*               FINAL CTA                       */
/* ============================================= */
.final-cta-section {
    display: grid;
    grid-template-columns: minmax(12rem, 0.75fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 2rem;
    margin: var(--space-xl) 0 2rem;
    padding: 2.25rem;
    border-radius: 18px;
    background: rgba(230, 243, 255, 0.92);
}

[data-theme="dark"] .final-cta-section {
    background: rgba(24, 34, 48, 0.96);
    border: 1px solid rgba(74, 168, 255, 0.16);
}

.final-cta-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.final-cta-visual img {
    width: min(100%, 260px);
    height: auto;
}

.final-cta-copy h2 {
    margin: 0 0 0.75rem;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(2rem, 3vw, 2.7rem);
    line-height: 1.08;
    font-weight: 800;
    text-align: left;
}

[data-theme="dark"] .final-cta-copy h2 {
    color: #fff;
}

.final-cta-copy p {
    max-width: 42rem;
    margin: 0 0 1.5rem;
    color: var(--text-primary);
    font-size: 1.08rem;
    line-height: 1.6;
    text-align: left;
}

[data-theme="dark"] .final-cta-copy p {
    color: var(--text-secondary);
}

.final-cta-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.final-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--text-blue);
    border-color: var(--text-blue);
    color: #fff;
    padding: 0.875rem 2.25rem;
    min-width: 12rem;
}

.final-cta-primary:hover,
.final-cta-primary:focus {
    color: #fff;
}

.final-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-blue);
    background: transparent;
    border: 0;
    padding: 0.875rem 0.25rem;
    font-weight: 700;
    text-decoration: none;
}

.final-cta-secondary:hover,
.final-cta-secondary:focus {
    color: var(--primary-blue);
    text-decoration: none;
}

/* ============================================= */
/*               FEATURES                        */
/* ============================================= */
.features-section{
    background: rgba(var(--light-gray-rgb), 0.5);
    padding: var(--space-lg) 0;
    border-radius: var(--border-radius);
    margin: var(--space-lg) 0 0;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .features-section {
    background: rgba(45, 45, 45, 0.5);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--medium-gray);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.5rem;
    background-color: var(--light-blue);
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-icon--image {
    border-radius: 50%;
}

.feature-icon--image img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.feature-icon--blue {
    background-color: #e3f2fd;
}

.feature-icon--green {
    background-color: #e8f5e9;
}

.feature-icon--violet {
    background-color: #f0e9ff;
}

[data-theme="dark"] .feature-icon {
    background-color: rgba(90, 114, 233, 0.1);
}

[data-theme="dark"] .feature-icon--blue {
    background-color: rgba(52, 147, 209, 0.16);
}

[data-theme="dark"] .feature-icon--green {
    background-color: rgba(56, 142, 60, 0.16);
}

[data-theme="dark"] .feature-icon--violet {
    background-color: rgba(142, 92, 246, 0.16);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.feature-card p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

/* ============================================= */
/*               ВОЗМОЖНОСТИ                     */
/* ============================================= */
.possibilities {
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    overflow: hidden;
}

.possibilities .section-title {
    text-align: center;
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.possibilities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: clamp(0.5rem, 1vw, 1rem);
    max-width: 1200px;
    margin: 0 auto;
    flex: 1;
}

.possibilities-grid .feature-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: clamp(0.5rem, 1vw, 1rem);
    min-height: clamp(200px, 25vh, 350px);
    background: var(--bg-secondary);
    border: 1px solid var(--medium-gray);
    transition: all 0.3s ease;
}

.possibilities-grid .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.possibilities-grid .feature-card img {
    max-height: 20vh;
    width: auto;
    object-fit: contain;
    transition: filter 0.3s ease;
}

[data-theme="dark"] .possibilities-grid .feature-card img {
    filter: brightness(0.9);
}

/* Заголовки и текст */
.possibilities-grid .feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.possibilities-grid .feature-card p {
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--text-secondary);
}

.possibilities-grid .feature-card:nth-child(1) {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.possibilities-grid .feature-card:nth-child(2) {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

.possibilities-grid .feature-card:nth-child(3) {
    grid-row: 1 / 2;
    grid-column: 3 / 4;
}

.possibilities-grid .feature-card:nth-child(4) {
    grid-row: 2 / 3;
    grid-column: 2 / 4;
}

/* ============================================= */
/*               LEARNING STEPS                  */
/* ============================================= */
.learning-steps-section {
    margin: 0 calc(-1 * clamp(1rem, 2vw, 6rem));
    padding: 2.25rem;
    border-radius: 0;
    background: rgba(248, 252, 255, 0.98);
}

[data-theme="dark"] .learning-steps-section {
    background: rgba(18, 24, 32, 0.96);
    border: 1px solid rgba(74, 168, 255, 0.12);
}

.learning-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.learning-step-card {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 1rem;
    min-height: 15rem;
    padding: 1.25rem 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.learning-step-number {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(230, 243, 255, 0.96);
    border: 1px solid rgba(25, 118, 210, 0.28);
    color: var(--text-blue);
    font-weight: 800;
}

[data-theme="dark"] .learning-step-number {
    background: rgba(74, 168, 255, 0.14);
    border-color: rgba(74, 168, 255, 0.28);
    color: var(--primary-blue);
}

.learning-step-image {
    width: 100%;
    max-width: 12rem;
    height: 9rem;
    object-fit: contain;
    justify-self: center;
}

.learning-step-copy h3 {
    margin: 0 0 0.55rem;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.25;
}

.learning-step-copy p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ============================================= */
/*                     DEMO                      */
/* ============================================= */
.demo-row {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.demo-row.reverse{
    flex-direction: row-reverse;
}

.demo-text {
    flex: 1;
    min-width: 280px;
}

.demo-text h3 {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.demo-text p {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.demo-video {
    flex: 1;
    min-width: 280px;
    max-width: 35rem;
}

.demo-video video {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow);
    height: auto;
    display: block;
    object-fit: cover;
    transition: box-shadow 0.3s ease;
}

[data-theme="dark"] .demo-video video {
    box-shadow: var(--shadow-md);
}

/* ============================================= */
/*                     FAQ                       */
/* ============================================= */
.faq-section {
    max-width: 52rem;
    margin: 0 auto;
    text-align: left;
}

.faq-section .section-title {
    text-align: center;
}

.faq-section .accordion {
    font-family: inherit;
    font-size: 1.02rem;
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--text-primary);
}

.faq-section .accordion:hover,
.faq-section .accordion.active {
    color: var(--text-primary);
}

.faq-section .accordion:focus-visible {
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.18);
}

.faq-section .panel {
    text-align: left;
}

.faq-section .panel,
.faq-section .panel p,
.faq-section .panel li {
    font-family: inherit;
    color: var(--text-secondary);
}

.faq-section .panel p,
.faq-section .panel li {
    font-size: 1rem;
    line-height: 1.65;
}

.faq-section .panel a,
.faq-section > p a {
    color: var(--primary);
    font-weight: 600;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

.faq-section .panel a:hover,
.faq-section > p a:hover {
    color: var(--secondary);
}

.faq-section > p {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================== */
/*                 АДАПТИВНОСТЬ                   */
/* ============================================== */
@media (max-width: 1024px) {
    .about-features-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 100%;
        max-width: 400px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        justify-items: center;
        width: 100%;
    }

    .learning-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .possibilities {
        max-height: none;
    }

    .possibilities-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: center;
    }

    .possibilities-grid .feature-card {
        width: 100%;
        margin: 0 auto;
        text-align: center;
        max-width: none;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .section-divider {
        margin: var(--space-lg) auto;
    }

    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: var(--space-md);
    }

    .faq-section {
        padding: var(--space-md);
    }

    .faq-question {
        padding: var(--space-sm);
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 var(--space-sm);
    }
}

@media (max-width: 768px) {
    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 3rem 1.5rem;
    }

    .hero-content, .hero-illustration {
        flex: 1 1 100%;
        animation-delay: 0.1s;
    }

    .hero-illustration img {
        max-width: 300px;
        margin-top: 2rem;
    }

    .hero-section {
        height: auto;
        padding: 100px 20px 60px;
        background-position: center;
    }

    .feature-card img {
        height: 140px;
    }

    .demo-row,
    .demo-row.reverse {
        flex-direction: column;
    }

    .faq-section .accordion {
        font-size: 1rem;
    }

    .how-it-works-steps li {
        grid-template-columns: 2.1rem minmax(0, 1fr) 2.75rem;
        gap: 0.75rem;
        padding: 0.75rem 0.85rem;
    }

    .how-it-works-modal .btn {
        margin-top: 1.25rem;
    }

    .faq-section .panel p,
    .faq-section .panel li,
    .faq-section > p {
        font-size: 0.98rem;
    }
}

/* ============================================= */
/*               HERO-BANNER MOBILE              */
/* ============================================= */
@media (max-width: 768px) {
    .hero-banner {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem 0;
        min-height: 100svh;
        height: auto;
        max-height: none;
        gap: 1.5rem;
        justify-content: flex-start;
    }

    .hero-content {
        flex: none;
        max-width: 100%;
        order: 1;
        padding: 0;
    }

    .hero-content h1 {
        font-size: 2.55rem;
        margin-bottom: 1rem;
        order: 1;
    }

    .hero-title-accent {
        color: var(--text-blue);
    }

    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
        padding: 0 0.5rem;
        order: 2;
    }

    .hero-actions {
        flex-direction: column;
        justify-content: center;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: min(100%, 310px);
    }

    .hero-illustration {
        flex: none;
        max-width: 320px;
        order: 3;
        margin: 0 auto;
    }

    .hero-illustration img {
        width: 100%;
        max-width: 280px;
        height: auto;
    }

    /* Увеличенная кнопка */
    .hero-content .hero-cta {
        padding: 0.875rem 2.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        order: 4;
    }

    .hero-secondary-cta {
        padding: 0.875rem 2rem;
        font-size: 1.1rem;
    }

    .how-it-works-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .how-it-works-visual img {
        max-width: 220px;
    }

    .final-cta-section {
        grid-template-columns: 1fr;
        text-align: left;
        padding: 2rem 1.25rem;
    }

    .final-cta-copy p {
        font-size: 1rem;
    }

    .final-cta-actions {
        justify-content: center;
    }

    .final-cta-visual img {
        max-width: 220px;
    }

    .learning-steps-grid {
        grid-template-columns: 1fr;
    }

    .learning-step-card {
        min-height: auto;
    }
}

/* Для очень маленьких экранов - адаптируем под очень низкие разрешения */
@media (max-width: 480px) {
    .hero-banner {
        padding: 2.25rem 1rem 0;
        min-height: 100svh;
        height: auto;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 0.875rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        padding: 0;
    }

    .hero-illustration {
        max-width: 280px;
    }

    .hero-illustration img {
        max-width: 240px;
    }

    .hero-content .hero-cta {
        padding: 0.8rem 2.25rem;
        font-size: 1.05rem;
    }

    .hero-secondary-cta {
        padding: 0.8rem 2rem;
        font-size: 1.05rem;
    }

    .hero-actions .btn {
        width: min(100%, 300px);
    }

    .how-it-works-modal h3 {
        padding-right: 1.5rem;
    }

    .how-it-works-steps {
        gap: 0.7rem;
    }

    .how-it-works-steps li {
        grid-template-columns: 2rem minmax(0, 1fr) 2.55rem;
        padding: 0.72rem 0.8rem;
    }

    .how-it-works-modal .step-icon {
        width: 2.55rem;
        height: 2.55rem;
        padding: 0.36rem;
        border-radius: 10px;
    }

    .how-it-works-modal .step-badge {
        width: 2rem;
        height: 2rem;
        font-size: 0.93rem;
    }

    .how-it-works-modal .step-text {
        font-size: 0.96rem;
    }

    .faq-section .accordion {
        font-size: 0.96rem;
    }

    .faq-section .panel p,
    .faq-section .panel li,
    .faq-section > p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Защита от слишком высоких экранов (ландшафтные мобильные) */
@media (max-width: 768px) and (max-height: 500px) {
    .hero-banner {
        min-height: auto;
        height: auto;
        padding: 3rem 1.5rem;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-illustration {
        max-width: 200px;
    }

    .hero-illustration img {
        max-width: 180px;
    }
}

/* Для планшетов в портретной ориентации */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-banner {
        min-height: 80svh;
        height: auto;
        padding: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

/* Улучшенные transition для плавности */
.hero-banner *,
.feature-card *,
.demo-row * {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}
