/* ==========================================================================
   pages.css — стили для внутренних страниц редизайна
   Дополняет styles.css. Использует те же токены/переменные.
   ========================================================================== */

/* ---- Active nav link -------------------------------------------------- */
.nav a.is-active {
  color: var(--fg, #111);
  position: relative;
}
.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent, #db073d);
}

/* ---- Page hero -------------------------------------------------------- */
.page-hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, #fff 0%, #faf8f7 100%);
  position: relative;
  overflow: hidden;
}
.page-hero--problem { background: linear-gradient(180deg, #fff 0%, #fff5f5 100%); }
.page-hero--catalog { background: linear-gradient(180deg, #fff 0%, #f6f5fa 100%); }
.page-hero--text    { background: linear-gradient(180deg, #fff 0%, #f7f7f7 100%); }

.page-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 60px;
  align-items: start;
}
.page-hero__grid--wide { grid-template-columns: minmax(0, 1fr); }

.page-hero__copy { max-width: 700px; }
.page-hero__title {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 18px 0 18px;
  color: #111;
}
.page-hero__lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4d4d4d;
  margin: 0 0 26px;
  max-width: 62ch;
}

.page-hero__meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(0,0,0,.08);
  border-bottom: 1px solid rgba(0,0,0,.08);
  margin: 0 0 28px;
}
.page-hero__price,
.page-hero__promise {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.page-hero__price-label,
.page-hero__promise-lbl {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #808080;
}
.page-hero__price-value,
.page-hero__promise-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.02em;
}
.page-hero__price-value { color: var(--accent, #db073d); }
.page-hero__price-note {
  font-size: 0.72rem;
  color: #999;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

/* ---- Side card in page hero ------------------------------------------- */
.page-hero__side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }

.page-hero__photo {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.25);
  aspect-ratio: 4 / 3;
  background: #111;
}
.page-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform .8s cubic-bezier(0.2,0.7,0.2,1);
}
.page-hero__photo:hover img { transform: scale(1.06); }
.page-hero__photo-cap {
  position: absolute;
  left: 16px; bottom: 14px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.page-hero__card {
  background: #111;
  color: #fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.4);
}
.page-hero__card-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-bottom: 8px;
}
.page-hero__card-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 20px;
}
.page-hero__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.page-hero__list li {
  padding: 10px 0 10px 24px;
  position: relative;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.page-hero__list li:first-child { border-top: 0; }
.page-hero__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 12px; height: 2px;
  background: var(--accent, #db073d);
}
.page-hero__card .phone-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
}

/* ---- Page features (why us) ------------------------------------------- */
.page-features { padding: 100px 0; background: #fff; }
.page-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.page-feature {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 20px;
  padding: 32px 28px;
  background: #fff;
  transition: transform 0.4s cubic-bezier(0.2,0.7,0.2,1), border-color 0.4s;
}
.page-feature:hover { transform: translateY(-4px); border-color: rgba(0,0,0,.16); }
.page-feature__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent, #db073d);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.page-feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
  color: #111;
}
.page-feature p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* ---- Related grid ----------------------------------------------------- */
.page-related { padding: 80px 0 120px; background: #fafafa; }
.page-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 40px;
}
.page-related__card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  text-decoration: none;
  color: #111;
  transition: transform 0.3s, border-color 0.3s;
}
.page-related__card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,0,0,.2);
}
.page-related__title { flex: 1; font-weight: 600; font-size: 0.95rem; }
.page-related__price { color: var(--accent, #db073d); font-weight: 600; font-size: 0.9rem; }
.page-related__arrow { font-size: 1.1rem; color: #999; }
.page-related__card:hover .page-related__arrow { color: var(--accent, #db073d); }

/* ---- Price note (дисклеймер над прайсом) ------------------------------ */
.price-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 20px;
  margin-bottom: 40px;
  background: #fff8ec;
  border: 1px solid rgba(219, 155, 30, 0.2);
  border-left: 3px solid #db9b1e;
  border-radius: 12px;
  color: #6b4a10;
  font-size: 0.92rem;
  line-height: 1.5;
}
.price-note__icon {
  flex: none;
  color: #db9b1e;
  margin-top: 1px;
}
.price-note__text b { color: #4a3208; font-weight: 700; }

/* ---- Pricelist -------------------------------------------------------- */
.pricelist { padding: 60px 0 100px; background: #fff; }
.pricelist__block { margin-bottom: 60px; }
.pricelist__head { margin-bottom: 24px; }
.pricelist__items {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(0,0,0,.08);
}
.pricelist__item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.pricelist__name { font-size: 1rem; color: #111; font-weight: 500; }
.pricelist__dots {
  border-bottom: 2px dotted rgba(0,0,0,.14);
  align-self: end;
  margin-bottom: 6px;
}
.pricelist__price { font-weight: 700; color: var(--accent, #db073d); font-size: 1.05rem; white-space: nowrap; }
.pricelist__cta {
  padding: 6px 14px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 100px;
  text-decoration: none;
  color: #111;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}
.pricelist__cta:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

/* ---- Factors ---------------------------------------------------------- */
.factors { padding: 80px 0 120px; background: #fafafa; }
.factors__list {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 16px;
}
.factors__item {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 22px 26px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.06);
  font-size: 1rem;
  color: #333;
}
.factors__num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--accent, #db073d);
  letter-spacing: 0.1em;
  min-width: 30px;
}

/* ---- Text page grid --------------------------------------------------- */
.text-page { padding: 60px 0 100px; background: #fff; }
.text-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 60px;
  align-items: start;
}
.text-page__body { max-width: 720px; }
.text-page__body p { font-size: 1.05rem; line-height: 1.7; color: #333; margin: 0 0 18px; }
.text-page__body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: #111;
}
.text-page__body ul { padding-left: 24px; line-height: 1.7; color: #333; }
.text-page__body ul li { margin-bottom: 6px; }
.text-page__side { position: sticky; top: 100px; }

/* Reviews on text page */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.reviews-grid .quote {
  background: #fafafa;
  padding: 26px 24px;
  border-radius: 18px;
  margin: 0;
}

/* Contacts cards */
.contacts-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.contacts-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 24px;
  background: #111;
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  transition: background 0.2s;
}
.contacts-card:hover { background: #000; }
.contacts-card--info { background: #fafafa; color: #111; border: 1px solid rgba(0,0,0,.08); }
.contacts-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.6;
}
.contacts-card__value { font-size: 1.05rem; font-weight: 600; }

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .page-hero { padding: 100px 0 40px; }
  .page-hero__grid,
  .text-page__grid { grid-template-columns: 1fr; gap: 40px; }
  .page-hero__side, .text-page__side { position: static; }
  .pricelist__item {
    grid-template-columns: 1fr auto;
    row-gap: 8px;
  }
  .pricelist__dots { display: none; }
  .pricelist__cta { grid-column: 1 / -1; justify-self: start; }
}
