* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

a {
    color: #0083f7;
    text-decoration: none;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
#base-logo {
    max-width: 170px;
}
h2 {
    margin-bottom: 25px;
}
h3 {
    margin-bottom: 10px;
}

p {
        margin-bottom: 15px;
}

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

header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 5px 0;
    margin-bottom: 20px;
}

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

h1 {
        line-height: 1.1;
    margin-bottom: 15px;
    font-size: 32px;
}

.bank-header h1 {
    margin-bottom: 0px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo a {
    color: #2a5885;
    text-decoration: none;
    text-transform: uppercase;
    line-height: 25px;
    text-align: center;
    display: block;
    border-radius: 14px;
}

.main-menu {
    display: flex;
    list-style: none;
}

.main-menu li {
    margin-left: 20px;
}

.main-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-menu a:hover {
    color: #2a5885;
}

.search-box {
    display: flex;
    margin-bottom: 20px;
}

.search-box input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    outline: none;
}

.search-box button {
    padding: 10px 20px;
    background-color: #2a5885;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box button:hover {
    background-color: #1e3f6f;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.category {
    background-color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-size: 14px;
}

.category:hover {
    background-color: #2a5885;
    color: white;
}

.breadcrumbs {
    margin: 30px 0px;
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    padding: 0;
}

.breadcrumbs li {
    margin-right: 10px;
    font-size: 12px;
    color: #ababab;
}

.breadcrumbs li:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: #999;
}

.breadcrumbs a {
    color: #2a5885;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.product-image {
    height: 120px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #666;
    font-weight: bold;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars {
    color: #ffc107;
    margin-right: 10px;
}

.reviews {
    color: #666;
    font-size: 13px;
}

.product-button {
    display: block;
    text-align: center;
    padding: 8px 0;
    background-color: #2a5885;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.product-button:hover {
    background-color: #1e3f6f;
}

footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-column h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 8px;
}

.footer-column a {
    color: #ddd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.copyright {
    text-align: left;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #aaa;
}

.category-card {
        display: block;
        padding: 20px;
        border-radius: 8px;
        text-decoration: none;
        color: #333;
        transition: transform 0.3s ease;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .category-card:hover {
        transform: translateY(-5px);
    }

    .category-icon {
        font-size: 32px;
        margin-bottom: 10px;
    }

    .category-card h3 {
        margin: 0 0 5px 0;
    }

    .category-card p {
        margin: 0;
        font-size: 14px;
        color: #666;
    }

    .tabs {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
    }

    .tab-button {
        padding: 8px 16px;
        background: #f5f5f5;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .tab-button.active {
        background: #2a5885;
        color: white;
    }

    .product-badge {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .badge {
        display: inline-block;
        padding: 3px 8px;
        border-radius: 4px;
        color: white;
        font-size: 12px;
        font-weight: bold;
    }

    .product-features {
        margin: 15px 0;
    }

    .feature {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .feature-label {
        color: #666;
    }

    .feature-value {
        font-weight: bold;
    }

    .banks-carousel {
        display: flex;
        gap: 20px;
        overflow-x: auto;
        padding: 10px 0;
        margin: 20px 0;
    }

    .bank-item {
        flex: 0 0 160px;
        background: white;
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        text-align: center;
    }

    .bank-logo {
        width: 60px;
        height: 60px;
        margin: 0 auto 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .bank-logo img {
        max-width: 80%;
        max-height: 80%;
    }

    .bank-name {
        margin: 0 0 5px 0;
        font-size: 16px;
    }

    .bank-rating {
        margin: 0 0 10px 0;
    }

    .stars {
        color: #ffc107;
    }

    .rating-value {
        font-size: 14px;
        color: #666;
    }

    .bank-link {
        display: inline-block;
        padding: 5px 15px;
        background: #2a5885;
        color: white;
        text-decoration: none;
        border-radius: 4px;
        font-size: 14px;
    }

    .atm-item {
        display: flex;
        gap: 15px;
        padding: 15px;
        background: white;
        border-radius: 8px;
        margin-bottom: 10px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .atm-bank {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 50%;
    }

    .atm-info h3 {
        margin: 0 0 5px 0;
        font-size: 16px;
    }

    .atm-info p {
        margin: 0 0 8px 0;
        font-size: 14px;
        color: #666;
    }

    .atm-features {
        display: flex;
        gap: 8px;
    }

    .atm-features .feature {
        padding: 2px 8px;
        background: #f5f5f5;
        border-radius: 4px;
        font-size: 12px;
    }

    .show-all {
        display: inline-block;
        margin-top: 10px;
        color: #2a5885;
        text-decoration: none;
    }
ul#zaym-types, .elem-flex-list {
    display: flex;
        gap: 8px;
        overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
        margin-bottom: 25px;
}

ul#zaym-types li, .elem-flex-list li {
    display: flex;
    flex-flow: column;
    background-color: rgb(255, 255, 255);
    border-radius: 8px;
    border: 1px solid rgb(214, 217, 224);
    -webkit-box-pack: justify;
    justify-content: space-between;
    transition: border-color 0.3s;
    align-items: center;
    position: relative;
        padding: 20px;
    text-align: center;
    line-height: 125%;

}
ul#zaym-types li a,  .elem-flex-list li a {
    text-decoration: none;
    font-weight: bold;
    color:#333;
}

.bank-header {
    margin-bottom: 25px;
}

.mfo-product-badge {
    font-size: 12px;
    color: #999999;
}
#mfo-zaymy-block .btn-apply{
    width: 100%;
    text-align: center;

}

.flex-wrap{
    flex-wrap: wrap;
}
.flexbox-grid {
        display: flex;
    flex-direction: row;
    -webkit-box-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    align-items: center;
}

.flex-start {
    justify-content: flex-start;
}

#mfo-hero-card {
        position: relative;
    padding: 32px;
    background: rgb(229 45 3);
    border-radius: 16px;
    color: rgb(255, 255, 255);
    overflow: hidden;
    box-shadow: rgba(22, 33, 54, 0.08) 0px 8px 24px, rgba(22, 33, 54, 0.04) 0px 8px 32px, rgba(22, 33, 54, 0.04) 0px 4px 8px;
    z-index: 1;
    margin-bottom: 25px;
}

#mfo-hero-card h3 {
    font-size: 40px;
    line-height: 56px;
    font-weight: normal;
}

#mfo-hero-card .label {
    display: inline-block;
    background: rgb(193, 246, 217);
    color: rgb(22, 33, 54);
    padding: 4px 8px;
    border-radius: 4px;
}

#mfo-hero-card .knopka a {
    box-sizing: border-box;
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    border-radius: 8px;
    outline: 0px;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    transition: 0.12s ease-in-out;
    font-weight: 400;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    max-width: -webkit-fill-available;
    height: 48px;
    min-width: 48px;
    line-height: 24px;
    padding: 12px 16px;
    font-size: 16px;
    color: rgb(33, 33, 33);
    background-color: rgb(255, 255, 255);
    text-decoration: none;
}

#mfo-hero-card .flexbox-grid > * + * {
    margin-left: 64px;
}

#mfo-hero-card .params {
    margin: 20px 0px 30px;
}

#mfo-hero-card .summa {
    font-size: 32px;
    line-height: 40px;
}

.subheader {
    color: #687082;
    text-align: left;
    font-size: 14px;
    line-height: 20px;
    box-sizing: border-box;
    padding-right: 16px;
    max-width: 50%;
    margin-bottom: 25px;
}

.mfo-list {
    display: flex;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 32px;
        flex-wrap: wrap;
}

.mfo-list .mfo-card {
    width: auto;
        min-width: 265px;
        padding: 32px;
    background: rgb(255, 255, 255);
    border-radius: 8px;
    box-shadow: rgba(22, 33, 54, 0.16) 0px 1px 2px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    box-sizing: border-box;
}

.round_block {
    padding: 24px 32px;
        border-radius: 16px;
    box-shadow: rgba(22, 33, 54, 0.05) 0px 1px 8px 0px;
    position: relative;
    background-color: rgb(255, 255, 255);
        box-sizing: border-box;
    margin-bottom: 25px;
}

.mfo-card {
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin-bottom: 20px;
        padding: 20px;
    }

    .mfo-comparison, #where {
        margin-bottom: 40px;
    }
    #where h2 {
        margin-bottom: 25px;
    }

    .round_block {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-x: auto;
    }

    #text-content img {
        max-width: 100%;
        height: auto;
    }

    th, td, #where td{
        text-align: left;
        padding: 24px 15px;
    border-bottom: 1px solid rgb(236, 239, 241);

    }
    thead th {
        padding-right: 32px;
        color: #8f8f8f;
    }


    .mfo-header {
        display: block;
        align-items: center;
        margin-bottom: 15px;
    }
    .mfo-name {
        font-size: 16px;
    font-weight: 700;
    }

    .mfo-logo img {
        max-height: 40px;
        max-width: 120px;
    }

    .logo-placeholder {
        width: 100%;
        height: 60px;
        background: #f5f5f5;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
        color: #666;
    }

    .mfo-rating {
        text-align: right;
    }

    .stars {
        color: #ffc107;
        font-size: 18px;
    }

    .reviews {
        font-size: 12px;
        color: #666;
    }

    .mfo-conditions {
        display: flex;
        flex-direction: column;
        gap: 2px;
        margin: 15px 0;
    }

    .condition {

        display: flex;
    flex-direction: row;
    -webkit-box-pack: justify;
    justify-content: space-between;
    }

    .label {
        display: block;
        font-size: 15px;
        color: #666;
        margin-bottom: 5px;

    }

    .value {
        font-weight: bold;
        color: #2a5885;
    }

    .mfo-features {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin: 15px 0;
    }

    .feature-badge {
        background: #e3f2fd;
        color: #2a5885;
        padding: 4px 10px;
        border-radius: 12px;
        font-size: 12px;
    }

    .mfo-actions {
        display: flex;
        -webkit-box-pack: justify;
    justify-content: space-between;
        margin-top: 15px;
    }

    .btn-detail {
       background: #ffffff;
    border: 1px solid #ccc;
    color: #a1a1a1;
    padding: 8px 17px;
    border-radius: 4px;
        text-decoration: none;
    }

    .btn-apply {
        background: #087d62;
        color: white;
            padding: 8px 15px;
        border-radius: 4px;
        text-decoration: none;
    }

    .info-blocks {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 20px;
    }

    .info-block {
        background: #f8f9fa;
        padding: 20px;
        border-radius: 8px;
    }

    @media (max-width: 768px) {
        .mfo-conditions {
            grid-template-columns: 1fr;
        }

        .info-blocks {
            grid-template-columns: 1fr;
        }
    }

.latest-news-grid {
        display: flex; /* Use flexbox for the main layout */
        flex-wrap: wrap;
        gap: 20px; /* Space between news items */
    }

    .news-item {
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        padding: 15px;
        display: flex;
        flex-direction: column; /* Stack content vertically */
    }

    .news-item-featured {
        flex: 1 1 300px; /* Allow featured items to grow and shrink, with a base width */
    }

    .news-item:not(.news-item-featured) {
         flex: 1 1 300px; /* Allow other items to grow and shrink, with a base width */
    }


    .news-item img {
        max-width: 100%;
        height: auto;
        border-radius: 4px;
        margin-bottom: 10px;
    }

    .news-item h3, .news-item h3 a {
        margin-top: 0;
        font-size: 1.1em;
        color: #0e5ea5;
        line-height: 107%;
        margin-bottom: 15px;
    }

    .news-item .news-date {
        font-size: 0.8em;
        color: #666;
        margin-bottom: 10px;
    }

    .news-item .read-more {
        margin-top: auto; /* Push the "Read more" link to the bottom */
        align-self: flex-start; /* Align link to the start */
        color: #2a5885; /* Example link color */
        text-decoration: none;
        font-weight: bold;
    }

    .news-content img {
        max-width: 100%;
        height: auto;
    }

     @media (max-width: 768px) {
        .latest-news-grid {
            flex-direction: column; /* Stack news items vertically on smaller screens */
        }

        .news-item-featured,
        .news-item:not(.news-item-featured) {
            flex-basis: auto; /* Remove flex-basis on smaller screens */
        }
    }

     @media (min-width: 769px) {
        .latest-news-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr); /* 3 columns for non-featured on larger screens */
            gap: 20px;
        }
         .news-item-featured {
            grid-column: span 1; /* Featured take 1 column */
             display: flex;
             flex-direction: column;
        }
         .news-item:not(.news-item-featured) {
             grid-column: span 1; /* Non-featured take 1 column */
             display: flex;
             flex-direction: column;
        }
         .latest-news-grid .news-item:nth-child(-n+3) {
             /* Styles for the first 3 (featured) */
             flex-direction: column;
         }

         .latest-news-grid .news-item:nth-child(n+4) {
             /* Styles for items from the 4th onwards */
             display: flex;
             flex-direction: column;
             /* Ensure they still participate in the grid layout */
             grid-column: span 1;
         }
          /* Override flex for the grid layout */
         .latest-news-grid {
             display: grid;
             grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust as needed */
             gap: 20px;
         }

         .news-item {
             display: flex;
             flex-direction: column;
         }

         .news-item-featured {
            /* No specific grid-column span here to let auto-fit handle it */
            flex-direction: column; /* Stack for featured */
        }

         .news-item:not(.news-item-featured) {
             flex-direction: column; /* Stack for non-featured */
         }
    }


    /* Refine grid layout for larger screens */
    @media (min-width: 992px) {
        .latest-news-grid {
            grid-template-columns: repeat(3, 1fr); /* Always 3 columns on larger screens */
        }
         .news-item-featured {
             /* Ensure first 3 are in a row, this might require adjusting the overall grid or using flex differently */
             /* For a simple grid, they will occupy the first 3 grid cells */
         }
    }
.latest-news-section {
   margin-bottom: 25px;
}

#plan {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

#plan h2 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

#plan ul {
    list-style: none; /* Убираем стандартные маркеры */
    padding: 0;
    margin: 0;
}

#plan li {
    margin-bottom: 8px;
    padding-left: 20px; /* Добавляем отступ слева для псевдоэлемента */
    position: relative; /* Делаем позиционирование относительным для псевдоэлемента */
}

#plan li::before {
    content: "—"; /* Сам символ */
    position: absolute; /* Абсолютное позиционирование */
    left: 0; /* Располагаем слева от начала элемента списка */
    color: #333; /* Цвет символа, можно настроить */
    font-weight: bold; /* Опционально: сделать символ жирным */
}

#plan a {
    text-decoration: none;
    color: #007bff; /* Примерный синий цвет ссылок */
}

#plan a:hover {
    text-decoration: underline;
}

#text-content table {
    margin-bottom: 25px;
    border: 1px solid rgb(236, 239, 241);
}
#text-content td, #text-content th {
        padding: 24px 15px;
}

#text-content ul, #text-content ol, .news-content ul, .news-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.table-inside {
    overflow-x: auto;
}

.author-block {
            margin-top: 30px;
            padding: 20px;
            border: 1px solid #eee;
            border-radius: 8px;
            background-color: #f9f9f9;
        }
        .author-block h3 {
            margin-top: 0;
            color: #2a5885; /* Example color, match your site style */
        }
         .author-block h4 {
            margin-bottom: 5px;
        }
         .author-block .author-photo {
            float: left;
            margin-right: 15px;
            border-radius: 50%; /* Circular photo */
            width: 80px; /* Adjust size as needed */
            height: 80px;
            object-fit: cover; /* Crop image to fit */
        }
        .author-biography, .author-education {
            margin-top: 10px;
            clear: both; /* Ensure text flows below floated image */
        }
         .author-block p {
            margin-bottom: 5px;
        }
         .author-block .author-biography h5, .author-block .author-education h5 {
             margin-bottom: 5px;
             font-weight: bold;
             color: #555;
         }
         .author-block:after { /* Clear float for the author photo */
            content: "";
            display: table;
            clear: both;
        }


         #related-authors {
             margin-top: 30px; /* Add some space above the block */
        }

        .authors-horizontal-list {
            display: flex; /* Use flexbox for horizontal layout */
            justify-content: left; /* Center the items */
            gap: 20px; /* Space between author cards */
            flex-wrap: wrap; /* Allow wrapping on smaller screens */
        }

        .author-card {
            text-align: center; /* Center text below photo */
                 max-width: 300px;
                flex-shrink: 0;
                width: 100%;
        }

        .author-card a {
            text-decoration: none; /* Remove underline from link */
            color: inherit; /* Inherit text color */
            display: block; /* Make the whole card clickable */
        }

        .author-card-photo {
            width: 80px; /* Size of the author photo */
            height: 80px;
            object-fit: cover; /* Crop image to fit */
            border-radius: 50%; /* Make the photo circular */
            margin-bottom: 10px; /* Space between photo and text */
            display: block; /* Make image a block element */
            margin-left: auto;
            margin-right: auto; /* Center the photo if card has fixed width */
        }

        .author-card-name {
            font-weight: bold;
            margin-bottom: 5px;
            font-size: 0.9em;
            color: #333; /* Example color */
        }

         .author-card-position {
            font-size: 0.8em;
            color: #555; /* Example color */
         }

        /* Optional: Hover effect */
        .author-card a:hover .author-card-name {
             text-decoration: underline;
        }

#faqs_text {
        margin: 25px 0px;
}
#faqs_text h2 {
        margin-bottom: 10px;
}
#faqs_text .question-block {
    border: 1px solid #ebebeb;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 15px;
}
#faqs_text  .question{
    font-weight: bold;
    margin-bottom: 0px;
    font-size: 1.3em;
}
#faqs_text  .count{
    font-size: 12px;
}
#faqs_text .answer {
    margin-bottom: 5px;
}
/* Адаптивность */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-menu {
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .main-menu li {
        margin: 5px 10px 5px 0;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .categories {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .subheader {
        max-width: 100%;
    }


}

@media (max-width: 900px) {
    .mfo-list .mfo-card {
        max-width: 48%;

    }
}

@media (max-width: 610px) {
    .mfo-list .mfo-card {
        width: 100%;
        max-width: 100%;
    }
    #mfo-hero-card .summa {
        font-size: 18px;
        line-height: 27px;
    }
}

@media (min-width: 611px) {
    .mfo-list .mfo-card {
        width: 100%;
        max-width: 265px;
    }

}

.small-note {
    font-size: 11px;
    line-height: 11px;
}
