:root {
  --bg: #f7f3ee;
  --white: #ffffff;
  --surface: #fcfaf7;
  --text: #16345d;
  --text-soft: #6b7890;
  --border: #e5d8c7;
  --gold: #b88a4a;
  --gold-dark: #996f37;
  --navy: #0f2747;
  --shadow: 0 12px 35px rgba(22, 52, 93, 0.08);
  --container: 1240px;
  --error: #c0392b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  margin-top: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 238, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5d8c7;
}

.header-inner {
  min-height: 88px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #caa162, #9b6e33);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 22px rgba(184, 138, 74, 0.22);
}

.brand-icon svg {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.05;
  color: #16345d;
  white-space: nowrap;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.1;
  color: #6b7890;
  white-space: nowrap;
}

.main-nav {
  min-width: 0;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav li {
  flex: 0 0 auto;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #6b7890;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #16345d;
}

.header-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 46px;
  padding: 0 20px;
  border-radius: 16px;
  background: #b88a4a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.2s ease;
}

.header-btn:hover {
  background: #996f37;
}

.header-btn-secondary {
  background: #ffffff;
  color: #16345d;
  border: 1px solid #e5d8c7;
}

.header-btn-secondary:hover {
  background: #fffaf5;
}

/* GENERIC BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--gold);
  color: #fff;
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-secondary {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  background: #fffaf5;
}

/* MAIN PAGE */
.hero {
  padding: 48px 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: stretch;
}

.hero-text,
.hero-image {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-text {
  padding: 42px 38px;
}

.eyebrow {
  display: inline-block;
  background: #fff6ea;
  border: 1px solid #ecdabe;
  color: var(--gold-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 720px;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
}

.stat-number {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-label {
  color: var(--text-soft);
  font-size: 14px;
}

.hero-image {
  min-height: 560px;
  position: relative;
  overflow: hidden;
}

.hero-image-main {
  background:
    linear-gradient(rgba(255,255,255,0.08), rgba(255,255,255,0.08)),
    url("https://images.unsplash.com/photo-1517457373958-b7bdd4587205?auto=format&fit=crop&w=1400&q=80") center/cover no-repeat;
}

.hero-badge {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  color: var(--text);
}

.section {
  padding: 28px 0;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(32px, 3.5vw, 48px);
  margin-bottom: 10px;
}

.section-heading p {
  max-width: 760px;
  color: var(--text-soft);
  font-size: 17px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
}

.icon-card,
.feature-card,
.criteria-card,
.report-card {
  text-align: center;
}

.icon-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: #fff6ea;
  border: 1px solid #ecdabe;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.svg-icon {
  color: var(--gold-dark);
}

.svg-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 0;
}

/* PROGRAM DESCRIPTION BLOCK */
.program-description-block {
  margin-top: 34px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.program-description-text {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
}

.program-description-title {
  font-size: 34px;
  margin-bottom: 18px;
}

.program-steps-list {
  display: grid;
  gap: 14px;
}

.program-step-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid #f0e4d3;
}

.program-step-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.program-step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff6ea;
  border: 1px solid #ecdabe;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

.program-step-text {
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px 18px;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.step-card p {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
}

.center-button {
  text-align: center;
  margin-top: 26px;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.story-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.story-image {
  height: 240px;
  background-size: cover;
  background-position: center;
}

.story-content {
  padding: 22px;
}

.story-content h3 {
  font-size: 26px;
  margin-bottom: 10px;
}

.story-content p {
  color: var(--text-soft);
  font-size: 15px;
  margin-bottom: 14px;
}

.story-city {
  display: inline-block;
  background: #fff6ea;
  color: var(--gold-dark);
  border: 1px solid #ecdabe;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* APPLICATION PAGE */
.application-page {
  padding: 26px 0 40px;
}

.breadcrumbs {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.breadcrumbs span {
  margin: 0 8px;
}

.application-header h1 {
  font-size: clamp(38px, 4.5vw, 62px);
  margin-bottom: 10px;
}

.application-header p {
  color: var(--text-soft);
  font-size: 18px;
  max-width: 860px;
}

.application-top-note {
  margin: 24px 0 22px;
  background: #fff8ee;
  border: 1px solid #ead7ba;
  border-radius: 18px;
  padding: 16px 18px;
  color: var(--text);
}

.application-layout {
  display: grid;
  grid-template-columns: 1.55fr 0.75fr;
  gap: 22px;
  align-items: start;
}

.form-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
  background: #fcf8f2;
}

.form-step {
  padding: 20px 18px;
  font-weight: 700;
  color: var(--text-soft);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.form-step:last-child {
  border-right: 0;
}

.form-step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #efe0c8;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.form-step.active {
  color: var(--text);
  background: #fffdf9;
}

.application-form-box {
  padding: 30px;
}

.form-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.step-label {
  display: inline-block;
  background: #fff7eb;
  border: 1px solid #ead7ba;
  color: var(--gold-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.form-title-row h2 {
  font-size: 46px;
  line-height: 1.05;
  margin-bottom: 0;
}

.status-badge {
  background: #fffaf4;
  border: 1px solid var(--border);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
}

.application-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 15px 16px;
  font: inherit;
  color: var(--text);
  outline: none;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #ccb087;
  box-shadow: 0 0 0 4px rgba(184, 138, 74, 0.08);
  background: #fffdfa;
}

.field-invalid {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08) !important;
}

.field-error {
  display: none;
  font-size: 13px;
  color: var(--error);
  margin-top: -2px;
}

.visible-error {
  display: block;
}

.checkbox-error {
  margin-top: -4px;
  margin-left: 30px;
}

.form-checkboxes {
  display: grid;
  gap: 12px;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14px;
}

.upload-box {
  border: 1.5px dashed #d5c1a1;
  background: #fffaf4;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.upload-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f5e8d4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
  font-size: 22px;
  flex-shrink: 0;
}

.strict-upload-icon svg,
.strict-side-icon svg {
  width: 24px;
  height: 24px;
}

.strict-upload-icon,
.strict-side-icon {
  color: var(--gold-dark);
}

.upload-box p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 14px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 8px;
}

.sidebar-cards {
  display: grid;
  gap: 18px;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
  text-align: left;
}

.sidebar-card .icon-box {
  margin: 0 auto 16px;
}

.check-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: var(--text-soft);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2e8b57;
  font-weight: 700;
}

/* STEP SWITCHING */
.step-screen {
  display: none;
}

.step-screen.active {
  display: block;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(180deg, #112b4d, #0c1d35);
  color: rgba(255,255,255,0.85);
  margin-top: 40px;
  padding-top: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 1fr;
  gap: 26px;
  padding-bottom: 28px;
}

.footer-title {
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
  font-size: 18px;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.62);
}

/* RESPONSIVE */
@media (max-width: 1180px) {
  .main-nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .application-layout,
  .footer-grid,
  .grid-6,
  .grid-4,
  .stories-grid,
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    font-size: 11px;
  }

  .header-btn {
    min-width: auto;
    height: 44px;
    padding: 0 16px;
  }

  .hero-image {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--container), calc(100% - 24px));
  }

  .header-inner {
    min-height: 76px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .brand-icon svg {
    width: 20px;
    height: 20px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-subtitle {
    font-size: 10px;
  }

  .header-btn {
    height: 40px;
    padding: 0 14px;
    min-width: auto;
    font-size: 14px;
  }

  .hero-grid,
  .hero-stats,
  .application-layout,
  .application-form,
  .footer-grid,
  .form-steps,
  .grid-6,
  .grid-4,
  .stories-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero-text,
  .application-form-box {
    padding: 22px 18px;
  }

  .hero h1,
  .application-header h1,
  .form-title-row h2 {
    font-size: 38px;
  }

  .program-description-block {
    padding: 20px;
  }

  .program-description-title {
    font-size: 28px;
  }

  .program-step-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .program-step-number {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .form-step {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .form-step:last-child {
    border-bottom: 0;
  }

  .form-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}