/* MAES Практика 1.6.1 — compact hero on secondary pages. */
.maes-praktika-main { margin: 0; padding: 0; }
.maes-praktika-root {
  --mp-navy: #01152D;
  --mp-gold: #ECAF54;
  --mp-off: #F7F9FC;
  --mp-muted: #6f7e90;
  --mp-line: #dbe3ec;
  --mp-text: #142033;
  color: var(--mp-text);
  background: #fff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
.maes-praktika-root *, .maes-praktika-root *::before, .maes-praktika-root *::after { box-sizing: border-box; }
.maes-praktika-root a { color: inherit; text-decoration: none; }
.maes-praktika-root img { display: block; max-width: 100%; }
.maes-praktika-root h1,
.maes-praktika-root h2,
.maes-praktika-root h3 {
  margin: 0;
  color: var(--mp-navy);
  font-family: "PT Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.018em;
}
.mp-container { width: min(1264px, calc(100% - 176px)); margin: 0 auto; }
.mp-overline {
  color: #b9791f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

/* Hero: one integrated background, no floating image card */
.mp-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background-color: #071a33;
}
.mp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(1,21,45,.96) 0%, rgba(1,21,45,.90) 20%, rgba(1,21,45,.78) 34%, rgba(1,21,45,.54) 46%, rgba(1,21,45,.22) 60%, rgba(1,21,45,.10) 100%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0)),
    url('../img/hero-books.webp');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
}
.mp-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(1,21,45,0), rgba(1,21,45,.24));
  pointer-events: none;
}
.mp-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 28px;
  padding-bottom: 18px;
}
.mp-hero-stage {
  min-height: 408px;
  display: flex;
  align-items: center;
}
.mp-breadcrumbs { color: rgba(219,229,240,.82); font-size: 11px; line-height: 1.4; margin-bottom: 22px; }
.mp-breadcrumbs span { margin: 0 7px; }
.mp-hero .mp-overline { color: var(--mp-gold); margin-bottom: 12px; }
.mp-hero .mp-overline span { display:inline-block; width:28px; height:1px; margin: 0 10px 3px 0; background: var(--mp-gold); }
.mp-hero h1 { color: #fff; font-size: 58px; line-height: 1; margin-bottom: 14px; }
.mp-hero-copy {
  width: min(100%, 470px);
  padding: 16px 0 22px;
}
.mp-hero-copy > p { max-width: 440px; margin: 0; color: #e2e8ef; font-size: 17px; line-height: 1.62; text-shadow: 0 1px 1px rgba(0,0,0,.12); }
.mp-hero-links {
  margin-top: 22px;
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(236,175,84,.22);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(4,24,48,.82);
  backdrop-filter: blur(7px);
}
.mp-hero-links a {
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  min-height: 54px;
  font-size: 13px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.12);
  transition: color .18s ease, background .18s ease;
}
.mp-hero-links a:last-child { border-right: 0; }
.mp-hero-links a:hover { background: rgba(255,255,255,.035); }
.mp-hero-links a.is-active { color: var(--mp-gold); background: rgba(236,175,84,.055); }
.mp-hero-links a.is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 2px;
  background: var(--mp-gold);
}

/* Sections */
.mp-section { padding: 68px 0 72px; scroll-margin-top: 110px; }
.mp-section-tint { background: var(--mp-off); }
.mp-section-head { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:30px; }
.mp-section h2, .mp-single-header h2 { font-size: 42px; line-height: 1.1; margin-top: 8px; }
.mp-grid { display:grid; gap:18px; }
.mp-grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.mp-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.mp-feature-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:18px; }
.mp-grid-catalogs-page { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* Cards */
.mp-card {
  min-width: 0;
  border: 1px solid var(--mp-line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.mp-card-image {
  display:flex;
  align-items:center;
  justify-content:center;
  aspect-ratio: 16 / 9;
  overflow:hidden;
  background:#edf2f7;
}
.mp-post-card .mp-card-image img,
.mp-corporate-image img { width:100%; height:100%; object-fit:cover; transition: transform .22s ease; }
.mp-post-card:hover .mp-card-image img,
.mp-catalog-card:hover .mp-corporate-image img { transform: scale(1.015); }
.mp-catalog-image { padding: 18px; }
.mp-catalog-image img {
  width:auto;
  height:100%;
  max-height: 220px;
  object-fit:contain;
  box-shadow:0 8px 20px rgba(1,21,45,.13);
}
.mp-card-body { padding: 18px 18px 16px; display:flex; flex-direction:column; flex:1 1 auto; }
.mp-card .mp-eyebrow { min-height: 14px; color:#b9791f; font-size:9px; font-weight:600; letter-spacing:.11em; text-transform:uppercase; }
.mp-card h3 { font-size: 24px; line-height: 1.15; margin-top: 8px; }
.mp-card h3 a:hover { color:#254e78; }
.mp-card p { margin: 10px 0 0; color: #68788a; font-size: 13px; line-height: 1.55; }
.mp-card-meta { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin-top:auto; padding-top:18px; color:#8c99a8; font-size:10px; }
.mp-card-meta a { color:#1f3d61; font-size:11px; white-space:nowrap; }
.mp-card-no-image { min-height: 340px; }
.mp-feature-card .mp-card-image { aspect-ratio: 16 / 9; }
.mp-feature-grid .mp-card { min-height: 460px; }
.mp-grid-4 .mp-card h3 { font-size: 21px; line-height: 1.18; }
.mp-grid-4 .mp-card p { font-size: 12.5px; }
.mp-grid-4 .mp-card-image { aspect-ratio: 16 / 10; }
.mp-articles-index { padding-bottom: 22px; }
.mp-direction-section { padding-top: 54px; padding-bottom: 58px; }
.mp-direction-head { margin-bottom: 24px; }
.mp-direction-head h2 { font-size: 36px; }
.mp-direction-count { color: #8c99a8; font-size: 12px; padding-bottom: 4px; }

/* Single content */
.mp-single { padding: 64px 0 80px; }
.mp-single-shell { max-width: 980px; margin: 0 auto; background: #fff; }
.mp-single-header { margin-bottom: 26px; }
.mp-single-meta { margin-top: 14px; color:#8c99a8; font-size: 13px; }
.mp-single-media { margin-bottom: 28px; border-radius: 8px; overflow: hidden; }
.mp-single-media img { width: 100%; height: auto; display: block; }
.mp-single-content { color: #1c2940; font-size: 17px; line-height: 1.8; }
.mp-single-content > *:first-child { margin-top: 0; }
.mp-single-content h2,.mp-single-content h3,.mp-single-content h4 { color: var(--mp-navy); font-family: "PT Serif", Georgia, serif; font-weight: 400; }
.mp-single-content h2 { font-size: 34px; margin: 1.5em 0 .5em; }
.mp-single-content h3 { font-size: 28px; margin: 1.4em 0 .45em; }
.mp-single-content p,.mp-single-content ul,.mp-single-content ol { margin: 0 0 1.05em; }
.mp-single-content img { max-width: 100%; height: auto; border-radius: 6px; }
.mp-single-content table { width:100%; border-collapse: collapse; margin: 1.2em 0; }
.mp-single-content th, .mp-single-content td { border:1px solid var(--mp-line); padding: 10px 12px; }
.single-post .widget, .single-post .sidebar, .single-post .sidebar-widget, .single-post aside,
.single-maes_practice .widget, .single-maes_practice .sidebar, .single-maes_practice .sidebar-widget, .single-maes_practice aside { display: none !important; }
.single-post .content-area, .single-maes_practice .content-area,
.single-post .site-main, .single-maes_practice .site-main { width: 100% !important; max-width: 100% !important; }

.mp-empty {
  padding: 36px 30px;
  border: 1px solid var(--mp-line);
  border-radius: 6px;
  background: #fff;
  color: var(--mp-muted);
}
.mp-empty p { margin: 0; }


/* 1.6.1 — full hero only on /praktika/. Secondary pages use a compact navigation hero. */
.mp-hero--compact .mp-hero-inner {
  padding-top: 16px;
  padding-bottom: 12px;
}
.mp-hero--compact .mp-hero-stage {
  min-height: 205px;
}
.mp-hero--compact .mp-hero-copy {
  width: min(100%, 520px);
  padding: 4px 0 8px;
}
.mp-hero--compact .mp-breadcrumbs {
  margin-bottom: 10px;
}
.mp-hero--compact .mp-overline {
  margin-bottom: 7px;
  font-size: 9px;
}
.mp-hero--compact h1 {
  font-size: 40px;
  margin-bottom: 8px;
}
.mp-hero--compact .mp-hero-copy > p {
  max-width: 510px;
  font-size: 14px;
  line-height: 1.48;
}
.mp-hero--compact .mp-hero-links {
  margin-top: 8px;
  min-height: 46px;
}
.mp-hero--compact .mp-hero-links a {
  min-height: 46px;
  font-size: 12px;
}
.mp-hero--compact::before {
  background-position: 60% 48%;
}

@media (max-width: 1180px) {
  .mp-container { width: min(100% - 64px, 1264px); }
  .mp-grid-catalogs-page, .mp-grid-4, .mp-feature-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .mp-container { width: calc(100% - 36px); }
  .mp-hero::before {
    background-image:
      linear-gradient(180deg, rgba(1,21,45,.92) 0%, rgba(1,21,45,.86) 38%, rgba(1,21,45,.72) 100%),
      url('../img/hero-books.webp');
    background-position: 64% center;
  }
  .mp-hero-inner { padding-top: 20px; padding-bottom: 16px; }
  .mp-hero-stage { min-height: 320px; }
  .mp-breadcrumbs { margin-bottom: 16px; }
  .mp-hero h1 { font-size: 42px; line-height: 1.04; }
  .mp-hero-copy { width: 100%; max-width: 480px; }
  .mp-hero-copy > p { max-width: 100%; font-size: 15px; }
  .mp-hero-links { grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 18px; }
  .mp-hero-links a { font-size: 11px; min-height: 50px; }
  .mp-hero--compact .mp-hero-inner { padding-top: 12px; padding-bottom: 10px; }
  .mp-hero--compact .mp-hero-stage { min-height: 185px; }
  .mp-hero--compact .mp-hero-copy { padding: 0 0 4px; }
  .mp-hero--compact .mp-breadcrumbs { margin-bottom: 8px; }
  .mp-hero--compact h1 { font-size: 34px; margin-bottom: 6px; }
  .mp-hero--compact .mp-hero-copy > p { font-size: 13px; line-height: 1.42; max-width: 92%; }
  .mp-hero--compact .mp-hero-links { margin-top: 8px; }
  .mp-hero--compact .mp-hero-links a { min-height: 44px; font-size: 10px; }
  .mp-section, .mp-single { padding: 48px 0; }
  .mp-section h2, .mp-single-header h2 { font-size: 32px; }
  .mp-grid-3 { grid-template-columns: 1fr; }
  .mp-feature-grid, .mp-grid-4, .mp-grid-catalogs-page { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .mp-feature-grid .mp-card { min-height: 0; }
  .mp-single-content { font-size: 16px; line-height: 1.75; }
}

@media (max-width: 560px) {
  .mp-hero::before { background-position: 68% center; }
  .mp-hero h1 { font-size: 38px; }
  .mp-hero--compact .mp-hero-stage { min-height: 168px; }
  .mp-hero--compact h1 { font-size: 32px; }
  .mp-hero--compact .mp-hero-copy > p { max-width: 100%; }
  .mp-feature-grid, .mp-grid-4, .mp-grid-catalogs-page { grid-template-columns: 1fr; }
  .mp-direction-head { align-items:flex-start; gap:12px; }
  .mp-direction-head h2 { font-size: 30px; }
}


/* 1.5.1 hardening: ensure direction/article grids are visibly four-up on desktop. */
@media (min-width: 1181px) {
  .maes-praktika-root .mp-grid.mp-grid-4,
  .maes-praktika-root .mp-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}


/* 1.6.0 — navigation architecture for article directions */
.mp-direction-nav-wrap {
  position: sticky;
  top: 144px;
  z-index: 35;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--mp-line);
  box-shadow: 0 6px 18px rgba(1,21,45,.04);
  backdrop-filter: blur(10px);
}
.mp-direction-nav {
  min-height: 54px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: thin;
  gap: 0;
}
.mp-direction-nav a {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 17px;
  min-height: 54px;
  color: #526276;
  font-size: 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.mp-direction-nav a:hover { color: var(--mp-navy); }
.mp-direction-nav a.is-active { color: #a96713; border-bottom-color: var(--mp-gold); font-weight: 600; }

.mp-direction-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 16px;
}
.mp-direction-tile {
  min-height: 178px;
  padding: 21px 20px 18px;
  border: 1px solid var(--mp-line);
  border-radius: 6px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.mp-direction-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(236,175,84,.72);
  box-shadow: 0 9px 24px rgba(1,21,45,.06);
}
.mp-direction-tile-top { display:flex; justify-content:space-between; gap:15px; color:var(--mp-navy); }
.mp-direction-tile-label { font-family:"PT Serif",Georgia,serif; font-size:23px; line-height:1.15; }
.mp-direction-tile-top > span:last-child { color:#b9791f; }
.mp-direction-tile p { margin:13px 0 16px; color:#6f7e90; font-size:12.5px; line-height:1.5; }
.mp-direction-tile-count { margin-top:auto; color:#8b98a8; font-size:10px; }

.mp-section-link {
  padding-bottom: 5px;
  color: #25466b !important;
  font-size: 12px;
  white-space: nowrap;
}
.mp-section-link span { color:#b9791f; padding-left:5px; }
.mp-direction-preview { padding-top:54px; padding-bottom:58px; }

.mp-direction-page-intro {
  display:flex;
  justify-content:space-between;
  gap:40px;
  align-items:flex-end;
  margin-bottom:30px;
}
.mp-direction-page-intro h2 { font-size:42px; margin-top:8px; }
.mp-direction-page-intro p { max-width:720px; margin:12px 0 0; color:#68788a; font-size:14px; line-height:1.6; }
.mp-pagination { display:flex; justify-content:center; gap:7px; margin-top:36px; }
.mp-pagination a {
  min-width:38px; height:38px; padding:0 10px; border:1px solid var(--mp-line); border-radius:4px;
  display:inline-flex; align-items:center; justify-content:center; color:#294660; font-size:12px; background:#fff;
}
.mp-pagination a.is-active { color:#13243a; border-color:var(--mp-gold); background:#f9e5bd; }

.mp-breadcrumbs a { color:inherit; }
.mp-breadcrumbs a:hover { color:#fff; }
.mp-single-meta { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }
.mp-single-meta a { color:#a96713; }

.mp-related { padding:58px 0 64px; }
.mp-related-head h2 { font-size:36px; }
.mp-related-actions {
  margin-top:28px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.mp-related-primary, .mp-related-secondary {
  min-height:44px;
  border-radius:6px;
  display:inline-flex;
  align-items:center;
  padding:0 18px;
  font-size:12px;
}
.mp-related-primary { background:var(--mp-navy); color:#fff !important; }
.mp-related-secondary { background:#fff; border:1px solid var(--mp-line); color:#244363 !important; }

.mp-back-top {
  position:fixed;
  right:26px;
  bottom:28px;
  z-index:60;
  min-height:42px;
  padding:0 15px;
  border:1px solid rgba(236,175,84,.45);
  border-radius:22px;
  background:rgba(1,21,45,.94);
  color:#fff;
  font:500 12px/1 "Montserrat",Arial,sans-serif;
  cursor:pointer;
  opacity:0;
  transform:translateY(10px);
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
  box-shadow:0 8px 24px rgba(1,21,45,.18);
}
.mp-back-top.is-visible { opacity:1; transform:none; pointer-events:auto; }
.mp-back-top span { margin-left:5px; }

@media (max-width: 1180px) {
  .mp-direction-nav-wrap { top: 128px; }
  .mp-direction-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .mp-direction-nav-wrap { top: 72px; }
  .mp-direction-nav { margin-left:-18px; margin-right:-18px; padding:0 18px; }
  .mp-direction-tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mp-direction-page-intro { display:block; }
  .mp-direction-page-intro .mp-direction-count { display:block; margin-top:12px; }
  .mp-related-head h2 { font-size:30px; }
  .mp-back-top span { display:none; }
  .mp-back-top { width:44px; height:44px; padding:0; right:16px; bottom:16px; }
}
@media (max-width: 560px) {
  .mp-direction-tiles { grid-template-columns: 1fr; }
  .mp-direction-tile { min-height:150px; }
  .mp-direction-tile-label { font-size:21px; }
  .mp-related-actions { display:grid; grid-template-columns:1fr; }
  .mp-related-primary, .mp-related-secondary { justify-content:center; text-align:center; }
}
