/* Content pages: FAQ / terms / privacy (text accordions, definition lists), delivery, contact, blog list and
   article, installation order, business client, comparison. Shared pieces (panel, notice, accordion, icon tile,
   newsletter, auth panel, forms) live in components.css. */
.page-main--content { --section-gap: clamp(40px, 6.67vw, 96px); }
.page-title { font-size: var(--fs-h3); line-height: 1.3125; letter-spacing: 1px; }

/* ---- text accordion: question / chapter in a white panel ---- */
.qa-list { display: flex; flex-direction: column; gap: 24px; }
.qa { padding: 24px; border-radius: var(--radius-lg); background: var(--c-surface); box-shadow: var(--shadow-raised); }
.qa--doc { border-radius: var(--radius-md); }
.qa > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 24px;
  list-style: none;
  cursor: pointer;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary .icon { transition: rotate var(--ease); }
.qa[open] > summary .icon { rotate: 180deg; }
.qa:not([open]) > summary .icon { color: var(--c-green); }
.qa__body { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; color: var(--c-text-muted); }
.qa__body ol, .qa__body ul { display: flex; flex-direction: column; padding-left: 24px; }
.qa__body ol { list-style: decimal; }
.qa__body ul { list-style: disc; }
.qa__body li ul { padding-left: 16px; }
.notice--line { box-shadow: inset 0 0 0 1px var(--c-green); }
.notice--soft { background: var(--c-green-soft); }

/* term list: green tag + explanation (privacy policy) */
.term-list { display: grid; gap: 24px; }
.term-list > div { display: grid; gap: 8px; }
.term-list dt { justify-self: start; align-self: start; padding: 4px 12px; border-radius: var(--radius-xs); background: var(--c-green-soft); color: var(--c-green); font-size: var(--fs-sm); font-weight: 600; line-height: 16px; }
.term-list dd { margin: 0; }

/* ---- info cards: grey cards with an icon tile (delivery methods, payment methods, contacts) ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card-grid--wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); } /* staff: 3 across at 1440 */
.info-card { display: flex; flex-direction: column; gap: 24px; padding: 24px; border-radius: var(--radius-md); background: var(--c-surface-muted); }
/* the price badge drops to its own row (at the right) before the title / address column gets too narrow (c12) */
.info-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px; }
.info-card__text { flex: 1 1 100px; display: flex; flex-direction: column; min-width: 0; }
.info-card__title { font-size: var(--fs-lg); font-weight: 600; line-height: 24px; }
.info-card__sub { color: var(--c-text-muted); font-size: var(--fs-md); line-height: 20px; }
.info-card__price { margin-left: auto; padding: 2px 8px; border-radius: var(--radius-xs); background: var(--c-green-soft); color: var(--c-green); font-size: var(--fs-sm); font-weight: 600; line-height: 16px; white-space: nowrap; }
.info-card:has(.info-card__box) { padding: clamp(12px, 15vw - 36px, 24px); } /* three nested paddings: lighter below 400 (c13) */
.info-card__box { display: flex; flex-direction: column; gap: 8px; padding: clamp(12px, 15vw - 36px, 24px); border-radius: var(--radius-md); background: var(--c-surface); }
.info-card__note { color: var(--c-text-muted); font-size: var(--fs-md); line-height: 20px; }
.pairs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 24px; } /* phones: label above its value; side by side from 480 */
.pairs dd + dt { margin-top: 10px; }
.pairs dt { color: var(--c-text-muted); }
.pairs dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; } /* IBANs on phones */
.check-points { display: flex; flex-direction: column; gap: 12px; color: var(--c-text-muted); }
.check-points li { display: flex; align-items: center; gap: 8px; }
.check-points .icon { color: var(--c-green); }

/* contact line: icon tile + small label + value */
.contact-lines { display: flex; flex-direction: column; gap: 24px; }
.contact-line { display: flex; align-items: center; gap: 16px; }
.contact-line__text { display: flex; flex-direction: column; }
.contact-line__label { color: var(--c-text-muted); font-size: var(--fs-md); line-height: 20px; }
.contact-line__value { font-weight: 600; }
.contact-line__value a:hover { color: var(--c-green); }

/* ---- contact page: office cards with map, requisites, staff ---- */
.office { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: var(--c-surface); box-shadow: var(--shadow-raised); }
.office__map { position: relative; aspect-ratio: 660 / 371; overflow: hidden; }
.office__map img { width: 100%; height: 100%; object-fit: cover; }
.office__map .tag { position: absolute; top: 24px; left: 24px; }
.office__body { flex: 1; display: flex; flex-direction: column; gap: 24px; padding: 24px; }
.office__body .btn { margin-top: auto; }
.req-list { display: grid; gap: 16px 24px; }
.req-list > div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding-bottom: 8px; border-bottom: 1px solid var(--c-border); }
.req-list dt { flex: 0 0 100%; font-weight: 600; } /* phones: value under its label; 200px label column from 768 */
.req-list dd { margin: 0; color: var(--c-text-muted); }
.staff-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: var(--radius-md); background: var(--c-surface-muted); }
.staff-card__head { display: flex; align-items: center; gap: 8px; }
.staff-card__name { font-size: var(--fs-lg); font-weight: 600; line-height: 22px; }
.staff-card__role { color: var(--c-text-muted); font-size: var(--fs-md); line-height: 20px; }
.staff-card ul { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: var(--radius-md); background: var(--c-surface); font-size: var(--fs-tap-md); line-height: 24px; } /* phones bigger (user 10-05) */
.staff-card li a { display: flex; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.staff-card li .icon { width: 19px; height: 19px; color: var(--c-green); }

/* ---- blog: list + article with a sidebar (search, categories) ---- */
.with-aside { display: grid; gap: 24px; align-items: start; }
.with-aside__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.with-aside__aside { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.blog-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.blog-search { display: flex; align-items: center; gap: 8px; height: 48px; padding-inline: 12px; border-radius: var(--radius-sm); background: var(--c-surface); box-shadow: var(--shadow-raised); }
.blog-search input { flex: 1; min-width: 0; border: 0; background: none; line-height: 24px; }
.blog-search input:focus { outline: none; }
.blog-search input::-webkit-search-cancel-button { margin-inline-end: 16px; }
.blog-search button { display: grid; place-items: center; color: var(--c-green); }
.blog-cats { display: flex; flex-direction: column; gap: 24px; padding: 24px; border-radius: var(--radius-lg); }
.blog-cats .link-list { gap: 16px; font-size: var(--fs-xl); line-height: 30px; }
.blog-cats .link-list a { justify-content: flex-start; align-items: center; color: var(--c-text); }
.blog-cats .link-list .icon { margin-top: 0; color: var(--c-green); }
.blog-cats .link-list a:hover { color: var(--c-green); }
/* latest comments under the categories: name · date, then the excerpt */
.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-list__meta { color: var(--c-text-muted); font-size: var(--fs-sm); line-height: 16px; }
.comment-list__meta strong { color: var(--c-text); font-weight: 600; }
.comment-list__text { margin-top: 4px; font-size: var(--fs-md); line-height: 20px; }
.comment-list__text a:hover { color: var(--c-green); }

/* post card, row variant: photo left, text right */
.post-card--row { flex-direction: column; border-radius: var(--radius-lg); }
.post-card--row .post-card__media { aspect-ratio: 16 / 10; }
.post-card__cat { position: absolute; left: 24px; bottom: 24px; padding: 4px 12px; border-radius: var(--radius-xs); background: rgb(0 0 0 / 50%); color: #fff; font-size: var(--fs-sm); line-height: 16px; }
.post-card--row .post-card__meta { font-size: var(--fs-md); line-height: 20px; }
.post-card__head { display: flex; flex-direction: column; gap: 8px; }
.post-card--row .post-card__title { color: var(--c-green); font-size: var(--fs-xl); font-weight: 700; line-height: 24px; }
.post-card--row .post-card__excerpt { -webkit-line-clamp: 3; font-size: var(--fs-lg); line-height: 24px; }
.post-card--row .btn { align-self: flex-start; margin-top: auto; }

/* article body */
.article { display: flex; flex-direction: column; gap: 24px; padding: 24px; border-radius: var(--radius-md); }
.article__head { display: flex; flex-direction: column; gap: 16px; }
.article__title { font-size: var(--fs-h4); line-height: 1.5; }
.article__photo { width: 100%; aspect-ratio: 840 / 500; border-radius: var(--radius-md); object-fit: cover; }
.article__lead { display: flex; flex-direction: column; gap: 8px; color: var(--c-text-muted); font-size: var(--fs-xl); line-height: 30px; }
.article__lead h2 { color: var(--c-text); font-size: var(--fs-h4); line-height: 1.5; }
.article section { display: flex; flex-direction: column; gap: 16px; }
.article section > h2 { font-size: var(--fs-h4); line-height: 1.5; }
.article section > div { display: flex; flex-direction: column; gap: 8px; color: var(--c-text-muted); }
.article h3 { color: var(--c-text); font-size: var(--fs-xl); font-weight: 600; line-height: 30px; }
.article section ul { padding-left: 24px; list-style: disc; }
.article__lead strong, .article section strong { color: var(--c-text); font-weight: 600; }
.article .post-card__meta li > span:not(.visually-hidden) { margin-right: 2px; }
.comment-form { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; border-top: 1px solid var(--c-border); }
.comment-form h2 { font-size: var(--fs-xl); line-height: 30px; }

/* ---- installation: intro, AI assistant banner, order form ---- */
.intro-panel { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.intro-panel__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.intro-panel__head p { color: var(--c-text-muted); line-height: 27px; }
.chips { display: flex; flex-wrap: wrap; gap: 16px; }
.chips li { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--c-surface-muted); font-size: var(--fs-md); line-height: 20px; }
.chips .icon { color: var(--c-green); }
.ai-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border-radius: var(--radius-lg); background: var(--c-green-soft); }
.ai-banner__main { flex: 1 1 400px; display: flex; flex-direction: column; gap: 8px; max-width: 750px; }
.ai-banner__title { display: flex; align-items: center; gap: 8px; color: var(--c-green); font-size: var(--fs-h3); line-height: 1.3125; letter-spacing: 1px; }
.ai-banner__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--c-text-muted); }
.ai-banner__bot { display: flex; flex-direction: column; align-items: center; gap: 16px; color: var(--c-green); font-weight: 700; }
.ai-banner__bot .icon-tile { width: 96px; height: 96px; border-radius: 14px; }
.order-form { display: grid; gap: 48px; padding: clamp(24px, 3.33vw, 48px); }
.order-form__col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.order-form__title { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; font-size: var(--fs-h4); line-height: 1.5; }
.order-form > .btn { grid-column: 1 / -1; }
.service-list { display: flex; flex-direction: column; gap: 8px; }
.service-list label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-xs); background: var(--c-surface-muted); color: var(--c-text-muted); font-size: var(--fs-md); line-height: 20px; cursor: pointer; }
.service-list label:has(:checked) { background: var(--c-green-tint); color: var(--c-green); }
.service-list input { width: 16px; height: 16px; margin: 0; accent-color: var(--c-green); }
.file-field { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--c-surface-muted); color: var(--c-text-muted); font-size: var(--fs-md); line-height: 20px; cursor: pointer; }
.file-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ---- business client: centred card ---- */
.promo-card { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; width: min(100%, 660px); margin-inline: auto; padding: 24px; }
.promo-card .icon-tile { width: 96px; height: 96px; border-radius: var(--radius-md); }
.promo-card__text { display: flex; flex-direction: column; gap: 8px; color: var(--c-text-muted); }
.promo-card__text h1 { color: var(--c-text); }
.dot-list { display: flex; flex-direction: column; gap: 8px; color: var(--c-text-muted); }
.dot-list li { display: flex; align-items: center; gap: 8px; }
.dot-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c-green); }
.mini-contacts { display: flex; flex-direction: column; gap: 8px; color: var(--c-text-muted); font-size: var(--fs-md); line-height: 20px; }
.mini-contacts a { display: flex; align-items: center; gap: 4px; }
.mini-contacts .icon { color: var(--c-green); }
.promo-card .btn { align-self: stretch; }

/* ---- comparison ---- */
.compare-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.compare-head__clear { display: inline-flex; align-items: center; gap: 8px; color: var(--c-required); font-size: var(--fs-md); line-height: 20px; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.compare-grid > li { display: flex; }
.compare-grid > li > * { flex: 1; }
.product-card__drop { display: inline-flex; align-self: center; align-items: center; gap: 8px; color: var(--c-required); font-size: var(--fs-md); line-height: 20px; }
.compare-table-wrap { overflow-x: auto; }
.compare-table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0 16px; margin-block: -16px; }
.compare-table th, .compare-table td { width: 20%; padding: 0 12px 8px 0; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.compare-table th { font-weight: 600; }
.compare-table td { color: var(--c-text-muted); }
.compare:has(.compare__highlight :checked) .compare-table tr.is-diff > * { background: var(--c-green-tint); }

@media (min-width: 480px) {
  .pairs { grid-template-columns: auto minmax(0, 1fr); row-gap: 8px; }
  .pairs dd + dt { margin-top: 0; }
}
@media (min-width: 768px) {
  .req-list dt { flex-basis: 200px; }
  .staff-card ul { font-size: var(--fs-md); }
  .staff-card li .icon { width: 16px; height: 16px; }
  .term-list > div { grid-template-columns: minmax(0, 294px) 1fr; gap: 24px; }
  .post-card--row { flex-direction: row; }
  .post-card--row .post-card__media { flex: 0 0 min(276px, 35%); aspect-ratio: auto; min-height: 276px; }
  .req-list { grid-template-columns: 1fr 1fr; }
  .order-form { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .with-aside { grid-template-columns: minmax(0, 1fr) clamp(320px, 30vw, 432px); }
  .ai-banner { padding-right: 64px; }
}
