:root {
  --navy: #1d1f3e;
  --navy-deep: #15172e;
  --navy-panel: #23254a;
  --navy-line: rgba(255, 255, 255, 0.12);
  --gold: #dfaf4e;
  --gold-soft: #ecc673;
  --cream: #f4f2ec;
  --paper: #fbfaf6;
  --ink: #23243b;
  --grey-band: #6f7076;
  --text: #eceef8;
  --text-dim: #a3a7c4;
  --text-ink-dim: #6d6f84;
  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --rail-w: 112px;
  --shadow-card: 0 18px 40px rgba(8, 9, 24, 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
}

p {
  margin: 0 0 1em;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  transition: top 0.3s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.rail {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  background: var(--navy-deep);
  border-bottom: 1px solid var(--navy-line);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.rail.is-scrolled {
  background: rgba(17, 18, 38, 0.96);
  box-shadow: 0 10px 30px rgba(5, 6, 18, 0.45);
}

.rail__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.rail__logo {
  font-family: var(--font-serif);
  font-size: 26px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.rail__logo-mark {
  color: var(--gold);
  font-size: 14px;
  transform: translateY(-8px);
}

.rail__burger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--navy-line);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.rail__burger-box {
  position: relative;
  width: 20px;
  height: 14px;
}

.rail__burger-box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.rail__burger-box span:nth-child(1) {
  top: 0;
}

.rail__burger-box span:nth-child(2) {
  top: 6px;
}

.rail__burger-box span:nth-child(3) {
  top: 12px;
}

.rail__burger[aria-expanded="true"] .rail__burger-box span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.rail__burger[aria-expanded="true"] .rail__burger-box span:nth-child(2) {
  opacity: 0;
}

.rail__burger[aria-expanded="true"] .rail__burger-box span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.rail__nav {
  border-top: 1px solid var(--navy-line);
}

.js .rail__nav {
  display: none;
}

.js .rail__nav.is-open {
  display: block;
}

.rail__list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.rail__item a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s var(--ease);
}

.rail__item a strong {
  display: block;
  color: var(--gold);
  font-weight: 700;
}

.rail__item a span em {
  display: block;
  font-style: normal;
}

.rail__item a:hover {
  color: #fff;
}

.rail__icon {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--gold);
}

.rail__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail__foot {
  display: none;
}

.rail__mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--text-dim);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}

.rail__mini:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

.rail__mini svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  padding-top: 73px;
  background: #2c2e50;
  overflow: hidden;
}

.hero__panel {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.75);
}

.hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(24, 25, 48, 0.25) 0%, rgba(24, 25, 48, 0.78) 100%);
}

.hero__panel--feature::after {
  background: linear-gradient(180deg, rgba(20, 21, 42, 0.45) 0%, rgba(20, 21, 42, 0.82) 100%);
}

.hero__inner {
  position: relative;
  text-align: center;
  padding: 0 24px 64px;
}

.hero__title {
  font-family: var(--font-sans);
  color: #fff;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 300;
}

.hero__title strong {
  display: block;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero__panel--feature .hero__title {
  font-size: clamp(24px, 3.2vw, 34px);
}

.hero__cta {
  margin-top: 26px;
}

.btn {
  display: inline-block;
  position: relative;
  padding: 13px 34px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}

.btn:hover {
  color: var(--navy-deep);
}

.btn:hover::before {
  transform: scaleX(1);
}

.btn--solid {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn--solid::before {
  background: #fff;
}

.btn--solid:hover {
  color: var(--navy-deep);
}

.section {
  padding: 92px 0;
}

.section--deep {
  background: var(--navy-deep);
}

.section--navy {
  background: var(--navy);
}

.section--cream {
  background: var(--cream);
  color: var(--ink);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-head__eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.section--cream .section-head__eyebrow {
  color: var(--text-ink-dim);
}

.section-head__title {
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 300;
  color: #fff;
}

.section--cream .section-head__title {
  color: var(--ink);
}

.section-head__title strong {
  font-weight: 700;
}

.sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  color: var(--gold);
}

.sep::before,
.sep::after {
  content: "";
  width: 64px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.sep svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  text-align: center;
}

.step__icon {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.step:hover .step__icon {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(223, 175, 78, 0.18);
}

.step__icon::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.step__icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step__title {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.step__text {
  color: var(--text-dim);
  max-width: 240px;
  margin: 0 auto;
  font-size: 13px;
}

.packages__intro {
  max-width: 560px;
  margin: -24px auto 48px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

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

.plan {
  position: relative;
  border: 1px solid var(--navy-line);
  background: var(--navy-panel);
  padding: 34px 28px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.plan:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: rgba(223, 175, 78, 0.45);
}

.plan--feature {
  border-color: var(--gold);
}

.plan--feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background: linear-gradient(140deg, rgba(223, 175, 78, 0.55), rgba(223, 175, 78, 0) 55%);
  filter: blur(10px);
  opacity: 0.6;
}

.plan__badge {
  position: absolute;
  top: -11px;
  left: 26px;
  background: var(--gold);
  color: var(--navy-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.plan__name {
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}

.plan__name span {
  display: block;
  font-weight: 300;
  color: var(--text-dim);
}

.plan__price {
  margin: 18px 0 6px;
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.plan__price-note {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--navy-line);
}

.plan__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 13px;
}

.plan__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: var(--text);
}

.plan__list li.is-off {
  color: var(--text-dim);
}

.plan__tick {
  flex: none;
  font-style: normal;
  color: var(--gold);
  font-size: 12px;
}

.plan__list li.is-off .plan__tick {
  color: var(--text-dim);
}

.plan__cta {
  margin-top: auto;
  text-align: center;
}

.plan__cta .btn {
  width: 100%;
  border-color: var(--navy-line);
  color: var(--text-dim);
}

.plan__cta .btn:hover {
  color: var(--navy-deep);
}

.plan--feature .plan__cta .btn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

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

.craft::before {
  content: "";
  position: absolute;
  left: -140px;
  top: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 175, 78, 0.16), rgba(223, 175, 78, 0) 70%);
}

.craft__inner {
  position: relative;
  max-width: 560px;
  margin-left: auto;
  text-align: right;
}

.craft__title {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}

.craft__title span {
  font-weight: 300;
}

.craft__text {
  margin: 22px 0 30px;
  color: var(--text-ink-dim);
  font-size: 14px;
}

.craft .btn {
  border-color: var(--gold);
  color: #b8862f;
}

.craft .btn:hover {
  color: var(--navy-deep);
}

.services__tabs {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--navy-line);
  margin-bottom: 56px;
}

.services__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--navy-line);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.services__tab:last-child {
  border-bottom: 0;
}

.services__tab strong {
  display: block;
  font-weight: 700;
}

.services__tab em {
  display: block;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.services__tab-icon {
  width: 34px;
  height: 34px;
  flex: none;
}

.services__tab-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services__tab:hover {
  color: #fff;
}

.services__tab.is-active {
  background: var(--gold);
  color: var(--navy-deep);
}

.services__panel {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.js .services__panel:not(.is-active) {
  display: none;
}

.services__panel + .services__panel {
  margin-top: 48px;
}

.js .services__panel + .services__panel {
  margin-top: 0;
}

.services__panel-title {
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.services__panel-text {
  color: var(--text-dim);
  font-size: 13px;
}

.services__points {
  list-style: none;
  margin: 24px 0 30px;
  padding: 0;
  display: grid;
  gap: 14px;
  font-size: 13px;
}

.services__points li {
  display: flex;
  gap: 14px;
  align-items: baseline;
}

.services__points svg {
  flex: none;
  width: 15px;
  height: 15px;
  transform: translateY(2px);
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
}

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

.tutor {
  position: relative;
}

.tutor__photo {
  overflow: hidden;
  background: #3a3c5e;
  aspect-ratio: 1 / 1.02;
}

.tutor__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.tutor:hover .tutor__photo img {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.tutor__card {
  position: relative;
  margin: -34px 14px 0;
  background: #fff;
  color: var(--ink);
  padding: 14px 52px 14px 16px;
  box-shadow: 0 16px 34px rgba(8, 9, 24, 0.28);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.tutor:hover .tutor__card,
.tutor:focus-within .tutor__card,
.tutor--open .tutor__card {
  opacity: 1;
  transform: translateY(0);
}

.tutor__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tutor__role {
  font-size: 11px;
  color: var(--text-ink-dim);
}

.tutor__link {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy-deep);
}

.tutor__link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.about {
  background: var(--paper);
  color: var(--ink);
  text-align: center;
}

.about__logo {
  font-family: var(--font-serif);
  font-size: 40px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.about__logo-mark {
  color: var(--gold);
  font-size: 18px;
  transform: translateY(-12px);
}

.about__text {
  max-width: 640px;
  margin: 26px auto 54px;
  color: var(--text-ink-dim);
  font-size: 13px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

.stat__num {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.stat__num i {
  font-style: normal;
  color: var(--gold);
}

.stat__label {
  font-size: 12px;
  color: var(--text-ink-dim);
  letter-spacing: 0.04em;
}

.voices {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.voices::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -160px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(223, 175, 78, 0.12), rgba(223, 175, 78, 0) 70%);
}

.voices__mark {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 84px;
  line-height: 0.4;
  margin-bottom: 34px;
}

.voice {
  max-width: 680px;
  margin: 0 auto;
}

.js .voice:not(.is-active) {
  display: none;
}

.voice__text {
  font-style: italic;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 34px;
}

.voice__who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.voice__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(140deg, #4a4c72, #2d2f52);
  border: 1px solid var(--navy-line);
}

.voice__name {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}

.voice__name span {
  display: block;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}

.voices__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.voices__dot {
  width: 26px;
  height: 4px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background-color 0.3s var(--ease);
}

.voices__dot.is-active {
  background: var(--gold);
}

.gallery {
  background: #3f4166;
  padding: 0;
}

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

.gallery__item {
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #565878;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.07);
  filter: brightness(1.08);
}

.gallery__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gallery__bar svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.post {
  background: var(--navy-panel);
  border: 1px solid var(--navy-line);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.post:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
}

.post__photo {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #3a3c5e;
}

.post__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.post:hover .post__photo img {
  transform: scale(1.05);
}

.post__body {
  padding: 22px 22px 0;
  flex: 1;
}

.post__date {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.post__title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.post__text {
  font-size: 12px;
  color: var(--text-dim);
}

.post__more {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--gold);
  color: var(--navy-deep);
  padding: 13px 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background-color 0.3s var(--ease);
}

.post__more:hover {
  background: var(--gold-soft);
}

.post__more svg {
  width: 18px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.post__more:hover svg {
  transform: translateX(4px);
}

.contact {
  background: var(--grey-band);
  color: #fff;
  padding: 56px 0;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: center;
}

.contact__title {
  font-size: 17px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact__text {
  margin: 10px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 420px;
}

.contact__action {
  display: flex;
  align-items: stretch;
  max-width: 420px;
}

.contact__mail {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  transition: background-color 0.3s var(--ease);
}

.contact__mail:hover {
  background: rgba(255, 255, 255, 0.22);
}

.contact__mail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  background: var(--gold);
  color: var(--navy-deep);
}

.contact__mail-btn svg {
  width: 20px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer {
  background: var(--navy-deep);
  text-align: center;
  padding: 64px 0 0;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 30px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.footer__logo-mark {
  color: var(--gold);
  font-size: 14px;
  transform: translateY(-10px);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin: 30px 0 26px;
  padding: 0;
  list-style: none;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__nav a {
  position: relative;
  color: var(--text-dim);
  padding-bottom: 4px;
  transition: color 0.25s var(--ease);
}

.footer__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.footer__nav a:hover {
  color: #fff;
}

.footer__nav a:hover::after {
  transform: scaleX(1);
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--navy-line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.footer__social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.footer__social svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__bottom {
  border-top: 1px solid var(--navy-line);
  padding: 18px 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.js .rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js .rv.in {
  opacity: 1;
  transform: none;
}

.js .rv-grid > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.js .rv-grid.in > * {
  opacity: 1;
  transform: none;
}

.js .rv-grid.in > *:nth-child(2) {
  transition-delay: 0.12s;
}

.js .rv-grid.in > *:nth-child(3) {
  transition-delay: 0.24s;
}

.js .rv-grid.in > *:nth-child(4) {
  transition-delay: 0.36s;
}

.js .rv-grid.in > *:nth-child(5) {
  transition-delay: 0.42s;
}

.js .rv-grid.in > *:nth-child(6) {
  transition-delay: 0.48s;
}

.legal-hero {
  padding: 150px 0 70px;
  background: var(--navy-deep);
  text-align: center;
}

.legal-hero__title {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 300;
  color: #fff;
}

.legal-hero__title strong {
  font-weight: 700;
}

.legal-hero__meta {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.progress {
  position: fixed;
  z-index: 150;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}

.legal {
  background: var(--paper);
  color: var(--ink);
  padding: 70px 0 90px;
}

.legal__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.legal__toc {
  border: 1px solid #e4e1d6;
  background: #fff;
  padding: 26px 24px;
}

.legal__toc-title {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 16px;
}

.legal__toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  display: grid;
  gap: 9px;
}

.legal__toc a {
  color: var(--text-ink-dim);
  transition: color 0.25s var(--ease);
}

.legal__toc a:hover {
  color: #b8862f;
}

.legal__body h2 {
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 44px 0 16px;
  padding-top: 10px;
}

.legal__body h2:first-child {
  margin-top: 0;
}

.legal__body p,
.legal__body li {
  font-size: 14px;
  color: #45465c;
}

.legal__body ul {
  padding-left: 20px;
  margin: 0 0 1em;
}

.legal__body a {
  color: #b8862f;
  border-bottom: 1px solid rgba(184, 134, 47, 0.4);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.legal__body a:hover {
  color: #8f6720;
  border-color: currentColor;
}

.legal__body strong {
  color: var(--ink);
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .services__tab {
    border-bottom: 0;
    border-right: 1px solid var(--navy-line);
  }

  .services__tab:last-child {
    border-right: 0;
  }

  .tutors__grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .gallery__grid {
    grid-template-columns: repeat(6, 1fr);
  }

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

  .contact__inner {
    grid-template-columns: 1.2fr 1fr;
  }

  .contact__action {
    justify-self: end;
    width: 100%;
  }

  .hero {
    grid-template-columns: repeat(3, 1fr);
    min-height: 640px;
  }

  .hero__panel {
    min-height: 0;
  }

  .hero__panel--feature {
    box-shadow: 0 0 60px rgba(5, 6, 18, 0.5);
    z-index: 1;
  }

  .legal__layout {
    grid-template-columns: 260px 1fr;
  }

  .legal__toc {
    position: sticky;
    top: 100px;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 16px;
  }

  .rail {
    right: auto;
    bottom: 0;
    width: var(--rail-w);
    border-bottom: 0;
    border-right: 1px solid var(--navy-line);
    display: flex;
    flex-direction: column;
  }

  .rail__bar {
    flex-direction: column;
    padding: 34px 10px 22px;
  }

  .rail__logo {
    font-size: 16px;
    letter-spacing: 0.1em;
    max-width: 100%;
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
    overflow-wrap: anywhere;
  }

  .rail__logo-mark {
    transform: translateY(-4px);
    font-size: 11px;
  }

  .rail__burger {
    display: none;
  }

  .js .rail__nav {
    display: block;
  }

  .rail__nav {
    border-top: 0;
    flex: 1;
    display: flex;
    align-items: center;
  }

  .rail__list {
    width: 100%;
    display: grid;
    gap: 26px;
    padding: 0;
  }

  .rail__item a {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 6px 8px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .rail__foot {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 18px 6px 22px;
    border-top: 1px solid var(--navy-line);
  }

  .hero {
    margin-left: var(--rail-w);
    padding-top: 0;
    min-height: 100vh;
  }

  .hero__panel--feature .hero__inner {
    padding-bottom: 120px;
  }

  .hero__inner {
    padding-bottom: 96px;
  }

  .legal-hero,
  .legal,
  .section,
  .gallery,
  .contact,
  .footer {
    margin-left: var(--rail-w);
  }

  .packages__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .plan {
    padding: 34px 22px 26px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__media img {
    animation: kenburns 22s ease-in-out infinite alternate;
  }

  .hero__panel:nth-child(2) .hero__media img {
    animation-duration: 26s;
  }

  .hero__panel:nth-child(3) .hero__media img {
    animation-duration: 30s;
  }
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

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

  body *,
  body *::before,
  body *::after {
    animation: none;
    transition-duration: 0.01ms;
  }

  .js .rv,
  .js .rv-grid > * {
    opacity: 1;
    transform: none;
  }
}
