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

body {
    font-family: 'Inter', sans-serif;
    background-color: #F8F9FA;
    color: #0D3051;
    line-height: 1.5;
    overflow-x: hidden;
}


.branches-section {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 274px 77px;
    background: linear-gradient(0deg, rgba(0, 122, 255, 1) 0%, rgba(0, 73, 153, 1) 100%);
}

.branches-layout-container {
    display: flex;
    gap: 117px;
    align-items: flex-start;
}

.branches-map-area {
    width: 826px;
    height: 466px;
    background: #F8F9FA;
    border-radius: 20px;
    flex-shrink: 0;
}

.branches-info-section {
    flex: 1;
    padding-top: 78px;
}

.branches-subtitle-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2102272727272727em;
    color: #FFFFFF;
    margin-bottom: 34px;
}

.branches-description-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.375em;
    color: #FFFFFF;
    margin-bottom: 94px;
}

.branches-filter-section {
    display: flex;
    flex-direction: column;
    gap: 31px;
}

.branch-filter-item {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.filter-label-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2102272245619032em;
    color: #FFFFFF;
}

.filter-chip-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #007AFF;
    border-radius: 6px;
    width: 118px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-chip-button:hover {
    background: #0056b3;
}

.filter-chip-button span {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2102272510528564em;
    color: #000000;
}

.filter-chip-button svg path {
    stroke: #000000;
}



@media (max-width: 1920px) {
    .advantages-section,
    .history-section,
    .strategy-section,
    .branches-section {
        max-width: 100%;
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 1440px) {
    .advantages-grid-layout {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .timeline-items-container {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .branches-layout-container {
        flex-direction: column;
    }
    
    .branches-map-area {
        width: 100%;
        max-width: 826px;
    }
    
    .advantages-section,
    .history-section,
    .branches-section {
        padding-left: 80px;
        padding-right: 80px;
    }
    
    .resources-section {
        padding-left: 80px;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .resource-slide-item {
        min-width: calc(100% - 270px);
    }
    
    .resources-controls {
        margin-right: 80px;
    }
    
    .resource-card-layout {
        width: 100%;
        max-width: 955px;
        padding-left: 50px;
        padding-right: 60px;
        padding-top: 70px;
        padding-bottom: 70px;
        gap: 60px;
    }
    
    .resource-image-area {
        width: 280px;
    }
    
    .resource-title-text {
        font-size: 18px;
    }
    
    .resource-description-text {
        font-size: 14px;
    }
}

@media (max-width: 1024px) {
    .advantages-section,
    .history-section,
    .branches-section {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .advantages-grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .strategy-interactive-area {
        flex-direction: column;
    }
    
    .resources-section {
        padding-left: 40px;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .resources-section .section-heading {
        font-size: 28px;
    }
    
    .resource-slide-item {
        min-width: calc(100vw - 80px);
        max-width: 955px;
    }
    
    .resource-card-layout {
        width: 100%;
        height: auto;
        min-height: 400px;
        padding-left: 40px;
        padding-right: 40px;
        padding-top: 60px;
        padding-bottom: 60px;
        gap: 40px;
    }
    
    .resource-image-area {
        width: 250px;
        min-height: 250px;
    }
    
    .resource-title-text {
        font-size: 18px;
    }
    
    .resource-description-text {
        font-size: 14px;
    }
    
    .resources-controls {
        margin-right: 40px;
        gap: 15px;
    }
    
    .resources-controls #prevResources {
        margin-left: 30px;
    }
    
    .resources-arrow {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    
    .resources-dots span {
        width: 12px;
    }
    
    .resources-dots span.active {
        width: 20px;
    }
}

@media (max-width: 900px) {
    .resources-section {
        padding-left: 30px;
        padding-top: 45px;
        padding-bottom: 45px;
    }
    
    
    .resource-image-area {
        width: 220px;
        min-height: 220px;
    }
    
    .resources-controls {
        margin-right: 30px;
    }
}

@media (max-width: 768px) {
    .advantages-section,
    .history-section,
    .branches-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .section-heading {
        font-size: 28px;
    }
    
    .hero-main-headline {
        font-size: 24px;
    }
    
    .hero-paragraph {
        font-size: 16px;
    }
    
    .advantages-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .advantage-item {
        width: 100%;
        max-width: 290px;
    }
    
    .timeline-items-container {
        flex-direction: column;
        align-items: center;
    }
    
    .timeline-horizontal-line {
        width: 2px;
        height: 100%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .resources-section {
        padding-left: 20px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .resources-section .section-heading {
        font-size: 24px;
    }
    
    .resource-slide-item {
        min-width: calc(100vw - 40px);
        max-width: 600px;
    }
    
    .resource-card-layout {
        flex-direction: column;
        height: auto;
        min-height: 350px;
        padding-left: 30px;
        padding-right: 30px;
        padding-top: 40px;
        padding-bottom: 40px;
        gap: 30px;
        row-gap: 30px;
    }
    
    .resource-image-area {
        width: 100%;
        height: 250px;
        border-radius: 20px 20px 0 0;
        order: -1;
    }
    
    .resource-text-area {
        order: 1;
    }
    
    .resource-title-text {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .resource-description-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .resource-action-button {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    .resources-navigation-controls {
        margin-top: 30px;
    }
    
    .resources-controls {
        margin-right: 20px;
        padding-bottom: 60px;
        gap: 12px;
        justify-content: center;
    }
    
    .resources-controls #prevResources {
        margin-left: 0;
    }
    
    .resources-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .resources-dots {
        gap: 6px;
    }
    
    .resources-dots span {
        width: 10px;
        height: 5px;
    }
    
    .resources-dots span.active {
        width: 18px;
        height: 5px;
    }
}

@media (max-width: 480px) {
    .advantages-section,
    .history-section,
    .branches-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-content-wrapper {
        width: 100%;
    }
    
    .hero-main-headline {
        width: 100%;
        font-size: 20px;
    }
    
    .hero-paragraph {
        width: 100%;
        font-size: 14px;
    }
    
    .section-heading {
        font-size: 24px;
    }
    
    .advantage-item {
        width: 100%;
    }
    
    .resources-section {
        padding-left: 15px;
        padding-top: 30px;
        padding-bottom: 30px;
    }
    
    .resources-section .section-heading {
        font-size: 20px;
        padding-bottom: 30px;
    }
    
    .resource-slide-item {
        min-width: calc(100vw - 30px);
        height: auto;
    }
    
    .resource-card-layout {
        height: auto;
        min-height: 300px;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 30px;
        padding-bottom: 30px;
        gap: 20px;
        row-gap: 20px;
        border-radius: 15px;
    }
    
    .resource-image-area {
        height: 200px;
        border-radius: 15px 15px 0 0;
    }
    
    .resource-title-text {
        font-size: 16px;
        margin-bottom: 12px;
        line-height: 1.3em;
    }
    
    .resource-description-text {
        font-size: 13px;
        line-height: 1.5em;
        margin-bottom: 15px;
    }
    
    .resource-action-button {
        padding: 10px;
        font-size: 13px;
    }
    
    .resources-navigation-controls {
        margin-top: 25px;
        gap: 15px;
    }
    
    .resources-nav-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .resources-controls {
        margin-right: 15px;
        padding-bottom: 40px;
        gap: 15px;
        justify-content: center;
    }
    
    .resources-controls #prevResources {
        margin-left: 0;
    }
    
    .resources-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .resources-dots {
        gap: 6px;
    }
    
    .resources-dots span {
        width: 10px;
        height: 5px;
    }
    
    .resources-dots span.active {
        width: 18px;
        height: 5px;
    }
}

@media (max-width: 360px) {
    .resources-section {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 25px;
        padding-bottom: 25px;
    }
    
    .resources-section .section-heading {
        font-size: 20px;
        padding-bottom: 25px;
    }
    
    .resource-card-layout {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 25px;
        padding-bottom: 25px;
        gap: 15px;
        row-gap: 15px;
        border-radius: 12px;
    }
    
    .resource-image-area {
        height: 180px;
        border-radius: 12px 12px 0 0;
    }
    
    .resource-title-text {
        font-size: 14px;
        margin-bottom: 10px;
        line-height: 1.3em;
    }
    
    .resource-description-text {
        font-size: 12px;
        line-height: 1.4em;
        margin-bottom: 12px;
    }
    
    .resource-action-button {
        padding: 8px;
        font-size: 12px;
    }
    
    .resources-controls {
        margin-right: 10px;
        padding-bottom: 30px;
        gap: 12px;
    }
    
    .resources-controls #prevResources {
        margin-left: 10px;
    }
    
    .resources-arrow {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .resources-dots span {
        width: 10px;
        height: 5px;
    }
    
    .resources-dots span.active {
        width: 18px;
        height: 5px;
    }
}

.branches {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 75px 274px 77px;
}


.branches__container {
    width: 100%;
}

.branches__title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 34px;
    line-height: 1.2352941176470589em;
    color: #0d3051;
    margin-bottom: 55px;
}

.branches__content {
    display: flex;
    gap: 117px;
    background: linear-gradient(0deg, rgba(0, 122, 255, 1) 0%, rgba(0, 73, 153, 1) 100%);
    align-items: center;
    padding: 80px;
    border-radius: 20px;
}

.branches__map {
    width: 826px;
    height: 466px;
    max-width: 826px;
    max-height: 466px;
    border-radius: 20px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.branches__map-img {
    width: 100%;
    height: 100%;
    background: url(./images/map.svg) center center / cover no-repeat;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.branches__map-img-active{
    background: url(./images/map-almaty.svg) center center / cover no-repeat;
}

.branches__region {
    position: absolute;
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
    padding: 0;
    transform: translate(-50%, -50%);
}

.branches__region img {
    width: 100%;
    height: 100%;
    display: block;
}

.branches__map-img {
    transition: background 0.3s ease;
}

.branches__info {
    flex: 1;
    padding-top: 78px;
}

.branches__info-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2102272727272727em;
    color: #FFFFFF;
    margin-bottom: 34px;
}

.branches__info-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.375em;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.branches__info-text:last-of-type {
    margin-bottom: 94px;
}

.branches__dynamic {
    display: flex;
    flex-direction: column;
    gap: 31px;
}

.branches__select {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.branches__select-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2102272245619032em;
    color: #FFFFFF;
}

.branches__select-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border: none;
    border-radius: 6px;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2102272510528564em;
    color: #000000;
    text-align: left;
}

.branches__select-btn:hover {
    background: #0056b3;
}

.branches__select-icon {
    font-size: 20px;
    color: #000000;
    margin-left: auto;
}

@media (max-width: 1952px) {
    .branches {
        padding-left: 200px;
        padding-right: 200px;
    }
    
    .branches__content {
        gap: 100px;
        padding: 70px;
    }
    
    .branches__map {
        width: 750px;
        height: 423px;
        max-width: 750px;
        max-height: 423px;
    }
   
}

@media (max-width: 1600px) {
    .branches {
        padding-left: 120px;
        padding-right: 120px;
    }
    
    .branches__content {
        gap: 80px;
        padding: 65px;
    }
    
    .branches__map {
        width: 720px;
        height: 406px;
        max-width: 720px;
        max-height: 406px;
    }
  
}

@media (max-width: 1440px) {
    .branches {
        padding-left: 80px;
        padding-right: 80px;
    }
    
    .branches__container {
        width: 100%;
        max-width: 100%;
    }
    
    .branches__content {
        gap: 60px;
        padding: 60px;
    }
    
    .branches__map {
        width: 700px;
        height: 395px;
        max-width: 700px;
        max-height: 395px;
    }
  
    .branches__info {
        padding-top: 0;
    }
}

@media (max-width: 1200px) {
    .branches {
        padding-left: 60px;
        padding-right: 60px;
    }
    
    .branches__content {
        gap: 50px;
        padding: 50px;
    }
    
    .branches__map {
        width: 600px;
        height: 339px;
        max-width: 600px;
        max-height: 339px;
    }
    
}

@media (max-width: 1100px) {
    .branches__content {
        flex-direction: column;
        align-items: center;
    }
    
    .branches__map {
        max-width: 700px;
        height: auto;
        aspect-ratio: 826 / 466;
    }
    
    .branches__info {
        width: 100%;
        padding-top: 0;
    }
}

@media (max-width: 1024px) {
    .branches {
        padding-left: 40px;
        padding-right: 40px;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .branches__container {
        width: 100%;
        max-width: 100%;
    }
    
    .branches__title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .branches__content {
        flex-direction: column;
        gap: 40px;
        padding: 50px 40px;
    }
    
    .branches__map {
        height: auto;
        aspect-ratio: 826 / 466;
    }
    
    .branches__info {
        padding-top: 0;
        width: 100%;
    }
    
    .branches__info-title {
        font-size: 20px;
        margin-bottom: 24px;
    }
    
    .branches__info-text {
        font-size: 15px;
        margin-bottom: 16px;
    }
    
    .branches__info-text:last-of-type {
        margin-bottom: 60px;
    }
    
    .branches__dynamic {
        gap: 24px;
    }
    
    .branches__select-btn {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .branches {
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    
    .branches__container {
        width: 100%;
    }
    
    .branches__title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .branches__content {
        gap: 30px;
        padding: 40px 30px;
        border-radius: 16px;
    }
    
    .branches__map {
        max-width: 100%;
        height: auto;
        aspect-ratio: 826 / 466;
    }
    
    .branches__info {
        width: 100%;
    }
    
    .branches__info-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .branches__info-text {
        font-size: 14px;
        margin-bottom: 14px;
    }
    
    .branches__info-text:last-of-type {
        margin-bottom: 40px;
    }
    
    .branches__dynamic {
        gap: 20px;
    }
    
    .branches__select-label {
        font-size: 16px;
    }
    
    .branches__select-btn {
        font-size: 14px;
        padding: 8px 12px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .branches {
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    
    .branches__container {
        width: 100%;
    }
    
    .branches__title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .branches__content {
        padding: 30px 20px;
        gap: 25px;
        border-radius: 12px;
    }
    
    .branches__map {
        max-width: 100%;
        height: auto;
        aspect-ratio: 826 / 466;
    }
    
    .branches__info {
        width: 100%;
    }
    
    .branches__info-title {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .branches__info-text {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.4em;
    }
    
    .branches__info-text:last-of-type {
        margin-bottom: 30px;
    }
    
    .branches__dynamic {
        gap: 18px;
    }
    
    .branches__select {
        gap: 10px;
    }
    
    .branches__select-label {
        font-size: 14px;
    }
    
    .branches__select-btn {
        font-size: 13px;
        padding: 8px 10px;
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    .branches__region img{
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 525px) {
    .branches__region img{
        width: 80px;
        height: 80px;
    }
}


/* ===== КНОПКА "ПЕРЕЙТИ В ФИЛИАЛ" ===== */
#branchLink {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 22px;
  border-radius: 12px;

  background: #ffffff;
  color: #007aff;

  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;

  text-decoration: none;
  cursor: pointer;

  transition: 
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

/* стрелка */
#branchLink::after {
  content: "→";
  font-size: 18px;
  transition: transform 0.2s ease;
}

/* hover */
#branchLink:hover {
  background: #e6f0ff;
  color: #005fcc;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 122, 255, 0.25);
}

#branchLink:hover::after {
  transform: translateX(3px);
}

/* active (нажатие) */
#branchLink:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2);
}

/* focus (доступность) */
#branchLink:focus-visible {
  outline: 2px solid rgba(0, 122, 255, 0.6);
  outline-offset: 3px;
}

/* адаптив */
@media (max-width: 480px) {
  #branchLink {
    width: 100%;
    justify-content: center;
    font-size: 15px;
  }
}

/* FIX: уменьшить кнопку "Перейти в филиал" */
#branchLink {
  width: auto;                 /* убираем растягивание */
  max-width: none;
  align-self: flex-start;      /* не тянется по колонке */

  padding: 10px 16px;          /* меньше */
  border-radius: 10px;

  font-size: 14px;             /* компактнее */
  font-weight: 600;
  gap: 6px;
}

/* стрелка компактнее */
#branchLink::after {
  font-size: 16px;
}

/* hover без «жирной» тени */
#branchLink:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 122, 255, 0.18);
}

/* мобилка — тоже не на всю ширину */
@media (max-width: 480px) {
  #branchLink {
    width: fit-content;
    padding: 9px 14px;
    font-size: 13px;
  }
}



/* =========================
   СПИСОК "НАШ ФИЛИАЛ"
========================= */

.branches__dynamic {
  margin-top: 28px;
}

.branches__select {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.branches__select-label {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
}

/* SELECT */
.branches__select-native {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid #d0d7de;
  background-color: #ffffff;
  cursor: pointer;
  appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.branches__select-native:hover {
  border-color: #a8b3c2;
}

.branches__select-native:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

/* ССЫЛКА НА ФИЛИАЛ */
.branches__branch-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #007aff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.branches__branch-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.branches__branch-link:hover {
  color: #005fcc;
}

.branches__branch-link:hover::after {
  transform: translateX(4px);
}

/* УБРАТЬ СТРЕЛКУ */
.branches__branch-link::after {
  content: none;
}

/* РАССТОЯНИЕ МЕЖДУ ССЫЛКАМИ */
#branchLink .branches__branch-link {
  margin-top: 10px;
  line-height: 1.4;
}

/* ЕСЛИ НУЖНО ЧУТЬ СПОКОЙНЕЕ */
#branchLink {
  margin-top: 8px;
}
.branches__branch-link::after {
  content: none !important;
}