/*
Theme Name: DeadTools Showcase
Description: Публичная витрина продуктов DeadTools.
Version: 1.5.0
Text Domain: deadtools-showcase
*/

:root {
    --dt-bg: #111411;
    --dt-panel: #191e18;
    --dt-fg: #f6f7f0;
    --dt-muted: #b5beb0;
    --dt-lime: #dbfb81;
    --dt-line: #333d30;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--dt-bg); color: var(--dt-fg); font: 16px/1.55 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible { outline: 2px solid var(--dt-lime); outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.dt-wrap { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.dt-header, .dt-footer { border-bottom: 1px solid var(--dt-line); }
.dt-header-inner, .dt-footer-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.dt-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 780; letter-spacing: -.05em; text-decoration: none; }
.dt-mark { width: 34px; height: 34px; display: flex; justify-content: center; align-items: center; gap: 3px; background: var(--dt-lime); border-radius: 9px; }
.dt-mark span { width: 4px; height: 15px; background: var(--dt-bg); border-radius: 2px; transform: skew(-20deg); }
.dt-mark span:nth-child(2) { height: 21px; }
.dt-header nav { display: flex; gap: clamp(14px, 4vw, 36px); }
.dt-header nav a, .dt-footer-inner > a:last-child { font-size: 14px; color: var(--dt-muted); text-decoration: none; }
.dt-header nav a:hover, .dt-footer-inner > a:last-child:hover { color: var(--dt-fg); }
.dt-hero { border-bottom: 1px solid var(--dt-line); background: radial-gradient(ellipse at 76% 36%, #253323 0, transparent 51%); }
.dt-hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; padding-block: clamp(62px, 9vw, 126px); }
.dt-hero h1 { font-size: clamp(40px, 5.8vw, 78px); line-height: .99; letter-spacing: -.064em; font-weight: 760; }
.dt-hero h1 em { color: var(--dt-lime); font-style: normal; }
.dt-hero p { max-width: 490px; margin-top: 26px; font-size: clamp(16px, 1.65vw, 20px); color: var(--dt-muted); }
.dt-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.dt-button { width: fit-content; display: inline-flex; align-items: center; gap: 16px; padding: 12px 18px; border: 1px solid transparent; border-radius: 9px; background: var(--dt-lime); color: #191f14; font-weight: 720; text-decoration: none; }
.dt-button:hover { background: #e6ffa6; }
.dt-button-outline { border-color: #4b5746; background: transparent; color: var(--dt-fg); }
.dt-button-outline:hover { background: #273124; }
.dt-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 26px; position: relative; isolation: isolate; padding: 24px; border: 1px solid #3a4934; border-radius: 22px; background: radial-gradient(circle, #60724a 1px, transparent 1.5px) 0 0 / 18px 18px, #171e16; }
.dt-map::before { content: ''; position: absolute; inset: 48px 24%; border: 1px solid #607348; border-radius: 10px; z-index: -1; }
.dt-map-core { grid-column: 1 / -1; grid-row: 2; justify-self: center; position: relative; display: grid; place-items: center; width: 82px; height: 82px; background: #232f1e; border: 1px solid #7c9650; border-radius: 22px; box-shadow: 0 0 52px #9bce4438; }
.dt-map-core::before, .dt-map-core::after { content: ''; position: absolute; top: 50%; width: 25%; height: 1px; background: #7c9650; }
.dt-map-core::before { right: 100%; }
.dt-map-core::after { left: 100%; }
.dt-map-core .dt-mark { width: 46px; height: 46px; }
.dt-node { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #46543d; border-radius: 10px; background: #20291d; font-size: 13px; font-weight: 680; }
.dt-node .dashicons { flex: none; color: #afc39b; }
.dt-node-live { border-color: #8fa765; color: var(--dt-lime); }
.dt-products { padding-block: clamp(58px, 8vw, 96px); }
.dt-products h2, .dt-contact h2, .dt-content h1 { font-size: clamp(31px, 4vw, 54px); line-height: 1.05; letter-spacing: -.05em; }
.dt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }
.dt-card { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--dt-line); border-radius: 18px; background: var(--dt-panel); scroll-margin-top: 24px; }
.dt-card-live { border-color: #627747; background: linear-gradient(135deg, #252f1e, var(--dt-panel) 72%); }
.dt-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.dt-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #2b3627; color: #c6d5bc; }
.dt-card-live .dt-card-icon { background: var(--dt-lime); color: #20291d; }
.dt-state { font-size: 13px; color: var(--dt-muted); }
.dt-card-live .dt-state { color: var(--dt-lime); }
.dt-card h3 { font-size: clamp(25px, 3vw, 36px); line-height: 1.12; letter-spacing: -.04em; }
.dt-card h3 a { text-decoration: none; }
.dt-card h3 a:hover { text-decoration: underline; }
.dt-card-lead { margin-top: 12px; font-weight: 680; }
.dt-card-copy { margin-top: 8px; margin-bottom: 14px; color: var(--dt-muted); }
.dt-card-link { display: inline-block; align-self: flex-start; margin-top: auto; padding-top: 6px; color: var(--dt-lime); font-weight: 660; }
.dt-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: clamp(58px, 8vw, 96px); padding: clamp(24px, 5vw, 56px); border: 1px solid #526447; border-radius: 18px; background: #202a1c; }
.dt-contact p { margin-top: 12px; color: var(--dt-muted); }
.dt-contact .dt-button { flex: none; }
.dt-footer { border-top: 1px solid var(--dt-line); border-bottom: 0; }
.dt-content { min-height: 56vh; padding-block: 70px; }
.dt-content a { color: var(--dt-lime); }
.dt-content h1 + a { display: inline-block; margin-top: 20px; }
.dt-product-wrap { padding-block: clamp(32px, 5vw, 62px) clamp(56px, 8vw, 112px); }
.dt-back { display: inline-flex; align-items: center; gap: 9px; color: var(--dt-muted); font-size: 14px; }
.dt-product-intro { display: grid; align-items: center; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 110px); margin-top: clamp(36px, 6vw, 75px); }
.dt-product-hero h1 { font-size: clamp(37px, 5.3vw, 74px); text-wrap: balance; }
.dt-hero .dt-product-label { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin: 0 0 19px; font-size: 15px; font-weight: 670; color: var(--dt-fg); }
.dt-product-label span { padding: 3px 9px; border: 1px solid var(--dt-line); border-radius: 999px; font-size: 12px; color: var(--dt-muted); }
.dt-product-label .dt-label-live { color: var(--dt-lime); border-color: #526447; }
.dt-hero .dt-product-lead { max-width: 600px; }
.dt-product-flow { list-style: none; display: grid; gap: 21px; margin: 0; padding: clamp(20px, 4vw, 36px); border: 1px solid #3a4934; border-radius: 20px; background: radial-gradient(circle, #60724a 1px, transparent 1.5px) 0 0 / 18px 18px, #171e16; }
.dt-product-flow li { position: relative; padding: 16px; border: 1px solid #526447; border-radius: 9px; background: #232d20; font-weight: 660; }
.dt-product-flow li:not(:last-child)::after { content: ''; position: absolute; left: 25px; top: 100%; width: 1px; height: 23px; background: #8fa765; }
.dt-product-flow li:last-child { color: var(--dt-lime); }
.dt-product-content { max-width: 820px; padding-block: clamp(45px, 7vw, 90px); scroll-margin-top: 16px; }
.dt-product-content h2 { font-size: clamp(26px, 3vw, 39px); line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
.dt-product-content h2:not(:first-child) { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--dt-line); }
.dt-product-content p { margin-top: 13px; color: var(--dt-muted); line-height: 1.7; }
.dt-product-content a { color: var(--dt-lime); }
.dt-skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dt-skip:focus { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 8px; background: var(--dt-bg); }

@media (max-width: 860px) {
    .dt-hero-inner { grid-template-columns: 1fr; }
    .dt-map { width: min(100%, 500px); }
    .dt-product-intro { grid-template-columns: minmax(0, 1fr); }
    .dt-product-flow { width: min(100%, 500px); }
}

@media (max-width: 600px) {
    .dt-wrap { width: calc(100% - 32px); }
    .dt-header-inner, .dt-footer-inner { min-height: 64px; }
    .dt-brand { font-size: 21px; gap: 7px; }
    .dt-brand .dt-mark { width: 28px; height: 28px; }
    .dt-map { padding: 14px; gap: 24px 14px; }
    .dt-node { padding: 8px; gap: 5px; font-size: 12px; }
    .dt-grid { grid-template-columns: 1fr; }
    .dt-contact { flex-direction: column; align-items: flex-start; }
}
