body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #007BFF;
    color: #fff;
    padding: 10px 20px
}

header h1 {
    margin: 0;
    font-size: 1.5em
}

nav {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: #fff;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border: 1px solid #fff0;
    border-radius: 3px;
    font-size: 1em;
    transition: background-color 0.3s ease
}

nav a:hover {
    background-color: #fff;
    color: #007BFF;
    border-color: #fff;
    border-radius: 4px
}

main {
    padding: 20px;
    flex: 1
}

.main-footer {
    background-color: #007BFF;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: relative;
    width: 100%;
    font-size: .9em
}

.hero {
    background-color: #007BFF;
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1)
}

.hero-index {
    background-image: url('/Static/images/hero_background.webp');
}

.hero-about {
    background-image: url('/Static/images/about_us_background.webp');
}

.hero-personal {
    background-image: url('/Static/images/personal_banking_hero.webp');
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 15px
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 25px
}

.hero .btn {
    display: inline-block;
    background-color: #00509e;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s
}

.hero .btn:hover {
    background-color: #002855
}

.services {
    padding: 40px 20px;
    text-align: center
}

.services h2 {
    font-size: 2em;
    color: #007BFF;
    margin-bottom: 20px
}

.services-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap
}

.service {
    flex: 1;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 350px;
    margin: auto
}

.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgb(0 0 0 / .2)
}

.service h3 {
    font-size: 1.5em;
    color: #007BFF;
    margin-bottom: 10px
}

.service p {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px
}

.service .btn {
    background-color: #00509e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s
}

.service .btn:hover {
    background-color: #007BFF
}

.testimonials {
    background-color: #e9ecef;
    padding: 40px 20px;
    text-align: center
}

.testimonials h2 {
    font-size: 2em;
    color: #007BFF;
    margin-bottom: 20px
}

.testimonial {
    max-width: 800px;
    margin: 0 auto 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgb(0 0 0 / .1)
}

.testimonial p {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 10px
}

.testimonial footer {
    font-size: 1em;
    color: #007BFF;
    font-weight: 700
}

.cta {
    background-color: #007BFF;
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
    border-radius: 10px
}

.cta h2 {
    font-size: 2em;
    margin-bottom: 20px
}

.cta .btn {
    background-color: #00509e;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1em;
    transition: background-color 0.3s
}

.cta .btn:hover {
    background-color: #fff;
    color: #007BFF
}

.about-us {
    margin: 0 auto;
    padding: 40px 20px;
    max-width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1)
}

.about-us h1 {
    text-align: center;
    font-size: 3em;
    color: #007BFF;
    margin-bottom: 30px
}

.about-us p {
    font-size: 1.5em;
    line-height: 1.8;
    color: #000;
    margin-bottom: 40px;
    text-align: center
}

.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1)
}

.section-content {
    flex: 1;
    text-align: center
}

.section-content h2 {
    font-size: 2em;
    color: #007BFF;
    margin-bottom: 15px
}

.section-content p {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 20px
}

.section-content .btn.learn-more-btn {
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease
}

.section-content .btn.learn-more-btn:hover {
    background-color: #00509e
}

.section-image {
    flex: 1;
    text-align: center
}

.section-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1)
}

.btn.learn-more-btn {
    padding: 12px 20px;
    margin-top: 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease
}

.btn.learn-more-btn:hover {
    background-color: #00509e
}

.hidden-text {
    margin-top: 20px;
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    font-size: 1.3em;
    color: #333;
    display: none
}

.visual-section {
    text-align: center;
    margin: 60px 0
}

.team-image {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1);
    margin-bottom: 30px
}

.visual-section p {
    font-size: 1.5em;
    color: #444
}

.feedback-section {
    text-align: center;
    margin-top: 50px
}

.feedback-btn {
    display: inline-block;
    font-size: 1.3em;
    background-color: #007BFF;
    color: #fff;
    padding: 12px 40px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease
}

.feedback-btn:hover {
    background-color: #00509e
}

.login-support-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px
}

.login-box {
    flex: 1;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1);
    text-align: left
}

.login-box h2 {
    font-size: 2em;
    color: #007BFF;
    margin-bottom: 20px
}

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

.form-group label {
    display: block;
    font-size: 1em;
    margin-bottom: 8px;
    color: #333
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease
}

.form-group input:focus {
    border-color: #00509e
}

.center-button {
    display: flex;
    justify-content: center;
    margin-top: 20px
}

.login-btn {
    width: 100%;
    max-width: 200px;
    text-align: center;
    padding: 10px 20px;
    background-color: #00509e;
    color: #fff;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease
}

.login-btn:hover {
    background-color: #007BFF
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px
}

.form-links a {
    font-size: .9em;
    color: #00509e;
    text-decoration: none;
    transition: color 0.3s ease
}

.form-links a:hover {
    color: #007BFF;
    text-decoration: underline
}

.support-box {
    flex: 1;
    background-color: #f4faff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1);
    font-size: 1em
}

.support-box h2 {
    font-size: 1.5em;
    color: #007BFF;
    margin-bottom: 20px
}

.support-box p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6
}

.support-box ul {
    padding-left: 20px;
    list-style: none
}

.support-box ul li {
    margin-bottom: 10px;
    position: relative;
    color: #555
}

.support-box ul li:before {
    content: "—";
    position: absolute;
    left: -20px;
    color: #00509e
}

.support-box a {
    color: #00509e;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease
}

.support-box a:hover {
    color: #007BFF;
    text-decoration: underline
}

.contacts-page {
    text-align: center;
    padding: 50px 20px;
    margin: 0 auto;
    max-width: 900px
}

.contacts-page h2 {
    color: #007BFF;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
    font-weight: 700
}

.contacts-page ul {
    list-style: none;
    padding: 0;
    font-size: 1.2em;
    color: #555
}

.contacts-page ul li {
    margin-bottom: 15px
}

.contacts-page ul li a {
    color: #007BFF;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease
}

.contacts-page ul li a:hover {
    text-decoration: underline;
    color: #4CAF50
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px
}

.social-links a {
    display: inline-block;
    text-align: center;
    transition: transform 0.3s ease
}

.social-links a:hover {
    transform: translateY(-5px)
}

.social-links .icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
    filter: grayscale(100%)
}

.social-links .icon:hover {
    transform: scale(1.2);
    filter: grayscale(0)
}

.contacts-page {
    padding: 40px
}

.contact-info-map {
    display: flex;
    flex-wrap: wrap;
    gap: 20px
}

.contact-info {
    flex: 1;
    min-width: 300px
}

.map-container {
    flex: 1;
    min-width: 300px
}

.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start
}

.contact-info-map {
    display: flex;
    flex-direction: column;
    flex: 2;
    gap: 20px
}

.feedback-form {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    background-color: #fff0;
    padding: 20px
}

.feedback-form h3 {
    margin-bottom: 15px;
    font-size: 1.8em;
    color: #007BFF
}

.feedback-form form {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.feedback-form form input,
.feedback-form form textarea {
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 93%
}

.feedback-form form button {
    background-color: #007BFF;
    color: #fff;
    font-size: 1.1em;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease
}

.feedback-form form button:hover {
    background-color: #00509e
}

.map-container iframe {
    border-radius: 10px
}

.service-detail h1 {
    text-align: center;
    font-size: 2em;
    margin: 20px 0
}

.btn {
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease
}

.btn:hover {
    background-color: #00509e
}

.loan-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    max-width: 100%;
    justify-content: center
}

.loan-column {
    flex: 1 1 calc(25% - 15px);
    flex: 1 1 45%;
    max-width: calc(25% - 15px);
    height: 200px;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    border-radius: 10px;
    overflow: hidden
}

.loan-column:hover {
    transform: scale(1.05)
}

.loan-title {
    background-color: rgb(0 0 0 / .6);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    position: absolute;
    bottom: 0;
    width: 95.5%;
    flex: auto;
    border-radius: 0 0 10px 10px;
    font-size: 1em
}

.loan-details {
    margin-top: 20px auto;
    max-width: 100%
}

.loan-detail-content {
    display: none;
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgb(0 0 0 / .1);
    text-align: center;
    max-width: 90%;
    margin: 10px auto
}

.loan-detail-content h3 {
    margin-bottom: 10px
}

input[type="range"] {
    width: 80%;
    margin: 15px 0
}

.btn {
    background-color: #007BFF;
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer
}

.btn:hover {
    background-color: #00509e
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0
}

.slider-container input[type="range"] {
    flex-grow: 1;
    margin: 0 10px;
    width: 70%
}

.slider-container span {
    font-size: 14px;
    font-weight: 700
}

.hamburger {
    font-size: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    display: none
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #007BFF;
    z-index: 1000;
    box-shadow: 0 4px 8px rgb(0 0 0 / .2)
}

.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0
}

.mobile-menu ul li {
    border-bottom: 1px solid #00509e;
    text-align: center
}

.mobile-menu ul li a {
    display: block;
    padding: 10px;
    font-size: 1em
}

.mobile-menu.active {
    display: block
}

.desktop-menu {
    display: flex;
    gap: 15px
}

.desktop-menu a {
    font-size: 1em;
    padding: 5px 10px
}

#response-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    width: 80%;
    max-width: 500px;
    text-align: center;
    display: none; /* Изначально скрыто */
}

.alert {
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

.alert-success {
    background-color: #28a745;
    color: white;
}

.alert-danger {
    background-color: #dc3545;
    color: white;
}

.mission img,
.values img,
.history img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: cover;
    border-radius: 10px;
}

.mission > div:first-child,
.values > div:first-child,
.history > div:first-child {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

@media (max-width: 992px) {
    .mission img,
    .values img,
    .history img {
        max-height: 300px;
    }
}

