@font-face {
  font-family: "Noto Sans";
  src: url("/fonts/NotoSans-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #10233f;
  --ink-soft: #46566d;
  --navy: #102d4f;
  --navy-deep: #0a1d35;
  --blue: #1e5f8f;
  --blue-light: #e9f5fb;
  --teal: #0f766e;
  --coral: #ee735c;
  --coral-dark: #d85b46;
  --cream: #fffaf2;
  --paper: #ffffff;
  --surface: #f4f7f9;
  --line: #dce4e9;
  --focus: #ffb703;
  --error: #b42318;
  --success: #067647;
  --shadow: 0 20px 55px rgba(15, 38, 68, 0.1);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --max-width: 1180px;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

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

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 104px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-muted {
  background: var(--surface);
}

.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 45, 79, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand {
  color: var(--navy);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1;
  user-select: none;
}

.brand span {
  color: var(--coral);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 13px 28px rgba(216, 91, 70, 0.24);
}

.button-primary:hover {
  background: var(--coral-dark);
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.button-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
}

.button-block {
  width: 100%;
}

.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.hero {
  min-height: 680px;
  overflow: hidden;
  padding-top: 86px;
  background:
    linear-gradient(135deg, rgba(233, 245, 251, 0.72), rgba(255, 250, 242, 0.88)),
    #fff;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(16, 45, 79, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
  mask-image: linear-gradient(to right, #000, transparent 70%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.hero-glow-one {
  width: 340px;
  height: 340px;
  right: 4%;
  bottom: -140px;
  background: rgba(238, 115, 92, 0.13);
}

.hero-glow-two {
  width: 220px;
  height: 220px;
  top: 80px;
  right: 32%;
  background: rgba(30, 95, 143, 0.09);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: #9ddbd7;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy-deep);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(40px, 5.4vw, 70px);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4.2vw, 50px);
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-lead {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.62;
}

.hero-offer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.price {
  margin: 0;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.price strong,
.price span {
  display: block;
}

.price strong {
  color: var(--navy-deep);
  font-size: 30px;
  line-height: 1.1;
}

.price span {
  color: var(--ink-soft);
  font-size: 14px;
}

.free-meeting {
  max-width: 330px;
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.45;
}

.free-meeting span {
  color: var(--coral);
}

.hero-note {
  max-width: 590px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.portrait-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 45, 79, 0.08);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.portrait-card::after {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 7px rgba(238, 115, 92, 0.15);
  content: "";
}

.portrait-card > img,
.portrait-card > .portrait-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
}

.portrait-card > img {
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.portrait-placeholder {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 34px;
  color: #68778a;
  background:
    linear-gradient(145deg, rgba(30, 95, 143, 0.12), rgba(15, 118, 110, 0.06)),
    #edf4f6;
  text-align: center;
}

.portrait-monogram {
  display: grid;
  width: 98px;
  height: 98px;
  place-items: center;
  border: 1px solid rgba(16, 45, 79, 0.14);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.portrait-card figcaption {
  display: flex;
  flex-direction: column;
  padding: 22px 26px 26px;
}

.portrait-card figcaption strong {
  color: var(--navy-deep);
  font-size: 20px;
}

.portrait-card figcaption span {
  color: var(--ink-soft);
  font-size: 14px;
}

.results-strip {
  border-block: 1px solid var(--line);
  background: #fff;
}

.compact-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.compact-heading .eyebrow,
.compact-heading h2 {
  margin: 0;
}

.compact-heading h2 {
  font-size: 24px;
}

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

.metric-card {
  min-height: 164px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card strong {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 43px;
  line-height: 1;
}

.metric-card span {
  color: var(--ink-soft);
  line-height: 1.45;
}

.metric-card-accent {
  border-color: transparent;
  background: var(--navy);
}

.metric-card-accent strong,
.metric-card-accent span {
  color: #fff;
}

.metric-context {
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-heading > p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

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

.direction-card {
  position: relative;
  min-height: 260px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.direction-card:hover {
  border-color: rgba(30, 95, 143, 0.35);
  box-shadow: 0 16px 38px rgba(15, 38, 68, 0.08);
  transform: translateY(-3px);
}

.direction-card::after {
  position: absolute;
  width: 130px;
  height: 130px;
  right: -55px;
  bottom: -65px;
  border-radius: 50%;
  background: var(--blue-light);
  content: "";
}

.direction-card h3 {
  max-width: 440px;
  margin-top: 34px;
  font-size: 26px;
}

.direction-card p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.card-index {
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.process-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.sticky-heading {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.process-list li:first-child {
  padding-top: 0;
}

.process-list li > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 38, 68, 0.08);
  font-weight: 800;
}

.process-list h3,
.process-list p {
  margin-bottom: 0;
}

.process-list p {
  color: var(--ink-soft);
}

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(52px, 8vw, 110px);
}

.evidence-copy {
  max-width: 660px;
  color: var(--ink-soft);
  font-size: 18px;
}

.ege-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.ege-highlights p {
  margin: 0;
}

.ege-highlights strong,
.ege-highlights span {
  display: block;
}

.ege-highlights strong {
  color: var(--coral);
  font-size: 28px;
}

.ege-highlights span {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.4;
}

.score-panel {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(238, 115, 92, 0.16);
}

.score-panel h3 {
  margin-bottom: 22px;
}

.score-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}

.score-list span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border-radius: 12px;
  color: var(--navy);
  background: #fff;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(15, 38, 68, 0.05);
}

.score-panel > p {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.olympiad-section {
  padding-block: 36px 104px;
}

.olympiad-card {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: center;
  gap: clamp(38px, 7vw, 90px);
  min-height: 390px;
  padding: clamp(42px, 7vw, 78px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #dbe8f0;
  background: var(--navy-deep);
}

.olympiad-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 8% 18%, rgba(30, 95, 143, 0.7), transparent 34%);
  content: "";
}

.olympiad-card > * {
  position: relative;
}

.olympiad-card h2 {
  color: #fff;
}

.olympiad-card p:last-child {
  max-width: 770px;
  margin-bottom: 0;
  font-size: 18px;
}

.security-mark {
  position: relative;
  display: grid;
  width: 180px;
  height: 200px;
  place-items: center;
  border: 2px solid rgba(157, 219, 215, 0.75);
  border-radius: 90px 90px 36px 36px;
  box-shadow: inset 0 0 40px rgba(15, 118, 110, 0.18), 0 0 60px rgba(30, 95, 143, 0.18);
}

.security-mark::before {
  position: absolute;
  width: 58px;
  height: 68px;
  border: 7px solid #9ddbd7;
  border-bottom: 0;
  border-radius: 32px 32px 0 0;
  content: "";
  transform: translateY(-30px);
}

.security-mark::after {
  width: 88px;
  height: 70px;
  border-radius: 14px;
  background: #9ddbd7;
  content: "";
  transform: translateY(30px);
}

.security-mark span {
  display: none;
}

.teacher-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.teacher-card,
.certificate-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.teacher-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
}

.teacher-photo-mini {
  overflow: hidden;
  border-radius: 18px;
}

.teacher-photo-mini,
.teacher-photo-mini img,
.teacher-photo-mini .portrait-placeholder {
  width: 100%;
  aspect-ratio: 2 / 3;
}

.teacher-photo-mini img {
  display: block;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.teacher-photo-mini .portrait-placeholder {
  min-height: 0;
  padding: 18px;
}

.teacher-photo-mini .portrait-monogram {
  width: 70px;
  height: 70px;
  font-size: 24px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 26px;
  color: var(--ink-soft);
}

.check-list li::before {
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: var(--teal);
  background: rgba(15, 118, 110, 0.12);
  content: "✓";
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
}

.certificate-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 28px;
  align-items: center;
}

.certificate-frame {
  width: 100%;
  aspect-ratio: 210 / 297;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: zoom-in;
  background: #eef2f4;
  box-shadow: 0 10px 28px rgba(15, 38, 68, 0.09);
}

.certificate-frame:disabled {
  cursor: default;
  opacity: 1;
}

.certificate-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.certificate-placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  color: var(--ink-soft);
  text-align: center;
}

.certificate-icon {
  display: grid;
  width: 56px;
  height: 70px;
  place-items: center;
  border: 2px solid #8fa1ae;
  border-radius: 6px;
  color: var(--navy);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.muted-text {
  color: var(--ink-soft);
  font-size: 14px;
}

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.price-layout .section-heading {
  margin-bottom: 0;
}

.price-card {
  padding: 38px;
  border: 1px solid rgba(16, 45, 79, 0.11);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.price-label {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.price-large {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 26px;
}

.price-large strong {
  color: var(--navy-deep);
  font-size: 44px;
  line-height: 1;
}

.price-large span {
  color: var(--ink-soft);
}

.compact-list {
  margin-bottom: 28px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 26px 50px 26px 0;
  cursor: pointer;
  color: var(--navy-deep);
  font-size: 19px;
  font-weight: 800;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--navy);
  background: var(--surface);
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 30px;
  text-align: center;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 730px;
  margin: -4px 0 26px;
  color: var(--ink-soft);
}

.application-section {
  color: #dbe8f0;
  background: var(--navy-deep);
}

.application-section::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(30, 95, 143, 0.5), transparent 28%),
    radial-gradient(circle at 90% 86%, rgba(15, 118, 110, 0.28), transparent 30%);
  content: "";
  pointer-events: none;
}

.application-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.05fr);
  align-items: start;
  gap: clamp(52px, 8vw, 100px);
}

.application-intro {
  position: sticky;
  top: 110px;
}

.application-intro h2 {
  color: #fff;
}

.application-intro > p:not(.eyebrow) {
  font-size: 18px;
}

.application-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}

.application-facts p {
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.application-facts strong,
.application-facts span {
  display: block;
}

.application-facts strong {
  color: #fff;
  font-size: 20px;
}

.application-facts span {
  color: #b6c7d4;
  font-size: 13px;
}

.form-shell {
  padding: clamp(26px, 5vw, 46px);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.form-shell fieldset,
.field,
.adult-confirm,
.consent-block {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.form-shell legend,
.form-shell .field > label {
  display: block;
  margin-bottom: 10px;
  color: var(--navy-deep);
  font-weight: 800;
}

.form-shell legend span,
.form-shell .field > label span:not(.optional) {
  color: var(--error);
}

.field-hint {
  margin: -4px 0 11px;
  color: var(--ink-soft);
  font-size: 13px;
}

.optional {
  margin-left: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 400;
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 50px;
  align-items: center;
  gap: 11px;
  margin-bottom: 9px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  color: var(--ink-soft);
  background: #fff;
}

.choice-card:has(input:checked) {
  border-color: var(--blue);
  color: var(--navy);
  background: var(--blue-light);
}

input[type="radio"],
input[type="checkbox"] {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.direction-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.direction-choices .choice-card {
  margin: 0;
}

.adult-confirm {
  padding: 18px;
  border-radius: 14px;
  background: var(--cream);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 3px;
}

.minor-note,
.policy-note {
  margin: 8px 0 0 30px;
  color: var(--ink-soft);
  font-size: 13px;
}

.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 13px;
  background: var(--surface);
}

.segmented-control label {
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 700;
}

.segmented-control input:checked + span {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 38, 68, 0.08);
}

.segmented-control input:focus-visible + span {
  outline: 3px solid var(--focus);
}

.field input[type="text"],
.field input[type="tel"],
.field textarea,
.prefixed-input {
  width: 100%;
  border: 1px solid #c9d3da;
  border-radius: 13px;
  color: var(--ink);
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  padding: 13px 15px;
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.prefixed-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30, 95, 143, 0.1);
  outline: 0;
}

.prefixed-input {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.prefixed-input > span {
  padding-left: 15px;
  color: var(--navy);
  font-weight: 800;
}

.prefixed-input input {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.character-count {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  text-align: right;
}

.field-error {
  min-height: 0;
  margin: 7px 0 0;
  color: var(--error);
  font-size: 13px;
  font-weight: 700;
}

.field-error:empty {
  display: none;
}

[data-invalid="true"] input,
[data-invalid="true"] textarea,
[data-invalid="true"] .prefixed-input {
  border-color: var(--error);
}

.consent-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.form-status {
  display: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.form-status:not(:empty) {
  display: block;
}

.form-status[data-kind="error"] {
  color: var(--error);
  background: #fff1f0;
}

.form-status[data-kind="info"] {
  color: var(--navy);
  background: var(--blue-light);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.success-state {
  min-height: 480px;
  align-content: center;
  padding: 30px;
  text-align: center;
}

.success-state:not([hidden]) {
  display: grid;
}

.success-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-size: 36px;
  box-shadow: 0 12px 28px rgba(6, 118, 71, 0.2);
}

.success-state h3 {
  font-size: 31px;
}

.success-state p {
  max-width: 470px;
  margin-inline: auto;
  color: var(--ink-soft);
}

.success-state .lead-id {
  font-size: 13px;
}

.site-footer {
  padding: 46px 0;
  color: #b6c7d4;
  background: #071526;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
}

.brand-footer {
  display: inline-block;
  margin-bottom: 14px;
  color: #fff;
}

.footer-grid p {
  margin: 0 0 5px;
}

.site-footer a {
  color: #dbe8f0;
}

.legal-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.mobile-cta {
  display: none;
}

.cookie-notice {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  max-width: 880px;
  margin-inline: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(7, 21, 38, 0.23);
}

.cookie-notice:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy-deep);
}

.cookie-notice p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 9px;
}

.certificate-dialog {
  width: min(92vw, 820px);
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
}

.certificate-dialog::backdrop {
  background: rgba(7, 21, 38, 0.78);
  backdrop-filter: blur(4px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  margin: 0;
  font-size: 21px;
}

.dialog-header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--navy);
  background: var(--surface);
  font-size: 26px;
}

.certificate-dialog img {
  width: 100%;
  max-height: calc(92vh - 72px);
  object-fit: contain;
  background: #eef2f4;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.legal-page {
  background: var(--surface);
}

.legal-main {
  padding: 72px 0 104px;
}

.legal-document {
  max-width: 900px;
  padding: clamp(30px, 6vw, 70px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 38, 68, 0.07);
}

.legal-document h1 {
  max-width: 800px;
  font-size: clamp(36px, 5vw, 54px);
}

.legal-lead {
  color: var(--ink-soft);
  font-size: 19px;
}

.legal-document section {
  padding-top: 30px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
}

.legal-document section h2 {
  font-size: 25px;
}

.legal-document li {
  margin-bottom: 8px;
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 40px;
  }

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

  .teacher-grid {
    grid-template-columns: 1fr;
  }

  .application-layout {
    grid-template-columns: 1fr;
  }

  .application-intro {
    position: static;
    max-width: 760px;
  }

  .form-shell {
    max-width: 760px;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 78px 0;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  .portrait-card {
    width: min(100%, 440px);
    transform: none;
  }

  .process-layout,
  .faq-layout,
  .evidence-grid,
  .price-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .sticky-heading,
  .application-intro {
    position: static;
  }

  .price-layout .section-heading {
    margin-bottom: 0;
  }

  .olympiad-card {
    grid-template-columns: 1fr;
  }

  .security-mark {
    width: 130px;
    height: 145px;
    transform: scale(0.8);
    transform-origin: left center;
  }

  .teacher-card {
    grid-template-columns: 150px 1fr;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 70px;
  }

  body {
    padding-bottom: 66px;
    font-size: 15px;
  }

  .container {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .section {
    padding: 64px 0;
  }

  .section-tight {
    padding: 54px 0;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 64px;
  }

  .header-inner .button {
    display: none;
  }

  h1 {
    font-size: clamp(36px, 11vw, 50px);
  }

  h2 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .hero {
    padding-top: 46px;
  }

  .hero-offer {
    align-items: flex-start;
    flex-direction: column;
  }

  .price {
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-copy > .button {
    width: 100%;
  }

  .portrait-card {
    width: 100%;
  }

  .compact-heading {
    display: block;
  }

  .compact-heading .eyebrow {
    margin-bottom: 10px;
  }

  .metric-grid,
  .direction-grid,
  .ege-highlights,
  .teacher-grid,
  .application-facts,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 136px;
  }

  .direction-card {
    min-height: auto;
    padding: 27px;
  }

  .direction-card h3 {
    margin-top: 24px;
    font-size: 23px;
  }

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

  .score-panel {
    padding: 24px;
  }

  .score-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .olympiad-card {
    min-height: 0;
    padding: 38px 28px;
  }

  .teacher-card,
  .certificate-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .teacher-photo-mini {
    max-width: 220px;
  }

  .certificate-frame {
    max-width: 250px;
    margin-inline: auto;
  }

  .price-card {
    padding: 28px;
  }

  .price-large {
    align-items: flex-start;
    flex-direction: column;
  }

  .application-layout {
    gap: 38px;
  }

  .form-shell {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .direction-choices {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-bottom: 38px;
  }

  .legal-links {
    align-items: flex-start;
  }

  .mobile-cta {
    position: fixed;
    z-index: 80;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: var(--coral);
    box-shadow: 0 12px 30px rgba(7, 21, 38, 0.24);
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-cta[hidden] {
    display: none;
  }

  .cookie-notice:not([hidden]) {
    bottom: 72px;
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .legal-main {
    padding: 28px 0 70px;
  }

  .legal-document {
    padding: 28px 20px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
