:root {
    --bg: #081131;
    --panel: #0d1a43;
    --panel-soft: #111f4d;
    --line: rgba(178, 205, 255, 0.16);
    --text: #f4f7ff;
    --muted: #9fb0d7;
    --accent: #1D7AFC;
    --accent-2: #53b3ff;
    --warn: #f7c873;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

@font-face {
    font-family: "Gilroy";
    src: url("../fonts/Gilroy-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("../fonts/Gilroy-Semibold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Gilroy";
    src: url("../fonts/Gilroy-Bold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(circle at 80% 5%, rgba(29, 122, 252, 0.18), transparent 28rem),
        radial-gradient(circle at 12% 22%, rgba(122, 167, 255, 0.18), transparent 24rem),
        var(--bg);
    color: var(--text);
    font-family: "Gilroy", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.brand,
.nav a,
.button,
.case-card,
.contact-method {
    color: inherit;
    text-decoration: none;
}

input,
textarea,
button {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    padding: 18px 0;
    backdrop-filter: blur(16px);
    background: rgba(8, 17, 49, 0.22);
    font-size: 15px;
}

.site-header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    letter-spacing: 0;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(29, 122, 252, 0.62);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(29, 122, 252, 0.95), rgba(83, 179, 255, 0.85));
    box-shadow: 0 0 32px rgba(29, 122, 252, 0.22);
}

.brand-accent {
    color: var(--text);
}

.brand-logo {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #c5ccda;
    font-size: 15px;
    font-weight: 600;
}

.nav a:hover,
.text-link:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(178, 205, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle span + span {
    margin-top: 5px;
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 88px 0;
}

.hero {
    width: 100%;
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding-top: 134px;
    margin-top: -74px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(8, 18, 51, 0) 68%, #081233 100%),
        linear-gradient(90deg, rgba(8, 17, 49, 0.98) 0%, rgba(8, 17, 49, 0.76) 48%, rgba(8, 17, 49, 0.28) 100%),
        url("../img/bg1.png") center / cover no-repeat;
}

.not-found-page {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 100vh;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
    text-align: center;
}

.not-found-page img {
    display: block;
    width: min(350px, 100%);
    height: auto;
    margin-bottom: 34px;
}

.not-found-page h1 {
    max-width: none;
    margin-bottom: 30px;
    font-size: clamp(32px, 5vw, 45px);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -18% -12% 0;
    z-index: -2;
    background: radial-gradient(circle at 22% 46%, rgba(0, 104, 255, 0.22), transparent 28rem);
    filter: blur(18px);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), transparent 82%);
}

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

.hero-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 1060px;
	margin-top: 2em;
}

.eyebrow {
    margin: 0 0 16px;
    color: #f7b70b;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

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

h1 {
    max-width: 820px;
    margin-bottom: 24px;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-title {
    min-height: 2.9em;
}

.hero-line {
    display: block;
    min-height: 1em;
}

.hero-word {
    color: #0068ff;
}

.hero-tail {
    display: block;
}

.crm-badge {
    display: inline-block;
    margin-left: 0.14em;
    padding: 0.02em 0.2em 0.07em;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #0068ff;
    color: #ffffff;
    font-size: 0.78em;
    line-height: 1.06;
    box-shadow: 0 18px 54px rgba(0, 104, 255, 0.32);
    white-space: nowrap;
    transform: translateY(-0.04em);
}

.typing-caret {
    display: inline-block;
    width: 0.08em;
    height: 0.82em;
    margin: 0 0.1em 0 0.04em;
    transform: translateY(0.08em);
    background: #0068ff;
    animation: blink 850ms steps(1) infinite;
}

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

h2 {
    max-width: 820px;
    margin-bottom: 20px;
    font-size: clamp(30px, 4.4vw, 50px);
    line-height: 1.04;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 12px;
    font-size: 30px;
    line-height: 1.16;
}

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

.hero-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 52px;
}

.hero-actions {
    margin-top: 72px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
}

.button.primary {
    background: var(--accent);
    color: #f7fbff;
    box-shadow: 0 18px 48px rgba(29, 122, 252, 0.3);
}

.button.success {
    background: #22c55e;
    color: #ffffff;
    box-shadow: 0 18px 48px rgba(34, 197, 94, 0.22);
}

.button.success:hover {
    background: #16a34a;
}

.button.ghost {
    border-color: #0068ff;
    background: transparent;
    color: var(--text);
}

.button.ghost:hover {
    background: var(--accent);
    border-color: #0068ff;
    color: #ffffff;
}

.button.hero-cases-link {
    border-color: #7f8c8dd1;
}

.button.hero-cases-link:hover {
    border-color: #0068ff;
}

.button.hero-outline {
    border-color: #0068ff;
    background: transparent;
    color: var(--text);
}

.button.hero-outline:hover {
    border-color: #0068ff;
    background: var(--accent);
    color: #ffffff;
}

.admin-box,
.case-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    box-shadow: var(--shadow);
}

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

.stats-column {
    display: grid;
    gap: 0;
}

.company-facts {
    align-self: stretch;
    padding-top: 41px;
}

.company-left {
    display: grid;
    gap: 22px;
}

.stat {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 0.36fr) 1fr;
    gap: clamp(36px, 5vw, 74px);
    align-items: center;
    min-height: 128px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
    transition: color 220ms ease;
}

.stat::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.stat:hover::before {
    transform: scaleX(1);
}

.stat strong {
    display: block;
    margin-bottom: 0;
    color: var(--text);
    font-size: clamp(58px, 7vw, 96px);
    line-height: 1;
    transition: color 220ms ease;
}

.stat span {
    max-width: 360px;
    color: #d8e2fa;
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.08;
    transition: color 220ms ease;
}

.stat:hover strong,
.stat:hover span {
    color: var(--accent);
}

.certificate-photo {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
}

.certificate-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-head {
    margin-bottom: 32px;
}

.process .section-head {
    margin-bottom: 58px;
}

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

.service-tabs {
    display: grid;
    overflow: visible;
    border-radius: 8px;
}

.service-tab-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    align-items: end;
}

.service-tab {
    position: relative;
    min-height: 104px;
    padding: 20px;
    border: 0;
    border-top: 2px solid var(--line);
    border-left: 2px solid var(--line);
    border-right: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    transition: background 180ms ease, color 180ms ease;
}

.service-tab::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.service-tab,
.service-tab::before {
    border-top-left-radius: 8px;
    border-top-right-radius: 0;
}

.service-tab:hover::before,
.service-tab.is-active::before {
    transform: scaleX(1);
}

.service-tab:nth-child(1) {
    min-height: 104px;
}

.service-tab:nth-child(2) {
    min-height: 134px;
}

.service-tab:nth-child(3) {
    min-height: 164px;
}

.service-tab:nth-child(4) {
    min-height: 194px;
}

.service-tab:last-child {
    border-right: 2px solid var(--line);
}

.service-tab span {
    display: block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 14px;
}

.service-tab .service-tab-text {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.service-tab.is-active,
.service-tab:hover {
    background: rgba(29, 122, 252, 0.16);
}

.service-panels {
    margin-top: -2px;
    border: 2px solid var(--line);
    border-radius: 0 0 8px 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    box-shadow: var(--shadow);
}

.service-panel {
    display: none;
    padding: 34px;
    animation: processFade 220ms ease;
}

.service-panel.is-active {
    display: block;
}

.service-panel h3 {
    font-size: clamp(28px, 3vw, 42px);
}

.service-panel p {
    max-width: none;
    color: #d8e2fa;
    font-size: 20px;
}

.service-panel ol,
.service-panel ul,
.service-panel li {
    color: #d8e2fa;
    font-size: 20px;
}

.process-board {
    display: grid;
    grid-template-columns: minmax(385px, 385px) minmax(0, 1fr);
    gap: clamp(42px, 8vw, 116px);
    align-items: start;
}

.process-tabs {
    display: grid;
}

.process-tab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 92px;
    width: 100%;
    padding: 0 26px;
    border: 0;
    border-bottom: 1px dashed rgba(244, 247, 255, 0.28);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-size: 22px;
    line-height: 1.15;
    transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
}

.process-tab span {
    max-width: 420px;
}

.process-tab b {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 36px;
    font-weight: 400;
    line-height: 1;
}

.process-tab.is-active {
    min-height: 118px;
    border-bottom-color: transparent;
    border-radius: 0;
    background: var(--accent);
    padding-left: 28px;
    padding-right: 28px;
}

.process-content {
    position: relative;
    min-height: 460px;
}

.process-panel {
    display: none;
    animation: processFade 220ms ease;
}

.process-panel.is-active {
    display: block;
}

.process-panel p {
    margin-bottom: 26px;
    color: #f4f7ff;
    font-size: 19px;
    line-height: 1.48;
}

.process-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 26px 0;
    border-radius: 8px;
}

.problem-tabs .section-head {
    margin-bottom: 46px;
}

.problem-tab-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 54px;
}

.problem-tab {
    position: relative;
    min-height: 112px;
    padding: 22px 24px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #c5ccda;
    cursor: pointer;
    text-align: left;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.problem-tab::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.problem-tab.is-active {
    background: rgba(255, 255, 255, 0.1);
}

.problem-tab:hover::before,
.problem-tab.is-active::before {
    transform: scaleX(1);
}

.problem-panels {
    min-height: 420px;
}

.problem-panel {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    animation: processFade 220ms ease;
}

.problem-panel.is-active {
    display: grid;
}

.problem-extra {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.problem-panel.is-expanded .problem-extra {
    display: grid;
}

.problem-more {
    grid-column: 1 / -1;
    width: fit-content;
    margin: 6px auto 0;
    padding: 15px 20px;
}

.problem-panel.is-expanded .problem-more {
    display: none;
}

.problem-item {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
}

.problem-item h3,
.problem-item h4 {
    margin: 0 0 10px;
    color: #ff3d3d;
    font-size: 20px;
    line-height: 1.15;
}

.problem-item h4 {
    margin-top: 22px;
    color: #f7b70b;
}

.problem-item p {
    margin: 0 0 16px;
    color: #f4f7ff;
    font-size: 17px;
    line-height: 1.55;
}

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

.problem-item li {
    color: #f4f7ff;
    font-size: 17px;
    line-height: 1.55;
}

@keyframes processFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

.case-card {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    border-width: 2px;
    transition: transform 180ms ease, border-color 180ms ease;
}

.case-card:hover {
    transform: translateY(-6px);
    border-color: rgba(29, 122, 252, 0.52);
}

.case-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease, filter 260ms ease;
}

.case-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.case-card-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(8, 17, 49, 0.9), rgba(8, 17, 49, 0.64) 18%, rgba(8, 17, 49, 0) 42%),
        linear-gradient(0deg, rgba(8, 17, 49, 0.94), rgba(8, 17, 49, 0.7) 42%, rgba(8, 17, 49, 0) 70%);
    background-size: 100% 100%, 100% 74%;
    background-position: top, bottom;
    background-repeat: no-repeat;
    transition: background-size 240ms ease, background 240ms ease;
}

.case-card:hover .case-card-shade {
    background:
        linear-gradient(180deg, rgba(8, 17, 49, 0.9), rgba(8, 17, 49, 0.64) 18%, rgba(8, 17, 49, 0) 42%),
        linear-gradient(0deg, rgba(8, 17, 49, 0.96), rgba(8, 17, 49, 0.8) 48%, rgba(8, 17, 49, 0) 88%);
    background-size: 100% 100%, 100% 94%;
    background-position: top, bottom;
    background-repeat: no-repeat;
}

.case-card-content {
    display: grid;
    grid-template-rows: 1fr auto auto;
    align-content: stretch;
    gap: 0;
    min-height: 100%;
    padding: 58px 22px 22px;
    min-width: 0;
}

.case-card small {
    position: absolute;
    top: 12px;
    right: 18px;
    display: block;
    max-width: calc(100% - 36px);
    color: #f7b70b;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    text-align: right;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}

.case-card strong {
    align-self: end;
    color: var(--text);
    font-size: 26px;
    line-height: 1.04;
    overflow-wrap: break-word;
}

.case-card em {
    display: block;
    max-width: calc(100% - 132px);
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    color: #d8e2fa;
    font-size: 15px;
    font-style: normal;
    line-height: 1.35;
    opacity: 0;
    transition: max-height 220ms ease, margin 220ms ease, opacity 220ms ease;
}

.case-card b {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: fit-content;
    max-height: none;
    margin-top: 0;
    padding: 0 14px;
    border: 1px solid #0068ff;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    line-height: 38px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease;
}

.case-card:hover em {
    max-height: 70px;
    margin-top: 14px;
    opacity: 1;
}

.case-card:hover b {
    opacity: 1;
    transform: translateY(0);
}

.case-card b:hover {
    background: var(--accent);
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: center;
}

.partner-logo {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 92px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #eef2f7;
    overflow: hidden;
}

.partner-logo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #d0d0d0 0%, #ffffff 42%, #ffffff 58%, #d0d0d0 100%);
    opacity: 0;
    transition: opacity 180ms ease;
}

.partner-logo:hover::before {
    opacity: 1;
}

.partner-logo img {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 100%;
    max-height: 58px;
    object-fit: contain;
}

.contact-panel {
    padding-top: 104px;
}

.contact-head {
    max-width: 860px;
    margin: 0 auto 68px;
    text-align: center;
}

.contact-head h2 {
    max-width: none;
    margin-bottom: 18px;
    font-size: clamp(42px, 6vw, 50px);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 2px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.12);
}

.contact-method {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 280px;
    padding: 42px 28px;
    text-align: center;
    transition: background 180ms ease, color 180ms ease;
}

.contact-method::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
}

.contact-method:hover::before {
    transform: scaleX(1);
}

.contact-method + .contact-method {
    border-left: 2px solid var(--line);
}

.contact-method svg {
    width: 66px;
    height: 66px;
    margin-bottom: 26px;
    color: #0068ff;
}

.contact-method:nth-child(2) svg {
    color: #b24cff;
}

.contact-method strong {
    margin-bottom: 10px;
    color: var(--text);
    font-size: 28px;
    line-height: 1.15;
}

.contact-method span {
    color: #aeb7ca;
    font-size: 22px;
}

.contact-copy {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    color: #aeb7ca;
    cursor: pointer;
    font: inherit;
    font-size: 22px;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.contact-copy::after {
    content: "Скопировать";
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(8, 17, 49, 0.96);
    color: #f4f7ff;
    font-size: 13px;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-6px, -50%);
    transition: opacity 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.contact-copy:hover::after,
.contact-copy:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
}

.contact-copy.is-copied::after {
    content: "✓ Скопировано";
    opacity: 1;
    transform: translate(0, -50%);
}

.contact-copy:hover {
    color: var(--accent);
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.04);
}

label {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.admin-preview-image {
    display: block;
    width: min(320px, 100%);
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-social-preview-image {
    width: min(320px, 100%);
    aspect-ratio: 85 / 38;
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(6, 12, 34, 0.72);
    color: var(--text);
    padding: 14px 15px;
    outline: none;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus {
    border-color: rgba(29, 122, 252, 0.7);
}

.notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(29, 122, 252, 0.45);
    border-radius: 8px;
    background: rgba(29, 122, 252, 0.12);
    color: var(--text);
}

.text-link {
    color: var(--accent);
    font-weight: 750;
}

.case-hero-full {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 100vh;
    margin-top: -84px;
    padding-top: 134px;
    overflow: hidden;
    background:
        -webkit-linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
        var(--case-bg) center / cover no-repeat;
}

.case-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    transform: translateY(42px);
}

.case-hero-inner h1 {
    max-width: 900px;
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(46px, 7vw, 72px);
    line-height: 0.98;
}

.case-hero-inner p:not(.eyebrow) {
    max-width: 760px;
    color: #fff;
    font-size: clamp(20px, 2vw, 24px);
}

.case-scroll {
    position: absolute;
    left: 50%;
    bottom: 18px;
    width: 34px;
    height: 54px;
    border: 2px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    transform: translateX(-50%);
}

.case-scroll::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 10px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: translateX(-50%) rotate(45deg);
    animation: caseScroll 1.25s ease-in-out infinite;
}

@keyframes caseScroll {
    0% {
        opacity: 0;
        top: 9px;
    }

    35% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        top: 29px;
    }
}

.article {
    max-width: 900px;
    padding-top: 18px;
}

.article h2,
.article h3,
.article h4 {
    margin: 36px 0 14px;
    color: #f4f7ff;
    line-height: 1.15;
}

.article h2 {
    margin-top: 60px;
}

.article h4 {
    font-size: 19px;
}

.article p,
.article ul,
.article ol {
    margin-bottom: 18px;
}

.article p + h2,
.article ul + h2,
.article ol + h2 {
    margin-top: 60px;
}

.article p + h3,
.article p + h4,
.article ul + h3,
.article ul + h4,
.article ol + h3,
.article ol + h4 {
    margin-top: 24px;
}

.article p,
.article li {
    color: #f4f7ff;
    font-size: 17px;
}

.article .ql-size-14px,
.ql-editor .ql-size-14px,
.article .ql-size-small,
.ql-editor .ql-size-small {
    font-size: 14px !important;
}

.article .ql-size-17px,
.ql-editor .ql-size-17px {
    font-size: 17px !important;
}

.article .ql-size-22px,
.ql-editor .ql-size-22px,
.article .ql-size-large,
.ql-editor .ql-size-large {
    font-size: 22px !important;
}

.article .ql-size-26px,
.ql-editor .ql-size-26px {
    font-size: 26px !important;
}

.article .ql-size-30px,
.ql-editor .ql-size-30px,
.article .ql-size-huge,
.ql-editor .ql-size-huge {
    font-size: 30px !important;
}

.article .ql-size-34px,
.ql-editor .ql-size-34px {
    font-size: 34px !important;
}

.article .ql-size-38px,
.ql-editor .ql-size-38px {
    font-size: 38px !important;
}

.article ul,
.ql-editor ul {
    list-style-type: square;
}

.article blockquote {
    margin: 32px 0;
    padding: 24px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, 0.05);
}

.article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px 0;
    border-radius: 8px;
    cursor: zoom-in;
}

.article hr,
.ql-editor hr {
    height: 1px;
    margin: 30px 0 20px;
    border: 0;
    background: rgba(244, 247, 255, 0.28);
}

.is-image-modal-open {
    overflow: hidden;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 46px;
    background: rgba(0, 0, 0, 0.84);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.image-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.image-modal-img {
    display: block;
    max-width: min(1180px, 100%);
    max-height: calc(100vh - 92px);
    border-radius: 8px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.52);
    object-fit: contain;
}

.image-modal-close {
    position: fixed;
    top: 18px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    background: rgba(8, 17, 49, 0.72);
    color: #ffffff;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
}

.image-modal-close:hover,
.image-modal-close:focus-visible {
    border-color: var(--accent);
    background: var(--accent);
    outline: none;
}

.case-results {
    margin-top: 72px;
}

.case-results h2 {
    margin-top: 0;
    margin-bottom: 36px;
}

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

.case-results-grid div {
    color: #f4f7ff;
    font-size: 17px;
    line-height: 1.6;
}

.case-results-grid p,
.case-results-grid ul,
.case-results-grid ol {
    margin-bottom: 18px;
}

.case-results-grid > div:nth-child(2) p {
    margin-bottom: 0;
}

.case-contact-panel {
    margin-top: 0;
    padding: 20px 0;
}

.case-contact-panel .contact-head p {
    font-size: 24px;
}

.case-contact-panel .contact-method {
    min-height: 220px;
    padding: 0 28px;
}

.case-related h2 {
    font-size: clamp(30px, 4.4vw, 36px);
}

.admin-main {
    width: min(1020px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0 80px;
}

.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.admin-box {
    padding: 26px;
}

.admin-box + .admin-box {
    margin-top: 28px;
}

.admin-box .section-head.inline {
    align-items: flex-start;
}

.admin-box .section-head.inline .button.primary {
    margin-left: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.admin-table .admin-actions {
    text-align: right;
}

.admin-table .admin-actions .text-link {
    color: #f7b70b;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.admin-case-link {
    color: var(--text);
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.admin-fieldset {
    display: grid;
    gap: 16px;
    margin: 8px 0;
    padding: 18px;
    border: 2px solid var(--line);
    border-radius: 8px;
}

.admin-fieldset legend {
    padding: 0 8px;
    color: #f7b70b;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-edit-title {
    margin: 0 0 24px;
    color: var(--text);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
}

.admin-table th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.admin-form {
    display: grid;
    gap: 16px;
}

.admin-form-actions {
    position: sticky;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px -26px -26px;
    padding: 16px 26px;
    border-top: 1px solid var(--line);
    background: rgba(8, 17, 49, 0.92);
    backdrop-filter: blur(16px);
}

.admin-form label {
    margin-bottom: 0;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox input {
    width: auto;
}

.editor-shell {
    min-height: 360px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f8fb;
    color: #111827;
    overflow: visible;
}

.ql-toolbar.ql-snow {
    position: sticky;
    top: 12px;
    z-index: 30;
    border: 0;
    border-bottom: 1px solid #dde4ef;
    border-radius: 8px 8px 0 0;
    background: #ffffff;
}

.ql-container.ql-snow {
    min-height: 340px;
    border: 0;
    border-radius: 0 0 8px 8px;
    background: #ffffff;
    font-family: "Gilroy", Arial, sans-serif;
}

.ql-editor {
    min-height: 340px;
    color: #111827;
    font-size: 17px;
    line-height: 1.6;
}

.ql-editor p,
.ql-editor li,
.ql-editor blockquote,
.ql-editor h2,
.ql-editor h3,
.ql-editor h4,
.ql-editor a {
    color: #111827;
}

.ql-editor p {
    margin-bottom: 1em;
}

.ql-editor ol,
.ql-editor ul {
    margin-bottom: 1em;
}

.ql-editor h2 {
    margin-top: 2em;
    margin-bottom: 0.65em;
}

.ql-editor h2:first-child {
    margin-top: 0;
}

.ql-editor h3 {
    margin-bottom: 0.75em;
}

.ql-editor blockquote {
    margin-bottom: 1em;
}

.ql-editor hr {
    background: #cfd7e6;
}

.ql-editor img {
    max-width: 100%;
}

.ql-toolbar .ql-hr::before {
    content: "HR";
    font-size: 12px;
    font-weight: 700;
}

.ql-toolbar .ql-colorHex::before {
    content: "HEX";
    font-size: 11px;
    font-weight: 700;
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
    content: "H2";
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
    content: "H3";
}

.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
    content: "H4";
}

.ql-snow .ql-picker.ql-header .ql-picker-label:not([data-value])::before,
.ql-snow .ql-picker.ql-header .ql-picker-item:not([data-value])::before {
    content: "Текст";
}

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="14px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="14px"]::before {
    content: "14px";
}

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="17px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="17px"]::before {
    content: "17px";
}

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="22px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="22px"]::before {
    content: "22px";
}

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="26px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="26px"]::before {
    content: "26px";
}

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="30px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="30px"]::before {
    content: "30px";
}

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="34px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="34px"]::before {
    content: "34px";
}

.ql-snow .ql-picker.ql-size .ql-picker-label[data-value="38px"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="38px"]::before {
    content: "38px";
}

.ql-snow .ql-picker-options {
    z-index: 60;
}

.error {
    color: #ffaaa5;
}

@media (max-width: 860px) {
    .section,
    .admin-main {
        width: min(100% - 24px, 1180px);
    }

    .section-head.inline,
    .admin-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-header {
        width: 100%;
        padding: 12px 0;
    }

    .site-header-inner {
        align-items: center;
        width: min(100% - 24px, 1180px);
    }

    .menu-toggle {
        display: grid;
        place-content: center;
        gap: 0;
    }

    .nav {
        position: absolute;
        top: calc(100% + 14px);
        right: 0;
        display: grid;
        min-width: 220px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(8, 17, 49, 0.96);
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .site-header.is-menu-open .nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav a {
        padding: 10px 8px;
    }

    .hero {
        width: 100%;
        min-height: auto;
        padding-top: 112px;
    }

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

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

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

    .problem-tab-list,
    .problem-panel {
        grid-template-columns: 1fr;
    }

    .problem-tab {
        min-height: 84px;
        padding-right: 58px;
    }

    .problem-tab:nth-child(n + 2)::after {
        content: "";
        position: absolute;
        right: 12px;
        top: 50%;
        width: 52px;
        height: 52px;
        background: url("../img/click_animations.gif") center / contain no-repeat;
        pointer-events: none;
        transform: translate(0, -50%);
    }

    .problem-tab.is-active::after {
        display: none;
    }

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

    .contact-method + .contact-method {
        border-top: 2px solid var(--line);
        border-left: 0;
    }

    .stats-grid,
    .cards-grid,
    .case-results-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 58px 0;
    }

    .process-content {
        min-height: auto;
    }

    .process-tab {
        min-height: 76px;
        padding: 0 18px;
    }

    .process-tab.is-active {
        min-height: 88px;
    }

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

    .image-modal {
        padding: 22px;
    }

    .image-modal-img {
        max-height: calc(100vh - 44px);
    }

    .image-modal-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }
}

@media (max-width: 560px) {
    .service-tab {
        min-height: 170px;
        padding: 16px 8px;
        text-align: center;
    }

    .service-tab span {
        margin-bottom: 0;
    }

    .service-tab > span:first-child {
        position: absolute;
        top: 14px;
        right: 8px;
    }

    .service-tab .service-tab-text {
        position: absolute;
        left: 50%;
        top: 58%;
        font-size: 18px;
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center;
        white-space: nowrap;
    }

    .service-tab:nth-child(1) .service-tab-text {
        top: 52%;
    }

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

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