﻿/**
 * Секции главной (front-page.php) — стили из src-verstka/css/main.css.
 * Изолированы под .shusha-homepage, чтобы Kava/WooCommerce не ломали вёрстку.
 */

.shusha-shell--home .shusha-content {
  margin: 0;
  padding: 0;
  max-width: none;
}

.shusha-homepage.site-main {
  margin: 0;
  padding: 0 0 120px;
  max-width: none;
  width: 100%;
}

.shusha-homepage h1,
.shusha-homepage h2,
.shusha-homepage h3,
.shusha-homepage p {
  margin: 0;
}

/* Hero «Детство» — статичный первый экран (src-verstka/blocks/styles/hero.css). */
.shusha-homepage .hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.shusha-homepage .hero__picture,
.shusha-homepage .hero__picture img {
  width: 100%;
  height: 100%;
}

.shusha-homepage .hero__picture img {
  object-fit: cover;
}

.shusha-homepage .hero__content {
  position: absolute;
  top: 39.8%;
  left: 50%;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.shusha-homepage .hero__content:hover,
.shusha-homepage .hero__content:focus-visible {
  color: #fff;
  text-decoration: none;
}

.shusha-homepage .hero__content h1 {
  display: flex;
  width: 400px;
  height: 100px;
  align-items: flex-end;
  justify-content: center;
}

.shusha-homepage .hero__content h1 img {
  width: 157px;
  height: auto;
}

.shusha-homepage .hero__content p {
  min-height: 120px;
  font-size: 20px;
}

@media (max-width: 767.98px) {
  .shusha-homepage .hero {
    height: 765px;
    aspect-ratio: auto;
  }

  .shusha-homepage .hero__content {
    top: 293px;
  }

  .shusha-homepage .hero__content h1 {
    width: 350px;
  }

  .shusha-homepage .hero__content h1 img {
    width: 100px;
  }

  .shusha-homepage .hero__content p {
    font-size: 16px;
  }
}

@media (max-width: 430px) {
  .shusha-homepage .hero {
    height: clamp(569px, 177.9vw, 765px);
  }

  .shusha-homepage .hero__content {
    top: 38.3%;
  }
}

.shusha-homepage .slider-arrow {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  width: 50px;
  border: 0;
  background: transparent center/5px 10px no-repeat;
  cursor: pointer;
}

.shusha-homepage .slider-arrow--prev {
  left: 0;
  background-image: url("../images/arrow.svg");
  transform: rotate(180deg);
}

.shusha-homepage .slider-arrow--next {
  right: 0;
  background-image: url("../images/arrow.svg");
}

.shusha-homepage .slider-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

/* --- products --- */
.shusha-homepage .products-section {
  padding: 100px 0;
  background: #fff;
}

/* Контейнер — якорь для стрелок у краёв (вне overflow:hidden у Swiper). */
.shusha-homepage .products-section > .container-fluid {
  position: relative;
}

/* Стрелки по высоте превью (340), как в макете; не тянем на title/price. */
.shusha-homepage .products-section .slider-arrow {
  top: 0;
  bottom: auto;
  height: 340px;
}

/* Активные — серые (#B2B2B2); disabled — белые, на белом фоне «исчезают». */
.shusha-homepage .products-section .slider-arrow:not(:disabled) {
  opacity: 0.3;
}

.shusha-homepage .products-section .slider-arrow:disabled {
  opacity: 1;
  filter: brightness(0) invert(1);
  cursor: default;
}

@media (max-width: 1399.98px) and (min-width: 768px) {
  .shusha-homepage .products-section .slider-arrow {
    height: min(294px, 23vw);
  }
}

@media (max-width: 767.98px) {
  .shusha-homepage .products-section {
    padding: 100px 0;
  }

  .shusha-homepage .products-section .slider-arrow {
    top: -28px;
    height: 286px;
  }
}

.shusha-homepage .products-slider {
  position: relative;
  padding-inline: 0;
}

@media (min-width: 1400px) {
  .shusha-homepage .products-slider {
    max-width: 1820px;
  }
}

/* --- collections --- */
@media (max-width: 767.98px) {
  .shusha-homepage .collections .row {
    gap: 0;
  }
}

.shusha-homepage .collection-tile {
  position: relative;
  height: auto;
  aspect-ratio: 8/9;
  overflow: hidden;
}

.shusha-homepage .collection-tile>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shusha-homepage .collection-tile__link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: none;
}

.shusha-homepage .collection-tile__link::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  content: "";
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.shusha-homepage .collection-tile__link:hover,
.shusha-homepage .collection-tile__link:focus-visible {
  color: #fff;
}

.shusha-homepage .collection-tile__link:hover::before,
.shusha-homepage .collection-tile__link:focus-visible::before {
  opacity: 1;
}

.shusha-homepage .collection-tile__link:hover .collection-tile__action,
.shusha-homepage .collection-tile__link:focus-visible .collection-tile__action {
  opacity: 1;
  transform: translate(-50%, 0);
}

.shusha-homepage .collection-tile__title,
.shusha-homepage .collection-tile__action {
  position: relative;
  z-index: 1;
}

.shusha-homepage .collection-tile__action {
  position: absolute;
  top: calc(50% + 28px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.2;
  opacity: 0;
  text-transform: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
  white-space: nowrap;
}

.shusha-homepage .collection-tile__action img {
  width: 5px;
  height: 10px;
  filter: brightness(0) invert(1);
}

@media (min-width: 768px) and (max-width: 1399.98px) {
  .shusha-homepage .collection-tile {
    height: 1080px;
    aspect-ratio: auto;
  }
}

@media (max-width: 767.98px) {
  .shusha-homepage .collection-tile {
    aspect-ratio: 430/484;
  }

  .shusha-homepage .collection-tile__link {
    font-size: 20px;
  }
}

/* --- categories --- */
.shusha-homepage .categories-section {
  padding: 150px 5px;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .shusha-homepage .categories-section {
    padding: 50px 0;
  }
}

.shusha-homepage .categories-slider {
  position: relative;
  overflow: visible;
}

.shusha-homepage .categories-slider .swiper-slide {
  height: auto;
}

/* На фото карточек чёрные стрелки слишком заметны — активные делаем белыми. */
.shusha-homepage .categories-slider .slider-arrow:not(:disabled) {
  filter: brightness(0) invert(1);
}

.shusha-homepage .category-card {
  position: relative;
  display: flex;
  aspect-ratio: 473.75/630;
  align-items: flex-end;
  justify-content: center;
  padding: 50px 20px;
  overflow: hidden;
  color: #fff;
}

.shusha-homepage .category-card::before,
.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.shusha-homepage .category-card::before {
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.shusha-homepage .category-card::after {
  z-index: 1;
  inset-block-start: 55%;
  background: linear-gradient(transparent, rgba(61, 67, 64, 0.35));
}

.shusha-homepage .category-card img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shusha-homepage .category-card span {
  position: relative;
  z-index: 3;
  font-size: 20px;
  text-transform: uppercase;
}

.shusha-homepage .category-card:hover,
.category-card:focus-visible {
  color: #fff;
}

.shusha-homepage .category-card:hover::before,
.category-card:focus-visible::before {
  opacity: 1;
}

@media (max-width: 767.98px) {
  .shusha-homepage .category-card {
    aspect-ratio: 215/286;
    /* Текст ближе к низу карточки, чем на десктопе. */
    padding-block: 30px 16px;
  }

  .shusha-homepage .category-card span {
    font-size: 16px;
  }
}


/*
.category-card {
  position: relative;
  display: flex;
  aspect-ratio: 473.75/630;
  align-items: flex-end;
  justify-content: center;
  padding: 50px 20px;
  overflow: hidden;
  color: #fff;
}
.category-card::before, .category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}
.category-card::before {
  z-index: 2;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.category-card::after {
  z-index: 1;
  inset-block-start: 55%;
  background: linear-gradient(transparent, rgba(61, 67, 64, 0.35));
}
.category-card img {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card span {
  position: relative;
  z-index: 3;
  font-size: 20px;
  text-transform: uppercase;
}
.category-card:hover, .category-card:focus-visible {
  color: #fff;
}
.category-card:hover::before, .category-card:focus-visible::before {
  opacity: 1;
}
@media (max-width: 767.98px) {
  .category-card {
    aspect-ratio: 215/286;
    padding-block: 30px;
  }
  .category-card span {
    font-size: 16px;
  }
}

/*

/* --- certificate --- */
.shusha-homepage .certificate-section {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.shusha-homepage .certificate-section>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shusha-homepage .certificate-section__link {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  text-transform: uppercase;
  text-decoration: none;
}

.shusha-homepage .certificate-section__link::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  content: "";
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.shusha-homepage .certificate-section__link:hover,
.shusha-homepage .certificate-section__link:focus-visible {
  color: #fff;
}

.shusha-homepage .certificate-section__link:hover::before,
.shusha-homepage .certificate-section__link:focus-visible::before {
  opacity: 1;
}

.shusha-homepage .certificate-section__link:hover .certificate-section__action,
.shusha-homepage .certificate-section__link:focus-visible .certificate-section__action {
  opacity: 1;
  transform: translate(-50%, 0);
}

.shusha-homepage .certificate-section__title,
.shusha-homepage .certificate-section__action {
  position: relative;
  z-index: 1;
}

.shusha-homepage .certificate-section__action {
  position: absolute;
  top: calc(50% + 28px);
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  line-height: 1.2;
  opacity: 0;
  text-transform: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.3s ease-in, transform 0.3s ease-in;
  white-space: nowrap;
}

.shusha-homepage .certificate-section__action img {
  width: 5px;
  height: 10px;
  filter: brightness(0) invert(1);
}

@media (min-width: 768px) and (max-width: 1399.98px) {
  .shusha-homepage .certificate-section {
    height: 1080px;
    aspect-ratio: auto;
  }
}

@media (max-width: 767.98px) {
  .shusha-homepage .certificate-section {
    aspect-ratio: 430/484;
  }
}

/* --- events --- */
.shusha-homepage .events-section {
  padding-top: 150px;
}

.shusha-homepage .events-section>h2 {
  margin-bottom: 100px;
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  text-transform: uppercase;
}

.shusha-homepage .events-slider {
  position: relative;
}

@media (max-width: 767.98px) {
  .shusha-homepage .events-section {
    padding-top: 100px;
  }

  .shusha-homepage .events-section>h2 {
    margin-bottom: 50px;
    font-size: 20px;
  }

  .shusha-homepage .events-section .slider-arrow {
    top: 0;
    height: 572px;
  }
}

.shusha-homepage .event-card {
  height: 1080px;
}

.shusha-homepage .event-card .row {
  height: 100%;
}

.shusha-homepage .event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shusha-homepage .event-card__content {
  position: relative;
}

.shusha-homepage .event-card__content h3 {
  font-family: var(--font-accent);
  font-size: 30px;
  font-style: italic;
  font-weight: 400;
}

.shusha-homepage .event-card__content p {
  width: 400px;
  min-height: 100px;
  font-size: 16px;
}

.shusha-homepage .event-card__copy {
  position: absolute;
  top: 50%;
  left: 100px;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 30px;
  transform: translateY(-50%);
}

.shusha-homepage .event-card__link {
  position: absolute;
  bottom: 312px;
  left: 100px;
  display: flex;
  width: 500px;
  gap: 10px;
  align-items: center;
  padding: 50px 0;
  color: inherit;
  text-decoration: none;
}

.shusha-homepage .event-card__link img {
  width: 5px;
  height: 10px;
}

@media (max-width: 767.98px) {
  .shusha-homepage .event-card {
    height: auto;
  }

  .shusha-homepage .event-card__media {
    height: 572px;
  }

  .shusha-homepage .event-card__content {
    min-height: 298px;
    padding: 50px;
  }

  .shusha-homepage .event-card__content h3 {
    width: 100%;
    font-size: 20px;
  }

  .shusha-homepage .event-card__content p {
    width: 100%;
    min-height: 0;
    font-size: 14px;
  }

  .shusha-homepage .event-card__copy {
    position: static;
    gap: 30px;
    transform: none;
  }

  .shusha-homepage .event-card__link {
    position: static;
    width: 100%;
    padding: 50px 0;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .shusha-homepage .event-card__media {
    height: 133vw;
    max-height: 572px;
  }

  .shusha-homepage .event-card__content {
    padding-inline: clamp(20px, 11.63vw, 50px);
  }
}
