/* Mobile Styles for AzbukaPay */

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }
    
    html {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }
}

/* Tablet and Mobile Header and Navigation */
@media (max-width: 992px) {
    .mobile-header-actions {
        display: flex !important;
    }
    
    .d-flex.align-items-center.gap-3 {
        display: none !important;
    }
    
    .navbar-toggler {
        width: 40px;
        height: 40px;
        padding: 0;
        background: #f1f5f9;
        border: none;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-toggler-icon {
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2847, 85, 105, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar-nav {
        margin-top: 20px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        margin: 0;
    }
}

/* Mobile Header and Navigation */
@media (max-width: 768px) {
    .header-nav {
        top: 10px;
        padding: 0 15px;
    }
    
    .header-nav .navbar {
        padding: 12px 15px;
    }
    
    .logo-icon {
        width: 35px;
        height: 36px;
    }
    
    .logo-subtract {
        width: 28px;
        height: 26px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .mobile-header-actions {
        display: flex;
    }
    
    .navbar-toggler {
        width: 40px;
        height: 40px;
        padding: 0;
        background: #f1f5f9;
        border: none;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-toggler-icon {
        width: 20px;
        height: 20px;
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2847, 85, 105, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    
    .navbar-nav {
        margin-top: 20px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        margin: 0;
    }
    
    /* Show coins in mobile */
    .coin-left {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        left: -80px;
        top: 280px;
        width: 180px;
        height: 180px;
        z-index: 0;
    }
    
    .coin-left .coin-image {
        width: 150px;
        height: 150px;
        transform: rotate(345.286deg);
        display: block !important;
    }
    
    .coin-right {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        right: -60px;
        top: 20px;
        width: 160px;
        height: 160px;
        z-index: 0;
    }
    
    .coin-right .coin-image {
        width: 130px;
        height: 130px;
        transform: rotate(9.87deg);
        display: block !important;
    }
    
    .hero-section {
        padding-top: 100px;
        padding-bottom: 60px;
        min-height: auto;
        overflow: visible;
    }
    
    .hero-section .container {
        position: relative;
        z-index: 1;
    }
    
    .hero-title {
        font-family: 'Gilroy', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
        font-size: 32px;
        line-height: 1.2;
        padding: 0 15px;
        margin-bottom: 20px;
        margin-top: 0;
    }
    
    .hero-description {
        font-size: 16px;
        padding: 0 15px;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        padding: 0 15px;
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-primary-gradient,
    .btn-outline-gradient {
        width: 100%;
    }
    
    .features-section {
        padding: 40px 0;
    }
    
    .feature-card {
        height: auto;
        min-height: 86px;
        padding: 20px 30px;
    }
    
    .features-footer {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .btn-login,
    .btn-register {
        padding: 10px 20px;
        font-size: 16px;
    }
    
    /* Hide desktop auth buttons on mobile */
    .d-flex.align-items-center.gap-3 {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 120px;
        padding-bottom: 10px;
    }
    
    .hero-title {
        font-family: 'Gilroy', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 15px;
        margin-top: 0;
    }
    
    /* Adjust coins for smaller screens */
    .coin-left {
        left: -70px;
        top: 260px;
        width: 160px;
        height: 160px;
        z-index: 0;
    }
    
    .coin-left .coin-image {
        width: 130px;
        height: 130px;
    }
    
    .coin-right {
        right: -50px;
        top: 15px;
        width: 140px;
        height: 140px;
        z-index: 0;
    }
    
    .coin-right .coin-image {
        width: 110px;
        height: 110px;
    }
    
    .hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .feature-card {
        padding: 15px 20px;
        height: auto;
        min-height: 70px;
    }
    
    .feature-text {
        font-size: 16px;
        white-space: normal;
    }
    
    .features-section {
        padding: 30px 0;
    }
}

/* Why AzbukaPay Section - Mobile Slider */
@media (max-width: 768px) {
    .why-section {
        padding: 40px 0;
    }
    
    .why-title {
        font-size: 32px;
        padding: 0 15px;
    }
    
    .why-subtitle {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .why-slider-wrapper {
        padding: 0;
        margin: 0 15px;
        overflow: hidden;
    }
    
    .why-slider-wrapper .why-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
        padding-right: 0;
        margin: 0;
        grid-template-columns: none !important;
    }
    
    .why-slider-wrapper .why-row::-webkit-scrollbar {
        display: none;
    }
    
    .why-slider-wrapper .why-row > [class*="col-"] {
        flex: 0 0 calc(60vw - 20px) !important;
        max-width: calc(60vw - 20px) !important;
        width: calc(60vw - 20px) !important;
        min-width: calc(60vw - 20px) !important;
        scroll-snap-align: start;
        padding: 0;
        margin: 0;
    }
    
    .why-slider-wrapper .why-card-large-wrapper {
        flex: 0 0 calc(60vw - 20px) !important;
        max-width: calc(60vw - 20px) !important;
        width: calc(60vw - 20px) !important;
        min-width: calc(60vw - 20px) !important;
    }
    
    /* Скрыть карточку с изображением карты в мобильной версии (6-й элемент) */
    .why-slider-wrapper .why-row > [class*="col-"]:nth-child(6) {
        display: none !important;
    }
    
    /* Скрыть пустой блок в конце (8-й элемент) */
    .why-slider-wrapper .why-row > [class*="col-"]:nth-child(8),
    .why-slider-wrapper .why-row > [class*="col-"]:empty {
        display: none !important;
    }
    
    .why-slider-wrapper .why-row::after {
        content: '';
        flex: 0 0 15px;
    }
    
    /* Убедиться, что последний слайд полностью виден */
    .why-slider-wrapper .why-row > [class*="col-"]:last-child:not(:empty) {
        margin-right: 15px;
    }
    
    .why-card-large {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        padding: 20px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }
    
    .why-card {
        padding: 20px;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        overflow: hidden;
        position: relative;
    }
    
    .why-card-icon {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0;
        margin: 0 !important;
        align-self: auto !important;
        z-index: 1;
    }
    
    .why-card-title {
        position: static !important;
        transform: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        max-width: calc(100% - 50px) !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1.2 !important;
        color: var(--text-dark) !important;
        white-space: normal !important;
        flex-shrink: 0;
    }
    
    .why-card-description {
        position: static !important;
        transform: none !important;
        margin-top: auto !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        max-width: 100% !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        color: var(--text-dark) !important;
        white-space: normal !important;
        padding-top: 0;
    }
    
    .why-card-image {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .why-card-image .card-image {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 170px;
        object-fit: contain;
    }
    
    .why-card-large .why-card-title {
        font-size: 16px !important;
        font-weight: 500 !important;
        position: static !important;
        transform: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        max-width: 100% !important;
        white-space: normal !important;
        flex-shrink: 0;
    }
    
    .why-card-large .why-card-description {
        font-size: 14px !important;
        font-weight: 400 !important;
        position: static !important;
        transform: none !important;
        margin-top: auto !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        top: auto !important;
        left: auto !important;
        bottom: auto !important;
        max-width: 100% !important;
        white-space: normal !important;
        padding-top: 0;
    }
    
    .why-card-large-image {
        display: none;
    }
    
    .why-scroll-indicator {
        display: block;
        margin-top: 20px;
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
    }
}

@media (max-width: 576px) {
    .why-title {
        font-size: 32px;
    }
    
    .why-slider-wrapper .why-card {
        padding: 20px;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .why-slider-wrapper .why-card-icon {
        width: 20px !important;
        height: 20px !important;
        top: 20px !important;
        right: 20px !important;
    }
    
    .why-slider-wrapper .why-card-title {
        margin-bottom: 8px !important;
        font-size: 16px !important;
    }
    
    .why-slider-wrapper .why-card-image {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        padding: 15px;
    }
    
    .why-slider-wrapper .why-card-large {
        padding: 20px;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .why-slider-wrapper .why-card-large .why-card-title {
        font-size: 16px !important;
    }
    
    .why-slider-wrapper .why-card-large .why-card-description {
        font-size: 14px !important;
    }
}

/* Connection Section - Mobile Slider */
@media (max-width: 768px) {
    .connection-section {
        padding: 60px 0;
    }
    
    .connection-title {
        font-size: 32px;
        padding: 0 15px;
    }
    
    .connection-subtitle {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .connection-slider-wrapper {
        padding: 0;
        margin: 0 15px;
        overflow: hidden;
    }
    
    .connection-slider-wrapper .connection-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
        padding-right: 0;
        margin: 0;
        grid-template-columns: none !important;
    }
    
    .connection-slider-wrapper .connection-row::-webkit-scrollbar {
        display: none;
    }
    
    .connection-slider-wrapper .connection-row > [class*="col-"] {
        flex: 0 0 calc(60vw - 20px) !important;
        max-width: calc(60vw - 20px) !important;
        width: calc(60vw - 20px) !important;
        min-width: calc(60vw - 20px) !important;
        scroll-snap-align: start;
        padding: 0;
        margin: 0;
    }
    
    .connection-slider-wrapper .connection-row::after {
        content: '';
        flex: 0 0 15px;
    }
    
    /* Убедиться, что последний слайд полностью виден */
    .connection-slider-wrapper .connection-row > [class*="col-"]:last-child:not(:empty) {
        margin-right: 15px;
    }
    
    .connection-card {
        height: auto !important;
        min-height: 280px !important;
        max-height: none !important;
        padding: 20px;
        padding-bottom: 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        overflow: hidden;
        position: relative;
    }
    
    /* Убрать hover эффект в мобильной версии */
    .connection-card:hover {
        transform: none !important;
        box-shadow: var(--shadow) !important;
    }
    
    .connection-number {
        position: absolute !important;
        top: 20px !important;
        left: 20px !important;
        font-size: 80px !important;
        font-weight: 600 !important;
        transform: none !important;
        margin: 0 !important;
        line-height: 1 !important;
        background: none !important;
        -webkit-text-fill-color: var(--primary-blue) !important;
        color: var(--primary-blue) !important;
    }
    
    .connection-number-active {
        color: var(--white) !important;
        -webkit-text-fill-color: var(--white) !important;
        background: none !important;
    }
    
    .connection-icon {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 32px !important;
        height: 32px !important;
        left: auto !important;
        z-index: 1;
    }
    
    .connection-content {
        position: absolute !important;
        top: 130px !important;
        bottom: auto !important;
        left: 20px !important;
        right: 20px !important;
        transform: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
        width: auto;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .connection-card-title {
        font-size: 18px !important;
        font-weight: 500 !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }
    
    .connection-card-description {
        font-size: 16px !important;
        font-weight: 400 !important;
        white-space: normal !important;
        margin: 0 !important;
        line-height: 1.2 !important;
    }
    
    /* Кнопка на всю ширину */
    .connection-section .btn-connection {
        width: calc(100% - 30px) !important;
        margin: 20px 15px 0 !important;
        padding: 12px 30px;
        display: block;
    }
    
    .connection-scroll-indicator {
        display: block;
        margin-top: 20px;
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
        height: 4px;
        background: #e2e8f0;
        border-radius: 2px;
        overflow: hidden;
    }
    
    .connection-scroll-progress {
        height: 100%;
        background: linear-gradient(165.22deg, var(--primary-blue) 1.941%, var(--primary-blue-dark) 98.507%);
        border-radius: 2px;
        width: 0%;
        transition: width 0.1s ease;
    }
}

@media (max-width: 576px) {
    .connection-title {
        font-size: 32px;
    }
    
    .connection-number {
        font-size: 80px !important;
    }
    
    .connection-content {
        margin-top: auto !important;
        padding-top: 70px !important;
    }
}

/* Business Section - Mobile Slider */
@media (max-width: 768px) {
    .business-section {
        padding: 60px 0;
    }
    
    .business-title {
        font-size: 32px;
        padding: 0 15px;
    }
    
    .business-subtitle {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .business-slider-wrapper {
        padding: 0;
        margin: 0 15px;
        overflow: hidden;
        width: calc(100% - 30px);
    }
    
    .business-slider-wrapper .business-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
        padding-left: 15px;
        padding-right: 15px;
        margin: 0;
        grid-template-columns: none !important;
    }
    
    /* Увеличить отступ для первого слайда */
    .business-slider-wrapper .business-row > [class*="col-"]:first-child {
        margin-left: 0 !important;
    }
    
    .business-slider-wrapper .business-row::-webkit-scrollbar {
        display: none;
    }
    
    .business-slider-wrapper .business-row > [class*="col-"] {
        flex: 0 0 calc(100vw - 90px) !important;
        max-width: calc(100vw - 90px) !important;
        width: calc(100vw - 90px) !important;
        min-width: calc(100vw - 90px) !important;
        scroll-snap-align: start;
        padding: 0;
        margin: 0;
    }
    
    /* Первый слайд уже имеет отступ через padding-left контейнера (15px) */
    
    /* Убрать отступ у последнего слайда */
    .business-slider-wrapper .business-row > [class*="col-"]:last-child {
        margin-right: 0 !important;
    }
    
    /* Убрать псевдоэлемент после последнего слайда */
    .business-slider-wrapper .business-row::after {
        display: none !important;
    }
    
    /* Убрать hover эффект в мобильной версии */
    .business-card:hover {
        transform: none !important;
        box-shadow: var(--shadow) !important;
    }
    
    .business-card {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        width: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .business-card-title {
        position: absolute !important;
        left: 24px !important;
        top: 24px !important;
        transform: none !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        white-space: normal !important;
        max-width: calc(100% - 48px) !important;
        z-index: 2;
        margin: 0 !important;
    }
    
    .business-card-image {
        position: absolute !important;
        bottom: 0 !important;
        right: 0 !important;
        left: auto !important;
        top: auto !important;
        margin: 0 !important;
        width: auto !important;
        max-width: 50% !important;
        height: auto !important;
        max-height: 80% !important;
        z-index: 1;
    }
    
    .business-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    /* Исправить позиционирование для разных карточек */
    .business-card-1 .business-card-image {
        right: 10px;
        bottom: 10px;
        max-width: 45%;
    }
    
    .business-card-2 .business-card-image {
        right: 10px;
        bottom: 10px;
        max-width: 40%;
    }
    
    .business-card-3 .business-card-image {
        right: 10px;
        bottom: 10px;
        max-width: 40%;
    }
    
    .business-card-4 .business-card-image {
        right: 10px;
        bottom: 10px;
        max-width: 50%;
    }
    
    .business-card-5 .business-card-image {
        right: 10px;
        bottom: 10px;
        max-width: 45%;
    }
    
    /* Последний слайд - исправить текст */
    .business-card-6 {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .business-card-6-content {
        position: static !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        z-index: 2;
        display: block;
        height: 0;
        overflow: visible;
    }
    
    .business-card-6 .business-card-title-active {
        position: absolute !important;
        top: 24px !important;
        left: 24px !important;
        right: auto !important;
        bottom: auto !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        max-width: calc(100% - 48px) !important;
        font-size: 18px !important;
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding-bottom: 0 !important;
        display: block;
        line-height: 1.2 !important;
    }
    
    /* Подзаголовок позиционируется относительно карточки */
    .business-card-6 .business-card-subtitle {
        position: absolute !important;
        bottom: 24px !important;
        left: 24px !important;
        top: auto !important;
        right: auto !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        max-width: 50% !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 14px !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
        z-index: 3;
        display: block;
    }
    
    .business-card-6 .business-card-image,
    .business-card-image-active {
        position: absolute !important;
        right: 10px !important;
        bottom: 10px !important;
        left: auto !important;
        top: auto !important;
        width: auto !important;
        max-width: 40% !important;
        height: auto !important;
        max-height: 70% !important;
        z-index: 1;
    }
    
    .business-scroll-indicator {
        display: block;
        margin-top: 20px;
        margin-left: 15px;
        margin-right: 15px;
        width: calc(100% - 30px);
        height: 4px;
        background: #e2e8f0;
        border-radius: 2px;
        overflow: hidden;
    }
    
    .business-scroll-progress {
        height: 100%;
        background: linear-gradient(165.22deg, var(--primary-blue) 1.941%, var(--primary-blue-dark) 98.507%);
        border-radius: 2px;
        width: 0%;
        transition: width 0.1s ease;
    }
}

@media (max-width: 576px) {
    .business-title {
        font-size: 32px;
    }
}

/* Tariff Section - Tablet */
@media (max-width: 1200px) and (min-width: 769px) {
    .tariff-section {
        padding: 60px 0;
    }
    
    .tariff-container {
        padding: 0 30px;
    }
    
    .tariff-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .tariff-card {
        flex: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 450px !important;
        padding: 40px 35px !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .tariff-card-title {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: calc(100% - 180px) !important;
        margin-bottom: 20px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        font-size: 28px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        color: #0f172a !important;
        z-index: 2 !important;
    }
    
    .tariff-card-value {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        font-size: 80px !important;
        font-weight: 700 !important;
        color: var(--primary-blue) !important;
        margin-bottom: 20px !important;
        margin-top: 0 !important;
        z-index: 2 !important;
        width: calc(100% - 180px) !important;
        line-height: 1 !important;
    }
    
    .tariff-card-description {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: calc(100% - 180px) !important;
        margin-bottom: 30px !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        color: #475569 !important;
        z-index: 2 !important;
    }
    
    .tariff-card-btn {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 500px !important;
        margin-top: auto !important;
        padding: 12px 30px !important;
        z-index: 2 !important;
    }
    
    .tariff-card-image {
        display: block !important;
        position: absolute !important;
        right: -30px !important;
        top: -30px !important;
        left: auto !important;
        transform: none !important;
        width: 220px !important;
        height: 220px !important;
        min-width: 220px !important;
        min-height: 220px !important;
        max-width: 220px !important;
        max-height: 220px !important;
        z-index: 1 !important;
    }
    
    .tariff-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        object-position: center;
    }
}

/* Tariff Section - Mobile */
@media (max-width: 768px) {
    .tariff-section {
        padding: 60px 0;
        overflow-x: hidden;
        overflow-y: visible;
        width: 100%;
        max-width: 100vw;
    }
    
    .tariff-container {
        padding: 0 15px;
        overflow-x: hidden;
        overflow-y: visible;
        width: 100%;
        max-width: 100vw;
    }
    
    .tariff-wrapper {
        overflow-x: hidden;
        overflow-y: visible;
        width: 100%;
    }
    
    .tariff-filters {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Скрыть фильтры "Сфера бизнеса" и "Оборот" в мобильной версии */
    .tariff-filter-group {
        display: none !important;
    }
    
    .tariff-card {
        height: auto;
        min-height: 400px;
        padding: 24px 20px 30px;
        position: relative;
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: visible;
        width: 100%;
    }
    
    .tariff-card-title {
        position: relative;
        left: auto;
        top: auto;
        width: calc(100% - 120px);
        margin-bottom: 20px;
        margin-top: 0;
        padding-top: 0;
        font-size: 24px;
        font-weight: 600;
        line-height: 1.3;
        color: #0f172a;
        z-index: 2;
    }
    
    .tariff-card-value {
        position: relative;
        left: auto;
        top: auto;
        font-size: 56px;
        font-weight: 700;
        color: var(--primary-blue);
        margin-bottom: 16px;
        margin-top: 0;
        z-index: 2;
        width: calc(100% - 120px);
        line-height: 1;
    }
    
    .tariff-card-description {
        position: relative;
        left: auto;
        top: auto;
        width: calc(100% - 120px);
        margin-bottom: 24px;
        font-size: 14px;
        line-height: 1.5;
        color: #475569;
        z-index: 2;
    }
    
    .tariff-card-btn {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: auto;
        padding: 12px 20px;
        z-index: 2;
    }
    
    .tariff-card-image {
        display: block !important;
        position: absolute !important;
        right: -20px;
        top: -20px;
        transform: none;
        width: 160px !important;
        height: 160px !important;
        min-width: 160px !important;
        min-height: 160px !important;
        max-width: 160px !important;
        max-height: 160px !important;
        z-index: 1;
    }
    
    .tariff-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        object-position: center;
    }
}

/* Extra small screens - ensure percentage image is visible */
@media (max-width: 415px) {
    .tariff-card-image {
        right: -10px !important;
        top: -10px !important;
        width: 140px !important;
        height: 140px !important;
        min-width: 140px !important;
        min-height: 140px !important;
        max-width: 140px !important;
        max-height: 140px !important;
    }
    
    .tariff-card-title {
        width: calc(100% - 100px) !important;
    }
    
    .tariff-card-value {
        width: calc(100% - 100px) !important;
        font-size: 48px !important;
    }
    
    .tariff-card-description {
        width: calc(100% - 100px) !important;
    }
}

/* CTA Section - Mobile */
@media (max-width: 768px) {
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-container {
        padding: 0 15px;
    }
    
    .cta-block {
        padding: 32px 20px;
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: auto;
        position: relative;
        overflow: hidden;
    }
    
    .cta-content {
        position: static;
        width: 100%;
        max-width: 100%;
        height: auto;
        left: auto;
        top: auto;
        padding: 0;
        z-index: 2;
    }
    
    .cta-header {
        width: 100%;
        margin-bottom: 24px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-title {
        font-family: 'Gilroy', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
        font-weight: 600;
        font-size: 32px;
        line-height: 1.2;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0;
        margin: 0;
        color: var(--white);
    }
    
    .cta-subtitle {
        font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
        font-weight: 600;
        font-size: 16px;
        line-height: 1.2;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0;
        margin: 0;
        color: #e8efff;
    }
    
    .cta-form {
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .cta-form-fields {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-btn {
        width: auto;
        min-width: 200px;
        max-width: 70%;
        margin: 0;
    }
    
    .cta-image-wrapper {
        display: block;
        position: absolute;
        right: -20px;
        bottom: -40px;
        width: 200px;
        height: 140px;
        transform: rotate(15deg);
        z-index: 1;
        pointer-events: none;
        overflow: visible;
    }
    
    .cta-card-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        position: relative;
        left: 0;
        top: 0;
    }
}

@media (max-width: 576px) {
    .cta-block {
        padding: 24px 16px;
    }
    
    .cta-header {
        margin-bottom: 20px;
        gap: 10px;
    }
    
    .cta-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .cta-subtitle {
        font-size: 14px;
        line-height: 1.2;
    }
    
    .cta-form {
        gap: 20px;
    }
    
    .cta-image-wrapper {
        width: 160px;
        height: 110px;
        right: -15px;
        bottom: -30px;
    }
    
    .cta-btn {
        min-width: 180px;
        max-width: 75%;
    }
}

/* Platform Section - Mobile */
@media (max-width: 768px) {
    .platform-section {
        padding: 60px 0;
    }
    
    .platform-container {
        padding: 0 15px;
    }
    
    .platform-header {
        margin-bottom: 30px;
    }
    
    .platform-title {
        font-size: 24px;
        padding: 0 15px;
    }
    
    .platform-subtitle {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .platform-cards {
        flex-direction: column;
        gap: 20px;
    }
    
    .platform-card {
        flex: 1;
        width: 100%;
        height: auto;
        min-height: 201px;
        padding: 30px 20px;
        position: relative;
        overflow: hidden;
    }
    
    .platform-card-blue {
        padding: 32px 20px;
        border-radius: 8px;
    }
    
    .platform-card-content {
        width: 100%;
        max-width: 100%;
        position: relative;
        z-index: 2;
        gap: 12px;
    }
    
    .platform-card-title {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 22px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        margin: 0 !important;
    }
    
    .platform-card-title-white {
        color: #ffffff !important;
    }
    
    .platform-card-text {
        font-family: 'Montserrat', sans-serif !important;
        font-size: 16px !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
        color: #f2f6ff !important;
        margin: 0 !important;
    }
    
    .platform-card-list {
        font-size: 16px !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
        color: var(--text-dark) !important;
    }
    
    .platform-card-list li {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }
    
    .platform-card-image {
        display: block;
        position: absolute;
        right: -20px;
        bottom: -20px;
        width: 180px;
        height: 180px;
        z-index: 1;
        pointer-events: none;
        overflow: visible;
    }
    
    .platform-card-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 576px) {
    .platform-card-blue {
        padding: 24px 16px;
    }
    
    .platform-card-title {
        font-size: 18px !important;
    }
    
    .platform-card-text {
        font-size: 14px !important;
        line-height: 1.3 !important;
    }
    
    .platform-card-list {
        font-size: 14px !important;
    }
    
    .platform-card-list li {
        font-size: 14px !important;
    }
    
    .platform-card-image {
        width: 140px;
        height: 140px;
        right: -15px;
        bottom: -15px;
    }
}

/* Footer - Mobile */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-logo {
        margin-bottom: 30px;
    }
    
    .footer-logo-text {
        position: relative;
        left: auto;
        top: auto;
        font-size: 48px;
    }
    
    .footer-column {
        width: 100%;
    }
    
    .footer-contact {
        margin-bottom: 20px;
    }
}
