/*
Theme Name: Психологическое консультирование 2026
Theme URI: https://example.com/
Author: MarsMax
Author URI: https://example.com/
Description: Адаптивная тема для сайта психологического консультирования с настраиваемым слайдером, направлениями, блоком поддержки и бесконечной лентой публикаций.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: psihologicheskoe-konsultirovanie-2026
*/

:root {
  --pc-bg: #f5f7fa;
  --pc-surface: #ffffff;
  --pc-primary: #286b78;
  --pc-primary-hover: #1e5661;
  --pc-accent: #d9a76c;
  --pc-ink: #1d2935;
  --pc-muted: #667481;
  --pc-border: #e0e7eb;
  --pc-hero-a: #dceef0;
  --pc-hero-b: #f3e7d8;
  --pc-radius: 18px;
  --pc-content-width: 1180px;
  --pc-font-size: 16px;
  --pc-shadow: 0 14px 44px rgba(24, 42, 52, .08);
}

body.pc-palette-ocean { --pc-bg:#f2f7f8; --pc-surface:#fff; --pc-primary:#286b78; --pc-primary-hover:#1e5661; --pc-accent:#e0a66b; --pc-ink:#1d2935; --pc-muted:#627580; --pc-border:#dce7e9; --pc-hero-a:#d9edf0; --pc-hero-b:#f7e8d8; }
body.pc-palette-forest { --pc-bg:#f3f7f3; --pc-surface:#fff; --pc-primary:#3b6b52; --pc-primary-hover:#2c523e; --pc-accent:#c9a45d; --pc-ink:#203129; --pc-muted:#67776b; --pc-border:#dce7de; --pc-hero-a:#dcebdd; --pc-hero-b:#f2ead8; }
body.pc-palette-terracotta { --pc-bg:#fbf5f1; --pc-surface:#fff; --pc-primary:#a4513b; --pc-primary-hover:#843f2e; --pc-accent:#d4a65c; --pc-ink:#352925; --pc-muted:#806d65; --pc-border:#eddfd7; --pc-hero-a:#f2ddd2; --pc-hero-b:#f8ead8; }
body.pc-palette-slate { --pc-bg:#f4f6f8; --pc-surface:#fff; --pc-primary:#4d627b; --pc-primary-hover:#374a61; --pc-accent:#d5ad70; --pc-ink:#222d3a; --pc-muted:#697687; --pc-border:#dfe5ec; --pc-hero-a:#dce5ef; --pc-hero-b:#f1e7d8; }
body.pc-palette-plum { --pc-bg:#f8f4f8; --pc-surface:#fff; --pc-primary:#765278; --pc-primary-hover:#5d3f5f; --pc-accent:#d2a66d; --pc-ink:#302735; --pc-muted:#786a7d; --pc-border:#e9dfea; --pc-hero-a:#e9deed; --pc-hero-b:#f5e7dd; }
body.pc-palette-teal { --pc-bg:#f1f8f7; --pc-surface:#fff; --pc-primary:#167c78; --pc-primary-hover:#11615e; --pc-accent:#e5b46e; --pc-ink:#203232; --pc-muted:#647b79; --pc-border:#d7e8e5; --pc-hero-a:#d2eeea; --pc-hero-b:#f5e9d9; }
body.pc-palette-sand { --pc-bg:#faf7f0; --pc-surface:#fff; --pc-primary:#806647; --pc-primary-hover:#654e36; --pc-accent:#c59a58; --pc-ink:#332e26; --pc-muted:#81776a; --pc-border:#e9e1d3; --pc-hero-a:#eee3cf; --pc-hero-b:#f6ead8; }
body.pc-palette-blue { --pc-bg:#f3f7fc; --pc-surface:#fff; --pc-primary:#3567a5; --pc-primary-hover:#244d82; --pc-accent:#d9a45f; --pc-ink:#202e40; --pc-muted:#65758a; --pc-border:#dce6f2; --pc-hero-a:#dce8fa; --pc-hero-b:#f4e6d5; }
body.pc-palette-olive { --pc-bg:#f6f7f0; --pc-surface:#fff; --pc-primary:#68733c; --pc-primary-hover:#4f592c; --pc-accent:#c79a58; --pc-ink:#2b3022; --pc-muted:#747866; --pc-border:#e2e6d5; --pc-hero-a:#e8ebd5; --pc-hero-b:#f5ead7; }
body.pc-palette-graphite { --pc-bg:#f4f5f6; --pc-surface:#fff; --pc-primary:#454f5b; --pc-primary-hover:#303944; --pc-accent:#d0a15f; --pc-ink:#20262d; --pc-muted:#69727b; --pc-border:#e0e3e6; --pc-hero-a:#dfe4e9; --pc-hero-b:#f2e6d7; }
body.pc-palette-women-rose { --pc-bg:#fff7f8; --pc-surface:#fff; --pc-primary:#a85e77; --pc-primary-hover:#87455d; --pc-accent:#d9a8b9; --pc-ink:#392830; --pc-muted:#806d77; --pc-border:#f0dfe5; --pc-hero-a:#f6e0e8; --pc-hero-b:#fff0e9; }
body.pc-palette-women-lavender { --pc-bg:#faf8ff; --pc-surface:#fff; --pc-primary:#7865a4; --pc-primary-hover:#5d4d83; --pc-accent:#c4b4df; --pc-ink:#302941; --pc-muted:#786f8b; --pc-border:#e9e2f5; --pc-hero-a:#e9e1f7; --pc-hero-b:#f9ecf4; }
body.pc-palette-women-peach { --pc-bg:#fff8f3; --pc-surface:#fff; --pc-primary:#b96f54; --pc-primary-hover:#96553f; --pc-accent:#e3b48d; --pc-ink:#3b2e28; --pc-muted:#89756b; --pc-border:#f2e2d7; --pc-hero-a:#fbe4d8; --pc-hero-b:#fff2df; }
body.pc-palette-women-mint { --pc-bg:#f4fbf8; --pc-surface:#fff; --pc-primary:#4e897c; --pc-primary-hover:#3d6e63; --pc-accent:#a8d2c3; --pc-ink:#263a34; --pc-muted:#6c827b; --pc-border:#dcefe7; --pc-hero-a:#d9f0e7; --pc-hero-b:#f4f5e4; }
body.pc-palette-women-powder { --pc-bg:#f5f9ff; --pc-surface:#fff; --pc-primary:#5d80ad; --pc-primary-hover:#43648d; --pc-accent:#adc8e7; --pc-ink:#293746; --pc-muted:#6d7c8e; --pc-border:#e0eaf6; --pc-hero-a:#dceafa; --pc-hero-b:#f4e9f5; }
body.pc-palette-women-butter { --pc-bg:#fffdf5; --pc-surface:#fff; --pc-primary:#8a7841; --pc-primary-hover:#6d5e31; --pc-accent:#e6d38e; --pc-ink:#363225; --pc-muted:#827a64; --pc-border:#efe9d5; --pc-hero-a:#f8efc9; --pc-hero-b:#fcebdc; }
body.pc-palette-women-lilac { --pc-bg:#fcf8ff; --pc-surface:#fff; --pc-primary:#8a6f9f; --pc-primary-hover:#6d5580; --pc-accent:#d5c0e1; --pc-ink:#382d40; --pc-muted:#827488; --pc-border:#eee3f4; --pc-hero-a:#eee2f7; --pc-hero-b:#fae9ef; }
body.pc-palette-women-sage { --pc-bg:#f8faf5; --pc-surface:#fff; --pc-primary:#6c8265; --pc-primary-hover:#52664c; --pc-accent:#c5d0a8; --pc-ink:#2e382a; --pc-muted:#788271; --pc-border:#e5eadf; --pc-hero-a:#e7eedb; --pc-hero-b:#f7eddf; }
body.pc-palette-women-blush { --pc-bg:#fff7f7; --pc-surface:#fff; --pc-primary:#a96770; --pc-primary-hover:#8a4e57; --pc-accent:#e4bcc0; --pc-ink:#3b292d; --pc-muted:#876d72; --pc-border:#f0dfe1; --pc-hero-a:#f5e0e2; --pc-hero-b:#fff0e6; }
body.pc-palette-women-cream { --pc-bg:#fffaf4; --pc-surface:#fff; --pc-primary:#997a59; --pc-primary-hover:#7a6044; --pc-accent:#e5c99b; --pc-ink:#393026; --pc-muted:#847667; --pc-border:#eee4d5; --pc-hero-a:#f5ead5; --pc-hero-b:#fbe9e3; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--pc-bg); color: var(--pc-ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif; font-size: var(--pc-font-size); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pc-primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pc-primary-hover); }
button, input, textarea, select { font: inherit; }
button, .button, input[type="submit"] { cursor: pointer; }
:focus-visible { outline: 3px solid var(--pc-accent); outline-offset: 3px; }
.pc-container { width: min(var(--pc-content-width), calc(100% - 40px)); margin-inline: auto; }
.pc-skip-link { position: absolute; z-index: 9999; left: 12px; top: -100px; background: var(--pc-surface); padding: 10px 14px; border-radius: 8px; box-shadow: var(--pc-shadow); }
.pc-skip-link:focus { top: 12px; }

/* Top contact strip */
.pc-topbar { position: relative; z-index: 20; overflow: hidden; background-color: var(--pc-primary); color: #fff; background-position: center; background-size: cover; }
.pc-topbar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--pc-primary) 94%, #000 6%), color-mix(in srgb, var(--pc-primary) 82%, transparent)); pointer-events: none; }
.pc-topbar-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; z-index: 1; padding-block: 10px; }
.pc-brand-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pc-brand-wrap .custom-logo-link { display: inline-flex; flex: 0 0 auto; }
.pc-brand-wrap .custom-logo { max-height: 48px; width: auto; }
.pc-brand { color: #fff; text-decoration: none; font-weight: 750; font-size: clamp(1rem, 1.8vw, 1.18rem); letter-spacing: -.02em; line-height: 1.25; }
.pc-brand:hover { color: #fff; opacity: .9; }
.pc-top-contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: .91rem; }
.pc-top-contacts a { color: #fff; text-decoration: none; opacity: .96; }
.pc-top-contacts a:hover { text-decoration: underline; }
.pc-contact-label { opacity: .76; }
.pc-header-logo { max-height: 56px; width: auto; }

/* Navigation */
.pc-nav-wrap { background: var(--pc-surface); border-bottom: 1px solid var(--pc-border); position: relative; z-index: 15; }
.pc-nav-inner { display: flex; align-items: center; justify-content: flex-end; min-height: 64px; }
.pc-primary-nav { width: 100%; }
.pc-primary-nav ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 10px; list-style: none; margin: 0; padding: 0; }
.pc-primary-nav li { margin: 0; padding: 0; }
.pc-primary-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 13px; border-radius: 999px; color: var(--pc-ink); text-decoration: none; font-weight: 600; font-size: .94rem; transition: background .2s ease, color .2s ease; }
.pc-primary-nav a:hover, .pc-primary-nav .current-menu-item > a, .pc-primary-nav .current_page_item > a { color: var(--pc-primary); background: var(--pc-bg); }
.pc-menu-toggle { display: none; border: 1px solid var(--pc-border); color: var(--pc-ink); background: var(--pc-surface); border-radius: 10px; padding: 8px 12px; }

/* Hero slider */
.pc-hero { position: relative; overflow: hidden; background: linear-gradient(125deg, var(--pc-hero-a), var(--pc-hero-b)); }
.pc-hero::before, .pc-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.pc-hero::before { width: 460px; height: 460px; right: -130px; top: -210px; background: rgba(255,255,255,.22); }
.pc-hero::after { width: 260px; height: 260px; right: 22%; bottom: -190px; background: rgba(255,255,255,.2); }
.pc-hero-track { position: relative; z-index: 1; }
.pc-hero-slide { display: none; position: relative; min-height: clamp(340px, 43vw, 510px); align-items: center; background-size: cover; background-position: center; }
.pc-hero-slide.is-active { display: flex; animation: pc-fade-in .55s ease both; }
.pc-hero-slide.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,29,36,var(--pc-hero-overlay,.35)) 0%, rgba(17,29,36,calc(var(--pc-hero-overlay,.35) * .72)) 56%, rgba(17,29,36,.06) 100%); }
.pc-hero-content { position: relative; z-index: 2; padding-block: 64px; max-width: 760px; }
.pc-hero:not(:has(.has-image)) .pc-hero-content { max-width: 790px; }
.pc-hero-eyebrow { margin: 0 0 18px; color: var(--pc-primary); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: clamp(.78rem, 1.5vw, .96rem); }
.pc-hero-slide.has-image .pc-hero-eyebrow, .pc-hero-slide.has-image .pc-hero-title, .pc-hero-slide.has-image .pc-hero-text { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.12); }
.pc-hero-title { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.12; letter-spacing: -.045em; margin: 0 0 18px; max-width: 820px; font-weight: 800; }
.pc-hero-text { color: var(--pc-ink); font-size: clamp(1.08rem, 2.1vw, 1.35rem); line-height: 1.6; margin: 0; max-width: 620px; }
.pc-hero-link { margin-top: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--pc-primary); color: #fff; text-decoration: none; padding: 13px 22px; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.pc-hero-link:hover { background: var(--pc-primary-hover); color: #fff; }
.pc-hero-controls { position: absolute; z-index: 4; inset-inline: 0; bottom: 24px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pc-hero-dots { display: flex; align-items: center; justify-content: center; gap: 8px; pointer-events: auto; }
.pc-hero-dot { width: 9px; height: 9px; border-radius: 20px; border: 0; padding: 0; background: rgba(48,58,66,.3); transition: width .2s ease, background .2s ease; }
.pc-hero-dot[aria-current="true"] { width: 28px; background: var(--pc-primary); }
@keyframes pc-fade-in { from { opacity: .5; } to { opacity: 1; } }

/* Sections */
.pc-section { padding-block: clamp(54px, 7vw, 94px); }
.pc-section-heading { max-width: 800px; margin: 0 auto 38px; text-align: center; }
.pc-section-kicker { color: var(--pc-primary); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; margin: 0 0 10px; }
.pc-section-title { font-size: clamp(1.8rem, 3.1vw, 2.65rem); line-height: 1.2; letter-spacing: -.035em; margin: 0; font-weight: 800; }
.pc-section-intro { color: var(--pc-muted); margin: 14px auto 0; max-width: 680px; }
.pc-directions { background: var(--pc-bg); }
.pc-direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pc-direction-card { overflow: hidden; border: 1px solid var(--pc-border); background: var(--pc-surface); border-radius: var(--pc-radius); box-shadow: var(--pc-shadow); transition: transform .22s ease, box-shadow .22s ease; }
.pc-direction-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(24,42,52,.12); }
.pc-direction-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--pc-hero-a), var(--pc-hero-b)); }
.pc-direction-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pc-direction-card:hover .pc-direction-image img { transform: scale(1.04); }
.pc-image-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 160px; color: var(--pc-primary); background: linear-gradient(135deg, var(--pc-hero-a), var(--pc-hero-b)); }
.pc-image-placeholder span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); font-size: 1.5rem; }
.pc-direction-body { padding: 24px 24px 28px; }
.pc-direction-title { font-size: 1.25rem; line-height: 1.3; margin: 0 0 10px; letter-spacing: -.02em; }
.pc-direction-text { margin: 0; color: var(--pc-muted); }

/* Support section */
.pc-support { background: var(--pc-surface); position: relative; overflow: hidden; }
.pc-support::before { content: ""; position: absolute; width: 440px; height: 440px; left: -270px; bottom: -250px; border-radius: 50%; background: var(--pc-hero-a); opacity: .55; }
.pc-support-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.pc-support-aside { padding: 34px; background: linear-gradient(145deg, var(--pc-hero-a), var(--pc-hero-b)); border-radius: var(--pc-radius); }
.pc-support-aside h2 { margin: 0 0 14px; font-size: clamp(1.65rem, 2.6vw, 2.3rem); line-height: 1.2; letter-spacing: -.035em; }
.pc-support-aside p { margin: 0; color: var(--pc-ink); font-size: 1.06rem; }
.pc-support-content h3 { margin: 2px 0 20px; font-size: clamp(1.35rem, 2.1vw, 1.8rem); line-height: 1.3; }
.pc-benefit-list { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.pc-benefit-list li { position: relative; padding-left: 34px; color: var(--pc-ink); }
.pc-benefit-list li::before { content: "✓"; display: grid; place-items: center; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; color: var(--pc-primary); background: var(--pc-hero-a); border-radius: 50%; font-size: .9rem; font-weight: 900; }
.pc-support-note { margin: 25px 0 0; padding: 17px 19px; border-left: 3px solid var(--pc-accent); background: var(--pc-bg); border-radius: 0 12px 12px 0; }
.pc-support-cta { font-weight: 750; margin: 25px 0 10px; font-size: 1.08rem; }
.pc-support-modes { color: var(--pc-muted); margin: 0; }
.pc-cta-button { display: inline-flex; align-items: center; justify-content: center; background: var(--pc-primary); color: #fff; text-decoration: none; padding: 13px 22px; border-radius: 999px; font-weight: 700; margin-top: 18px; }
.pc-cta-button:hover { color: #fff; background: var(--pc-primary-hover); }

/* Latest posts */
.pc-latest { background: var(--pc-bg); }
.pc-post-list { display: grid; gap: 18px; max-width: 940px; margin-inline: auto; }
.pc-post-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: stretch; overflow: hidden; background: var(--pc-surface); border: 1px solid var(--pc-border); border-radius: var(--pc-radius); box-shadow: 0 8px 28px rgba(24,42,52,.045); }
.pc-post-thumb { display: block; background: linear-gradient(135deg, var(--pc-hero-a), var(--pc-hero-b)); min-height: 160px; overflow: hidden; }
.pc-post-thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 160px; transition: transform .4s ease; }
.pc-post-card:hover .pc-post-thumb img { transform: scale(1.04); }
.pc-post-body { padding: 22px 25px; }
.pc-post-title { font-size: clamp(1.16rem, 2vw, 1.45rem); line-height: 1.35; margin: 0 0 9px; letter-spacing: -.02em; }
.pc-post-title a { text-decoration: none; color: var(--pc-ink); }
.pc-post-title a:hover { color: var(--pc-primary); }
.pc-post-excerpt { margin: 0; color: var(--pc-muted); }
.pc-read-more { display: inline-flex; margin-top: 12px; font-weight: 750; text-decoration: none; font-size: .92rem; }
.pc-feed-status { margin: 24px auto 0; text-align: center; min-height: 28px; color: var(--pc-muted); }
.pc-load-more { margin-top: 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--pc-primary); border-radius: 999px; padding: 11px 20px; background: transparent; color: var(--pc-primary); font-weight: 750; }
.pc-load-more:hover { color: #fff; background: var(--pc-primary); }
.pc-load-more[disabled] { opacity: .55; cursor: wait; }
.pc-no-posts { text-align: center; color: var(--pc-muted); padding: 30px; border: 1px dashed var(--pc-border); border-radius: var(--pc-radius); }

/* Generic WordPress content templates */
.pc-page-main { background: var(--pc-surface); padding-block: clamp(42px, 6vw, 80px); min-height: 48vh; }
.pc-entry-header { max-width: 900px; margin: 0 auto 30px; }
.pc-entry-title { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.15; margin: 0; letter-spacing: -.04em; }
.pc-entry-content { max-width: 900px; margin-inline: auto; overflow-wrap: anywhere; }
.pc-entry-content > *:first-child { margin-top: 0; }
.pc-entry-content h2, .pc-entry-content h3, .pc-entry-content h4 { line-height: 1.3; letter-spacing: -.025em; }
.pc-entry-content blockquote { margin-inline: 0; padding: 6px 0 6px 20px; border-left: 3px solid var(--pc-accent); color: var(--pc-muted); }
.pc-entry-content table { border-collapse: collapse; width: 100%; }
.pc-entry-content th, .pc-entry-content td { border: 1px solid var(--pc-border); padding: 10px 12px; text-align: left; }
.pc-entry-content pre { max-width: 100%; overflow: auto; padding: 18px; border-radius: 12px; background: var(--pc-bg); }
.pc-featured-image { margin: 0 auto 32px; max-width: 1100px; overflow: hidden; border-radius: var(--pc-radius); }
.pc-featured-image img { width: 100%; max-height: 560px; object-fit: cover; }
.pc-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pc-pagination .page-numbers { display: inline-flex; justify-content: center; align-items: center; min-width: 40px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--pc-border); border-radius: 999px; text-decoration: none; background: var(--pc-surface); }
.pc-pagination .current { background: var(--pc-primary); color: #fff; border-color: var(--pc-primary); }
.pc-search-form { display: flex; gap: 10px; max-width: 600px; }
.pc-search-form input[type="search"] { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--pc-border); background: var(--pc-surface); color: var(--pc-ink); border-radius: 10px; }
.pc-search-form button { border: 0; border-radius: 10px; background: var(--pc-primary); color: #fff; padding: 10px 17px; font-weight: 700; }
.pc-comment-area { max-width: 900px; margin: 42px auto 0; padding-top: 28px; border-top: 1px solid var(--pc-border); }
.pc-comment-area input:not([type="submit"]), .pc-comment-area textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--pc-border); border-radius: 9px; background: var(--pc-surface); color: var(--pc-ink); }
.pc-comment-area input[type="submit"] { border: 0; background: var(--pc-primary); color: #fff; border-radius: 999px; padding: 11px 18px; font-weight: 700; }

/* Footer, top button */
.pc-footer { background: var(--pc-primary); color: #fff; padding-block: 30px; }
.pc-footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.pc-footer p { margin: 0; opacity: .92; }
.pc-footer a { color: #fff; }
.pc-back-to-top { position: fixed; z-index: 50; right: 22px; bottom: 22px; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--pc-primary); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.2); opacity: .88; pointer-events: auto; transform: translateY(0); transition: opacity .2s ease, transform .2s ease, background .2s ease; }
.pc-back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.pc-back-to-top:hover { opacity: 1; }
.pc-back-to-top:hover { background: var(--pc-primary-hover); }
.pc-back-to-top svg { width: 21px; height: 21px; }

@media (max-width: 780px) {
  .pc-container { width: min(var(--pc-content-width), calc(100% - 30px)); }
  .pc-topbar-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding-block: 14px; }
  .pc-top-contacts { gap: 6px 14px; }
  .pc-nav-inner { min-height: 58px; justify-content: flex-end; padding-block: 9px; }
  .pc-menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .pc-primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--pc-surface); border-bottom: 1px solid var(--pc-border); box-shadow: var(--pc-shadow); padding: 10px 15px 15px; }
  .pc-primary-nav.is-open { display: block; }
  .pc-primary-nav ul { display: grid; gap: 3px; align-items: stretch; }
  .pc-primary-nav a { display: flex; border-radius: 8px; }
  .pc-hero-slide { min-height: 430px; }
  .pc-hero-content { padding-block: 54px 90px; }
  .pc-hero-title { font-size: clamp(1.9rem, 8vw, 2.7rem); }
  .pc-hero-controls { bottom: 16px; }
  .pc-direction-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pc-direction-image { aspect-ratio: 16/8; }
  .pc-support-inner { grid-template-columns: 1fr; }
  .pc-support-aside { padding: 27px; }
  .pc-post-card { grid-template-columns: 130px minmax(0, 1fr); }
  .pc-post-body { padding: 17px 18px; }
}
@media (max-width: 480px) {
  .pc-top-contacts { display: grid; gap: 3px; font-size: .88rem; }
  .pc-hero-slide { min-height: 450px; }
  .pc-hero-content { padding-block: 38px 85px; }
  .pc-hero-title { font-size: 1.85rem; }
  .pc-hero-text { font-size: 1rem; }
  .pc-section { padding-block: 48px; }
  .pc-section-heading { margin-bottom: 27px; }
  .pc-post-card { display: block; }
  .pc-post-thumb { min-height: 0; aspect-ratio: 16/7; }
  .pc-post-thumb img { min-height: 0; }
  .pc-post-body { padding: 20px; }
  .pc-footer-inner { align-items: flex-start; flex-direction: column; }
  .pc-back-to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
