:root {
  --rep-text: #111111;
  --rep-muted: #666666;
  --rep-line: #e8e8e8;
  --rep-soft: #f7f7f7;
  --rep-accent: #111111;
  --rep-max: 1180px;
}

.rep-wrap,
.rep-site-header,
.rep-section,
.rep-hero-grid,
.rep-video-block,
.rep-article,
.rep-archive {
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--rep-text);
}

.rep-wrap,
.rep-demo-home {
  max-width: var(--rep-max);
  margin: 0 auto;
  padding: 0 18px;
}

.rep-site-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid var(--rep-line);
  margin-bottom: 22px;
}

.rep-topbar {
  max-width: var(--rep-max);
  margin: 0 auto;
  min-height: 38px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--rep-muted);
  border-bottom: 1px solid var(--rep-line);
}

.rep-topbar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.rep-header-search input {
  border: 0;
  border-bottom: 1px solid var(--rep-line);
  background: transparent;
  min-width: 190px;
  font-size: 12px;
  padding: 6px 0;
  outline: 0;
}

.rep-brand-row {
  max-width: var(--rep-max);
  margin: 0 auto;
  min-height: 90px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.rep-brand {
  text-decoration: none !important;
  color: #111;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.rep-brand img {
  max-height: 74px;
  max-width: min(420px, 70vw);
  object-fit: contain;
  display: block;
}

.rep-nav-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.rep-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  margin: 5px auto;
}

.rep-nav {
  max-width: var(--rep-max);
  margin: 0 auto;
  padding: 0 18px 12px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.rep-nav a {
  color: #111;
  text-decoration: none !important;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.rep-nav a:hover {
  border-color: #111;
}

.rep-hero-grid {
  max-width: var(--rep-max);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr) minmax(240px, 0.6fr);
  gap: 24px;
  align-items: start;
}

.rep-hero-grid__main,
.rep-hero-grid__side,
.rep-hero-grid__rail {
  min-width: 0;
}

.rep-hero-grid__side,
.rep-hero-grid__rail {
  display: grid;
  gap: 22px;
}

.rep-card {
  border-bottom: 1px solid var(--rep-line);
  padding-bottom: 18px;
}

.rep-card__media {
  display: block;
  overflow: hidden;
  background: var(--rep-soft);
  margin-bottom: 12px;
  aspect-ratio: 16 / 10;
}

.rep-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.rep-card:hover .rep-card__media img {
  transform: scale(1.035);
}

.rep-card__title {
  margin: 0;
  color: var(--rep-text);
  font-size: 22px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.rep-card__title a {
  color: inherit;
  text-decoration: none !important;
}

.rep-card__title a:hover {
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
}

.rep-card__excerpt {
  margin: 10px 0 0;
  color: #555;
  font-size: 15px;
  line-height: 1.45;
}

.rep-card--hero .rep-card__media {
  aspect-ratio: 16 / 9;
}

.rep-card--hero .rep-card__title {
  font-size: clamp(34px, 4vw, 54px);
  line-height: .98;
  letter-spacing: -0.045em;
}

.rep-card--side .rep-card__title {
  font-size: 24px;
}

.rep-card--compact {
  display: block;
  padding-bottom: 16px;
}

.rep-card--compact .rep-card__media {
  display: none;
}

.rep-card--compact .rep-card__title {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.rep-card--list {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}

.rep-card--list .rep-card__media {
  margin-bottom: 0;
}

.rep-meta {
  margin: 0 0 7px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--rep-muted);
  font-size: 12px;
  line-height: 1.3;
}

.rep-kicker {
  display: inline-block;
  color: #111;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
}

.rep-dot {
  color: #aaa;
}

.rep-section {
  max-width: var(--rep-max);
  margin: 0 auto 40px;
}

.rep-section__head {
  border-top: 3px solid #111;
  padding-top: 12px;
  margin-bottom: 20px;
}

.rep-section__head h2,
.rep-archive-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.rep-card-grid {
  display: grid;
  gap: 22px;
}

.rep-card-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rep-card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rep-card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rep-card-list {
  display: grid;
  gap: 22px;
}

.rep-ad-slot {
  width: 100%;
  min-height: 92px;
  margin: 22px auto;
  padding: 14px;
  background: #f6f6f6;
  border: 1px solid #eeeeee;
  display: grid;
  place-items: center;
  text-align: center;
  color: #8a8a8a;
}

.rep-ad-slot__label {
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #aaa;
}

.rep-ad-slot__placeholder {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.rep-ad-slot__code,
.rep-ad-slot__code > * {
  max-width: 100%;
}

.rep-video-block {
  max-width: var(--rep-max);
  margin: 40px auto;
  padding: clamp(22px, 4vw, 42px);
  background: #101010;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  gap: 30px;
  align-items: center;
}

.rep-video-block h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.rep-video-block p {
  color: rgba(255,255,255,.76);
  margin: 0;
  line-height: 1.55;
}

.rep-video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.rep-video-frame iframe,
.rep-video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.rep-video-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #ddd;
  padding: 20px;
  text-align: center;
}

.rep-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 18px 60px;
}

.rep-article__header {
  margin-bottom: 24px;
}

.rep-article__title {
  margin: 10px 0 14px;
  font-size: clamp(38px, 7vw, 68px);
  line-height: .96;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.rep-article__excerpt {
  margin: 0;
  color: #555;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.rep-article__image {
  margin: 0 0 28px;
}

.rep-article__image img {
  width: 100%;
  height: auto;
  display: block;
}

.rep-article__content {
  font-size: 19px;
  line-height: 1.72;
}

.rep-article__content p,
.rep-article__content ul,
.rep-article__content ol {
  margin-bottom: 1.25em;
}

.rep-archive {
  max-width: var(--rep-max);
  margin: 0 auto;
  padding: 22px 18px 60px;
}

.rep-archive-header {
  border-top: 4px solid #111;
  padding-top: 14px;
  margin-bottom: 22px;
}

.rep-archive-header p {
  max-width: 720px;
  color: #555;
  font-size: 17px;
}

.rep-admin .rep-admin__lead {
  font-size: 16px;
  max-width: 860px;
}

.rep-admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.rep-admin-card {
  background: #fff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.rep-admin-card--full {
  grid-column: 1 / -1;
}

.rep-admin-field {
  display: block;
  margin-bottom: 16px;
}

.rep-admin-field textarea {
  width: 100%;
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.rep-admin-list {
  columns: 2;
  margin-left: 18px;
}

.rep-checkbox {
  display: block;
  margin: 12px 0 18px;
}

@media (max-width: 1024px) {
  .rep-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rep-hero-grid__rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rep-card-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .rep-topbar {
    display: none;
  }
  .rep-brand-row {
    min-height: 66px;
    justify-content: flex-start;
  }
  .rep-brand {
    font-size: 32px;
    letter-spacing: -0.035em;
  }
  .rep-nav-toggle {
    display: block;
  }
  .rep-nav {
    display: none;
    padding: 0 18px 18px;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
  }
  .rep-site-header.is-open .rep-nav {
    display: flex;
  }
  .rep-nav a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--rep-line);
  }
  .rep-hero-grid,
  .rep-hero-grid__rail,
  .rep-card-grid--2,
  .rep-card-grid--3,
  .rep-card-grid--4,
  .rep-video-block,
  .rep-card--list {
    grid-template-columns: 1fr;
  }
  .rep-card--hero .rep-card__title {
    font-size: 34px;
  }
  .rep-card__title,
  .rep-card--side .rep-card__title {
    font-size: 24px;
  }
  .rep-card--compact .rep-card__title {
    font-size: 18px;
  }
  .rep-video-block {
    margin: 26px auto;
  }
  .rep-admin-grid {
    grid-template-columns: 1fr;
  }
  .rep-admin-list {
    columns: 1;
  }
}
