/**** Custom Style ***/
body {
  font-family: "Outfit", sans-serif;
  overflow-x: hidden;
  color: #fff;
}

/* Remove default margins */
body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

h2 {
  font-weight: 800 !important;
  font-size: 50px !important;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  line-height: 1.3 !important;
  color: #181c25;
}

h4 {
  font-weight: 900;
}

a.navbar-brand {
  display: none;
}

a,
a:visited {
  color: #181c25; /* or any color you want */
  text-decoration: none; /* optional */
}

a {
  color: #e12e3a;
  transition: 0.3s all ease-in-out;
}

.primary-btn,
.cu-form input[type="submit"] {
  display: inline-block;
  background: #c8102e;
  color: #fff;
  text-decoration: none;
  border-radius: 96px;
  padding: 12px 24px;
  font-weight: 700;
  border: none;
}

.primary-btn span {
  display: inline-block;
  position: relative;
  vertical-align: top;
}

.primary-btn i {
  color: #000;
  font-size: 20px;
}

.primary-btn:hover,
.primary-btn:visited,
.cu-form input[type="submit"]:hover,
.cu-form input[type="submit"]:visited {
  background-color: #e12e3a !important;
  color: #fff;
}

.hide {
  display: none !important;
}

@media (min-width: 1200px) {
  .h2,
  h2 {
    font-size: 48px;
    line-height: 1.7;
    font-weight: 400;
  }
}

/*** Header ***/
header {
  position: sticky;
  background: #fff;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: 0.3s all ease-in-out;
  padding: 0 20px;
}

a.custom-logo-link img {
  max-width: 100px;
  transition: 0.3s all ease-in-out;
}

header nav.navbar > div > a.custom-logo-link {
  display: none;
}

div#mainNavbar {
  justify-content: space-between !important;
  padding: 12px 0;
  transition: 0.3s all ease-in-out;
}

ul#menu-primary-menu > li:not(:first-of-type) {
  margin-left: 24px;
}

div#mainNavbar ul a {
  color: #0c0407 !important;
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.5;
  padding: 8px 12px;
  position: relative;
  transition: 0.3s all ease-in-out;
  border-radius: 96px;
}

ul#menu-menu-1 {
  margin-left: auto;
}

div#mainNavbar > ul > li:hover > a {
  background: rgba(255, 255, 255, 0.08);
}

div#mainNavbar ul ul a {
  color: #000 !important;
}

.auth-buttons a.btn.btn-outline-primary {
  border: none;
  color: #1f1f1f;
}

.auth-buttons a.btn.btn-outline-primary:hover {
  color: #a19578;
  background: transparent;
}

.navbar-brand img {
  height: 40px;
}

.auth-buttons .btn {
  align-items: center;
  background: transparent;
  color: #1f1f1f;
  display: inline-flex;
  font-size: 16px;
  font-weight: 400;
  justify-content: center;

  line-height: 20px;
  min-height: 48px;
  min-width: 20rem;
  padding: 10px 20px;
  position: relative;
  text-align: center;
  text-decoration: none;
  vertical-align: top;
  letter-spacing: 1px;
  min-width: 105px;
  border-radius: 0;
  border: 1px solid #a19578;
}

.auth-buttons .btn:hover {
  background: #a19578;
  color: #fff;
}

@media (max-width: 991.98px) {
  .auth-buttons {
    margin-top: 10px;
    text-align: center;
  }
}

.login-btn {
  margin-left: 50px;
}

a.custom-logo-link img,
section#hp-sec3 img {
  border-radius: 0;
}

ul#menu-primary-menu ul {
  position: absolute;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  margin-left: 50%;
  top: 100%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s all ease-in-out;
}

ul#menu-primary-menu li:hover ul {
  opacity: 1;
  pointer-events: initial;
}

ul#menu-primary-menu li ul a {
  color: #fff !important;
}

div#page {
  position: relative;
}

/*** ANYDESK ***/

.anydesk-trigger {
  display: inline-block;
  padding: 0;
  background-color: #fff;
  color: white;
  cursor: pointer;
  position: fixed;
  bottom: 100px;
  right: 0;
  z-index: 200;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 9px rgba(0, 0, 0, 0.15);
}

.popup {
  position: fixed;
  background: #fff;
  display: none;
  z-index: 100;
  bottom: 30px;
  right: 55px;
  overflow: auto;
  padding: 50px;
  color: #555;
  border-radius: 15px;
  box-shadow: 0 9px 31px 1px rgba(118, 134, 143, 0.47);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(130%);
  transition: 0.3s all ease-in-out;
}

.popup.visible {
  opacity: 1;
  transform: translateX(0);
}

div#anydesk a {
  display: inline-block;
  padding: 22px 60px;
  background: #d34428;
  color: #fff;
  font-weight: 600;
  margin-top: 15px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  height: auto;
  width: 100%;
  border-bottom: 0;
  text-align: center;
  text-decoration: none;
}

div#anydesk a:hover {
  background: #9b2b15;
}

/*** END ANYDESK ***/

/*** Homepage ***/
#hp-hero {
  padding: 150px 0;
  overflow: hidden;
  position: relative;
  isolation: isolate; /* Создает новый контекст наложения */
}

#hp-hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url(../img/worldmap.png) left center no-repeat;
  background-size: contain;
  transform: translateX(50%);
  z-index: 1; /* Низкий z-index */
  pointer-events: none; /* Чтобы не мешал кликам */
}

#hp-hero .container {
  position: relative;
  z-index: 5; /* Выше чем :before */
}

#hp-hero .col-lg-9 {
  position: relative;
  z-index: 10; /* Самый высокий */
}


/* Стили для h2 в hero секции */
#hp-hero h2 {
  position: relative; /* Чтобы быть выше псевдоэлемента */
  z-index: 10; /* Выше чем :before */
  white-space: nowrap; /* Запрещаем перенос */
  font-size: 42px !important; /* Базовый размер */
  font-weight: 800 !important;
  margin-bottom: 30px;
  line-height: 1.3 !important;
  color: #181c25;
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8); /* Для лучшей читаемости */
}

/* Планшеты */
@media (max-width: 1200px) {
  #hp-hero h2 {
    font-size: 36px !important;
  }
}

@media (max-width: 992px) {
  #hp-hero h2 {
    font-size: 32px !important;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  #hp-hero h2 {
    font-size: 28px !important;
    white-space: nowrap; /* Оставляем в одну строку */
    overflow: visible; /* Показываем весь текст */
    text-overflow: clip; /* Без многоточия */
  }
}

/* Маленькие мобильные */
@media (max-width: 576px) {
  #hp-hero h2 {
    font-size: 24px !important;
    letter-spacing: -0.5px; /* Немного уплотняем буквы */
  }
}

/* Очень маленькие устройства */
@media (max-width: 400px) {
  #hp-hero h2 {
    font-size: 22px !important;
    transform: scale(0.95); /* Немного сжимаем */
  }
}

div#hp-sec2 {
  height: 400px;
  background: url(../img/hp-img1.jpg) center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

section#hp-sec3 {
  padding: 100px 0;
}

section#hp-sec3 img {
  max-width: 200px;
  display: block;
  margin: auto;
}

.hp-num {
  display: flex;
  justify-content: space-between;
  text-align: center;
}

.hp-num-item {
  padding: 30px;
}

.hp-num-item h3 {
  font-weight: 700;
  font-size: 40px;
  color: #c8102e;
}

.hp-num-item div {
  font-weight: 700;
  font-size: 20px;
}

section#hp-sec3 img {
  max-width: 200px;
  display: block;
  margin: 40px auto 30px;
}

/* Стили для h2 в секции "西松フィナンシャルがお客様に選ばれる理由" */
section#hp-sec3 h2,
.hp-sec3-title {
  white-space: nowrap; /* Запрещаем перенос */
  font-size: 36px !important; /* Базовый размер */
  font-weight: 800 !important;
  margin-bottom: 20px;
  line-height: 1.2 !important;
  color: #181c25;
 
}

/* Планшеты */
@media (max-width: 1200px) {
  section#hp-sec3 h2 {
    font-size: 32px !important;
  }
}

@media (max-width: 992px) {
  section#hp-sec3 h2 {
    font-size: 28px !important;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  section#hp-sec3 h2 {
    font-size: 28px !important;
    white-space: break-spaces; /* Оставляем в одну строку */
    overflow: visible;
    letter-spacing: -0.3px; /* Немного уплотняем */
  }
}

/* Маленькие мобильные */
@media (max-width: 576px) {
  section#hp-sec3 h2 {
    font-size: 24px !important;
    letter-spacing: -0.5px; /* Еще уплотняем */
    transform: scale(0.95); /* Немного сжимаем */
  }
}

/* Очень маленькие устройства */
@media (max-width: 400px) {
  section#hp-sec3 h2 {
    font-size: 20px !important;
    letter-spacing: -0.8px;
    transform: scale(0.9);
  }
}

/* Для экстремально маленьких */
@media (max-width: 360px) {
  section#hp-sec3 h2 {
    font-size: 18px !important;
    letter-spacing: -1px;
  }
}

.hp-sec3-title {
  text-align: center;
  font-weight: 700;
  font-size: 30px;
  margin-top: 30px;
}

img {
  border-radius: 40px;
}

.hp-sec4-wrap.mt-4 {
  display: flex;
  flex-flow: row wrap;
  gap: 20px;
}

.hp-sec4-item {
  background: #ececec;
  width: calc(50% - 10px);
  padding: 30px;
  border-radius: 10px;
}

.hp-sec4-item small {
  font-size: 14px;
  display: block;
  color: #c8102e;
}

.hp-sec4-item p {
  margin: 0;
}

section#hp-sec4 {
  padding-bottom: 150px;
}

.bg-dark {
  padding: 100px 0;
}

.tradingview-widget-container {
  width: 100%;
  min-width: 100%;
}

section#hp-sec6 {
  padding: 100px 0;
}

#hp-sec6 ul.slick-dots {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 50px;
}

#hp-sec6 ul.slick-dots button {
  font-size: 0;
  border: none;
  width: 10px;
  height: 10px;
}

#hp-sec6 ul.slick-dots .slick-active button {
  background: #c8102e;
}

.item-inner {
  padding: 30px;
  background: #dbdbdb;
  border-radius: 10px;
  margin: 10px;
}

section#footer-newsletter {
  padding: 150px 0;
  background: url(../img/hp-img3.jpg) center center no-repeat;
  background-size: cover;
  position: relative;
}

section#footer-newsletter:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
}

section#footer-newsletter > div {
  position: relative;
  z-index: 1;
}

span.text-red {
  color: #c8102e;
}

/*** Footer ***/
footer#colophon {
  background: #212529;
  overflow: hidden;
  padding: 110px 0 50px;
  position: relative;
  overflow: hidden;
}

.footer-top ul {
  margin: 30px 0;
  color: #fff;
}

.footer-top ul li {
  margin-bottom: 10px;
}

.footer-top a {
  color: #fff;
  text-decoration: none !important;
}

.footer-top p {
  font-size: 12px;
  margin-top: 20px;
}

.footer-contacts ul li {
  display: flex;
  gap: 10px;
}

.footer-bottom p {
  font-size: 13px;
  font-weight: 400;
}

footer#colophon a {
  color: #fff !important;
}

/*** Inner Page ***/
aside#secondary,
footer.entry-footer,
header.entry-header {
  display: none;
}

.post,
.page,
.page-content,
.entry-content,
.entry-summary {
  margin: 0 !important;
}

.page ul,
.page ol {
  margin-left: 0;
}

section#ip-header {
  padding: 50px 0 0;
}

.breadcrumbs {
  background: rgba(0, 0, 0, 0.05);
  display: inline-block;
  padding: 5px 20px;
  border-radius: 5px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 13px;
}

.breadcrumbs a {
  text-decoration: none;
  text-transform: uppercase;
  color: #000;
}

.page div#mainNavbar ul a {
  color: #181c25 !important;
}

.breadcrumbs {
  background: rgba(0, 0, 0, 0.05);
  display: block;
  padding: 5px 20px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 13px;
  margin: 0 auto 10px;
  max-width: fit-content;
}

.cu-header {
  padding: 100px 0 0px;
}

.cu-header small {
  color: #c8102e;
  font-size: 18px;
  margin-bottom: 5px;
}

.cu-contact {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.cu-cntact-item {
  border: 1px solid #ccc;
  padding: 40px 30px;
  margin: 10px 0;
  width: 33.33%;
}

.cu-top {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  font-size: 22px;
  gap: 20px;
}

.cu-top i {
  background: #efefef;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
}

.cu-top a {
  color: #c8102e;
}

.cu-text {
  font-size: 19px;
}

.cu-form-wrap {
  padding: 100px 0;
}

.cu-form p {
  margin: 0;
}

.cu-form label,
.cu-form br {
  display: none;
}

.cu-form input,
.cu-form textarea {
  padding: 10px !important;
}

.cu-form textarea {
  resize: none;
}

.cu-form input[type="submit"] {
  padding: 12px 40px !important;
}

.wpcf7-response-output {
  text-align: center;
}

.use-floating-validation-tip .wpcf7-not-valid-tip {
  position: absolute !important;
  width: initial !important;
}

.acc-item {
  height: 100%;
  border-radius: 10px;
  padding: 50px 30px;
  background: #efefef;
}

.acc-item-header h3 {
  color: #c8102e;
  font-weight: 700;
}

.acc-item.bg-red {
  background: #c8102e;
  transform: translateY(-40px);
  color: #fff;
}

.acc-item.bg-red a.primary-btn {
  background: #fff;
  color: #c8102e;
}

.text-red {
  color: #c8102e;
}

.acc-item.bg-red a.primary-btn:hover {
  color: #fff;
}

.acc-item.bg-red h3 {
  color: #fff;
  font-size: 40px;
}

.acc-item-body li {
  font-size: 20px;
  font-weight: 300;
  display: flex;
  gap: 20px;
  margin: 0 0 10px;
}

.forex-box {
  display: flex;
  gap: 15px;
  flex-flow: row wrap;
  justify-content: space-between;
  margin: auto;
}

.forex-box-item {
  display: flex;
  align-items: center;
  width: 23%;
  background: #f0f0f0;
  border-radius: 10px;
  padding: 50px 30px;
  flex-direction: column;
  text-align: center;
}

.box-icon {
  color: #c8102e;
  font-size: 40px;
}

.box-text h3 {
  font-size: 20px;
  font-weight: 700;
}

.box-text p {
  margin: 0;
}

/*** Media Queries ***/
@media only screen and (max-width: 1199px) {
  div#mainNavbar ul a {
    line-height: 1.5;
  }

  .primary-btn,
  .cu-form input[type="submit"] {
    padding: 10px 20px;
    font-size: 13px;
  }

  #footer-newsletter h2 {
    font-size: 40px !important;
  }

  .footer-logo img {
    margin-bottom: 30px;
  }

  .hp-num-item h3 {
    font-size: 30px;
  }
}

@media only screen and (max-width: 991px) {
  header {
    position: fixed;
    background: #17212b;
    padding: 0;
  }

  a.custom-logo-link,
  .ip-logo {
    display: none !important;
  }

  ul#menu-primary-menu li:not(:first-of-type) {
    margin-left: 0;
  }

  .auth-buttons {
    border-top: 1px solid #fff;
    margin-top: 30px;
    padding-top: 30px;
    padding-bottom: 30px;
  }

  ul#menu-menu-1 {
    margin-left: 0;
    margin-top: 0;
  }

  header nav.navbar > div > a.custom-logo-link {
    display: block !important;
  }

  ul#menu-primary-menu ul {
    display: none !important;
  }

  .auth-buttons a:nth-child(1) {
    background: #fff;
    color: #000 !important;
  }

  a.custom-logo-link img {
    max-width: 110px;
  }

  button.navbar-toggler {
    filter: invert(1);
  }

  /**** END ***/

  section#hp-sec3,
  section#hp-sec4 {
    text-align: center;
  }

  section#hp-sec3 h2 {
    font-size: 30px !important;
  }

  section#hp-sec4 img {
    margin-bottom: 25px;
  }

  div#mainNavbar ul a {
    color: #fff !important;
  }

  .login-btn {
    margin-left: 0;
  }

  .acc-item.bg-red {
    transform: translateY(0px);
    margin: 20px 0;
  }

  section#page-cu img {
    margin: 20px 0;
  }

  .page div#mainNavbar ul a {
    color: #fff !important;
  }

  .page div#mainNavbar ul ul a {
    color: #181c25 !important;
  }

  .forex-box-item {
    width: 48%;
  }
}

@media only screen and (max-width: 767px) {
  .hp-num {
    flex-direction: column;
  }

  .cu-contact {
    flex-direction: column;
  }

  .cu-cntact-item {
    margin: 0px;
    width: 100%;
  }
}

@media only screen and (max-width: 600px) {
  .forex-box-item {
    width: 98%;
  }

  .cu-top {
    font-size: 18px;
  }
}