@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
/* Design system variables and responsive base font */
:root {
    --base-font-size: 16px; /* reference for 390px design */
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 1.5rem;
    --space-l: 2.5rem;
    --container-width: 390px; /* base design width */
}

html {
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    font-size: 16px; /* default desktop baseline */
    scroll-behavior: smooth; /* плавный скролл для всех якорей */
}
*, *::before, *::after { box-sizing: inherit; }

@media (max-width: 440px) {
    /* scale base font relative to the 390px design width for mobile fluidity */
    html { font-size: calc(16px * (100vw / 390)); }
}

body {
    background-color: #F0EBE7;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

/* design root to emulate 390px layout while remaining responsive */
.design-root {
    width: var(--container-width);
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    transform-origin: top center;
}

/* Ensure all form elements use Montserrat font */
input, button, select, textarea, option {
    font-family: 'Montserrat', sans-serif;
}

/* Site variables and fluid container baseline */
:root {
    --site-max: 1905px; /* baseline width (current design) */
    --g: 2%;
}

/* Main container for first block */
.container1 {
    position: relative;
    width: 100%;
    max-width: var(--site-max);
    margin: 0 auto;
    height: 100vh;
}

/* Background vector positioning and styling */
.bg-vector-container {
    position: absolute;
    top: 0;
    left: 35%;
    transform: translateX(-50%);
    z-index: 1;
    width: 70%;
    max-width: var(--site-max);
    overflow: hidden;
    height: 100%; /* match container1 height */
}

.bg-vector-svg {
    width: 100%;
    height: 100%;
    display: block;
    left: 0;
    position: relative;
    object-fit: cover; /* crop the image to fill the container */
}

/* Registration text positioning and styling */
.registration-container {
    position: absolute;
    top: 7.3vh;    /* ~70px on typical viewport height */
    left: 3.7%;    /* 70px / 1905px */
    z-index: 5;
    width: 25.2%;  /* 480px / 1905px */
    height: auto;
}

.registration-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(1.8rem, 3.2vw, 4rem);
    line-height: 1.05;
    letter-spacing: -3%;
    color: #000000;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    position: relative;
}

/* Window element positioning and sizing */
.window-container {
    position: absolute;
    top: 20vh;
    left: 3.7%;
    z-index: 6;
    width: 26.3%;
    height: auto;
}

.window-svg {
    width: 95%;
    height: auto;
    top: 0;
    left: 0;
    display: block;
    position: relative;
}

.sim-card-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(1.6rem, 3.2vw, 3.8rem);
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.2;
    letter-spacing: -1%;
    color: #D93F31;
    position: absolute;
    top: 35%;
    left: 41%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Legal text positioning and styling */
.legal-text-container {
    position: absolute;
    top: 33.7vh;   /* ~325px on typical viewport height */
    left: 3.7%;
    z-index: 4;
    width: fit-content;
    max-width: 60vw;  /* 560px / 1905px */
    height: auto;
}

.legal-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: -5%;
    color: #000000;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
    height: 100%;
}

/* Island SVG positioning - adjusted for proper display */
.island-container {
    position: fixed; /* stay in place when scrolling */
    top: 6vh;
    right: 4.7%; /* keep original offset */
    z-index: 10;
    width: 21vw; /* responsive relative to viewport width */
    max-width: 400px; /* cap to original design */
}

.island-svg {
    width: 100%; /* fill the container so container width == svg width */
    height: auto;
    display: block;
    top: 0;
    right: 0;
    position: relative;
}

/* Main text styling for "Главная" */
.main-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -5%;
    color: #ffffff;
    position: absolute;
    top: 47%;
    left: 21%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    text-align: center;
    white-space: nowrap;
}

/* Documentation text styling for "Документация" */
.documentation-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -8%;
    color: #000000;
    position: absolute;
    top: 47%;
    right: 31%;
    transform: translate(50%, -50%);
    margin: 0;
    padding: 0;
    text-align: center;
    white-space: nowrap;
}

.rectangle-text-container {
    position: absolute;
    top: 43.2vh;
    right: 5.3%;
    z-index: 4;
    width: 23.6%;
    height: auto;
}

.rectangle-svg {
    width: 100%;
    height: auto;
    display: block;
    top: 0;
    position: relative;
}

.rectangle-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(0.8rem, 1.5vw, 1.3rem);
    line-height: 1.5;
    letter-spacing: -5%;
    color: #D93F31;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: auto;
    text-align: left;
    margin: 0;
    padding: 0;
}

.button-container {
    position: absolute;
    top: 69.3vh;
    left: 3.7%;
    z-index: 4;
    width: fit-content;
    height: auto;
    min-width: 300px; /* для выравнивания размера с check-status-container */
}

.button-sim {
    width: 100%;
    height: auto;
    right: 0px;
    display: block;
    top: 0px;
    position: relative;
}

.check-status-container {
    position: absolute;
    top: 75vh;
    left: 3.7%;
    z-index: 4;
    width: fit-content;
    height: auto;
    min-width: 300px; /* для выравнивания размера с button-container */
}

.check-status-button {
    width: 100%;
    height: auto;
    right: 0px;
    display: block;
    top: 0px;
    position: relative;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.check-status-button:hover {
    opacity: 0.8;
}

/* Polygon banner positioning and styling */
.polygon-banner-container {
    position: absolute;
    top: 96.3vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 40.5%;
    height: auto;
    display: flex;
    align-items: flex-end;
}

.polygon-1 {
    width: 100%;
    height: auto;
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    animation: polygonGlow 2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
}

/* Hide extra polygon decorations on desktop; show only on mobile */
.polygon-2,
.polygon-3 {
    display: none;
}

.container2 {
    position: relative;
    width: 100%;
    max-width: var(--site-max);
    margin: 0 auto;
    height: 170vh;
}

/* Support info block styling */
.support-info {
    position: absolute;
    top: 0;
    left: 4%;
    width: 40%;
    max-width: 600px;
    padding: 20px 0;
    z-index: 5;
    text-align: left;
}

.support-info p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 10px 0;
}

.support-contacts-title {
    font-weight: bold !important;
    margin-top: 15px !important;
}

.support-links {
    margin-top: 10px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.support-link {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #007bff;
    border-radius: 30px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.support-link:hover {
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
}

.support-link:active {
    transform: scale(0.98);
}

.about-banner-container {
    position: absolute;
    top: 25%;
    left: 8.7%;
    transform: translateX(-50%);
    z-index: 4;
    width: 10%;
    max-width: 250px;
    height: auto;
    display: flex;
    align-items: flex-end;
}

.about-svg {
    width: 100%;
    height: auto;
    display: block;
    top: 0;
    position: relative;
}

.info-banner-container {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    width: 60.2%;
    max-width: 1318px;
    height: auto;
    display: flex;
    align-items: flex-end;
}

.info-svg {
    width: 100%;
    height: auto;
    display: block;
    top: 0;
    position: relative;
}

.email-container {
    position: absolute;
    top: 85%;
    width: 50%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.email-svg {
    width: 100%;
    height: auto;
    display: block;
    top: 0;
    position: relative;
}

/* Text block under the email icon: address and privacy link */
.email-text-block {
    /* place the text in normal flow under the SVG so it stays centered */
    position: relative;
    margin: 18px auto 0 auto;
    left: 4%;
    text-align: center;
    width: 100%;
    max-width: 600px; /* allow wider text on large screens */
}

.email-address {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    /* responsive size: larger on desktop, scales down on small viewports */
    font-size: clamp(26px, 4.2vw, 44px);
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.05;
}

.privacy-link {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 2.2vw, 20px);
    color: #000000;
    text-decoration: underline;
    margin-top: 4px;
}

/* New black rounded banner styles */
.black-banner-container {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 100%;
    max-width: var(--site-max);
    display: flex;
    justify-content: center;
    pointer-events: none;/* decorative */
}

.black-banner {
    background: #000000;
    width: 100%;
    height: 30vh; /* increased height */
    min-height: 320px;
    max-height: 600px;
    border-radius: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column; /* stack pill above logos */
    align-items: center; /* center horizontally */
    justify-content: center; /* center group vertically */
    gap: 18px; /* space between pill and logos */
    position: relative; /* allow absolute positioning of the pill */
    padding: 18px 36px; /* keep logos away from rounded edges */
    box-sizing: border-box;
}

.partners-svg {
    display: block;
    position: absolute; /* fix pill independently from logos */
    top: 22px; /* distance from top of banner to match design */
    left: 50%;
    transform: translateX(-50%);
    width: clamp(220px, 12vw, 360px); /* responsive pill width */
    height: auto;
    margin: 0;
    z-index: 2;
}

/* Partner logos grid inside black banner */
.partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.2%; /* responsive spacing between logos */
    width: auto; /* let content determine width when stacked under pill */
    max-width: 1000px; /* further reduced to ensure logos fit in container */
    padding: clamp(0px, 0.5vw, 0px) 18px 18px; /* slightly reduced horizontal padding */
    padding-top: clamp(48px, 10vw, 80px); /* reduced top padding so logos sit a bit higher */
}

/* Ensure partners-logos and nested images are centered inside black banner */
.black-banner .partners-logos {
    width: auto; /* allow natural width so centering takes effect */
    margin: 0 auto;
}

.black-banner .partners-logos img {
    display: block;
    /* force logos themselves to be larger while remaining responsive */
    height: clamp(120px, 12vw, 160px); /* reduced size to fit in container */
    max-height: none;
    width: auto; /* preserve aspect ratio for SVGs */
    object-fit: contain;
}
/* На десктопе скрываем дубликаты - показываем только первые 7 логотипов */
.black-banner .partners-logos img:nth-child(n+8) {
    display: none;
}

/* Responsive scaling for typography and small elements (desktop fluid scaling) */
.legal-text {
    font-size: clamp(1.8rem, calc(22 / 1905 * 100vw), 2.3rem);
}
.main-text {
    font-size: clamp(0.75rem, calc(24 / 1905 * 100vw), 1.25rem);
}
.documentation-text {
    font-size: clamp(0.75rem, calc(20 / 1905 * 100vw), 1.25rem);
}
.button-sim {
    max-width: calc(400 / 1905 * 100vw);
}

.check-status-button {
    max-width: calc(400 / 1905 * 100vw);
}

/* Modal styles for SIM registration */
.sim-modal { display: none; }
.sim-modal[aria-hidden="false"] { display: block; position: fixed; inset: 0; z-index: 9999; }
.sim-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.sim-modal__dialog { 
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: #F7F2F0;
    max-width: 400px;
    width: calc(70% - 40px);
    min-height: 550px; /* увеличена высота для всех полей */
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

/* Desktop styles for modal elements - can be modified without affecting mobile */
.activation-svg {
    display: block;
    margin: 0 auto 18px auto;
    max-width: 280px;
    width: 60%;
    height: auto;
}

.sim-modal__select-wrap {
    position: relative;
    width: 242px;
    max-width: 100%;
}
.sim-modal__operator-wrap {
    margin-top: 1rem;
}
.sim-modal__select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 140%;
    padding: 10px 40px 10px 14px;
    border-radius: 28px;
    border: 2px solid #000;
    background: transparent;
    background-image: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
}
.sim-modal__select::-ms-expand { display: none; }
.sim-modal__select:focus { outline: 2px solid rgba(217,63,49,0.25); }
.sim-modal__select-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 18px;
    pointer-events: none;
}

.activation-symbol-svg {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 20px;
    height: auto;
    display: block;
}
.activation-symbol-svg.next {
    position: absolute;
    right: -12px;
    top: 55%;
    transform: translateY(-50%);
    pointer-events: auto;
    cursor: pointer;
    width: 58px;
    height: auto;
    display: block;
}

.sim-modal__select-arrow { display: none; }

.sim-modal__content {
    width: 95%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}
.sim-modal__content-text,
.sim-modal__content-text2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -5%;
    color: #000000;
}

.sim-modal__contact-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #000000;
    margin: 20px 0 12px 0;
}

.sim-modal__contact-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.sim-modal__contact-btn {
    flex: 0 0 auto;
    width: 164px;
    padding: 12px 24px;
    border-radius: 28px;
    border: 2px solid #000000;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-modal__contact-btn:hover {
    opacity: 0.8;
}

.sim-modal__contact-btn.active {
    background: #D93F31;
    border-color: #D93F31;
    color: #ffffff;
}

.sim-modal__phone-wrap {
    margin-bottom: 20px;
}

.sim-modal__phone-hint {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    margin: -12px 0 16px 0;
    padding-left: 18px;
}

.sim-modal__phone-input {
    width: 342px;
    max-width: 100%;
    padding: 12px 18px;
    border-radius: 28px;
    border: 2px solid #000000;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #000000;
    box-sizing: border-box;
}

.sim-modal__phone-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.sim-modal__phone-input:focus {
    outline: none;
    border-color: #D93F31;
}

.sim-modal__next-btn {
    width: 372px;
    max-width: 103%;
    padding: 14px 24px;
    border-radius: 28px;
    border: none;
    background: #A7A7A7;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #ffffff;
    cursor: not-allowed;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.sim-modal__next-btn:not(:disabled) {
    background: #D93F31;
    cursor: pointer;
}

.sim-modal__next-btn:not(:disabled):hover {
    opacity: 0.9;
}

.sim-modal__consent-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 12px;
    text-align: center;
}

.btn-primary { background: #D93F31; color: #fff; border: none; padding: 10px 16px; border-radius: 10px; cursor: pointer; font-family: 'Montserrat', sans-serif; font-weight: 600; }



/* Анимация бесконечной прокрутки карусели логотипов */
@keyframes carouselScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%); /* 1/3 от общего количества (3 набора логотипов) */
    }
}

/* Анимация мигания с эффектом перелива */
@keyframes polygonGlow {
    0% {
        opacity: 0.3;
        filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2)) brightness(1);
    }
    25% {
        opacity: 0.7;
        filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.4)) brightness(1.1);
    }
    50% {
        opacity: 1;
        filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5)) brightness(1.2);
    }
    75% {
        opacity: 0.7;
        filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.4)) brightness(1.1);
    }
    100% {
        opacity: 0.3;
        filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2)) brightness(1);
    }
}

/* Mobile / small-phone overrides (desktop layout relies on absolute positioning) */
/* Базовый формат: 390×844px (iPhone 12 Pro) */
/* Все позиции и размеры рассчитаны относительно viewport для пропорционального масштабирования */
@media (max-width: 440px) {
    /* general layout: stack blocks, hide large backgrounds, scale typography */
    .container1 {
        position: relative;
        height: auto;
        /* converted vw paddings to rems based on 390px design: 18px 16px 40px 16px */
        padding: 1.125rem 1rem 2.5rem 1rem; /* 18px 16px 40px 16px */
        height: 91vh;
    }

    .container2 {
        position: relative;
        width: 100%;
        max-width: var(--site-max);
        margin: 0 auto;
        height: auto;
        min-height: 100vh;
        padding-bottom: 5vh;
    }

    .bg-vector-container {
        display: block;
        left: 60%;
        transform: translateX(-50%);
        width: 120%;
        height: 80vh;
        top: 0;
        position: absolute;
        z-index: 0;
        pointer-events: none;
        overflow: hidden;
    }

    .registration-container {
        position: relative;
        top: 7.11vh; /* 60/844 */
        left: 1.25rem; /* 20px */
        width: 100%;
        margin: 0.5rem 0; /* ~8px */
        z-index: 6;
    }
    .registration-text {
        /* converted to rem for predictable scaling (40px at 16px base => 2.5rem) */
        font-size: 2.5rem;
        line-height: 1.05;
        text-align: left;
    }

    .window-container {
        position: relative;
        top: 4.74vh; /* 40/844 */
        left: 1.25rem; /* 20px */
        width: 80%;
        margin: 0.71vh 0 0 0; /* 6/844 */
    }
    .window-svg { width: 100%; }

    .sim-card-text {
        position: relative;
        top: -9.24vh; /* -78/844 */
        left: 0.5625rem; /* 9px */
        transform: none;
        /* converted to rem for predictable scaling */
        font-size: 2.5rem;
        white-space: normal;
        text-align: left;
        margin: 0.375rem 0 0 0; /* ~6px */
    }

    .legal-text-container {
        position: relative;
        top: 40px;
        left: 1.25rem; /* 20px */
        max-width: 100%;
        width: 85%;
        margin: 0.75rem 0 0 0; /* 12px */
    }
    .legal-text { font-size: 0.875rem; /* 14px */ }

    .rectangle-text-container {
        position: relative;
        top: 9.92vh; /* 50/844 */
        left: 0;
        width: 94%;
        margin: 1.42vh 0; /* 12/844 */
    }
    .rectangle-svg { 
        width: 100%;
    }

    /* hide decorative rectangle SVG on small screens */
    .rectangle-svg {
        display: none;
    }

    .button-container { 
        position: relative; 
        margin: 1.125rem 0; /* 18px */
        display: flex; 
        justify-content: center;
        top: 17.3vh;
        left: -5%;
        z-index: 4;
        width: 100%;
        height: auto;
     }
    .button-sim { 
        max-width: 20rem; /* 320px */
        width: 100%;
        height: auto;
        right: 0;
        display: block;
        top: 0;
        position: relative;
     }

    .check-status-container { 
        position: relative; 
        margin: 0.75rem 0; /* 12px */
        display: flex; 
        justify-content: center;
        top: 20vh;
        left: -5%;
        z-index: 4;
        width: 100%;
        height: auto;
     }
    .check-status-button { 
        max-width: 20rem; /* 320px */
        width: 100%;
        height: auto;
        right: 0;
        display: block;
        top: -3.20vh; /* -27/844 */
        position: relative;
        cursor: pointer;
        transform: scaleY(0.85);
        transition: opacity 0.2s ease;
     }
    .check-status-button:hover {
        opacity: 0.8;
    }

    .polygon-banner-container { 
        display: flex;
        position: absolute;
        top: 90vh;
        left: 47%;
        transform: translateX(-50%);
        width: 50%;
        height: auto;
        align-items: flex-end;
        z-index: 10;
    }
    
    .polygon-2 {
        width: 100%;
        top: -4.74vh; /* -40/844 */
        height: auto;
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: 3;
        animation: polygonGlow 2s ease-in-out infinite;
        filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
    }
    
    .polygon-3 {
        width: 100%;
        top: -7.11vh; /* -60/844 */
        height: auto;
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: 3;
        animation: polygonGlow 2s ease-in-out infinite;
        filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.3));
    }

    .island-container {
        position: fixed;
        top: 2.96vh; /* 25/844 */
        left: 50%;
        transform: translateX(-50%);
        right: auto; /* override the original right positioning */
        width: 13.75rem; /* 220px */
        max-width: 13.75rem;
    }

    .main-text {
        display: block;
    }
    .documentation-text {
        display: block;
    }

    /* Support info block for mobile */
    .support-info {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        padding: 20px 15px;
        margin-bottom: 2.13vh;
        z-index: 1;
    }
    
    .support-info p {
        font-size: 14px;
    }
    
    .support-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .support-link {
        width: 100%;
        text-align: center;
        font-size: 14px;
    }

    /* about/info blocks become normal flow and centered */
    .about-banner-container, .info-banner-container {
        position: relative;
        top: 1.85vh; /* 35/844 */
        left: 0;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 2.13vh 0 0 0; /* 18/844 */
    }

    .about-svg {
        width: 50%;
        left: -1.8125rem; /* -29px */
        height: auto;
        display: block;
        top: 0;
        position: relative;
    }

    .info-svg {
        width: 95%;
        height: auto;
        display: block;
        top: 9.48vh; /* 80/844 */
        position: relative;
    }

    .black-banner-container {
        position: relative;
        bottom: auto;
        left: 0;
        transform: none;
        z-index: 5;
        width: 100%;
        max-width: var(--site-max);
        display: flex;
        margin-top: calc(8.13vh + 10px); /* добавляем 10px для сдвига вниз */
        justify-content: center;
        pointer-events: none;
    }

    /* black banner: reduce height, allow logos to wrap and clip overflow */
    .black-banner {
        height: auto;
        min-height: 0;
        padding: 1.125rem 0.75rem 1.375rem 0.75rem; /* 18px 12px 22px 12px */
        border-radius: 1.25rem; /* 20px */
        overflow: visible; /* разрешаем элементам выходить за границы для карусели */
        position: relative;
        box-sizing: border-box;
    }
    .partners-svg { 
        position: relative; 
        top: auto; 
        left: auto; 
        transform: none; 
        /* min 120px, max 180px */
        width: clamp(7.5rem, 28vw, 11.25rem);
        margin: 0 auto 0.375rem auto; /* 6px */
    }
    /* Mobile carousel: автоматическая прокрутка карусели */
    .partners-logos {
        flex-wrap: nowrap;
        gap: 1rem; /* 16px */
        padding: 0.75rem 1.125rem; /* 12px vertical, 18px horizontal */
        padding-top: 1.42vh; /* 12/844 */
        justify-content: flex-start;
        overflow: visible; /* разрешаем элементам выходить за границы */
        width: auto; /* ширина определяется содержимым (3 набора логотипов) */
        box-sizing: border-box;
        position: relative;
        will-change: transform;
        transition: none; /* отключаем переходы для плавной JS прокрутки */
    }
    .partners-logos::-webkit-scrollbar { display: none; }
    .partners-logos { -ms-overflow-style: none; scrollbar-width: none; }
    .black-banner .partners-logos img {
        height: clamp(5.5rem, 18vw, 7.5rem); /* увеличенно: ~88px - 120px */
        flex: 0 0 auto;
        min-width: auto;
        display: block !important; /* показываем все логотипы на мобильных, включая дубликаты */
    }
    /* Enable interactions on mobile (banner was decorative on desktop) */
    .black-banner, .black-banner-container { pointer-events: auto; }

    /* Prevent the whole page from scrolling horizontally on small screens */
    html, body { 
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .email-container {
        position: relative;
        width: 100%;
        left: 0;
        transform: none;
        margin-top: 4vh; /* увеличиваем отступ сверху */
        margin-bottom: 2vh;
    }
    .email-text-block { left: 0; padding: 0 0.5rem; /* 8px */ }
    .email-address { font-size: 0.875rem; /* 14px */ }

    .sim-modal__dialog { 
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: #F7F2F0;
        max-width: 45rem; /* 720px */
        height: auto; /* авто высота для мобилок */
        min-height: 500px; /* увеличенная минимальная высота для всех полей */
        width: calc(90% - 2.5rem); /* subtract ~40px */
        padding: 1.75rem; /* 28px */
        border-radius: 1.125rem; /* 18px */
        box-shadow: 0 1.42vh 4.74vh rgba(0, 0, 0, 0.35); /* 12/844, 40/844 */
        box-sizing: border-box;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .activation-svg {
        max-width: 200px;
        width: 50%;
        margin-bottom: 12px;
    }
    
    .sim-modal__contact-buttons {
        flex-direction: row;
        gap: 10px;
    }
    
    .sim-modal__contact-btn {
        width: 115px;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .sim-modal__phone-input {
        max-width: 100%;
        font-size: 13px;
    }
    
    .sim-modal__next-btn {
        max-width: 100%;
        font-size: 15px;
    }

    /* modal overrides removed — modal uses shared desktop styles for consistent appearance */
    /* Slight adjustments for very small phones (<=375px) */

}


@media (max-width: 375px) {
    .registration-text { font-size: clamp(1.4rem, 9.5vw, 2.2rem); }
    .legal-text { font-size: 13px; }
    .black-banner .partners-logos img { height: clamp(4.5rem, 14vw, 6rem); } /* увеличенно для маленьких экранов */
    
    /* Fix island-container positioning for iPhone SE and similar small screens */
    .island-container {
        width: 211px; /* Fixed width for 375px screens to avoid subpixel rendering issues */
        max-width: 211px;
        transform: translate3d(-50%, 0, 0); /* Use 3D transform for better rendering */
        will-change: transform;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* iPhone SE and devices with small height (667px and below) */
@media (max-width: 440px) and (max-height: 700px) {
    .container1 {
        height: 100vh; /* используем полную высоту экрана */
        padding: 1rem 1rem 2rem 1rem;
    }
    
    .registration-container {
        top: 5vh; /* уменьшаем отступ сверху */
    }
    
    .window-container {
        top: 3vh; /* уменьшаем отступ */
    }
    
    .legal-text-container {
        top: 30px; /* уменьшаем отступ */
        width: 90%; /* увеличиваем ширину */
    }
    
    .rectangle-text-container {
        top: 7vh; /* уменьшаем отступ */
    }
    
    .button-container {
        top: 14vh; /* уменьшаем отступ */
    }
    
    .check-status-container {
        top: 17vh; /* уменьшаем отступ */
    }
    
    .polygon-banner-container {
        top: 93vh; /* корректируем под меньшую высоту - даем больше пространства */
    }
    
    .container2 {
        height: auto;
        min-height: 100vh; /* подгоняем под высоту экрана, но позволяем расширяться */
    }
    
    .info-svg {
        top: 5vh; /* уменьшаем отступ */
    }
    
    .black-banner-container {
        bottom: 15%; /* корректируем позицию */
    }
    
    .email-container {
        margin-top: 4vh; /* корректируем позицию через margin */
    }
}

/* Tiny phones (<=360px) */
@media (max-width: 360px) {
    .registration-text { font-size: clamp(1.2rem, 10.5vw, 2rem); }
    .partners-svg { width: 120px; }
    
    /* Fix island-container positioning for very small screens */
    .island-container {
        width: 203px; /* Fixed width for 360px screens */
        max-width: 203px;
        transform: translate3d(-50%, 0, 0);
    }
}

/* Tablet fallback: restore some desktop spacing but keep flexible flow */
@media (min-width: 768px) and (max-width: 1023px) {
    .container1 { height: auto; }
    .bg-vector-container { display: block; left: 35%; width: 80%; }
    .black-banner { padding: 24px; }
    .black-banner .partners-logos img { height: clamp(72px, 9vw, 120px); }
}

/* Status page specific styles */
.status-content-container {
    position: absolute;
    top: 20%;
    left: 47%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 600px;
}

.status-greeting {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #000;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Status page specific island positioning - centered */
.status-page .island-container {
    position: fixed;
    top: 6vh;
    left: 50%;
    transform: translateX(-50%);
    right: auto; /* override the original right positioning */
    z-index: 10;
    width: 21vw;
}

/* Status page mobile island positioning - centered */
@media (max-width: 767px) {
    .status-page .island-container {
        position: fixed;
        top: 25px;
        left: 42%;
        transform: translateX(-50%);
        right: auto; /* override the original right positioning */
        width: 220px;
        max-width: 220px;
    }
}

/* Restart button styling for status page */
.status-page .restart-button {
    position: absolute;
    right: -76px;
    top: 50%;
    transform: translateY(-50%);
    width: 67px;
    height: 64px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.status-page .restart-button:hover {
    opacity: 0.8;
}

/* Mobile restart button positioning */
@media (max-width: 767px) {
    .status-page .restart-button {
        width: 40px;
        height: 37px;
        right: -60px;
    }
}

.status-page .progress-wrapper {
    position: fixed;
    top: 130px; /* <-- изменено: ставим нужный отступ от верха */
    left: -12px; /* span from the left edge of the viewport */
    right: 0;
    width: 129vw; /* ensure full viewport width */
    max-width: none;
    padding: 0; /* remove inner horizontal padding so the track touches edges */
    z-index: 999;
    pointer-events: auto;
}

.status-page .progress-bar {
    height: 6px;
    background: rgba(217,63,49,0.12);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    width: 100vw; /* full viewport track */
    max-width: none; /* don't cap track to site max */
    margin: 0; /* align with wrapper edges */
    left: 0;
}

.status-page .progress-fill {
    height: 100%;
    background: #D93F31;
    border-radius: 30px;
    width: 100%;
    transition: width 400ms cubic-bezier(.2,.8,.2,1);
}

/* Ensure background vector does not cover content on status page */
.status-page .bg-vector-container {
    z-index: 0; /* place behind the main content */
    pointer-events: none; /* decorative only */
}
.status-page .bg-vector-svg {
    pointer-events: none;
    user-select: none;
}

/* Ensure main status content is above decorative background vector but below fixed elements */
.status-page .status-content {
    position: relative;
    z-index: 1; /* below fixed elements (island-container: 10, progress-wrapper: 999) */
}

/* Desktop styles for progress-bar on status page */
@media (min-width: 769px) {
    .status-page .progress-bar {
        margin: 80px auto;
        left: -8px;
    }
}

/* Mobile styles for progress-bar on status page */
@media (max-width: 768px) {
    .status-page .progress-wrapper { 
        top: 105px;
        padding: 0 12px;
    }
    .status-page .progress-bar { 
        max-width: 100%; 
    }
    
    /* Modal elements styles for mobile */
    .activation-svg {
        display: block;
        margin: 0 auto 18px auto;
        max-width: 280px;
        width: 60%;
        height: auto;
    }

    .sim-modal__select-wrap {
        position: relative;
        width: 242px;
        max-width: 100%;
    }
    .sim-modal__operator-wrap {
        margin-top: 1rem;
    }
    .sim-modal__select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: 100%;
        padding: 10px 40px 10px 14px;
        border-radius: 28px;
        border: 2px solid #000;
        background: transparent;
        background-image: none;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 14px;
        box-sizing: border-box;
        cursor: pointer;
    }
    .sim-modal__select::-ms-expand { display: none; }
    .sim-modal__select:focus { outline: 2px solid rgba(217,63,49,0.25); }
    .sim-modal__select-arrow {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        font-size: 18px;
        pointer-events: none;
    }

    .activation-symbol-svg {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        width: 20px;
        height: auto;
        display: block;
    }
    .activation-symbol-svg.next {
        position: absolute;
        right: -12px;
        top: 55%;
        transform: translateY(-50%);
        pointer-events: auto;
        cursor: pointer;
        width: 58px;
        height: auto;
        display: block;
    }

    .sim-modal__select-arrow { display: none; }

    .sim-modal__content {
        width: 95%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
    .sim-modal__content-text,
    .sim-modal__content-text2 {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 14px;
        letter-spacing: -5%;
        color: #000000;
    }

    .sim-modal__contact-text {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 14px;
        color: #000000;
        margin: 20px 0 12px 0;
    }

    .sim-modal__contact-buttons {
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
    }

    .sim-modal__contact-btn {
        flex: 0 0 auto;
        width: 115px;
        padding: 12px 24px;
        border-radius: 28px;
        border: 2px solid #000000;
        background: transparent;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 14px;
        color: #000000;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sim-modal__contact-btn:hover {
        opacity: 0.8;
    }

    .sim-modal__contact-btn.active {
        background: #D93F31;
        border-color: #D93F31;
        color: #ffffff;
    }

    .sim-modal__phone-wrap {
        margin-bottom: 20px;
    }

    .sim-modal__phone-hint {
        font-size: 11px;
        margin: -12px 0 16px 0;
        padding-left: 18px;
    }

    .sim-modal__phone-input {
        width: 245px;
        max-width: 100%;
        padding: 12px 18px;
        border-radius: 28px;
        border: 2px solid #000000;
        background: transparent;
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 14px;
        color: #000000;
        box-sizing: border-box;
    }

    .sim-modal__phone-input::placeholder {
        color: rgba(0, 0, 0, 0.5);
    }

    .sim-modal__phone-input:focus {
        outline: none;
        border-color: #D93F31;
    }

    .sim-modal__next-btn {
        width: 372px;
        max-width: 102%;
        padding: 14px 24px;
        border-radius: 28px;
        border: none;
        background: #A7A7A7;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 16px;
        color: #ffffff;
        cursor: not-allowed;
        transition: all 0.2s ease;
        margin-top: 8px;
    }

    .sim-modal__next-btn:not(:disabled) {
        background: #D93F31;
        cursor: pointer;
    }

    .sim-modal__next-btn:not(:disabled):hover {
        opacity: 0.9;
    }
}

/* iPhone SE (375px) - modal styles must come after 768px to override */
@media (max-width: 375px) {
    /* Modal dialog styles for iPhone SE */
    .sim-modal__dialog { 
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: #F7F2F0;
        max-width: 45rem; /* 720px */
        height: auto; /* авто высота для мобилок */
        min-height: 500px; /* увеличенная минимальная высота для всех полей */
        width: calc(90% - 2.5rem); /* subtract ~40px */
        padding: 1.75rem; /* 28px */
        border-radius: 1.125rem; /* 18px */
        box-shadow: 0 1.42vh 4.74vh rgba(0, 0, 0, 0.35); /* 12/844, 40/844 */
        box-sizing: border-box;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Modal elements styles for iPhone SE */
    .activation-svg {
        max-width: 200px;
        width: 50%;
        margin-bottom: 12px;
    }

    .sim-modal__select-wrap {
        position: relative;
        width: 242px;
        max-width: 100%;
    }
    .sim-modal__operator-wrap {
        margin-top: 1rem;
    }
    .sim-modal__select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        width: 103%;
        padding: 10px 40px 10px 14px;
        border-radius: 28px;
        border: 2px solid #000;
        background: transparent;
        background-image: none;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 14px;
        box-sizing: border-box;
        cursor: pointer;
    }
    .sim-modal__select::-ms-expand { display: none; }
    .sim-modal__select:focus { outline: 2px solid rgba(217,63,49,0.25); }
    .sim-modal__select-arrow {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        font-size: 18px;
        pointer-events: none;
    }

    .activation-symbol-svg {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        width: 20px;
        height: auto;
        display: block;
    }
    .activation-symbol-svg.next {
        position: absolute;
        right: -12px;
        top: 55%;
        transform: translateY(-50%);
        pointer-events: auto;
        cursor: pointer;
        width: 58px;
        height: auto;
        display: block;
    }

    .sim-modal__select-arrow { display: none; }

    .sim-modal__content {
        width: 95%;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
    .sim-modal__content-text,
    .sim-modal__content-text2 {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 14px;
        letter-spacing: -5%;
        color: #000000;
    }

    .sim-modal__contact-text {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 14px;
        color: #000000;
        margin: 20px 0 12px 0;
    }

    .sim-modal__contact-buttons {
        flex-direction: row;
        gap: 10px;
        margin-bottom: 16px;
    }

    .sim-modal__contact-btn {
        flex: 0 0 auto;
        width: 115px;
        padding: 10px 20px;
        border-radius: 28px;
        border: 2px solid #000000;
        background: transparent;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 13px;
        color: #000000;
        cursor: pointer;
        transition: all 0.2s ease;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .sim-modal__contact-btn:hover {
        opacity: 0.8;
    }

    .sim-modal__contact-btn.active {
        background: #D93F31;
        border-color: #D93F31;
        color: #ffffff;
    }

    .sim-modal__phone-wrap {
        margin-bottom: 20px;
    }

    .sim-modal__phone-hint {
        font-size: 11px;
        margin: -12px 0 16px 0;
        padding-left: 18px;
    }

    .sim-modal__phone-input {
        width: 245px;
        max-width: 100%;
        padding: 12px 18px;
        border-radius: 28px;
        border: 2px solid #000000;
        background: transparent;
        font-family: 'Montserrat', sans-serif;
        font-weight: 400;
        font-size: 13px;
        color: #000000;
        box-sizing: border-box;
    }

    .sim-modal__phone-input::placeholder {
        color: rgba(0, 0, 0, 0.5);
    }

    .sim-modal__phone-input:focus {
        outline: none;
        border-color: #D93F31;
    }

    .sim-modal__next-btn {
        width: 372px;
        max-width: 107%;
        padding: 14px 24px;
        border-radius: 28px;
        border: none;
        background: #A7A7A7;
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 15px;
        color: #ffffff;
        cursor: not-allowed;
        transition: all 0.2s ease;
        margin-top: 8px;
    }

    .sim-modal__next-btn:not(:disabled) {
        background: #D93F31;
        cursor: pointer;
    }

    .sim-modal__next-btn:not(:disabled):hover {
        opacity: 0.9;
    }
} 

@media (max-height: 667px) {
    .container2 {
        height: auto;
        min-height: 110vh;
    }

    .black-banner-container {
        bottom: -20%;
    }
}

@media (max-height: 715px) {
    .black-banner-container {
        bottom: -20%;
    }

}