/*
Theme Name: Fedkin.pro Expert
Theme URI: https://fedkin.pro/
Author: Илья Федькин
Author URI: https://fedkin.pro/
Description: Быстрая многостраничная WordPress-тема для IT-услуг, кейсов и технической базы знаний.
Version: 2.2.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: fedkin-pro
*/

:root {
    --bg: #050811;
    --bg-soft: #080d1c;
    --surface: #0d152b;
    --surface-2: #111d39;
    --text: #f1f5f9;
    --muted: #98a8bd;
    --subtle: #65758a;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(34, 211, 238, .28);
    --blue: #0284c7;
    --cyan: #22d3ee;
    --cyan-soft: rgba(34, 211, 238, .10);
    --green: #34d399;
    --yellow: #fbbf24;
    --red: #f87171;
    --shadow: 0 24px 64px rgba(0, 0, 0, .34);
    --radius: 18px;
    --header-height: 104px;
    --font-sans: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    z-index: -2;
    inset: 0;
    content: "";
    background:
        radial-gradient(circle at 82% 6%, rgba(2, 132, 199, .09), transparent 25rem),
        linear-gradient(rgba(34, 211, 238, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, .025) 1px, transparent 1px);
    background-size: auto, 60px 60px, 60px 60px;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 4px;
}

::selection {
    color: #031016;
    background: var(--cyan);
}

.shell {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}

.narrow-shell {
    max-width: 850px;
}

.screen-reader-text,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 9999;
    top: 14px;
    left: 14px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    margin: 0;
    clip: auto;
    color: #001018;
    background: var(--cyan);
    border-radius: 8px;
    font-weight: 800;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    letter-spacing: -.025em;
}

h1 {
    margin-bottom: 24px;
    font-size: clamp(2.25rem, 5.2vw, 4.8rem);
    line-height: 1.03;
    font-weight: 850;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(1.8rem, 3.5vw, 3.1rem);
    line-height: 1.08;
    font-weight: 820;
}

h3 {
    font-size: 1.15rem;
    line-height: 1.3;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: .94rem;
    font-weight: 780;
    line-height: 1.2;
    transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 12px 30px rgba(2, 132, 199, .20);
}

.button-primary:hover {
    color: #001018;
    background: var(--cyan);
    box-shadow: 0 14px 36px rgba(34, 211, 238, .18);
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, .025);
    border-color: rgba(255, 255, 255, .15);
}

.button-secondary:hover {
    color: var(--cyan);
    border-color: var(--line-strong);
    background: var(--cyan-soft);
}

.button-full {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--cyan);
    font-size: .9rem;
    font-weight: 750;
}

.text-link span {
    transition: transform .2s ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

/* Header */
.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    background: rgba(5, 8, 17, .86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px);
}

.header-meta {
    border-bottom: 1px solid rgba(255, 255, 255, .055);
}

.header-meta-inner {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--subtle);
    font-family: var(--font-mono);
    font-size: .68rem;
}

.header-meta strong {
    color: var(--muted);
}

.header-contacts {
    display: flex;
    gap: 18px;
}

.header-contacts a {
    color: var(--cyan);
}

.header-main {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.brand {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.brand span {
    color: var(--cyan);
}

.primary-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-menu a {
    display: block;
    padding: 9px 11px;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 650;
    transition: color .2s ease, background .2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    color: var(--text);
}

.primary-menu .menu-cta {
    padding: 10px 16px;
    margin-left: 6px;
    color: #fff;
    background: var(--blue);
    border-radius: 8px;
}

.primary-menu .menu-cta:hover {
    color: #001018;
    background: var(--cyan);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 1px solid var(--line);
    color: var(--text);
    background: var(--surface);
    border-radius: 10px;
}

.menu-toggle i {
    display: block;
    width: 100%;
    height: 2px;
    margin: 4px 0;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.site-content {
    min-height: 70vh;
    padding-top: var(--header-height);
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    min-height: calc(100vh - var(--header-height));
    align-items: center;
    padding: 96px 0 88px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    z-index: -1;
    top: -280px;
    left: 40%;
    width: 900px;
    height: 750px;
    background: radial-gradient(ellipse, rgba(34, 211, 238, .11), transparent 67%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    align-items: center;
    gap: 72px;
}

.hero-copy h1 span {
    display: block;
    color: var(--cyan);
}

.hero-lead,
.page-hero p {
    max-width: 740px;
    margin-bottom: 32px;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.18rem);
    line-height: 1.75;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    margin-bottom: 28px;
    color: var(--cyan);
    background: var(--cyan-soft);
    border: 1px solid var(--line-strong);
    border-radius: 99px;
    font-family: var(--font-mono);
    font-size: .7rem;
}

.status-pill i {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, .10);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-stats {
    display: flex;
    gap: 34px;
    padding-top: 36px;
    margin: 46px 0 0;
    border-top: 1px solid var(--line);
}

.hero-stats div {
    max-width: 135px;
}

.hero-stats dt {
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
}

.hero-stats dd {
    margin: 8px 0 0;
    color: var(--subtle);
    font-size: .76rem;
    line-height: 1.45;
}

.terminal-card {
    overflow: hidden;
    background: #091025;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: var(--shadow), 0 0 0 1px rgba(34, 211, 238, .06);
    transform: perspective(1000px) rotateY(-2deg);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    color: var(--subtle);
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: .68rem;
}

.terminal-bar i {
    width: 9px;
    height: 9px;
    background: var(--red);
    border-radius: 50%;
}

.terminal-bar i:nth-child(2) {
    background: var(--yellow);
}

.terminal-bar i:nth-child(3) {
    background: var(--green);
    margin-right: 6px;
}

.terminal-body {
    min-height: 390px;
    padding: 28px 24px;
    font-family: var(--font-mono);
    font-size: .78rem;
    line-height: 1.85;
}

.terminal-body p {
    margin: 0;
}

.terminal-body b,
.terminal-body .accent {
    color: var(--cyan);
}

.terminal-body .muted {
    color: var(--subtle);
}

.terminal-body .warning {
    color: var(--yellow);
}

.terminal-body .success {
    color: var(--green);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: var(--cyan);
    vertical-align: middle;
    animation: blink 1.1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Sections */
.section {
    padding: 112px 0;
}

.section-muted,
.problem-section {
    background: linear-gradient(180deg, rgba(8, 13, 28, .2), var(--bg-soft) 12%, var(--bg-soft) 88%, rgba(8, 13, 28, .2));
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
    align-items: end;
    gap: 56px;
    margin-bottom: 52px;
}

.section-heading h2 {
    max-width: 800px;
    margin-bottom: 0;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-action {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.problem-section {
    padding: 88px 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 72px;
    align-items: start;
}

.problem-grid > div:first-child {
    position: sticky;
    top: calc(var(--header-height) + 36px);
}

.problem-grid > div:first-child p {
    color: var(--muted);
}

.problem-list {
    display: grid;
    gap: 12px;
}

.problem-list article {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    padding: 22px;
    background: rgba(255, 255, 255, .018);
    border: 1px solid var(--line);
    border-radius: 13px;
}

.problem-list article > b {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: .76rem;
}

.problem-list h3 {
    margin-bottom: 5px;
}

.problem-list p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.card-grid {
    display: grid;
    gap: 16px;
}

.card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 330px;
    flex-direction: column;
    padding: 30px;
    overflow: hidden;
    background: rgba(13, 21, 43, .72);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .24s ease, border-color .24s ease, background .24s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    background: var(--surface);
    border-color: var(--line-strong);
}

.content-card h2 {
    margin-bottom: 14px;
    font-size: 1.28rem;
    line-height: 1.32;
}

.content-card h2 a::after {
    position: absolute;
    inset: 0;
    content: "";
}

.content-card p {
    color: var(--muted);
    font-size: .93rem;
}

.content-card .text-link,
.content-card .post-meta a {
    position: relative;
    z-index: 1;
}

.card-index {
    margin-bottom: 32px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 750;
}

.service-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 18px;
    margin: auto 0 18px;
    border-top: 1px solid var(--line);
    font-size: .8rem;
}

.service-meta strong {
    color: var(--green);
}

.service-meta span {
    color: var(--subtle);
}

.card-image {
    display: block;
    margin: -30px -30px 25px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.025);
}

.case-card {
    min-height: 390px;
}

.case-client-card {
    display: grid;
    justify-items: start;
    gap: 3px;
    margin-bottom: 16px;
}

.case-client-kicker {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.case-client-name {
    color: var(--text);
    font-size: .88rem;
    line-height: 1.4;
}

.case-client-link {
    position: relative;
    z-index: 2;
    max-width: 100%;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: .72rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.case-client-link:hover {
    color: var(--green);
}

.case-stack {
    padding: 12px;
    margin: 12px 0;
    color: var(--cyan);
    background: var(--cyan-soft);
    border-radius: 9px;
    font-family: var(--font-mono);
    font-size: .69rem;
    line-height: 1.6;
}

.case-result {
    padding-top: 15px;
    margin-bottom: 20px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: .84rem;
}

.case-result strong {
    color: var(--green);
}

.post-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--subtle);
    font-family: var(--font-mono);
    font-size: .69rem;
}

.post-meta a {
    color: var(--cyan);
}

.empty-card {
    grid-column: 1 / -1;
    min-height: 240px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0;
    margin: 0;
    list-style: none;
}

.process-grid li {
    position: relative;
    padding: 30px 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.process-grid li:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.process-grid li:last-child {
    border-right: 1px solid var(--line);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.process-grid span {
    display: block;
    margin-bottom: 36px;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: .74rem;
}

.process-grid h3 {
    margin-bottom: 8px;
}

.process-grid p {
    margin: 0;
    color: var(--muted);
    font-size: .84rem;
}

.about-section {
    background: radial-gradient(circle at 90% 50%, rgba(2, 132, 199, .10), transparent 30rem);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 72px;
}

.about-grid p {
    color: var(--muted);
}

.about-grid .large-copy {
    color: var(--text);
    font-size: 1.16rem;
}

.value-panel,
.aside-card {
    padding: 34px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.check-list {
    display: grid;
    gap: 13px;
    padding: 0;
    margin: 24px 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: var(--muted);
}

.check-list li::before {
    position: absolute;
    top: .65em;
    left: 1px;
    width: 12px;
    height: 7px;
    content: "";
    border-bottom: 2px solid var(--green);
    border-left: 2px solid var(--green);
    transform: rotate(-45deg);
}

.check-list.compact {
    gap: 9px;
}

.check-list.compact li {
    font-size: .88rem;
}

.stack-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.stack-line span,
.tag-list a {
    padding: 6px 9px;
    color: var(--cyan);
    background: var(--cyan-soft);
    border: 1px solid rgba(34, 211, 238, .16);
    border-radius: 7px;
    font-family: var(--font-mono);
    font-size: .67rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: .65fr 1.35fr;
    gap: 70px;
}

.faq-grid > div:first-child p {
    color: var(--muted);
}

.faq-list {
    border-top: 1px solid var(--line);
}

.faq-list details {
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    position: relative;
    padding: 22px 44px 22px 0;
    cursor: pointer;
    font-weight: 740;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    position: absolute;
    top: 50%;
    right: 8px;
    color: var(--cyan);
    content: "+";
    font-family: var(--font-mono);
    font-size: 1.3rem;
    transform: translateY(-50%);
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    padding: 0 44px 22px 0;
    margin: 0;
    color: var(--muted);
}

/* Contact */
.contact-section {
    padding: 96px 0;
}

.contact-panel {
    position: relative;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 70px;
    padding: 58px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--surface), #071329);
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.contact-panel::before {
    position: absolute;
    top: -220px;
    left: -220px;
    width: 460px;
    height: 460px;
    content: "";
    background: radial-gradient(circle, rgba(34, 211, 238, .12), transparent 66%);
}

.contact-copy,
.contact-form {
    position: relative;
}

.contact-copy h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.contact-copy > p {
    color: var(--muted);
}

.direct-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.direct-contact a {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: .82rem;
}

.contact-form {
    display: grid;
    gap: 15px;
    padding: 28px;
    background: rgba(5, 8, 17, .66);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.contact-form label > span:first-child {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
}

.contact-form input[type="text"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 9px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form textarea {
    min-height: 116px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .08);
}

.contact-form select {
    color-scheme: dark;
}

.contact-form .consent {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
}

.contact-form .consent input {
    margin-top: 4px;
    accent-color: var(--cyan);
}

.contact-form .consent span {
    color: var(--subtle);
    font-size: .69rem;
    line-height: 1.55;
}

.contact-form .consent a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
}

.form-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: .82rem;
}

.form-alert-success {
    color: #a7f3d0;
    background: rgba(52, 211, 153, .10);
    border: 1px solid rgba(52, 211, 153, .26);
}

.form-alert-error {
    color: #fecaca;
    background: rgba(248, 113, 113, .10);
    border: 1px solid rgba(248, 113, 113, .25);
}

/* Page and archives */
.breadcrumbs {
    padding-top: 34px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    color: var(--subtle);
    list-style: none;
    font-family: var(--font-mono);
    font-size: .68rem;
}

.breadcrumbs li:not(:last-child)::after {
    margin-left: 8px;
    color: #3a495c;
    content: "/";
}

.breadcrumbs a:hover {
    color: var(--cyan);
}

.page-hero {
    padding: 88px 0 56px;
}

.page-hero h1 {
    font-size: clamp(2.25rem, 5vw, 4.35rem);
}

.archive-section {
    padding-top: 36px;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 32px;
}

.category-nav a {
    display: inline-flex;
    gap: 8px;
    padding: 8px 12px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .78rem;
}

.category-nav a:hover {
    color: var(--cyan);
    border-color: var(--line-strong);
}

.category-nav span {
    color: var(--subtle);
    font-family: var(--font-mono);
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.pagination .page-numbers {
    display: grid;
    min-width: 42px;
    min-height: 42px;
    place-items: center;
    padding: 8px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.pagination .current,
.pagination a:hover {
    color: #001018;
    background: var(--cyan);
}

.service-hero-grid {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: end;
    gap: 70px;
}

.service-facts {
    padding: 25px;
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.service-facts div {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.service-facts div:last-child {
    border-bottom: 0;
}

.service-facts dt {
    color: var(--subtle);
    font-size: .72rem;
}

.service-facts dd {
    margin: 0;
    color: var(--text);
    font-size: .78rem;
    font-weight: 750;
    text-align: right;
}

.case-cover,
.article-cover {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.case-client-details {
    display: grid;
    max-width: 680px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0;
    margin: 20px 0 0;
    overflow: hidden;
    background: rgba(13, 21, 43, .72);
    border: 1px solid var(--line-strong);
    border-radius: 12px;
}

.case-client-details > div {
    min-width: 0;
    padding: 15px 18px;
}

.case-client-details > div + div {
    border-left: 1px solid var(--line);
}

.case-client-details dt {
    margin-bottom: 3px;
    color: var(--subtle);
    font-family: var(--font-mono);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.case-client-details dd {
    margin: 0;
    color: var(--text);
    font-size: .9rem;
    font-weight: 720;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.case-client-details a {
    color: var(--cyan);
}

.case-client-details a:hover {
    color: var(--green);
}

.case-cover img,
.article-cover img {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
}

.case-steps {
    padding: 58px 0 90px;
}

.case-step {
    display: grid;
    grid-template-columns: .43fr 1fr;
    gap: 60px;
    padding: 36px 0;
    border-top: 1px solid var(--line);
}

.case-step:last-child {
    border-bottom: 1px solid var(--line);
}

.case-step-title {
    display: flex;
    gap: 15px;
}

.case-step-title span {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: .72rem;
}

.case-step-title h2 {
    font-size: 1.35rem;
}

.case-step-content {
    color: var(--muted);
    font-size: 1.03rem;
}

.case-step-content p:last-child {
    margin-bottom: 0;
}

.case-gallery {
    padding-bottom: 90px;
}

/* Articles */
.article-header {
    padding: 78px 0 48px;
}

.article-title-wrap {
    max-width: 970px;
}

.article-header h1 {
    max-width: 940px;
    font-size: clamp(2.2rem, 5.2vw, 4.6rem);
}

.article-deck {
    max-width: 820px;
    color: var(--muted);
    font-size: 1.17rem;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding-top: 22px;
    color: var(--subtle);
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: .7rem;
}

.reading-progress {
    position: fixed;
    z-index: 1200;
    top: var(--header-height);
    right: 0;
    left: 0;
    height: 2px;
    pointer-events: none;
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 780px) minmax(240px, 1fr);
    align-items: start;
    gap: 70px;
    padding-top: 64px;
    padding-bottom: 100px;
}

.article-body {
    max-width: 780px;
    color: #c6d2e1;
    font-size: 1.04rem;
    line-height: 1.82;
}

.article-body > :first-child {
    margin-top: 0;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--text);
    scroll-margin-top: calc(var(--header-height) + 36px);
}

.article-body h2 {
    padding-top: 28px;
    margin-top: 32px;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.article-body h3 {
    margin-top: 32px;
    font-size: 1.35rem;
}

.article-body h4 {
    margin-top: 26px;
    font-size: 1.08rem;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote,
.article-body pre,
.article-body figure,
.article-body table {
    margin-bottom: 24px;
}

.article-body a:not(.button) {
    color: var(--cyan);
    text-decoration: underline;
    text-decoration-color: rgba(34, 211, 238, .35);
    text-underline-offset: 3px;
}

.article-body ul,
.article-body ol {
    padding-left: 1.35em;
}

.article-body li {
    padding-left: .35em;
    margin-bottom: .55em;
}

.article-body li::marker {
    color: var(--cyan);
    font-weight: 800;
}

.article-body blockquote {
    padding: 22px 26px;
    margin-left: 0;
    color: var(--text);
    background: var(--cyan-soft);
    border-left: 3px solid var(--cyan);
    border-radius: 0 12px 12px 0;
}

.article-body blockquote p:last-child {
    margin-bottom: 0;
}

.article-body code:not(pre code) {
    padding: 2px 6px;
    color: #bae6fd;
    background: #101a2f;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: .88em;
}

.article-body pre {
    position: relative;
    max-width: 100%;
    padding: 24px;
    overflow: auto;
    color: #dce9f7;
    background: #060a14;
    border: 1px solid var(--line);
    border-radius: 13px;
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
    -webkit-overflow-scrolling: touch;
}

.article-body pre code {
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font-family: var(--font-mono);
    font-size: .82rem;
    line-height: 1.75;
    tab-size: 4;
}

.copy-code {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;
    padding: 5px 8px;
    color: var(--subtle);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: .62rem;
}

.copy-code:hover {
    color: var(--cyan);
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.article-body th,
.article-body td {
    padding: 11px 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.article-body th {
    color: var(--text);
    background: var(--surface);
}

.article-body hr {
    height: 1px;
    margin: 44px 0;
    background: var(--line);
    border: 0;
}

.article-body .wp-block-image,
.article-body .wp-block-gallery {
    margin-top: 32px;
    margin-bottom: 32px;
}

.article-body figcaption {
    margin-top: 8px;
    color: var(--subtle);
    font-size: .75rem;
    text-align: center;
}

.article-aside {
    min-width: 0;
}

.aside-card h2 {
    font-size: 1.3rem;
}

.aside-card p {
    color: var(--muted);
    font-size: .88rem;
}

.sticky-card {
    position: sticky;
    top: calc(var(--header-height) + 30px);
}

.inline-cta {
    padding: 30px;
    margin: 42px 0;
    background: linear-gradient(135deg, var(--surface), #072239);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}

.inline-cta h2 {
    padding-top: 0;
    margin-top: 0;
    font-size: 1.55rem;
}

.inline-cta p {
    color: var(--muted);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
    margin-top: 46px;
    border-top: 1px solid var(--line);
}

.legal-content {
    padding-bottom: 100px;
}

.legal-content h2 {
    font-size: 1.5rem;
}

.empty-state,
.not-found {
    text-align: center;
}

.empty-state {
    padding: 70px 28px;
    background: var(--surface);
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
}

.empty-state p,
.not-found p {
    color: var(--muted);
}

.not-found {
    display: grid;
    min-height: calc(100vh - var(--header-height));
    place-items: center;
    padding: 80px 0;
}

.not-found .hero-actions {
    justify-content: center;
}

.error-code {
    display: block;
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    line-height: .9;
    opacity: .25;
}

.search-results {
    display: grid;
    gap: 14px;
}

.search-result {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 13px;
}

.search-result > span {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: .68rem;
}

.search-result h2 {
    margin: 8px 0;
    font-size: 1.35rem;
}

.search-result p {
    margin-bottom: 0;
    color: var(--muted);
}

/* Footer and messenger */
.site-footer {
    padding: 70px 0 20px;
    background: #03050b;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr .7fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-grid p {
    max-width: 340px;
    margin-top: 18px;
    color: var(--subtle);
    font-size: .84rem;
}

.footer-links,
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-links strong,
.footer-contacts strong {
    margin-bottom: 7px;
    font-size: .79rem;
}

.footer-links a,
.footer-contacts a {
    color: var(--subtle);
    font-size: .76rem;
}

.footer-links a:hover,
.footer-contacts a:hover {
    color: var(--cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 20px;
    color: #425064;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: .62rem;
}

.messenger-dock {
    position: fixed;
    z-index: 900;
    right: 18px;
    bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.messenger-dock a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.messenger-dock span {
    padding: 6px 9px;
    color: var(--muted);
    background: rgba(5, 8, 17, .9);
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: .68rem;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.messenger-dock b {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #001018;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(34, 211, 238, .22);
    font-family: var(--font-mono);
    font-size: .7rem;
}

.messenger-dock a:hover span {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 1040px) {
    :root {
        --header-height: 72px;
    }

    .header-meta {
        display: none;
    }

    /*
     * backdrop-filter makes fixed descendants use the header as their
     * containing block in mobile browsers. The menu then has almost no
     * painted background while its links overflow over the page content.
     */
    .site-header {
        background: #050811;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
        cursor: pointer;
    }

    .primary-navigation {
        position: fixed;
        z-index: 999;
        inset: var(--header-height) 0 0;
        width: 100vw;
        min-height: calc(100vh - var(--header-height));
        min-height: calc(100dvh - var(--header-height));
        padding: 22px 32px 40px;
        overflow-y: auto;
        visibility: hidden;
        background-color: #050811 !important;
        background-image: none !important;
        box-shadow: 0 28px 60px rgba(0, 0, 0, .52);
        isolation: isolate;
        opacity: 0;
        transform: translateY(-8px);
        transition: visibility .2s ease, opacity .2s ease, transform .2s ease;
    }

    .menu-open .primary-navigation {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .menu-open .menu-toggle i:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-open .menu-toggle i:nth-child(2) {
        opacity: 0;
    }

    .menu-open .menu-toggle i:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .primary-menu {
        display: grid;
        gap: 4px;
    }

    .primary-menu a {
        padding: 13px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--line);
    }

    .primary-menu .menu-cta {
        padding: 14px;
        margin: 16px 0 0;
        text-align: center;
        border-bottom: 0;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .terminal-card {
        width: min(680px, 100%);
        transform: none;
    }

    .card-grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .process-grid li,
    .process-grid li:first-child,
    .process-grid li:last-child {
        border: 1px solid var(--line);
        border-radius: 13px;
    }

    .process-grid li:last-child {
        grid-column: 1 / -1;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 780px) {
    .shell {
        width: min(100% - 36px, 1180px);
    }

    .section {
        padding: 78px 0;
    }

    .hero {
        padding: 70px 0;
    }

    .hero-grid {
        gap: 46px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .terminal-body {
        min-height: auto;
        padding: 22px 18px;
        overflow: auto;
        font-size: .68rem;
        white-space: nowrap;
    }

    .problem-grid,
    .section-heading,
    .about-grid,
    .faq-grid,
    .service-hero-grid,
    .article-layout,
    .case-step {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .problem-grid > div:first-child {
        position: static;
    }

    .card-grid-3,
    .card-grid-2 {
        grid-template-columns: 1fr;
    }

    .content-card {
        min-height: 0;
    }

    .service-card {
        min-height: 320px;
    }

    .section-heading {
        align-items: start;
        margin-bottom: 34px;
    }

    .about-grid {
        gap: 42px;
    }

    .contact-panel {
        gap: 38px;
        padding: 32px 22px;
    }

    .article-layout {
        padding-top: 44px;
        padding-bottom: 78px;
    }

    .article-aside {
        order: -1;
    }

    .article-single .article-aside {
        order: 0;
    }

    .sticky-card {
        position: static;
    }

    .case-step {
        gap: 10px;
    }

    .case-step-title h2 {
        margin-bottom: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .shell {
        width: min(100% - 28px, 1180px);
    }

    h1 {
        font-size: 2.35rem;
    }

    .header-main {
        min-height: var(--header-height);
    }

    .primary-navigation {
        padding-inline: 20px;
    }

    .hero-actions {
        display: grid;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stats div {
        display: grid;
        max-width: none;
        grid-template-columns: 90px 1fr;
        align-items: center;
    }

    .hero-stats dd {
        margin: 0;
    }

    .problem-list article {
        grid-template-columns: 38px 1fr;
        padding: 18px;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .case-client-details {
        grid-template-columns: 1fr;
    }

    .case-client-details > div + div {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .process-grid li:last-child {
        grid-column: auto;
    }

    .process-grid span {
        margin-bottom: 18px;
    }

    .contact-form {
        padding: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid > div:first-child {
        grid-column: auto;
    }

    .messenger-dock span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .messenger-dock,
    .contact-section,
    .article-aside,
    .reading-progress {
        display: none !important;
    }

    body {
        color: #111;
        background: #fff;
    }

    .site-content {
        padding-top: 0;
    }

    .article-layout {
        display: block;
    }

    .article-body {
        max-width: none;
        color: #111;
    }
}
/* Размер главного заголовка */
.hero-copy h1 {
    font-size: clamp(2.1rem, 4.4vw, 3rem);
}
/* Компьютер */
.service-card h2 {
    font-size: 1.6rem;
}

/* Телефон */
@media (max-width: 640px) {
    .service-card h2 {
        font-size: 1.2rem;
    }
}
/* Главный заголовок на страницах отдельных услуг */
.single-fedkin_service .service-hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem) !important;
}
/* Заголовки страниц «Услуги», «Кейсы» и «Блог» */
.post-type-archive-fedkin_service .page-hero h1,
.post-type-archive-fedkin_case .page-hero h1,
.blog .blog-hero h1 {
    font-size: clamp(1.6rem, 3vw, 2.5rem) !important;
}
/* Заголовки отдельных статей Базы знаний */
.single-post .article-header h1 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.1;
}
/* Заголовок на странице отдельного кейса */
.single-fedkin_case .case-hero h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem) !important;
}
/* ==================================================
   РАЗМЕРЫ МЕЛКИХ ЭЛЕМЕНТОВ ГЛАВНОЙ СТРАНИЦЫ
   ================================================== */

/* Пункты верхнего меню:
   Услуги, Кейсы, База знаний, Обо мне */
.primary-menu a:not(.menu-cta) {
    font-size: 0.84rem;
}

/* Надпись:
   Внедрение · миграция · восстановление · NDA */
.home .status-pill {
    font-size: 0.70rem;
}

/* Крупные значения: 15+, 50+, 15 мин */
.home .hero-stats dt {
    font-size: 1.55rem;
}

/* Подписи под значениями:
   лет в инфраструктуре и т. д. */
.home .hero-stats dd {
    font-size: 0.76rem;
}

/* Заголовок окна:
   engineer@fedkin: infrastructure-plan */
.home .terminal-bar {
    font-size: 0.68rem;
}

/* Основной текст внутри мигающего окна */
.home .terminal-body {
    font-size: 0.78rem;
}

/* Отдельные размеры на телефоне */
@media (max-width: 780px) {
    .primary-menu a:not(.menu-cta) {
        font-size: 0.90rem;
    }

    .home .status-pill {
        font-size: 0.64rem;
    }

    .home .hero-stats dt {
        font-size: 1.35rem;
    }

    .home .hero-stats dd {
        font-size: 0.68rem;
    }

    .home .terminal-bar {
        font-size: 0.62rem;
    }
    /* Верхняя строка: компания, город, телефон и email */
.header-meta-inner {
    font-size: .80rem;
}
/* ==================================================
   РАЗМЕРЫ ТЕКСТА В ПОДВАЛЕ САЙТА
   ================================================== */

/* Название fedkin.pro — только в подвале */
.site-footer .brand {
    font-size: 1.08rem;
}

/* Описание под названием:
   «Проектирование, внедрение и восстановление...» */
.site-footer .footer-grid p {
    font-size: 0.84rem;
}

/* Заголовки колонок:
   Разделы, Документы, Связаться */
.site-footer .footer-links strong,
.site-footer .footer-contacts strong {
    font-size: 0.79rem;
}

/* Ссылки:
   Услуги, Кейсы, База знаний, документы,
   телефон и электронная почта */
.site-footer .footer-links a,
.site-footer .footer-contacts a {
    font-size: 0.76rem;
}

/* Самая нижняя строка:
   © Илья Федькин, ИНН и ОГРН */
.site-footer .footer-bottom {
    font-size: 0.62rem;
}

}

/* Desktop typography normalization requested 2026-08-21 */
@media (min-width: 781px) {
    h1,
    .hero-copy h1,
    .article-header h1,
    .single-post .article-header h1,
    .single-fedkin_service .service-hero h1,
    body.single-fedkin_service .page-hero.service-hero h1,
    .single-fedkin_case .case-hero h1,
    .post-type-archive-fedkin_service .page-hero h1,
    .post-type-archive-fedkin_case .page-hero h1,
    .blog .blog-hero h1 {
        font-size: 35px !important;
    }

    h2,
    .article-body h2,
    .contact-copy h2,
    .case-step-title h2,
    .legal-content h2,
    .inline-cta h2,
    .aside-card h2 {
        font-size: 35px !important;
    }

    .service-card h2,
    .post-type-archive-fedkin_service .content-card h2,
    .home .service-card h2,
    .single-fedkin_service .service-card h2 {
        font-size: 25px !important;
    }
}

/* Footer typography normalization requested 2026-08-21 */
.site-footer .footer-grid p,
.site-footer .footer-links strong,
.site-footer .footer-contacts strong,
.site-footer .footer-links a,
.site-footer .footer-contacts a,
.site-footer .footer-bottom {
    font-size: 15px !important;
}

/* Header menu and home stats typography requested 2026-08-21 */
.primary-menu a,
.home .hero-stats dd {
    font-size: 15px !important;
}

/* Header meta typography requested 2026-08-21 */
.header-meta-inner,
.header-meta-inner a,
.header-meta-inner strong,
.header-meta-inner span {
    font-size: 15px !important;
}

/* Home status pill typography requested 2026-08-21 */
.home .status-pill {
    font-size: 15px !important;
}

/* Home terminal typography requested 2026-08-21 */
.home .terminal-bar,
.home .terminal-body,
.home .terminal-body p,
.home .terminal-body b,
.home .terminal-body span {
    font-size: 15px !important;
}

/* Breadcrumbs and article meta typography requested 2026-08-21 */
.breadcrumbs,
.breadcrumbs a,
.breadcrumbs li,
.breadcrumbs span,
.article-meta,
.article-meta span {
    font-size: 15px !important;
}

/* Card post meta typography requested 2026-08-21 */
.post-meta,
.post-meta a,
.post-meta span {
    font-size: 15px !important;
}
