/* Главная — hero (блок-1.jpg) + категории + команда */

.page-front .site-main--front {
  background: #f4f5f8;
  padding-block: clamp(16px, 2vw, 28px) clamp(32px, 4vw, 56px);
}

.page-front .front-content.container {
  padding-inline: 0;
}

.page-front .region-front-content > .block {
  margin: 0;
}

/* Hero */
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(280px, 26vw, 360px);
  margin: 0 0 clamp(24px, 3vw, 40px);
  padding: clamp(28px, 3.5vw, 48px) clamp(20px, 3vw, 40px);
  overflow: hidden;
  border-radius: 10px;
  background-color: #fff;
  background-image: url(../images/hero-background.png);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: min(520px, 50%);
}

.home-hero__title {
  margin: 0 0 28px;
  font-size: clamp(1.65rem, 2.6vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: #111;
}

.home-hero__lead {
  margin: 0 0 28px;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.55;
  color: #555;
  max-width: 34rem;
}

.home-hero__cta {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  background: #820000;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.home-hero__cta:hover {
  background: #6a0000;
  color: #fff;
}

/* Категории */
.home-categories {
  margin: 0 0 clamp(28px, 4vw, 48px);
}

.home-categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}

.home-categories__card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-categories__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.home-categories__card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #0a0a0a;
}

.home-categories__label {
  padding: 14px 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: #222;
}

/* Категории v2 — прозрачный фон, тень у катушек */
.home-categories--transparent .home-categories__card {
  overflow: visible;
  border-radius: 5px;
  background: transparent;
  box-shadow: none;
  border: 1px solid #e1e1e1;
}

.home-categories--transparent .home-categories__card:hover {
  transform: translateY(-3px);
  box-shadow: none;
}

.home-categories--transparent .home-categories__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: clamp(8px, 1.5vw, 16px);
}

.home-categories--transparent .home-categories__visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  background: transparent;
  filter:
    drop-shadow(0 14px 22px rgba(0, 0, 0, 0.2))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.home-categories--transparent .home-categories__card:hover .home-categories__visual img {
  filter:
    drop-shadow(0 18px 28px rgba(0, 0, 0, 0.24))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.14));
  transform: scale(1.02);
}

.home-categories--transparent .home-categories__label {
  margin-top: 4px;
  padding: 12px 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Команда */
.team-section {
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
}

.team-grid-title {
  margin: 0 0 24px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #111;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 32px);
}

.team-card {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  padding: 0 clamp(12px, 2vw, 20px) clamp(16px, 2vw, 24px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.team-card img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
}

.team-name {
  margin: 16px 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

.team-role {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
}

.team-bio {
  margin: 0 0 12px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #555;
  text-align: left;
}

.team-quote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.5;
  color: #666;
  text-align: left;
}

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

  .team-grid {
    grid-template-columns: 1fr;
  }

  .home-hero {
    align-items: flex-start;
    min-height: clamp(260px, 58vw, 360px);
    padding: clamp(14px, 3.5vw, 22px) clamp(16px, 3vw, 24px) clamp(12px, 2.5vw, 18px);
    background-position: right bottom;
    background-size: auto min(68%, 240px);
  }

  .home-hero__content {
    max-width: min(100%, 58%);
    padding-top: 0;
  }

  .home-hero__title {
    margin: 0 0 16px;
    font-size: clamp(1.35rem, 5.2vw, 1.75rem);
    line-height: 1.12;
  }

  .home-hero__cta {
    padding: 12px 28px;
    font-size: 0.95rem;
  }
}

@media (max-width: 520px) {
  .home-categories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
