/* /landing — контент и вёрстка в духе бекапа Sesariana (Прихожане). */

body.page-landing {
  padding-top: 0 !important;
}

.landing-sesariana-page {
  font-family: 'Gilroy', Roboto, sans-serif;
}

/* ---------- Hero (sesariana_home_slider_cont) ---------- */
.sesariana_home_slider_cont {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  color: #fff;
  background-color: #3e2723;
  display: flex;
  flex-direction: column;
}

.sesariana_hero_topbar {
  position: relative;
  z-index: 4;
  flex-shrink: 0;
  height: 4px;
  background: #b71c1c;
}

/* Обложка героя: фото + затемнение (как в бекапе, pic2[1].jpg) */
.sesariana_hero_scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #3e2723;
  background-image:
    linear-gradient(
      105deg,
      rgba(30, 24, 18, 0.72) 0%,
      rgba(30, 24, 18, 0.42) 48%,
      rgba(30, 24, 18, 0.22) 100%
    ),
    url('../images/landing/hero-cover.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.sesariana_home_slider_cont .sesariana_slider_inner.sesariana_hero_row {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  align-self: stretch;
  min-height: 0;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 24px;
  gap: 32px 48px;
  box-sizing: border-box;
}

.sesariana_hero_collage {
  position: relative;
  flex: 0 0 auto;
  width: 200px;
  height: 200px;
}

/* Вместо кольца — готовый коллаж с бекапа (banner-img.png) */
.sesariana_hero_collage_ring {
  position: absolute;
  inset: 0;
  background-image: url('../images/landing/hero-banner-collage.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
}

.sesariana_hero_copy {
  flex: 1 1 280px;
  max-width: 520px;
}

.sesariana_home_slider_cont h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 14px;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.sesariana_home_slider_cont p.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  opacity: 0.96;
  margin: 0;
  line-height: 1.45;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.sesariana_hero_typewriter-line {
  min-height: 1.45em;
}

.sesariana_hero_typewriter-prefix {
  opacity: 0.96;
}

.sesariana_hero_typewriter-text {
  font-weight: 600;
}

.sesariana_hero_typewriter-cursor {
  display: inline-block;
  margin-left: 1px;
  font-weight: 300;
  animation: sesarianaTypewriterBlink 0.95s step-end infinite;
}

@keyframes sesarianaTypewriterBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .sesariana_hero_typewriter-cursor {
    animation: none;
    opacity: 0.6;
  }
}

/* ---------- Features (sesariana_features_wrapper) ---------- */
.sesariana_features_wrapper {
  padding: 52px 0 56px;
  background: #fff;
}

.sesariana_features_wrapper.sesbasic_bxs {
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.06);
}

.sesariana_features_wrapper .sesariana_features_inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.sesariana_features_heading {
  text-align: center;
  margin-bottom: 40px;
}

.sesariana_features_heading h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
  font-weight: 700;
  color: #8d2f2f;
  margin: 0 0 14px;
}

.sesariana_features_intro {
  margin: 0 auto;
  max-width: 720px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #6d6d6d;
}

.sesariana_features_diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px 20px;
}

.sesariana_features_col {
  flex: 1 1 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sesariana_features_col_left {
  text-align: right;
}

.sesariana_features_col_right {
  text-align: left;
}

.sesariana_feature_block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #212121;
  margin: 0 0 8px;
  line-height: 1.3;
}

.sesariana_feature_block p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #757575;
}

.sesariana_features_hub_wrap {
  flex: 0 0 auto;
  width: 300px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  order: 0;
}

.sesariana_features_col_left { order: 1; }
.sesariana_features_hub_wrap { order: 2; }
.sesariana_features_col_right { order: 3; }

@media (max-width: 991px) {
  .sesariana_features_diagram {
    flex-direction: column;
  }
  .sesariana_features_col_left,
  .sesariana_features_col_right {
    text-align: center;
    max-width: 520px;
  }
  .sesariana_features_hub_wrap {
    order: -1;
    width: 280px;
  }
  .sesariana_features_col_left { order: 1; }
  .sesariana_features_col_right { order: 2; }
}

.sesariana_features_hub {
  position: relative;
  width: 280px;
  height: 280px;
}

.sesariana_hub_ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  border: 2px solid #cfd8dc;
  background: rgba(236, 239, 241, 0.35);
}

.sesariana_hub_center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108px;
  height: 108px;
  margin: -54px 0 0 -54px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  box-shadow: 0 8px 28px rgba(25, 118, 210, 0.28);
  z-index: 2;
  overflow: hidden;
}

.sesariana_hub_center_img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sesariana_hub_node {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: #c62828;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sesariana_hub_node_1 { transform: rotate(0deg) translateY(-98px) rotate(0deg); }
.sesariana_hub_node_2 { transform: rotate(60deg) translateY(-98px) rotate(-60deg); }
.sesariana_hub_node_3 { transform: rotate(120deg) translateY(-98px) rotate(-120deg); }
.sesariana_hub_node_4 { transform: rotate(180deg) translateY(-98px) rotate(-180deg); }
.sesariana_hub_node_5 { transform: rotate(240deg) translateY(-98px) rotate(-240deg); }
.sesariana_hub_node_6 { transform: rotate(300deg) translateY(-98px) rotate(-300deg); }

/* ---------- Member cloud (мозаика из аватаров пользователей) ---------- */
.generic_layout_container.layout_sesariana_member_cloud {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.sesariana_member_cloud_mosaic {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: stretch;
  background: #1e1e1e;
}

.sesariana_member_cloud_cell {
  position: relative;
  flex: 0 0 calc((100% - 11 * 4px) / 12);
  width: calc((100% - 11 * 4px) / 12);
  max-width: calc((100% - 11 * 4px) / 12);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  outline: none;
}

.sesariana_member_cloud_cell:focus-visible {
  z-index: 3;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

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

.sesariana_member_cloud_cell:hover {
  z-index: 3;
}

.sesariana_member_cloud_cell:hover img {
  transform: scale(1.12);
}

@media (prefers-reduced-motion: reduce) {
  .sesariana_member_cloud_cell img {
    transition: none;
  }
  .sesariana_member_cloud_cell:hover img {
    transform: none;
  }
}

@media (max-width: 768px) {
  .sesariana_member_cloud_cell {
    flex: 0 0 calc((100% - 5 * 4px) / 6);
    width: calc((100% - 5 * 4px) / 6);
    max-width: calc((100% - 5 * 4px) / 6);
  }
}

@media (max-width: 400px) {
  .sesariana_member_cloud_cell {
    flex: 0 0 calc((100% - 3 * 4px) / 4);
    width: calc((100% - 3 * 4px) / 4);
    max-width: calc((100% - 3 * 4px) / 4);
  }
}

.sesariana_member_cloud_scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(18, 14, 12, 0.58);
  pointer-events: none;
}

.generic_layout_container.layout_sesariana_member_cloud .member_cloud_inner.sesariana_member_cloud_copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.generic_layout_container.layout_sesariana_member_cloud h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.25;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.generic_layout_container.layout_sesariana_member_cloud .sub {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* CTA: Вступить → /signin */
.sesariana_cta_band {
  background: linear-gradient(180deg, #faf7f4 0%, #f0ebe6 100%);
  border-top: 1px solid rgba(62, 39, 35, 0.08);
  border-bottom: 1px solid rgba(62, 39, 35, 0.08);
}

.sesariana_cta_inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  text-align: center;
}

.sesariana_cta_title {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  color: #3e2723;
  margin: 0 0 12px;
  line-height: 1.25;
}

.sesariana_cta_lead {
  margin: 0 0 24px;
  font-size: clamp(0.95rem, 1.9vw, 1.1rem);
  color: #5d4037;
  line-height: 1.55;
}

.btn.sesariana_cta_btn,
.sesariana_cta_btn {
  min-width: 200px;
  font-weight: 600;
  border-radius: 999px;
  padding-left: 2rem;
  padding-right: 2rem;
  background-color: #b71c1c;
  border-color: #b71c1c;
  color: #fff;
  box-shadow: 0 8px 24px rgba(183, 28, 28, 0.25);
}

.btn.sesariana_cta_btn:hover,
.sesariana_cta_btn:hover {
  background-color: #8b1515;
  border-color: #8b1515;
  color: #fff;
  box-shadow: 0 10px 28px rgba(183, 28, 28, 0.32);
}

.btn.sesariana_cta_btn:focus,
.sesariana_cta_btn:focus {
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(183, 28, 28, 0.35);
}

@media (max-width: 576px) {
  .sesariana_home_slider_cont {
    min-height: 360px;
  }
  .sesariana_home_slider_cont .sesariana_slider_inner.sesariana_hero_row {
    padding: 24px 16px;
  }
  .sesariana_hero_collage {
    width: 168px;
    height: 168px;
    margin: 0 auto;
  }
  .sesariana_features_hub {
    width: 240px;
    height: 240px;
  }
  .sesariana_hub_ring {
    width: 190px;
    height: 190px;
    margin: -95px 0 0 -95px;
  }
  .sesariana_hub_node_1,
  .sesariana_hub_node_2,
  .sesariana_hub_node_3,
  .sesariana_hub_node_4,
  .sesariana_hub_node_5,
  .sesariana_hub_node_6 {
    display: none;
  }
}
