* {
  box-sizing: border-box;
}

:root {
  --ink: #13203f;
  --blue: #1f5fbf;
  --blue-dark: #174a94;
  --blue-soft: #edf3fc;
  --pink: #9a5578;
  --pink-soft: #fbeef5;
  --text: #263247;
  --muted: #65728a;
  --line: #e4e9f1;
  --page: #fbfaf7;
  --card: #ffffff;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--page);
}

body {
  margin: 0;
  background: var(--page);
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.site-header-inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 800;
  text-decoration: none;
}

.site-back {
  color: var(--blue-dark);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-intro {
  padding: 46px 0 4px;
}

.shop-intro-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.shop-kicker {
  margin: 0 0 8px;
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-intro h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.shop-intro p:not(.shop-kicker) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.webinars {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.webinar-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  background: var(--card);
  border: 1px solid #eef1f6;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(19, 32, 63, 0.065);
}

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

.webinar-date,
.webinar-duration {
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.webinar-date {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.webinar-duration {
  margin-left: auto;
  background: var(--pink-soft);
  color: var(--pink);
}

.webinar-date::before,
.webinar-duration::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 7px;
  vertical-align: -2px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.webinar-date::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f5fbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E");
}

.webinar-duration::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a43f72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.webinar-title {
  min-height: 3.9em;
  margin: 0 0 28px;
  font-size: 1.24rem;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 740;
}

.webinar-prices {
  margin-bottom: 26px;
}

.webinar-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
  row-gap: 3px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.webinar-price:first-child {
  padding-top: 0;
  border-top: 0;
}

.variant-name {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 2px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.variant-description {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.variant-price {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  white-space: nowrap;
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--blue-dark);
}

.webinar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: auto;
  padding: 11px 16px;
  border: 1px solid #4f7fcc;
  border-radius: 8px;
  background: transparent;
  color: #315f9f;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.webinar-button::before {
  content: "i";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
}

.webinar-button:hover {
  background: #f4f7fc;
  border-color: var(--blue);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.webinar-button:focus-visible {
  outline: 3px solid #c9daf4;
  outline-offset: 3px;
}

.custom-webinar {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 48px;
}

.custom-webinar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
  border: 1px solid #f2dfe9;
  border-radius: 16px;
  background: var(--pink-soft);
}

.custom-webinar-copy h2 {
  margin: 0 0 7px;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.3;
}

.custom-webinar-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.custom-webinar-link {
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.custom-webinar-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.custom-webinar-link:focus-visible {
  outline: 3px solid #c9daf4;
  outline-offset: 4px;
  border-radius: 3px;
}

.site-footer {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.site-footer-inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .webinars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header-inner,
  .shop-intro-inner,
  .custom-webinar,
  .site-footer-inner {
    width: min(100% - 28px, 560px);
  }

  .site-header-inner {
    min-height: 60px;
  }

  .site-back {
    font-size: 0.84rem;
  }

  .shop-intro {
    padding-top: 32px;
  }

  .webinars {
    width: min(100% - 28px, 560px);
    padding: 28px 0;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .webinar-card {
    padding: 20px;
    border-radius: 14px;
  }

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

  .webinar-title {
    min-height: 0;
    margin-bottom: 24px;
    font-size: 1.18rem;
  }

  .webinar-price {
    grid-template-columns: 1fr;
  }

  .variant-price {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    margin-top: 5px;
  }

  .custom-webinar {
    margin-bottom: 32px;
  }

  .custom-webinar-inner {
    padding: 22px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    border-radius: 14px;
  }

  .custom-webinar-copy h2 {
    font-size: 1.18rem;
  }

  .custom-webinar-link {
    white-space: normal;
  }

  .site-footer-inner {
    min-height: 0;
    padding: 22px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
