/*
Theme Name: DeadTools Brand
Description: Витрина инструментов DeadTools и лендинг MCP.
Version: 1.3.3
Text Domain: deadtools-brand
*/

:root {
    --dt-black: #111014;
    --dt-red: #ff463a;
    --dt-red-deep: #c82925;
    --dt-white: #fbf8f5;
    --dt-paper: #f3efec;
    --dt-ink: #1d181c;
    --dt-muted: #c9bdc3;
    --dt-paper-muted: #554b51;
    --dt-line: #40363d;
    --dt-paper-line: #d9d0cb;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--dt-black); color: var(--dt-white); font: 1rem/1.6 system-ui, 'Segoe UI', sans-serif; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--dt-red); outline-offset: 4px; }
[id] { scroll-margin-top: 20px; }

.dt-wrap { width: min(1280px, calc(100% - 72px)); margin-inline: auto; }
.dt-section { padding-block: clamp(46px, 7vw, 93px); }
.dt-paper { background: var(--dt-paper); color: var(--dt-ink); }
.dt-paper :focus-visible { outline-color: var(--dt-red-deep); }
.dt-skip { position: absolute; z-index: 3; top: 8px; left: 8px; padding: 8px 15px; background: var(--dt-white); color: var(--dt-ink); }
.dt-skip:not(:focus) { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.dt-header, .dt-footer { background: #141216; }
.dt-header { border-bottom: 1px solid var(--dt-line); }
.dt-footer { border-top: 1px solid var(--dt-line); }
.dt-header-inner, .dt-footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.dt-brand { display: inline-flex; align-items: center; flex: none; gap: 10px; font-size: 1.45rem; font-weight: 770; letter-spacing: -.047em; text-decoration: none; }
.dt-brand img { display: block; height: auto; }
.dt-header nav, .dt-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 11px clamp(14px, 3vw, 39px); }
.dt-header nav a, .dt-footer nav a { color: var(--dt-muted); font-size: .9rem; text-decoration: none; font-weight: 570; }
.dt-header nav a:hover, .dt-footer nav a:hover { color: var(--dt-white); }
.dt-header nav .dt-nav-login { padding: 6px 14px; border: 1px solid #80727b; border-radius: 7px; color: var(--dt-white); }

h1 { font-size: clamp(2.5rem, 5.5vw, 5rem); font-weight: 770; line-height: 1.01; letter-spacing: -.065em; text-wrap: balance; }
h1 em { color: var(--dt-red); font-style: normal; }
h2 { font-size: clamp(1.95rem, 4.3vw, 3.75rem); font-weight: 760; line-height: 1.07; letter-spacing: -.057em; text-wrap: balance; }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.2; letter-spacing: -.034em; }
.dt-lead { max-width: 49ch; margin-top: 21px; color: var(--dt-muted); font-size: clamp(1rem, 1.7vw, 1.2rem); text-wrap: pretty; }
.dt-section-intro { max-width: 73ch; margin-top: 14px; color: var(--dt-muted); }
.dt-paper .dt-section-intro, .dt-paper p, .dt-paper figcaption { color: var(--dt-paper-muted); }
.dt-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.dt-button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 46px; padding: 10px 17px; border: 1px solid #c82925; border-radius: 8px; background: #d02d27; color: white; font-size: .95rem; font-weight: 710; text-decoration: none; line-height: 1.3; }
.dt-button:hover { background: #ae201d; }
.dt-button-outline { border-color: #71636d; background: transparent; color: var(--dt-white); }
.dt-button-outline:hover { background: #352930; }
.dt-icon { display: block; width: 24px; height: 24px; flex: none; }

.dt-home-hero { background: radial-gradient(ellipse at 79% 57%, #391b20, transparent 48%), #111014; }
.dt-home-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(23px, 5vw, 75px); align-items: center; padding-block: clamp(45px, 7vw, 112px); }
.dt-home-art { display: block; width: min(100%, 700px); height: auto; justify-self: center; }
@media (min-width: 1000px) {
    .dt-home-grid { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(20px, 3vw, 48px); padding-block: clamp(28px, 3.8vw, 56px); }
}
.dt-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 24px; }
.dt-product-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(16px, 2.2vw, 24px); border: 1px solid var(--dt-paper-line); border-radius: 13px; background: #fbf8f5; }
.dt-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
.dt-card-top span { font-size: .8rem; color: #5c5057; }
.dt-product-card h3 a { text-decoration: none; }
.dt-product-card h3 a:hover { text-decoration: underline; }
.dt-product-featured { background: #20191f; border-color: #493640; color: white; }
.dt-paper .dt-product-featured p, .dt-product-featured .dt-card-top span { color: #f0c6c3; }
.dt-product-card .dt-card-link { align-self: flex-start; margin-top: auto; padding-top: 4px; color: #a42622; font-weight: 680; font-size: .92rem; }
.dt-product-featured .dt-card-link { color: #ff9a8e; }
.dt-contact { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dt-contact p { margin-top: 12px; color: var(--dt-muted); }
.dt-contact .dt-button { flex: none; }

.dt-mcp-hero { border-bottom: 1px solid var(--dt-line); background: radial-gradient(ellipse at 74% 53%, #391d24, transparent 57%), #111014; }
.dt-mcp-grid { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); align-items: center; gap: clamp(21px, 4vw, 52px); padding-block: clamp(42px, 6.5vw, 90px); }
.dt-mcp-copy h1 { font-size: clamp(2.45rem, 4.7vw, 4.2rem); }
.dt-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 17px; color: #fff; font-size: .97rem; font-weight: 670; }
.dt-kicker .dt-icon { width: 21px; height: 21px; }
.dt-mcp-network { display: block; width: 100%; height: auto; pointer-events: none; }
.dt-workflow { display: block; width: min(100%, 1000px); margin-top: 24px; }
.dt-workflow img { display: block; width: 100%; height: auto; border-radius: 17px; box-shadow: 0 12px 34px #45242d23; }
.dt-scenario-nav { background: #1d171d; border-bottom: 1px solid var(--dt-line); }
.dt-scenario-nav .dt-wrap { display: flex; flex-wrap: wrap; gap: 8px clamp(16px, 4vw, 55px); padding-block: 13px; }
.dt-scenario-nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; color: var(--dt-white); font-size: .94rem; font-weight: 660; text-decoration: none; }
.dt-scenario-nav a:hover { color: #ff9a8e; }
.dt-scenario-nav .dt-icon { width: 20px; height: 20px; }
.dt-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 21px; margin-top: 26px; }
.dt-proof figure { position: relative; }
.dt-proof figure:not(:last-child)::after { content: ''; position: absolute; top: clamp(72px, 10vw, 149px); right: -15px; width: 9px; height: 9px; border-top: 2px solid var(--dt-red-deep); border-right: 2px solid var(--dt-red-deep); transform: rotate(45deg); }
.dt-proof img { display: block; width: 100%; height: auto; }
.dt-proof figcaption { margin-top: 9px; font-size: .92rem; }
.dt-store-rule { display: flex; align-items: flex-start; gap: 14px; margin-top: 26px; padding: 17px 20px; border: 1px solid #ded1cb; border-radius: 12px; background: #faf6f3; }
.dt-store-rule h3 { font-size: 1.1rem; }
.dt-store-rule p { margin-top: 4px; }
.dt-store-rule .dt-icon { margin-top: 2px; }

.dt-use-cases { background: radial-gradient(ellipse at 34% 30%, #2b1a21, transparent 60%), var(--dt-black); }
.dt-use-case { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 22px clamp(22px, 5.6vw, 75px); margin-top: clamp(27px, 4.5vw, 58px); padding-top: clamp(21px, 4vw, 48px); border-top: 1px solid var(--dt-line); }
.dt-use-case:nth-of-type(even) .dt-use-art { order: -1; }
.dt-use-audience { margin-bottom: 8px; color: #ff9a8e; font-size: .94rem; font-weight: 650; }
.dt-use-copy h3 { max-width: 26ch; font-size: clamp(1.55rem, 3vw, 2.56rem); line-height: 1.1; text-wrap: pretty; }
.dt-stack { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 13px 0; list-style: none; }
.dt-stack li { padding: 3px 8px; border: 1px solid #68505b; border-radius: 6px; color: #ead6de; font-size: .82rem; }
.dt-use-prompt { margin: 0; padding: 11px 13px; border-left: 2px solid var(--dt-red); border-radius: 0 8px 8px 0; background: #2b2028; }
.dt-use-prompt p { color: var(--dt-white); }
.dt-use-steps { display: grid; gap: 7px; padding-left: 23px; margin: 14px 0 0; color: var(--dt-muted); }
.dt-use-steps li::marker { color: #ff9a8e; font-weight: 670; }
.dt-use-art { display: block; width: 100%; height: auto; border-radius: 16px; }

.dt-integrations-section { background: #fff; color: var(--dt-ink); }
.dt-integrations-section .dt-section-intro { color: var(--dt-paper-muted); }
.dt-integrations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 27px 0 0; padding: 0; list-style: none; }
.dt-integrations li { min-width: 0; padding: clamp(15px, 2.1vw, 26px); border: 1px solid #e7e3e4; border-radius: 14px; background: #fff; }
.dt-integration-brand { position: relative; display: flex; align-items: center; gap: 10px; min-height: 45px; }
.dt-integration-brand img { display: block; width: min(215px, 100%); height: 40px; object-fit: contain; object-position: left center; }
.dt-integration-symbol img { flex: none; width: 38px; height: 38px; object-position: center; }
.dt-integration-symbol h3 { font-size: clamp(1.05rem, 1.65vw, 1.32rem); line-height: 1.15; }
.dt-integration-name-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dt-integrations li p { margin-top: 9px; color: var(--dt-paper-muted); font-size: .94rem; }
.dt-setup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 25px 0 0; list-style: none; counter-reset: setup; }
.dt-setup li { padding: clamp(15px, 2.4vw, 24px); border: 1px solid var(--dt-paper-line); border-radius: 13px; background: #fbf8f5; counter-increment: setup; }
.dt-setup li::before { content: counter(setup); display: inline-grid; place-items: center; width: 33px; height: 33px; margin-bottom: 12px; border-radius: 8px; background: #f9e2de; color: #9f251e; font-weight: 750; }
.dt-setup h3 { font-size: 1.13rem; }
.dt-setup p { margin-top: 7px; }
.dt-control { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; gap: clamp(18px, 4vw, 45px); margin-top: 22px; padding: clamp(20px, 3vw, 37px); border: 1px solid #d7c8c3; border-radius: 14px; background: #e9dfdc; }
.dt-control-heading h3 { margin-top: 9px; }
.dt-control-heading p { margin-top: 8px; }
.dt-control-modes { display: grid; gap: 9px; margin: 0; }
.dt-control-modes div { border-top: 1px solid #cebfba; padding-top: 8px; }
.dt-control-modes dt { font-weight: 720; }
.dt-control-modes dd { margin: 2px 0 0; color: var(--dt-paper-muted); }

.dt-price { background: #1c161c; border-block: 1px solid var(--dt-line); }
.dt-mcp-offer { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 19px; color: var(--dt-muted); }
.dt-mcp-offer strong { font-size: 1.5rem; color: var(--dt-white); }
.dt-trial { display: inline-block; padding: 3px 10px; border: 1px solid #82423f; border-radius: 7px; background: #381e23; color: #ffb6af; font-size: .9rem; font-weight: 720; }
.dt-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 24px; }
.dt-plans article { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(19px, 3vw, 33px); border: 1px solid #62525c; border-radius: 13px; }
.dt-plans article p { color: var(--dt-muted); }
.dt-plans article .dt-button { margin-top: auto; }
.dt-plans article.dt-plan-offer { border-color: #82423f; background: radial-gradient(ellipse at 100% 0%, #462329, transparent 72%), var(--dt-black); }
.dt-plans .dt-trial { color: #ffb6af; }
.dt-plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; }
.dt-plan-price strong { font-size: clamp(2.75rem, 6vw, 4.25rem); line-height: 1; }
.dt-plan-price span { color: var(--dt-muted); font-size: 1rem; font-weight: 500; letter-spacing: normal; }
.dt-plans article.dt-plan-light { background: var(--dt-white); border-color: var(--dt-paper-line); color: var(--dt-ink); }
.dt-plans article.dt-plan-light p { color: var(--dt-paper-muted); }
.dt-faq { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 24px 48px; }
.dt-faq details { border-top: 1px solid var(--dt-paper-line); padding: 13px 0; }
.dt-faq details:last-child { border-bottom: 1px solid var(--dt-paper-line); }
.dt-faq summary { cursor: pointer; font-weight: 690; }
.dt-faq summary::marker { color: var(--dt-red-deep); }
.dt-faq details p { margin-top: 9px; }

.dt-back { display: inline-block; color: var(--dt-muted); margin-bottom: 17px; font-size: .92rem; }
.dt-product-status { color: #ff9288; margin-bottom: 12px; font-weight: 650; }
.dt-planned { min-height: 320px; }
.dt-document { max-width: 800px; }
.dt-document h2 { font-size: clamp(1.6rem, 3.5vw, 2.65rem); }
.dt-document h2:not(:first-child) { margin-top: 29px; }
.dt-document p, .dt-document .dt-button { margin-top: 9px; }

@media (max-width: 1000px) {
    .dt-product-grid, .dt-setup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dt-mcp-grid { grid-template-columns: minmax(0, 1fr); }
    .dt-mcp-copy h1 { max-width: 17ch; }
    .dt-mcp-network, .dt-workflow { max-width: 790px; }
}

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

@media (max-width: 620px) {
    .dt-wrap { width: calc(100% - 32px); }
    .dt-header-inner, .dt-footer-inner { min-height: 65px; gap: 10px; }
    .dt-brand { gap: 6px; font-size: 1.2rem; }
    .dt-brand img { width: 34px; }
    .dt-header nav, .dt-footer nav { gap: 6px 11px; }
    .dt-header nav a, .dt-footer nav a { font-size: .82rem; }
    .dt-header nav .dt-nav-wide { display: none; }
    .dt-header nav .dt-nav-login { padding: 3px 8px; }
    .dt-home-grid, .dt-proof, .dt-faq, .dt-plans, .dt-use-case, .dt-control { grid-template-columns: minmax(0, 1fr); }
    .dt-proof figure:not(:last-child)::after { display: none; }
    .dt-use-case:nth-of-type(even) .dt-use-art { order: 0; }
    .dt-home-art { width: min(calc(100% + 24px), 460px); max-width: none; }
    .dt-workflow { max-width: 420px; }
    .dt-contact { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 470px) {
    .dt-integrations { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 390px) {
    .dt-product-grid, .dt-setup { grid-template-columns: minmax(0, 1fr); }
    .dt-header nav a, .dt-footer nav a { font-size: .78rem; }
}
