/* =========================================================
   Самовольное строительство и перепланировки
   ========================================================= */

.page-main--samov {
  background: var(--bg-light, #f5f5f5);
}

.samov-toc {
  position: sticky;
  top: 0;
  z-index: 12;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border, #e8e8e8);
  backdrop-filter: blur(10px);
}

.samov-toc__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 0;
  overflow-x: auto;
}

.samov-toc a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted, #777);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.samov-toc a:hover,
.samov-toc a:focus-visible {
  color: var(--primary, #0c612b);
}

.samov-section {
  padding: 72px 0;
}

.samov-section .section__header--left {
  text-align: left;
  align-items: flex-start;
  margin-bottom: 28px;
}

.samov-section .section__header--left .section__title {
  max-width: 22ch;
}

.samov-section .section__lead {
  margin: 12px auto 0;
  max-width: 70ch;
  color: var(--text-muted, #777);
  line-height: 1.55;
}

.samov-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.samov-split--flip .samov-media {
  order: -1;
}

.samov-split__copy p {
  margin: 0 0 14px;
  color: var(--text-dark, #444);
  line-height: 1.65;
}

.samov-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.samov-media {
  margin: 0;
  border-radius: var(--radius-lg, 10px);
  overflow: hidden;
  border: 1px solid var(--border, #e8e8e8);
  background: #fff;
}

.samov-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* Maket blocks: require / forbidden / process */
.samov-block-head {
  margin: 0 0 22px;
  text-align: center;
}

.samov-block-head__title {
  margin: 0;
  color: #111;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.samov-box {
  padding: clamp(22px, 3vw, 36px) clamp(20px, 3vw, 40px);
  background: #fff;
  border: 1px solid #111;
  border-radius: var(--radius-lg, 10px);
}

.samov-box__lead {
  margin: 0 0 18px;
  color: #222;
  font-size: 16px;
  line-height: 1.6;
}

.samov-dash-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.samov-dash-list li {
  position: relative;
  padding-left: 18px;
  color: #222;
  font-size: 16px;
  line-height: 1.5;
}

.samov-dash-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  color: #111;
  font-weight: 600;
}

.samov-dash-list--rich li {
  display: block;
}

.samov-dash-list--rich strong {
  font-weight: 700;
  color: #111;
}

.samov-dash-list--rich em {
  display: inline;
  margin-left: 0.25em;
  font-style: italic;
  font-weight: 400;
  color: #333;
}

.samov-note {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  margin-top: 14px;
  background: #fff;
  border: 1px solid #111;
  border-radius: var(--radius-lg, 10px);
}

.samov-note__mark {
  display: grid;
  place-items: center;
  border-right: 1px solid #111;
  color: #9a9a9a;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 300;
  line-height: 1;
}

.samov-note__text {
  margin: 0;
  padding: 18px 22px;
  color: #222;
  font-size: 15px;
  line-height: 1.55;
}

.samov-num-list {
  margin: 0;
  padding: 0 0 0 1.25em;
  display: grid;
  gap: 10px;
  color: #222;
  font-size: 16px;
  line-height: 1.55;
}

.samov-num-list li.is-accent {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-main--samov .amicum-about-process {
  margin: 0;
}

.samov-faq {
  margin-top: 28px;
  display: grid;
  gap: 10px;
}

.samov-faq__item {
  background: #fff;
  border: 1px solid var(--border, #e8e8e8);
  border-radius: var(--radius-lg, 10px);
}

.samov-faq__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 28px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text-dark, #222);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.samov-faq__icon {
  position: relative;
  width: 18px;
  height: 18px;
}

.samov-faq__icon::before,
.samov-faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary, #0c612b);
  border-bottom: 2px solid var(--primary, #0c612b);
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.samov-faq__icon::after {
  transform: translate(-50%, -30%) rotate(45deg);
  opacity: 0.55;
}

.samov-faq__btn[aria-expanded="true"] .samov-faq__icon::before {
  transform: translate(-50%, -30%) rotate(-135deg);
}

.samov-faq__btn[aria-expanded="true"] .samov-faq__icon::after {
  transform: translate(-50%, -70%) rotate(-135deg);
}

.samov-faq__panel {
  padding: 0 20px 18px;
}

.samov-faq__panel[hidden] {
  display: none !important;
}

.samov-faq__panel p {
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--border, #e8e8e8);
  color: var(--text-muted, #555);
  line-height: 1.6;
  font-size: 15px;
}

.samov-cta {
  padding: 56px 0 80px;
}

.samov-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px 40px;
  border-radius: var(--radius-lg, 10px);
  background:
    linear-gradient(135deg, rgba(12, 97, 43, 0.96), rgba(8, 60, 28, 0.98)),
    var(--primary, #0c612b);
  color: #fff;
  box-shadow: 0 18px 40px rgba(12, 97, 43, 0.28);
}

.samov-cta .section__label {
  color: var(--accent, #c8e635);
}

.samov-cta .section__title {
  color: #fff;
  margin-top: 6px;
}

.samov-cta p {
  margin: 10px 0 0;
  max-width: 52ch;
  opacity: 0.9;
  line-height: 1.55;
}

.samov-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  align-items: center;
}

.samov-cta .btn {
  min-height: 48px;
}

.samov-cta .btn--primary {
  background: #0c5528;
  border-radius: 2px;
}

.samov-cta .btn--primary:hover {
  background: #0f6a32;
}

.samov-cta .btn--white {
  border-radius: 10px;
}

@media (max-width: 1100px) {
  .samov-split,
  .samov-split--flip {
    grid-template-columns: 1fr;
  }

  .samov-split--flip .samov-media {
    order: initial;
  }
}

@media (max-width: 800px) {
  .samov-section {
    padding: 52px 0;
  }

  .samov-note {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .samov-note__text {
    padding: 14px 16px;
  }

  .samov-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 22px;
  }

  .samov-toc {
    top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .samov-toc a,
  .samov-faq__icon::before,
  .samov-faq__icon::after {
    transition: none;
  }
}
