/* Адаптация дизайна к стандартным элементам WordPress. */
:root { --admin-bar-offset: 0px; }
body.admin-bar { --admin-bar-offset: 32px; }
.header { top: var(--admin-bar-offset); }
[id] { scroll-margin-top: calc(var(--header-height) + var(--admin-bar-offset) + 30px); }
.custom-logo-link { flex: 0 0 auto; display: block; }
.custom-logo { display: block; width: auto; height: auto; max-height: 42px; max-width: 180px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; height: auto; width: auto; }
.skip-link:focus { position: fixed !important; }
.case-visual--image { padding: 0; }
.case-visual--image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.case-visual--placeholder { color: white; background: var(--accent); }
.case-visual--placeholder > span { font-weight: 800; font-size: clamp(28px, 7cqw, 100px); line-height: 1.05; overflow-wrap: anywhere; }
.case-card__demo { display: inline-block; margin-top: 12px; font-size: 14px; color: var(--muted); }
.case-read-more { display: inline-flex; align-items: center; gap: 15px; color: var(--accent); font-weight: 800; font-size: 18px; line-height: 1.4; margin-top: 30px; }
.case-read-more .arrow-icon { width: 21px; height: 21px; flex-basis: 21px; }
.case-read-more:hover .arrow-icon { transform: translate(3px,-3px); }
.case-detail__content h2 a:hover { color: var(--accent); }
.case-detail--single { padding-top: 0; }
.case-detail--single h2.case-detail__subtitle { font-size: clamp(28px,3vw,48px); line-height: 1.15; }
.empty-state { font-size: 20px; line-height: 1.5; margin-block: 28px; }
.generic-page { min-height: 70vh; padding-bottom: 80px; }
.content-shell { width: min(100% - 2 * var(--gutter), 1040px); margin-inline: auto; margin-bottom: 70px; }
.entry-content { font-size: 20px; line-height: 1.65; overflow-wrap: anywhere; }
.entry-content > * { margin-block: 0 1.3em; }
.entry-content h2, .comments-area h2 { font-size: clamp(28px,3vw,44px); line-height: 1.15; font-weight: 800; }
.entry-content h3 { font-size: 27px; line-height: 1.25; font-weight: 800; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.entry-content .wp-block-button__link { color: white; text-decoration: none; }
.entry-content img, .entry-content video, .entry-content iframe { max-width: 100%; height: auto; }
.entry-content .alignwide, .entry-content .alignfull { width: 100%; max-width: 100%; margin-inline: 0; }
.entry-content .alignleft { float: left; margin: 0 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.5em; }
.entry-content .aligncenter { margin-inline: auto; display: block; }
.entry-content::after { content: ''; display: table; clear: both; }
.entry-content blockquote { margin-left: 0; padding-left: 24px; border-left: 4px solid var(--accent); }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid #171c3526; }
.entry-content pre { background: #f3f5ff; padding: 24px; overflow: auto; font-size: 16px; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 14px; color: var(--muted); }
.post-list article { padding: 34px 0; border-bottom: 1px solid #171c3526; }
.post-list h2 { font-size: 36px; line-height: 1.15; margin-block: 0 24px; }
.post-list .eyebrow { margin-bottom: 16px; }
.navigation.pagination { padding: 10px var(--gutter) 60px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 12px; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px 15px; border: 1px solid #171c3526; border-radius: 3px; }
.nav-links .current, .nav-links a:hover { color: white; background: var(--accent); border-color: var(--accent); }
.comments-area { font-size: 18px; }
.comments-area .comment-list { list-style: none; padding: 0; }
.comment-body { padding-block: 25px; border-bottom: 1px solid #171c3526; }
.comment-meta { font-size: 15px; }
.comment-metadata { margin-top: 10px; color: var(--muted); }
.comment-content { margin-top: 20px; line-height: 1.5; }
.comment-author .avatar { vertical-align: middle; margin-right: 10px; }
.bypostauthor .fn { color: var(--accent); }
.comment-form label, .post-password-form label { display: block; margin-bottom: 8px; }
.comment-form input:not([type=checkbox]):not([type=submit]), .comment-form textarea, .post-password-form input[type=password], .search-field { font: inherit; border: 1px solid #171c3540; border-radius: 4px; padding: 12px; width: min(100%, 600px); }
.comment-form p { margin-bottom: 22px; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-form .submit, .post-password-form input[type=submit], .search-submit { font: inherit; font-weight: 800; background: var(--accent); color: white; border: 0; border-radius: 100px; padding: 15px 28px; cursor: pointer; }
@media (max-width:782px) { body.admin-bar { --admin-bar-offset: 46px; } }
@media (max-width:600px) { #wpadminbar { position: fixed; } }
@media (max-width:520px) { .custom-logo { max-width: 150px; max-height: 36px; } .entry-content { font-size: 18px; } .entry-content .alignleft, .entry-content .alignright { float: none; margin-inline: 0; } }
