/* Внутренние страницы КАМВЕРО v4 */

.page {
  flex: 1;
  /* Шапка sticky уже в потоке — не дублируем --header-h */
  padding: 1.25rem 0 clamp(3rem, 7vw, 5rem);
}

.page:has(.article-more) {
  padding-bottom: 0;
}

.page__wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: 0.45; }

.page__head {
  margin-bottom: 2rem;
  max-width: 44rem;
}

.page__head h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  margin-bottom: 0.4rem;
}

.page__head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin: 0;
}

.page__lead {
  background: rgba(169, 120, 80, 0.08);
  border: 1px solid rgba(169, 120, 80, 0.2);
  border-radius: var(--r);
  padding: 1rem 1.15rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.prose {
  max-width: 42rem;
  line-height: 1.65;
}

.prose--legal {
  max-width: none;
  width: 100%;
}

.page--legal .page__head--wide {
  max-width: none;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.92rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: rgba(235, 232, 227, 0.65);
  font-weight: 600;
  width: 34%;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.65rem;
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.35rem 0 0.5rem;
}

.prose ul, .prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.35rem; }
.prose p:last-child { margin-bottom: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 2px);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(169, 120, 80, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--fog);
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.card__tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.card__body h2, .card__body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.card__meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.65rem;
}

.card__price {
  font-family: var(--font-d);
  font-weight: 700;
  color: var(--accent-deep);
  font-size: 0.95rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--accent-light); }
.filter-btn.is-on {
  border-color: var(--accent);
  background: rgba(169, 120, 80, 0.1);
  color: var(--accent-deep);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 2px);
  overflow: hidden;
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin-bottom: 1.5rem;
  border-radius: calc(var(--r) + 2px);
}

.table-wrap .price-table {
  min-width: 520px;
}

.price-table th,
.price-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.price-table th {
  background: var(--fog);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child {
  font-weight: 700;
  color: var(--accent-deep);
  white-space: nowrap;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.split__aside {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 2px);
  padding: 1.35rem;
}

.split__aside h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.info-list {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.info-list dt {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.info-list dd {
  margin: 0;
  font-weight: 600;
}

.gallery-detail__hero {
  border-radius: calc(var(--r) + 4px);
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
}

.gallery-detail__hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.gallery-detail__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-detail__thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--line);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.gallery-detail__thumbs img:hover,
.gallery-detail__thumbs img.is-on { opacity: 1; border-color: var(--accent); }

.promo-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 2px);
  margin-bottom: 0.75rem;
}

.promo-card__tag {
  padding: 0.35rem 0.65rem;
  background: var(--accent);
  color: var(--lime-ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--r);
}

.promo-card p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

.page__head--wide {
  max-width: none;
  margin-bottom: 1.15rem;
}

.page--reviews .crumbs {
  margin-bottom: 0.65rem;
}

.review-card {
  margin: 0;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 2px);
}

.review-card__rating {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.review-card__rating-dim {
  color: rgba(169, 120, 80, 0.28);
}

.review-card cite {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: normal;
}

.reviews-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.review-card p {
  margin: 0;
  line-height: 1.55;
  font-size: 0.98rem;
}

/* ——— Форма отзыва ——— */
.review-form {
  margin: 0;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 2px);
}

.review-form__head {
  margin-bottom: 0.85rem;
}

.review-form__head h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  margin: 0 0 0.25rem;
}

.review-form__head p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.review-form__body {
  display: grid;
  gap: 0.7rem;
}

.review-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.review-form__field > span {
  color: var(--ink-soft);
}

.review-form__field input:not([type="checkbox"]),
.review-form__field textarea {
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  font-weight: 500;
  width: 100%;
  box-sizing: border-box;
}

.review-form__field textarea {
  resize: vertical;
  min-height: 112px;
  line-height: 1.5;
}

.review-form__field input:not([type="checkbox"]):focus,
.review-form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.review-form__field--rating input {
  max-width: 5.5rem;
}

.review-form__check {
  display: grid;
  grid-template-columns: 1.125rem 1fr;
  align-items: start;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.review-form__check input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  min-height: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.review-form__check > span {
  line-height: 1.45;
  padding-top: 0.05rem;
}

.review-form__check > span a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.review-form .form-msg {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.review-form .btn--block {
  margin-top: 0;
}

@media (min-width: 641px) {
  .review-form__body {
    grid-template-columns: 1fr 1fr;
  }

  .review-form__field:nth-child(3),
  .review-form__check,
  .review-form .btn--block,
  .review-form .form-msg {
    grid-column: 1 / -1;
  }

  .review-form__field--rating {
    grid-column: 1 / -1;
    max-width: 8rem;
  }
}

.blog-list {
  padding: 0;
  margin: 0;
  max-width: none;
  border-top: 1px solid var(--line);
}

.blog-list .feed__list {
  border-top: none;
}

.blog-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto 140px;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.blog-row time {
  font-family: var(--font-d);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.blog-row h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.blog-row p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.blog-row__img {
  width: 140px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--r);
}

.blog-row .btn {
  min-height: 42px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

.card--portfolio {
  display: flex;
  flex-direction: column;
}

.card--portfolio .card__img {
  display: block;
}

.card--portfolio .card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card--portfolio .card__foot {
  margin-top: auto;
  padding-top: 0.75rem;
}

.card--portfolio .card__foot .btn {
  width: 100%;
  min-height: 42px;
  font-size: 0.85rem;
}

.article-more {
  padding: 2.5rem var(--pad) clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.article-more__in {
  max-width: var(--max);
  margin: 0 auto;
}

.article-more h2 {
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.article-more .blog-list {
  margin-top: 0.5rem;
}

.article-more .blog-row {
  padding: 1.25rem 0;
}

@media (max-width: 900px) {
  .blog-row {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }
  .blog-row time { grid-column: 1 / -1; }
  .blog-row__img { display: none; }
  .blog-row .btn { grid-column: 2; grid-row: 2; }
}

@media (max-width: 560px) {
  .blog-row {
    grid-template-columns: 1fr;
  }
  .blog-row .btn { width: 100%; }
}

.cta-band {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--ink);
  color: #fff;
  border-radius: calc(var(--r) + 4px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band p { margin: 0; opacity: 0.85; max-width: 28rem; }
.cta-band h2 { color: #fff; margin: 0 0 0.35rem; font-size: 1.35rem; }

.menu a.is-active { color: var(--accent); }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .gallery-detail__thumbs { grid-template-columns: repeat(3, 1fr); }
  .promo-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page {
    padding-top: 0.5rem;
  }

  .crumbs {
    margin-bottom: 0.65rem;
  }

  .page__head {
    margin-bottom: 1rem;
  }

  .page--reviews .reviews-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap .price-table {
    min-width: 480px;
  }

  .price-table th,
  .price-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }
}
