/* Shared layouts for content, projects, forms and the forum. */
.business-page { min-height:100vh; display:flex; flex-direction:column }
.business-page .business-footer { margin-top:auto }
.page-content { padding-block:76px 100px; min-width:0 }
.page-content h1 { font-size:clamp(34px,4.5vw,60px); max-width:980px; margin-bottom:26px; overflow-wrap:anywhere }
.page-content h2 { font-size:clamp(25px,2.6vw,36px); margin-block:36px 20px }
.page-content h3 { font-size:23px; margin-block:30px 16px }
.page-content h4 { font-size:26px; line-height:1.3; font-weight:550; margin:0 0 18px }
.page-content h5 { font:inherit; color:var(--muted); margin:0 0 24px }
.page-content p { margin-bottom:20px }
.page-content li { margin-bottom:8px }
.page-content a:not(.button):not(.my-btn):not(.project-card__gallery a) { text-underline-offset:4px }
.page-content p a,.page-content .policy a { color:var(--accent); text-decoration:underline }
.page-content .main-description,.page-content .description>p,.projects-page .page-content>h2 { max-width:800px; color:var(--muted); font-size:19px; font-weight:400; letter-spacing:0; line-height:1.7 }
.page-content .description { margin-bottom:48px }
.page-content .description>.my-btn { margin-bottom:32px }
.page-content .itprogger__block { margin-bottom:48px }
.page-content :is(.my-btn,.forum-auth-link,.forum-create-topic,.forum-pagination a) { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:44px; background:#25334a; color:#d4e2ff; border:0; border-radius:0; padding:11px 18px; font-size:14px; line-height:1.5; font-weight:600; text-align:center }
.page-content :is(.my-btn,.forum-auth-link,.forum-create-topic,.forum-pagination a):hover { background:var(--accent); color:#101b30 }
.page-content :is(.btn-three,button[type=submit],input[type=submit]) { background:var(--accent); color:#101b30 }
/* Portfolio: large image surfaces and manually controlled galleries. */
.project-section { margin-top:56px }
.project-section__head { margin-bottom:32px }
.project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px }
.project-card { min-width:0; display:flex; flex-direction:column; background:var(--surface); border:0; border-radius:0; overflow:hidden }
.project-card__media { background:#182230; padding:26px 26px 0 }
.project-card__gallery { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:#526c94 #182230 }
.project-card__slide { flex:0 0 100%; min-width:0; margin:0; scroll-snap-align:start }
.project-card__media img { width:100%; height:auto; aspect-ratio:1.85; object-fit:contain; background:#0c1017 }
.project-card__controls { display:flex; align-items:center; justify-content:space-between; padding-top:12px; color:var(--muted); font-size:12px }
.project-card__controls button { min-width:42px; min-height:42px; background:#25334a; color:var(--text); border:0; font-size:20px }
.project-card__controls button:disabled { opacity:.35; cursor:default }
.project-card__body { padding:28px 30px 0 }
.project-card__body h3 { margin:0 0 16px; font-size:28px }
.project-card__body p { font-size:15px }
.case-description { margin-block:20px; border-top:1px solid var(--line); padding-top:12px }
.case-description summary { cursor:pointer; padding-block:12px; min-height:44px; color:var(--accent) }
.case-description summary:focus-visible { outline:2px solid var(--accent); outline-offset:4px }
.case-description p { line-height:1.75; overflow-wrap:anywhere }
.project-card__body .tags { margin:0 0 20px }
.project-card__action { margin-top:auto; padding:8px 30px 30px }
.project-showcase__note { margin-top:32px }
/* Content remains editable through the existing Wagtail fields. */
.article-page .page-content,.standard-page .page-content { max-width:900px }
.article-page .itprogger__block,.forum-topic-body { line-height:1.85; overflow-wrap:anywhere }
.article-page .itprogger__block img { margin:32px auto; height:auto }
.article-page .article__description { font-size:19px }
.page-content pre { white-space:pre; overflow:auto; padding:24px; background:#182230; max-width:100%; font-size:14px }
.page-content code { color:#c2d5fc; overflow-wrap:anywhere }
.page-content iframe { max-width:100% }
.page-content blockquote { margin:28px 0; padding:24px; background:var(--surface); border-left:2px solid var(--accent) }
.policy h1:first-child { font-size:clamp(32px,4vw,52px) }
.policy h1:not(:first-child) { font-size:22px; line-height:1.5; color:var(--muted); font-weight:400; letter-spacing:0 }
.policy h3 { margin-top:40px; line-height:1.45 }
.policy h5 { font-size:16px; line-height:1.85; overflow-wrap:anywhere }
.faq-item { padding:28px; background:var(--surface); margin:20px 0 }
/* About page: a readable estimate and the existing contact form. */
.about-profile { display:inline-flex; align-items:center; gap:16px; max-width:100%; margin-top:8px; text-decoration:none }
.about-profile__avatar { display:block; width:72px; height:72px; flex-shrink:0; object-fit:cover; border:1px solid var(--line) }
.about-profile__details { display:grid; gap:3px; min-width:0; font-family:var(--mono) }
.about-profile__label { color:var(--muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase }
.about-profile__name { color:var(--accent); font-size:13px }
.about-profile__name span { margin-left:6px }
.about-profile:hover .about-profile__name { text-decoration:underline; text-underline-offset:4px }
.about-profile:focus-visible { outline:2px solid var(--accent); outline-offset:6px }
.price__table { margin-block:56px }
.price__table table { width:100%; border-collapse:collapse; background:var(--surface); text-align:left }
.price__table th,.price__table td { padding:18px 24px; border:0; vertical-align:top }
.price-table__head { color:var(--muted); font-size:12px; letter-spacing:.06em; text-transform:uppercase }
.price-table__section { background:#202c3d; color:var(--text) }
.price-table__row:nth-child(even) { background:#161f2b }
.price-table__row td:nth-child(2) { color:var(--muted) }
.price-table__row td:last-child { white-space:nowrap }
.contact-form,.forum-form { background:var(--surface); padding:40px; max-width:860px; margin:40px 0 }
.contact-form__header h2 { margin:0 0 28px }
.contact-form__grid { display:grid; grid-template-columns:1fr 1fr; gap:24px }
.contact-form__field { min-width:0; display:flex; flex-direction:column; gap:9px }
.contact-form__field--wide,.contact-form__actions,.contact-form__consent,.forum-form__hint,.contact-form__grid>.errorlist,.contact-form__grid>.forum-message { grid-column:1/-1 }
.page-content label { color:var(--muted); font-size:14px }
.page-content :is(input:not([type=checkbox]):not([type=hidden]):not([type=submit]),textarea,select) { width:100%; min-height:48px; background:#0e151f; border:1px solid #354358; border-radius:0; padding:12px 14px; color:var(--text); font:inherit }
.page-content textarea { resize:vertical; min-height:140px }
.page-content input[type=checkbox] { width:18px; height:18px; margin-top:4px; flex-shrink:0; accent-color:var(--accent) }
.contact-form__consent { display:flex; gap:12px; align-items:start }
.contact-form__consent a { color:var(--accent); text-decoration:underline }
.contact-form__actions { display:flex; flex-wrap:wrap; gap:14px }
.page-content .errorlist { color:#ffb5b5; font-size:14px; margin:0; padding-left:18px }
.forum-auth-form { max-width:620px; margin:0 auto }
.forum-form__hint { font-size:14px }
/* Forum: shared surfaces, restrained hierarchy, flexible action rows. */
.forum-panel,.forum-comments { margin-top:48px }
.forum-section-head { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; margin-bottom:24px }
.forum-section-head h2 { margin:0 }
.forum-auth-actions,.forum-sort,.forum-pagination { display:flex; flex-wrap:wrap; gap:12px; align-items:center }
.forum-auth-actions { margin-bottom:20px }
.forum-section-head .forum-auth-actions { margin:0 }
.forum-sort a { padding:8px 14px; font-size:13px; color:var(--muted); background:var(--surface) }
.forum-sort a.is-active { background:#25334a; color:var(--text) }
.forum-category-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px }
.forum-category-card { background:var(--surface); padding:28px; min-width:0 }
.forum-category-card__main { display:block }
.forum-category-card span { font-size:22px; line-height:1.3; display:block; margin-bottom:14px; overflow-wrap:anywhere }
.forum-category-card p { font-size:14px }
.forum-category-card small { color:var(--accent) }
.forum-category-card__children { display:grid; gap:8px; margin-top:20px; font-size:14px }
.forum-topic-card { display:flex; align-items:center; justify-content:space-between; gap:32px; padding:28px 32px; background:var(--surface); margin-bottom:12px }
.forum-topic-card__main { min-width:0 }
.forum-topic-card__title { font-size:21px; line-height:1.4; overflow-wrap:anywhere }
.forum-topic-card__main p { font-size:14px; margin-block:10px }
.forum-topic-card__stats { display:grid; min-width:70px; text-align:center; color:var(--muted); font-size:12px }
.forum-topic-card__stats strong { font-size:24px; color:var(--text); font-weight:500 }
.forum-meta { display:flex; flex-wrap:wrap; gap:8px 20px; color:var(--muted); font-size:12px; margin-block:12px 24px }
.forum-topic-card .forum-meta { margin-bottom:0 }
.forum-topic-card__kind { color:var(--accent); font-family:var(--mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase }
.blog-feed-note { margin:0 0 18px; font-size:14px }
.forum-topic-detail { max-width:920px }
.forum-topic-detail>.my-btn { margin-bottom:32px }
.forum-article-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px }
.forum-article-link,.forum-comment { background:var(--surface); padding:28px; min-width:0 }
.forum-article-link>span { display:block; font-size:20px; line-height:1.4 }
.forum-article-link small { color:var(--muted) }
.forum-article-link p { font-size:14px; margin:14px 0 0 }
.forum-comment { margin-bottom:16px; overflow-wrap:anywhere }
.forum-comment p { margin:0 }
.forum-empty,.forum-auth-note { background:var(--surface); padding:24px; color:var(--muted); margin-block:20px }
.forum-empty p { margin:0 }
.forum-auth-note a { color:var(--accent) }
.forum-form--comment { display:grid; gap:16px }
.forum-form--comment button { justify-self:start }
.forum-pagination { margin-top:28px; color:var(--muted) }
.forum-message { padding:20px 24px; margin-bottom:24px; background:#182c30; color:#bfead7 }
.forum-message--error { background:#35202a; color:#ffb5b5 }
.error-panel { padding:48px; background:var(--surface); max-width:900px; margin:20px auto }
.error-panel__code { font-size:14px; letter-spacing:.15em; color:var(--accent) }
.error-panel__actions { display:flex; flex-wrap:wrap; gap:16px; margin-top:32px }
@media(max-width:1000px) {
  .forum-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .project-grid { gap:20px }
  .project-card__media { padding:18px 18px 0 }
  .project-card__body { padding:24px 24px 0 }
  .project-card__action { padding:8px 24px 24px }
}
@media(max-width:760px) {
  .page-content { padding-block:44px 64px }
  .project-grid,.forum-category-grid,.forum-article-list { grid-template-columns:1fr }
  .project-section { margin-top:40px }
  .page-content .main-description,.page-content .description>p,.projects-page .page-content>h2 { font-size:17px }
  .contact-form,.forum-form { padding:24px; margin-block:28px }
  .contact-form__grid { grid-template-columns:1fr; gap:20px }
  .contact-form__actions>* { width:100% }
  .forum-topic-card { padding:24px; align-items:start; gap:16px }
  .forum-topic-card__title { font-size:19px }
  .forum-topic-card__stats { min-width:42px }
  .forum-section-head { align-items:start }
  .price__table table,.price__table tbody,.price__table tr,.price__table td,.price__table th { display:block }
  .price__table .price-table__head { display:none }
  .price__table td { padding:6px 20px }
  .price__table th { padding:18px 20px }
  .price-table__row { padding-block:16px }
  .price-table__row td::before { content:attr(data-label) ': '; color:var(--muted); font-size:12px }
  .price-table__row td:first-child { font-weight:600 }
  .price-table__row td:first-child::before { content:none }
  .price-table__row td:last-child { white-space:normal }
  .error-panel { padding:28px }
}

/* Direct contacts beside the About page's feedback form. */
.about-contact-layout { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr); gap:48px; align-items:start; margin-block:48px }
.about-contact-layout > * { min-width:0 }
.about-contact-layout .contact-form { width:100%; max-width:none; margin:0 }
.page-content .about-direct-contact h2 { margin-top:0 }
.about-direct-contact { padding-top:40px }
.about-direct-contact .direct-contacts { font-size:17px }
@media(max-width:1000px) {
  .about-contact-layout { grid-template-columns:minmax(0,1fr); gap:32px }
  .about-direct-contact { padding-top:0 }
  .about-direct-contact .contact-lead { max-width:560px }
}
