* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Header */
header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
}

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

nav ul {
    list-style: none;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

nav > ul > li {
    position: relative;
}

.mobile-menu-item {
    display: none;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
    white-space: nowrap;
    text-transform: uppercase;
}

nav a:hover,
nav a.active {
    color: #005080;
}

.arrow {
    font-size: 10px;
    margin-left: 5px;
}

.has-dropdown {
    position: relative;
}

/* Создаем невидимую зону для связи между пунктом меню и dropdown */
.has-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
    background: transparent;
    z-index: 1000;
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 220px;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    padding: 6px 0;
    margin-top: 0;
    list-style: none;
    z-index: 1001;
    pointer-events: none;
    border-radius: 6px;
    overflow: hidden;
}

.has-dropdown:hover .dropdown,
.has-dropdown:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Анимация появления элементов меню */
.dropdown li {
    opacity: 0;
    transform: translateX(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.has-dropdown:hover .dropdown li {
    opacity: 1;
    transform: translateX(0);
}

.has-dropdown:hover .dropdown li:nth-child(1) {
    transition-delay: 0.05s;
}

.has-dropdown:hover .dropdown li:nth-child(2) {
    transition-delay: 0.1s;
}

.has-dropdown:hover .dropdown li:nth-child(3) {
    transition-delay: 0.15s;
}

.has-dropdown:hover .dropdown li:nth-child(4) {
    transition-delay: 0.2s;
}

.has-dropdown:hover .dropdown li:nth-child(5) {
    transition-delay: 0.25s;
}

.dropdown a {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-transform: none;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1002;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown a:hover {
    background: #f5f5f5;
    color: #005080;
    padding-left: 20px;
}

/* Мобильные стили для dropdown перенесены в секцию Mobile Menu Styles ниже */

.header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-phone {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.header-phone:hover {
    color: #005080;
}

.lk-button {
    display: inline-block;
    padding: 8px 20px;
    background: #e0e0e0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s;
    white-space: nowrap;
}

.lk-button:hover {
    background: #d0d0d0;
}

.vk-button {
    display: inline-block;
    padding: 8px 20px;
    background: #4c75a3;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.3s;
    white-space: nowrap;
}

.vk-button:hover {
    background: #3d5f8a;
}

.how-to-pay-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding: 4px 0;
}

.how-to-pay-link:hover {
    color: #4a90e2;
}

.how-to-pay-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4a90e2;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.3s ease, transform 0.3s ease;
}

.how-to-pay-link:hover .how-to-pay-icon {
    background: #357abd;
    transform: scale(1.1);
}

/* Hero Banner Form */
.hero-banner-form {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    padding: 60px 20px 30px 20px;
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: flex-start;
}

.hero-banner-form .container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

.hero-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 45px;
    align-items: flex-start;
    width: 100%;
}

.hero-form-left {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 35px;
    padding-top: 0;
}

.hero-form-title {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
    letter-spacing: 0.5px;
}

.hero-form-image {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.hero-form-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-form-right {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.hero-loan-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    gap: 20px;
}

.form-row-full {
    grid-template-columns: 1fr;
}

.form-row-two {
    grid-template-columns: 1fr 1fr;
}

.form-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    text-align: center;
}

.hero-loan-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-loan-form label {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.hero-loan-form .required {
    color: #e74c3c;
    font-weight: 700;
}

.hero-loan-form select,
.hero-loan-form input[type="text"],
.hero-loan-form input[type="tel"],
.hero-loan-form input[type="email"],
.hero-loan-form input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f9f9f9;
    color: #333;
}

.hero-loan-form select:focus,
.hero-loan-form input:focus {
    outline: none;
    border-color: #4a90e2;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.hero-loan-form select option[disabled].city-warning,
.hero-loan-form select option.city-warning {
    color: #e74c3c;
    font-weight: 600;
    background-color: #ffe5e5;
}

.range-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.range-slider-wrapper input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    margin: 0;
}

.range-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4a90e2;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.range-slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    background: #357abd;
    transform: scale(1.1);
}

.range-slider-wrapper input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4a90e2;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.range-slider-wrapper input[type="range"]::-moz-range-thumb:hover {
    background: #357abd;
    transform: scale(1.1);
}

.range-slider-wrapper input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
}

.range-values {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.range-values span:first-child,
.range-values span:last-child {
    color: #999;
}

.range-values span:nth-child(2) {
    color: #4a90e2;
    font-weight: 700;
    font-size: 16px;
}

.range-slider-wrapper input[type="number"] {
    width: 100%;
    margin-top: 5px;
}

.hero-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.hero-submit-btn:hover {
    background: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.hero-submit-btn:active {
    transform: translateY(0);
}

.hero-form-message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
}

.hero-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.hero-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.hero-loan-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.hero-loan-form .checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #4a90e2;
}

.hero-loan-form .checkbox-label {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    cursor: pointer;
    flex: 1;
}

.hero-loan-form .checkbox-label a {
    color: #4a90e2;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.hero-loan-form .checkbox-label a:hover {
    color: #357abd;
}

@media (max-width: 1200px) {
    .hero-form-wrapper {
        max-width: 1200px;
        gap: 40px;
    }

    .hero-form-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 968px) {
    .hero-banner-form {
        min-height: auto;
        padding: 40px 0;
    }

    .hero-form-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-form-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .form-row-two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-banner-form {
        display: none;
    }

    .mobile-loan-form-section {
        display: block;
    }
}

/* Mobile Loan Application Form */
.mobile-loan-form-section {
    display: none;
    padding: 50px 15px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    position: relative;
    overflow: hidden;
}

.mobile-loan-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path d="M0,100 Q300,50 600,100 T1200,100 L1200,0 L0,0 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat top;
    opacity: 0.3;
}

.mobile-loan-form-section .container {
    max-width: 520px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.mobile-form-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 35px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.mobile-loan-form {
    background: #fff;
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.mobile-form-group {
    margin-bottom: 25px;
}

.mobile-form-group label {
    display: block;
    margin-bottom: 12px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.3px;
}

.mobile-form-group .required {
    color: #e74c3c;
    font-weight: 700;
}

.mobile-form-group input[type="text"],
.mobile-form-group input[type="tel"],
.mobile-form-group input[type="email"],
.mobile-form-group input[type="number"],
.mobile-form-group select {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 18px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f9f9f9;
    color: #333;
}

.mobile-form-group input:focus,
.mobile-form-group select:focus {
    outline: none;
    border-color: #4a90e2;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    transform: translateY(-1px);
}

.mobile-form-group select option[disabled].city-warning,
.mobile-form-group select option.city-warning {
    color: #e74c3c;
    font-weight: 600;
    background-color: #ffe5e5;
}

.mobile-form-group input::placeholder {
    color: #999;
    font-size: 17px;
}

.mobile-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 25px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.mobile-checkbox-group input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #005080;
}

.mobile-checkbox-label {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    cursor: pointer;
    flex: 1;
}

.mobile-checkbox-label a {
    color: #005080;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.mobile-checkbox-label a:hover {
    color: #003d63;
}

.mobile-submit-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #005080 0%, #003d63 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(0, 80, 128, 0.3);
}

.mobile-submit-btn:hover {
    background: linear-gradient(135deg, #003d63 0%, #002d4d 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 80, 128, 0.4);
}

.mobile-submit-btn:active {
    transform: translateY(-1px);
}

.mobile-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mobile-form-message {
    display: none;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

.mobile-form-message.success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 2px solid #b8dacc;
}

.mobile-form-message.error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 2px solid #f1b0b7;
}

.mobile-form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    text-align: center;
}

.mobile-range-slider-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-range-slider-wrapper input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    padding: 0;
    margin: 0;
}

.mobile-range-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4a90e2;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-range-slider-wrapper input[type="range"]::-webkit-slider-thumb:hover {
    background: #357abd;
    transform: scale(1.1);
}

.mobile-range-slider-wrapper input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4a90e2;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.mobile-range-slider-wrapper input[type="range"]::-moz-range-thumb:hover {
    background: #357abd;
    transform: scale(1.1);
}

.mobile-range-slider-wrapper input[type="range"]::-moz-range-track {
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
}

.mobile-range-values {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.mobile-range-values span:first-child,
.mobile-range-values span:last-child {
    color: #999;
}

.mobile-range-values span:nth-child(2) {
    color: #4a90e2;
    font-weight: 700;
    font-size: 17px;
}

.mobile-range-slider-wrapper input[type="number"] {
    margin-top: 5px;
}

@media (max-width: 768px) {
    .hero-banner-form {
        display: none;
    }

    .mobile-loan-form-section {
        display: block;
        padding: 40px 15px;
    }

    .mobile-form-title {
        font-size: 1.7rem;
        margin-bottom: 30px;
    }

    .mobile-loan-form {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .mobile-form-group {
        margin-bottom: 20px;
    }

    .mobile-range-slider-wrapper {
        gap: 8px;
    }

    .mobile-form-group {
        margin-bottom: 22px;
    }

    .mobile-form-group label {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .mobile-form-group input[type="text"],
    .mobile-form-group input[type="tel"],
    .mobile-form-group input[type="number"] {
        padding: 16px 18px;
        font-size: 17px;
        border-radius: 10px;
    }

    .mobile-form-group input::placeholder {
        font-size: 16px;
    }

    .mobile-submit-btn {
        padding: 18px;
        font-size: 17px;
        border-radius: 10px;
    }

    .mobile-checkbox-group {
        padding: 12px;
        margin-top: 20px;
        margin-bottom: 25px;
    }

    .mobile-checkbox-label {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .mobile-loan-form-section {
        padding: 30px 12px;
    }

    .mobile-form-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .mobile-loan-form {
        padding: 25px 18px;
    }

    .mobile-form-group input[type="text"],
    .mobile-form-group input[type="tel"],
    .mobile-form-group input[type="number"] {
        padding: 15px 16px;
        font-size: 16px;
    }
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 200"><path d="M0,100 Q300,50 600,100 T1200,100 L1200,0 L0,0 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat top;
    opacity: 0.3;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-slide {
    display: none !important;
    width: 100%;
    height: 500px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    align-items: center;
    overflow: hidden;
}

.hero-slide.active {
    display: flex !important;
    opacity: 1;
    position: relative;
}

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

.hero-title-top {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 20px;
    max-width: 100%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    box-sizing: border-box;
}

/* Стили для первого слайда (рефинансирование) */
.hero-slide:first-child .hero-content {
    grid-template-columns: 1fr 3fr 1fr;
}

.hero-title {
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-text-content {
    text-align: center;
    margin-top: 20px;
}

.hero-description-text {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 500;
    margin: 10px 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.6;
}

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

.coins-visualization {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    position: relative;
    padding: 20px;
}

.coins-stack {
    width: 50px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.coins-stack::before {
    content: '';
    width: 100%;
    height: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.coins-stack::after {
    content: '';
    width: 100%;
    height: 15px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 50%;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.coins-stack-1 {
    height: 100px;
}

.coins-stack-2 {
    height: 75px;
}

.coins-stack-3 {
    height: 50px;
}

.down-arrow {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    font-size: 40px;
    color: #ff4444;
    font-weight: bold;
    line-height: 1;
}

.percentages {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    align-items: baseline;
}

.percent {
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.percent-1 {
    font-size: 3rem;
}

.percent-2 {
    font-size: 2.2rem;
    opacity: 0.9;
}

.percent-3 {
    font-size: 1.6rem;
    opacity: 0.7;
}

.hero-center {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Second Slide Styles - Гарантия низкой ставки */
.person-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.person-icon {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-subtitle {
    margin: 15px 0;
}

.subtitle-main {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle-secondary {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    margin: 15px 0;
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
}

.hero-description p {
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-button-wrapper {
    margin-top: 20px;
}

.hero-cta-button {
    display: inline-block;
    padding: 12px 35px;
    background: #35a749;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(53, 167, 73, 0.4);
}

.hero-cta-button:hover {
    background: #2d8f3f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(53, 167, 73, 0.5);
}

.discount-badge {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 160px;
}

.discount-label {
    display: block;
    color: #005080;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.discount-value {
    display: block;
    color: #35a749;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.discount-unit {
    display: block;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-dot.active,
.slider-dot:hover {
    background: #fff;
    transform: scale(1.2);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-size: 3rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    line-height: 1;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow-prev {
    left: 20px;
}

.slider-arrow-next {
    right: 20px;
}

@media (max-width: 768px) {
    .hero-title-top {
        font-size: 1.8rem;
        letter-spacing: 1px;
        white-space: normal;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 25px;
        margin-top: 15px;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
    }

    .hero-description-text {
        font-size: 1.1rem;
    }

    .subtitle-main {
        font-size: 1.5rem;
    }

    .subtitle-secondary {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }

    .hero-text-line {
        font-size: 1.6rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }

    .slider-arrow-prev {
        left: 10px;
    }

    .slider-arrow-next {
        right: 10px;
    }

    .person-icon {
        max-width: 150px;
    }

    .coins-visualization {
        padding: 10px;
    }

    .percentages {
        gap: 15px;
    }
}

.hero-text {
    color: #fff;
    text-align: center;
}

.hero-text-line {
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 8px;
    white-space: nowrap;
}

.percent-circle {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: #fff;
    color: #4a90e2;
    font-size: 2rem;
    font-weight: bold;
    margin-left: 10px;
}

/* Services Grid */
.services-grid {
    padding: 60px 0;
    background: #fff;
}

.services-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    text-align: center;
    padding: 20px;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.service-title {
    color: #4a90e2;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.service-image {
    margin-bottom: 20px;
}

.service-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Our Principles Section */
.principles-section {
    padding: 40px 0;
    background: #35a749;
    position: relative;
    margin-bottom: 0;
}

.principles-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.principles-separator {
    width: 80px;
    height: 2px;
    border-top: 2px dotted #fff;
    margin: 0 auto 25px;
}

.principles-intro {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    max-width: 850px;
    margin: 0 auto 35px;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.principle-item {
    text-align: center;
}

.principle-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.principle-icon svg {
    width: 60px;
    height: 60px;
}

.principle-title {
    color: #333;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.principle-text {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: justify;
}

@media (max-width: 768px) {
    .principles-section {
        padding: 30px 0;
    }

    .principles-title {
        font-size: 1.5rem;
    }

    .principles-separator {
        margin: 0 auto 20px;
    }

    .principles-intro {
        font-size: 0.9rem;
        padding: 0 20px;
        margin-bottom: 25px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .principle-icon svg {
        width: 50px;
        height: 50px;
    }

    .principle-title {
        font-size: 1.2rem;
    }

    .principle-text {
        font-size: 0.85rem;
        text-align: left;
    }
}

/* Loan Process Steps Section */
.loan-steps-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #005080 0%, #003d63 100%);
    position: relative;
}

.loan-steps-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #005080 0%, #35a749 50%, #005080 100%);
}

.steps-header {
    text-align: center;
    margin-bottom: 50px;
}

.steps-header h2 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.step-item-clickable {
    cursor: pointer;
}

.step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.step-item:hover::before {
    left: 100%;
}

.step-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.step-icon {
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.step-item:nth-child(2) .step-icon {
    animation-delay: 0.5s;
}

.step-item:nth-child(3) .step-icon {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.step-icon img {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.step-item h3 {
    color: #005080;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step-item p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .steps-header h2 {
        font-size: 2rem;
    }

    .step-item {
        padding: 25px 15px;
    }
}

/* Footer */
footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #005080;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 10px;
}

.footer-phone,
.footer-email {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline;
}

.footer-phone:hover,
.footer-email:hover {
    color: #005080;
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    background: transparent;
}

.social-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vk-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 117, 163, 0.4);
}

.telegram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
}

.detailed-footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #555;
}

.detailed-footer-column {
    font-size: 13px;
    line-height: 1.7;
}

.detailed-footer-column p {
    margin-bottom: 12px;
    color: #ccc;
}

.detailed-footer-column a {
    color: #4a90e2;
    text-decoration: none;
}

.detailed-footer-column a:hover {
    text-decoration: underline;
}

.detailed-footer-column strong {
    color: #fff;
    font-weight: 600;
}

.detailed-footer-column em {
    color: #aaa;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Page Content */
main {
    min-height: 60vh;
    padding: 40px 0;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2rem;
    color: #005080;
    margin-bottom: 30px;
    text-align: left;
}

.page-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 30px 0 20px 0;
    font-weight: 600;
}

.content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.content ul {
    margin: 20px 0;
    padding-left: 30px;
    line-height: 1.8;
}

.content ul li {
    margin-bottom: 10px;
    color: #555;
}

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

/* Promotion/Акции Styles */
.promotion-block {
    margin-bottom: 50px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.promotion-block h2 {
    font-size: 1.5rem;
    color: #4a90e2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.promotion-block h3 {
    font-size: 1.8rem;
    color: #005080;
    margin: 0 0 20px 0;
    font-weight: 600;
    text-align: left;
}

/* Современный единообразный стиль для акций */
.promotion-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.promotion-image-wrapper {
    flex: 0 0 300px;
    max-width: 300px;
}

.promotion-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    display: block;
}

.promotion-text-wrapper {
    flex: 1;
    min-width: 0;
}

.promotion-text-wrapper p {
    margin-bottom: 15px;
}

.promotion-text-wrapper ul {
    margin: 15px 0;
}

.promotion-button {
    margin-top: 25px;
    text-align: left;
}

.btn-primary {
    display: inline-block;
    padding: 14px 35px;
    background-color: #005080;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-primary:hover {
    background-color: #003d63;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 80, 128, 0.3);
}

.promotion-disclaimer {
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

@media (max-width: 768px) {
    .promotion-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .promotion-image-wrapper {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }

    .promotion-block {
        padding: 20px;
    }

    .promotion-block h3 {
        font-size: 1.5rem;
    }
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal.active {
    display: block;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.modal-header h2 {
    color: #005080;
    font-size: 1.8rem;
    margin: 0;
}

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

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

.modal-form .form-group {
    margin-bottom: 20px;
}

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

.modal-form .required {
    color: #e74c3c;
}

.modal-form input[type="text"],
.modal-form input[type="tel"],
.modal-form input[type="number"],
.modal-form select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.modal-form input:focus,
.modal-form select:focus {
    outline: none;
    border-color: #005080;
}

.modal-form select option[disabled].city-warning,
.modal-form select option.city-warning {
    color: #e74c3c;
    font-weight: 600;
    background-color: #ffe5e5;
}

.modal-form .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
}

.modal-form input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.modal-form .checkbox-label {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    cursor: pointer;
}

.modal-form .checkbox-label a {
    color: #005080;
    text-decoration: underline;
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

.modal-form .submit-btn {
    width: 100%;
    padding: 16px;
    background: #005080;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 25px;
}

.modal-form .submit-btn:hover {
    background: #003d63;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 80, 128, 0.3);
}

.modal-form .submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.modal-message {
    display: none;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.modal-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.modal-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .modal {
        padding: 25px 20px;
        max-width: 95%;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .step-icon img {
        max-width: 120px;
    }
}

.promotion-disclaimer {
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.promotion-block ul {
    margin: 15px 0;
    padding-left: 25px;
}

.promotion-block ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .promotion-two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .detailed-footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .detailed-footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .detailed-footer-column {
        font-size: 12px;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .services-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        padding-top: 70px;
    }

    .main-nav.active {
        right: 0;
    }


    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    nav > ul > li {
        border-bottom: 1px solid #e0e0e0;
    }

    nav > ul > li > a {
        padding: 15px 20px;
        display: block;
        color: #333;
        font-size: 16px;
        font-weight: 600;
    }

    nav > ul > li > a:hover {
        background: #f5f5f5;
        color: #005080;
    }

    .has-dropdown > a {
        position: relative;
    }

    .dropdown {
        display: none !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        background: #f8f9fa !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: auto !important;
        max-width: none !important;
        pointer-events: auto !important;
        border-radius: 0 !important;
    }

    .dropdown.show {
        display: block !important;
    }

    .dropdown li {
        border-bottom: 1px solid #e8e8e8;
    }

    .dropdown a {
        padding: 12px 20px 12px 40px !important;
        color: #555 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
    }

    .dropdown a:hover {
        background: #f0f0f0 !important;
        color: #005080 !important;
        padding-left: 40px !important;
    }

    .header-content {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .header-actions {
        display: none;
    }

    .mobile-menu-item {
        display: block !important;
    }

    .mobile-menu-item a {
        padding: 12px 20px !important;
        color: #555 !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
    }

    .mobile-menu-item a:hover {
        background: #f5f5f5 !important;
        color: #005080 !important;
    }

    .mobile-menu-toggle.active {
        position: fixed;
        top: 20px;
        right: 20px;
    }

    .mobile-menu-toggle.active span {
        background-color: #333;
}

/* Consent Frame Modal */
.consent-frame-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}

.consent-frame-overlay.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.consent-frame-modal {
    display: none !important;
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    transform: none !important;
    background: white;
    border-radius: 12px;
    padding: 0 !important;
    max-width: 800px;
    width: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    z-index: -9999 !important;
    box-shadow: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    margin: 0 !important;
}

/* Правила для активного состояния должны переопределять базовые */
.consent-frame-modal.active,
#consentFrameModal.active,
body .consent-frame-modal.active,
body #consentFrameModal.active {
    display: block !important;
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 10001 !important;
    width: 90% !important;
    max-width: 800px !important;
    max-height: 90vh !important;
    height: auto !important;
    overflow: hidden !important;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.consent-frame-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 2px solid #e0e0e0;
    background: #f8f9fa;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    box-sizing: border-box;
}

.consent-frame-modal.active .consent-frame-header,
#consentFrameModal.active .consent-frame-header {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.consent-frame-header h3 {
    color: #4a90e2;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    display: block !important;
    visibility: visible !important;
}

.consent-frame-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
    line-height: 1;
    visibility: visible !important;
    opacity: 1 !important;
}

.consent-frame-close:hover {
    color: #4a90e2;
}

/* Гарантируем видимость header в активном модальном окне */
.consent-frame-modal.active .consent-frame-header,
#consentFrameModal.active .consent-frame-header,
body .consent-frame-modal.active .consent-frame-header {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
}

.consent-frame-modal.active .consent-frame-header h3,
#consentFrameModal.active .consent-frame-header h3 {
    display: block !important;
    visibility: visible !important;
}

.consent-frame-modal.active .consent-frame-close,
#consentFrameModal.active .consent-frame-close {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Гарантируем полное скрытие модального окна по умолчанию */
.consent-frame-overlay:not(.active),
.consent-frame-modal:not(.active),
.consent-frame-overlay:not(.active) *,
.consent-frame-modal:not(.active) * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Дополнительная защита - скрываем элементы без класса active */
#consentFrameOverlay:not(.active),
#consentFrameModal:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    z-index: -9999 !important;
}

/* Еще более специфичное правило для гарантии скрытия */
body #consentFrameOverlay:not(.active),
body #consentFrameModal:not(.active),
html body #consentFrameOverlay:not(.active),
html body #consentFrameModal:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.consent-frame-wrapper {
    width: 100%;
    height: calc(90vh - 80px);
    overflow: hidden;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.consent-frame-modal:not(.active) .consent-frame-wrapper,
#consentFrameModal:not(.active) .consent-frame-wrapper {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.consent-frame-modal.active .consent-frame-wrapper,
#consentFrameModal.active .consent-frame-wrapper,
body .consent-frame-modal.active .consent-frame-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 100% !important;
    height: calc(90vh - 80px) !important;
}

.consent-frame-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .consent-frame-modal.active {
        width: 95%;
        max-height: 95vh;
    }

    .consent-frame-header {
        padding: 15px 20px;
    }

    .consent-frame-header h3 {
        font-size: 1.1rem;
    }

    .consent-frame-modal.active .consent-frame-wrapper {
        height: calc(95vh - 70px);
    }

    /* Гарантируем скрытие в медиа-запросе */
    .consent-frame-overlay:not(.active),
    .consent-frame-modal:not(.active) {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: none;
    }

    .main-nav.active ~ .mobile-menu-overlay,
    body.menu-open .mobile-menu-overlay {
        opacity: 1;
        visibility: visible;
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }
}

    .hero-text-line {
        font-size: 1.8rem;
    }

    .coins-visualization {
        transform: scale(0.8);
    }
}

