/* Дополнительные блоки внутренних страниц. Главная использует только style.css. */
.inner-page [id] { scroll-margin-top: 24px; }
.inner-page .master-copy { min-width: 0; }
.inner-page .section-top > div { min-width: 0; max-width: 100%; }
.inner-page .page-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
}
.inner-page .page-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .875rem;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.inner-page .content-section { border-top: 1px solid var(--line); }
.inner-page .content-section h2 {
  max-width: 950px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.inner-page .content-intro {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.75;
}
.inner-page .content-intro a,
.inner-page .content-grid a,
.inner-page .faq-list a { text-decoration: underline; text-underline-offset: 4px; }
.inner-page .content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 36px;
}
.inner-page .content-grid article { border-top: 1px solid var(--line); padding-top: 24px; min-width: 0; }
.inner-page .content-grid h3 { margin: 0 0 16px; font-size: 1.125rem; line-height: 1.4; }
.inner-page .content-grid p { margin: 0; color: var(--gray); font-size: 1rem; line-height: 1.75; }
.inner-page .inner-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 18px;
  margin-top: 36px;
}
.inner-page .inner-gallery figure { margin: 0; min-width: 0; }
.inner-page .inner-gallery a {
  display: block;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  background: #050505;
  cursor: zoom-in;
}
.inner-page .inner-gallery img { width: 100%; height: 100%; object-fit: contain; }
.inner-page .inner-gallery figcaption,
.inner-page .work-caption { margin: 12px 0 0; color: var(--gray); font-size: .875rem; line-height: 1.6; }
.inner-page .faq-list { max-width: 900px; margin-top: 32px; border-top: 1px solid var(--line); }
.inner-page .faq-list details { border-bottom: 1px solid var(--line); }
.inner-page .faq-list summary { padding: 22px 0; cursor: pointer; font-size: 1.125rem; line-height: 1.5; font-weight: 700; }
.inner-page .faq-list details p { margin: 0 0 24px; color: var(--gray); font-size: 1rem; line-height: 1.75; }
.inner-page .contact-location {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px 32px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(0, 0, 0, .3);
  color: #111;
  font-size: 1rem;
  line-height: 1.6;
}
.inner-page .contact-location address { font-style: normal; }
.inner-page .contact-location a { text-decoration: underline; text-underline-offset: 4px; }
.inner-page .contact-location strong { display: block; margin-bottom: 8px; }
.inner-page .contact-location small { display: block; font-size: .875rem; }
.inner-page .contact-phone { display: inline-flex; min-height: 44px; align-items: center; margin-top: 20px; font-size: 1.125rem; font-weight: 700; }
.inner-page .contact-actions .button { background: #111; color: #fff; }
.inner-page .contact-actions .button:hover { background: #fff; color: #111; }
.inner-page .contact-page-section h1 { font-size: clamp(3.25rem, 9vw, 7rem); line-height: .95; }
.inner-page .contact-page-section h1 em { display: inline-block; color: var(--red); font-family: Georgia, serif; font-weight: 400; text-transform: none; }
.master-page .page-hero h1 { font-size: clamp(2.25rem, 8vw, 6.75rem); }
.inner-page .master-copy a { text-decoration: underline; text-underline-offset: 4px; }
.inner-page .review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.inner-page .review-grid figure { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.inner-page .review-grid blockquote { margin: 0; }
.inner-page .review-grid blockquote p { margin: 0; font-size: 1rem; line-height: 1.75; }
.inner-page .review-grid figcaption { margin-top: 20px; color: var(--gray); font-size: .875rem; line-height: 1.6; }
.inner-page .review-grid figcaption a { text-decoration: underline; text-underline-offset: 4px; }
.inner-page .review-grid-single { grid-template-columns: 1fr; max-width: 800px; }
.inner-page a:focus-visible,
.inner-page summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
@media (max-width: 850px) {
  .inner-page .content-grid { grid-template-columns: 1fr; gap: 28px; }
  .inner-page .review-grid { grid-template-columns: 1fr; }
  .inner-page .inner-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .inner-page .page-hero h1 { font-size: clamp(2rem, 11vw, 3.5rem); }
  .inner-page .contact-guide { grid-template-columns: minmax(0, 1fr); }
  .inner-page .contact-guide-card { min-width: 0; }
  .inner-page .contact-guide-card h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .inner-page #correction-price h2 { font-size: clamp(1.6rem, 8vw, 2.5rem); }
  .inner-page .master-copy h2,
  .inner-page .portfolio-section h2,
  .inner-page .contact h2 { font-size: clamp(2rem, 10vw, 3rem); line-height: 1; }
  .inner-page .page-jumps { gap: 4px 20px; margin-top: 20px; }
  .inner-page .inner-gallery { gap: 24px 10px; margin-top: 28px; }
  .inner-page .contact-location { grid-template-columns: 1fr; }
  .inner-page .contact-page-section h1 { font-size: clamp(2.75rem, 12vw, 4.25rem); }
}
@media (prefers-reduced-motion: reduce) {
  html:has(.inner-page) { scroll-behavior: auto; }
}
