/* ii-tex: стили внутренних страниц (услуги, города, служебные).
   Хвост подключается после site.css, базовые переменные и классы берутся оттуда. */

.page-hero {
  position: relative;
  z-index: 1;
  padding-block: clamp(96px, 11vw, 148px) clamp(30px, 4vw, 52px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.crumbs a {
  color: var(--muted);
  transition: color 0.25s ease;
}

.crumbs a:hover {
  color: var(--acid);
}

.crumbs .sep {
  color: var(--line-strong);
}

.crumbs [aria-current="page"] {
  color: var(--ink);
}

.page-title {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.4vw, 4.35rem);
  font-weight: 900;
  letter-spacing: -0.062em;
  line-height: 0.9;
  text-transform: uppercase;
}

.page-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(16px, 2vw, 24px);
  color: var(--muted);
}

.page-kicker .section-index {
  color: var(--acid);
}

.page-lede {
  max-width: 58ch;
  margin-top: clamp(18px, 2.4vw, 28px);
  padding-left: clamp(14px, 1.6vw, 20px);
  border-left: 1px solid var(--acid);
  color: #CDD0D4;
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 200;
  line-height: 1.5;
}

.page-lede strong {
  color: var(--ink);
  font-weight: 400;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-meta b {
  color: var(--ink);
  font-weight: 400;
}

/* --- текстовый блок --- */

.page-hero + .section {
  padding-top: clamp(44px, 5.5vw, 76px);
}

.prose {
  max-width: 74ch;
}

.cards-grid + .prose,
.link-grid + .prose,
.facts + .prose,
.pricing-grid + .prose {
  margin-top: clamp(30px, 3.6vw, 48px);
}

.prose > * + * {
  margin-top: 14px;
}

.prose h2 {
  max-width: 30ch;
  margin-top: clamp(34px, 4.4vw, 56px);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-transform: uppercase;
}

.prose h2 + * {
  margin-top: 16px;
}

.prose h3 {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.prose p {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.04rem);
  line-height: 1.62;
}

.prose p strong {
  color: var(--ink);
  font-weight: 400;
}

.prose ul {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.1vw, 1rem);
  line-height: 1.5;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 8px;
  height: 1px;
  background: var(--acid);
}

.prose ul li span {
  color: var(--muted);
}

.prose a {
  color: var(--acid);
  border-bottom: 1px solid rgba(180, 255, 57, 0.35);
  transition: border-color 0.25s ease;
}

.prose a:hover {
  border-color: var(--acid);
}

/* --- сетки карточек и ссылок --- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
  margin-top: clamp(22px, 3vw, 34px);
}

@media (min-width: 1000px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-transform: uppercase;
}

.info-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.info-card .mono {
  color: var(--acid);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 246px), 1fr));
  gap: 12px;
  margin-top: clamp(20px, 2.6vw, 30px);
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.link-card b {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.link-card span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}

.link-card:hover {
  border-color: var(--acid);
  background: var(--acid);
  color: var(--bg);
}

.link-card:hover span {
  color: rgba(10, 11, 13, 0.72);
}

/* --- блок фактов (сроки/цены на странице услуги) --- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  margin-top: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  background: var(--line);
}

.facts > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  background: var(--surface);
}

.facts strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--acid);
}

.facts span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- подвал: 5 колонок (контакты + услуги + города + студия + частые запросы) --- */

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(18px, 2.2vw, 32px);
}

.footer-col h4 {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  color: #B9BFC8;
  font-size: 0.9rem;
  line-height: 1.35;
  transition: color 0.25s ease;
}

.footer-col a:hover {
  color: var(--acid);
}

.footer-col .footer-phone {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(26px, 3.4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-bottom a {
  color: var(--muted);
}

.footer-bottom a:hover {
  color: var(--acid);
}

.site-footer .footer-inner {
  display: block;
}

@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* контакты на всю ширину, остальные 4 колонки — ровной сеткой 2×2 */
  .footer-col:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .footer-col:first-child {
    grid-column: 1 / -1;
  }

  .page-title {
    max-width: none;
  }
}

@media (max-width: 1040px) {
  .header-phone {
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
}

/* --- служебная страница 404 --- */

.error-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 62vh;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(80px, 10vw, 130px);
}

.error-code {
  color: var(--acid);
  font-family: var(--font-display);
  font-size: clamp(4.4rem, 15vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.82;
}

.error-text {
  max-width: 46ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
}

/* --- политика: мелкий текст --- */

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.lead-consent input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #B4FF39;
}

.lead-consent a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.lead-consent a:hover {
  color: var(--acid);
  border-color: var(--acid);
}

.doc {
  max-width: 78ch;
}

.doc h2 {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.doc p,
.doc li {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.62;
}

.doc ul {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding-left: 20px;
  list-style: disc;
}

.doc li::marker {
  color: var(--acid);
}
