/* FREESKIN.PRO — homepage (body.home only) v11 */

/* ── Main content shell (single source for overlap) ── */
body.home {
  --fs-home-overlap-top: 270px;
  --fs-home-overlap-bottom: 28px;
}

/* Theme .site{overflow:hidden} + negative .container margin clips the footer. */
body.home #page.site {
  overflow: visible !important;
}

body.home #content.site-content {
  margin-top: var(--fs-home-overlap-top) !important;
  margin-bottom: var(--fs-home-overlap-bottom) !important;
  padding: 22px 30px 32px !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.04) !important;
}

/* Footer stays inside .container. Kill inline/theme margin-bottom:-325px
   so it cannot open a dark void or clip the colophon. */
body.home .container {
  margin-bottom: 0 !important;
}

body.home .container > .site-footer-container {
  margin-top: 0 !important;
  position: relative;
  z-index: 2;
}

/* Tablet: soft transition vs abrupt flat full-bleed */
@media (min-width: 768px) and (max-width: 1199px) {
  body.home {
    --fs-home-overlap-top: 0px;
    --fs-home-overlap-bottom: 0px;
  }

  body.home #content.site-content {
    margin-top: 12px !important;
    margin-bottom: 16px !important;
    margin-left: 12px !important;
    margin-right: 12px !important;
    padding: 18px 18px 22px !important;
    border-radius: 14px !important;
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.22),
      0 0 0 1px rgba(255, 255, 255, 0.04) !important;
  }
}

@media (max-width: 767px) {
  body.home {
    --fs-home-overlap-top: 0px;
    --fs-home-overlap-bottom: 0px;
  }

  body.home #content.site-content {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 16px 14px 20px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}

@media (min-width: 1200px) {
  body.home #content.site-content {
    padding-left: 34px !important;
    padding-right: 34px !important;
  }
}

/* ── Hero slider (lower desktop height) ── */
.container > .card-slider-container {
  margin-top: 4px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(0, 117, 255, 0.1);
}

.card-slider-container .swiper-slide > a,
.card-slider-container,
.card-slider-container .card-slider__image {
  min-height: 300px !important;
}

.card-slider-container .swiper-slide > a {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.card-slider-container .card-slider__image {
  position: absolute;
  inset: 0;
  filter: none !important;
  background-size: cover !important;
  background-position: center !important;
  transform: scale(1);
  transition: transform 8s ease;
}

.card-slider-container .swiper-slide-active .card-slider__image {
  transform: scale(1.04);
}

.card-slider-container .card-slider__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 20, 0.05) 0%,
    rgba(8, 12, 20, 0.22) 38%,
    rgba(8, 12, 20, 0.82) 72%,
    rgba(8, 12, 20, 0.94) 100%
  );
  pointer-events: none;
}

.card-slider-container .card-slider__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 22px 48px;
  pointer-events: none;
}

.card-slider-container .card-slider__body-inner {
  max-width: 860px;
}

.card-slider-container .card-slider__category {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 6px;
  background: #0075ff;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: none;
}

.card-slider-container .card-slider__title {
  margin-top: 10px;
  color: #fff !important;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2 !important;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-slider-container .card-slider__excerpt {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 14px;
  line-height: 1.45;
  max-width: 680px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-slider-container .swiper-pagination {
  bottom: 12px !important;
  z-index: 4;
}

.card-slider-container .swiper-pagination-bullet {
  width: 7px;
  height: 7px;
  margin: 0 3px !important;
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.35) !important;
  transition: width 0.25s ease, background 0.25s ease;
}

.card-slider-container .swiper-pagination-bullet-active {
  width: 20px;
  border-radius: 999px;
  background: #0075ff !important;
}

.card-slider-container .swiper-button-next,
.card-slider-container .swiper-button-prev {
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 10px;
  background: rgba(12, 16, 24, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.card-slider-container .swiper-button-next:hover,
.card-slider-container .swiper-button-prev:hover {
  background: rgba(0, 117, 255, 0.9);
  transform: scale(1.03);
}

.card-slider-container .swiper-button-next::after,
.card-slider-container .swiper-button-prev::after {
  font-size: 16px;
  font-weight: 700;
}

@media (min-width: 768px) {
  .card-slider-container .swiper-slide > a,
  .card-slider-container,
  .card-slider-container .card-slider__image {
    min-height: 390px !important;
  }

  .card-slider-container .card-slider__body {
    padding: 0 36px 52px;
  }
}

@media (max-width: 767px) {
  .container > .card-slider-container {
    border-radius: 12px;
    margin-top: 4px;
  }

  .card-slider-container .swiper-slide > a,
  .card-slider-container,
  .card-slider-container .card-slider__image {
    min-height: 260px !important;
  }

  .card-slider-container .card-slider__body {
    padding: 0 16px 40px;
  }

  .card-slider-container .card-slider__title {
    font-size: 1.1rem;
    -webkit-line-clamp: 3;
  }

  .card-slider-container .card-slider__excerpt {
    display: none;
  }

  .card-slider-container .swiper-button-next,
  .card-slider-container .swiper-button-prev {
    display: none;
  }
}

/* ── Section headings ── */
body.home .section-block {
  padding-top: 26px !important;
  margin-bottom: 0;
  clear: both;
  overflow: visible;
}

body.home .section-block__header {
  margin-top: 6px !important;
  margin-bottom: 16px;
  padding-top: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
  clear: both;
  position: relative;
  z-index: 3;
}

body.home .section-block__title {
  position: relative;
  padding-left: 14px;
  font-size: clamp(1.15rem, 2vw, 1.5rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em;
  text-transform: none !important;
  color: #12151c;
  white-space: normal;
  word-break: normal;
}

body.home .section-block__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 1.05em;
  transform: translateY(-50%);
  border-radius: 2px;
  background: #0075ff;
}

body.home .section-block__title a {
  color: #0075ff !important;
  text-decoration: none;
  font-weight: 700;
  margin-left: 0.15em;
  font-size: 0.85em;
}

body.home .section-block__title a:hover {
  text-decoration: underline;
}

body.home #main > .section-block.section-html.fs-home-popular .section-html__body::before,
body.home #main > .section-block.section-html:first-of-type .section-html__body::before {
  content: none !important;
  display: none !important;
}

/* ── Top intro ── */
body.home .fs-home-intro {
  margin: 0 0 6px;
  padding: 16px 20px 14px;
  border-radius: 0 12px 12px 0;
  border-left: 4px solid #0075ff;
  background: rgba(0, 117, 255, 0.05);
  border-top: none;
  border-right: none;
  border-bottom: none;
}

body.home .fs-home-intro__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem) !important;
  line-height: 1.15 !important;
  letter-spacing: -0.015em;
  color: #12151c;
  font-weight: 800;
}

body.home .fs-home-intro__lead {
  margin: 0 0 12px;
  max-width: 46rem;
  font-size: 15px;
  line-height: 1.55;
  color: #3a4455;
}

body.home .fs-home-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.home .fs-home-chips__item {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 6px;
  background: #f4f8ff;
  border: 1px solid rgba(0, 117, 255, 0.32);
  color: #005fcc !important;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.home .fs-home-chips__item:hover,
body.home .fs-home-chips__item:focus {
  background: #0075ff;
  border-color: #0075ff;
  color: #fff !important;
  transform: none;
}

/* ── Fresh from editorial ── */
body.home .fs-home-fresh-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

body.home .fs-home-fresh-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 14px 16px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #0075ff;
  text-decoration: none !important;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.home .fs-home-fresh-card:hover {
  background: #f8fbff;
  border-color: rgba(0, 117, 255, 0.4);
  border-left-color: #0075ff;
  box-shadow: none;
  transform: none;
}

body.home .fs-home-fresh-card__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #64748b;
}

body.home .fs-home-fresh-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #12151c !important;
}

@media (max-width: 900px) {
  body.home .fs-home-fresh-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  body.home .fs-home-fresh-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Reviews strip ── */
body.home .fs-home-reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

body.home .fs-home-review-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.home .fs-home-review-card:hover {
  border-color: rgba(0, 117, 255, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transform: none;
}

body.home .fs-home-review-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b1018;
  display: block;
}

body.home .fs-home-review-card__title {
  padding: 12px 12px 2px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  color: #12151c !important;
}

body.home .fs-home-review-card__meta {
  padding: 0 12px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

body.home .fs-home-reviews-more {
  margin: 14px 0 0;
  text-align: right;
}

body.home .fs-home-reviews-more a {
  font-weight: 700;
  color: #0075ff !important;
  text-decoration: none;
}

body.home .fs-home-reviews-more a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  body.home .fs-home-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  body.home .fs-home-reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Popular grid ── */
body.home .popular-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
  padding-top: 2px !important;
}

body.home .popular {
  height: 200px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(18, 21, 28, 0.08);
  box-shadow: none;
  overflow: hidden;
}

body.home .popular img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.home .popular:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14) !important;
  border-color: rgba(0, 117, 255, 0.28);
}

body.home .popular .content-overlay {
  padding: 56px 14px 12px !important;
  background: linear-gradient(
    to top,
    rgba(8, 12, 20, 0.94) 0%,
    rgba(8, 12, 20, 0.4) 55%,
    transparent 100%
  ) !important;
}

body.home .popular:hover .content-overlay {
  background: linear-gradient(
    to top,
    rgba(0, 90, 200, 0.92) 0%,
    rgba(0, 117, 255, 0.28) 58%,
    transparent 100%
  ) !important;
}

body.home .popular-text {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

@media (max-width: 992px) {
  body.home .popular-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    max-width: none !important;
  }

  body.home .popular {
    height: 190px !important;
  }
}

@media (max-width: 520px) {
  body.home .popular-grid {
    grid-template-columns: 1fr !important;
  }

  body.home .popular {
    height: 180px !important;
  }
}

/* ── Apps grid ── */
body.home .apps-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
  margin-top: 4px !important;
  margin-bottom: 12px !important;
}

body.home .apps {
  height: 188px !important;
  border-radius: 10px !important;
  overflow: hidden;
  border: 1px solid rgba(0, 117, 255, 0.18);
  background: #0f141c !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  position: relative;
}

body.home .apps a {
  display: block;
  height: 100%;
  position: relative;
  text-decoration: none;
}

body.home .apps img {
  opacity: 0.82 !important;
  transition: opacity 0.25s ease, transform 0.4s ease;
}

body.home .apps-text {
  top: auto !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  transform: none !important;
  padding: 52px 12px 12px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: left !important;
  background: linear-gradient(
    to top,
    rgba(8, 12, 20, 0.96) 0%,
    rgba(8, 12, 20, 0.55) 55%,
    transparent 100%
  ) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

/* tool badge on apps */
body.home .apps a::after {
  content: "TOOL";
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(0, 117, 255, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  pointer-events: none;
}

body.home .apps:hover {
  transform: translateY(-3px) !important;
  background: #0f141c !important;
  box-shadow: 0 14px 28px rgba(0, 117, 255, 0.2);
  border-color: rgba(0, 117, 255, 0.45);
}

body.home .apps:hover img {
  opacity: 0.92 !important;
  transform: scale(1.04);
}

@media (max-width: 992px) {
  body.home .apps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 520px) {
  body.home .apps-grid {
    grid-template-columns: 1fr !important;
  }

  body.home .apps {
    height: 168px !important;
  }
}

/* ── Promo / Video sections: same bg as other blocks ── */
body.home .section-preset--bgc-4 {
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 0 12px !important;
}

body.home .section-preset--bgc-4::before {
  display: none !important;
  background: transparent !important;
}

/* ── Vertical post cards ── */
body.home .post-cards--vertical {
  grid-gap: 16px !important;
  row-gap: 26px !important;
  margin-bottom: 8px !important;
}

body.home .post-card--vertical {
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  border: none;
  transition: none;
}

body.home .post-card--vertical:hover {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}

body.home .post-card--vertical .post-card__thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b1018;
  border-radius: 8px;
  transition: transform 0.25s ease;
}

body.home .post-card--vertical:hover .post-card__thumbnail {
  transform: translateY(-3px);
}

body.home .post-card--vertical .post-card__thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
  background: #0b1018;
  position: relative;
}

body.home .post-card--vertical .post-card__thumbnail img,
body.home .post-card--vertical .post-card__thumbnail a::before {
  border-radius: 0 !important;
}

body.home .post-card--vertical .post-card__thumbnail img {
  aspect-ratio: auto !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block;
  background: transparent;
  transition: transform 0.35s ease;
}

body.home .post-card--vertical:hover .post-card__thumbnail img {
  transform: scale(1.03);
}

body.home .post-card--vertical .post-card__title {
  padding: 0;
  margin-top: 10px;
  margin-bottom: 4px;
  font-size: 1.05em !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

body.home .post-card--vertical .post-card__title a {
  color: #12151c;
  text-decoration: none;
  transition: color 0.15s ease;
}

body.home .post-card--vertical:hover .post-card__title a {
  color: #0075ff;
}

body.home .post-card--vertical .post-card__meta {
  padding: 0;
  margin-top: 2px;
}

body.home .post-card--vertical .post-card__date,
body.home .post-card--vertical .post-card__date time,
body.home .fs-home-promo-meta {
  font-size: 0.86rem;
  font-weight: 600;
  color: #64748b !important;
}

/* ── Small post cards (Статьи) ── */
body.home .post-cards--small {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

body.home .post-card--small {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0;
  background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

body.home .post-card--small:hover {
  background: #f8fbff;
  border-color: rgba(0, 117, 255, 0.3);
  transform: none;
}

body.home .post-card--small .post-card__thumbnail {
  max-width: 88px !important;
  margin-top: 0 !important;
  flex-shrink: 0;
}

body.home .post-card--small .post-card__thumbnail a {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #0b1018;
}

body.home .post-card--small .post-card__thumbnail img {
  width: 88px !important;
  height: 62px !important;
  object-fit: cover;
  border-radius: 8px !important;
  display: block;
}

body.home .post-card--small .post-card__body {
  min-width: 0;
}

body.home .post-card--small .post-card__title {
  font-size: 0.98em !important;
  font-weight: 700 !important;
  line-height: 1.28 !important;
}

body.home .post-card--small .post-card__title a {
  color: #12151c;
  text-decoration: none;
}

body.home .post-card--small:hover .post-card__title a {
  color: #0075ff;
}

body.home .post-card--small .post-card__meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

body.home .post-card--small .post-card__date,
body.home .post-card--small .post-card__date time {
  color: #64748b !important;
  font-weight: 600;
}

body.home .post-card__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.home .post-card__date::before {
  position: static !important;
  display: inline !important;
  width: auto !important;
  height: auto !important;
  margin: 0 4px 0 0 !important;
  vertical-align: middle;
}

body.home .post-card--small .post-card__description {
  display: none;
}

@media (max-width: 680px) {
  body.home .post-cards--small {
    grid-template-columns: 1fr;
  }
}

/* ── SEO block: calmer than intro ── */
body.home .home-content {
  margin-top: 28px;
  padding: 20px 20px 18px;
  border-radius: 12px;
  border-left: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

body.home .home-header {
  margin: 0 0 12px;
  font-size: clamp(1.1rem, 2vw, 1.35rem) !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em;
  color: #12151c;
  font-weight: 800;
}

body.home .home-text {
  color: #475569;
  margin-bottom: 0 !important;
  font-size: 14.5px;
  line-height: 1.55;
}

body.home .home-text h3 {
  margin: 1.3em 0 0.5em;
  font-size: 1.05em !important;
  color: #12151c;
  font-weight: 800;
}

body.home .home-text p {
  margin-bottom: 0.85em;
}

body.home .home-text ul {
  padding-left: 0;
}

body.home .home-text li {
  margin-bottom: 0.4em;
}

body.home .home-text strong {
  color: #334155;
}

body.home .home-text a {
  color: #0075ff;
}

@media (max-width: 680px) {
  body.home .fs-home-intro {
    padding: 14px 12px 12px;
  }

  body.home .fs-home-chips__item {
    font-size: 0.85rem;
    padding: 6px 10px;
  }

  body.home .home-content {
    padding: 14px 12px;
  }
}
