:root {
    --green: #008b5e;
    --green-dark: #1b6b4a;
    --green-light: #e6f4ef;
    --green-muted: #2d9a6f;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-muted: #5c5c5c;
    --border: #d8e8e0;
    --border-dark: #cccccc;
    --shadow: 0 4px 24px rgba(0, 0, 0, .08);
    --radius: 8px;
    --radius-lg: 12px;
    --font: "Noto Sans Armenian", system-ui, sans-serif;
    --container: 1440px;
    --gutter: 24px;
    --header-h: 88px;
    --red: #c0392b;
    --red-dark: #a93226;
    --transition: .25s ease
}

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

html {
    scroll-behavior: smooth
}

main section[id]:not(#hero) {
    scroll-margin-top: var(--header-h)
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden
}

body.menu-open {
    overflow: hidden
}

img {
    display: block;
    max-width: 100%;
    height: auto
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter)
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 2rem
}

.text-link {
    color: var(--green);
    font-weight: 600;
    transition: opacity var(--transition)
}

.text-link:hover {
    opacity: .8
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background var(--transition), color var(--transition), border-color var(--transition)
}

.btn-primary {
    background: var(--green);
    color: var(--white)
}

.btn-primary:hover {
    background: var(--green-dark)
}

.btn-header {
    padding: 12px 17px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    white-space: nowrap
}

.btn-header--green {
    background: var(--green);
    color: var(--white)
}

.btn-header--green:hover {
    background: var(--green-dark)
}

.btn-header--red {
    background: var(--red);
    color: var(--white)
}

.btn-header--red:hover {
    background: var(--red-dark)
}

.btn-light {
    background: var(--white);
    color: var(--green-dark)
}

.btn-light:hover {
    background: var(--green-light)
}

.btn-block {
    width: 100%
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15
}

.logo-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: .02em
}

.logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: .04em
}

.logo-mark {
    flex-shrink: 0
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    transition: box-shadow var(--transition)
}

.header.is-scrolled {
    box-shadow: 0 1px 0 var(--border)
}

.header-inner {
    display: grid;
    grid-template-columns:1fr auto 1fr;
    align-items: center;
    min-height: var(--header-h);
    gap: 20px
}

.header-inner .logo {
    justify-self: start
}

.header-inner .nav {
    justify-self: center
}

.header-inner .header-actions {
    justify-self: end
}

.header.is-scrolled .logo-name {
    color: var(--green)
}

.header.is-scrolled .logo-sub {
    color: #6b7280
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    color: #000;
    transition: color var(--transition);
    white-space: nowrap
}

.nav a:hover, .nav a.is-active {
    color: var(--green)
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px
}

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

.lang-dropdown {
    position: relative
}

.lang-globe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    color: var(--green-dark);
    background: transparent;
    transition: background var(--transition), color var(--transition)
}

.lang-globe-btn:hover {
    background: var(--green-light)
}

.lang-dropdown.is-open .lang-globe-btn {
    background: var(--green-light);
    color: var(--green)
}

.lang-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 100px;
    max-width: 240px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 4px 38px #8b84842b;
    z-index: 110
}

.lang-menu[hidden] {
    display: none
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    color: #333;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition)
}

.lang-option:hover, .lang-option.is-active {
    background: #0fa06c;
    color: #fff
}

.lang-option.is-active {
    font-weight: 600
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 6px;
    background: var(--green)
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition)
}

.menu-toggle[aria-expanded=true] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg)
}

.menu-toggle[aria-expanded=true] span:nth-child(2) {
    opacity: 0
}

.menu-toggle[aria-expanded=true] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg)
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--white);
    display: none;
    flex-direction: column;
    padding: var(--gutter);
    visibility: hidden;
    pointer-events: none;
    height: 100%;
    overflow-x: auto;
}

.mobile-menu.is-open {
    display: flex;
    visibility: visible;
    pointer-events: auto
}

.mobile-menu[hidden] {
    display: none !important
}

.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem
}

.mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    width: 44px;
    height: 44px;
    border-radius: 6px
}

.mobile-menu-close:hover {
    background: var(--green-light)
}

.mobile-menu-btns {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 1.5rem
}

.mobile-menu-btns .btn-block {
    flex: 1;
    width: auto;
    min-width: 0;
    text-align: center
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1
}

.mobile-menu-nav a {
    font-weight: 500;
    font-size: 25px;
    line-height: 100%;
    color: #1d1b1a;
    text-align: end;
    padding: 28px 0;
    border-bottom: 1px solid var(--border)
}

.mobile-menu-footer {
    padding-top: 1.5rem;
    margin-top: auto
}

.mobile-menu-footer .mobile-social.contacts-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 0;
    width: 100%
}

.mobile-menu-footer .contacts-social__messengers {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 12px
}

.mobile-menu-footer .contacts-social__networks {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px
}

.mobile-menu-footer .contacts-social .social-btn {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity var(--transition), transform var(--transition)
}

.mobile-menu-footer .contacts-social .social-btn img {
    display: block;
    width: 28px;
    height: 28px;
    max-width: none
}

.mobile-menu-footer .contacts-social .social-btn--network {
    width: 53px;
    height: 53px;
    background: #fff;
    border: 1px solid #0fa06c
}

.mobile-menu-footer .contacts-social .social-btn--network:hover {
    background: #f5f5f5
}

.mobile-menu-footer .contacts-social .social-btn:hover {
    opacity: .9;
    transform: translateY(-2px)
}

.hero {
    position: relative;
    min-height: 950px;
    display: flex;
    align-items: center;
    margin-top: 0
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .6s ease, transform 1.2s ease;
    margin-top: 90px;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1)
}

.hero-overlay {
    position: absolute;
    inset: 0;
    /*background: linear-gradient(90deg, rgba(0, 60, 40, .75) 0%, rgba(0, 60, 40, .35) 55%, transparent 100%);*/
    pointer-events: none;
    z-index: 1
}

.hero-content-band {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    bottom: 87px;
    z-index: 3;
    pointer-events: none
}

.hero-content-wrap {
    position: relative;
    left: 0;
    max-width: min(850px, 100%);
    width: 100%;
    margin: 0;
    padding: 0
}

.hero-content {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    color: var(--white);
    pointer-events: none;
    overflow-wrap: break-word;
    background: #0000001f;
    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);
    border-radius: 20px;
    padding: 59px 21px 33px 41px
}

.hero-content a, .hero-content button {
    pointer-events: auto
}

.hero-content a {
    display: inline-block;
    border: 1px solid #fff;
    border-radius: 100px;
    background: transparent;
    color: #fff;
    padding: 16px 42px;
    margin-top: 38px
}

.hero-content a:hover {
    background: #ffffff1f;
    color: #fff;
    border-color: #fff
}

.hero h1 {
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem
}

.hero-lead {
    font-size: 22px;
    opacity: .95;
    margin-bottom: 1.75rem;
    max-width: none
}

.section {
    padding: 73px 0 115px
}

.section:nth-child(2n) {
    background: transparent
}

.loans {
    background: #f5f5f5
}

#loans-heading, #apply-heading {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 700;
    font-style: normal;
    font-size: 60px;
    line-height: 100%;
    letter-spacing: 0;
    color: #0fa06c;
    margin-bottom: 72px
}

.loan-slider__viewport {
    width: 100%;
    container-type: inline-size;
    container-name: loan-slider
}

.loan-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 16px
}

.loan-card__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    width: 100%
}

.loan-card {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    min-width: 0;
    height: auto;
    background: var(--white);
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    padding: 29px 23px 33px;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 4px 54px #00a8c608;
    transition: transform var(--transition), box-shadow var(--transition)
}

.loan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 54px #00a8c608
}

.loan-card:not(.loan-card--horizontal) {
    flex-direction: column
}

/* Clickable loan cards */
.loan-card {
    padding: 0;
}

.loan-card__open {
    display: flex;
    align-items: flex-start;
    align-self: stretch;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 29px 23px 33px;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

.loan-card:not(.loan-card--horizontal) .loan-card__open {
    flex-direction: column;
}

.loan-card--horizontal .loan-card__open {
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
}

.loan-card__open:focus-visible {
    outline: 2px solid #0fa06c;
    outline-offset: -2px;
}

/* Modal */
body.loan-modal-open {
    overflow: hidden;
}

.loan-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.loan-modal[hidden] {
    display: none;
}

.loan-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.loan-modal__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(90vh, 900px);
    overflow-y: auto;
    padding: 32px 36px 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
}

.loan-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.loan-modal__title {
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    color: #0fa06c;
    margin: 0;
}

.loan-modal__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d5d5d5;
    border-radius: 50%;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #383431;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.loan-modal__close:hover {
    background: #f5f5f5;
    border-color: #b5b5b5;
}

.loan-modal__body::after {
    content: "";
    display: table;
    clear: both;
}

.loan-modal__img {
    float: left;
    width: min(42%, 360px);
    max-width: 360px;
    margin: 0 28px 20px 0;
    border-radius: 8px;
    object-fit: contain;
    aspect-ratio: 4 / 3;
}

.loan-modal__img[hidden] {
    display: none;
}

.loan-modal__content {
    font-size: 16px;
    line-height: 27px;
    color: #636363;
}

.loan-modal__content p {
    margin: 0 0 1em;
}

.loan-modal__content p:last-child {
    margin-bottom: 0;
}

.loan-modal__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e3e3e3;
}

.loan-modal__apply {
    min-width: 140px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #0fa06c;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.loan-modal__apply:hover {
    background: #0d8a5c;
}
.loan-modal__content .loan-card-div{
    -webkit-line-clamp: unset;
}

@media (max-width: 768px) {
    .loan-modal__img {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 20px;
    }

    .loan-modal__panel {
        padding: 24px 20px 28px;
    }


    .loan-modal__title {
        font-size: 19px;
    }
}

@media (min-width: 1025px) {
    .loan-grid > .loan-card:nth-child(-n+3) {
        flex: 0 0 calc((100% - 32px) / 3);
        max-width: calc((100% - 32px) / 3);
        flex-direction: column
    }

    .loan-grid > .loan-card.loan-card--horizontal {
        flex: 0 0 calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
        flex-direction: row;
        align-items: stretch;
        gap: 20px
    }

    .loan-card--horizontal .loan-card__media {
        flex: 0 0 250px;
        width: 250px;
        max-width: 40%;
        min-width: 120px;
        min-height: 0;
        margin-bottom: 0
    }

    .loan-card--horizontal .loan-card__media img {
        width: 100%;
        max-width: 250px;
        height: auto;
        aspect-ratio: 200 / 150;
        object-fit: contain
    }
}

.loan-card__media {
    flex-shrink: 0;
    width: 100%;
    max-width: 250px;
    min-height: 150px;
    margin-bottom: 20px;
    display: flex;
    align-items: center
}

.loan-card__media img {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
    aspect-ratio: 200 / 150;
    object-fit: contain
}

.loan-card h3 {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 500;
    font-style: normal;
    font-size: 30px;
    line-height: 38px;
    letter-spacing: 0;
    color: #0fa06c;
    margin: 0 0 12px;
    width: 100%;
    min-height: 76px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden
}


.loan-card-div{
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 27px;
    letter-spacing: 0;
    color: #636363;
    margin: 0;
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden
}

.loan-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.loan-card ul li {
    position: relative;
    padding-left: 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}


.apply {
    background: #f9f9f9
}

.apply .container {
    overflow: visible
}

.apply-grid {
    display: grid;
    grid-template-columns:minmax(0, 1fr) minmax(0, min(800px, 100%));
    gap: 2rem;
    align-items: center
}

.apply-media {
    max-width: 720px;
    width: auto;
    justify-self: start;
    border-radius: var(--radius-lg);
    overflow: hidden
}

.apply-media img {
    display: block;
    width: 100%;
    min-width: 600px;
    max-width: 720px;
    height: auto;
    min-height: 420px;
    object-fit: cover
}

.apply-form-wrap {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    min-width: 0;
    margin-top: 0;
    justify-self: end;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow)
}

.red{
    color: red;
}

@media (min-width: 1025px) {
    .apply-grid {
        grid-template-columns:1fr;
        align-items: center
    }

    .apply-media {
        position: relative;
        z-index: 1;
        grid-column: 1;
        grid-row: 1;
        justify-self: start
    }

    .apply-form-wrap {
        width: min(800px, 100%);
        margin: 0;
        grid-column: 1;
        grid-row: 1;
        justify-self: end;
        align-self: center
    }
}

.apply-form-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-top: 43px
}

.apply-form-confirm {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-muted);
    cursor: pointer
}

.apply-form-confirm input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--green);
    cursor: pointer
}

.apply-form-submit.btn-primary {
    flex-shrink: 0;
    border: 1px solid #6c7270;
    border-radius: 100px;
    background: #fff;
    color: #6c7270;
    padding: 15px 47px;
    font-weight: 600
}

.apply-form-submit.btn-primary:hover {
    background: #f5f5f5;
    color: #6c7270;
    border-color: #6c7270
}

.apply-form-fields {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 1.25rem 1.5rem;
    margin-bottom: .5rem
}

.apply-form-fields .form-row {
    position: relative;
    margin-bottom: 0;
    min-width: 0;
    padding-top: 8px
}

.apply-form .form-row {
    margin-bottom: 0
}

.apply-form-fields .form-row > label {
    position: absolute;
    top: 10px;
    left: 12px;
    z-index: 1;
    transform: translateY(-50%);
    padding: 0 6px;
    margin: 0;
    background: var(--white);
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0;
    color: #636363;
    pointer-events: none
}

.apply-form input:not([type=checkbox]), .apply-form select {
    width: 100%;
    padding: 14px 14px 12px;
    font-family: inherit;
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color var(--transition)
}

.apply-form input:not([type=checkbox]):focus, .apply-form select:focus {
    outline: none;
    border-color: var(--green)
}

.apply-form-fields .form-row:focus-within > label {
    color: var(--green)
}

.phone-input {
    display: flex;
    align-items: center;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    transition: border-color var(--transition)
}

.form-row--phone:focus-within .phone-input {
    border-color: var(--green)
}

.phone-flag {
    display: none
}

.phone-input input {
    border: none;
    border-radius: 0;
    padding: 14px 14px 12px
}

.form-message {
    margin-top: .75rem;
    font-size: 14px
}

.form-message.is-error {
    color: #c0392b
}

.form-message.is-success {
    color: var(--green-dark)
}

.form-message-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-message-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.form-message-overlay[hidden] {
    display: none;
}

.form-message-modal {
    width: 100%;
    max-width: 440px;
    padding: 36px 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.form-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.form-message.is-success {
    color: #1b6b4a; /* green */
}

.form-message.is-error {
    color: #c0392b; /* red for errors */
}

.apply-form input,
.apply-form select {
    outline: none;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form input:focus-visible,
.apply-form select:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: var(--green); /* or your brand color */
}

/* Chrome autofill blue/yellow background */
.apply-form input:-webkit-autofill,
.apply-form input:-webkit-autofill:hover,
.apply-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: inherit;
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Phone field inner input */
.phone-input input:focus,
.phone-input input:focus-visible {
    outline: none;
    box-shadow: none;
}

.advantages {
    background: var(--green-light)
}

#advantages-heading {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 700;
    font-style: normal;
    font-size: 60px;
    line-height: 100%;
    letter-spacing: 0;
    color: #0fa06c;
    margin-bottom: 112px
}

.advantages-grid {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 3rem;
    align-items: start
}

.advantages-list {
    min-width: 0
}

.advantage-items-scroll {
    overflow: visible;
    scroll-behavior: smooth
}

.advantage-items-scroll.is-scrollable {
    max-height: min(510px, 75vh);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #0f9e69 transparent
}

.stories-copy-scroll.is-scrollable {
    max-height: min(710px, 75vh)
}

.advantage-items-scroll::-webkit-scrollbar {
    width: 6px
}

.advantage-items-scroll::-webkit-scrollbar-thumb {
    background: #0f9e69;
    border-radius: 100px
}

.advantage-items-scroll:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px
}

.advantage-items {
    list-style: none
}

.advantage-items li {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 0;
    padding-top: 46px;
    border-bottom: none;
}

.advantage-items li > div {
    flex: 1;
    min-width: 0;
    padding-bottom: 46px;
    border-bottom: 1px solid #0000001c;
}

.advantage-items li:first-child {
    padding-top: 0;
}

.advantage-items li:last-child > div {
    padding-bottom: 0;
    border-bottom: none;
}




.advantage-check {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 83px;
    height: 83px;
    border: 2px solid #0f9e69;
    border-radius: 100px;
    background: transparent;
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-style: normal;
    font-size: 21px;
    line-height: 100%;
    letter-spacing: 0;
    color: #0f9e69
}

.advantage-items h3 {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-style: normal;
    font-size: 40px;
    line-height: 52px;
    letter-spacing: 0;
    color: #05974d;
    margin-bottom: 13px;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -moz-box;
    display: -webkit-box;
    -moz-box-orient: vertical;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

}

.advantage-check-div{
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #383431;
    text-overflow: ellipsis;
    overflow: hidden;
    display: -moz-box;
    display: -webkit-box;
    -moz-box-orient: vertical;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.advantages-media {
    width: 100%;
    max-width: 710px;
    aspect-ratio: 1;
    justify-self: start;
    align-self: start;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 63px #00000040
}

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

@media (max-width: 1200px) {
    .advantages-media {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1
    }

    .advantages-media img {
        width: 100%;
        height: 100%;
        max-width: 100%
    }
}

@media (min-width: 1201px) {
    .advantages-media {
        width: 710px;
        height: 710px;
        max-width: 710px
    }

    .advantages-media img {
        width: 710px;
        height: 710px
    }
}

.stories {
    background: var(--white);
    padding-bottom: 0
}

#stories-heading {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 700;
    font-style: normal;
    font-size: 60px;
    line-height: 100%;
    letter-spacing: 0;
    color: #0fa06c;
    margin-bottom: 82px
}

.stories-top {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 2.5rem
}

.stories-copy {
    min-width: 0
}

.stories-copy-list {
    list-style: none
}

.stories-copy-item {
    padding: 22px 0;
    border-bottom: 1px solid #0000001c
}

.stories-copy-item:first-child {
    padding-top: 0
}

.stories-copy-item:last-child {
    padding-bottom: 0;
    border-bottom: none
}

.stories-media {
    width: 100%;
    max-width: 710px;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0px 4px 60px 0px #00000040;

}

.stories-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 4px 60px #00000040
}

.stories-copy-item h3 {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 500;
    font-style: normal;
    font-size: 20px;
    line-height: 38px;
    letter-spacing: 0;
    color: #0fa06c;
    margin-bottom: 3px
}

.stories-copy-item-div{
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 27px;
    letter-spacing: 0;
    color: #636363;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden
}

.stories-bottom {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 1.5rem;
    margin: 110px 0 0
}

.rates-card {
    width: 100%;
    max-width: 950px;
    min-width: 0;
    padding: 34px 33px 49px;
    background: var(--white);
    border: 1px solid #d5d5d5;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 38px #e0e0e02b
}

@media (min-width: 1401px) {
    .rates-card {
        width: 950px
    }
}

@media (max-width: 1400px) {
    .stories-bottom > * {
        min-width: 0
    }

    .rates-card {
        width: 100%;
        max-width: 100%;
        padding: 28px 24px 40px
    }

    .rates-title {
        font-size: 26px;
        margin-bottom: 36px
    }

    .rates-table {
        font-size: 13px
    }

    .rates-table th, .rates-table td {
        padding: 8px 6px
    }

    .rates-table col.rates-col--currency {
        width: 26%
    }

    .rates-table col.rates-col--cash, .rates-table col.rates-col--noncash {
        width: 37%
    }
}

.rates-title {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 700;
    font-style: normal;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: 0;
    color: #0fa06c;
    margin-bottom: 52px
}

.rates-updated {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #636363;
    margin: -36px 0 28px
}

.rates-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 14px
}

.rates-table col.rates-col--currency {
    width: 28%;
    max-width: 250px
}

.rates-table col.rates-col--cash, .rates-table col.rates-col--noncash {
    width: 36%;
    max-width: 250px
}

.rates-pair {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 8px;
    text-align: center
}

.rates-pair__label {
    display: none
}

.rates-pair__value {
    font-weight: 600;
    color: var(--text)
}

.rates-group-cell__title {
    display: none
}

.rates-table th, .rates-table td {
    max-width: 250px;
    padding: 10px 8px;
    text-align: left;
    border: none;
    box-sizing: border-box
}

.rates-table thead th {
    font-weight: 600;
    color: #525252;
    text-align: center;
    vertical-align: middle
}

.rates-table thead tr:first-child th:first-child {
    text-align: left
}

.rates-table tbody td:not(:first-child), .rates-group-cell {
    text-align: center
}

.rates-table tbody tr:nth-child(1), .rates-table tbody tr:nth-child(3) {
    background: #fafafa
}

.rates-currency {
    display: inline-flex;
    align-items: center;
    gap: 10px
}

.rates-flag {
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    overflow: hidden
}

.rates-flag svg, .rates-currency .rates-flag {
    display: block;
    width: 27px;
    height: 27px;
    max-width: none;
    border-radius: 50%;
    object-fit: cover
}

.rates-stack {
    display: none
}

.rates-stack__section + .rates-stack__section {
    margin-top: 28px
}

.rates-stack__heading {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 700;
    font-size: 20px;
    line-height: 1.2;
    color: #0fa06c;
    margin-bottom: 14px;
    text-align: center
}

.rates-stack__columns {
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 8px;
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    text-align: center
}

.rates-stack__col--currency {
    text-align: left
}

.rates-stack__list {
    list-style: none
}

.rates-stack__row {
    display: grid;
    grid-template-columns:1fr 1fr 1fr;
    gap: 8px;
    align-items: center;
    padding: 14px 8px;
    text-align: center
}

.rates-stack__row:nth-child(odd) {
    background: #fafafa;
    border-radius: var(--radius)
}

.rates-stack__row .rates-currency {
    justify-self: start;
    text-align: left
}

.rates-stack__value {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 600;
    font-size: 16px;
    color: var(--text)
}

.stories-cta {
    background: var(--green);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.stories-cta h3 {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 700;
    font-size: 50px;
    line-height: 75px;
    text-align: center;
    color: #fff;
    margin-bottom: .5rem
}

.stories-cta p {
    display: none
}

.stories-cta .btn {
    border: 1px solid #fff;
    border-radius: 100px;
    background: transparent;
    padding: 16px 41px;
    color: #fff
}

.stories-cta .btn:hover {
    background: #ffffff1f;
    color: #fff
}

#news-heading {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 700;
    font-style: normal;
    font-size: 60px;
    line-height: 100%;
    letter-spacing: 0;
    color: #0fa06c;
    margin-bottom: 82px
}

.news {
    background: var(--green-light)
}

.news-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 1.5rem
}

.news-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition)
}

.news-card:hover {
    transform: translateY(-4px)
}

.news-card__open {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit
}

.news-card__media {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 460px;
    margin-inline: auto
}

.news-card__media img {
    display: block;
    width: 100%;
    max-width: 460px;
    max-height: 460px;
    aspect-ratio: 3 / 4;
    object-fit: cover
}

.news-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #000, #0000);
    pointer-events: none
}

.news-card__caption {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    z-index: 1;
    padding: 0 20px;
    pointer-events: none
}

.news-card h3 {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 700;
    font-size: 36px;
    line-height: 42px;
    letter-spacing: 0;
    color: #fff;
    margin-bottom: 13px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden
}

.news-card time {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #fff
}

.news-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.news-modal[hidden] {
    display: none
}

.news-modal__backdrop {
    position: absolute;
    inset: 0;
    background: #0000008c
}

.news-modal__panel {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(90vh, 900px);
    overflow-y: auto;
    padding: 32px 36px 40px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px #0003
}

.news-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px
}

.news-modal__title {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    color: #0fa06c;
    margin-bottom: 8px
}

.news-modal__date {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #636363
}

.news-modal__close {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #d5d5d5;
    border-radius: 50%;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #383431;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition)
}

.news-modal__close:hover {
    background: #f5f5f5;
    border-color: #b5b5b5
}

.news-modal__body:after {
    content: "";
    display: table;
    clear: both
}

.news-modal__img {
    float: left;
    width: min(42%, 360px);
    margin: 0 28px 20px 0;
    border-radius: var(--radius);
    object-fit: cover;
}

.news-modal__content {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 27px;
    color: #636363
}

body.news-modal-open {
    overflow: hidden
}

.contacts {
    background: var(--white);
    padding-bottom: 0
}

.contacts-grid {
    display: grid;
    grid-template-columns:minmax(0, min(900px, 100%)) auto;
    gap: 2rem 3rem;
    align-items: start;
    justify-content: space-between;
    width: 100%
}

.contacts-map {
    grid-column: 1;
    width: 100%;
    max-width: 900px;
    min-width: 0
}

.contacts-map iframe {
    display: block;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 900 / 600;
    height: auto;
    min-height: 280px;
    border: 0;
    border-radius: var(--radius-lg)
}

.contacts-info {
    grid-column: 2;
    justify-self: end;
    align-self: start;
    margin-inline-start: auto;
    padding: 1rem 0;
    width: min(100%, 420px);
    max-width: 420px
}

.contacts-info .logo.logo--contact {
    display: inline-flex;
    width: 100%;
    justify-content: flex-end;
    margin-inline-start: auto;
    margin-bottom: 1.5rem
}

.contacts-info .logo-name {
    color: var(--green)
}

.contacts-info address {
    font-style: normal;
    margin-bottom: 1.5rem
}

.contacts-info .contacts-address {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 500;
    font-size: 20px;
    line-height: 34px;
    text-align: right;
    color: #1e3a5f;
    margin: 27px 0 18px
}

.contacts-info .contacts-mail, .contacts-info .contacts-phone {
    margin: 0 0 11px;
    text-align: right
}

.contacts-info .contacts-mail a, .contacts-info .contacts-phone a {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 500;
    font-size: 25px;
    line-height: 31px;
    color: #1e3a5f;
    text-decoration: none
}

.contacts-info address strong {
    display: none
}

.contacts-info .contacts-mail a:hover, .contacts-info .contacts-phone a:hover {
    color: var(--green)
}

.contacts-social {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 4px
}

.contacts-social__messengers {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 12px
}

.contacts-social__networks {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px
}

.contacts-social .social-btn {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity var(--transition), transform var(--transition)
}

.contacts-social .social-btn img {
    display: block;
    width: 28px;
    height: 28px;
    max-width: none
}

.social-btn--telegram {
    background: #26a5e4
}

.social-btn--whatsapp {
    background: #25d366
}

.contacts-social .social-btn--network {
    width: 53px;
    height: 53px;
    background: #fff;
    border: 1px solid #0fa06c
}

.contacts-social .social-btn--network:hover {
    background: #f5f5f5
}

.contacts-social .social-btn:hover {
    opacity: .9;
    transform: translateY(-2px)
}

.contacts-updated {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    text-align: left;
    color: #636363;
    margin: 45px 0 26px
}

.contacts-legal {
    margin-bottom: 0
}

.contacts-after__brands {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding-bottom: 27px;
    border-bottom: 1px solid #e2e2e2
}

.contacts-brand {
    flex-shrink: 0;
    line-height: 0
}

.contacts-brand img {
    display: block;
    width: 216px;
    max-width: min(216px, 100%);
    height: auto
}

.contacts-cba {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
    max-width: min(100%, 600px);
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: #636363;
    text-align: right;
    text-decoration: none
}

.contacts-cba:hover {
    color: #0fa06c
}

.contacts-cba img {
    flex-shrink: 0;
    display: block;
    width: 31px;
    height: 27px;
    max-width: none
}

.contacts-legal p {
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 30px;
    text-align: left;
    color: #636363;
}

.contacts-legal p:last-child {
    margin-bottom: 0
}

.site-footer {
    background: none;
    padding: 21px 0 24px;
    border-top: 1px solid var(--border)
}

.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: "Noto Sans Armenian", var(--font);
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #636363
}

.site-footer-brand {
    flex-shrink: 0;
    display: block;
    line-height: 0
}

.site-footer-brand img {
    display: block;
    width: 216px;
    max-width: min(216px, 100%);
    height: auto
}

.site-footer-copy {
    margin: 0
}

.site-footer-nav {
    display: none
}

.site-footer-credit {
    margin: 0 0 0 auto;
    text-align: right
}

.site-footer-credit a {
    color: inherit;
    text-decoration: none
}

.site-footer nav a:hover, .site-footer-credit a:hover {
    color: var(--green)
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%) translateY(100px);
    background: var(--green-dark);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    z-index: 300;
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
    pointer-events: none
}

.toast.is-visible {
    transform: translate(-50%) translateY(0);
    opacity: 1
}

.bank-item{
    margin-right: 10px;
}

@media (min-width: 1201px) {
    .mobile-menu, .mobile-menu.is-open {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important
    }
}

@media (max-width: 1200px) {
    .header-inner {
        grid-template-columns:1fr auto
    }

    .nav, .header-btns {
        display: none
    }

    .header-inner .header-actions {
        justify-self: end
    }

    .menu-toggle {
        display: flex
    }
}

@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        padding-left: 30px;
        padding-right: 30px
    }

    .loan-card h3 {
        font-size: 23px;
    }

    #loans-heading, #apply-heading, #advantages-heading, #stories-heading, #news-heading {
        font-size: 30px
    }

    .advantage-items li {
        align-items: start
    }

    .advantage-check {
        width: 65px;
        height: 65px
    }

    .advantage-items h3 {
        font-size: 23px;
        margin-bottom: 0;
        line-height: 35px
    }

    .loan-slider {
        --loan-slide-size: calc((100cqi - 16px) / 2)
    }

    .loan-slider__viewport {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none
    }

    .loan-slider__viewport::-webkit-scrollbar {
        display: none
    }

    .loan-grid {
        flex-wrap: nowrap;
        width: 100%
    }

    .loan-grid > .loan-card {
        flex: 0 0 var(--loan-slide-size);
        width: var(--loan-slide-size);
        max-width: none;
        scroll-snap-align: start;
        flex-direction: column;
        align-items: flex-start;
        align-self: stretch;
        gap: 0;
        height: auto;
    }

    .loan-card--horizontal {
        flex-direction: column;
        align-items: flex-start;
        gap: 0
    }

    .loan-card--horizontal .loan-card__media {
        flex: none;
        width: 100%;
        max-width: 250px;
        min-width: 0;
        min-height: 150px;
        margin-bottom: 20px
    }

    .loan-card--horizontal .loan-card__media img {
        width: 100%;
        max-width: 250px
    }

    .apply-grid, .advantages-grid, .stories-top, .stories-bottom {
        grid-template-columns:1fr;
        align-items: stretch
    }

    .contacts-grid {
        grid-template-columns:1fr;
        justify-content: stretch
    }

    .contacts-map, .contacts-info {
        grid-column: auto
    }

    .contacts-info {
        justify-self: end;
        margin-inline-start: auto;
        width: min(100%, 420px);
        max-width: 420px
    }

    .contacts-info .contacts-address {
        font-size: 20px;
        line-height: 30px
    }

    .stories-media {
        width: 100%;
        max-width: 100%;
        margin-inline: auto
    }

    .advantages-media {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 1;
        justify-self: start;
        align-self: start
    }

    .advantages-media img {
        width: 100%;
        height: 100%;
        max-width: 100%
    }

    .apply-grid {
        gap: 0
    }

    .rates-card {
        width: 100%;
        padding: 24px 20px 32px
    }

    .rates-table-wrap {
        display: none
    }

    .rates-stack {
        display: block
    }

    .apply-media {
        width: 100%;
        max-width: 100%;
        justify-self: stretch
    }

    .apply-media img {
        width: 100%;
        min-width: 0;
        max-width: 100%
    }

    .apply-form-wrap {
        width: 100%;
        max-width: 100%;
        margin-top: -100px;
        margin-left: 0;
        justify-self: stretch;
        align-self: auto;
        grid-column: auto;
        grid-row: auto
    }

    .news-grid {
        grid-template-columns:repeat(2, 1fr)
    }
}

@media (max-width: 640px) {
    :root {
        --gutter: 16px;
        --header-h: 64px
    }

    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px
    }

    .hero {
        min-height: 70vh
    }

    /*.hero-overlay {*/
    /*    background: linear-gradient(180deg, #003c28cc, #003c2880)*/
    /*}*/

    .hero-content-band {
        bottom: 2rem
    }

    .hero-content-wrap {
        max-width: min(850px, 100%)
    }

    .hero-content {
        text-align: center;
        padding: 2rem 1.25rem 1.5rem
    }

    .hero .btn-primary {
        width: 100%
    }

    .section {
        padding: 40px 0
    }

    .loan-slider {
        --loan-slide-size: calc((100cqi - 16px) / 1)
    }

    .stories-media, .advantages-media {
        width: 100%;
        max-width: 100%
    }

    .news-grid {
        grid-template-columns:1fr
    }

    .news-card:last-child {
        grid-column: span 1;
        max-width: none
    }

    .news-card h3 {
        font-size: 24px;
        line-height: 30px
    }

    .news-modal__img {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 20px
    }

    .news-modal__panel {
        padding: 24px 20px 28px
    }

    .apply-form-wrap {
        padding: 1.5rem
    }

    .apply-form-fields {
        grid-template-columns:1fr
    }

    .apply-form-footer {
        flex-direction: column;
        align-items: stretch
    }

    .apply-form-submit {
        width: 100%;
        margin-left: 0
    }

    .contacts-map iframe {
        min-height: 280px
    }

    .contacts-after__brands {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-bottom: 0;
        border-bottom: none
    }

    .contacts-cba {
        margin-left: 0;
        max-width: 100%;
        text-align: left;
        justify-content: flex-start
    }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left
    }

    .site-footer-credit {
        margin-left: 0;
        text-align: left
    }

    .site-footer-brand img {
        width: min(216px, 70vw)
    }
    #apply-heading{
        margin-bottom: 40px;
    }
    .news-modal__title {
        font-size: 19px;
    }
}

@media (max-width: 420px) {
    .advantage-items h3 {
        font-size: 20px
    }
    .hero h1{
        font-size: 18px;
    }
    .hero-lead {
        font-size: 16px;
        margin-bottom: 10px;
    }
    .hero-content a {
        margin-top: 0;
    }
    .hero .btn-primary {
        width: 85%;
    }
    .loan-card h3{
        font-size: 20px;
    }

}
