/**
 * Black section backgrounds → dark blue (#0f2744)
 */
.background[data-background="black"],
.background[data-background="black"]::before,
.background[data-background="black"]::after,
section .background[data-background="black"] {
  background-color: #0f2744 !important;
  background: #0f2744 !important;
}

.section-main .background,
.main-page .background[data-background="black"] {
  background-color: #0f2744 !important;
  background: #0f2744 !important;
}

/**
 * FinUp logos — header variant toggles via .finup-header-dark-logo (set by finup-logo-sync.js).
 */
.finup-logo--header,
.finup-logo--footer,
.finup-logo--nav {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.finup-logo--header .finup-logo__img,
.finup-logo--footer .finup-logo__img,
.finup-logo--nav .finup-logo__img {
  height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.finup-logo--footer .finup-logo__img {
  height: 28px;
  max-width: 120px;
}

.finup-logo__preloader {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Light logo on dark hero; dark logo on white bar / inner pages */
.finup-logo--header .finup-logo__img--dark {
  display: none;
}

.finup-logo--header .finup-logo__img--light {
  display: block;
}

.header.finup-header-dark-logo .finup-logo--header .finup-logo__img--light {
  display: none;
}

.header.finup-header-dark-logo .finup-logo--header .finup-logo__img--dark {
  display: block;
}

/**
 * Inner pages only: solid dark blue header + light logo + white nav.
 * Do not target .header[data-color="black"] on the home index: the theme uses a transparent bar over the
 * hero, then .header.is-fixed with :before { background: #fff } and text/logo swap (see finup-logo-sync.js).
 * A blanket [data-color=black] rule was forcing the same blue on home and blocking that behavior.
 */
body.page:not(.home) .header {
  background-color: #0f2744 !important;
}

body.page:not(.home) .header .finup-logo--header .finup-logo__img--light {
  display: block !important;
}

body.page:not(.home) .header .finup-logo--header .finup-logo__img--dark {
  display: none !important;
}

body.page:not(.home) .header .menu-small a,
body.page:not(.home) .header .menu-small a:hover,
body.page:not(.home) .header .menu-lang a {
  color: #fff !important;
}

/**
 * Fixed header sits above the document flow; without offset, first sections (contacts hero, FAQ, etc.) sit under the bar.
 * Applies to all non-home templates that use body.page (contacts, faq, articles, courses, services, video, legal, …).
 */
body.page:not(.home) .wrapper > #content,
body.page:not(.home) .wrapper > .content {
  padding-top: 5.25rem;
}

@media (min-width: 1024px) {
  body.page:not(.home) .wrapper > #content,
  body.page:not(.home) .wrapper > .content {
    padding-top: 5.5rem;
  }
}

/* Anchor jumps (#form, #content, …) account for fixed header */
html:has(body.page:not(.home)) {
  scroll-padding-top: 6rem;
}

/**
 * Home hero: .menu-small a { color: inherit }. Theme only sets dark nav text on .header.is-fixed[data-color=white].
 * After colorChange() sets data-color=white but before scroll adds .is-fixed, links still inherit body text (dark) — unreadable on video.
 * Force light chrome until the bar becomes fixed; then theme rules apply.
 */
body.home .header:not(.is-fixed) {
  color: #fff !important;
  fill: #fff !important;
}

body.home .header:not(.is-fixed) .menu-small a,
body.home .header:not(.is-fixed) .menu-small a:hover,
body.home .header:not(.is-fixed) .menu-lang a,
body.home .header:not(.is-fixed) .menu-link {
  color: #fff !important;
}

body.home .header:not(.is-fixed) .menu-small a:hover {
  color: rgba(255, 255, 255, 0.82) !important;
}

body.home .header:not(.is-fixed) .burger__button,
body.home .header:not(.is-fixed) .burger__text {
  color: #fff !important;
}

body.home .header:not(.is-fixed) .svg-sprite-icon {
  fill: currentColor !important;
}

/* Mobile: prevent long lines in product intro from overflowing */
.section#courses p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.finup-inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/**
 * Theme CSS keeps .wrapper at opacity:0 until JS adds .is-load (see autoptimize bundle: preloader()).
 * That runs after a large deferred script, so First Contentful Paint was delayed ~10s on static hosting.
 * Override globally so content paints as soon as CSS loads.
 */
body .wrapper {
  opacity: 1 !important;
  visibility: visible !important;
}

body .preloader {
  display: none !important;
  pointer-events: none !important;
}

/**
 * Fix: swiper nav buttons stay "filled" after tap on mobile.
 * On touch, :hover and :focus persist until next tap. Disable them on touch devices.
 * :active still works for brief visual feedback during press.
 */
@media (hover: none) {

  .swiper-nav__button.animation-scale:hover:after,
  .swiper-nav__button.animation-scale:focus:after {
    opacity: 0 !important;
    transform: scale(0) !important;
    -webkit-transform: scale(0) !important;
  }

  /* Burger button: prevent white/black fill from sticking after tap */
  .burger__button.animation-scale:hover:after,
  .burger__button.animation-scale:focus:after {
    opacity: 0 !important;
    transform: scale(0) !important;
    -webkit-transform: scale(0) !important;
  }
}

/**
 * Full-width photo hero (replaces background video on /ru/).
 */
body.home:has(.section-main--hero-photo) {
  --hero-header-offset: 5.75rem;
}

body.home:has(.section-main--hero-photo) .header:not(.is-fixed):before {
  background-color: #0f2744 !important;
}

body.home:has(.section-main--hero-photo) .header .grid-container {
  padding-left: clamp(1.25rem, 4vw, 3.5rem);
  padding-right: clamp(1.25rem, 4vw, 3.5rem);
}

.section-main--hero-photo.main-page .section__content {
  min-height: auto !important;
  height: auto !important;
  padding-top: var(--hero-header-offset, 5.75rem);
  box-sizing: border-box;
}

.section-main--hero-photo .section-main__video {
  height: calc(100vh - var(--hero-header-offset, 5.75rem));
  min-height: 22rem;
}

.section-main--hero-photo .section-main__content {
  top: var(--hero-header-offset, 5.75rem);
}

.section-main--hero-photo .section-main__video--photo:after {
  opacity: 0.2;
}

.section-main--hero-photo .section-main__video--photo {
  overflow: hidden;
}

.section-main--hero-photo .section-main__hero-photo {
  width: 112%;
  max-width: none;
  height: 108%;
  object-fit: cover;
  object-position: 74% 26%;
  margin-left: -5%;
}

.section-main--hero-photo .section-main__content--left {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box;
  padding: 0 clamp(1.5rem, 5vw, 4rem) 0 clamp(1.5rem, 6vw, 4.5rem) !important;
}

.section-main__hero-copy {
  position: relative;
  left: 0;
  z-index: 2;
  width: min(24rem, calc(100% - 1rem));
  max-width: 32vw;
  margin-left: clamp(0.5rem, 2.5vw, 1.5rem);
  margin-right: clamp(1rem, 8vw, 6rem);
  text-align: left;
}

.section-main__content--left .section-main__title {
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: none;
}

.section-main__content--left .section-main__subtitle {
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  line-height: 1.55;
  opacity: 0.92;
  max-width: none;
}

.section-main--hero-photo .section__content {
  position: relative;
}

.section-main__hero-about {
  position: absolute;
  bottom: clamp(1.25rem, 3.5vh, 2.75rem);
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
}

.section-main__about-link {
  pointer-events: auto;
  margin: 0 !important;
  padding: 0.35rem 0.15rem !important;
  font-size: 0.875rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.section-main__about-link .button-underline {
  display: block !important;
}

.section-main__about-link .button-underline:before,
.section-main__about-link .button-underline:after {
  background-color: #fff !important;
}

.section-main__about-link:hover,
.section-main__about-link:focus {
  transform: none !important;
  box-shadow: none !important;
  color: #fff !important;
  background: transparent !important;
}

@media (min-width: 768px) {
  body.home:has(.section-main--hero-photo) {
    --hero-header-offset: 6.5rem;
  }

  .section-main--hero-photo .section-main__hero-photo {
    width: 118%;
    height: 112%;
    margin-left: -8%;
    object-position: 70% 24%;
  }

  .section-main--hero-photo .section-main__content--left {
    padding-right: clamp(2rem, 34vw, 38%) !important;
    padding-left: clamp(2rem, 8vw, 6rem) !important;
  }

  .section-main__hero-copy {
    width: min(26rem, calc(100% - 1rem));
    max-width: 30vw;
    margin-left: clamp(1rem, 4vw, 3rem);
    margin-right: clamp(1.5rem, 10vw, 8rem);
  }
}

@media (min-width: 1024px) {
  .section-main--hero-photo .section-main__hero-photo {
    width: 122%;
    height: 116%;
    margin-left: -10%;
    object-position: 66% 22%;
  }

  .section-main--hero-photo .section-main__content--left {
    padding-right: clamp(2.5rem, 32vw, 36%) !important;
    padding-left: clamp(2.5rem, 10vw, 7.5rem) !important;
  }

  .section-main__hero-copy {
    width: min(28rem, calc(100% - 1rem));
    max-width: 28vw;
    margin-left: clamp(1.5rem, 5vw, 4rem);
    margin-right: clamp(2rem, 8vw, 6rem);
  }
}

@media (max-width: 767px) {
  .section-main--hero-photo .section-main__content--left {
    align-items: flex-end !important;
    padding: 0 1rem 2rem 1rem !important;
  }

  .section-main__hero-copy {
    width: min(18rem, calc(100% - 0.5rem));
    max-width: none;
    margin-right: clamp(1rem, 8vw, 3rem);
    margin-bottom: 0.5rem;
  }

  .section-main--hero-photo .section-main__hero-photo {
    object-position: center top;
  }
}

/**
 * Portrait hero (replaces background video).
 */
.section-main--portrait.main-page .section__content {
  min-height: auto !important;
  height: auto !important;
}

.section-main--portrait .section-main__content {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  display: block;
  z-index: 3;
  width: 100%;
  padding: 5.75rem 0 3rem;
}

.section-main__hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.section-main__portrait-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 18%;
  aspect-ratio: 16 / 11;
  max-height: 52vh;
}

.section-main__bio {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: left;
  opacity: 0.9;
}

.section-main__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.section-main__title {
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  line-height: 1.2;
  max-width: 22rem;
}

.section-main__subtitle {
  margin: 0;
  font-size: clamp(1rem, 2.8vw, 1.2rem);
  line-height: 1.55;
  max-width: 24rem;
  opacity: 0.92;
}

@media (min-width: 768px) {
  .section-main--portrait .section-main__content {
    padding: 6.5rem 0 4rem;
  }

  .section-main__hero-grid {
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 3rem;
    row-gap: 1.5rem;
    align-items: center;
  }

  .section-main__portrait-img-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .section-main__portrait-img {
    aspect-ratio: 4 / 3;
    max-height: none;
    object-position: left center;
  }

  .section-main__bio {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .section-main__copy {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    align-items: flex-start;
    text-align: left;
    padding-left: 0.5rem;
  }

  .section-main__title,
  .section-main__subtitle {
    max-width: 28rem;
  }
}

@media (min-width: 1024px) {
  .section-main--portrait.main-page .section__content {
    min-height: 50rem;
  }

  .section-main__hero-grid {
    column-gap: 4rem;
  }

  .section-main__title {
    font-size: 2.5rem;
    max-width: 32rem;
  }

  .section-main__subtitle {
    font-size: 1.25rem;
    max-width: 30rem;
  }
}

/**
 * Hero: AOS hides these until AOS.init() runs (late, inside deferred bundle). Text then appeared last.
 * Home index only — keep scroll animations elsewhere.
 */
body.home .main-page.section-main .section-main__content [data-aos] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

/**
 * Wealth calculator: same AOS behavior — hidden until AOS.init() in deferred autoptimize bundle.
 */
body.home #wealth-formula [data-aos],
body.home #wealth-formula [data-aos-delay] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}

/* Products section (“Mahsulotlarimiz”) intro copy: make larger */
body.home #courses .grid-x.grid-margin-x.mb-5 > .cell p {
  font-size: 1.1rem;
  line-height: 1.65;
}

@media (min-width: 1024px) {
  body.home #courses .grid-x.grid-margin-x.mb-5 > .cell p {
    font-size: 1.2rem;
  }
}

/* Reviews section: reduce vertical whitespace */
body.home #reviews.section--padding-top {
  padding-top: 2.25rem !important;
}

body.home #reviews.section--padding-bottom {
  padding-bottom: 2.25rem !important;
}

body.home #reviews h2 {
  margin-bottom: 1.25rem;
}

body.home #reviews .portfolio-card {
  margin-bottom: 1rem;
}

/* Home: prevent horizontal bleed from hero/swiper on small screens */
body.home {
  overflow-x: clip;
}

body.home .wrapper,
body.home .content,
body.home .main {
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 1023px) {
  .grid-margin--left {
    margin-left: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body.home .section .grid-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  body.home #reviews h2 {
    text-align: center;
  }

  body.home #reviews .portfolio-card {
    text-align: center;
  }

  body.home #reviews .portfolio-card p,
  body.home #reviews .portfolio-card footer {
    text-align: center;
  }

  body.home #slides .swiper-area {
    overflow: hidden;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
  }

  body.home #slides .swiper-main__content {
    min-height: auto !important;
    height: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    margin-bottom: 2rem !important;
    padding-bottom: 1rem;
    box-sizing: border-box;
  }

  body.home #slides .swiper-main__image {
    position: relative !important;
    width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    height: auto !important;
    max-height: 14rem;
    margin-bottom: 1.25rem !important;
  }

  body.home #slides .swiper-main__image img {
    width: 100%;
    height: auto;
    max-height: 14rem;
    object-fit: contain;
    object-position: center;
  }

  body.home #slides .swiper-main__content > .grid-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.home #slides .swiper-main__content .grid-x.grid-padding-x {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body.home #slides .swiper-main__content .grid-padding-x > .cell {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.home #slides .text-block {
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body.home #slides .text-block .flex-display {
    justify-content: center !important;
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  body.home #slides .text-block ul {
    display: inline-block;
    text-align: left;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    padding-left: 0 !important;
  }

  body.home #slides .swiper-main__content .button {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Video section (home): reduce extra vertical whitespace */
body.home .section:has(.title-area > h2[data-color="black"]) .title-area > h2[data-color="black"] + p.text-grey {
  margin-top: 0.35rem !important;
}

body.home .section:has(.title-area > h2[data-color="black"]) .title-area {
  padding-bottom: 0.75rem;
}

body.home .section:has(.title-area > h2[data-color="black"]) h3[data-color="black"] {
  margin: 1.25rem 0 0.75rem !important;
}

/* Bottom (home): contact form + footer — reduce empty space */
body.home #form .section__content.section--padding-top {
  padding-top: 2.25rem !important;
}

body.home #form .section__content.section--padding-bottom {
  padding-bottom: 2.25rem !important;
}

/* Fallback: ensure contact section background renders even if lazyload JS doesn't */
body.home #form .section__content[data-bg] {
  background-image: url("/wp-content/themes/template/static/images/content/contact-form-bg.jpg") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

@media (min-width: 1024px) {
  body.home #form .section__content.section--padding-top {
    padding-top: 2.75rem !important;
  }

  body.home #form .section__content.section--padding-bottom {
    padding-bottom: 2.75rem !important;
  }
}

body.home footer.footer {
  padding-top: 2.25rem !important;
  padding-bottom: 1.75rem !important;
}

body.home footer.footer .mb-6 {
  margin-bottom: 1.75rem !important;
}

body.home footer.footer .footer-lower {
  margin-top: 0.75rem !important;
}

/**
 * Course card image sizing: increase height to avoid cutting off top
 */
.course-card__image {
  background-position: top center !important;
  background-size: 100% !important;
}

@media screen and (max-width: 639px) {
  .course-card__image {
    height: 20rem !important;
  }
}

@media screen and (min-width: 640px) and (max-width: 1023px) {
  .course-card__image {
    height: 24rem !important;
  }
}

@media screen and (min-width: 1024px) {
  .course-card__image {
    height: 36rem !important;
  }
}

/* Custom CSS to move arrows to sides of videos without breaking layout */
.grid-margin--left>.cell {
  position: relative;
  /* Do NOT use overflow: visible on swiper container */
}

/* Add padding so the videos start after the button and end before the button */
.swiper-list.swiper {
  width: calc(100% - 120px) !important;
  margin: 0 auto !important;
}

.swiper-nav {
  position: static !important;
}

.grid-margin--left>.cell .swiper-nav__button {
  position: absolute !important;
  top: 121px !important;
  transform: translateY(-50%) !important;
  z-index: 50 !important;
  margin: 0 !important;
}

.grid-margin--left>.cell .swiper-nav__button--prev {
  left: 0px !important;
}

.grid-margin--left>.cell .swiper-nav__button--next {
  right: 0px !important;
}

@media (max-width: 768px) {
  .grid-margin--left>.cell .swiper-nav__button {
    top: 35% !important;
  }

  .swiper-list.swiper {
    width: calc(100% - 40px) !important;
    margin: 0 auto !important;
  }

  .grid-margin--left>.cell .swiper-nav__button--prev {
    left: 0px !important;
  }

  .grid-margin--left>.cell .swiper-nav__button--next {
    right: 0px !important;
  }
}
/* Remove default focus outline from all form inputs inside modals */
.wpcf7-form-control:focus, 
.form-item input:focus, 
.form-item textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

/**
 * Inner pages (contacts, etc.): match hero width to body and add vertical rhythm.
 */
body.page .section-first .section__content {
  padding-top: 2.5rem;
  padding-bottom: 2rem;
}

.finup-page-about .section__content {
  padding-top: 2.5rem;
}

.finup-page-about__heading {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.25;
}

.finup-page-about__name {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.finup-page-about__role {
  font-size: 1.05rem;
  color: #5c5c5c;
  margin-bottom: 1.25rem;
}

.finup-page-about__body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #333;
}

.finup-page-about__body p {
  margin-bottom: 1rem;
}

.finup-page-about__body p:last-child {
  margin-bottom: 0;
}

.finup-page-about__highlight {
  font-weight: 600;
}

.finup-page-about__list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: 0 0 1rem;
}

.finup-page-about__list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.finup-about-career .section__content {
  padding-top: 0;
  padding-bottom: 3rem;
}

.finup-about-career__title {
  margin: 0 0 2rem;
  text-align: center;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 700;
  color: #0f2744;
}

.finup-about-timeline {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
  padding-left: 1.75rem;
}

.finup-about-timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: #c5d5ea;
}

.finup-about-timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
  margin-bottom: 1.25rem;
}

.finup-about-timeline__item:last-child {
  margin-bottom: 0;
}

.finup-about-timeline__marker {
  position: relative;
  z-index: 1;
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 1.35rem;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px #fff;
}

.finup-about-timeline__card {
  background: #fff;
  border: 1px solid #e5edf7;
  border-radius: 1rem;
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.06);
}

.finup-about-timeline__item--featured .finup-about-timeline__card {
  background: linear-gradient(135deg, #4a8fd4, #2563eb);
  border-color: transparent;
  color: #fff;
}

.finup-about-timeline__year {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  line-height: 1.2;
  color: #6b7280;
}

.finup-about-timeline__item--featured .finup-about-timeline__year {
  color: rgba(255, 255, 255, 0.82);
}

.finup-about-timeline__heading {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  color: #2563eb;
}

.finup-about-timeline__item--featured .finup-about-timeline__heading {
  color: #fff;
}

.finup-about-timeline__card p:last-child {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #374151;
}

.finup-about-timeline__item--featured .finup-about-timeline__card p:last-child {
  color: rgba(255, 255, 255, 0.94);
}

@media (min-width: 1024px) {
  .finup-page-about__heading {
    padding-right: 1rem;
  }
}

/* Hero titles: avoid top clipping on inner pages */
body.page .section-first h1.finup-page-hero-title {
  padding-top: 0.2em;
  line-height: 1.2;
  margin-top: 0;
}

.finup-about-page__hero {
  position: relative;
  width: 100%;
  background: #0f2744;
}

.finup-about-page__hero-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 42rem);
  object-fit: cover;
  object-position: center top;
}

.finup-about-page__hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

.finup-about-page__hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.5rem 1.25rem 2rem;
}

.finup-about-page__hero-name {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.15;
  color: #fff;
  font-weight: 700;
}

.finup-about-page__hero-role {
  margin: 0;
  font-size: clamp(1rem, 3.5vw, 1.25rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  font-style: italic;
}

@media (min-width: 768px) {
  .finup-about-page__hero-caption {
    padding: 2rem 2.5rem 2.5rem;
  }
}

.finup-articles-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/**
 * Fancybox / course modals: match textarea to underline inputs (not bordered box).
 */
.fancybox-content .form-item textarea.wpcf7-textarea,
.fancybox-content textarea.wpcf7-textarea {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid rgba(15, 39, 68, 0.28);
  border-radius: 0;
  background: transparent;
  padding: 0.65rem 0 0.45rem;
  margin-top: 0.25rem;
  font-size: 1rem;
  line-height: 1.45;
  min-height: 7rem;
  resize: vertical;
  color: #0f2744;
}

.fancybox-content .form-item textarea.wpcf7-textarea:focus,
.fancybox-content textarea.wpcf7-textarea:focus {
  border-bottom-color: #0f2744;
  outline: none;
  box-shadow: none;
}

.fancybox-content .form-item {
  margin-bottom: 0.5rem;
}

/**
 * Home hero primary CTA: render as a large filled button (not underlined link).
 */
.hero-cta-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.05rem 2.2rem !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #0f2744 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  line-height: 1.1 !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.75) !important;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.hero-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28) !important;
}

.hero-cta-button:active {
  transform: translateY(0);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2) !important;
}

.hero-cta-button .button-underline {
  display: none !important;
}

@media (max-width: 480px) {
  .hero-cta-button {
    width: 100%;
    max-width: 22rem;
    padding: 1.05rem 1.25rem !important;
    font-size: 1rem !important;
  }
}

/**
 * Pul o'yini product landing page
 */
body.finup-pul-oyini-page .wrapper > .content {
  padding-top: 0;
}

.finup-pul-oyini-page__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent !important;
}

.finup-pul-oyini-page__header:before {
  display: none !important;
}

.finup-pul-oyini-page__header .menu-small a,
.finup-pul-oyini-page__header .menu-lang a,
.finup-pul-oyini-page__header .burger__button {
  color: #0f2744 !important;
}

.finup-pul-oyini-page__header .finup-logo--header .finup-logo__img--light {
  display: none;
}

.finup-pul-oyini-page__header .finup-logo--header .finup-logo__img--dark {
  display: block;
}

.finup-pul-oyini-hero {
  background: linear-gradient(180deg, #9fd4f5 0%, #4a8fd4 38%, #1a3f7a 100%);
  padding: 5.5rem 1rem 2.5rem;
  min-height: min(100vh, 52rem);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.finup-pul-oyini-hero__inner {
  width: min(24rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.finup-pul-oyini-hero__title {
  margin: 0 0 0.35rem;
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #0a0a0a;
  text-transform: uppercase;
}

.finup-pul-oyini-hero__subtitle {
  margin: 0 0 1.25rem;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  line-height: 1.3;
  font-weight: 700;
  color: #fff;
}

.finup-pul-oyini-hero__img {
  display: block;
  width: min(17rem, 78vw);
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 0.35rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.finup-pul-oyini-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.finup-pul-oyini-hero__actions--footer {
  margin-top: 1.75rem;
}

.finup-pul-oyini-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.finup-pul-oyini-btn:hover {
  transform: translateY(-1px);
}

.finup-pul-oyini-btn--uzum {
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.35);
}

.finup-pul-oyini-btn--yandex {
  background: #ffcc00;
  color: #111;
  box-shadow: 0 10px 24px rgba(255, 204, 0, 0.35);
}

.finup-pul-oyini-btn--about {
  background: #e63946;
  color: #fff;
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.35);
}

.finup-pul-oyini-section {
  padding: 2.75rem 1rem;
  background: #fff;
}

.finup-pul-oyini-section__inner {
  width: min(40rem, 100%);
  margin: 0 auto;
  text-align: center;
}

.finup-pul-oyini-section__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
  color: #0f2744;
}

.finup-pul-oyini-section__title--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.finup-pul-oyini-icon {
  font-size: 1.35rem;
  line-height: 1;
  color: #2563eb;
}

.finup-pul-oyini-lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.finup-pul-oyini-section p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #1f2937;
}

.finup-pul-oyini-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  display: inline-block;
  max-width: 100%;
}

.finup-pul-oyini-list li {
  position: relative;
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #1f2937;
}

.finup-pul-oyini-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #2563eb;
  font-weight: 700;
}

.finup-pul-oyini-rules {
  padding: 2.5rem 1rem 3rem;
  background: #f3f6fb;
}

.finup-pul-oyini-rules__inner {
  width: min(56rem, 100%);
  margin: 0 auto;
}

.finup-pul-oyini-rules__title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: clamp(1.5rem, 5vw, 2rem);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4a8fd4, #1a3f7a);
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1.25rem 1rem;
}

.finup-pul-oyini-rules__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: linear-gradient(180deg, #4a8fd4 0%, #1a3f7a 100%);
  border-radius: 0 0 1.25rem 1.25rem;
  padding: 0 1rem 1.25rem;
}

.finup-pul-oyini-rule-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.15rem;
  text-align: left;
  box-shadow: 0 8px 24px rgba(15, 39, 68, 0.08);
}

.finup-pul-oyini-rule-card__num {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 800;
  color: #2563eb;
}

.finup-pul-oyini-rule-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #0f2744;
}

.finup-pul-oyini-rule-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
}

.finup-pul-oyini-video__embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0f2744;
  box-shadow: 0 12px 32px rgba(15, 39, 68, 0.12);
}

.finup-pul-oyini-video__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 768px) {
  .finup-pul-oyini-hero {
    padding: 6.5rem 1.5rem 3rem;
  }

  .finup-pul-oyini-hero__inner {
    width: min(28rem, 100%);
  }

  .finup-pul-oyini-hero__img {
    width: min(20rem, 70vw);
  }

  .finup-pul-oyini-section {
    padding: 3.5rem 1.5rem;
  }

  .finup-pul-oyini-rules__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    padding: 0 1.25rem 1.5rem;
  }

  .finup-pul-oyini-hero__actions--footer {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .finup-pul-oyini-hero__actions--footer .finup-pul-oyini-btn {
    width: auto;
    min-width: 14rem;
  }
}
