:root {
  --paper: #fff8f7;
  --powder: #e8bdc8;
  --powder-light: #f8e5ea;
  --rose: #a33b4f;
  --ink: #242323;
  --muted: #6e6565;
  --sage: #7c8b7c;
  --line: rgba(36, 35, 35, 0.1);
  --shadow: 0 22px 70px rgba(70, 44, 52, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Inter", "Manrope", sans-serif;
  background:
    linear-gradient(115deg, rgba(255, 248, 247, 0.96), rgba(248, 229, 234, 0.76)),
    linear-gradient(180deg, #fff8f7 0%, #f4e1e5 48%, #fff8f7 100%);
  color: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(36, 35, 35, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 35, 35, 0.022) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 82%, transparent);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background:
    linear-gradient(115deg, rgba(255, 248, 247, 0.98), rgba(248, 229, 234, 0.84)),
    linear-gradient(180deg, #fff8f7 0%, #f4e1e5 100%);
  color: var(--ink);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(36, 35, 35, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 35, 35, 0.022) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

.splash.hide {
  opacity: 0;
  visibility: hidden;
}

.splash-inner {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  text-align: center;
}

.splash-kicker,
.eyebrow {
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.26em;
  line-height: 1.4;
  text-transform: uppercase;
}

.splash h1 {
  margin-top: 18px;
  font-size: clamp(42px, 8vw, 126px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.92;
  text-transform: uppercase;
  white-space: nowrap;
}

.splash h1 span {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: splashLetter 0.7s cubic-bezier(.2,.8,.2,1) forwards;
}

.splash-line {
  display: block;
  width: 0;
  height: 1px;
  margin: 28px auto 0;
  background: var(--powder);
  animation: lineGrow 1.25s ease 0.45s forwards;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: min(1320px, calc(100% - 32px));
  min-height: 72px;
  margin: 16px auto 0;
  padding: 12px 14px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(36, 35, 35, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 248, 247, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 40px rgba(70, 44, 52, 0.06);
}

.brand {
  display: grid;
  gap: 2px;
  min-width: 150px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.main-nav,
.header-actions,
.lang-switch {
  display: flex;
  align-items: center;
}

.main-nav {
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--rose);
}

.header-actions {
  gap: 10px;
}

.lang-switch {
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
}

.lang-switch button {
  min-width: 38px;
  border: 0;
  border-radius: 999px;
  padding: 8px 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.lang-switch button.active {
  background: var(--ink);
  color: #fff;
}

.admin-link,
.primary-link,
.contact-panel a {
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-link:hover {
  color: var(--ink);
  background: #fff;
}

.hero {
  width: min(1320px, calc(100% - 32px));
  min-height: calc(100vh - 108px);
  margin: 0 auto;
  padding: 74px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  gap: 64px;
  align-items: center;
}

.hero-copy h1 {
  margin: 22px 0 28px;
  max-width: 760px;
  font-size: clamp(62px, 10vw, 138px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.86;
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-handle {
  margin-top: 18px;
  color: var(--ink) !important;
  font-size: 20px !important;
  font-weight: 900;
  line-height: 1.2 !important;
  letter-spacing: -0.02em;
}

.primary-link {
  width: min(440px, 100%);
  margin-top: 42px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.primary-link:hover {
  color: var(--rose);
  transform: translateX(8px);
}

.primary-link b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--powder-light);
  color: var(--rose);
}

.hero-visual {
  position: relative;
  min-height: 620px;
}

.hero-photo {
  position: absolute;
  object-fit: cover;
  border: 1px solid rgba(36, 35, 35, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 24px 76px rgba(70, 44, 52, 0.11);
}

.hero-photo-main {
  inset: 0 0 auto auto;
  width: 100%;
  height: 620px;
}

.section-reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.8,.2,1);
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.price-wrap {
  position: relative;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 106px 0 126px;
  overflow: hidden;
}

.price-bg {
  position: absolute;
  inset: 36px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  opacity: 0.26;
  filter: grayscale(1) saturate(0.45);
  pointer-events: none;
}

.price-bg img {
  width: 100%;
  height: 100%;
  min-height: 700px;
  object-fit: cover;
  border-radius: var(--radius);
}

.price-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 248, 247, 0.34), transparent 24%, transparent 76%, rgba(255, 248, 247, 0.34));
}

.price-card {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(34px, 5vw, 66px);
  border: 1px solid rgba(163, 59, 79, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(232, 189, 200, 0.96), rgba(240, 201, 210, 0.96)),
    var(--powder);
  box-shadow: 0 26px 80px rgba(70, 44, 52, 0.12);
}

.price-head {
  text-align: center;
}

.price-head h2 {
  margin: 16px 0 18px;
  color: var(--rose);
  font-size: clamp(36px, 7vw, 68px);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 0.9;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-head p:not(.eyebrow) {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(36, 35, 35, 0.72);
  line-height: 1.7;
}

.course-list {
  margin-top: 42px;
  display: grid;
}

.course-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(163, 59, 79, 0.38);
  opacity: 0;
  transform: translateY(28px);
}

.course-row.visible {
  animation: stairIn 0.72s cubic-bezier(.2,.8,.2,1) forwards;
}

.course-row:nth-child(2n) {
  margin-left: clamp(0px, 4vw, 34px);
}

.course-row:nth-child(3n) {
  margin-right: clamp(0px, 4vw, 28px);
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--rose);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.course-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(163, 59, 79, 0.28);
  border-radius: 999px;
  padding: 0 10px;
}

.course-row h3 {
  color: var(--rose);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.course-row p {
  max-width: 440px;
  margin-top: 10px;
  color: rgba(36, 35, 35, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.course-price {
  align-self: center;
  min-width: 120px;
  color: var(--rose);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.06em;
  text-align: right;
  white-space: nowrap;
}

.price-main,
.price-secondary {
  display: block;
}

.price-secondary {
  margin-top: 2px;
  color: rgba(163, 59, 79, 0.72);
  font-size: 0.58em;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.course-price small {
  display: block;
  margin-top: 6px;
  color: rgba(36, 35, 35, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.terms,
.contacts {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.contacts h2 {
  font-size: clamp(44px, 7vw, 94px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.term-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.term-card {
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(36, 35, 35, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 16px 44px rgba(70, 44, 52, 0.05);
}

.term-card span {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 44px;
  border-radius: 50%;
  background: var(--powder-light);
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
}

.term-card h3 {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.term-card p {
  color: var(--muted);
  line-height: 1.7;
}

.contacts {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: start;
}

.contacts h2 {
  margin: 20px 0 24px;
}

.contacts p:not(.eyebrow) {
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.contact-panel {
  border-top: 1px solid var(--line);
}

.contact-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.contact-panel a:hover {
  color: var(--rose);
  transform: translateX(10px);
}

.contact-panel span {
  color: var(--rose);
  font-size: 22px;
  letter-spacing: 0;
}

.site-footer {
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto 28px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@keyframes splashLetter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrow {
  to {
    width: min(520px, 74vw);
  }
}

@keyframes stairIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }

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

  .hero-visual {
    min-height: 520px;
  }

  .hero-photo-main {
    height: 520px;
  }

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

@media (max-width: 680px) {
  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
    min-height: 60px;
    padding: 10px 12px;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .brand {
    min-width: 120px;
  }

  .brand span {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .admin-link {
    display: none;
  }

  .hero,
  .price-wrap,
  .terms,
  .contacts,
  .site-footer {
    width: calc(100% - 24px);
  }

  .hero {
    min-height: auto;
    padding: 58px 0 56px;
    gap: 0;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13.5vw, 56px);
    letter-spacing: -0.06em;
    line-height: 0.94;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-visual {
    display: none;
  }

  .price-wrap {
    padding: 60px 0 80px;
  }

  .price-bg {
    display: none;
  }

  .price-card {
    width: 100%;
    padding: 30px 22px;
  }

  .price-head h2 {
    font-size: clamp(30px, 9vw, 38px);
    letter-spacing: 0.05em;
  }

  .course-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .course-row:nth-child(2n),
  .course-row:nth-child(3n) {
    margin-left: 0;
    margin-right: 0;
  }

  .course-price {
    text-align: left;
  }

  .terms,
  .contacts {
    padding: 72px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-top: 14px;
  }

  .contact-panel a {
    min-height: 68px;
    font-size: 28px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  body::before {
    background-size: 48px 48px;
  }

  .splash-inner {
    width: calc(100% - 28px);
  }

  .splash h1 {
    font-size: clamp(32px, 10.5vw, 42px);
    letter-spacing: 0.04em;
  }

  .site-header {
    align-items: center;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .lang-switch {
    padding: 3px;
  }

  .lang-switch button {
    min-width: 34px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(42px, 14vw, 54px);
    line-height: 0.9;
    overflow-wrap: anywhere;
  }

  .primary-link {
    font-size: 19px;
  }

  .price-card {
    box-shadow: 0 18px 54px rgba(70, 44, 52, 0.13);
  }

  .course-meta {
    flex-wrap: wrap;
  }

  .course-row h3,
  .course-price,
  .contact-panel a {
    overflow-wrap: anywhere;
  }

  .course-row p {
    font-size: 13px;
  }

  .term-card {
    min-height: 0;
  }

  .term-card span {
    margin-bottom: 28px;
  }

  .contacts {
    gap: 36px;
  }

  .contact-panel a {
    min-height: 62px;
    font-size: clamp(20px, 7vw, 28px);
  }
}
