/* ============================================
   DESIGN SYSTEM — Trading Formula v4
   ============================================ */

:root {
  --c-navy:        #0B0D24;
  --c-gold:        #CCAF78;
  --c-gold-light:  #f5efe4;
  --c-bg:          #f0f2f5;
  --c-white:       #ffffff;
  --c-card:        #ffffff;
  --c-text:        #666666;
  --c-text-dark:   #555555;
  --c-text-muted:  #888888;
  --c-text-light:  #777777;
  --c-border:      #e4e6ea;
  --c-input-bg:    #f8f9fb;

  --font-body:     'Poppins', sans-serif;
  --font-heading:  'Plus Jakarta Sans', sans-serif;

  --fs-h1:         clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --fs-h2:         clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
  --fs-h3:         clamp(1rem, 0.85rem + 0.6vw, 1.375rem);
  --fs-body:       clamp(0.8125rem, 0.75rem + 0.2vw, 1.0625rem);
  --fs-body-lg:    clamp(0.875rem, 0.8rem + 0.25vw, 1.125rem);
  --fs-small:      clamp(0.6875rem, 0.65rem + 0.15vw, 0.875rem);
  --fs-label:      clamp(0.625rem, 0.6rem + 0.15vw, 0.8125rem);
  --fs-nav:        clamp(0.8125rem, 0.78rem + 0.1vw, 0.9375rem);
  --fs-stat:       clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);

  --radius-sm:     10px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-full:   40px;

  --page-px:       1rem;
  --section-gap:   clamp(0.8rem, 0.7rem + 0.15vw, 1rem);
  --card-px:       clamp(2rem, 1.5rem + 2.5vw, 4rem);
  --card-py:       clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  --grid-gap:      clamp(2rem, 1.5rem + 2.5vw, 4rem);
}


/* ============================================
   RESET & BASE
   ============================================ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--c-text);
  background-color: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea { font: inherit; border: none; outline: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}


/* ============================================
   LAYOUT
   ============================================ */

.section-wrap {
  margin: var(--section-gap) var(--page-px) 0;
}

.card {
  background: var(--c-card);
  border-radius: var(--radius-lg);
  padding: var(--card-py) var(--card-px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}


/* ============================================
   COMMON ELEMENTS
   ============================================ */

.section-label {
  display: block;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-gold);
  font-weight: 600;
  line-height: 1.4;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-navy);
  letter-spacing: -0.01em;
  margin-top: 8px;
  max-width: 20ch;
}

.section-text {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--c-text);
  margin-top: 16px;
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn--gold {
  font-size: var(--fs-nav);
  padding: 10px 28px;
  background-color: var(--c-gold);
  color: var(--c-navy);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.btn--gold:hover {
  background-color: #b89a68;
}

.btn--gold-lg {
  font-size: var(--fs-nav);
  padding: 14px 36px;
  background-color: var(--c-gold);
  color: var(--c-navy);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.btn--gold-lg:hover {
  background-color: #b89a68;
}

.btn--lang {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  color: var(--c-navy);
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  transition: border-color 0.2s, background-color 0.2s;
}

.btn--lang:hover {
  border-color: var(--c-gold);
  background-color: var(--c-gold-light);
}


/* ============================================
   HEADER
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--page-px);
}

.header__logo {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 44px;
  width: auto;
}

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

.header__link {
  font-size: var(--fs-nav);
  font-weight: 500;
  color: var(--c-text-dark);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s;
}

.header__link:hover {
  color: var(--c-navy);
}

/* Burger — 2 lines that morph into X */
.header__burger {
  display: none;
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 101;
}

.header__burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__burger span:nth-child(1) {
  top: 7px;
}

.header__burger span:nth-child(2) {
  top: 15px;
}

.header__burger.is-active span:nth-child(1) {
  top: 11px;
  transform: rotate(45deg);
}

.header__burger.is-active span:nth-child(2) {
  top: 11px;
  transform: rotate(-45deg);
}

/* Mobile menu — grid-rows expand */
.header__mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--c-white);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.header__mobile-menu.is-open {
  grid-template-rows: 1fr;
}

.header__mobile-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding: 0 var(--page-px);
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__mobile-menu.is-open .header__mobile-inner {
  padding: 24px var(--page-px) 32px;
}

.header__mobile-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--c-navy);
  font-family: var(--font-heading);
}

.header__mobile-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}


/* ============================================
   HERO
   ============================================ */

.hero {
  margin: var(--section-gap) var(--page-px) 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 84vh;
  background: var(--c-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.hero__text {
  padding: clamp(2.5rem, 2rem + 2.5vw, 5rem) var(--card-px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.15;
  color: var(--c-navy);
  letter-spacing: -0.01em;
  margin: 0;
}

.hero__subtitle {
  font-size: var(--fs-body-lg);
  line-height: 1.8;
  color: var(--c-text-light);
  margin-top: 16px;
  max-width: 520px;
}

.hero__cta {
  margin-top: 28px;
}

.hero__image {
  position: relative;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(11, 13, 36, 0.88);
  backdrop-filter: blur(8px);
}

.hero__stat {
  flex: 1;
  padding: clamp(0.75rem, 0.5rem + 0.75vw, 1.5rem) clamp(0.75rem, 0.5rem + 1vw, 1.75rem);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__stat + .hero__stat {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__stat-icon {
  width: clamp(1.75rem, 1.5rem + 0.75vw, 2.75rem);
  height: clamp(1.75rem, 1.5rem + 0.75vw, 2.75rem);
  border-radius: var(--radius-sm);
  background: rgba(204, 175, 120, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__stat-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__stat-number {
  font-size: var(--fs-stat);
  font-weight: 700;
  color: var(--c-white);
  line-height: 1;
  font-family: var(--font-heading);
}

.hero__stat-label {
  font-size: var(--fs-label);
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ============================================
   ABOUT
   ============================================ */

.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--grid-gap);
}

.about__image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 300px;
}

.about__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.about__info {
  
} 

.advantage {
  padding: clamp(1rem, 0.75rem + 0.75vw, 1.5rem);
  background: var(--c-input-bg);
  border-radius: var(--radius-md);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.advantage__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.advantage__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advantage__title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--c-navy);
  margin: 0;
  font-family: var(--font-heading);
}

.advantage__desc {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--c-text-muted);
  margin-top: 4px;
}

.advantages-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}


/* ============================================
   SERVICES
   ============================================ */

.services__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--grid-gap);
}

.services__block-heading {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--c-navy);
  margin-top: 20px;
  font-family: var(--font-heading);
}

.services__quote {
  margin-top: 24px;
  padding: 20px 24px;
  background: var(--c-gold-light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--c-gold);
}

.services__quote p {
  font-size: var(--fs-body);
  font-style: italic;
  color: var(--c-text-dark);
  margin: 0;
  line-height: 1.7;
}

.services__image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 300px;
}

.services__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ============================================
   PARTNERS
   ============================================ */

.partners .card {
  padding: var(--card-py) 0;
  overflow: hidden;
}

.partners__header {
  text-align: center;
  margin-bottom: 32px;
  padding: 0 var(--card-px);
}

.partners__header .section-title {
  margin-bottom: 8px;
  margin-left: auto;
  margin-right: auto;
}

.partners__subtitle {
  font-size: var(--fs-body);
  color: var(--c-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.marquee-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.marquee-track {
  overflow: hidden;
  width: 100%;
  min-height: 60px;
  position: relative;
}

.marquee-inner {
  display: flex;
  gap: 16px;
  width: max-content;
  transform: translate3d(0, 0, 0);
}

.partner-logo {
  padding: 16px 32px;
  background: var(--c-white);
  border-radius: var(--radius-sm);
  border: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 60px;
  flex-shrink: 0;
}

.partner-logo img {
  max-height: 36px;
  width: auto;
  object-fit: contain;
}

.partner-logo__name {
  font-size: 15px;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.06em;
  font-family: var(--font-heading);
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes scrollLeft {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes scrollRight {
  0%   { transform: translate3d(-50%, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.marquee-left {
  animation: scrollLeft 40s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.marquee-right {
  animation: scrollRight 40s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}



/* ============================================
   CONTACT
   ============================================ */

.contact__header {
  text-align: center;
  margin-bottom: 36px;
}

.contact__header .section-title {
  margin-bottom: 8px;
  margin-left: auto;
  margin-right: auto;
}

.contact__header-text {
  font-size: var(--fs-body);
  color: var(--c-text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.contact-channel {
  display: block;
  padding: clamp(1rem, 0.75rem + 0.75vw, 1.5rem);
  background: var(--c-input-bg);
  border-radius: var(--radius-md);
  text-align: center;
  transition: background-color 0.2s;
}

a.contact-channel:hover {
  background: var(--c-gold-light);
}

.contact-channel__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.contact-channel__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--c-gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-channel__label {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--c-navy);
  margin: 0 0 4px;
  font-family: var(--font-heading);
}

.contact-channel__value {
  font-size: var(--fs-nav);
  color: var(--c-text-muted);
  margin: 0;
}

.contact__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.contact__form h3,
.contact__info h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--c-navy);
  margin: 0 0 20px;
  font-family: var(--font-heading);
}

.contact__form-fields {
  display: grid;
  gap: 12px;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: max(var(--fs-body), 16px);
  font-family: inherit;
  background: var(--c-input-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--c-gold);
  box-shadow: 0 0 0 3px rgba(204, 175, 120, 0.15);
}

.form-input::placeholder {
  color: #aaa;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Validation state */
.form-input:user-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Turnstile widget */
.cf-turnstile {
  margin-top: 4px;
}

/* Form messages */
.form-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 500;
}

.form-message--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Submit button loading */
.btn--loading {
  opacity: 0.65;
  cursor: wait;
  pointer-events: none;
}

.contact__info-text {
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--c-text);
}

.contact__office-card {
  margin-top: 20px;
  padding: 24px;
  background: var(--c-gold-light);
  border-radius: var(--radius-md);
}

.contact__office-name {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--c-navy);
  margin: 0 0 4px;
}

.contact__office-address {
  font-size: var(--fs-nav);
  color: var(--c-text-muted);
  margin: 0;
}


/* ============================================
   FOOTER
   ============================================ */

.footer {
  margin: var(--page-px);
  background: var(--c-navy);
  color: rgba(255, 255, 255, 0.5);
  padding: 32px var(--card-px);
  border-radius: var(--radius-lg);
  font-size: var(--fs-nav);
}

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

.footer__logo img {
  height: 40px;
  width: auto;
}

.footer__copyright {
  margin: 0;
  font-family: var(--font-heading);
}



/* ============================================
   RESPONSIVE — Large screens (≥ 1440px)
   ============================================ */

@media (min-width: 1440px) {
  :root {
    --page-px:      2rem;
    --radius-lg:    20px;
  }
}


/* ============================================
   RESPONSIVE — Extra-large screens (≥ 1920px)
   ============================================ */

@media (min-width: 1920px) {
  :root {
    --page-px:      3rem;
    --radius-lg:    24px;
    --fs-h1:        clamp(2.75rem, 2.25rem + 0.75vw, 3.5rem);
    --fs-h2:        clamp(2rem, 1.75rem + 0.5vw, 2.5rem);
    --fs-h3:        clamp(1.125rem, 1rem + 0.25vw, 1.375rem);
    --fs-body:      clamp(0.9375rem, 0.9rem + 0.1vw, 1.0625rem);
    --fs-body-lg:   clamp(1rem, 0.95rem + 0.1vw, 1.125rem);
    --fs-stat:      clamp(2rem, 1.75rem + 0.5vw, 2.5rem);
  }
}


/* ============================================
   RESPONSIVE — Ultra-wide (≥ 2560px)
   ============================================ */

@media (min-width: 2560px) {
  :root {
    --page-px:      12rem;
    --fs-h1:        clamp(3rem, 2.5rem + 0.75vw, 3.75rem);
    --fs-h2:        clamp(2.25rem, 2rem + 0.5vw, 2.75rem);
    --fs-h3:        clamp(1.25rem, 1.1rem + 0.25vw, 1.5rem);
    --fs-body:      clamp(1rem, 0.95rem + 0.1vw, 1.125rem);
    --fs-body-lg:   clamp(1.0625rem, 1rem + 0.1vw, 1.1875rem);
    --fs-small:     clamp(0.8125rem, 0.75rem + 0.1vw, 0.9375rem);
    --fs-label:     clamp(0.6875rem, 0.65rem + 0.1vw, 0.8125rem);
    --fs-nav:       clamp(0.875rem, 0.825rem + 0.1vw, 1rem);
    --fs-stat:      clamp(2.25rem, 2rem + 0.5vw, 2.75rem);
  }
}


/* ============================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================ */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__text {
    padding: 40px 32px;
  }

  .hero__image {
    min-height: 320px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .advantages-list {
    grid-template-columns: 1fr;
  }


  .services__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-channels {
    grid-template-columns: 1fr;
  }

  .contact__body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}


/* ============================================
   RESPONSIVE — Tablet portrait (≤ 768px)
   ============================================ */

@media (max-width: 768px) {
  :root {
    --page-px: 16px;
  }

  .header__right {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .header__logo img {
    height: 40px;
  }

  .hero__text {
    padding: 28px 20px;
  }

  .hero__image {
    min-height: 300px;
  }

  .hero__stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__stat {
    padding: 12px 8px;
    gap: 8px;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__stat + .hero__stat {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
  }

  .hero__stat-icon {
    width: 28px;
    height: 28px;
  }

  .hero__stat-icon svg {
    width: 14px;
    height: 14px;
  }

  .hero__stat-label {
    font-size: 9px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}


/* ============================================
   RESPONSIVE — Mobile (≤ 576px)
   ============================================ */

@media (max-width: 576px) {
  .card {
    padding: 32px 20px;
  }

  .advantage {
    flex-direction: column;
    gap: 12px;
  }

  .partner-logo {
    min-width: 110px;
    height: 50px;
    padding: 10px 16px;
  }

  .partner-logo__name {
    font-size: 12px;
  }

  .marquee-track {
    min-height: 50px;
  }

  .marquee-container {
    gap: 12px;
  }
}
