@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap");

:root {
  --navy: #071b36;
  --gold: #b89145;
  --accent: #1f5f67;
  --accent-dark: #17484e;
  --text: #555555;
  --soft: #f2eee9;
  --light: #f7f8fa;
  --white: #ffffff;
  --line: rgba(184, 145, 69, 0.28);
  --border: rgba(7, 27, 54, 0.1);
  --shadow: 0 26px 80px rgba(7, 27, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
}

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

a {
  color: inherit;
}

.container {
  width: min(1320px, calc(100% - 80px));
  margin: 0 auto;
}

/* TOP BAR */

.top-bar {
  height: 38px;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-bar a {
  margin-left: 22px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(7, 27, 54, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  color: var(--gold);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.logo span,
.logo small,
.footer-logo span,
.footer-logo small {
  display: inline;
  margin: 0;
  padding: 0;
  color: var(--gold);
  font-size: 34px;
  font-weight: 300;
  letter-spacing: 10px;
}

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

.main-nav>a,
.nav-item>a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 86px;
  text-decoration: none;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.nav-item {
  position: static;
}

.has-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-menu {
  position: absolute;
  left: 0;
  top: 86px;
  width: 100%;
  z-index: 90;
  display: grid;
  grid-template-columns: 0.8fr 1.7fr;
  gap: 32px;
  padding: 34px min(70px, 5vw);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(7, 27, 54, 0.08);
  border-bottom: 1px solid rgba(7, 27, 54, 0.08);
  box-shadow: 0 24px 70px rgba(7, 27, 54, 0.1);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: 0.24s ease;
}

.mega-title {
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
}

.mega-title h3 {
  max-width: 390px;
  margin: 0;
  color: var(--accent);
  font-size: 26px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid rgba(184, 145, 69, 0.22);
  border-top: 1px solid rgba(184, 145, 69, 0.22);
}

.mega-country {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  text-decoration: none;
  color: var(--navy);
  border-right: 1px solid rgba(184, 145, 69, 0.22);
  border-bottom: 1px solid rgba(184, 145, 69, 0.22);
  transition: 0.22s ease;
}

.mega-country:hover {
  background:
    radial-gradient(circle at center, rgba(184, 145, 69, 0.1), transparent 58%),
    #fbfaf7;
}

.mega-flag {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f6efe2);
  border: 1px solid rgba(184, 145, 69, 0.22);
  box-shadow: 0 10px 24px rgba(184, 145, 69, 0.12);
  font-size: 26px;
}

.mega-country strong {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--navy);
  border-radius: 12px;
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

/* HERO */

.hero {
  padding: 76px 0 70px;
  background:
    radial-gradient(circle at 15% 10%, rgba(184, 145, 69, 0.1), transparent 28%),
    linear-gradient(180deg, #f7f9fc, #ffffff);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(320px, 0.52fr);
  gap: 38px;
  align-items: center;
}

.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 34px;
  background: #dfe5ef;
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
}

.slide.active {
  opacity: 1;
}

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

.slider-dots {
  position: absolute;
  left: 34px;
  bottom: 28px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.dot {
  width: 36px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.dot.active {
  width: 60px;
  background: var(--gold);
}

.hero-side-card {
  padding: 38px;
  border-radius: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.side-label,
.section-label {
  display: inline-block;
  margin-bottom: 20px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(184, 145, 69, 0.16);
  color: #98733c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-side-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 800;
}

.hero-side-card ul {
  margin: 30px 0 32px;
  padding: 0;
  list-style: none;
}

.hero-side-card li {
  position: relative;
  padding: 16px 0 16px 30px;
  color: #4f5d73;
  font-size: 16px;
  line-height: 1.45;
  border-bottom: 1px solid rgba(7, 27, 54, 0.08);
  font-weight: 500;
}

.hero-side-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.full {
  width: 100%;
}

/* PROGRAM BANDS */

.program-band {
  position: relative;
  padding: 82px 0 90px;
  overflow: hidden;
}

.program-band.white {
  background:
    radial-gradient(circle at 90% 0%, rgba(184, 145, 69, 0.08), transparent 26%),
    #ffffff;
}

.program-band.soft {
  background:
    radial-gradient(circle at 10% 0%, rgba(31, 95, 103, 0.07), transparent 26%),
    var(--soft);
}

.program-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.program-head h2 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -1px;
}

.program-head p {
  max-width: 850px;
  margin: 0;
  color: #5a5a5a;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.65;
}

.program-arrows {
  display: flex;
  gap: 10px;
}

.program-arrows button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(7, 27, 54, 0.18);
  border-radius: 50%;
  background: #ffffff;
  color: var(--navy);
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(7, 27, 54, 0.06);
}

.program-arrows button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.country-card {
  position: relative;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid rgba(184, 145, 69, 0.22);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  box-shadow: 0 16px 42px rgba(7, 27, 54, 0.055);
  transition: 0.25s ease;
}

.country-card::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 0;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0.75;
}

.flag-badge {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #f6efe2);
  border: 1px solid rgba(184, 145, 69, 0.22);
  font-size: 33px;
  box-shadow: 0 12px 26px rgba(184, 145, 69, 0.14);
}

.country-card h3 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.18;
}

.country-card p {
  margin: 0;
  color: #5d5d5d;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.68;
}

.country-card a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 26px;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
}

/* APPLICATION PROCESS */

.application-process {
  padding: 100px 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(184, 145, 69, 0.1), transparent 28%),
    linear-gradient(180deg, #ffffff, #f7f8fa);
}

.process-head {
  max-width: 760px;
  margin-bottom: 46px;
}

.process-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
  font-weight: 800;
}

.process-head p {
  margin: 18px 0 0;
  color: #5d6470;
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}

.process-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 54px;
  align-items: start;
}

.process-image {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #e7eaee;
}

.process-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.accordion-list {
  display: grid;
  gap: 12px;
}

.accordion-item {
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(7, 27, 54, 0.08);
  box-shadow: 0 14px 34px rgba(7, 27, 54, 0.045);
}

.accordion-button {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 56px 1fr 34px;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.accordion-button span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.accordion-button em {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  border-radius: 50%;
  background: rgba(31, 95, 103, 0.08);
  color: var(--accent);
  font-style: normal;
  font-size: 22px;
  transition: 0.25s ease;
}

.accordion-content {
  display: none;
  padding: 0 22px 24px 96px;
}

.accordion-content p {
  margin: 0;
  color: #5f6875;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.75;
}

.accordion-item.active .accordion-content {
  display: block;
}

.accordion-item.active .accordion-button em {
  background: var(--accent);
  color: #ffffff;
  transform: rotate(45deg);
}

/* PARTNER SECTION */

.partner-section {
  padding: 100px 0;
  background: #f4f6f8;
  border-top: 1px solid rgba(7, 27, 54, 0.06);
}

.partner-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 78px;
  align-items: start;
}

.partner-copy h2 {
  margin: 0 0 32px;
  color: var(--navy);
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.partner-copy p {
  max-width: 680px;
  margin: 0 0 18px;
  color: #1f2933;
  font-size: 17px;
  line-height: 1.85;
  font-weight: 500;
}

.partner-copy strong {
  display: block;
  margin-top: 32px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
}

.partner-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.partner-form label {
  display: grid;
  gap: 8px;
  color: #1f2933;
  font-size: 15px;
  font-weight: 700;
}

.partner-form input {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(7, 27, 54, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: var(--navy);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 15px;
  outline: none;
}

.partner-form input:focus {
  border-color: var(--accent);
}

.consent-box {
  grid-template-columns: 24px 1fr !important;
  align-items: start;
  gap: 16px !important;
  padding: 24px;
  border: 1px solid rgba(7, 27, 54, 0.1);
  border-radius: 8px;
  background: #ffffff;
  font-size: 15px !important;
  line-height: 1.55;
}

.consent-box input {
  width: 22px;
  height: 22px;
  min-height: auto;
  margin-top: 2px;
  padding: 0;
}

.consent-box a {
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 4px;
}

.form-actions button {
  min-width: 150px;
  min-height: 56px;
  border-radius: 8px;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.clear-btn {
  border: 1px solid #ef5a55;
  background: #ef5a55;
  color: #ffffff;
}

.submit-btn {
  border: 2px solid var(--gold);
  background: #ffffff;
  color: var(--gold);
}

/* FOOTER */

.site-footer {
  padding: 46px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.76);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  margin: 0;
}

/* FLOATING TAB */

.floating-consult {
  position: fixed;
  right: 18px;
  top: 46%;
  z-index: 60;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  padding: 20px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}

/* RESPONSIVE */

@media (max-width: 1180px) {

  .hero-layout,
  .process-layout,
  .partner-grid {
    grid-template-columns: 1fr;
  }

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

  .mega-menu {
    grid-template-columns: 1fr;
  }

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

  .process-image img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 900px) {
  .top-bar {
    display: none;
  }

  .main-nav,
  .header-button {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .main-nav.is-open {
    position: absolute;
    top: 86px;
    left: 14px;
    right: 14px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open a {
    min-height: auto;
    padding: 15px 14px;
  }

  .mega-menu {
    display: none;
  }

  .hero-slider {
    aspect-ratio: 16 / 10;
  }

  .program-head {
    grid-template-columns: 1fr;
  }

  .floating-consult {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1320px);
  }

  .logo span,
  .logo small,
  .footer-logo span,
  .footer-logo small {
    font-size: 24px;
    letter-spacing: 5px;
  }

  .hero-slider {
    aspect-ratio: 4 / 5;
    border-radius: 24px;
  }

  .hero-side-card {
    padding: 24px;
  }

  .country-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .country-card {
    min-height: auto;
  }

  .accordion-button {
    grid-template-columns: 42px 1fr 30px;
    padding: 0 16px;
    gap: 12px;
    font-size: 14px;
  }

  .accordion-content {
    padding: 0 16px 22px 70px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions button {
    width: 100%;
  }

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