/* Import Google Font Jost */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600&display=swap');

:root {
  --lp-bg-gray: #e5e5e5;
  --lp-bg-dark: #121212;
  --lp-text-main: #1a1a1a;
  --lp-text-gray: #666;
  --lp-circle-gray: #c4c4c4;
  
  /* Typography Variables */
  --fw-reg: 400;
  --fw-med: 500;
  --fw-semi: 600;
}

body.page-node-type-landing {
  font-size: 16px;
}

.page-node-type-landing h1, .page-node-type-landing h2, .page-node-type-landing h3, .page-node-type-landing h4, .page-node-type-landing h5 {
    font-weight: 600;
    line-height: 1.3;
}

.page-node-type-landing section {
        margin: 3.75rem auto;
}

.landing-page {
  color: var(--lp-text-main);
  line-height: 1.5;
  font-family: var(--font-main); /* Set Jost globally */
  font-weight: var(--fw-reg);
  margin-bottom: 6rem;
}

.landing-page .container {
  margin: 0 auto;
}

.landing-page .has-bg .container {
  max-width: 1200px;
  margin: 0 auto; 
}

/* Buttons */
.landing-page .btn {
  display: inline-block;
  padding: 0.9375rem 2.5rem; /* 15px 40px */
  text-decoration: none;
  font-weight: var(--fw-med); /* 500 */
  font-size: 1rem; /* 16px */
  transition: opacity 0.3s;
  border: none;
  cursor: pointer;
  line-height: 1.43; /* ~23px */
  height: auto;
  margin: 2em 0;
}
.landing-page .btn-black {
  background: #000;
  color: #fff;
}

.landing-page .btn-white {
  background: #fff;
  color: #000;
}

.landing-page .btn-submit {
  background: #666;
  color: #fff;
  width: 100%;
}
.landing-page .btn:hover {
  opacity: 0.8;
}

/* 1. Hero */
.section-hero {
  background-color: #d8e0e5;
  text-align: center;
  padding: 6.25rem 0 7.5rem; /* 100px 120px */
}

.landing-page .has-bg.section-hero .container {
  margin: 12vh auto 6vh auto;
}

.hero-wrapper {
  position: relative;
  overflow: hidden;
  /* Цвет фона пока картинка грузится */
  background-color: #dcdcdc; 
}

/* Сама картинка растягивается на весь блок и обрезается */
.bg-fit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Эмуляция background-size: cover */
  z-index: 0; /* Кладем на самый низ */
  pointer-events: none; /* Чтобы картинка не мешала кликам */
}

/* Оверлей должен быть выше картинки, но ниже контента */
.hero-wrapper .overlay {
  z-index: 1;
}

/* Контент выше всего */
.hero-wrapper .relative-z {
  z-index: 2;
  position: relative;
}

.hero-title {
  /* Figma: 32px or larger for Hero */
  font-size: 2rem; /* 32px */
  max-width: 50rem;
  margin: 0 auto 1.25rem;
  font-weight: var(--fw-med); /* 500 */
  line-height: 1.43;
  text-transform: uppercase;
}
.hero-subtitle {
  /* Figma: 24px for large text */
  font-size: 1.5rem; /* 24px */
  margin-bottom: 0;
  font-weight: var(--fw-med); /* 500 */
  line-height: 1.22;
}

.section-hero p {
  max-width: 600px;
  margin: 0 auto;
}

.section-intro-text {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* 2. Grid Info */
.section-grid-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem; /* 40px */
  padding: 5rem 0.85rem; /* 80px 20px */
}
/* Why Shatro */
.why-shatro h2 { 
  font-size: 1.75rem; /* 28px */
  margin-bottom: 1.875rem; 
  font-weight: var(--fw-semi); /* 600 */
  line-height: 1.42;
  text-transform: uppercase;
}
.why-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.875rem;
}
.big-num { 
  font-size: 2.375rem; /* 38px */
  font-weight: var(--fw-med); /* 500 */
  display: block; 
  margin-bottom: -0.5rem; 
  line-height: 1.44;
}

.big-num--text {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.why-item h3 { 
  font-size: 1.5rem;
  margin-bottom: 0.625rem; 
  font-weight: var(--fw-med);
  line-height: 1.2;
}

.why-item--text {
  opacity: 0.8;
}

.why-shatro-main-text {
  margin-top: 2rem;

}

/* Read more blocks */
.read-more-block {
  width: 100%;
  margin-top: 2rem;
}

.read-more-block--pre-stages {
  padding: 2.5rem 0.85rem 0;
}

.read-more-block--post-materials {
  padding: 2.5rem 0.85rem;
}

.read-more-block__content {
  line-height: 1.6;
  max-width: 700px;
  border: 1px solid #a0b8c7;
  padding: 20px;
  margin: 0 auto;
  background: #d8e0e5;
  border-radius: 5px;
}

.read-more-block__content > *:first-child {
  margin-top: 0;
}

.read-more-block__content > *:last-child {
  margin-bottom: 0;
}

.read-more-block__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}

.read-more-block.is-expanded .read-more-block__more {
  grid-template-rows: 1fr;
}

.read-more-block__more-inner {
  overflow: hidden;
  min-height: 0;
}

.read-more-block__more-inner > *:first-child {
  margin-top: 1rem;
}

.read-more-block__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.875rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: var(--fw-med);
  line-height: 1.4;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.read-more-block__toggle:hover {
  opacity: 0.7;
}

/* Full Cycle */
.full-cycle {
  background-color: #d8e0e5; 
  padding: 2.5rem;
}
.full-cycle h3 { 
  margin-top: 0; 
  margin-bottom: 1.875rem; 
  font-size: 1.5rem; /* 24px */
  font-weight: var(--fw-med);
}
.cycle-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.cycle-list li {
  display: flex;
  align-items: center;
  font-size: 1rem; /* 16px */
  font-weight: var(--fw-reg); /* 400 */
}
.cycle-list .circle {
  width: 2.5rem; /* 40px */
  height: 2.5rem;
  background-color: #fff;/*
  border-radius: 50%;*/
  margin-right: 0.9375rem;
  display: inline-block;
}

/* 3. Stages */
.section-stages {
  padding: 3.75rem 1.25rem;
  text-align: center;
  overflow-x: auto;
}
.section-stages h2 { 
  margin-bottom: 0; 
  font-size: 1.75rem; /* 28px */
  font-weight: var(--fw-semi); /* 600 */
}

.section-stages p {
  max-width: 38rem;
  margin: 1rem auto;
  opacity: 0.8;
}
.stages-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
  min-width: 50rem;
  margin-top:3rem;
}
.stages-wrapper::before {
  content: '';
  position: absolute;
  top: 2rem; 
  left: 2.5rem;
  right: 2.5rem;
  height: 1px;
  background: #333;
  z-index: 0;
}
.stage-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 7.5rem;
}
.stage-circle {
  width: 5rem; /* 80px */
  height: 5rem;
  background-color: #d8e0e5;
  border-radius: 50%;
  margin-bottom: 0.9375rem;
  border: 1px solid #ccc;
}
.stage-step { 
  font-size: 0.875rem; /* 14px */
  font-weight: var(--fw-med); /* 500 */
  margin-bottom: 0.3125rem; 
}

.stage-step.stage-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: bold;
}
.stage-name { 
  font-size: 1.125rem; /* 18px */
  line-height: 1.44; 
  font-weight: var(--fw-med); /* 500 */
}

.section-stages--blocks .stages-wrapper::before {
  display: none;
}

.section-stages--blocks .stages-wrapper {
  flex-wrap: wrap;
  gap: 1rem;
}

.section-stages--blocks .stages-wrapper .stage-item {
  flex: 1 1 300px;
  min-width: calc(33.333% - 1rem);
  flex-direction: row;
  gap: 1rem;
}

.section-stages--blocks .stage-item .stage-circle {
  margin: 0;
}

.section-stages--blocks .stages-wrapper .stage-name {
    max-width: 70%;
    text-align: left;
}

/* 4. Budget */
.section-budget {
  background-color: #d8e0e5;
  padding: 3.75rem 0;
}
.section-budget h2 {
  font-size: 1.5rem; /* 24px */
  font-weight: var(--fw-med);
  margin-bottom: 1.5rem;
}
.budget-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: center;
}
.budget-info {
  margin: 0 auto;
}
.budget-tags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.tag {
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  text-align: center;
  padding: 1.875rem 0.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-med); /* 500 */
  font-size: 1.125rem; /* 18px */
}

/* 5. Materials */
.section-materials { padding: 5rem 1.25rem; }
.section-materials h2 { 
  text-align: center; 
  margin-bottom: 2.5rem; 
  font-size: 1.5rem; /* 24px */
  font-weight: var(--fw-med);
}
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3.125rem;
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 1.875rem;
  padding: 0.625rem 1.875rem;
  cursor: pointer;
  font-size: 1rem; /* 16px */
  font-weight: var(--fw-med);
  font-family: var(--font-main);
  transition: all 0.3s;
}
.tab-btn.active, .tab-btn:hover {
  border-color: #000;
  font-weight: var(--fw-med);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.pane-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  max-width: 60rem;
  margin: 0 auto;
}
.pane-image {
  background-color: #d8e0e5;
  min-height: 18.75rem;
}

.pane-text ul {
  list-style: none;
  padding: 0;
}
.pane-text li { 
  margin-bottom: 0.625rem; 
  font-size: 1.25rem; /* 20px */
  font-weight: var(--fw-reg);
  opacity: 0.8;
}

/* 6. Land Base */
.section-land-base {
  background-color: #e0e0e0;
  padding: 5rem 0;
}
.land-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3.125rem;
}
.land-text h2 {
  font-size: 2rem; 
  font-weight: var(--fw-semi);
}
.land-descr {
  font-size: 1.25rem; 
  font-weight: normal;
}
.land-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.875rem;
}
.feat strong { 
  display: block; 
  margin-bottom: 0.3125rem; 
  font-size: 1rem; /* 16px */
  font-weight: var(--fw-med); /* 500 */
}
.feat p { 
  font-size: 1rem; /* 16px */
  margin: 0; 
  font-weight: var(--fw-reg); /* 400 */
}

/* 7. Footer Form */
.section-footer-form {
  background-color: var(--lp-bg-dark);
  color: #fff;
  padding: 5rem 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.125rem;
}

.footer-left h2 {
  font-size: 2rem;
  margin-top: 0;
  font-weight: var(--fw-reg);
  margin-bottom: 2rem;
}

.footer-left {
  max-width: 28rem;
  margin: 1.25rem auto;
}

.footer-right {
  max-width: 30rem;
}

/* ОБНОВЛЕННЫЕ СЕЛЕКТОРЫ ДЛЯ WEBFORM */

.landing-page .static-form-demo label,

.landing-page .webform-submission-form label { /* Добавлено */
  display: block;
  font-size: 1rem;
  margin-bottom: 0.3125rem;
  margin-top: 1.25rem;
  color: #fff;
  font-weight: var(--fw-med);
}


.landing-page .static-form-demo input, .static-form-demo textarea,
.landing-page .webform-submission-form input[type="text"],    /* Добавлено */
.landing-page .webform-submission-form input[type="email"],   /* Добавлено */
.landing-page .webform-submission-form input[type="tel"],     /* Добавлено */
.landing-page .webform-submission-form textarea {             /* Добавлено */
  width: 100%;
  padding: 0.625rem;
  background: #fff;
  border: none;
  margin-bottom: 0.625rem;
  min-height: 2.5rem; /* min-height лучше для textarea */
  font-family: var(--font-main);
  font-size: 1rem;
  color: #000; /* Цвет текста внутри инпута */
  box-sizing: border-box; /* Чтобы padding не ломал ширину */
}

.landing-page .static-form-demo button,
.landing-page .webform-submission-form .form-submit { /* Класс кнопки вебформы */
  margin-top: 1.25rem;
  font-size: 1rem;
  font-weight: var(--fw-med);
  background: #d4d8de; 
  width: 100%;
  padding: 0.9375rem 2.5rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
  border-radius: 50px;
}

.landing-page .webform-submission-form .form-submit:hover {
  opacity: 0.8;
}

.landing-page .webform-submission-form input.form-tel {
  padding-left: 4em;
}

/* Responsive (Mobile) */
@media (max-width: 768px) {
  .section-grid-info, 
  .cycle-list, 
  .budget-grid,
  .budget-tags,
  .pane-grid,
  .land-grid,
  .land-features,
  .footer-grid {
    grid-template-columns: 1fr;
  }


  .land-grid,
  .footer-grid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  
  .stages-wrapper {
    min-width: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
  }

  .full-cycle {
    padding: 1.5rem;
  }

  .read-more-block {
    margin-top: 1.5rem;
  }

  .read-more-block--pre-stages {
    padding: 1.5rem 1.5rem 0;
  }

  .read-more-block--post-materials {
    padding: 1.5rem;
  }

  .read-more-block__toggle {
    margin-top: 1rem;
    min-height: 2.75rem;
    padding: 0.25rem 0;
  }
  
  .stages-wrapper::before { display: none; }
  
  /* Reset grid specific to budget on mobile */
  .budget-tags-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

.has-bg {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  min-height: 50vh;
  background-color: #d8e0e5; 
  color: #1a1a1a;
}

.has-bg .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgb(10 16 22 / 30%);
  z-index: 1;
}

.has-bg {
  color: #fff;
}
.relative-z {
  position: relative;
  z-index: 2;
}

/* --- New Budget Grid Layout --- */
.budget-tags-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 0.9375rem; /* 15px */
}

@media (min-width: 992px) {
  .budget-tags-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.budget-btn {
  background: rgb(255 255 255 / 50%);
  color: #000;
  padding: 1.25rem 0.9375rem; /* 20px 15px */
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 3em;
  border: none;
  font-family: var(--font-main);
  
  /* Typography from Figma (Price Estimation blocks) */
  font-size: 1.125rem; /* 18px */
  font-weight: var(--fw-med); /* 500 */
  border-radius: 0.3125rem; /* 5px */
}

.budget-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  /*transform: translateY(-2px);*/
  /* border handling to prevent layout shift if border added on hover */
}

.btn-arrow {
  align-self: flex-end;
  font-size: 1.2rem;
  margin-top: 0.625rem;
  opacity: 0.7;
}

/* --- Landing Modals (Pop-ups) --- */
.landing-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.landing-modal.active {
  display: flex;
}

.landing-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.landing-modal-content {
  position: relative;
  background: #fff;
  color: #1a1a1a;
  width: 100%;
  max-width: 50rem; /* 800px */
  max-height: 90vh;
  overflow-y: auto;
  padding: 3.125rem; /* 50px */
  border-radius: 0.5rem;
  box-shadow: 0 1.25rem 3.125rem rgba(0,0,0,0.5);
  z-index: 100000;
  opacity: 0;
  transform: translateY(1.875rem);
  transition: all 0.3s ease;
}

.landing-modal.active .landing-modal-content {
  opacity: 1;
  transform: translateY(0);
}

.landing-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  color: #999!important;
  transition: color 0.2s;
  padding: 0;
  margin: 0;
  width: auto;
  height: auto;
}

.landing-modal-close:hover {
  color: #000;
}

.landing-modal-body h3 {
  margin-top: 0;
  font-size: 2rem;
/*  margin-bottom: 1.875rem;
  border-bottom: 1px solid #eee;*/
  padding-bottom: 1.25rem;
  color: #000;
  font-weight: var(--fw-semi);
  margin-right: 2rem;
}

.landing-modal-text p {
  margin-bottom: 0.9375rem;
  line-height: 1.6;
  font-size: 1.05rem;
  color: #333;
}

.landing-modal-text ul {
  margin-bottom: 1.5625rem;
  padding-left: 1.25rem;
  list-style-type: disc;
}
.landing-modal-text li {
  margin-bottom: 0.625rem;
  color: #333;
}

body.landing-scroll-lock {
  overflow: hidden;
}

@media (max-width: 768px) {
  .landing-modal-content {
    padding: 1.5625rem;
    max-height: 85vh;
  }
  .landing-modal-body h3 {
    font-size: 1.5rem;
  }
}


/* --- СТИЛИ ДЛЯ СПИСКА УСЛУГ (CYCLE LIST) --- */
.cycle-list .circle {
    /* Базовые настройки */
    width: 3rem;
    height: 3rem;
    display: inline-block;
    vertical-align: middle;
    margin-right: 1rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent; /* Убираем цвет круга */
    border: none;
}

/* Привязка иконок к классам */
.icon-site-selection   { background-image: url('../images/site_selection.svg'); }
.icon-arch-design      { background-image: url('../images/arch_design_doc.svg'); }
.icon-construction     { background-image: url('../images/construction_main.svg'); }
.icon-engineering-tech { background-image: url('../images/engineering_systems_tech.svg'); }
.icon-finishing        { background-image: url('../images/finishing_works.svg'); }
.icon-furnishing       { background-image: url('../images/furnishing_outfitting.svg'); }
.icon-handover         { background-image: url('../images/handover_property.svg'); }
.icon-warranty         { background-image: url('../images/warranty_support.svg'); }


/* --- СТИЛИ ДЛЯ ЭТАПОВ (STAGES) --- */
.stage-item .stage-circle {
    /* Базовые настройки */
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    background-size: 3rem;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #fff;
}

/* Привязка иконок к классам */
.icon-request-estimate { background-image: url('../images/request_estimate.svg'); }
.icon-plot-location    { background-image: url('../images/plot_location.svg'); }
.icon-architecture     { background-image: url('../images/architecture.svg'); }
.icon-engineering      { background-image: url('../images/engineering_systems.svg'); }
.icon-materials        { background-image: url('../images/materials_construction.svg'); }
.icon-facade           { background-image: url('../images/facade_glazing.svg'); }
.icon-interior         { background-image: url('../images/interior_finishing.svg'); }
.icon-equipment        { background-image: url('../images/equipment_furniture.svg'); }
.icon-timelines        { background-image: url('../images/implementation_timelines.svg'); }


/* --- SCROLL ANIMATIONS --- */

/* 1. Базовая анимация для одиночных элементов (Заголовки, кнопки) */
.anim-on-scroll {
  opacity: 0;
  transform: translateY(2rem); /* Смещение вниз на 32px */
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.anim-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Анимация для групп (Сетки, списки) */
/* Скрываем дочерние элементы по умолчанию */
.anim-group .why-item,
.anim-group .cycle-list li,
.anim-group .stage-item,
.anim-group .budget-btn,
.anim-group .feat {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}



/* Когда родитель получает класс is-visible, показываем детей */
.anim-group.is-visible .why-item,
.anim-group.is-visible .cycle-list li,
.anim-group.is-visible .stage-item,
.anim-group.is-visible .budget-btn,
.anim-group.is-visible .feat {
  opacity: 1;
  transform: translateY(0);
}

/* 3. Каскадная задержка (Stagger delay) для детей */
/* Это создает эффект появления элементов по очереди */
.anim-group.is-visible > *:nth-child(1) { transition-delay: 0.1s; }
.anim-group.is-visible > *:nth-child(2) { transition-delay: 0.2s; }
.anim-group.is-visible > *:nth-child(3) { transition-delay: 0.3s; }
.anim-group.is-visible > *:nth-child(4) { transition-delay: 0.4s; }
.anim-group.is-visible > *:nth-child(5) { transition-delay: 0.5s; }
.anim-group.is-visible > *:nth-child(6) { transition-delay: 0.6s; }
.anim-group.is-visible > *:nth-child(7) { transition-delay: 0.7s; }
.anim-group.is-visible > *:nth-child(8) { transition-delay: 0.8s; }
.anim-group.is-visible > *:nth-child(9) { transition-delay: 0.9s; }



/* --- TEASER CARD (Text over Image) --- */

.lp_teaser {
  position: relative;
  display: block;
  width: 100%;
  font-family: var(--font-main); 
}

.lp_teaser-wrapper {
  display: block;
  text-decoration: none;
  width: 100%;
  position: relative;
}

/* Ссылка (курсор) */
.lp_teaser-link { cursor: pointer; }
/* Статика (курсор) */
.lp_teaser-static { cursor: default; }

/* 1. Обертка картинки */
.lp_teaser-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #000; /* Черный фон на случай, если картинка не прогрузилась */
  
  /* Для сохранения пропорций (опционально, если картинки разного размера) */
  /* padding-bottom: 60%; */ 
  /* height: 0; */
}

/* 2. Картинка */
.lp_teaser-image-wrapper img {
  display: block;
  width: 100%;
  height: auto; /* Или 100% если используете padding-bottom hack */
  transition: transform 0.6s ease;
  object-fit: cover;
  position: relative;
  z-index: 1; /* Самый нижний слой */
}

/* 3. Оверлей (Затемнение) */
.lp_teaser-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4); /* 40% черного */
  z-index: 2; /* Поверх картинки */
  transition: background 0.3s ease;
}

/* 4. Контент (Текст + Стрелка) */
.lp_teaser-content {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 3; /* Поверх оверлея */
  
  /* Центрирование текста */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

/* Заголовок */
.lp_teaser-title {
  font-size: 1.75rem;   
  line-height: 1.3;
  margin: 0;
  color: #fff; /* Белый текст */
  text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Легкая тень для читаемости */
  text-transform: uppercase;
}

/* Стрелочка */
.lp_teaser-arrow {
  font-size: 1.5rem;
  color: #fff;
  margin-top: 0.625rem;
  opacity: 0.8;
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: none;
}

.lp_teaser h3 {
  font-weight: var(--fw-semi);
}

/* --- HOVER ЭФФЕКТЫ (Только если есть ссылка) --- */

.lp_teaser-link:hover .lp_teaser-image-wrapper img {
  transform: scale(1.05); /* Зум картинки */
}

.lp_teaser-link:hover .lp_teaser-image-wrapper::after {
  background: rgba(0, 0, 0, 0.5); /* Чуть темнее при наведении для контраста */
}

.lp_teaser-link:hover .lp_teaser-arrow {
  opacity: 1;
  transform: translateY(5px); /* Стрелка двигается вниз (или translateX(5px) вправо) */
}

.landing-block-bg-img {
  background-size: cover;
  min-height: 60vh;
  background-position: center center;
}


/* --- LANDING 86 SPECIFIC STYLES --- */

.landing-86 {
  padding-top: 40px;
}

.page-main-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  font-weight: 600;
}

/* Section 1: About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  font-size: 1.25rem;
}

.about-text .text-block {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.about-stats-box {
    background: #d8e0e5;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto); /* 3 строки под статистику */
    gap: 30px;
    position: relative;
}

.about--license-placeholder {
    grid-column: 2;        
    grid-row: 1 / -1;     
    text-align: center;
}

.about--license-placeholder .certificate {
  border: none;
  background: #fff;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
}

.stat-desc {
  font-size: 1rem;
  margin-top: 5px;
}

.stat-desc a {
  display: inline-block;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.license-placeholder img {
  width: 100%;
  height: auto;
  background: #ccc;
}

/* Section 2: Mission, Values, Approach */
.section-mva {
  margin-top: 100px !important;
  margin-bottom: 100px !important;
}

.section-mva .mva-grid {
  display: grid;
  grid-template-columns: 1fr 3fr; /* Соотношение колонок: картинка | текст */
  gap: 6%; 
  align-items: flex-start; 
}

.mva-image-wrapper {
  height: 80%;
}

.mva-image-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  margin-top: 50px;
}

/* Адаптация для мобильных устройств */
@media (max-width: 991px) {
  .section-mva .mva-grid {
    grid-template-columns: 1fr; /* Колонки встают друг под друга */
    gap: 30px;
  }
}

.mva-row {
  display: grid;
  grid-template-columns: 30% 70%;
  padding: 40px 0;
  border-bottom: 0; 
}

.mva-label h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0;
}

.mva-content {
  font-size: 1.25rem;
  line-height: 1.5;
}

/* Section 3 & 4: Sliders Layout */
.section-slider-layout {
  margin-bottom: 100px !important;
}

.slider-desc {
  color: #666;
}

.team-list, .project-list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 20px;
}

.team-card {
  min-width: 180px;
  text-align: center;
}

.circle-img-wrap {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
}

.circle-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.team-info {
  font-size: 0.9rem;
  line-height: 1.3;
}

.project-teaser {
  min-width: 300px;
}

.project-teaser img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 10px;
}

.project-info {
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* Section 5: Features Bottom */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid #eee;
  padding-top: 60px;
}

.features-grid h2 {
  text-align: center;
}

.cycle-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.cycle-icon-item {
  text-align: center;
  font-size: 1.25rem;
}

.circle-gray {
  width: 70px;
  height: 70px;
  background: #e0e0e0;
  border-radius: 50%;
  margin: 0 auto 10px;
  position: relative;
}


.about-cycle-item {
  width: 70px;
  height: 70px;
  background: #fff;
  border-radius: 50%;
  margin: 0 auto 10px;
  position: relative;
}

.about-cycle-item .s-5__circle {
  background: transparent;
  border: none;
}

.about-cycle-item.item-6 .s-5__circle {
  width: 80%;
  height: 80%;
}

.advantages-list-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.adv-item h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.adv-item p {
  color: #555;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 991px) {
  .about-grid, .mva-row, .features-grid, .advantages-list-grid {
    grid-template-columns: 1fr;
  }
  
  .mva-label h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }
  
  .slider-header.row > div {
    width: 100%;
    margin-bottom: 30px;
  }
}


/* Сетка "Сайдбар + Слайдер" */
.slider-layout-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 50px;
  margin-bottom: 100px;
  align-items: start;
}

@media (max-width: 991px) {
  .slider-layout-grid { grid-template-columns: 1fr; }
}

/* Настройки скролла для контейнера */
.landing-page--about .js-project-slider {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.landing-page--about .js-project-slider::-webkit-scrollbar { display: none; }

/* Нейтрализуем лишние div-обертки от Views, чтобы они не ломали ширину */
.landing-page--about .js-project-slider .views-element-container,
.landing-page--about .js-project-slider .view-our-team-2,
.landing-page--about .js-project-slider .view-content,
.landing-page--about .js-project-slider .view-content > div {
  display: block;
  width: 100%;
}

/* Выстраиваем список <ul> (команда) и .field__items (проекты) в горизонтальную линию */
.landing-page--about .js-project-slider .view-content ul,
.landing-page--about .js-project-slider .field__items {
  display: flex !important; /* !important нужен для переопределения базовых стилей Drupal */
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  width: max-content; /* Важно: ширина по содержимому, чтобы работал скролл */
}

/* Карточка сотрудника */
.landing-page--about .js-project-slider ul li.field__item {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
}

/* Текст и фото команды */
.landing-page--about .js-project-slider .s-10__photo,
.landing-page--about .js-project-slider .s-10__name {
  text-align: center;
  margin-bottom: 1rem;
}
.landing-page--about .js-project-slider .s-10__photo img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  margin: 0 auto 15px auto;
  display: block;
  cursor: pointer;
}

/* Карточка проекта (тизер) */
.landing-page--about .js-project-slider .project-teaser-item {
  flex: 0 0 auto;
  width: 380px;
  scroll-snap-align: start;
}
.landing-page--about .js-project-slider .project-teaser-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-bottom: 15px;
}

.landing-page--about .js-project-slider .s-10__name, .landing-page--about .js-project-slider  .s-10__sub {
  color: #000;
}

/*Projects Slider*/

            .js-project-slider .view-projects-teasers .view-content {
               display: flex !important;
               flex-direction: row !important;
               flex-wrap: nowrap !important;
               gap: 2rem !important;
               width: max-content !important;
               margin: 0;
               padding: 0;
            }
            /* Стили для карточки проекта */
            .js-project-slider .view-projects-teasers .views-row,
            .js-project-slider .view-projects-teasers li {
               flex: 0 0 auto !important;
               width: 320px !important; /* Ширина одной карточки проекта */
               scroll-snap-align: start;
               list-style: none;
               display: block;
            }
            /* Картинка внутри карточки */
            .js-project-slider .view-projects-teasers img {
               width: 100% !important;
               height: 320px !important;
               object-fit: cover !important;
               border-radius: 0 !important;
            }

.path-services .main-page {
  margin: 0;
  padding-bottom: 2rem;
}

.path-services .container {
  --x-padding: 0;
  max-width: none;
}

.landing-page.landing-page--contact {
  margin-top: 68px;
  position: relative;
}

.section-contact-page-form {
  background: #000;

}

@media (min-width: 52rem) {
  .section-contact-page-form {
    position: absolute;
    top: 2rem;
    right: 2rem;
    max-width: 42rem;
  }
}


.hm-services.container {
  margin-bottom: 4rem;
}

.s-5__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.s-5__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 12px;
  width: 100%;
}

.s-5__circle {
/*  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neutral-2);
  border-radius: 50%;
  background-color: var(--neutral-0);
  transition: .3s background-color;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;*/

  position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--neutral-2);
    border-radius: 50%;
    background-color: var(--neutral-0);
    transition: .3s background-color;
    width: 100%;
    height: 0;          /* обнуляем высоту */
    padding-bottom: 100%; /* создаём квадрат */
    flex-shrink: 0;
    box-sizing: border-box;
}



.s-5__icon {
  position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 50%;
    width: 50%;
}

.s-5__item ._p {
  margin: 0;
}

@media (min-width: 576px) {
  .s-5__list {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; 
  }
  
  .hm-header-flex {
    margin-bottom: 32px;
  }
}

@media (min-width: 992px) {
  .s-5__list {
    grid-template-columns: repeat(7, 1fr);
    gap: 24px;
  }
}

.read-more-block h1, .read-more-block h2, .read-more-block h3, 
.read-more-block h4, .read-more-block h5, .read-more-block h6,
.read-more-block p {
  margin-top: 0;
  margin-bottom: 1rem!important;
}

.read-more-block ul, .read-more-block ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style-type: disc;
}

/*FAQ*/

#block-shatro-views-block-faq-block-1 {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.25rem;
}

#block-shatro-views-block-faq-block-1 ._h2 {
  margin-bottom: 3rem;
  text-align: center;
  font-size: 2.5rem;
  font-weight: var(--fw-semi);
}

.view-faq .view-content {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .view-faq .view-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 3rem;
  }
}

.view-faq .views-row {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #d8e0e5;
}

.view-faq .views-field-title {
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.view-faq .views-field-title h3 {
  position: relative;
  margin: 0;
  padding-right: 2.5rem;
  font-weight: var(--fw-med);
  line-height: 1.4;
  transition: color 0.3s ease;
}

/*.view-faq .views-field-title:hover h3,
.view-faq .views-row.is-active .views-field-title h3 {
  color: var(--lp-text-gray);
}*/

.view-faq .views-field-title h3::before,
.view-faq .views-field-title h3::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 16px;
  height: 2px;
  background: #1a1a1a;
  transition: all 0.3s ease;
}

.view-faq .views-field-title h3::before {
  transform: translateY(-50%) rotate(90deg);
}

.view-faq .views-field-title h3::after {
  transform: translateY(-50%);
}

.view-faq .views-row.is-active .views-field-title h3::before {
  transform: translateY(-50%);
}

.view-faq .views-row.is-active .views-field-title h3::before,
.view-faq .views-row.is-active .views-field-title h3::after {
  background: var(--lp-text-gray);
}

.view-faq .views-field-field-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease-out;
}

.view-faq .views-row.is-active .views-field-field-answer {
  grid-template-rows: 1fr;
}

.view-faq .views-field-field-answer .field-content {
  overflow: hidden;
  color: #555;
  line-height: 1.6;
}

.view-faq .views-field-field-answer .field-content p:first-child {
  margin-top: 1.25rem;
}

.view-faq .views-field-field-answer .field-content p:last-child {
  margin-bottom: 0;
}