/* =========================================================================
   MurmanSoft.ru — дизайн-система
   ========================================================================= */

:root {
    --ink: #0b1220;
    --ink-soft: #121d30;
    --text: #0b1220;
    --text-soft: #121d30;
    --ink-muted: #1b2740;
    --paper: #ffffff;
    --paper-alt: #f4f7fb;
    --paper-warm: #fbfcfe;
    --line: #e2e8f0;
    --line-soft: #edf1f7;
    --muted: #5a6779;
    --muted-light: #94a3b8;
    --accent: #14b8a6;
    --accent-dark: #0f9488;
    --accent-soft: #e6fbf7;
    --blue: #2f6df6;
    --danger: #dc2626;
    --warning: #f59e0b;
    --success: #16a34a;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
    --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
    --container: 1180px;
    --header-height: 76px;
    --page-title-size: clamp(1.5rem, 1rem + 1.4vw, 2rem);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

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

img,
svg,
iframe {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

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

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 .5em;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
}

h1 {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
}

h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
}

h3 {
    font-size: 1.2rem;
}

code,
pre {
    font-family: var(--mono);
}

button {
    font: inherit;
}

::selection {
    background: var(--accent);
    color: #022c26;
}

/* Layout ----------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 820px;
}

.section {
    padding: 84px 0;
}

.section--alt {
    background: var(--paper-alt);
}

.section--dark {
    background: var(--ink);
    color: #dfe7f3;
}

.section--dark h2,
.section--dark h3 {
    color: #fff;
}

.site-main {
    min-height: 60vh;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.page-loading {
    padding: 80px 24px;
    text-align: center;
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

/* Typography helpers ----------------------------------------------------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.eyebrow--light {
    color: #5eead4;
}

.pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2dd4bf;
    box-shadow: 0 0 0 0 rgba(45, 212, 191, .7);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, .7); }
    70% { box-shadow: 0 0 0 10px rgba(45, 212, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid transparent;
    transition: gap .2s ease, border-color .2s ease;
}

.link-arrow:hover {
    gap: 12px;
    border-color: var(--accent);
}

.link-arrow--light {
    color: #e2e8f0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.section-head h2 {
    margin-bottom: 0;
}

.section-head--light .link-arrow {
    color: #e2e8f0;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
    --btn-bg: transparent;
    --btn-color: var(--text);
    --btn-border: var(--line);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--btn-border);
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-color);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.btn--accent {
    --btn-bg: var(--accent);
    --btn-color: #04211d;
    --btn-border: var(--accent);
    box-shadow: 0 8px 20px rgba(20, 184, 166, .28);
}

.btn--accent:hover {
    --btn-bg: #2dd4bf;
    --btn-border: #2dd4bf;
}

.btn--outline {
    --btn-bg: transparent;
    --btn-border: #cbd5e1;
}

.btn--outline:hover {
    --btn-border: var(--text);
}

.btn--ghost {
    --btn-bg: transparent;
    --btn-border: var(--line);
    --btn-color: var(--muted);
}

.btn--ghost:hover {
    --btn-color: var(--text);
    --btn-border: #cbd5e1;
}

.btn--danger {
    --btn-bg: var(--danger);
    --btn-border: var(--danger);
    --btn-color: #fff;
}

.btn--lg {
    padding: 15px 28px;
    font-size: 1rem;
}

.btn--sm {
    padding: 7px 14px;
    font-size: .82rem;
}

.btn--block {
    width: 100%;
}

.btn--right {
    margin-left: auto;
}

/* Header ----------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-height);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand__mark {
    width: 42px;
    height: 42px;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand__tagline {
    font-family: var(--mono);
    font-size: .62rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.brand--footer {
    margin-bottom: 18px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav__link {
    position: relative;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .15s ease, background .15s ease;
}

.site-nav__link:hover {
    color: var(--text);
    background: var(--paper-alt);
}

.site-nav__link.active {
    color: var(--text);
    font-weight: 600;
}

.site-nav__link.active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.nav-admin {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--paper-alt);
    color: var(--text);
    font-size: 1rem;
    transition: background .15s ease;
}

.nav-admin:hover {
    background: var(--accent-soft);
}

.nav-toggle,
.nav-burger {
    display: none;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-left: 10px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.lang-switch__item {
    padding: 4px 9px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--muted);
    cursor: pointer;
}

.lang-switch__item.is-active {
    background: var(--ink);
    color: #fff;
}

.lang-switch__divider {
    width: 1px;
    height: 12px;
    background: var(--line);
}

/* Hero ------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 104px;
    background: radial-gradient(1200px 600px at 80% -10%, #14344a 0%, transparent 60%), linear-gradient(160deg, #0b1220 0%, #0e1a2b 55%, #102b38 100%);
    color: #e6eef8;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 100%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
    gap: 56px;
    align-items: center;
}

.hero__title {
    margin-bottom: 20px;
    color: #fff;
    font-size: var(--page-title-size);
    letter-spacing: -.03em;
}

.hero__lead {
    max-width: 620px;
    font-size: 1.1rem;
    color: #aebdd2;
}

.hero__lead p:last-child {
    margin-bottom: 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0 44px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding-top: 28px;
    border-top: 1px solid rgba(148, 163, 184, .2);
}

.hero__stats dt {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}

.hero__stats dd {
    margin: 2px 0 0;
    font-size: .86rem;
    color: #8fa1ba;
}

.hero__panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.code-card {
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: var(--radius);
    background: rgba(8, 15, 26, .72);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotate(.6deg);
    transition: transform .3s ease;
}

.code-card:hover {
    transform: rotate(0);
}

.code-card__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, .15);
    background: rgba(148, 163, 184, .06);
}

.code-card__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.code-card__bar span:first-child { background: #f87171; }
.code-card__bar span:nth-child(2) { background: #fbbf24; }
.code-card__bar span:nth-child(3) { background: #34d399; }

.code-card__bar em {
    margin-left: auto;
    font-family: var(--mono);
    font-size: .7rem;
    font-style: normal;
    color: #64748b;
}

.code-card__body {
    margin: 0;
    padding: 20px 22px;
    font-size: .78rem;
    line-height: 1.9;
    color: #8ee6d8;
    overflow-x: auto;
}

.hero__note {
    margin: 0;
    font-size: .84rem;
    color: #7d8fa8;
}

/* Cards ------------------------------------------------------------------ */
.card-grid {
    display: grid;
    gap: 22px;
}

.card-grid--services {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

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

.service-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #c7d2e1;
    box-shadow: var(--shadow);
}

.service-card__icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    border-radius: 14px;
    background: var(--accent-soft);
    font-size: 1.5rem;
}

.service-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.service-card p {
    margin: 0;
    font-size: .92rem;
    color: var(--muted);
}

.service-card__more {
    margin-top: auto;
    padding-top: 14px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent-dark);
}

.feature {
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.feature__num {
    display: block;
    margin-bottom: 18px;
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--accent-dark);
}

.feature h3 {
    font-size: 1.08rem;
}

.feature p {
    margin: 0;
    font-size: .92rem;
    color: var(--muted);
}

/* Projects --------------------------------------------------------------- */
.project-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.project-card__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 150px;
    padding: 22px;
    background: linear-gradient(135deg, #0f172a, #173a4a);
}

.project-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card__media--mobile { background: linear-gradient(135deg, #0b2545, #16697a); }
.project-card__media--web { background: linear-gradient(135deg, #1e1b4b, #4338ca); }
.project-card__media--chatbot { background: linear-gradient(135deg, #0f2e2b, #0e7490); }
.project-card__media--crm { background: linear-gradient(135deg, #312e81, #7c3aed); }
.project-card__media--desktop { background: linear-gradient(135deg, #1f2937, #0f766e); }
.project-card__media--micro { background: linear-gradient(135deg, #3b0764, #be185d); }

.project-card__glyph {
    position: relative;
    font-size: 2rem;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}

.project-card__type {
    position: relative;
    margin-left: auto;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #d9e6f5;
}

.project-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
}

.project-card__body h2,
.project-card__body h3 {
    margin: 0;
    font-size: 1.12rem;
}

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

.project-card__tech {
    margin-top: 6px;
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--muted-light);
}

.tag {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--paper-alt);
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.tag--light {
    background: rgba(20, 184, 166, .12);
    color: var(--accent-dark);
}

/* Quotes ----------------------------------------------------------------- */
.quote {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 0;
    padding: 28px 24px;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: var(--radius);
    background: rgba(148, 163, 184, .05);
}

.quote--light {
    background: var(--paper);
    border-color: var(--line);
}

.quote p {
    margin: 0;
    font-size: .96rem;
    color: inherit;
}

.quote--light p {
    color: var(--text-soft);
}

.quote footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.quote footer strong {
    display: block;
    font-size: .92rem;
}

.quote footer em {
    display: block;
    font-size: .78rem;
    font-style: normal;
    color: var(--muted-light);
}

.quote__avatar {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--ink-muted);
    color: #cbd5e1;
    font-size: .82rem;
    font-weight: 700;
}

.quote--light .quote__avatar {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.quote__stars,
.star {
    letter-spacing: .08em;
}

.star {
    color: #cbd5e1;
}

.star.is-filled {
    color: #f5b81c;
}

/* Blog cards ------------------------------------------------------------- */
.post-list {
    display: grid;
    gap: 18px;
}

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

.post-card {
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.post-card:hover {
    border-color: #c7d2e1;
    box-shadow: var(--shadow-sm);
}

.post-card time {
    display: block;
    margin-bottom: 8px;
    font-family: var(--mono);
    font-size: .72rem;
    color: var(--muted-light);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.post-card h2,
.post-card h3 {
    margin: 0 0 8px;
    font-size: 1.18rem;
}

.post-card p {
    margin: 0;
    font-size: .92rem;
    color: var(--muted);
}

.post-card__more {
    display: inline-block;
    margin-top: 14px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--accent-dark);
}

/* CTA -------------------------------------------------------------------- */
.cta-band {
    padding: 56px 0;
    background: linear-gradient(120deg, #0e7490, #0f766e 55%, #115e59);
    color: #eafffb;
}

.cta-band__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cta-band h2 {
    margin-bottom: 6px;
    color: #fff;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
}

.cta-band p {
    margin: 0;
    max-width: 640px;
    color: #c6f6ee;
    font-size: .95rem;
}

/* Page hero -------------------------------------------------------------- */
.page-hero {
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, var(--paper-alt), #fff);
}

.page-hero__title {
    max-width: 900px;
    margin-bottom: 14px;
}

.page-hero__lead {
    max-width: 720px;
    margin: 0;
    font-size: 1.06rem;
    color: var(--muted);
}

.page-hero__lead p {
    margin: 0;
}

.page-hero__lead p + p {
    margin-top: .75rem;
}

/* Detail pages ----------------------------------------------------------- */
.detail-hero {
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--paper-alt);
}

.detail-hero__row {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    margin-top: 20px;
}

.detail-hero__icon {
    display: inline-grid;
    place-items: center;
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 2rem;
}

.detail-hero h1 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem);
}

.detail-hero__lead {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: .8rem;
    color: var(--muted-light);
}

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

.meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 28px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.meta-grid dt {
    margin-bottom: 4px;
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.meta-grid dd {
    margin: 0;
    font-weight: 600;
    font-size: .92rem;
}

.detail-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
}

/* Prose ------------------------------------------------------------------ */
.prose {
    max-width: 760px;
    font-size: 1.02rem;
    color: #233146;
}

.prose h2 {
    margin-top: 1.6em;
    font-size: 1.55rem;
}

.prose h3 {
    margin-top: 1.5em;
    font-size: 1.2rem;
}

.prose ul,
.prose ol {
    padding-left: 1.3em;
}

.prose li {
    margin-bottom: .45em;
}

.prose a {
    color: var(--accent-dark);
    border-bottom: 1px solid rgba(15, 148, 136, .35);
}

.prose img {
    margin: 1.5em 0;
    border-radius: var(--radius-sm);
}

.prose blockquote {
    margin: 1.5em 0;
    padding: 4px 0 4px 20px;
    border-left: 3px solid var(--accent);
    color: var(--muted);
}

.prose--article {
    font-size: 1.06rem;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.stat-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
    overflow: hidden;
}

.stat-panel__item {
    padding: 24px 20px;
    background: var(--paper);
}

.stat-panel__item strong {
    display: block;
    font-size: 1.8rem;
    letter-spacing: -.02em;
}

.stat-panel__item span {
    font-size: .82rem;
    color: var(--muted);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.team-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.team-card__avatar {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #4338ca);
    color: #fff;
    font-weight: 700;
    letter-spacing: .04em;
}

.team-card h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
}

.team-card__role {
    display: block;
    margin-bottom: 10px;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--accent-dark);
}

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

@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: .9rem;
    font-weight: 500;
    transition: border-color .15s ease, background .15s ease;
}

.chip:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

/* Services list ---------------------------------------------------------- */
.service-rows {
    display: grid;
    gap: 14px;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.service-row:hover {
    border-color: #c7d2e1;
    box-shadow: var(--shadow-sm);
}

.service-row__icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 16px;
    background: var(--accent-soft);
    font-size: 1.6rem;
}

.service-row__body {
    flex: 1 1 auto;
    min-width: 0;
}

.service-row__body h2 {
    margin: 0 0 4px;
    font-size: 1.25rem;
}

.service-row__body h2 a:hover {
    color: var(--accent-dark);
}

.service-row__body p {
    margin: 0;
    color: var(--muted);
    font-size: .94rem;
}

/* Process steps ---------------------------------------------------------- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    padding: 26px 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.step__num {
    display: block;
    margin-bottom: 16px;
    font-family: var(--mono);
    font-size: .75rem;
    color: var(--accent-dark);
}

.step h3 {
    font-size: 1.02rem;
}

.step p {
    margin: 0;
    font-size: .88rem;
    color: var(--muted);
}

.contact-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-alt);
}

.contact-card h2 {
    font-size: 1.2rem;
}

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

.contact-card hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.contact-card__small {
    font-size: .85rem;
    margin: 0;
}

/* Portfolio filter ------------------------------------------------------- */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.filter {
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
    font-size: .86rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s ease;
}

.filter:hover {
    color: var(--text);
    border-color: #cbd5e1;
}

.filter.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* Empty state ------------------------------------------------------------ */
.empty-state {
    padding: 64px 24px;
    text-align: center;
}

.empty-state h1 {
    font-size: 2rem;
}

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

.empty-state__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* Article ---------------------------------------------------------------- */
.article__header {
    padding: 48px 0 0;
    border-bottom: 1px solid var(--line-soft);
    background: var(--paper-alt);
}

.article__header h1 {
    margin-bottom: 14px;
    font-size: var(--page-title-size);
}

/* Единый размер заголовков публичных страниц — как на главной */
.page-hero__title,
.detail-hero h1,
.article__header h1,
.empty-state h1,
.site-main .container--narrow > h1 {
    font-size: var(--page-title-size);
}

.article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    font-size: .84rem;
    color: var(--muted);
}

.article__image {
    width: 100%;
    margin-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
}

.article .container--narrow {
    padding-top: 48px;
    padding-bottom: 64px;
}

.article__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.pagination__link {
    display: inline-grid;
    place-items: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: .86rem;
    color: var(--muted);
}

.pagination__link:hover {
    border-color: #cbd5e1;
    color: var(--text);
}

.pagination__link.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* Forms ------------------------------------------------------------------ */
.form-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.form-card__title {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-card__note {
    margin: 14px 0 0;
    font-size: .78rem;
    color: var(--muted-light);
}

.form-card__note a {
    color: var(--accent-dark);
}

.field {
    margin-bottom: 18px;
    min-width: 0;
}

.field:last-child {
    margin-bottom: 0;
}

.field-label {
    display: block;
    margin-bottom: 7px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-soft);
}

.field-hint {
    display: block;
    margin-top: 6px;
    font-size: .76rem;
    color: var(--muted-light);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

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

.field-row--toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 18px;
}

.field--checkbox {
    display: flex;
    align-items: flex-end;
}

.input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font: inherit;
    font-size: .94rem;
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .16);
}

.input.invalid {
    border-color: var(--danger);
}

.input:disabled {
    background: var(--paper-alt);
    color: var(--muted);
}

.input--area {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .86rem;
    color: var(--muted);
    cursor: pointer;
}

.checkbox input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.validation-message {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
    color: var(--danger);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    font-size: .9rem;
}

.alert p:last-child {
    margin-bottom: 0;
}

.alert--success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.alert--error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.check-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: .92rem;
    color: var(--muted);
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-dark);
    font-weight: 700;
}

/* Contacts --------------------------------------------------------------- */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
}

.contact-details {
    display: grid;
    gap: 24px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
}

.contact-item__label {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted-light);
}

.contact-item a,
.contact-item span:not(.contact-item__label) {
    font-size: 1rem;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--accent-dark);
}

.map-section {
    margin-top: 20px;
    border-top: 1px solid var(--line-soft);
}

.map-frame {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
    filter: grayscale(.25);
}

/* Newsletter ------------------------------------------------------------- */
.newsletter {
    margin-top: 14px;
}

.newsletter__row {
    display: flex;
    gap: 8px;
}

.newsletter__field {
    flex: 1 1 auto;
}

.newsletter .input {
    padding: 10px 12px;
    background: rgba(148, 163, 184, .08);
    border-color: rgba(148, 163, 184, .25);
    color: #e2e8f0;
}

.newsletter .input::placeholder {
    color: #64748b;
}

.newsletter__message {
    margin: 10px 0 0;
    font-size: .8rem;
}

.newsletter__message.is-success {
    color: #5eead4;
}

.newsletter__message.is-error {
    color: #fca5a5;
}

/* Footer ----------------------------------------------------------------- */
.site-footer {
    padding: 64px 0 28px;
    background: var(--ink);
    color: #8fa1ba;
    font-size: .9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr 1fr 1.1fr;
    gap: 40px;
}

.footer-brand .brand__name {
    color: #fff;
}

.footer-text {
    max-width: 340px;
    margin-bottom: 18px;
}

.footer-text--small {
    font-size: .84rem;
    color: #7d8fa8;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .84rem;
}

.footer-social a {
    color: #cbd5e1;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-heading {
    margin-bottom: 16px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-list li {
    margin-bottom: 9px;
}

.footer-list a:hover {
    color: #fff;
}

.footer-list--plain li {
    color: #7d8fa8;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(148, 163, 184, .16);
    font-size: .78rem;
    color: #64748b;
}

.footer-bottom__links {
    display: flex;
    gap: 18px;
}

.footer-bottom__links a:hover {
    color: #cbd5e1;
}

/* Admin ------------------------------------------------------------------ */
.admin {
    display: flex;
    min-height: 100vh;
    background: var(--paper-alt);
    font-size: .94rem;
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    width: 250px;
    flex: 0 0 250px;
    padding: 22px 16px;
    background: var(--ink);
    color: #94a3b8;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.admin-brand strong {
    display: block;
    color: #fff;
    font-size: .98rem;
}

.admin-brand em {
    display: block;
    font-size: .66rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #64748b;
}

.admin-nav {
    display: grid;
    gap: 2px;
    margin-top: 16px;
}

.admin-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: .88rem;
    color: #94a3b8;
    transition: background .15s ease, color .15s ease;
}

.admin-nav__link:hover {
    background: rgba(148, 163, 184, .1);
    color: #e2e8f0;
}

.admin-nav__link.active {
    background: rgba(20, 184, 166, .14);
    color: #5eead4;
}

.admin-nav__link span {
    width: 18px;
    text-align: center;
    opacity: .8;
}

.admin-sidebar__footer {
    margin-top: auto;
    padding: 16px 12px 0;
    border-top: 1px solid rgba(148, 163, 184, .14);
    font-size: .78rem;
}

.admin-sidebar__footer a:hover {
    color: #fff;
}

.admin-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 12px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.admin-user {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .86rem;
    font-weight: 600;
}

.admin-user__avatar {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: .8rem;
}

.admin-logout {
    margin: 0;
}

.admin-content {
    padding: 30px 28px 56px;
    max-width: 1240px;
    width: 100%;
}

.admin-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.admin-head h1 {
    margin-bottom: 4px;
    font-size: 1.85rem;
}

.admin-head .muted {
    margin: 0;
    font-size: .9rem;
}

.admin-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.back-link {
    display: inline-block;
    margin-bottom: 8px;
    font-size: .8rem;
    color: var(--muted);
}

.back-link:hover {
    color: var(--text);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    transition: border-color .15s ease, transform .15s ease;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.stat-card__label {
    font-size: .78rem;
    color: var(--muted);
}

.stat-card strong {
    font-size: 1.9rem;
    letter-spacing: -.02em;
}

.stat-card__hint {
    font-size: .74rem;
    color: var(--muted-light);
}

.stat-card--attention {
    border-color: #fcd34d;
    background: #fffbeb;
}

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

.admin-panel {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    margin-bottom: 18px;
}

.admin-panel h2 {
    margin-bottom: 16px;
    font-size: 1.15rem;
}

.admin-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-panel__head h2 {
    margin: 0;
}

.admin-panel__note {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--paper-alt);
    font-size: .82rem;
    color: var(--muted);
}

.admin-panel__note p {
    margin: 4px 0 0;
}

.admin-panel--hint {
    margin-top: 18px;
    font-size: .86rem;
    color: var(--muted);
}

.admin-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-list__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.admin-list__item:last-child {
    border-bottom: 0;
}

.admin-list__item.is-unread strong {
    color: var(--accent-dark);
}

.admin-list__meta {
    display: block;
    font-size: .76rem;
    color: var(--muted-light);
}

.admin-list__excerpt {
    margin: 4px 0 0;
    font-size: .84rem;
    color: var(--muted);
}

.quick-actions {
    display: grid;
    gap: 8px;
}

.quick-actions a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-size: .88rem;
    transition: border-color .15s ease, background .15s ease;
}

.quick-actions a:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}

.table th,
.table td {
    padding: 13px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line-soft);
}

.table th {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted-light);
    background: var(--paper-warm);
    white-space: nowrap;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover {
    background: var(--paper-warm);
}

.table__sub {
    margin-top: 3px;
    font-size: .76rem;
    color: var(--muted-light);
}

.table__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}

.confirm {
    display: inline-flex;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--paper-alt);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--muted);
}

.badge--ok {
    background: #dcfce7;
    color: #15803d;
}

.badge--muted {
    background: var(--paper-alt);
    color: var(--muted-light);
}

.badge--accent {
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 8px 0 22px;
}

.redactor-field {
    min-width: 0;
}

.redactor-source {
    width: 100%;
    min-height: 240px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: var(--mono);
    font-size: .84rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.review-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.review-card--pending {
    border-color: #fcd34d;
}

.review-card__head,
.review-card__footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.review-card__head {
    margin-bottom: 12px;
}

.review-card p {
    font-size: .9rem;
    color: #334155;
}

.review-card__footer {
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

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

.message-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.message-card.is-unread {
    border-left: 3px solid var(--accent);
}

.message-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.message-card__subject {
    margin: 12px 0 4px;
    font-weight: 600;
}

.message-card__body {
    margin: 0;
    font-size: .9rem;
    color: #334155;
    white-space: pre-line;
}

.message-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.detail-list div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.detail-list dt {
    font-size: .78rem;
    color: var(--muted-light);
}

.detail-list dd {
    margin: 0;
    font-weight: 500;
}

.plain-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.plain-list li {
    margin-bottom: 4px;
}

/* Auth ------------------------------------------------------------------- */
.auth-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    background: radial-gradient(900px 500px at 20% 0%, #103042 0%, transparent 55%), linear-gradient(160deg, #0b1220, #0e1a2b 60%, #102b38);
    color: #e2e8f0;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: var(--paper);
    color: var(--text);
    box-shadow: var(--shadow-lg);
}

.auth-title {
    margin-bottom: 6px;
    font-size: 1.5rem;
}

.auth-subtitle {
    margin-bottom: 22px;
    font-size: .88rem;
    color: var(--muted);
}

.auth-form .field {
    margin-bottom: 16px;
}

.auth-note {
    margin-top: 20px;
    font-size: .82rem;
}

.auth-note a {
    color: #94a3b8;
}

.auth-note a:hover {
    color: #fff;
}

.auth-footer {
    margin-top: 26px;
    font-size: .74rem;
    color: #64748b;
}

/* Blazor error UI -------------------------------------------------------- */
#blazor-error-ui {
    display: none;
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: #7f1d1d;
    color: #fff;
    box-shadow: var(--shadow-lg);
    font-size: .9rem;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 6px;
    right: 10px;
    border: 0;
    background: transparent;
    color: #fecaca;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Redactor overrides ----------------------------------------------------- */
.redactor-box {
    border-radius: var(--radius-sm) !important;
    border-color: var(--line) !important;
    margin-bottom: 0 !important;
}

.redactor-toolbar {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
}

.redactor-layer {
    z-index: 80 !important;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .hero__panel {
        max-width: 520px;
    }

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

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

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

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

@media (max-width: 900px) {
    .site-nav {
        position: fixed;
        inset: var(--header-height) 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 16px 20px 24px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        transition: transform .25s ease;
    }

    .nav-toggle:checked ~ .site-nav {
        transform: translateY(0);
    }

    .site-nav__link {
        padding: 12px;
    }

    .site-nav__link.active::after {
        display: none;
    }

    .lang-switch {
        margin: 10px 0 0;
        align-self: flex-start;
    }

    .nav-burger {
        display: grid;
        gap: 5px;
        padding: 10px;
        cursor: pointer;
    }

    .nav-burger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
    }

    .split,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

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

    .post-list--grid {
        grid-template-columns: 1fr;
    }

    .field-row,
    .field-row--three,
    .editor-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .cta-band__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        flex: 0 0 auto;
    }

    .admin-nav {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .admin-sidebar__footer {
        display: none;
    }

    .admin-content {
        padding: 22px 18px 40px;
    }

    .admin-topbar {
        padding: 10px 18px;
    }

    .admin-head {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 18px;
    }

    .section {
        padding: 48px 0;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-grid--three,
    .card-grid--projects {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 64px 0 72px;
    }

    .hero__stats {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero__stats div {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .hero__stats dt {
        font-size: 1.5rem;
    }

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

    .newsletter__row {
        flex-direction: column;
    }

    .service-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

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

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

    .form-card {
        padding: 22px;
    }

    .auth-card {
        padding: 24px;
    }

    .admin-head h1 {
        font-size: 1.5rem;
    }

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

    .table th,
    .table td {
        padding: 10px 12px;
    }
}

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

/* =========================================================================
   Темы оформления. Переключатель находится только в админ-панели,
   выбранная тема применяется ко всему сайту.
   ========================================================================= */

/* --- Переключатель в админке -------------------------------------------- */
.theme-picker {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-alt);
}

.theme-picker__label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.theme-picker__form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.theme-swatch {
    position: relative;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.theme-swatch:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
}

.theme-swatch:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-swatch.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.theme-swatch__preview {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.theme-swatch--light .theme-swatch__preview {
    background: linear-gradient(135deg, #ffffff 0 55%, #14b8a6 55% 100%);
}

.theme-swatch--dark .theme-swatch__preview {
    background: linear-gradient(135deg, #0b1220 0 58%, #2dd4bf 58% 100%);
}

.theme-swatch--creative .theme-swatch__preview {
    background: linear-gradient(135deg, #ff4ecd, #7c3aed 55%, #5ce1ff);
}

.theme-swatch.is-active::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: .68rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}

.theme-swatch--light.is-active::after {
    color: #0b1220;
    text-shadow: none;
}

/* --- Тёмная тема -------------------------------------------------------- */
html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #070d17;
    --ink-soft: #0f1a2b;
    --ink-muted: #1b2a40;
    --text: #e8eef8;
    --text-soft: #d2ddec;
    --paper: #0b1220;
    --paper-alt: #101a2b;
    --paper-warm: #0d1727;
    --line: #26364d;
    --line-soft: #1b283a;
    --muted: #a4b3c6;
    --muted-light: #8496ac;
    --accent: #2dd4bf;
    --accent-dark: #5eead4;
    --accent-soft: rgba(45, 212, 191, .14);
    --blue: #7aa7ff;
    --danger: #f87171;
    --warning: #fbbf24;
    --success: #4ade80;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .3);
    --shadow: 0 16px 40px rgba(0, 0, 0, .4);
    --shadow-lg: 0 30px 70px rgba(0, 0, 0, .55);
}

html[data-theme="dark"] .site-header {
    background: rgba(11, 18, 32, .92);
    border-bottom-color: var(--line);
}

html[data-theme="dark"] .page-hero {
    background: linear-gradient(180deg, var(--paper-alt), var(--paper));
}

html[data-theme="dark"] .cta-band {
    background: linear-gradient(120deg, #0e7490, #0f766e 55%, #134e4a);
}

html[data-theme="dark"] .footer-bottom {
    color: var(--muted-light);
}

html[data-theme="dark"] .footer-text--small,
html[data-theme="dark"] .footer-list--plain li {
    color: var(--muted);
}

/* --- Неоновая (креативная) тема ----------------------------------------- */
html[data-theme="creative"] {
    color-scheme: dark;
    --ink: #050310;
    --ink-soft: #0d0920;
    --ink-muted: #1a1236;
    --text: #f5f2ff;
    --text-soft: #ded6ff;
    --paper: #0b0818;
    --paper-alt: #120d28;
    --paper-warm: #100b22;
    --line: #3a2d63;
    --line-soft: #291f4b;
    --muted: #b6a9dd;
    --muted-light: #9080bd;
    --accent: #ff4ecd;
    --accent-dark: #ff8ee0;
    --accent-soft: rgba(255, 78, 205, .14);
    --blue: #5ce1ff;
    --danger: #ff6b81;
    --warning: #ffd166;
    --success: #5ef2b8;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .35);
    --shadow: 0 18px 50px rgba(124, 58, 237, .22);
    --shadow-lg: 0 30px 90px rgba(255, 78, 205, .22);
}

html[data-theme="creative"] body {
    background:
        radial-gradient(1000px 620px at 12% -10%, rgba(124, 58, 237, .3), transparent 60%),
        radial-gradient(820px 520px at 96% 6%, rgba(92, 225, 255, .14), transparent 55%),
        radial-gradient(720px 520px at 58% 105%, rgba(255, 78, 205, .13), transparent 62%),
        var(--paper);
    background-attachment: fixed;
}

html[data-theme="creative"] .site-header {
    background: rgba(11, 8, 24, .8);
    border-bottom-color: rgba(255, 78, 205, .2);
    box-shadow: 0 10px 40px rgba(5, 3, 16, .35);
}

html[data-theme="creative"] .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 78, 205, .7), rgba(92, 225, 255, .7), transparent);
    pointer-events: none;
}

html[data-theme="creative"] .hero {
    background:
        radial-gradient(900px 520px at 84% -5%, rgba(92, 225, 255, .22), transparent 60%),
        radial-gradient(760px 520px at 6% 105%, rgba(255, 78, 205, .28), transparent 62%),
        linear-gradient(160deg, #0b0818 0%, #160d33 55%, #0a1a30 100%);
}

html[data-theme="creative"] .hero__title {
    background: linear-gradient(100deg, #ffffff 0%, #ffd1f3 42%, #b8f3ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

html[data-theme="creative"] .hero__grid {
    background-image:
        linear-gradient(rgba(255, 78, 205, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 225, 255, .08) 1px, transparent 1px);
}

html[data-theme="creative"] .code-card {
    border-color: rgba(255, 78, 205, .3);
    background: rgba(10, 6, 24, .8);
    box-shadow: 0 30px 90px rgba(124, 58, 237, .25);
}

html[data-theme="creative"] .page-hero {
    background:
        radial-gradient(900px 420px at 86% -25%, rgba(255, 78, 205, .2), transparent 62%),
        linear-gradient(180deg, var(--paper-alt), var(--paper));
    border-bottom-color: var(--line);
}

html[data-theme="creative"] .cta-band {
    background: linear-gradient(120deg, #7c3aed, #db2777 55%, #0891b2);
}

html[data-theme="creative"] .cta-band p {
    color: #ffe1f7;
}

html[data-theme="creative"] .brand__mark,
html[data-theme="creative"] .admin-brand img,
html[data-theme="creative"] .auth-brand img {
    filter: drop-shadow(0 0 12px rgba(255, 78, 205, .4));
}

html[data-theme="creative"] .btn--accent {
    --btn-bg: linear-gradient(120deg, #ff4ecd, #8b5cf6 55%, #22d3ee);
    --btn-border: transparent;
    --btn-color: #fff;
    box-shadow: 0 10px 30px rgba(255, 78, 205, .3);
}

html[data-theme="creative"] .btn--accent:hover {
    --btn-bg: linear-gradient(120deg, #ff6ad6, #9d75ff 55%, #5ce1ff);
    box-shadow: 0 14px 38px rgba(255, 78, 205, .42);
}

html[data-theme="creative"] .eyebrow {
    color: #ffb3ec;
}

html[data-theme="creative"] .section--dark {
    background: linear-gradient(180deg, #08050f, #050310);
}

html[data-theme="creative"] .site-footer {
    background: linear-gradient(180deg, #08050f, #050310);
    border-top: 1px solid rgba(255, 78, 205, .18);
}

html[data-theme="creative"] :is(.service-card, .feature, .project-card, .post-card, .step,
    .team-card, .form-card, .stat-card, .admin-panel, .review-card, .message-card,
    .table-wrap, .quote--light) {
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0));
    border-color: rgba(124, 58, 237, .3);
}

html[data-theme="creative"] :is(.service-card, .feature, .project-card, .post-card,
    .step, .stat-card, .review-card, .message-card):hover {
    border-color: rgba(255, 78, 205, .5);
    box-shadow: 0 18px 50px rgba(255, 78, 205, .14);
}

html[data-theme="creative"] .footer-heading,
html[data-theme="creative"] .footer-brand .brand__name {
    color: #f3e9ff;
}

html[data-theme="creative"] .quote {
    background: rgba(124, 58, 237, .1);
    border-color: rgba(124, 58, 237, .28);
}

html[data-theme="creative"] .admin-sidebar {
    background: linear-gradient(180deg, #0b0818, #150c2e 60%, #0b1026);
}

html[data-theme="creative"] .admin-nav__link.active {
    background: rgba(255, 78, 205, .16);
    color: #ffb3ec;
}

html[data-theme="creative"] .admin-topbar {
    background: rgba(13, 10, 32, .92);
    border-bottom-color: rgba(255, 78, 205, .18);
    backdrop-filter: blur(12px);
}

html[data-theme="creative"] .auth-page {
    background:
        radial-gradient(900px 520px at 15% 0%, rgba(124, 58, 237, .42), transparent 55%),
        radial-gradient(720px 520px at 92% 100%, rgba(255, 78, 205, .26), transparent 60%),
        linear-gradient(160deg, #0b0818, #140b2d 60%, #0a1a2c);
}

html[data-theme="creative"] .auth-card {
    background: linear-gradient(180deg, rgba(28, 18, 58, .97), rgba(15, 10, 32, .99));
    border: 1px solid rgba(255, 78, 205, .26);
    box-shadow: 0 30px 90px rgba(124, 58, 237, .35);
}

/* --- Общие правила для тёмных тем --------------------------------------- */
html[data-theme="dark"] .admin-topbar {
    background: var(--paper);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .detail-hero__icon,
:is(html[data-theme="dark"], html[data-theme="creative"]) .stat-card,
:is(html[data-theme="dark"], html[data-theme="creative"]) .admin-panel,
:is(html[data-theme="dark"], html[data-theme="creative"]) .table-wrap,
:is(html[data-theme="dark"], html[data-theme="creative"]) .review-card,
:is(html[data-theme="dark"], html[data-theme="creative"]) .message-card {
    background: var(--paper);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .input,
:is(html[data-theme="dark"], html[data-theme="creative"]) .redactor-source {
    background: var(--paper-alt);
    color: var(--text);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .input::placeholder {
    color: var(--muted-light);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .input:focus {
    box-shadow: 0 0 0 3px var(--accent-soft);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .btn--outline {
    --btn-border: var(--line);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .btn--outline:hover {
    --btn-border: var(--text);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .btn--ghost:hover {
    --btn-border: var(--line);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .prose {
    color: var(--text-soft);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .prose a {
    border-bottom-color: var(--accent-soft);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .review-card p,
:is(html[data-theme="dark"], html[data-theme="creative"]) .message-card__body {
    color: var(--text-soft);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .service-card:hover,
:is(html[data-theme="dark"], html[data-theme="creative"]) .post-card:hover,
:is(html[data-theme="dark"], html[data-theme="creative"]) .service-row:hover {
    border-color: var(--muted-light);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .filter:hover,
:is(html[data-theme="dark"], html[data-theme="creative"]) .pagination__link:hover {
    border-color: var(--muted-light);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .star {
    color: var(--line);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .footer-bottom,
:is(html[data-theme="dark"], html[data-theme="creative"]) .admin-brand em {
    color: var(--muted-light);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .alert--success {
    border-color: rgba(74, 222, 128, .35);
    background: rgba(22, 163, 74, .14);
    color: #bbf7d0;
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .alert--error {
    border-color: rgba(248, 113, 113, .35);
    background: rgba(220, 38, 38, .14);
    color: #fecaca;
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .badge--ok {
    background: rgba(34, 197, 94, .16);
    color: #86efac;
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .stat-card--attention {
    border-color: rgba(251, 191, 36, .4);
    background: rgba(251, 191, 36, .1);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .review-card--pending {
    border-color: rgba(251, 191, 36, .45);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .map-frame {
    filter: grayscale(.2) invert(.9) hue-rotate(180deg) contrast(.9);
}

:is(html[data-theme="dark"], html[data-theme="creative"]) .lang-switch__item.is-active,
:is(html[data-theme="dark"], html[data-theme="creative"]) .filter.is-active,
:is(html[data-theme="dark"], html[data-theme="creative"]) .pagination__link.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #04211d;
}

html[data-theme="creative"] .lang-switch__item.is-active,
html[data-theme="creative"] .filter.is-active,
html[data-theme="creative"] .pagination__link.is-active {
    background: linear-gradient(120deg, #ff4ecd, #7c3aed);
    border-color: transparent;
    color: #fff;
}

@media (max-width: 900px) {
    :is(html[data-theme="dark"], html[data-theme="creative"]) .site-nav {
        background: var(--paper);
        border-bottom-color: var(--line);
    }
}

@media (max-width: 640px) {
    .theme-picker {
        gap: 0;
    }

    .theme-picker__label {
        display: none;
    }
}
