/* Components added with the Yii2 CMS: detail pages, blog, rich text, form feedback. */
.footer-col .footer-title { color: #fff; font-size: 15px; margin-bottom: 18px; letter-spacing: 0; }
.footer-bottom-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-bottom-links a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: #fff; }
.nav-links a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: #fff; }

.service-card .service-title { font-size: 19px; margin: 18px 0 10px; line-height: 1.35; }
.service-card .service-title a:hover { color: var(--color-primary); }
.service-card .service-more { margin-top: 18px; }
.project-card h2 a:hover, .post-card h2 a:hover { color: var(--color-primary); }

/* Honeypot: present for bots, invisible and unreachable for people. */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field-error { display: block; color: #b42318; font-size: 12.5px; margin-top: 6px; }
.form-group [aria-invalid="true"], .consent-label [aria-invalid="true"] { border-color: #dc2626; }
.contact-form { position: relative; }
.contact-form .form-note a { color: #4338ca; font-weight: 600; }
.narrow-form { max-width: 760px; }

/* Detail pages (service, project, custom page, article). */
.detail-header { padding-bottom: 70px; }
.detail-header h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.detail-header p { max-width: 720px; }
/* Ordering service: keep the ad message and contact actions in the first screen. */
.ordering-service-hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 48px; }
.ordering-service-hero h1 { max-width: 900px; text-wrap: balance; }
.ordering-service-hero > .container > p { max-width: 800px; }
.ordering-service-hero .hero-actions { justify-content: center; margin: 26px 0 24px; }
.ordering-service-hero .btn { white-space: normal; }
.ordering-service-benefits { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 26px; margin: 0 0 16px; padding: 0; list-style: none; }
.ordering-service-benefits li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; text-align: left; }
.ordering-service-benefits svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: #a5b4fc; }
.ordering-service-hero p.ordering-service-note { font-size: 13px; line-height: 1.6; color: #b8c3d8; }
.ordering-service-hero .breadcrumb { flex-wrap: wrap; }
@media (max-width: 600px) {
  .ordering-service-hero { padding-top: calc(var(--header-h) + 30px); padding-bottom: 34px; }
  .ordering-service-hero h1 { font-size: clamp(28px, 7.8vw, 36px); }
  .ordering-service-hero > .container > p { font-size: 16px; }
  .ordering-service-hero .hero-actions { flex-direction: column; gap: 10px; margin: 22px 0; }
  .ordering-service-hero .btn { width: 100%; min-height: 48px; }
  .ordering-service-benefits { flex-direction: column; align-items: center; gap: 10px; }
  .ordering-service-hero p.ordering-service-note { font-size: 12.5px; }
}

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.detail-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: calc(var(--header-h) + 20px); }
.detail-card { padding: 28px; border: 1px solid var(--color-border); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.detail-card h2 { font-size: 19px; margin: 14px 0 16px; }
.detail-card .check-list { margin: 0 0 22px; gap: 10px; font-size: 14px; }
.detail-links { display: flex; flex-direction: column; gap: 10px; }
.detail-links a { color: #4338ca; font-weight: 600; font-size: 14.5px; }
.detail-cover { width: 100%; border-radius: 18px; margin-bottom: 30px; }
.detail-narrow { max-width: 860px; }
.detail-figure { margin: 0 0 30px; border-radius: 16px; overflow: hidden; border: 1px solid #e1e6ef; background: #eaf0f7; }
.detail-figure img { width: 100%; height: auto; }
[data-lang-content][hidden] { display: none !important; }

.rich-content { font-size: 16.5px; line-height: 1.8; color: #2b3245; }
.rich-content > * + * { margin-top: 1.05em; }
.rich-content h2 { font-size: clamp(23px, 2.4vw, 29px); margin-top: 1.8em; color: var(--color-text); }
.rich-content h3 { font-size: 21px; margin-top: 1.5em; color: var(--color-text); }
.rich-content h4 { font-size: 18px; margin-top: 1.3em; }
.rich-content ul { list-style: disc; padding-left: 1.4em; }
.rich-content ol { list-style: decimal; padding-left: 1.4em; }
.rich-content li + li { margin-top: .4em; }
.rich-content a { color: #4338ca; text-decoration: underline; text-underline-offset: 3px; }
.rich-content blockquote { border-left: 3px solid #6366f1; padding: 6px 0 6px 20px; color: #4c5271; font-style: italic; }
.rich-content img { border-radius: 12px; height: auto; }
.rich-content figure figcaption { font-size: 13px; color: #5b6478; margin-top: 8px; text-align: center; }
.rich-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rich-content th, .rich-content td { border: 1px solid #e1e6ef; padding: 10px 12px; text-align: left; }
.rich-content th { background: #f6f7fb; }
.rich-content pre { background: #0b1120; color: #e9ecf7; padding: 16px; border-radius: 10px; overflow-x: auto; font-size: 14px; }
.rich-content hr { border: none; border-top: 1px solid #e6e8f0; }

.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.related-card { display: flex; flex-direction: column; border: 1px solid #e1e6ef; border-radius: 16px; overflow: hidden; background: #fff; transition: transform .2s, box-shadow .2s; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #eaf0f7; }
.related-card span { padding: 16px 18px; font-weight: 600; }

/* Blog */
.blog-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.blog-filters a { padding: 9px 17px; border: 1px solid #dce1ed; border-radius: 999px; font-size: 14px; font-weight: 600; color: #3e4962; background: #fff; }
.blog-filters a[aria-current="page"] { color: #fff; background: #4f46e5; border-color: #4f46e5; }
.blog-category-intro { max-width: 760px; color: #5b6478; margin-bottom: 26px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { display: flex; flex-direction: column; border: 1px solid #e1e6ef; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 8px 28px rgba(25, 41, 72, .045); }
.post-card-image { display: block; aspect-ratio: 16 / 9; background: #eef0fb; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: grid; place-items: center; height: 100%; font-size: 52px; font-weight: 800; color: #fff; background: var(--gradient-brand); }
.post-card-body { padding: 22px 24px 26px; }
.post-card h2 { font-size: 19px; line-height: 1.4; margin: 10px 0; }
.post-card p { color: #5b6478; font-size: 14px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: #6b7389; }
.post-meta a { color: #4f46e5; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.post-header h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.post-header-meta { font-size: 14px !important; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #e6e8f0; font-size: 14px; }
.share-row a, .share-row button { padding: 8px 14px; border-radius: 999px; border: 1px solid #dce1ed; background: #fff; font-weight: 600; color: #3e4962; font-size: 13px; }
.share-row a:hover, .share-row button:hover { border-color: #4f46e5; color: #4f46e5; }
.empty-state { padding: 40px; border: 1px dashed #d6d9e6; border-radius: 16px; text-align: center; color: #5b6478; }
.empty-state a { color: #4338ca; font-weight: 600; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pager li a, .pager li span { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid #dce1ed; font-weight: 600; font-size: 14px; background: #fff; }
.pager li.active a { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.pager li.disabled span { color: #b4bacb; }
.error-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 980px) {
  .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; }
  .post-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .post-grid, .related-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-card { padding: 22px; }
  .rich-content { font-size: 16px; }
}
