/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Улучшения для мобильных устройств */
html {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
}

/* Первый экран */
body {
    background-color: #69636C40;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #E4A360 0%, #E8788E 25%, #BC83DD 50%, #30C1D1 100%);
}

/* Исправление высоты на мобильных */

/* Оптимизация фонового видео */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Улучшение производительности для мобильных устройств */

/* Градиентные оверлеи */
.gradient-overlay {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.gradient-top {
    top: 0;
    height: 150px;
    background: linear-gradient(180deg, #69636C 0%, rgba(105, 99, 108, 0.8) 10%, rgba(105, 99, 108, 0.7) 20%, rgba(105, 99, 108, 0.7) 30%, rgba(105, 99, 108, 0.6) 40%, rgba(105, 99, 108, 0.6) 50%, rgba(105, 99, 108, 0.5) 60%, rgba(105, 99, 108, 0.4) 70%, rgba(105, 99, 108, 0.2) 80%, rgba(105, 99, 108, 0.1) 90%, rgba(105, 99, 108, 0) 100%);
}

.gradient-bottom {
    bottom: 0;
    height: 150px;
    background: linear-gradient(0deg, #69636C 0%, rgba(105, 99, 108, 0.8) 10%, rgba(105, 99, 108, 0.7) 20%, rgba(105, 99, 108, 0.7) 30%, rgba(105, 99, 108, 0.6) 40%, rgba(105, 99, 108, 0.6) 50%, rgba(105, 99, 108, 0.5) 60%, rgba(105, 99, 108, 0.4) 70%, rgba(105, 99, 108, 0.2) 80%, rgba(105, 99, 108, 0.1) 90%, rgba(105, 99, 108, 0) 100%);
}

/* Хедер */
.header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    z-index: 100;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* Кнопка пополнить в хедере */
.header-top-up-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-top-up-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Гамбургер кнопка */
.hamburger-btn {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
    transition: opacity 0.3s ease;
}

.hamburger-line {
    height: 3px;
    background-color: #d9d9d9;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-line-top {
    width: 18px;
}

.hamburger-line-middle {
    width: 25px;
}

.hamburger-line-bottom {
    width: 18px;
    margin-left: 7px;
}

.hamburger-btn:hover .hamburger-line {
    background-color: rgba(217, 217, 217, 0.8);
}

/* Десктопное меню - показываем на больших экранах */

/* Основной контент */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 40px;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: white;
    font-weight: 400;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
}

/* Нижняя секция с кнопками */
.hero-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 40px;
    margin-bottom: 60px;
}

/* Стили для новых кнопок */
.mobile-buttons {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.desktop-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.desktop-buttons .download-btn {
    margin-top: 10px;
}

/* Контейнер для первых двух кнопок */
.desktop-buttons-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.desktop-buttons-row > .base-btn {
    width: 300px;
}

.package-btn, .custom-btn {
    background: #D9D9D9;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.package-btn:hover, .custom-btn:hover {
    background: #C5C5C5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Блок с монетами */
.coin-block {
    background: linear-gradient(90deg, #E4A360 1.4%, #E8788E 32.4%, #BC83DD 62.9%, #30C1D1 94.4%);
    border-radius: 25px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 300px;
    justify-content: space-between;
}

.coin-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.top-up-btn {
    background: #D9D9D9;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.3s ease;
}

.top-up-btn:hover {
    background: #C5C5C5;
}

/* Кнопка скачивания */
.download-btn {
    background: #D9D9D9;
    color: #333;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-btn:hover {
    background: #C5C5C5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Адаптивность для планшетов */




.modal-overlay {
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: top 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-overlay.active {
    top: 0;
}

.modal-nav {
    position: sticky;
    top: 0;
    background: white;
    padding: 20px 40px;
    border-bottom: 1px solid #eee;
    z-index: 1001;
}

.modal-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.modal-logo {
    flex-shrink: 0;
}

.modal-logo-img {
    height: 35px;
    width: auto;
}

.modal-nav-list {
    display: flex;
    justify-content: flex-end;
    gap: 40px;
    flex-wrap: wrap;
    margin-right: 60px;
}

.modal-nav-link {
    text-decoration: none;
    color: #666;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.modal-nav-link.active {
    color: #9508F6;
    pointer-events: none;
    cursor: default;
    font-weight: 600;
}

.modal-nav-link:hover {
    color: #333;
}

.modal-images {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    max-width: 50%;
    height: 550px;
}

.modal-images video {
    border-radius: 15px;
    max-height: 550px;
}

.modal-phone {
    width: 100%;
    max-width: 400px;
    height: 100%;
    max-height: 550px;
    object-fit: contain;
    border-radius: 15px;
}

.modal-text-content {
    flex: 1;
    width: 50%;
    max-width: 50%;
    position: relative;
    height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 30px;
}

.modal-text-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.modal-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
}

.modal-text strong {
    color: #333;
    font-weight: 600;
}

.modal-text u {
    color: #8B5CF6;
    text-decoration: underline;
}

.hero-bottom.modal-open {
    transform: translateX(-20%);
    transition: transform 0.6s ease;
}



.agreement-text {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 15px;
    margin-bottom: 20px;
}

.agreement-text h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    text-align: center;
}

.agreement-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 20px 0 10px 0;
    color: #000;
}

.agreement-text p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #000;
}

.agreement-text::-webkit-scrollbar {
    width: 6px;
}

.agreement-text::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.agreement-text::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.agreement-text::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}



.order-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.order-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.order-modal-content {
    background: #d9d9d9;
    border-radius: 20px;
    position: relative;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.order-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
}

.order-modal-logo {
    height: 35px;
    width: auto;
}

.order-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.order-modal-close:hover {
    color: #333;
}

.order-form-container {
    padding: 5px 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-link-section {
    width: 100%;
}

.main-form-area {
    width: 100%;
    border-radius: 15px;
    transition: background-color 0.3s ease;
}

.main-form-area.purchase-mode {
    background-color: #f0f0f0;
    padding: 20px;
}
.order-input-group {
    position: relative;
    width: 100%;
}

.profile-input-wrapper {
    position: relative;
    width: 100%;
}

.at-symbol {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #8B5CF6;
    font-weight: 600;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s ease;
}

.order-input.with-at {
    padding-left: 50px;
}

.order-input {
    width: 100%;
    padding: 15px 120px 15px 25px;
    border: 2px solid #E8E8E8;
    border-radius: 50px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(188, 131, 221, 0.2);
    box-sizing: border-box;
}

.order-input:focus {
    border-color: #BC83DD;
    box-shadow: 0 0 25px rgba(188, 131, 221, 0.4);
}

.order-input::placeholder {
    color: #555;
}

.where-find-link {
    color: #703FA8;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0 5px;
    border-radius: 7px;
    border: 1px solid transparent;
    background-color: #69636C40;
}

.where-find-link:hover {
    color: #5a2d91;
    background: rgba(112, 63, 168, 0.05);
    border-color: rgba(112, 63, 168, 0.2);
}

.where-find-section {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.error-indicator {
    width: 20px;
    height: 20px;
    background-color: #ff4444;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 1.5s infinite;
}

.error-icon {
    color: white;
    font-size: 14px;
    font-weight: bold;
    transform: rotate(180deg);
}

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

.validation-error-block {
    background: white;
    border-radius: 25px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.validation-error-image {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    object-fit: cover;
}

.validation-error-content {
    flex: 1;
}

.validation-error-text {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

button.validation-help-btn {
    font-size: 0.8rem;
}

.validation-help-btn:hover {
    color: #333;
}

.base-btn {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(188, 131, 221, 0.8);
    border-radius: 25px;
    background: linear-gradient(90deg, rgba(228, 163, 96, 1) 1.4%, rgba(232, 120, 142, 1) 32.4%, rgba(188, 131, 221, 1) 62.9%, rgba(48, 193, 209, 1) 94.4%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 3px 10px rgba(188, 131, 221, 0.5);
}

.base-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.base-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.base-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(90deg, rgba(228, 163, 96, 0.8) 1.4%, rgba(232, 120, 142, 0.8) 32.4%, rgba(188, 131, 221, 0.8) 62.9%, rgba(48, 193, 209, 0.8) 94.4%)
}

.back-btn {
    background: #f5f5f5 !important;
    color: #666 !important;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    margin-top: 0;
    margin-bottom: 5px;
    width: fit-content;
    min-width: 120px;
    padding: 8px 16px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    align-self: flex-start;
    margin-left: 0;
    margin-right: auto;
}

.back-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #9D73E8 0%, #E8788E 100%) !important;
    color: white !important;
    filter: grayscale(0%);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}



.profile-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-verify-text {
    font-size: 0.6rem;
    color: #666;
    margin: 0;
    text-align: center;
    margin-bottom: -10px;
}

.profile-info-block {
    background: white;
    border-radius: 25px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 125px;
    height: 125px;
    border-radius: 25px;
    object-fit: cover;
}

.profile-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.profile-name-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
    align-self: flex-start;
    text-align: left;
}

.profile-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    text-align: center;
}

.profile-url {
    font-size: 0.9rem;
    color: #666;
    word-break: break-all;
}

.profile-return-block {
    text-align: center;
    margin-top: 10px;
}

.not-your-profile {
    font-size: 0.6rem;
    color: #666;
    margin: 0 0 10px 0;
}

.change-profile-btn {
    background: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-profile-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.error-result {
    text-align: center;
}

.error-text {
    color: #dc3545;
    font-size: 1rem;
    margin-bottom: 20px;
}

.retry-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
}


.purchase-form {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    animation: slideInFromBottom 0.5s ease-out;
}

.purchase-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.purchase-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.purchase-input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.purchase-input[type="number"]::-webkit-outer-spin-button,
.purchase-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.purchase-input[type="number"] {
    -moz-appearance: textfield;
}

.purchase-input::placeholder {
    color: #999;
}

.animated-input-wrapper {
    position: relative;
    margin-bottom: 5px;
}

.animated-input {
    width: 100%;
    padding: 20px 20px 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.animated-input:focus {
    border-color: #8B5CF6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.animated-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    padding: 0 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    display: block !important; /* Всегда показываем лейблы */
}

.animated-input:focus + .animated-label,
.animated-input:valid + .animated-label,
.animated-input.has-value + .animated-label,
.animated-input.focused + .animated-label,
.animated-input:not(:placeholder-shown) + .animated-label {
    top: 5px;
    left: 20px;
    transform: translateY(0);
    font-size: 0.75rem;
    color: #8B5CF6;
    font-weight: 500;
}

.animated-input:focus + .animated-label,
.animated-input.focused + .animated-label {
    color: #8B5CF6;
}

.animated-input[type="number"]::-webkit-outer-spin-button,
.animated-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.animated-input[type="number"] {
    -moz-appearance: textfield;
}

.or-divider {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    position: relative;
    margin: 5px 0;
}

.or-divider::before,
.or-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: #ddd;
}

.or-divider::before {
    left: 0;
}

.or-divider::after {
    right: 0;
}

.purchase-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shrinkAndSlide 0.5s ease-out;
}

.purchase-avatar {
    width: 80px;
    height: 80px;
    border-radius: 25px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.purchase-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shrinkAndSlide {
    from {
        transform: translateX(-50px) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}


.purchase-inputs-form {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
    animation: slideInFromBottom 0.3s ease-out;
}

.order-input:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.order-input:disabled + .where-find-section {
    opacity: 0.5;
    pointer-events: none;
}


.discount-scale-container {
    width: 100%;
    margin-top: 15px;
    padding: 0;
}

.discount-scale {
    position: relative;
    width: 100%;
    height: 40px;
    margin: 0 0 20px 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.scale-track {
    position: absolute;
    top: 18px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
}

.scale-progress {
    position: absolute;
    top: 18px;
    left: 0;
    height: 4px;
    background-color: #703FA8;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.scale-thumb {
    position: absolute;
    top: 10px;
    width: 20px;
    height: 20px;
    background-color: #703FA8;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    cursor: grab;
    transition: left 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    transform: translateX(-50%);
}

.scale-thumb:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.scale-thumb:active {
    cursor: grabbing;
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scale-badge {
    position: absolute;
    bottom: 25px;
    left: 50%;
    background-color: #703FA8;
    color: white;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    max-width: none;
    min-width: 40px;
    text-align: center;
}

.scale-badge::before {
    content: '';
    position: absolute;
    top: 100%;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-top-color: #703FA8;
}

.scale-badge {
    border-top-left-radius: 20px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 20px;
}

.scale-marks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scale-mark {
    position: absolute;
    top: 16px;
    width: 2px;
    height: 8px;
    background-color: #703FA8;
    transform: translateX(-50%);
}

.scale-mark-badge {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #555;
    color: white;
    padding: 2px 6px;
    font-size: 9px;
    border-radius: 2px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

.calculation-block {
    width: 100%;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calculation-content {
    font-size: 16px;
    line-height: 1.4;
}

.calculation-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 10px;
    gap: 20px;
}

.calculation-row:last-child {
    margin-bottom: 0;
}

.calculation-label {
    color: #333;
    font-weight: 500;
    flex-shrink: 0;
}

.calculation-value {
    font-weight: 600;
    color: #703FA8;
    flex: 1;
}

.calculation-original-price {
    text-decoration: line-through;
    color: #999;
    position: relative;
}

.calculation-original-price::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right, transparent 45%, red 45%, red 55%, transparent 55%);
    pointer-events: none;
}

.calculation-discount-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    margin-left: 10px;
    border-top-left-radius: 15px;
    border-top-right-radius: 7px;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 15px;
    transform: translateY(-1px);
}

.calculation-final-price {
    font-size: 18px;
    font-weight: 700;
    color: #703FA8;
}

.calculation-purchase-content {
    white-space: nowrap;
    font-size: 15px;
}

.calculation-purchase-content .calculation-original-price {
    font-size: 15px;
}

.calculation-purchase-content .calculation-discount-badge {
    font-size: 11px;
}

.calculation-purchase-content .calculation-final-price {
    font-size: 17px;
}

.calculation-bonus-number {
    color: #dc3545;
    font-weight: 600;
}

.calculation-bonus-badge {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    padding: 1px 4px;
    font-size: 8px;
    font-weight: 600;
    border-radius: 8px;
    line-height: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -14px;
    white-space: nowrap;
}

.calculation-bonus-number {
    color: #dc3545;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.discount-hint {
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin-bottom: 8px;
    text-align: center;
}

.calculation-total {
    color: #703FA8;
    font-weight: 700;
    font-size: 18px;
}


.input-container {
    position: relative;
    width: 100%;
}

.input-container.hidden {
    display: none;
}
.switch-input-link {
    position: absolute;
    right: 15px;
    top: 43%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #888;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.switch-input-link:hover {
    color: #BC83DD;
}

.discount-scale-wrapper {
    position: relative;
    overflow: visible;
    width: 100%;
    height: auto;
    padding: 35px 0 5px 0;
}

.discount-scale-container {
    position: relative;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.discount-scale-container.show {
    transform: translateX(0);
    opacity: 1;
}

.discount-scale-container.slide-in {
    animation: slideInFromLeft 0.5s ease forwards;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.discount-scale-container.slide-out {
    animation: slideOutToLeft 0.5s ease forwards;
}

.or-divider.hidden {
    display: none;
}


.confirm-purchase-section {
    margin-top: 12px;
    width: 100%;
}

.purchase-input.disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.discount-scale-container.disabled {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
    filter: grayscale(0.3);
}

.calculation-block.disabled {
    background-color: #f5f5f5;
    opacity: 0.7;
}

.calculation-block.disabled .calculation-content {
    color: #999;
}

.payment-stage {
    width: 100%;
    margin-top: 12px;
    animation: slideInFromLeft 0.5s ease;
}

.payment-methods-section {
    margin-bottom: 15px;
}

.payment-methods-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.payment-method {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    border-radius: 12px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 120px;
}

.payment-method:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.payment-method.selected {
    border-color: var(--selected-color);
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.payment-method img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.agreement-checkbox-section {
    margin-bottom: 15px;
}

.agreement-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.agreement-checkbox {
    display: none;
}

.agreement-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: white;
    position: relative;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.agreement-checkbox:checked + .agreement-checkbox-custom {
    background-color: #703FA8;
    border-color: #703FA8;
}

.agreement-checkbox:checked + .agreement-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.agreement-text-label {
    color: #555;
}

.agreement-link {
    color: #703FA8;
    text-decoration: underline;
    cursor: pointer;
}

.agreement-link:hover {
    color: #5a2d85;
}

.optional-text {
    color: #999;
    font-size: 12px;
}

.final-payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.final-payment-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.final-payment-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.final-payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.final-payment-modal-logo {
    height: 30px;
}

.final-payment-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.final-payment-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.final-payment-form-container {
    padding: 25px;
}

.final-payment-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.final-payment-input-group {
    margin-bottom: 20px;
}

.final-payment-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.final-payment-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.final-payment-input:focus {
    outline: none;
    border-color: #703FA8;
}

.contact-info-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
    line-height: 1.4;
}

.final-payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.payment-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



.return-to-order-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(90deg, #E4A360 1.4%, #E8788E 32.4%, #BC83DD 62.9%, #30C1D1 94.4%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.return-to-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.modal-close {
    position: fixed;
    top: 17px;
    right: 40px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    z-index: 1003;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.modal-overlay.active .modal-close {
    opacity: 1;
    visibility: visible;
}

.modal-close:hover {
    color: #333;
}

.modal-buttons {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    z-index: 1002;
    transition: all 0.6s ease;
    opacity: 0;
    visibility: hidden;
}

.modal-overlay.active .modal-buttons {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px 40px 40px;
    min-height: calc(100vh - 200px);
    position: relative;
}

.modal-page {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    transition-delay: 0.3s;
}

.modal-page.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    gap: 60px;
    align-items: flex-start;
    min-height: 400px;
    position: relative;
} 
/* Контейнер карточек */
#catalogProducts {
    max-width: 1080px;
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    box-sizing: border-box;
  }
  
  /* Сама карточка */
  .product-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
  }
  
  /* Изображение */
  .product-item-image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 15px;
  }
  
  /* Заголовок */
  .product-item-title h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: #333;
  }
  
  /* Цена */
  .product-item-price h3 {
    margin: 0 0 15px;
    font-size: 1.4rem;
    color: #703FA8; /* заданный цвет */
  }
  
  /* Кнопка: базовый класс нельзя менять, поэтому добавляем правило для сочетания классов */
  .base-btn.product-item-btn {
    padding: 5px 15px;
    border-radius: 10px;
  }
  
  /* Адаптивность: плавно уменьшаем количество колонок до двух */

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.footer-link:hover {
    opacity: 0.8;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

.footer-copyright p {
    margin: 5px 0;
    font-size: 0.8rem;
    opacity: 0.9;
    font-family: 'Inter', sans-serif;
}

/* Адаптивность для планшетов */

/* Адаптивность для мобильных */

/* Стили для блока контактов */
.footer-contacts {
    text-align: center;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contacts-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: white;
    font-family: 'Inter', sans-serif;
}

.contacts-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-link img {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.contact-link:hover img {
    transform: scale(1.1);
    filter: brightness(1.3);
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
}

/* Медиазапросы для адаптивного дизайна */

/* ========================================
   Очень большие экраны (>1200px)
======================================== */
@media (min-width: 1201px) {
    .order-modal-content {
        width: 600px; 
        max-width: 900px;
        margin: 80px auto;
        padding: 30px;
    }
    
    .order-input {
        padding: 18px 20px;
        font-size: 1.1rem;
    }
    
    .where-find-link {
        font-size: 0.7rem;
        padding: 2px 10px;
        background-color: #69636C40;
        border-radius: 7px;
        border: 1px solid transparent;
        transition: all 0.3s ease;
    }
    
    .where-find-link:hover {
        color: #5a2d91;
        background: rgba(112, 63, 168, 0.05);
        border-color: rgba(112, 63, 168, 0.2);
    }
}

/* ========================================
   Большие экраны (769px-1200px)
======================================== */
@media (min-width: 769px) and (max-width: 1200px) {
    .order-modal-content {
        width: 600px; 
        max-width: 900px;
        margin: 60px auto;
        padding: 30px;
    }
    
    .order-input {
        padding: 16px 18px;
        font-size: 1rem;
    }
    
    .where-find-link {
        font-size: 0.7rem;
        padding: 0 5px;
        background-color: #69636C40;
        border-radius: 7px;
        border: 1px solid transparent;
        transition: all 0.3s ease;
    }
    
    .where-find-link:hover {
        color: #5a2d91;
        background: rgba(112, 63, 168, 0.05);
        border-color: rgba(112, 63, 168, 0.2);
    }
}

/* Каталог продуктов для больших экранов */
@media (max-width: 1200px) {
    #catalogProducts {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   Средние экраны (993px-1200px)
======================================== */
@media (max-width: 992px) {
    #catalogProducts {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   Планшеты (769px-992px)
======================================== */
@media (max-width: 768px) {
    /* Фоновое видео для планшетов */
    .hero-section {
        background: linear-gradient(135deg, #E4A360 0%, #E8788E 25%, #BC83DD 50%, #30C1D1 100%);
    }
    
    /* Модальные окна */
    .modal-nav {
        padding: 15px 20px;
        position: sticky;
        top: 0;
        z-index: 1001;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .modal-nav-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        max-width: 100%;
    }
    
    .modal-nav-list {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px 20px;
        margin-right: 0;
    }
    
    .modal-nav-link {
        font-size: 0.9rem;
        padding: 10px 15px;
        border-radius: 20px;
        background: #f8f9fa;
        transition: all 0.3s ease;
    }
    
    .modal-nav-link.active {
        background: #9508F6;
        color: white;
    }
    
    .modal-content {
        padding: 20px;
        padding-bottom: 100px; /* Дополнительное пространство снизу */
    }
    
    .modal-page.active {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        min-height: auto;
    }
    
    .modal-text-content {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: none;
        padding-right: 0;
        order: 2;
    }
    
    .modal-images {
        flex-shrink: 0;
        width: 100%;
        max-width: 300px;
        height: 400px;
        order: 1;
    }
    
    .modal-text-content h2 {
        font-size: 1.8rem;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .modal-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .modal-phone {
        max-width: 280px;
        height: auto;
    }
    
    .modal-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        max-width: 320px;
        margin: 30px auto 0;
        order: 3;
    }
    
    .modal-overlay.active .modal-buttons {
        display: flex;
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
        background: rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1002;
    }
    
    .modal-overlay.active .modal-close {
        display: flex;
    }
    
    /* Текст соглашения */
    .agreement-text {
        max-height: 400px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 15px;
        margin-bottom: 25px;
    }
    
    .agreement-text h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .agreement-text h3 {
        font-size: 1.3rem;
        margin: 20px 0 15px 0;
    }
    
    .agreement-text p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 12px;
    }
    
    /* Модальное окно заказа */
    .order-modal-overlay {
        padding: 20px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .order-modal-content {
        margin: 0;
        padding: 25px 20px;
        border-radius: 20px;
        max-width: 100%;
        width: 100%;
        max-width: 500px;
        min-height: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .order-modal-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .order-modal-logo {
        height: 35px;
    }
    
    .order-modal-close {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .order-form-container {
        padding: 0;
    }
    
    .order-input-group {
        margin-bottom: 25px;
        gap: 15px;
    }
    
    .order-input {
        padding: 16px 18px;
        font-size: 1.1rem;
        border-radius: 15px;
        min-height: 56px;
    }
    
    .order-input.with-at {
        padding-left: 45px;
    }
    
    .at-symbol {
        left: 18px;
        font-size: 1.1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .where-find-section {
        margin-top: 15px;
        text-align: center;
    }
    
    .where-find-link {
        padding: 12px 20px;
        border-radius: 25px;
        border: 2px solid #BC83DD;
        background: transparent;
        color: #BC83DD;
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.3s ease;
        display: inline-block;
    }
    
    .where-find-link:hover {
        background: #BC83DD;
        color: white;
        transform: translateY(-1px);
    }
    
    .validation-error-block {
        padding: 20px;
        border-radius: 15px;
        margin-top: 15px;
        background: #fff5f5;
        border: 1px solid #fed7d7;
    }
    
    .validation-error-image {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .validation-error-content {
        text-align: center;
    }
    
    .validation-error-text {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
    
    /* Информация о профиле */
    .profile-info-block {
        padding: 25px;
        border-radius: 20px;
        margin: 20px 0;
        background: #f8f9fa;
        border: 2px solid #e9ecef;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        border-radius: 20px;
    }
    
    .profile-details {
        flex: 1;
        margin-left: 15px;
    }
    
    .profile-name-label {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }
    
    .profile-name {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    .profile-url {
        font-size: 0.9rem;
        margin-top: 5px;
    }
    
    .confirm-profile-btn {
        padding: 14px 30px;
        font-size: 1.1rem;
        border-radius: 25px;
        margin: 20px 0;
        width: 100%;
    }
    
    .profile-return-block {
        text-align: center;
        margin-top: 15px;
    }
    
    .change-profile-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        border-radius: 20px;
        margin-top: 10px;
    }
    
    /* Форма покупки */
    .purchase-form {
        gap: 25px;
        padding: 0;
    }
    
    .purchase-inputs {
        gap: 20px;
    }
    
    .purchase-profile {
        padding: 20px;
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    .purchase-avatar {
        width: 60px;
        height: 60px;
        border-radius: 15px;
    }
    
    .purchase-input {
        padding: 16px 18px;
        font-size: 1.1rem;
        border-radius: 15px;
        min-height: 56px;
    }
    
    .animated-input {
        padding: 20px 16px 8px;
        font-size: 1.1rem;
        border-radius: 15px;
        min-height: 56px;
    }
    
    .animated-label {
        left: 16px;
        font-size: 1rem;
        top: 18px;
        display: block !important; /* Всегда показываем лейблы */
    }
    
    .animated-input:focus + .animated-label,
    .animated-input:not(:placeholder-shown) + .animated-label,
    .animated-input.has-value + .animated-label {
        left: 16px;
        top: 8px;
        font-size: 0.85rem;
    }
    
    /* Форма покупки в режиме покупки */
    .main-form-area.purchase-mode {
        gap: 25px;
    }
    
    .purchase-inputs-form {
        gap: 25px;
    }
    
    /* Скидочная шкала */
    .discount-scale-container {
        padding: 25px;
        border-radius: 20px;
        margin: 20px 0;
    }
    
    .discount-scale-wrapper {
        margin-bottom: 25px;
    }
    
    .discount-scale {
        height: 8px;
        margin: 30px 0;
    }
    
    .scale-track {
        height: 8px;
        border-radius: 4px;
    }
    
    .scale-progress {
        height: 8px;
        border-radius: 4px;
    }
    
    .scale-thumb {
        width: 28px;
        height: 28px;
        margin-top: -10px;
        margin-left: -14px;
    }
    
    .scale-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        min-width: 60px;
        bottom: 45px;
    }
    
    .scale-mark-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
        top: 25px;
    }
    
    .calculation-block {
        padding: 25px;
        border-radius: 20px;
        margin: 20px 0;
    }
    
    .calculation-content {
        gap: 15px;
    }
    
    .calculation-row {
        padding: 12px 0;
        font-size: 1rem;
    }
    
    .discount-hint {
        font-size: 0.9rem;
        padding: 15px;
        border-radius: 15px;
        margin: 15px 0;
    }
    
    .calculation-purchase-content {
        gap: 12px;
    }
    
    .calculation-purchase-content .calculation-original-price {
        font-size: 1rem;
    }
    
    .calculation-purchase-content .calculation-discount-badge {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .calculation-purchase-content .calculation-final-price {
        font-size: 1.2rem;
    }
    
    /* Способы оплаты */
    .payment-methods-section {
        margin: 25px 0;
    }
    
    .payment-methods-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .payment-methods-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-bottom: 25px;
    }
    
    .payment-method {
        padding: 20px 15px;
        border-radius: 15px;
        min-height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .payment-method img {
        height: 40px;
        max-width: 100%;
        object-fit: contain;
    }
    
    /* Чекбокс соглашения */
    .agreement-checkbox-section {
        margin: 25px 0;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 15px;
    }
    
    .agreement-checkbox-label {
        font-size: 0.95rem;
        line-height: 1.5;
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }
    
    .agreement-checkbox-custom {
        width: 22px;
        height: 22px;
        margin-top: 2px;
        flex-shrink: 0;
    }
    
    /* Финальное модальное окно */
    .final-payment-modal-overlay {
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .final-payment-modal-content {
        margin: 0;
        padding: 30px 25px;
        border-radius: 20px;
        width: 100%;
        max-width: 500px;
    }
    
    .final-payment-form-container {
        gap: 25px;
    }
    
    .final-payment-title {
        font-size: 1.4rem;
        text-align: center;
        margin-bottom: 25px;
    }
    
    .final-payment-input-group {
        margin-bottom: 20px;
    }
    
    .final-payment-label {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .final-payment-input {
        padding: 16px 18px;
        font-size: 1.1rem;
        border-radius: 15px;
        min-height: 56px;
    }
    
    .contact-info-text {
        font-size: 0.9rem;
        margin-top: 8px;
        line-height: 1.4;
    }
    
    .final-payment-btn {
        padding: 16px 30px;
        font-size: 1.1rem;
        border-radius: 25px;
        width: 100%;
        min-height: 56px;
    }
    
    /* Кнопки */
    .base-btn {
        padding: 14px 25px;
        font-size: 1.1rem;
        border-radius: 25px;
        min-height: 50px;
        transition: all 0.3s ease;
    }
    
    .back-btn {
        padding: 12px 25px;
        font-size: 1rem;
        border-radius: 20px;
        min-width: 120px;
        margin-bottom: 20px;
    }
    
    .back-btn:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    /* Переключатели ввода */
    .input-container {
        margin-bottom: 20px;
        position: relative;
    }
    
    .switch-input-link {
        position: absolute;
        right: 0;
        top: -25px;
        font-size: 0.9rem;
        padding: 5px 10px;
        border-radius: 15px;
        background: #f0f0f0;
        color: #666;
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .switch-input-link:hover {
        background: #BC83DD;
        color: white;
    }
    
    .or-divider {
        margin: 25px 0;
        font-size: 1rem;
        font-weight: 500;
    }
    
    /* Каталог продуктов */
    #catalogProducts {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
        margin-top: 30px;
    }
    
    .product-item {
        padding: 20px;
        border-radius: 15px;
    }
    
    .product-item-title h3 {
        font-size: 1.1rem;
    }
    
    .product-item-price h3 {
        font-size: 1.3rem;
    }
    
    .product-item-btn {
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 20px;
    }
    
    /* Футер */
    footer {
        padding: 30px 0;
        margin-top: 40px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 0 20px;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-links {
        order: 2;
        gap: 20px;
        flex-direction: column;
    }
    
    .footer-link {
        font-size: 0.95rem;
        padding: 10px;
    }
    
    .footer-contacts {
        order: 1;
        margin-bottom: 10px;
    }
    
    .contacts-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .contacts-links {
        justify-content: center;
        gap: 20px;
    }
    
    .contact-link {
        padding: 10px;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .contact-link:hover {
        background: rgba(0, 0, 0, 0.05);
        transform: translateY(-2px);
    }
    
    .contact-link img {
        width: 35px;
        height: 35px;
    }
    
    .footer-copyright {
        margin-top: 20px;
    }
    
    .footer-copyright p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 5px;
    }
}

/* ========================================
   Планшеты среднего размера (481px-768px)
======================================== */
@media (max-width: 768px) and (min-width: 481px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .header {
        padding: 20px 30px;
    }
    
    .hero-content {
        padding: 0 30px;
    }
    
    .coin-block {
        min-width: 280px;
        padding: 18px 25px;
    }
    
    .header-top-up-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* ========================================
   Десктопы (min-width: 481px)  
======================================== */
@media (min-width: 481px) {
    /* Скрываем мобильные элементы на десктопе */
    .mobile-menu-image,
    .mobile-menu-content {
        display: none !important;
    }
    
    /* Скрываем мобильные кнопки на десктопе */
    .mobile-buttons {
        display: none !important;
    }
    
    /* Показываем десктопные кнопки */
    .desktop-buttons {
        display: flex !important;
    }
    
    /* Возвращаем стандартные стили для десктопного меню */
    .dropdown-menu {
        position: absolute;
        top: 80px;
        right: -450px;
        width: 400px;
        height: 280px;
        background: white;
        border-radius: 15px;
        transition: right 0.3s ease;
        z-index: 100;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .dropdown-menu.active {
        right: 30px;
    }
    
    /* Показываем десктопное меню */
    .desktop-menu-list {
        list-style: none;
        padding: 10px 15px;
        height: 100%;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }
    
    .desktop-menu-list .menu-link {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        text-align: center;
        display: block;
        padding: 8px 0;
        transition: color 0.3s ease;
        font-family: 'Inter', sans-serif;
    }
    
    .desktop-menu-list .menu-link:hover {
        color: #E8788E;
    }
    
    /* Скрываем мобильное меню на десктопе */
    .mobile-menu-list {
        display: none !important;
    }
}

/* ========================================
   Мобильные устройства (max-width: 480px)
======================================== */
@media (max-width: 480px) {
    /* Исправление высоты на мобильных */
    .hero-section {
        min-height: 100vh;
        height: auto;
    }
    
    /* Мобильное меню */
    .mobile-menu-image,
    .mobile-menu-content {
        display: flex !important;
    }
    
    .desktop-menu-list {
        display: none !important;
    }
    
    /* Заголовки */
    .hero-title {
        font-size: 2rem;
        margin-bottom: 20px;
        line-height: 1.2;
        padding: 0 10px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    /* Хедер */
    .header {
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .hamburger-btn {
        background: none;
        border: none;
        padding: 10px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 4px;
        z-index: 1001;
        transition: opacity 0.3s ease;
    }
    
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 100;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .header-top-up-btn {
        background: transparent;
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.6);
        padding: 10px 18px;
        font-size: 0.85rem;
        border-radius: 25px;
        min-height: 40px;
    }
    
    /* Главный контент */
    .hero-content {
        padding: 0 20px;
        margin: 20px 0;
    }
    
    .hero-bottom {
        padding: 20px;
        margin-bottom: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .download-btn {
        order: -1;
        padding: 14px 28px;
        font-size: 1rem;
        min-width: 220px;
        height: auto;
        text-align: center;
        border-radius: 25px;
        min-height: 50px;
    }
    
    /* Скрываем десктопные кнопки на мобильных */
    .desktop-buttons {
        display: none;
    }
    
    /* Показываем мобильные кнопки */
    .mobile-buttons {
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: center;
        width: 100%;
        max-width: 320px;
    }
    
    .package-btn, .custom-btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 28px;
        font-size: 1.1rem;
        border-radius: 25px;
        min-height: 54px;
        font-weight: 500;
    }
    
    .coin-block {
        flex-direction: column;
        gap: 15px;
        padding: 25px 20px;
        min-width: 260px;
        max-width: 300px;
        width: 100%;
        text-align: center;
        border-radius: 20px;
    }
    
    .coin-text {
        font-size: 1.1rem;
        font-weight: 500;
    }
    
    .top-up-btn {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
        border-radius: 25px;
        min-height: 48px;
    }
    
    /* Выпадающее меню на мобильных */
    .dropdown-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        border-radius: 0;
        transition: all 0.3s ease;
        z-index: 1000;
        box-shadow: none;
        pointer-events: none;
    }
    
    .dropdown-menu.active {
        pointer-events: all;
    }
    
    .mobile-menu-image {
        position: absolute;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        transition: right 0.3s ease;
        z-index: 1001;
    }
    
    .mobile-menu-image.compressed {
        right: 0;
    }
    
    .mobile-menu-phone {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }
    
    .mobile-menu-close {
        position: absolute;
        top: 30px;
        right: 30px;
        background: rgba(0, 0, 0, 0.3);
        color: white;
        border: none;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        font-size: 1.5rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1002;
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
    }
    
    .mobile-menu-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%;
        background: white;
        border-radius: 30px 30px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        z-index: 1002;
        display: flex;
        flex-direction: column;
        padding: 30px 20px 20px;
    }
    
    .mobile-menu-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0;
        flex-grow: 1;
        justify-content: space-around;
        padding: 20px 0;
        margin: 0;
    }
    
    .mobile-menu-list li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .mobile-menu-list .menu-link {
        display: block;
        padding: 18px 0;
        color: #333;
        text-decoration: none;
        font-weight: 500;
        font-size: 1.1rem;
        text-align: left;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
        padding-left: 15px;
        margin-left: -15px;
        font-family: 'Inter', sans-serif;
    }
    
    .mobile-menu-list .menu-link:last-child {
        border-bottom: none;
    }
    
    .menu-text-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 30px 20px;
        overflow-y: auto;
        z-index: 1003;
        border-radius: 30px 30px 0 0;
    }
    
    .menu-text-content.active {
        transform: translateX(0);
    }
    
    .menu-text-content h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
        color: #333;
    }
    
    .menu-text-content p {
        line-height: 1.6;
        color: #666;
        margin-bottom: 15px;
    }
    
    .menu-text-content .agreement-text {
        max-height: none;
        padding: 0;
        background: none;
        border: none;
    }
    
    .menu-text-content .agreement-text h2,
    .menu-text-content .agreement-text h3 {
        margin-top: 25px;
    }
    
    .menu-back-btn {
        position: absolute;
        top: 30px;
        left: 20px;
        background: #f8f9fa;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        cursor: pointer;
        transition: all 0.3s ease;
        color: #333;
        z-index: 1004;
    }
    
    /* Модальные окна на мобильных */
    .modal-nav-list {
        gap: 8px 15px;
        font-size: 0.85rem;
    }
    
    .modal-text-content h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .modal-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .modal-phone {
        max-width: 200px;
    }
    
    /* Текст соглашения на мобильных */
    .agreement-text {
        max-height: 250px;
        padding: 12px;
    }
    
    .agreement-text h2 {
        font-size: 1.5rem;
    }
    
    .agreement-text h3 {
        font-size: 1.2rem;
    }
    
    .agreement-text p {
        font-size: 0.9rem;
    }
    
    /* Модальное окно заказа на мобильных */
    .order-modal-overlay {
        padding: 15px;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .order-modal-content {
        margin: 0;
        padding: 20px 18px;
        border-radius: 20px;
        width: 100%;
        max-width: 100%;
        min-height: auto;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .order-modal-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .order-modal-logo {
        height: 32px;
    }
    
    .order-modal-close {
        width: 38px;
        height: 38px;
        font-size: 1.4rem;
    }
    
    .order-input-group {
        margin-bottom: 20px;
        gap: 12px;
    }
    
    .order-input {
        padding: 15px 16px;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 52px;
    }
    
    .order-input.with-at {
        padding-left: 40px;
    }
    
    .at-symbol {
        left: 16px;
        font-size: 1rem;
    }
    
    /* Специальные стили для where-find на мобильных */
    .where-find-section {
        position: static;
        transform: none;
        right: auto;
        top: auto;
        margin-top: 15px;
        text-align: center;
        display: block;
    }
    
    .where-find-link {
        background: #f8f9fa !important;
        border: 2px solid #BC83DD !important;
        border-radius: 20px !important;
        padding: 10px 20px !important;
        text-align: center;
        display: inline-block;
        font-size: 0.95rem;
        color: #BC83DD !important;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    .where-find-link:hover {
        background: #BC83DD !important;
        color: white !important;
        transform: translateY(-1px);
        border-color: #BC83DD !important;
    }
    
    .validation-error-block {
        padding: 18px;
        border-radius: 12px;
        margin-top: 15px;
        background: #fff5f5;
        border: 1px solid #fed7d7;
    }
    
    .validation-error-image {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }
    
    .validation-error-text {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    /* Информация о профиле на мобильных */
    .profile-info-block {
        padding: 20px;
        border-radius: 15px;
        margin: 15px 0;
        background: #f8f9fa;
        border: 2px solid #e9ecef;
    }
    
    .profile-avatar {
        width: 65px;
        height: 65px;
        border-radius: 15px;
    }
    
    .profile-name {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .confirm-profile-btn {
        padding: 12px 25px;
        font-size: 1rem;
        border-radius: 20px;
        margin: 15px 0;
        width: 100%;
        min-height: 48px;
    }
    
    .change-profile-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 15px;
        margin-top: 8px;
    }
    
    /* Форма покупки на мобильных */
    .purchase-inputs-form {
        gap: 20px;
    }
    
    .animated-input {
        padding: 18px 14px 6px;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 52px;
    }
    
    .animated-label {
        left: 14px;
        font-size: 0.95rem;
        top: 16px;
        display: block !important; /* Всегда показываем лейблы */
    }
    
    .animated-input:focus + .animated-label,
    .animated-input:not(:placeholder-shown) + .animated-label,
    .animated-input.has-value + .animated-label {
        left: 14px;
        top: 6px;
        font-size: 0.8rem;
    }
    
    /* Переключатель ввода на мобильных */
    .switch-input-link {
        position: static !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        display: block;
        text-align: center;
        margin-top: 12px;
        font-size: 0.9rem;
        padding: 8px 16px;
        border-bottom: 2px solid #BC83DD;
        border-radius: 0;
        background: transparent;
        color: #BC83DD;
        font-weight: 500;
    }
    
    .switch-input-link:hover {
        border-bottom-color: #9508F6;
        color: #9508F6;
    }
    
    .input-container {
        margin-bottom: 18px;
    }
    
    .or-divider {
        margin: 20px 0;
        font-size: 0.95rem;
        font-weight: 500;
    }
    
    /* Скидочная шкала на мобильных */
    .discount-scale-container {
        padding: 18px;
        border-radius: 15px;
        margin: 15px 0;
    }
    
    .discount-scale-wrapper {
        margin-bottom: 18px;
    }
    
    .discount-scale {
        height: 6px;
        margin: 25px 0;
    }
    
    .scale-track {
        height: 6px;
        border-radius: 3px;
    }
    
    .scale-progress {
        height: 6px;
        border-radius: 3px;
    }
    
    .scale-thumb {
        width: 24px;
        height: 24px;
        margin-top: -9px;
        margin-left: -12px;
    }
    
    .scale-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
        min-width: 50px;
        bottom: 35px;
    }
    
    .scale-mark-badge {
        font-size: 0.7rem;
        padding: 3px 6px;
        top: 20px;
    }
    
    .calculation-block {
        padding: 18px;
        border-radius: 15px;
        margin: 15px 0;
    }
    
    .calculation-content {
        gap: 12px;
    }
    
    .calculation-row {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    
    .discount-hint {
        font-size: 0.85rem;
        padding: 12px;
        border-radius: 12px;
        margin: 12px 0;
    }
    
    .confirm-purchase-section {
        padding: 15px 0;
    }
    
    .confirm-purchase-btn {
        padding: 14px 24px;
        font-size: 1rem;
        border-radius: 20px;
        width: 100%;
        min-height: 50px;
    }
    
    /* Способы оплаты на мобильных */
    .payment-methods-section {
        margin: 20px 0;
    }
    
    .payment-methods-title {
        font-size: 1.1rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .payment-method {
        padding: 15px;
        border-radius: 12px;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .payment-method img {
        height: 32px;
        max-width: 100%;
        object-fit: contain;
    }
    
    /* Чекбокс соглашения на мобильных */
    .agreement-checkbox-section {
        margin: 20px 0;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 12px;
    }
    
    .agreement-checkbox-label {
        font-size: 0.9rem;
        line-height: 1.4;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }
    
    .agreement-checkbox-custom {
        width: 20px;
        height: 20px;
        margin-top: 1px;
        flex-shrink: 0;
    }
    
    /* Финальное модальное окно на мобильных */
    .final-payment-modal-overlay {
        padding: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .final-payment-modal-content {
        margin: 0;
        padding: 25px 20px;
        border-radius: 18px;
        width: 100%;
        max-width: 100%;
    }
    
    .final-payment-form-container {
        gap: 18px;
    }
    
    .final-payment-title {
        font-size: 1.25rem;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .final-payment-input-group {
        margin-bottom: 15px;
    }
    
    .final-payment-label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .final-payment-input {
        padding: 15px 16px;
        font-size: 1rem;
        border-radius: 12px;
        min-height: 52px;
    }
    
    .contact-info-text {
        font-size: 0.85rem;
        margin-top: 6px;
        line-height: 1.3;
    }
    
    .final-payment-btn {
        padding: 15px 25px;
        font-size: 1rem;
        border-radius: 20px;
        width: 100%;
        min-height: 52px;
    }
    
    /* Кнопки на мобильных */
    .base-btn {
        padding: 12px 20px;
        font-size: 1rem;
        border-radius: 20px;
        min-height: 48px;
        transition: all 0.3s ease;
    }
    
    .back-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 15px;
        min-width: 100px;
        margin-bottom: 15px;
    }
    
    .return-to-order-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 18px;
        min-height: 44px;
    }
    
    .payment-stage {
        padding: 0;
    }
    
    /* Каталог продуктов на мобильных */
    #catalogProducts {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
        margin-top: 20px;
    }
    
    .product-item {
        padding: 15px;
    }
    
    .product-item-title h3 {
        font-size: 1.1rem;
    }
    
    .product-item-price h3 {
        font-size: 1.3rem;
    }
    
    /* Футер на мобильных */
    footer {
        padding: 25px 0;
        margin-top: 30px;
    }
    
    .footer-content {
        padding: 0 20px;
        gap: 20px;
    }
    
    .footer-logo img {
        height: 35px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-link {
        font-size: 0.9rem;
    }
    
    .footer-contacts {
        margin-bottom: 10px;
    }
    
    .contacts-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .contacts-links {
        gap: 15px;
    }
    
    .contact-link {
        padding: 6px;
    }
    
    .contact-link img {
        width: 28px;
        height: 28px;
    }
    
    .footer-copyright {
        margin-top: 15px;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }
}

/* ========================================
   Дополнительные исправления для мобильных
======================================== */

/* Исправления для очень маленьких экранов */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .order-modal-content {
        padding: 15px 12px;
        margin: 5px 0;
    }
    
    .order-input {
        padding: 14px 15px;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .animated-input {
        padding: 16px 12px 6px;
        font-size: 0.95rem;
        min-height: 48px;
    }
    
    .animated-label {
        left: 12px;
        font-size: 0.9rem;
        top: 14px;
        display: block !important; /* Всегда показываем лейблы */
    }
    
    .animated-input:focus + .animated-label,
    .animated-input:not(:placeholder-shown) + .animated-label,
    .animated-input.has-value + .animated-label {
        left: 12px;
        top: 5px;
        font-size: 0.75rem;
    }
    
    .profile-info-block {
        padding: 15px;
    }
    
    .profile-avatar {
        width: 55px;
        height: 55px;
    }
    
    .profile-name {
        font-size: 1rem;
    }
    
    .confirm-profile-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .package-btn, .custom-btn {
        max-width: 280px;
        padding: 14px 24px;
        font-size: 1rem;
        min-height: 50px;
    }
    
    .coin-block {
        max-width: 280px;
        padding: 20px 15px;
    }
    
    .modal-nav-link {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .modal-text-content h2 {
        font-size: 1.6rem;
    }
    
    .modal-text {
        font-size: 0.95rem;
    }
    
    .payment-methods-grid {
        gap: 10px;
    }
    
    .payment-method {
        padding: 12px 10px;
        min-height: 55px;
    }
    
    .payment-method img {
        height: 28px;
    }
    
    .final-payment-modal-content {
        padding: 20px 15px;
    }
    
    .final-payment-title {
        font-size: 1.15rem;
    }
    
    .final-payment-input {
        padding: 14px 15px;
        font-size: 0.95rem;
        min-height: 48px;
    }
}

/* Исправления для альбомной ориентации на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-bottom {
        padding: 15px 20px;
        margin-bottom: 15px;
        gap: 15px;
    }
    
    .mobile-buttons {
        gap: 12px;
        max-width: 280px;
    }
    
    .package-btn, .custom-btn {
        padding: 12px 24px;
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .coin-block {
        padding: 15px;
        gap: 10px;
    }
    
    .coin-text {
        font-size: 1rem;
    }
    
    .top-up-btn {
        padding: 10px;
        font-size: 0.95rem;
        min-height: 40px;
    }
    
    .download-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-height: 40px;
        min-width: 180px;
    }
    
    .order-modal-overlay {
        padding: 10px;
    }
    
    .order-modal-content {
        padding: 15px;
        margin: 5px 0;
    }
    
    .modal-content {
        padding: 15px;
        padding-bottom: 60px;
    }
    
    .modal-images {
        height: 300px;
        max-width: 250px;
    }
    
    .modal-phone {
        max-width: 220px;
    }
}

/* Исправления для экранов с низким разрешением */
@media (max-width: 480px) and (max-height: 600px) {
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-bottom {
        padding: 15px;
        gap: 15px;
    }
    
    .mobile-buttons {
        gap: 12px;
    }
    
    .coin-block {
        padding: 18px 15px;
        gap: 12px;
    }
    
    .order-modal-content {
        padding: 15px;
    }
    
    .modal-content {
        padding: 15px;
        padding-bottom: 50px;
    }
}

/* Исправления для touch устройств */
@media (hover: none) and (pointer: coarse) {
    .base-btn {
        min-height: 48px;
        min-width: 48px;
    }
    
    .where-find-link {
        min-height: 44px;
        padding: 12px 20px !important;
    }
    
    .switch-input-link {
        min-height: 40px;
        padding: 10px 16px;
    }
    
    .contact-link {
        min-width: 44px;
        min-height: 44px;
        padding: 8px;
    }
    
    .modal-nav-link {
        min-height: 40px;
        padding: 10px 15px;
    }
    
    .payment-method {
        min-height: 60px;
    }
    
    .hamburger-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 12px;
    }
    
    .modal-close, .order-modal-close, .final-payment-modal-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ========================================
   Мобильные устройства по высоте
======================================== */
@media (max-height: 600px) {
    .mobile-menu-content {
        height: 60%;
    }
    
    .mobile-menu-list .menu-link {
        padding: 12px 0;
        font-size: 1rem;
    }
    
    .order-modal-overlay {
        align-items: center;
    }
    
    .order-modal-content {
        margin: 10px 0;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-height: 500px) {
    .mobile-menu-content {
        height: 70%;
    }
    
    .mobile-menu-list .menu-link {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-bottom {
        padding: 10px 20px;
        gap: 12px;
    }
    
    .order-modal-content {
        padding: 12px;
        max-height: 85vh;
    }
    
    .modal-content {
        padding: 12px;
        padding-bottom: 40px;
    }
    
    .modal-images {
        height: 250px;
    }
}