/* ========================================
   PASYAKIN SYSTEM - HOME PAGE
   ======================================== */

/* Hero Section */
.hero-section {
  padding: 100px 82px 60px;
  background: #F1F1F1;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-content {
  text-align: center;
  margin-bottom: 60px;
}

.hero-main-title {
  font-family: 'Luxerie', sans-serif;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 3.84px;
  color: #000;
  margin-bottom: 12px;
  line-height: normal;
}

.hero-subtitle {
  font-family: 'Maven Pro', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #474646;
  margin: 0;
}

/* Four navigation blocks — Figma: 4 блока 303px, gap 22, БЕЗ рамок (только текст) */
.four-cards {
  display: grid;
  grid-template-columns: repeat(4, 303px);
  justify-content: space-between;
  max-width: 1278px;
  margin: 0 auto 60px;
}

.card-four {
  display: block;
  padding-top: 18px;          /* Figma: NAME @+18 от верха блока */
  text-align: center;
  text-decoration: none;
}

.card-title {
  font-family: 'Luxerie', sans-serif;     /* Figma: Luxerie Regular 40px ls6% */
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
  margin: 0;
}

.card-subtitle {
  font-family: 'Maven Pro', sans-serif;    /* Figma: Maven Pro Regular 24px #979b9e ls6% */
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #979b9e;
  text-transform: uppercase;
  text-align: center;
  margin: 21px 0 0;           /* Figma: подпись @+85 от верха блока */
}

/* STATE OF VERIFICATION — в .fig более узкий трекинг (ls:3) */
.card-four:nth-child(4) .card-subtitle { letter-spacing: 0.03em; }

/* Hero Description — Figma: ширина 1278, центр, line-height 1.0 */
.hero-description {
  max-width: 1278px;
  margin: 0 auto;
  text-align: center;
}

.hero-description p {
  font-family: 'Maven Pro', sans-serif;
  font-size: 24px;            /* Figma: Maven Pro Regular 24px #474646 */
  font-weight: 400;
  color: #474646;
  margin: 0 0 38px;           /* Figma: text1 @554 → text2 @616 (62) - высота строки */
  line-height: 1;
}

.hero-description p + p { margin-bottom: 27px; }  /* text2 @616 → СТРУКТУРА @667 (51) */

.strukture-title {
  font-family: 'Maven Pro', sans-serif;
  font-size: 24px;            /* Figma: «СТРУКТУРА.» Maven Pro 24px ls:6% #000 */
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #000;
  margin: 0 !important;
}

/* Section Headings */
.section-heading {
  font-family: 'Luxerie', sans-serif;
  font-size: 40px;
  font-weight: 400;
  color: #000;
  margin: 0 0 8px;
  line-height: normal;
}

.section-intro {
  font-family: 'Luxerie', serif;   /* Figma: Luxerie 32px #474646 */
  font-size: 32px;
  font-weight: 400;
  color: #474646;
  margin-bottom: 48px;
  line-height: 1.15;
}

.intro-brand {
  font-family: 'Luxerie', sans-serif;
  font-size: 40px;            /* Figma: Luxerie 40px inline-бренд */
  font-weight: 400;
  color: #474646;
}

/* Section divider line */
.section-divider {
  width: 100%;
  height: 1px;
  background: #989CA0;
  margin-bottom: 40px;
}

/* Sections */
.probatum-section,
.method-section,
.system-section,
.access-section,
.about-section,
.contact-section {
  padding: 60px 82px;
  background: #F1F1F1;
  border-top: 1px solid #989CA0;
  max-width: 1440px;
  margin: 0 auto;
}

/* Structure Grid */
.structure-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  max-width: 1278px;
  margin: 32px auto 48px;
  align-items: start;
}

.structure-title-block h3 {
  font-family: 'Luxerie', sans-serif;
  font-size: 36px;
  font-weight: 400;
  color: #000;
  margin: 0;
  letter-spacing: 2px;
}

.structure-diagram {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  padding-left: 20px;
}

.structure-diagram::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: #D2D2D3;
}

.structure-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  position: relative;
}

.structure-line {
  position: absolute;
  left: -20px;
  top: 50%;
  width: 20px;
  height: 1px;
  background: #D2D2D3;
}

.structure-label {
  font-family: 'Maven Pro', sans-serif;
  font-weight: 400;
  color: #000;
  font-size: 20px;           /* Figma: Maven Pro 20px */
  white-space: nowrap;
}

.structure-sep {
  color: #000;
  font-weight: 400;
}

.structure-desc {
  font-family: 'Maven Pro', sans-serif;
  font-weight: 400;
  color: #474646;
  font-size: 20px;           /* Figma: Maven Pro 20px #474646 */
  line-height: 1.5;
}

/* Dark Box */
/* Figma: тёмная панель borders 1278x186 #252525 + фигурная рамка (SVG _dark_frame) */
.dark-box {
  background: #252525;
  width: 1278px;
  max-width: 100%;
  height: 186px;
  margin: 48px auto 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.fig-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.dark-box p { position: relative; z-index: 1; }

.dark-box p {
  margin-bottom: 12px;
  font-family: 'Maven Pro', sans-serif;
}

.dark-box-label {
  font-size: 18px;
  font-weight: 400;
  color: #919190;
}

.dark-box-emphasis {
  font-size: 20px;
  font-weight: 500;
  color: #D4D4D4;
  margin-top: 8px;
}

/* Method Grid */
/* Figma: 3 блока 378x334, гэп 72, без рамки (Frame29/30/31) */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 378px);
  justify-content: space-between;
  width: 1278px;
  max-width: 100%;
  margin: 0 auto 48px;
}

.method-card {
  width: 378px;
  height: 334px;
  box-sizing: border-box;
  position: relative;
}

.method-card:last-child {
  border-right: none;
}

/* Figma: блок 01 фон #252525 (текст белый/#989ca0); 02-03 фон #e5e3e3 (текст #1e1e1e/#6f6f6f) */
.method-card--dark { background: #252525; }
.method-card--light { background: #E5E3E3; }

.method-card--dark .method-number,
.method-card--dark .method-title { color: #FFFFFF; }
.method-card--dark .method-text { color: #989CA0; }

.method-number {
  position: absolute;
  top: 17px;                 /* Figma: 01 @ +17 */
  right: 24px;
  margin: 0;
  font-family: 'Maven Pro', sans-serif;
  font-size: 40px;           /* Figma: Maven 40 */
  font-weight: 400;
  color: #1E1E1E;
}

.method-title {
  position: absolute;
  left: 24px;
  top: 101px;                /* Figma: заголовок @ +101 */
  margin: 0;
  font-family: 'Maven Pro', sans-serif;   /* Figma: Maven 48 (не Luxerie) */
  font-size: 48px;
  font-weight: 400;
  color: #1E1E1E;
  line-height: normal;
}

.method-text {
  position: absolute;
  left: 24px;
  top: 198px;                /* Figma: текст @ +198 */
  width: 330px;
  margin: 0;
  font-family: 'Maven Pro', sans-serif;
  font-size: 20px;           /* Figma: Maven 20 */
  font-weight: 400;
  line-height: 1.5;
  color: #6F6F6F;
}

/* Wide Box */
.wide-box {
  border: 1px solid #D2D2D3;
  padding: 36px 40px;
  text-align: center;
  margin: 0 auto;
  max-width: 1278px;
  background: #F1F1F1;
}

.wide-box p {
  font-family: 'Maven Pro', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #474646;
  margin: 0;
  line-height: 1.6;
}

/* System Flow */
.system-flow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 0 auto 32px;
  max-width: 1278px;
}

.flow-box {
  border: 0.5px solid #474646;
  padding: 31px 40px;
  text-align: center;
  min-width: 200px;
  background: #F1F1F1;
}

.flow-box p {
  font-family: 'Maven Pro', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #474646;
  line-height: 1.74;
  margin: 0;
}

.flow-arrow-box {
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.flow-arrow {
  display: block;
  overflow: visible;
}

.system-note {
  text-align: center;
  font-family: 'Maven Pro', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #474646;
  margin: 32px auto 48px;
  max-width: 1278px;
}

/* System Grid */
.system-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1278px;
  margin: 0 auto 48px;
}

.system-card {
  background: #E5E3E3;
  padding: 42px 120px 53px;
}

.system-card:first-child {
  border-right: 1px solid #D2D2D3;
}

.system-card h3 {
  font-family: 'Luxerie', sans-serif;
  font-size: 36px;
  font-weight: 400;
  color: #000;
  margin-bottom: 24px;
  line-height: normal;
}

.system-card p {
  font-family: 'Maven Pro', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #474646;
  line-height: 1.8;
  margin-bottom: 16px;
  text-align: justify;
}

.via-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.via-list li {
  font-family: 'Maven Pro', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #474646;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.via-list li::before {
  content: '●';
  position: absolute;
  left: 0;
  font-size: 10px;
  top: 3px;
  color: #474646;
}

.house-note {
  font-family: 'Maven Pro', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #474646;
  margin-top: 24px;
  text-align: justify;
}

/* Access Grid */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 0.5px solid #D3D2D3;
  max-width: 1278px;
  margin: 32px auto 32px;
}

.access-list-yes,
.access-list-no {
  background: #F1F1F1;
  padding: 61px 46px 60px;
}

.access-list-yes {
  border-right: 0.5px solid #D3D2D3;
}

.access-list-yes p,
.access-list-no p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Maven Pro', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #474646;
  margin-bottom: 34px;
  line-height: normal;
}

.access-list-yes p:last-child,
.access-list-no p:last-child {
  margin-bottom: 0;
}

.check-mark {
  color: #474646;
  flex-shrink: 0;
}

.cross-mark {
  color: #474646;
  flex-shrink: 0;
}

.access-note {
  text-align: center;
  font-family: 'Maven Pro', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #000;
  margin: 32px auto 0;
  max-width: 1278px;
}

.access-note .intro-brand {
  font-size: 32px;
  color: #000;
}

/* About Grid */
.about-grid {
  display: flex;
  align-items: flex-start;
  gap: 99px;
  max-width: 1278px;
  margin: 40px auto 24px;
}

.about-main {
  flex: 0 0 513px;
}

.about-divider {
  width: 1px;
  background: #D3D2D3;
  align-self: stretch;
  flex-shrink: 0;
}

.about-name {
  font-family: 'Luxerie', sans-serif;
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 3.84px;
  color: #252525;
  margin-bottom: 16px;
  line-height: normal;
}

.about-desc {
  font-family: 'Maven Pro', sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #474646;
  line-height: 1.6;
  text-align: justify;
}

.about-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.about-item {
  border: 0.5px solid #919190;
  padding: 25px 20px;
  font-family: 'Maven Pro', sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: #252525;
  text-align: center;
  background: #F1F1F1;
  transition: background 200ms ease;
}

.about-item:hover {
  background: #E5E3E3;
}

.about-core {
  max-width: 1278px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Maven Pro', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #474646;
  line-height: 1.6;
}

/* Contact Section */
.contact-intro {
  font-family: 'Maven Pro', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #474646;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 900px;
}

.contact-email {
  display: inline-block;
  font-family: 'Maven Pro', sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  transition: opacity 200ms ease;
}

.contact-email:hover {
  opacity: 0.6;
}

.contact-note {
  display: block;
  margin-top: 24px;
  font-family: 'Maven Pro', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #474646;
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
  .hero-section,
  .probatum-section,
  .method-section,
  .system-section,
  .access-section,
  .about-section,
  .contact-section {
    padding-left: 40px;
    padding-right: 40px;
  }

  .four-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-four:nth-child(2) {
    border-right: none;
  }

  .structure-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .structure-diagram {
    padding-left: 0;
  }

  .structure-diagram::before {
    display: none;
  }

  .structure-item {
    flex-wrap: wrap;
    gap: 4px;
  }

  .structure-line {
    display: none;
  }

  .method-grid {
    grid-template-columns: 1fr;
  }

  .method-card {
    border-right: none;
    border-bottom: 1px solid #D2D2D3;
  }

  .method-card:last-child {
    border-bottom: none;
  }

  .system-flow {
    justify-content: center;
  }

  .flow-box {
    min-width: 0;
    flex: 1;
    padding: 24px 16px;
  }

  .flow-box p {
    font-size: 18px;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .system-card:first-child {
    border-right: none;
    border-bottom: 1px solid #D2D2D3;
  }

  .about-grid {
    flex-direction: column;
    gap: 32px;
  }

  .about-main {
    flex: none;
    width: 100%;
  }

  .about-divider {
    width: 100%;
    height: 1px;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }

  .access-list-yes {
    border-right: none;
    border-bottom: 0.5px solid #D3D2D3;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 80px 24px 48px;
  }

  .hero-main-title {
    font-size: 40px;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .four-cards {
    grid-template-columns: 1fr;
  }

  .card-four {
    border-right: none;
    border-bottom: 1px solid #D2D2D3;
  }

  .card-four:last-child {
    border-bottom: none;
  }

  .section-heading {
    font-size: 32px;
  }

  .intro-brand {
    font-size: 26px;
  }

  .probatum-section,
  .method-section,
  .system-section,
  .access-section,
  .about-section,
  .contact-section {
    padding: 48px 24px;
  }

  .dark-box {
    padding: 40px 24px;
  }

  .method-card {
    padding: 48px 24px;
  }

  .method-title {
    font-size: 32px;
  }

  .system-card {
    padding: 40px 32px;
  }

  .about-name {
    font-size: 40px;
  }

  .about-item {
    font-size: 18px;
    padding: 20px 16px;
  }

  .access-list-yes,
  .access-list-no {
    padding: 40px 24px;
  }

  .system-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-box {
    min-width: 0;
    width: 100%;
    padding: 24px 20px;
  }

  .flow-box p {
    font-size: 18px;
  }

  .flow-arrow-box {
    justify-content: center;
    height: 44px;
    padding: 0;
  }

  .flow-arrow {
    transform: rotate(90deg) scale(0.6);
  }
}

@media (max-width: 375px) {
  .hero-main-title {
    font-size: 32px;
  }

  .section-heading {
    font-size: 26px;
  }

  .method-title {
    font-size: 28px;
  }

  .about-name {
    font-size: 32px;
  }
}
