:root {
  --ink: #181716;
  --muted: #68635e;
  --paper: #fbfaf7;
  --line: #ded8cf;
  --coral: #e86f52;
  --coral-dark: #b8442c;
  --sage: #6f8265;
  --blue: #315d72;
  --gold: #c89c45;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(20, 18, 16, 0.14);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.preview-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.home-body {
  background: var(--paper);
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(24, 23, 22, 0.08);
  backdrop-filter: blur(18px);
}

.home-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.home-nav a {
  text-decoration: none;
}

.home-nav a:hover {
  color: var(--ink);
}

.home-hero {
  width: min(1200px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(300px, 0.82fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: end;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 22px) 0 0;
}

.home-hero-copy {
  padding-bottom: clamp(24px, 4vw, 44px);
}

.home-hero h1 {
  max-width: 720px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(38px, 5vw, 62px);
}

.home-hero .hero-lead {
  max-width: 700px;
  color: #3d3935;
  font-size: clamp(17px, 1.8vw, 20px);
}

.hero-portrait {
  position: relative;
  width: min(100%, 430px);
  align-self: end;
  justify-self: end;
  margin: 0;
}

.hero-portrait img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

.events-section {
  padding: clamp(24px, 4vw, 46px) clamp(18px, 6vw, 84px) clamp(54px, 7vw, 92px);
  background: #eff3ef;
}

#events,
#anna,
#photos,
#reviews,
#faq,
#contacts {
  scroll-margin-top: 108px;
}

.schedule-heading {
  width: min(1200px, 100%);
  margin: 0 auto 22px;
}

.schedule-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 58px);
}

.featured-events-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.event-image-link {
  display: block;
  background: #f4f0e9;
  overflow: hidden;
}

.event-image-link img {
  transition: transform 220ms ease;
}

.event-image-link:hover img {
  transform: scale(1.025);
}

.featured-event-card {
  border-color: rgba(24, 23, 22, 0.1);
  box-shadow: 0 18px 46px rgba(23, 22, 20, 0.08);
}

.featured-event-card .event-body {
  gap: 11px;
  padding: 16px;
}

.featured-event-card h3 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.12;
}

.featured-event-card .event-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 24px;
  color: #4b565b;
  font-size: 13px;
  font-weight: 750;
}

.event-location-link,
.event-location-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.event-location-link::before,
.event-location-text::before {
  content: "";
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  background: var(--coral-dark);
  mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%202C8.1%202%205%205.1%205%209c0%205.2%207%2013%207%2013s7-7.8%207-13c0-3.9-3.1-7-7-7zm0%209.5c-1.4%200-2.5-1.1-2.5-2.5S10.6%206.5%2012%206.5s2.5%201.1%202.5%202.5S13.4%2011.5%2012%2011.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%202C8.1%202%205%205.1%205%209c0%205.2%207%2013%207%2013s7-7.8%207-13c0-3.9-3.1-7-7-7zm0%209.5c-1.4%200-2.5-1.1-2.5-2.5S10.6%206.5%2012%206.5s2.5%201.1%202.5%202.5S13.4%2011.5%2012%2011.5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.event-location-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.event-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-details-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.event-details-link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.event-buy-button {
  min-height: 42px;
  padding: 10px 16px;
}

.event-page-body {
  background: var(--paper);
}

.event-detail {
  background: var(--paper);
}

.event-detail-hero {
  width: min(1200px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.78fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) 0 clamp(44px, 7vw, 92px);
}

.event-back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 850;
  text-decoration: none;
}

.event-back-link:hover {
  color: var(--ink);
}

.event-detail h1 {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 88px);
}

.event-detail-lead {
  max-width: 680px;
  color: #3d3935;
  font-size: clamp(18px, 2vw, 23px);
}

.event-detail-image {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(24, 23, 22, 0.13);
}

.event-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 28px 0 16px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.event-detail-facts div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 112px;
  padding: 16px;
  background: var(--white);
}

.event-detail-facts span {
  color: var(--sage);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.event-detail-facts strong {
  font-size: 16px;
  line-height: 1.25;
}

.event-detail-location-link {
  color: inherit;
  text-decoration-color: rgba(49, 93, 114, 0.36);
  text-underline-offset: 4px;
}

.event-detail-location-link:hover {
  color: var(--blue);
}

.event-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.event-detail-buy {
  min-width: 180px;
}

.event-detail-description {
  display: grid;
  grid-template-columns: minmax(240px, 0.44fr) minmax(0, 0.86fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(52px, 7vw, 92px) clamp(18px, 6vw, 84px);
  background: var(--white);
  border-top: 1px solid rgba(24, 23, 22, 0.08);
}

.event-detail-description h2 {
  font-size: clamp(34px, 5vw, 62px);
}

.event-detail-text {
  max-width: 760px;
  color: #3d3935;
  font-size: 18px;
}

.event-detail-text p {
  margin-bottom: 18px;
}

.event-detail-bottom-action {
  margin-top: 32px;
}

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 3vw, 30px);
  text-decoration: none;
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
  font-weight: 500;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(58px, 10vw, 132px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5.5vw, 74px);
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.1;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 32px;
  font-size: clamp(18px, 2vw, 25px);
}

.hero-actions,
.form-actions,
.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.primary {
  background: var(--coral);
  color: var(--white);
}

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

.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
}

.danger {
  color: var(--coral-dark);
  border-color: rgba(184, 68, 44, 0.24);
  background: #fff5f2;
}

.disabled {
  color: var(--muted);
  border-color: var(--line);
  background: #f4f1ec;
  cursor: not-allowed;
}

.disabled:hover {
  transform: none;
}

.section {
  padding: clamp(64px, 8vw, 116px) clamp(18px, 6vw, 84px);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 20px;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.event-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border: 1px solid rgba(24, 23, 22, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 38px rgba(23, 22, 20, 0.08);
}

.event-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.event-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
}

.event-date-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 10px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 8px 10px;
  color: var(--blue);
  background: #edf4f3;
  border: 1px solid rgba(49, 93, 114, 0.12);
  border-radius: 8px;
}

.event-date-day {
  grid-row: 1 / 3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 0.9;
}

.event-date-month {
  overflow: hidden;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-date-meta {
  color: #5d6c72;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.event-body p {
  color: var(--muted);
}

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 4px;
}

.event-price {
  width: fit-content;
  border: 1px solid rgba(24, 23, 22, 0.1);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--ink);
  background: #f7f4ef;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.teacher-copy li,
.faq-list p {
  color: var(--muted);
}

.teacher-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.05fr);
  min-height: 720px;
  background: #f6efe9;
}

.teacher-photo {
  min-height: 480px;
  background: #f6efe9;
}

.teacher-copy {
  align-self: center;
  padding: clamp(34px, 5vw, 68px);
}

.teacher-section.home-teacher-section {
  grid-template-columns: minmax(220px, 0.58fr) minmax(320px, 1.18fr);
  min-height: 440px;
}

.home-teacher-section .teacher-photo {
  min-height: 440px;
}

.home-teacher-section .local-teacher-photo {
  background-image: url("/images/anna-teaching.jpg");
  background-position: center 42%;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-teacher-section .teacher-copy {
  padding: clamp(28px, 4vw, 54px);
}

.home-teacher-section h2 {
  font-size: clamp(34px, 4.3vw, 56px);
}

.home-teacher-section .lead {
  font-size: 20px;
}

.home-teacher-section .check-list {
  gap: 12px;
  margin-top: 20px;
}

.proof-section {
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px) 0;
}

.proof-heading {
  width: min(1200px, calc(100% - 36px));
  margin: 0 auto 18px;
}

.proof-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
}

.proof-rail {
  display: flex;
  gap: clamp(12px, 1.6vw, 20px);
  align-items: flex-start;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px max(18px, calc((100vw - 1200px) / 2)) 26px;
  scroll-padding-inline: max(18px, calc((100vw - 1200px) / 2));
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.proof-rail::-webkit-scrollbar {
  height: 10px;
}

.proof-rail::-webkit-scrollbar-track {
  background: transparent;
}

.proof-rail::-webkit-scrollbar-thumb {
  background: rgba(24, 23, 22, 0.2);
  border: 3px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.event-photos-section {
  color: var(--white);
  background: #171614;
}

.event-photos-section .proof-rail::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.24);
}

.event-photo-card,
.review-card {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
}

.event-photo-card {
  width: clamp(230px, 24vw, 340px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #24211e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.event-photo-card img,
.review-card img {
  width: 100%;
  height: 100%;
  display: block;
}

.event-photo-card img {
  object-fit: cover;
}

.reviews-section {
  background: #f8f3ec;
}

.reviews-rail {
  padding-bottom: 34px;
}

.review-card {
  width: clamp(180px, 17vw, 240px);
  overflow: hidden;
  aspect-ratio: 9 / 16;
  padding: 8px;
  background: #1c2a36;
  border: 1px solid rgba(24, 23, 22, 0.1);
  border-radius: 8px;
  box-shadow: 0 20px 54px rgba(44, 35, 27, 0.18);
}

.review-card img {
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
}

.media-preview-button {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: inherit;
  cursor: zoom-in;
}

.media-preview-button img {
  transition: transform 220ms ease, filter 220ms ease;
}

.media-preview-button:hover {
  transform: none;
}

.media-preview-button:hover img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 62px;
  gap: 14px;
  align-items: center;
  padding: clamp(18px, 3vw, 42px);
  background: rgba(12, 11, 10, 0.88);
  backdrop-filter: blur(12px);
}

.image-preview-modal[hidden] {
  display: none;
}

.image-preview-frame {
  min-width: 0;
  max-width: min(1120px, 100%);
  max-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  justify-self: center;
  margin: 0;
}

.image-preview-frame img {
  max-width: 100%;
  max-height: calc(100vh - 84px);
  display: block;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.image-preview-close,
.image-preview-nav {
  width: 48px;
  height: 48px;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.image-preview-close:hover,
.image-preview-nav:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.image-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 34px;
  line-height: 1;
}

.image-preview-nav {
  font-size: 42px;
  line-height: 1;
}

.image-preview-prev {
  justify-self: end;
}

.image-preview-next {
  justify-self: start;
}

.lead {
  color: var(--blue);
  font-size: 22px;
}

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

.check-list li {
  padding-left: 24px;
  border-left: 3px solid var(--coral);
}

.faq {
  background: #f4f6f8;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
}

details {
  padding: 22px 24px;
  background: var(--white);
  border: 1px solid rgba(24, 23, 22, 0.08);
  border-radius: 8px;
}

summary {
  font-weight: 850;
  cursor: pointer;
}

details p {
  margin: 14px 0 0;
}

.contacts-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 7vw, 96px) clamp(18px, 6vw, 84px);
  background: #fbfaf7;
  border-top: 1px solid rgba(24, 23, 22, 0.08);
}

.contacts-copy {
  max-width: 620px;
}

.contacts-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 20px;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(24, 23, 22, 0.09);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(23, 22, 20, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 23, 22, 0.18);
  box-shadow: 0 18px 42px rgba(23, 22, 20, 0.1);
}

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

.contact-card strong {
  margin-bottom: 3px;
  font-size: 20px;
  line-height: 1.1;
}

.contact-card span span {
  color: var(--muted);
  font-weight: 750;
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
}

.contact-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.contact-icon-text {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.instagram-contact .contact-icon {
  background: linear-gradient(135deg, #7f4bc8, #df4f6f 52%, #f2a84b);
}

.telegram-contact .contact-icon {
  background: #2aabee;
}

.online-course-body {
  background: #f6f4ef;
}

.course-page-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(246, 244, 239, 0.94);
  border-bottom: 1px solid rgba(24, 23, 22, 0.08);
  backdrop-filter: blur(18px);
}

.course-page-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.course-page-nav a {
  text-decoration: none;
}

.course-page-nav a:hover {
  color: var(--ink);
}

.online-course-hero {
  width: min(1220px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(22px, 5vw, 68px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 0 clamp(20px, 4vw, 42px);
}

.online-course-hero-copy {
  padding-bottom: 0;
}

.online-course-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.96;
}

.online-course-lead {
  max-width: 720px;
  margin: 0 0 28px;
  color: #37332f;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.42;
}

.online-course-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.online-course-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.online-course-proof-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  color: #293f33;
  background: #e8efe8;
  border: 1px solid rgba(111, 130, 101, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.online-course-offer {
  align-self: stretch;
  display: grid;
  align-content: end;
  gap: 14px;
}

.online-course-portrait {
  margin: 0;
  min-height: 360px;
  display: grid;
  align-items: end;
  justify-items: center;
  overflow: hidden;
  background: #e8e2d8;
  border: 1px solid rgba(24, 23, 22, 0.1);
  border-radius: 8px;
}

.online-course-portrait img {
  width: min(100%, 340px);
  display: block;
  object-fit: contain;
}

.online-course-price-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
}

.online-course-price-card span,
.online-course-price-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.online-course-price-card strong {
  font-size: 44px;
  line-height: 1;
}

.online-course-price-card .button {
  width: 100%;
  margin-top: 4px;
}

.online-course-section {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 84px);
}

.online-course-section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 28px;
}

.online-course-section-heading h2,
.online-course-teacher h2,
.online-course-final h2 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1;
}

.online-course-pain {
  background: var(--ink);
}

.online-course-pain .eyebrow,
.online-course-pain h2 {
  color: var(--white);
}

.online-course-pain-grid,
.online-course-included-grid {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}

.online-course-pain-grid article,
.online-course-included-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 220px;
  padding: 20px;
  border-radius: 8px;
}

.online-course-pain-grid article {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.online-course-pain-grid article span {
  color: var(--coral);
  font-size: 13px;
  font-weight: 900;
}

.online-course-pain-grid h3,
.online-course-included-grid h3 {
  margin: 0;
  font-size: 22px;
}

.online-course-pain-grid p,
.online-course-included-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.online-course-included {
  background: #eff3ef;
}

.online-course-included-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.online-course-included-grid article {
  min-height: 200px;
  background: var(--white);
  border: 1px solid rgba(24, 23, 22, 0.08);
  box-shadow: 0 16px 42px rgba(23, 22, 20, 0.06);
}

.online-course-included-grid p {
  color: var(--muted);
}

.online-course-before-after {
  background: #f6f4ef;
}

.speech-grid {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.speech-column {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
}

.speech-column span {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.speech-column p {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.25;
}

.speech-muted {
  color: var(--muted);
  background: #eee9e0;
}

.speech-accent {
  color: var(--white);
  background: var(--blue);
}

.online-course-program {
  background: var(--white);
}

.program-list {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  counter-reset: program;
}

.program-list li {
  counter-increment: program;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: #fbfaf7;
  border: 1px solid rgba(24, 23, 22, 0.08);
  border-radius: 8px;
  font-size: 17px;
  font-weight: 800;
}

.program-list li::before {
  content: counter(program, decimal-leading-zero);
  color: var(--coral-dark);
  font-size: 13px;
  font-weight: 900;
}

.online-course-teacher {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(54px, 8vw, 104px) clamp(18px, 6vw, 84px);
  background: #e8efe8;
}

.online-course-teacher figure {
  margin: 0;
}

.online-course-teacher img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.online-course-teacher .lead {
  max-width: 760px;
  margin: 18px 0;
  color: #37332f;
  font-size: clamp(18px, 2vw, 22px);
}

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

.online-course-check-list li {
  position: relative;
  padding-left: 24px;
  color: #37332f;
  font-weight: 750;
}

.online-course-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 9px;
  background: var(--coral);
  border-radius: 999px;
}

.online-course-final {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: center;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 6vw, 84px);
  color: var(--white);
  background: var(--ink);
}

.online-course-final h2,
.online-course-final .eyebrow {
  color: var(--white);
}

.online-course-final p {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
}

.online-course-final-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
}

.online-course-final-card span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.online-course-final-card strong {
  font-size: 48px;
  line-height: 1;
}

.online-course-faq {
  background: #f6f4ef;
}

.online-course-faq .faq-list {
  width: min(900px, 100%);
  margin: 0 auto;
}

.online-course-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 25;
  width: min(520px, calc(100% - 28px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 16px;
  color: var(--white);
  background: rgba(24, 23, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 18px 54px rgba(24, 23, 22, 0.28);
  transform: translateX(-50%);
}

.online-course-sticky-cta span {
  font-size: 14px;
  font-weight: 750;
}

.online-course-sticky-cta .button {
  min-height: 38px;
  padding: 9px 14px;
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(52px, 7vw, 92px) clamp(18px, 6vw, 84px);
  color: var(--white);
  background: var(--ink);
}

.footer h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 56px);
}

address {
  display: grid;
  gap: 10px;
  font-style: normal;
  text-align: right;
}

address a {
  text-decoration: none;
}

.admin-body {
  min-height: 100svh;
  background: #f4f6f8;
}

.admin-shell {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.login-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.login-panel {
  width: min(100%, 460px);
}

.login-panel h1 {
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 56px);
}

.is-hidden {
  display: none !important;
}

.form-error {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--coral-dark);
  font-weight: 750;
}

.admin-topbar {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.admin-topbar-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-topbar-title {
  min-width: 0;
}

.admin-topbar h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 74px);
}

.admin-topbar .admin-row-actions {
  justify-content: flex-end;
  gap: 8px;
  padding-top: 2px;
}

.admin-topbar .admin-row-actions .button,
.admin-topbar .admin-row-actions button {
  min-height: 34px;
  padding: 7px 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(24, 23, 22, 0.12);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

.admin-topbar .admin-row-actions .button:hover,
.admin-topbar .admin-row-actions button:hover {
  color: var(--ink);
  background: var(--white);
}

.admin-tabs {
  width: fit-content;
  display: flex;
  justify-self: start;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-tab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--muted);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}

.admin-tab:hover {
  color: var(--ink);
  background: rgba(24, 23, 22, 0.06);
}

.admin-tab.is-active {
  color: var(--white);
  background: var(--ink);
  pointer-events: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 22px;
  align-items: start;
}

.admin-panel {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(24, 23, 22, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(24, 23, 22, 0.08);
}

.admin-panel h2 {
  margin-bottom: 20px;
  font-family: inherit;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 850;
}

.admin-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-panel-heading h2 {
  margin-bottom: 6px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

input[type="date"],
input[type="time"] {
  min-height: 48px;
  color-scheme: light;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.72;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

select {
  min-height: 48px;
  cursor: pointer;
}

.large-textarea {
  min-height: 170px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 750;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.admin-events {
  display: grid;
  gap: 12px;
}

.admin-event {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px;
  background: var(--white);
  border: 1px solid rgba(24, 23, 22, 0.08);
  border-radius: 8px;
}

.admin-event img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}

.admin-event h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.admin-event-main {
  min-width: 0;
  padding-right: 48px;
}

.admin-event-description {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.admin-event-full-description {
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.admin-event-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.admin-meta {
  color: var(--muted);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--blue);
  background: #eaf2f5;
  font-size: 12px;
  font-weight: 850;
}

.status-pill.hidden {
  color: var(--coral-dark);
  background: #fff0eb;
}

.status-pill.muted {
  color: var(--muted);
  background: #f2eee8;
}

.sales-pill {
  color: #1f7a55;
  background: #eaf6f0;
}

.admin-event .admin-row-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.icon-button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--blue);
  background: var(--white);
  border-color: var(--line);
  border-radius: 8px;
}

.icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.delete-icon {
  color: var(--coral-dark);
  background: #fff5f2;
  border-color: rgba(184, 68, 44, 0.24);
}

.stripe-panel {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  margin-top: 0;
  padding: 6px 9px;
  background: #f7f7ff;
  border: 1px solid rgba(99, 91, 255, 0.22);
  border-radius: 6px;
}

.stripe-panel-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.stripe-mark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 6px;
  padding: 3px 7px;
  color: var(--white);
  background: #635bff;
  font-size: 12px;
  font-weight: 900;
}

.stripe-status {
  color: #4e48c6;
  font-size: 11px;
  font-weight: 850;
  text-align: left;
}

.stripe-status.ready {
  color: #1f7a55;
}

.stripe-copy-button {
  min-height: 30px;
  width: auto;
  border-color: rgba(99, 91, 255, 0.24);
  color: #ffffff;
  background: #635bff;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.stripe-copy-button:hover {
  background: #4f46e5;
}

.stripe-hint {
  color: var(--muted);
  font-size: 11px;
}

.telegram-panel {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  background: #f1f9ff;
  border: 1px solid rgba(34, 158, 217, 0.24);
  border-radius: 6px;
}

.telegram-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.telegram-mark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 6px;
  padding: 3px 7px;
  color: var(--white);
  background: #229ed9;
  font-size: 12px;
  font-weight: 900;
}

.telegram-status {
  color: #1f6f99;
  font-size: 11px;
  font-weight: 850;
}

.telegram-send-button {
  min-height: 30px;
  width: auto;
  padding: 6px 10px;
  color: #ffffff;
  background: #229ed9;
  border-color: rgba(34, 158, 217, 0.28);
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.telegram-send-button:hover {
  background: #178ac0;
}

.telegram-send-button:disabled {
  cursor: not-allowed;
  color: #7a8b95;
  background: #e3edf3;
  border-color: #d2e1e8;
}

.online-shell {
  width: min(1240px, calc(100% - 36px));
}

.online-layout {
  display: block;
}

.online-access-panel {
  overflow: hidden;
  padding: 0;
}

.online-access-header {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(520px, 1.6fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  border-bottom: 1px solid rgba(24, 23, 22, 0.08);
}

.online-access-header h2 {
  margin-bottom: 6px;
}

.online-access-header .admin-note {
  margin: 0;
}

.online-course-form {
  padding: 24px;
}

.online-course-form .field {
  margin-bottom: 0;
}

.online-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}

.online-copy-fields {
  display: grid;
  gap: 16px;
}

.online-description-field textarea {
  min-height: 188px;
}

.online-side-fields {
  display: grid;
  gap: 18px;
}

.online-image-control {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: end;
}

.online-image-control .course-image-preview.is-hidden + input {
  grid-column: 1 / -1;
}

.online-image-control input {
  min-width: 0;
}

.online-price-field {
  max-width: 220px;
}

.online-sync-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  background: #fbfaf7;
  border: 1px solid rgba(24, 23, 22, 0.08);
  border-radius: 8px;
}

.online-form-actions {
  align-items: center;
  margin-top: 18px;
}

.online-course-stripe-panel {
  display: grid;
  grid-template-areas:
    "main link meta actions";
  grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr) minmax(130px, auto) minmax(130px, auto);
  gap: 14px;
  align-items: center;
  min-height: 0;
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
}

.online-status-main {
  grid-area: main;
  min-width: 0;
}

.online-course-stripe-summary {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: var(--text);
}

.online-course-stripe-summary strong {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-course-stripe-summary span {
  color: #3f39bd;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.stripe-public-link {
  display: grid;
  gap: 5px;
  margin: 10px 0;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  background: rgba(99, 91, 255, 0.08);
  border: 1px solid rgba(99, 91, 255, 0.18);
  border-radius: 7px;
}

.stripe-public-link span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.stripe-public-link strong {
  color: #2b2a76;
  font-size: 14px;
}

.online-course-stripe-panel .stripe-public-link {
  grid-area: link;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

.online-course-stripe-panel .stripe-public-link strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-status-meta {
  grid-area: meta;
  display: grid;
  gap: 4px;
  min-width: 90px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.online-status-actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
}

.online-status-actions .stripe-hint {
  max-width: 150px;
  text-align: right;
}

.online-courses,
.online-months {
  display: grid;
  gap: 16px;
}

.online-course-card,
.online-month-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(24, 23, 22, 0.08);
  border-radius: 8px;
}

.online-course-header,
.online-month-card-header {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.online-course-header img,
.online-course-image-placeholder,
.online-month-card-header img,
.online-month-image-placeholder {
  width: 132px;
  aspect-ratio: 1;
  border-radius: 7px;
  background: #f2eee8;
}

.online-course-header img,
.online-month-card-header img {
  object-fit: cover;
}

.online-course-image-placeholder,
.online-month-image-placeholder {
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.online-course-main,
.online-month-card-main {
  min-width: 0;
}

.online-course-title-row,
.online-month-title-row,
.online-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.online-course-title-row h3,
.online-month-title-row h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.15;
}

.online-course-actions,
.online-month-actions,
.online-lecture-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.online-course-description {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.course-image-preview {
  width: 132px;
  aspect-ratio: 1;
  margin: 0;
}

.course-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-stripe-panel {
  margin-top: 0;
}

.online-lectures {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.online-section-heading {
  color: var(--muted);
}

.online-section-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.online-section-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.online-lecture {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #fbfaf7;
  border: 1px solid rgba(24, 23, 22, 0.08);
  border-radius: 8px;
}

.online-lecture > div:not(.online-lecture-actions):not(.online-lecture-image) {
  min-width: 0;
  flex: 1;
}

.online-lecture-image {
  width: 72px;
  aspect-ratio: 1;
  flex: 0 0 72px;
  border-radius: 7px;
  object-fit: cover;
  background: #f2eee8;
}

.online-lecture-image-placeholder {
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.lecture-image-preview {
  width: 112px;
  aspect-ratio: 1;
}

.lecture-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-lecture h5 {
  margin: 0 0 5px;
  font-size: 15px;
  line-height: 1.2;
}

.online-lecture p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.online-lecture-form {
  display: grid;
  gap: 0;
  padding: 14px;
  background: #f7f7ff;
  border: 1px solid rgba(99, 91, 255, 0.16);
  border-radius: 8px;
}

.empty-state.compact {
  padding: 12px;
  font-size: 13px;
}

.admin-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
}

.analytics-shell {
  width: min(1240px, calc(100% - 36px));
}

.analytics-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.analytics-toolbar h2 {
  margin-bottom: 6px;
}

.analytics-toolbar .admin-note {
  margin-top: 0;
}

.analytics-period-field {
  width: min(220px, 100%);
  margin-bottom: 0;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.analytics-kpi {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  background: var(--white);
  border: 1px solid rgba(24, 23, 22, 0.08);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(24, 23, 22, 0.07);
}

.analytics-kpi span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.analytics-kpi strong {
  align-self: center;
  color: var(--ink);
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1;
  font-weight: 900;
}

.analytics-kpi small {
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
}

.analytics-funnel {
  margin-bottom: 16px;
}

.analytics-funnel .admin-note {
  margin-top: 6px;
}

.analytics-funnel-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analytics-funnel-step {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  background: #fbfaf7;
  border: 1px solid rgba(24, 23, 22, 0.08);
  border-radius: 8px;
}

.analytics-funnel-step-main {
  display: grid;
  gap: 6px;
}

.analytics-funnel-step-main span,
.analytics-funnel-rate span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-funnel-step-main strong {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.95;
  font-weight: 900;
}

.analytics-funnel-step-main small {
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
}

.analytics-funnel-rate {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.analytics-funnel-rate strong {
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.analytics-funnel-bar {
  overflow: hidden;
  height: 10px;
  background: #eee7dc;
  border-radius: 999px;
}

.analytics-funnel-bar i {
  display: block;
  height: 100%;
  background: var(--coral);
  border-radius: inherit;
}

.analytics-status {
  min-height: 22px;
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.analytics-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.analytics-panel-wide {
  grid-column: 1 / -1;
}

.analytics-panel {
  min-width: 0;
}

.analytics-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.analytics-panel-heading h2 {
  margin-bottom: 0;
}

.analytics-panel-heading span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 -8px;
  padding: 0 8px;
}

.analytics-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.analytics-table th,
.analytics-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(24, 23, 22, 0.08);
  text-align: left;
  vertical-align: top;
}

.analytics-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.analytics-table td {
  color: var(--ink);
  font-weight: 750;
}

.analytics-table td strong {
  display: block;
  color: var(--ink);
  font-weight: 850;
}

.analytics-table td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.analytics-empty {
  color: var(--muted) !important;
  text-align: center !important;
  font-weight: 750 !important;
}

.image-preview {
  overflow: hidden;
  width: min(180px, 100%);
  aspect-ratio: 1;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f1ec;
}

.image-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.admin-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  color: var(--white);
  background: rgba(24, 23, 22, 0.94);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.admin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-toast.is-error {
  background: rgba(148, 38, 38, 0.96);
}

.split-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(120px, 0.65fr);
  gap: 12px;
}

.money-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.money-input span {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 14px;
  color: var(--sage);
  background: #f7f4ef;
  border-right: 1px solid var(--line);
  font-weight: 850;
}

.money-input input {
  border: 0;
  border-radius: 0;
}

.confirm-dialog {
  width: min(440px, calc(100% - 36px));
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.confirm-dialog::backdrop {
  background: rgba(24, 23, 22, 0.42);
}

.confirm-panel {
  padding: 24px;
  background: var(--white);
  border: 1px solid rgba(24, 23, 22, 0.1);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.confirm-panel h2 {
  margin-bottom: 12px;
  font-family: inherit;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 850;
}

.confirm-panel p:not(.eyebrow) {
  color: var(--muted);
}

.thanks-body {
  min-height: 100svh;
  background: linear-gradient(120deg, #fbfaf7, #f4f6f8);
}

.thanks-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.thanks-panel {
  width: min(100%, 640px);
  padding: clamp(24px, 5vw, 42px);
  background: var(--white);
  border: 1px solid rgba(24, 23, 22, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.thanks-status-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--sage);
  border-radius: 999px;
}

.thanks-status-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.thanks-panel h1 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(40px, 7vw, 70px);
}

.thanks-lead,
.form-status {
  color: var(--muted);
}

.thanks-lead {
  max-width: 520px;
  margin-bottom: 26px;
  font-size: 18px;
}

.thanks-receipt {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.receipt-main {
  display: grid;
  gap: 6px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.receipt-grid div {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 16px;
  background: #fbfaf7;
}

.receipt-main span,
.receipt-grid span {
  color: var(--sage);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.receipt-main strong {
  font-size: 22px;
  line-height: 1.15;
}

.receipt-grid strong {
  font-size: 16px;
  line-height: 1.25;
}

.thanks-confirmation {
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.thanks-confirmation-copy {
  max-width: 520px;
  margin-bottom: 18px;
}

.thanks-confirmation-copy h2 {
  margin-bottom: 0;
  font-family: inherit;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 850;
}

.thanks-form {
  margin-top: 0;
}

.thanks-submit {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 750;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.ghost.dark {
  color: var(--ink);
  border-color: var(--line);
  background: transparent;
}

@media (max-width: 900px) {
  .home-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .home-hero,
  .event-detail-hero,
  .event-detail-description,
  .contacts-section,
  .online-course-hero,
  .online-course-teacher,
  .online-course-final {
    grid-template-columns: 1fr;
  }

  .online-course-offer {
    grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1fr);
    align-items: end;
  }

  .online-course-portrait {
    min-height: 280px;
  }

  .online-course-pain-grid,
  .online-course-included-grid,
  .program-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    padding-top: 18px;
  }

  .home-hero-copy {
    padding-bottom: 10px;
  }

  .hero-portrait {
    max-width: 520px;
    justify-self: center;
  }

  .event-detail-image {
    max-width: 560px;
  }

  .teacher-section,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .online-access-header,
  .online-form-grid {
    grid-template-columns: 1fr;
  }

  .online-course-stripe-panel {
    grid-template-areas:
      "main"
      "link"
      "meta"
      "actions";
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .online-status-actions {
    justify-content: flex-start;
  }

  .online-status-actions .stripe-hint {
    max-width: none;
    text-align: left;
  }

  .online-price-field {
    max-width: none;
  }

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

  .analytics-funnel-steps {
    grid-template-columns: 1fr;
  }

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

  .event-photo-card {
    width: min(56vw, 260px);
  }

  .review-card {
    width: min(48vw, 230px);
  }

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

  .teacher-section {
    min-height: auto;
  }

  .teacher-section.home-teacher-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .home-teacher-section .teacher-photo {
    min-height: 320px;
  }

  .home-teacher-section .local-teacher-photo {
    background-position: center 38%;
    background-size: cover;
  }
}

@media (max-width: 620px) {
  .home-header {
    gap: 8px;
    padding: 10px 16px;
  }

  .course-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 10px 16px;
  }

  .course-page-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .brand {
    font-size: 22px;
  }

  .online-course-hero {
    width: min(100% - 32px, 1220px);
    padding-top: 26px;
  }

  .online-course-hero h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .online-course-hero-actions .button {
    width: 100%;
  }

  .online-course-offer {
    grid-template-columns: 1fr;
  }

  .online-course-portrait {
    min-height: 260px;
  }

  .online-course-section,
  .online-course-teacher,
  .online-course-final {
    padding-inline: 16px;
  }

  .online-course-pain-grid,
  .online-course-included-grid,
  .speech-grid,
  .program-list {
    grid-template-columns: 1fr;
  }

  .online-course-pain-grid article,
  .online-course-included-grid article {
    min-height: auto;
  }

  .online-course-sticky-cta {
    display: flex;
    bottom: 10px;
    border-radius: 10px;
  }

  .online-course-sticky-cta span {
    font-size: 13px;
  }

  .home-hero {
    width: min(100% - 32px, 1200px);
    gap: 8px;
    padding-top: 10px;
  }

  .home-hero-copy {
    padding-bottom: 0;
  }

  .home-hero h1 {
    margin-bottom: 10px;
    font-size: clamp(34px, 10.8vw, 44px);
  }

  .home-hero .hero-lead {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.42;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .button {
    min-height: 42px;
    padding: 10px 16px;
  }

  .hero-portrait {
    width: min(100%, 250px);
  }

  .home-teacher-section .teacher-photo {
    min-height: 280px;
  }

  .home-teacher-section .teacher-copy {
    padding: 30px 18px 40px;
  }

  .proof-section {
    padding: 34px 0 38px;
  }

  .proof-heading {
    width: min(100% - 32px, 1200px);
    margin-bottom: 14px;
  }

  .proof-heading h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .proof-rail {
    padding-right: 16px;
    padding-left: 16px;
    scroll-padding-inline: 16px;
  }

  .event-photo-card {
    width: min(74vw, 300px);
  }

  .review-card {
    width: min(58vw, 230px);
  }

  .image-preview-modal {
    grid-template-columns: 1fr;
    padding: 64px 14px 18px;
  }

  .image-preview-frame,
  .image-preview-frame img {
    max-height: calc(100vh - 96px);
  }

  .image-preview-nav {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    font-size: 34px;
  }

  .image-preview-prev {
    left: 10px;
    justify-self: auto;
  }

  .image-preview-next {
    right: 10px;
    justify-self: auto;
  }

  .image-preview-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .hero-actions .button,
  .event-actions,
  .event-buy-button {
    width: 100%;
  }

  .event-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .event-details-link {
    text-align: center;
  }

  .events-grid,
  .event-detail-facts,
  .receipt-grid,
  .contact-links,
  .split-fields {
    grid-template-columns: 1fr;
  }

  .event-detail-actions .button,
  .event-detail-bottom-action .button {
    width: 100%;
  }

  .event-footer,
  .footer,
  .admin-topbar,
  .analytics-toolbar,
  .admin-event {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    width: 100%;
  }

  .admin-topbar-main {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-topbar .admin-row-actions {
    justify-content: flex-start;
    padding-top: 0;
  }

  .admin-tab {
    flex: 1;
  }

  .online-shell .admin-topbar h1 {
    font-size: 64px;
  }

  .online-shell .admin-topbar {
    margin-bottom: 18px;
  }

  .footer,
  address {
    text-align: left;
  }

  .admin-event img {
    width: 100%;
    height: 180px;
  }

  .admin-event {
    padding: 54px 14px 14px;
  }

  .online-course-header,
  .online-month-card-header {
    grid-template-columns: 1fr;
  }

  .online-access-header,
  .online-course-form {
    padding: 18px;
  }

  .online-image-control {
    grid-template-columns: 1fr;
  }

  .online-image-control .course-image-preview.is-hidden + input {
    grid-column: auto;
  }

  .online-form-actions button {
    width: 100%;
  }

  .online-course-header img,
  .online-course-image-placeholder,
  .online-month-card-header img,
  .online-month-image-placeholder {
    width: 100%;
  }

  .online-lecture {
    flex-direction: column;
  }

  .admin-event-main {
    padding-right: 0;
  }

  .stripe-panel,
  .telegram-panel {
    grid-column: 1;
    flex-direction: column;
    align-items: stretch;
    margin-top: 0;
  }

  .stripe-copy-button,
  .telegram-send-button {
    width: 100%;
  }

  .analytics-kpis {
    grid-template-columns: 1fr;
  }

  .analytics-kpi {
    min-height: 112px;
  }

  .analytics-period-field {
    width: 100%;
  }

  .thanks-panel h1 {
    font-size: clamp(38px, 13vw, 56px);
  }

  .thanks-actions .button {
    width: 100%;
  }
}
