.osp-home-main,
.osp-home-main * {
  box-sizing: border-box;
}

.osp-home-main {
  color: var(--osp-text);
  background: #fff;
}

.osp-home-container {
  width: min(calc(100% - 40px), var(--osp-max-width));
  margin: 0 auto;
}

.osp-home-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--osp-line);
  background:
    radial-gradient(circle at 100% 0, rgba(216, 38, 47, .14) 0 70px, transparent 71px),
    radial-gradient(circle at 4% 72%, rgba(216, 38, 47, .045) 0 52px, transparent 53px),
    linear-gradient(115deg, #f3f4f6 0%, #f7f4f4 55%, #f5f1f2 100%);
}

.osp-home-hero::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 390px;
  height: 390px;
  content: "";
  border: 1px solid rgba(216, 38, 47, .09);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(216, 38, 47, .025), 0 0 0 38px rgba(216, 38, 47, .018);
}

.osp-home-hero__inner {
  position: relative;
  z-index: 1;
  padding: 80px 0 74px;
  text-align: center;
}

.osp-home-hero h1 {
  margin: 0;
  color: #262626;
  font-size: clamp(30px, 3.35vw, 48px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.2;
}

.osp-home-hero__inner > p {
  margin: 16px 0 31px;
  color: #676767;
  font-size: 17px;
}

.osp-home-search {
  display: flex;
  width: min(100%, 720px);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 10px;
  box-shadow: 0 7px 24px rgba(20, 20, 20, .08);
}

.osp-home-search input[type="search"] {
  width: 100%;
  height: 66px;
  padding: 0 26px;
  background: #fff;
  border: 0;
  outline: 0;
  font-size: 17px;
}

.osp-home-search button {
  display: grid;
  flex: 0 0 74px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: var(--osp-accent);
  border: 0;
  cursor: pointer;
}

.osp-home-search button:hover { background: #bd1821; }
.osp-home-search svg { width: 27px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 2; }

.osp-popular-searches {
  display: flex;
  width: min(100%, 720px);
  margin: 19px auto 0;
  align-items: center;
  justify-content: center;
  gap: 15px;
  overflow: hidden;
  color: #585858;
  font-size: 13px;
  white-space: nowrap;
}

.osp-popular-searches strong { flex: 0 0 auto; color: var(--osp-accent); }
.osp-popular-searches a { flex: 0 0 auto; color: inherit; text-decoration: none; }
.osp-popular-searches a:hover { color: var(--osp-accent); }

.osp-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  padding: 32px 0 58px;
}

.osp-category-card {
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #292929;
  background: #fff;
  border: 1px solid #e1e2e5;
  border-radius: 11px;
  box-shadow: 0 3px 13px rgba(0, 0, 0, .025);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.osp-category-card:hover {
  color: var(--osp-accent);
  border-color: rgba(216, 38, 47, .45);
  box-shadow: 0 8px 22px rgba(216, 38, 47, .08);
  transform: translateY(-2px);
}

.osp-category-card__icon {
  width: 54px;
  height: 54px;
  display: block;
  color: var(--osp-accent);
}

.osp-category-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.osp-category-card__icon text {
  fill: currentColor;
  stroke: none;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
}

.osp-section-title {
  margin: 0 0 26px;
  padding-left: 15px;
  color: #252525;
  border-left: 4px solid var(--osp-accent);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.25;
}

.osp-featured-section { padding: 0 0 46px; }
.osp-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }

.osp-featured-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e1e4;
  border-radius: 11px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .035);
}

.osp-featured-card__image,
.osp-latest-item__image {
  display: block;
  overflow: hidden;
  background: #f4f5f6;
}

.osp-featured-card__image { aspect-ratio: 16 / 8.7; }
.osp-featured-card__image img,
.osp-latest-item__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.osp-featured-card:hover img,
.osp-latest-item:hover img { transform: scale(1.025); }

.osp-image-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #333;
  background: linear-gradient(135deg, #fafafa, #fff0f0);
  font-size: 20px;
  font-weight: 800;
}
.osp-image-fallback strong { color: var(--osp-accent); }
.osp-featured-card__body { padding: 22px 23px 24px; }
.osp-card-category { color: var(--osp-accent); font-size: 13px; font-weight: 800; }
.osp-featured-card h3 { margin: 8px 0 11px; font-size: 21px; line-height: 1.35; }
.osp-featured-card h3 a,
.osp-latest-item h3 a { color: #202020; text-decoration: none; }
.osp-featured-card h3 a:hover,
.osp-latest-item h3 a:hover { color: var(--osp-accent); }
.osp-featured-card p { margin: 0; color: #686868; font-size: 14px; line-height: 1.75; }

.osp-ad-slot,
.osp-ad-placeholder { margin: 0 0 38px; text-align: center; }

.osp-home-primary-ad {
  padding-top: 38px;
}

.osp-home-primary-ad .osp-ad-slot,
.osp-home-primary-ad .osp-ad-placeholder {
  width: 100%;
  margin-bottom: 0;
}
.osp-ad-placeholder {
  min-height: 100px;
  display: grid;
  place-items: center;
  color: #8b8b8b;
  background: linear-gradient(110deg, #f5f5f5, #fafafa, #f3f3f3);
  border: 1px solid #e2e2e2;
  border-radius: 9px;
  font-size: 12px;
  letter-spacing: .08em;
}

.osp-home-columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(285px, .85fr);
  align-items: start;
  gap: 26px;
  padding-bottom: 56px;
}

.osp-latest-panel,
.osp-sidebar-card {
  background: #fff;
  border: 1px solid #dedfe2;
  border-radius: 11px;
}
.osp-latest-panel { padding: 28px; }
.osp-sidebar-card { margin-bottom: 20px; padding: 25px 23px; }
.osp-latest-panel .osp-section-title,
.osp-sidebar-card .osp-section-title { margin-bottom: 10px; font-size: 21px; }

.osp-latest-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid #e7e7e7;
}
.osp-latest-item__image { aspect-ratio: 16 / 9; border-radius: 7px; }
.osp-latest-item__content { min-width: 0; }
.osp-latest-item h3 { margin: 6px 0 8px; font-size: 20px; line-height: 1.4; }
.osp-latest-item p { margin: 0 0 8px; color: #686868; font-size: 14px; line-height: 1.65; }

.osp-load-more {
  width: min(100%, 410px);
  min-height: 50px;
  display: block;
  margin: 28px auto 0;
  color: var(--osp-accent);
  background: #fff;
  border: 1px solid var(--osp-accent);
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}
.osp-load-more:hover { color: #fff; background: var(--osp-accent); }
.osp-load-more:disabled { cursor: wait; opacity: .65; }

.osp-popular-list { margin: 0; padding: 0; list-style: none; }
.osp-popular-list li { min-height: 52px; display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid #ececec; }
.osp-popular-list li:last-child { border-bottom: 0; }
.osp-popular-list li > span { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--osp-accent); border-radius: 50%; font-size: 11px; font-weight: 800; }
.osp-popular-list a { overflow: hidden; color: #333; font-size: 14px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.osp-popular-list a:hover { color: var(--osp-accent); }
.osp-popular-list b { color: #8d8d8d; font-size: 11px; font-weight: 600; white-space: nowrap; }
.osp-sidebar-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.osp-sidebar-categories a { min-height: 38px; display: grid; place-items: center; color: #444; background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; font-size: 13px; text-decoration: none; }
.osp-sidebar-categories a:hover { color: var(--osp-accent); border-color: rgba(216, 38, 47, .42); }
.osp-home-sidebar .osp-ad-slot,
.osp-home-sidebar .osp-ad-placeholder {
  width: 100%;
  min-height: 520px;
  margin-bottom: 0;
}

.osp-home-sidebar .osp-ad-slot .adsbygoogle {
  width: 100% !important;
  min-height: 520px;
}

.osp-core-active .site-info,
.osp-core-active .site-footer { display: none !important; }
.osp-site-footer { color: #c8c8c8; background: #18191a; }
.osp-site-footer a { color: #d4d4d4; text-decoration: none; }
.osp-site-footer a:hover { color: #fff; }
.osp-site-footer__inner { width: min(calc(100% - 40px), var(--osp-max-width)); margin: 0 auto; padding: 54px 0 38px; display: grid; grid-template-columns: 1.35fr 1fr .9fr 1fr; gap: 50px; }
.osp-footer-brand > a { color: #fff; font-family: Arial, "Helvetica Neue", sans-serif; font-size: 25px; font-weight: 800; letter-spacing: -1.3px; }
.osp-footer-brand > a strong { color: var(--osp-accent); }
.osp-footer-brand p { max-width: 310px; margin: 17px 0; color: #b8b8b8; font-size: 13px; line-height: 1.8; }
.osp-site-footer h2 { margin: 3px 0 18px; color: #fff; font-size: 15px; }
.osp-site-footer ul { margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 18px; list-style: none; }
.osp-footer-categories ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.osp-site-footer li { font-size: 13px; }
.osp-footer-socials { display: flex; gap: 9px; }
.osp-footer-socials a { width: 34px; height: 34px; display: grid; place-items: center; background: #2d2e30; border-radius: 50%; font-size: 12px; font-weight: 800; }
.osp-site-footer__bottom { width: min(calc(100% - 40px), var(--osp-max-width)); margin: 0 auto; padding: 20px 0 24px; border-top: 1px solid #343536; text-align: center; }
.osp-site-footer__bottom p { margin: 4px 0; color: #929292; font-size: 12px; line-height: 1.65; }
.osp-site-footer__notice span { display: block; }

[data-osp-theme="dark"] .osp-home-main { color: #ededed; background: #111; }
[data-osp-theme="dark"] .osp-home-hero { background: linear-gradient(115deg, #171717, #1e1718); }
[data-osp-theme="dark"] .osp-home-hero h1,
[data-osp-theme="dark"] .osp-section-title { color: #f2f2f2; }
[data-osp-theme="dark"] .osp-category-card,
[data-osp-theme="dark"] .osp-featured-card,
[data-osp-theme="dark"] .osp-latest-panel,
[data-osp-theme="dark"] .osp-sidebar-card { color: #eee; background: #1b1b1b; border-color: #333; }
[data-osp-theme="dark"] .osp-featured-card h3 a,
[data-osp-theme="dark"] .osp-latest-item h3 a,
[data-osp-theme="dark"] .osp-popular-list a { color: #eee; }
[data-osp-theme="dark"] .osp-sidebar-categories a { color: #ddd; background: #212121; border-color: #393939; }
[data-osp-theme="dark"] .osp-latest-item,
[data-osp-theme="dark"] .osp-popular-list li { border-color: #343434; }

@media (max-width: 960px) {
  .osp-home-hero__inner { padding: 62px 0; }
  .osp-category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .osp-category-card { min-height: 110px; font-size: 14px; }
  .osp-featured-grid { gap: 16px; }
  .osp-home-columns { grid-template-columns: minmax(0, 1fr); }
  .osp-home-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .osp-home-sidebar .osp-sidebar-card { margin: 0; }
  .osp-home-sidebar .osp-ad-slot,
  .osp-home-sidebar .osp-ad-placeholder { grid-column: 1 / -1; }
  .osp-home-sidebar .osp-ad-slot,
  .osp-home-sidebar .osp-ad-placeholder,
  .osp-home-sidebar .osp-ad-slot .adsbygoogle { min-height: 250px; }
  .osp-site-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .osp-home-container { width: min(calc(100% - 28px), var(--osp-max-width)); }
  .osp-home-hero__inner { padding: 46px 0 42px; }
  .osp-home-hero h1 { font-size: 30px; line-height: 1.3; }
  .osp-home-hero__inner > p { margin: 13px auto 24px; font-size: 14px; line-height: 1.65; }
  .osp-home-search input[type="search"] { height: 56px; padding: 0 17px; font-size: 15px; }
  .osp-home-search button { flex-basis: 60px; }
  .osp-popular-searches { justify-content: flex-start; overflow-x: auto; }
  .osp-home-primary-ad { padding-top: 24px; }
  .osp-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 24px 0 40px; }
  .osp-category-card { min-height: 98px; }
  .osp-category-card__icon { width: 46px; height: 46px; }
  .osp-section-title { margin-bottom: 18px; font-size: 22px; }
  .osp-featured-grid { grid-template-columns: minmax(0, 1fr); }
  .osp-featured-card__image { aspect-ratio: 16 / 8; }
  .osp-latest-panel { padding: 19px 16px; }
  .osp-latest-item { grid-template-columns: 118px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
  .osp-latest-item h3 { margin: 4px 0 7px; font-size: 16px; }
  .osp-latest-item p { display: none; }
  .osp-home-sidebar { display: block; }
  .osp-home-sidebar .osp-sidebar-card { margin-bottom: 18px; }
  .osp-home-sidebar .osp-ad-slot,
  .osp-home-sidebar .osp-ad-placeholder,
  .osp-home-sidebar .osp-ad-slot .adsbygoogle { min-height: 220px; }
  .osp-site-footer__inner { width: calc(100% - 36px); padding: 40px 0 28px; grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .osp-site-footer__bottom { width: calc(100% - 36px); }
}

@media (prefers-reduced-motion: reduce) {
  .osp-category-card,
  .osp-featured-card img,
  .osp-latest-item img { transition: none !important; }
}
