:root {
  --ink: #183235;
  --muted: #627274;
  --line: #d7e2df;
  --paper: #fbfcf9;
  --soft: #eef5f2;
  --teal: #1f6a70;
  --green: #4f8d76;
  --amber: #de9140;
  --amber-soft: #fff1dc;
  --deep: #123e43;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(19, 55, 58, 0.12);
  font-family:
    Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--deep);
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 249, 0.92);
  border-bottom: 1px solid rgba(215, 226, 223, 0.9);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: min(620px, calc(100svh - 96px));
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(68px, 9vw, 96px) clamp(20px, 5vw, 70px) clamp(58px, 7vw, 84px);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 38, 42, 0.88) 0%, rgba(10, 38, 42, 0.7) 42%, rgba(10, 38, 42, 0.18) 78%),
    linear-gradient(0deg, rgba(10, 38, 42, 0.22), rgba(10, 38, 42, 0.1));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 1.5rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: normal;
}

h1 {
  max-width: 15ch;
  font-size: 5.05rem;
}

h2 {
  font-size: 3rem;
}


h3 {
  font-size: 1.04rem;
}

.lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.button:hover {
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.13);
}

.button.primary {
  color: #1d2c26;
  background: var(--amber);
  border-color: var(--amber);
}

.button.primary:hover {
  color: #1d2c26;
  background: #efaa5e;
}

.section {
  scroll-margin-top: 84px;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 70px);
}

.section-heading {
  display: block;
  max-width: 1280px;
  margin: 0 auto 34px;
}

.section-heading.compact {
  display: block;
  margin-bottom: 26px;
}

.dates-heading {
  display: block;
}

.documents-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.55;
}

.documents-note p {
  margin: 0 0 6px;
  color: var(--text);
}

.documents-note ul {
  margin: 0;
  padding-left: 1.1rem;
}

.section-dates {
  padding-top: 12px;
}

.timeline {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.timeline-item {
  min-height: 232px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.timeline-item:last-child {
  border-right: 0;
}

.timeline-item.accent {
  background: var(--soft);
}

.date {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--amber);
  font-weight: 850;
}

.timeline-item a {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal);
  font-weight: 800;
  font-size: 0.92rem;
}

.timeline-item p,
.exam-list p,
.program-card p,
.contact-panel li,
.contact-panel span {
  color: var(--muted);
}

.section-exams,
.target-section {
  background: var(--white);
}

.content-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
}

.two-col {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: start;
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-grid p {
  max-width: 62ch;
}

.exam-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.exam-list article {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.exam-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.exam-title span {
  min-width: max-content;
  padding: 5px 9px;
  color: #422700;
  background: var(--amber-soft);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
}

.exam-link {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 14px;
  color: var(--teal);
  font-weight: 800;
}

.notice {
  max-width: 1280px;
  margin: 30px auto 0;
  padding: 18px 22px;
  color: #613c0b;
  background: var(--amber-soft);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  font-weight: 650;
}

.achievements-section {
  background: var(--white);
}

.achievements-heading {
  display: block;
}

.achievement-summary {
  max-width: 860px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
}

.achievements-table-wrap {
  max-width: 1280px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.achievements-table {
  --achievement-score-col: 138px;
  --achievement-cell-pad-x: 18px;
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.achievements-table th,
.achievements-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.achievements-table th {
  color: var(--white);
  background: var(--deep);
  font-size: 0.92rem;
  text-align: left;
}

.achievements-table th:last-child,
.achievements-table td:not([colspan]):last-child {
  width: var(--achievement-score-col);
  text-align: center;
}

.achievements-table td:not([colspan]):last-child {
  color: var(--deep);
  font-weight: 850;
}

.achievements-table tbody tr:last-child td {
  border-bottom: 0;
}

.achievements-table ul {
  margin: 10px 0 0;
  padding-left: 1.15rem;
}

.achievements-table li + li {
  margin-top: 4px;
}

.achievement-intro {
  margin: 0 0 12px;
}

.paired-score-list {
  display: grid;
  gap: 8px;
}

.paired-score-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) calc(var(--achievement-score-col) - (var(--achievement-cell-pad-x) * 2));
  gap: 18px;
  align-items: start;
}

.paired-score-list span {
  position: relative;
  padding-left: 18px;
}

.paired-score-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.paired-score-list strong {
  color: var(--deep);
  font-weight: 850;
  text-align: center;
}

.table-note {
  margin: 0;
  padding: 12px 18px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.table-note:last-child {
  padding-bottom: 16px;
}

.benefits-band {
  background: var(--white);
  color: var(--ink);
}

.benefits-band .accordion-summary {
  background: var(--white);
  color: var(--ink);
}

.benefits-band .section-heading,
.benefit-grid {
  max-width: 1280px;
}

.benefits-band h2 {
  white-space: normal;
  color: var(--ink);
}

.benefit-grid {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.benefit-grid article {
  min-height: 118px;
  padding: 18px;
  background: var(--soft);
}

.benefit-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.06rem;
}

.benefit-grid span {
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 14px 18px 14px 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 650;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
}

.section-programs {
  background: var(--white);
}

.program-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.program-card {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.program-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.code,
.term {
  font-size: 0.82rem;
  font-weight: 850;
}

.code {
  color: var(--teal);
}

.term {
  min-width: max-content;
  padding: 5px 9px;
  color: #422700;
  background: var(--amber-soft);
  border-radius: 999px;
}

.program-card h3 {
  margin-bottom: 14px;
  font-size: 1.18rem;
}

.seat-list {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.seat-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seat-list dt,
.seat-list dd {
  margin: 0;
}

.seat-list dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.seat-list dd {
  min-width: max-content;
  color: var(--deep);
  font-weight: 850;
}

.program-card p {
  margin: auto 0 14px;
}

.program-card a {
  font-weight: 800;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--deep);
  color: var(--white);
}

.contacts > * {
  max-width: 1280px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.72fr);
  gap: 26px;
  padding: 28px;
  color: var(--ink);
  background: var(--white);
  border-radius: 8px;
}

.contact-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.contact-panel li + li {
  margin-top: 10px;
}

.contact-person {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.contact-person strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .benefits-band h2 {
    white-space: normal;
    color: var(--ink);
  }

  .nav-links {
    display: none;
  }

  .timeline,
  .program-grid,
  .benefit-grid,
  .two-col,
  .three-col,
  .contacts,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item:last-child {
    border-bottom: 0;
  }

  .section-heading {
    display: block;
  }

  .contact-person {
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .lead {
    font-size: 1.15rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 16px;
  }

  .hero {
    min-height: calc(100svh - 96px);
    padding: 54px 18px 28px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(10, 38, 42, 0.91), rgba(10, 38, 42, 0.64));
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    max-width: none;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-actions,
  .exam-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lead {
    margin-top: 18px;
    font-size: 1.05rem;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 24px;
  }

  .button {
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
  }

  .exam-title {
    display: block;
  }

  .exam-title span {
    display: inline-block;
    margin-top: 10px;
  }

  .achievements-table th,
  .achievements-table td {
    padding: 11px 9px;
    font-size: 0.84rem;
  }

  .achievements-table {
    --achievement-score-col: 82px;
    --achievement-cell-pad-x: 9px;
  }

  .achievements-table th:last-child,
  .achievements-table td:not([colspan]):last-child {
    width: var(--achievement-score-col);
  }

  .achievements-table ul {
    padding-left: 0.95rem;
  }

  .paired-score-list div {
    grid-template-columns: minmax(0, 1fr) calc(var(--achievement-score-col) - (var(--achievement-cell-pad-x) * 2));
    gap: 8px;
  }

  .program-topline {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: #fff;
    color: #111;
  }

  .site-header {
    position: static;
    padding: 0 0 8mm;
    border-bottom: 1px solid #bbb;
  }

  .nav-links,
  .hero-image,
  .hero-shade {
    display: none;
  }

  .hero,
  .section {
    min-height: auto;
    padding: 8mm 0;
  }

  .hero-content,
  .benefits-band,
  .contacts {
    color: #111;
  }

  .hero {
    display: block;
    background: #fff;
    border-bottom: 1px solid #bbb;
  }

  .lead {
    color: #333;
  }

  .button {
    color: #111;
    border-color: #999;
  }

  .section-programs,
  .section-exams,
  .target-section,
  .contacts {
    background: #fff;
  }

  .timeline,
  .program-grid,
  .benefit-grid,
  .two-col,
  .three-col,
  .contacts,
  .contact-panel {
    display: block;
    box-shadow: none;
  }

  .timeline-item,
  .program-card,
  .benefit-grid article,
  .exam-list article,
  .contact-panel {
    break-inside: avoid;
    margin-bottom: 4mm;
    border: 1px solid #bbb;
  }
}

/* ── Accordion ─────────────────────────────────────────── */
.accordion-section + .accordion-section {
  border-top: 2px solid var(--teal);
}
.accordion-section {
  padding: 0;
  background: var(--white) !important;
  color: var(--ink) !important;
}

.accordion {
  width: 100%;
}

.accordion[open] > .accordion-summary {
  border-bottom: 1px solid var(--line);
}

.accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 4vw, 38px) clamp(20px, 5vw, 70px);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.15s;
}

.accordion-summary::-webkit-details-marker { display: none; }

.accordion-summary:hover {
  background: rgba(0,0,0,0.03);
}


.accordion-header {
  flex: 1;
  min-width: 0;
}

.accordion-header .eyebrow {
  margin: 0 0 6px;
}

.accordion-header h2 {
  margin: 0;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.accordion-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, border-color 0.2s;
  position: relative;
}

.accordion-arrow::before,
.accordion-arrow::after {
  content: "";
  position: absolute;
  background: var(--teal);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.accordion-arrow::before {
  width: 10px;
  height: 1.5px;
}

.accordion-arrow::after {
  width: 1.5px;
  height: 10px;
}

.accordion[open] .accordion-arrow::after {
  transform: scaleY(0);
}

.accordion[open] .accordion-arrow {
  border-color: var(--teal);
}


.accordion-body {
  padding: clamp(28px, 5vw, 54px) clamp(20px, 5vw, 70px);
  animation: accordion-open 0.25s ease;
}

@keyframes accordion-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
