/* Mobile Styles - Separate file for mobile-specific overrides */

/* ============================================
   MOBILE BREAKPOINTS
   ============================================ */

/* Large Tablets and below (992px) */
@media (max-width: 992px) {
    :root {
        --container-padding: 20px;
        --font-size-5xl: 40px;
        --font-size-4xl: 32px;
    }
    
    .header__logo-img {
        height: 45px;
    }
    
    .header__nav {
        gap: var(--spacing-md);
    }
    
    .header__nav-list {
        gap: var(--spacing-md);
    }
    
    .header__actions {
        gap: var(--spacing-md);
    }
    
    .btn {
        padding: 12px 20px;
        font-size: var(--font-size-sm);
    }
    
    .hero__wrapper {
        grid-template-columns: 1fr 420px;
        gap: var(--spacing-3xl);
    }
    
    .hero__title {
        font-size: 40px;
    }
    
    /* Cases Section for tablets */
    .cases-section {
        padding: var(--spacing-4xl) 0;
    }
    
    .cases__title {
        font-size: var(--font-size-2xl);
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--spacing-4xl);
    }
    
    .cases__subtitle {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-md);
    }
    
    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--spacing-3xl);
    }
    
    .case-card {
        padding: var(--spacing-lg);
        min-height: 180px;
    }
    
    .case-card__title {
        font-size: 15px;
    }
    
    .btn--white {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .cases__disclaimer {
        font-size: var(--font-size-xs);
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Tablets and below (768px) */
@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
        --header-height: 70px;
        --font-size-5xl: 32px;
        --font-size-4xl: 28px;
        --font-size-3xl: 24px;
        --font-size-2xl: 20px;
    }
    
    /* Fix for anchor links overlapping with fixed header */
    section[id],
    footer[id] {
        scroll-margin-top: calc(var(--header-height) + var(--spacing-4xl));
        padding-top: calc(var(--header-height) + var(--spacing-4xl));
    }
    
    /* Hero section exception - already has padding */
    .hero[id] {
        padding-top: calc(var(--header-height) + var(--spacing-lg));
    }
    
    /* Header Mobile Styles */
    .header {
        padding: 16px 0;
    }
    
    .header__logo-img {
        height: 42px;
    }
    
    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 50%;
        transform: translate(-50%, -20px);
        width: 90%;
        max-width: 400px;
        background-color: var(--color-dark);
        flex-direction: column;
        padding: var(--spacing-xl) var(--spacing-lg);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-xl);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease-in-out;
        overflow: visible;
        height: auto;
    }
    
    .header__nav.active {
        transform: translate(-50%, 0);
        opacity: 1;
        visibility: visible;
    }
    
    .header__nav-list {
        flex-direction: column;
        gap: var(--spacing-xs);
        width: 100%;
    }
    
    .header__nav-item {
        width: 100%;
        border-bottom: none;
    }
    
    .header__nav-link {
        display: block;
        padding: var(--spacing-lg);
        font-size: var(--font-size-lg);
        text-align: center;
        border-radius: var(--radius-md);
        background-color: rgba(255, 255, 255, 0.05);
        transition: all var(--transition-base);
    }
    
    .header__nav-link:hover,
    .header__nav-link:active {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-2px);
    }
    
    .header__nav-link::after {
        display: none;
    }
    
    .header__actions {
        display: none;
    }
    
    .header__mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    
    /* Mobile Language Switcher in Menu - show on mobile */
    .header__nav-item--languages {
        display: flex !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: var(--spacing-sm);
        padding-top: var(--spacing-sm);
        gap: var(--spacing-xs);
    }
    
    .header__nav-language {
        flex: 1;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: var(--spacing-md);
        background-color: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        color: var(--color-white);
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-medium);
        cursor: pointer;
        transition: all var(--transition-base);
    }
    
    .header__nav-language:hover,
    .header__nav-language:active {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .header__nav-language.active {
        background-color: rgba(0, 85, 162, 0.3);
        border-color: var(--color-primary-blue);
    }
    
    .header__nav-language .fi {
        width: 20px;
        height: 15px;
        border-radius: 2px;
    }
    
    /* Hero Mobile Styles */
    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + var(--spacing-lg));
        padding-bottom: var(--spacing-4xl);
    }
    
    .hero__wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }
    
    .hero__content {
        padding-right: 0;
        text-align: center;
    }
    
    .hero__title {
        font-size: 32px;
        line-height: 1.2;
    }
    
    .hero__form-card {
        padding: var(--spacing-xl);
    }
    
    .form-card__heading {
        font-size: var(--font-size-xl);
    }
    
    /* Steps Section Tablet */
    .steps-section {
        padding-bottom: var(--spacing-3xl);
    }
    
    .steps-section .section-heading {
        font-size: var(--font-size-3xl);
        margin-top: var(--spacing-5xl);
        margin-bottom: var(--spacing-3xl);
    }
    
    .steps__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-2xl) var(--spacing-lg);
    }
    
    .step-card__number {
        font-size: var(--font-size-3xl);
    }
    
    .step-card__image-wrapper {
        height: 180px;
    }
    
    /* Services Section Tablet */
    .services-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-3xl);
    }
    
    /* Knowledge Section Tablet */
    .knowledge-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .knowledge__wrapper {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }
    
    .knowledge__title {
        font-size: var(--font-size-2xl);
    }
    
    .knowledge__cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Statistics Section Tablet */
    .stats-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .stats__grid {
        gap: var(--spacing-3xl);
        margin-bottom: var(--spacing-4xl);
    }
    
    .stat-item__number {
        font-size: var(--font-size-5xl);
    }
    
    .stat-item__label {
        font-size: var(--font-size-base);
    }
    
    .testimonial-block {
        padding: var(--spacing-4xl) var(--spacing-3xl);
    }
    
    .testimonial-block__text {
        font-size: var(--font-size-xl);
    }
    
    /* Cases Section Tablet */
    .cases-section {
        padding: var(--spacing-3xl) 0;
    }
    
    .cases__title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-4xl);
    }
    
    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-3xl);
    }
}

/* Mobile Phones (576px) */
@media (max-width: 576px) {
    :root {
        --container-padding: 16px;
        --font-size-5xl: 28px;
        --font-size-4xl: 24px;
        --font-size-3xl: 20px;
        --font-size-2xl: 18px;
        --font-size-xl: 18px;
        --spacing-3xl: 32px;
        --spacing-4xl: 48px;
    }
    
    /* Header Extra Small Mobile */
    .logo-link {
        font-size: var(--font-size-lg);
    }
    
    .header__logo-img {
        height: 36px;
    }
    
    .header__nav {
        padding: var(--spacing-md);
    }
    
    .header__nav-link {
        font-size: var(--font-size-base);
        padding: var(--spacing-sm) 0;
    }
    
    /* Hero Extra Small Mobile */
    .hero {
        padding-bottom: var(--spacing-3xl);
    }
    
    .hero__wrapper {
        gap: var(--spacing-xl);
    }
    
    .hero__title {
        font-size: 26px;
        line-height: 1.25;
    }
    
    .hero__form-card {
        padding: var(--spacing-lg);
    }
    
    .form-card__heading {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-lg);
    }
    
    /* Form Elements Mobile */
    .form__label {
        font-size: var(--font-size-xs);
        margin-bottom: 6px;
    }
    
    .form__input,
    .form__select {
        padding: 12px 14px;
        font-size: var(--font-size-sm);
    }
    
    .form__phone-wrapper {
        display: flex;
        flex-direction: row;
        gap: 8px;
    }
    
    .form__phone-prefix {
        flex-shrink: 0;
        width: auto;
        min-width: 110px;
        padding: 12px 10px;
    }
    
    .form__input--phone {
        flex: 1;
        min-width: 0;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: var(--font-size-sm);
    }
    
    .btn--submit {
        padding: 14px 20px;
        font-size: var(--font-size-base);
    }
    
    /* Reduce spacing on small screens */
    .form__group {
        margin-bottom: var(--spacing-sm);
    }
    
    /* Steps Section Mobile */
    .steps-section {
        padding-bottom: var(--spacing-2xl);
    }
    
    .steps-section .section-heading {
        font-size: var(--font-size-2xl);
        margin-top: var(--spacing-5xl);
        margin-bottom: var(--spacing-xl);
        padding: 0 var(--spacing-sm);
    }
    
    .steps__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .step-card {
        align-items: flex-start;
        text-align: left;
    }
    
    .step-card__number {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-sm);
    }
    
    .step-card__image-wrapper {
        height: 180px;
        margin-top: var(--spacing-md);
    }
    
    .step-card__title {
        font-size: var(--font-size-base);
    }
    
    .step-card__description {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-md);
    }
    
    /* Services Section Mobile */
    .services-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .service-card__title {
        font-size: var(--font-size-lg);
    }
    
    .service-card__description {
        font-size: var(--font-size-sm);
    }
    
    /* Knowledge Section Mobile */
    .knowledge-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .knowledge__wrapper {
        gap: var(--spacing-2xl);
    }
    
    .knowledge__title {
        font-size: var(--font-size-xl);
    }
    
    .knowledge__text {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-xs);
    }
    
    .knowledge__cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
        margin: var(--spacing-md) 0;
    }
    
    .info-card {
        padding: var(--spacing-sm);
    }
    
    .info-card__icon-img {
        width: 28px;
        height: 28px;
    }
    
    .info-card__title {
        font-size: var(--font-size-base);
    }
    
    .info-card__description {
        font-size: var(--font-size-xs);
    }
    
    /* Statistics Section Mobile */
    .stats-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .stats__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        margin-bottom: var(--spacing-3xl);
    }
    
    .stat-item__number {
        font-size: var(--font-size-4xl);
    }
    
    .stat-item__label {
        font-size: var(--font-size-sm);
    }
    
    .testimonial-block {
        padding: var(--spacing-3xl) var(--spacing-lg);
    }
    
    .testimonial-block__quote-img {
        width: 36px;
        height: auto;
    }
    
    .testimonial-block__text {
        font-size: var(--font-size-lg);
    }
    
    .testimonial-block__text br {
        display: none;
    }
    
    /* Cases Section Mobile */
    .cases-section {
        padding: var(--spacing-2xl) 0;
    }
    
    .cases__title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-3xl);
    }
    
    .cases__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-2xl);
    }
    
    .case-card {
        padding: var(--spacing-lg);
        min-height: auto;
    }
    
    .case-card__title {
        font-size: var(--font-size-sm);
        gap: 8px;
    }
    
    .case-card__check {
        width: 16px;
        height: 16px;
    }
    
    .btn--white {
        padding: 10px 20px;
        font-size: var(--font-size-xs);
    }
    
    .cases__disclaimer {
        font-size: var(--font-size-xs);
    }
}

/* Advantages Section Responsive */
/* iPad Pro Landscape and below */
@media (max-width: 1024px) {
    .advantages__title {
        font-size: 36px;
    }
    .advantages__item-title {
        font-size: 20px;
    }
    .advantages__item-text {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .advantages-section { padding: var(--spacing-4xl) 0; }
    .advantages__grid { 
        grid-template-columns: 1fr; 
        gap: var(--spacing-3xl); 
    }
    .advantages__image-wrapper {
        max-width: 100%;
        height: auto;
        min-height: 400px;
    }
    .advantages__content-col {
        height: auto;
    }
    .advantages__list {
        gap: 12px;
    }
}

/* iPad Portrait */
@media (max-width: 768px) {
    .advantages__title {
        font-size: 32px;
        margin-bottom: 10px;
    }
    .advantages__lead {
        font-size: 16px;
        margin-bottom: 14px;
    }
    .advantages__item-title {
        font-size: 18px;
        margin-bottom: 3px;
    }
    .advantages__item-text {
        font-size: 15px;
        line-height: 1.5;
    }
}

/* Large Mobile */
@media (max-width: 640px) {
    .advantages__title {
        font-size: 28px;
    }
    .advantages__item-title {
        font-size: 16px;
    }
    .advantages__item-text {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .advantages-section { padding: var(--spacing-2xl) 0; }
    .advantages__grid { gap: var(--spacing-2xl); }
    .advantages__title { 
        font-size: 24px;
        margin-bottom: 8px;
    }
    .advantages__lead { 
        font-size: 14px;
        margin-bottom: 12px;
    }
    .advantages__image-wrapper {
        min-height: 300px;
    }
    .advantages__item-title {
        font-size: 15px;
        margin-bottom: 2px;
    }
    .advantages__item-text {
        font-size: 13px;
    }
    .advantages__list {
        gap: 10px;
    }
}

/* Footer Responsive */
@media (max-width: 576px) {
    .site-footer { padding: var(--spacing-xl) 0; }
}

/* Modal Responsive */
@media (max-width: 576px) {
    .modal-content {
        padding: 40px 24px;
        max-width: 90%;
    }
    
    .modal-close {
        top: 16px;
        right: 16px;
        width: 28px;
        height: 28px;
    }
    
    .modal-close svg {
        width: 20px;
        height: 20px;
    }
    
    .modal-icon-img {
        width: 56px;
        height: 56px;
    }
    
    .modal-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .modal-text {
        font-size: 14px;
    }
}
/* CTA Lead Section Responsive */
@media (max-width: 992px) {
    .cta-section {
        padding: var(--spacing-3xl) 0;
    }
    .cta__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        padding: var(--spacing-xl);
    }
    .cta__title {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 576px) {
    .cta__grid {
        padding: var(--spacing-lg);
    }
    .cta__title {
        font-size: var(--font-size-xl);
    }
}

/* Extra Small Mobile (400px and below) */
@media (max-width: 400px) {
    :root {
        --container-padding: 12px;
        --font-size-5xl: 24px;
    }
    
    .hero__title {
        font-size: 24px;
    }
    
    .hero__form-card {
        padding: var(--spacing-md);
    }
    
    .cta__grid {
        padding: var(--spacing-md);
    }
    
    .form-card__heading {
        font-size: var(--font-size-base);
    }
    
    /* Country Dropdown - full width mobile with fixed positioning */
    .country-selector {
        position: static;
    }
    
    .country-dropdown {
        position: fixed;
        left: 16px;
        right: 16px;
        width: auto;
        max-width: none;
        top: auto;
        transform: translateY(0);
    }
    
    .country-dropdown:not(.active) {
        transform: translateY(0);
    }
    
    .form__phone-prefix {
        min-width: 100px;
        padding: 10px 8px;
        gap: 4px;
    }
    
    .form__prefix-text {
        font-size: 14px;
    }
}

/* Restore normal positioning on larger screens */
@media (min-width: 401px) {
    .country-selector {
        position: relative;
    }
    
    .country-dropdown {
        position: absolute;
        top: calc(100% + 4px);
        bottom: auto;
    }
}

/* Benefits Section Responsive */
@media (max-width: 992px) {
    .benefits-section {
        padding: var(--spacing-3xl) 0;
    }
    .benefits__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }
}

@media (max-width: 576px) {
    .benefits__title {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-2xl);
    }
    .benefit-item__avatar {
        width: 96px;
        height: 96px;
    }
    .benefit-item__title {
        font-size: var(--font-size-base);
    }
    .benefit-item__text {
        font-size: var(--font-size-xs);
    }
}

/* Mobile-specific utilities */
@media (max-width: 768px) {
    /* Hide on mobile */
    .hide-mobile {
        display: none !important;
    }
    
    /* Show only on mobile */
    .show-mobile {
        display: block !important;
    }
    
    /* Full width on mobile */
    .full-width-mobile {
        width: 100% !important;
    }
    
    /* Center text on mobile */
    .center-mobile {
        text-align: center !important;
    }
    
    /* PHASE 1: Prevent horizontal scroll */
    html {
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* PHASE 1: Ensure all images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* PHASE 1: Touch Targets - minimum 44px */
    .btn,
    .header__nav-link,
    .form__phone-prefix,
    .country-dropdown__item {
        min-height: 44px;
    }
    
    .country-dropdown__item {
        padding: 12px 16px;
        align-items: center;
    }
    
    /* High z-index for fixed dropdown */
    .country-dropdown {
        z-index: 1500;
    }
    
    /* PHASE 2: Form Validation Messages */
    .form__error {
        font-size: 12px;
        margin-top: 4px;
        color: var(--color-primary-red);
        display: block;
        line-height: 1.4;
    }
    
    /* PHASE 2: Improve touch for dropdowns */
    .country-dropdown__search {
        padding: 14px;
    }
    
    .country-dropdown__input {
        padding: 12px 14px;
        font-size: var(--font-size-base);
        min-height: 44px;
    }
    
    /* PHASE 3: Better spacing for forms */
    .form__label {
        font-size: 13px;
        margin-bottom: 6px;
    }
}

/* Very Tiny Screens (360px and below) - iPhone SE, small Android */
@media (max-width: 360px) {
    :root {
        --container-padding: 12px;
        --font-size-5xl: 22px;
        --font-size-4xl: 20px;
        --font-size-3xl: 18px;
        --font-size-2xl: 16px;
        --spacing-2xl: 24px;
        --spacing-3xl: 28px;
    }
    
    /* PHASE 3: Typography optimization */
    .header__logo-img {
        height: 32px;
    }
    
    .hero__title {
        font-size: 22px;
        line-height: 1.3;
    }
    
    .section-heading {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .hero__form-card {
        padding: 16px;
    }
    
    .form-card__heading {
        font-size: 15px;
    }
    
    /* Reduce button padding for very small screens */
    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .btn--submit {
        padding: 14px 16px;
    }
    
    /* Country dropdown - slightly smaller on tiny screens */
    .country-dropdown {
        left: 12px;
        right: 12px;
    }
}

/* Extra Tiny Screens (320px) - oldest devices */
@media (max-width: 320px) {
    :root {
        --container-padding: 10px;
        --font-size-5xl: 20px;
        --font-size-4xl: 18px;
        --spacing-xl: 16px;
        --spacing-2xl: 20px;
        --spacing-3xl: 24px;
    }
    
    .header__logo-img {
        height: 28px;
    }
    
    .hero__title {
        font-size: 20px;
    }
    
    .hero__form-card {
        padding: 14px;
    }
    
    .cta__grid {
        padding: 14px;
    }
    
    .form__input,
    .form__select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .form__phone-prefix {
        padding: 10px 8px;
        min-width: 90px;
        gap: 4px;
    }
    
    .country-dropdown {
        left: 10px;
        right: 10px;
    }
}

/* PHASE 3: Landscape orientation support */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 80px;
        padding-bottom: var(--spacing-3xl);
    }
    
    .hero__wrapper {
        gap: var(--spacing-xl);
    }
    
    .steps-section,
    .services-section,
    .knowledge-section,
    .stats-section {
        padding: var(--spacing-2xl) 0;
    }
    
    /* Make form more compact in landscape */
    .hero__form-card {
        padding: var(--spacing-md);
    }
    
    .cta__grid {
        padding: var(--spacing-md);
    }
    
    .form__group {
        margin-bottom: var(--spacing-xs);
    }
    
    .form-card__heading {
        margin-bottom: var(--spacing-sm);
        font-size: var(--font-size-lg);
    }
}

/* PHASE 3: Tablet landscape optimization */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .hero__wrapper {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--spacing-3xl);
    }
    
    .hero__form-card {
        padding: var(--spacing-xl);
    }
    
    .steps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* PHASE 3: Safe area insets for notched devices (iPhone X+) */
@supports (padding: max(0px)) {
    body {
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }
    
    .header {
        padding-left: max(var(--container-padding), env(safe-area-inset-left));
        padding-right: max(var(--container-padding), env(safe-area-inset-right));
    }
    
    @media (max-width: 768px) {
        .header__nav {
            padding-left: max(var(--spacing-lg), env(safe-area-inset-left));
            padding-right: max(var(--spacing-lg), env(safe-area-inset-right));
            padding-bottom: max(var(--spacing-lg), env(safe-area-inset-bottom));
        }
    }
}

/* FINAL POLISH: Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Optimize animations for mobile */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Improve scrolling performance */
    .hero,
    .steps-section,
    .services-section,
    .knowledge-section,
    .stats-section,
    .cases-section,
    .benefits-section,
    .advantages-section,
    .cta-section,
    .site-footer {
        will-change: auto;
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Optimize images for mobile */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Improve button accessibility */
    .btn,
    .header__nav-link,
    .form__phone-prefix {
        -webkit-user-select: none;
        user-select: none;
        cursor: pointer;
    }
    
    /* Ensure proper text rendering on mobile */
    body {
        text-rendering: optimizeLegibility;
        -webkit-text-size-adjust: 100%;
    }
    
    /* Fix for iOS Safari bottom bar */
    .hero {
        min-height: -webkit-fill-available;
    }
}

/* Accessibility improvements for screen readers */
@media screen and (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn,
    .form__input,
    .form__select,
    .country-dropdown {
        border-width: 2px;
    }
}

/* Dark mode preference support (future-proofing) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode overrides if needed in future */
}

