/*
Theme Name: KI Theme
Description: Собственная тема агрегатора «Какой интернет?», стенд 9.2.
Version: 0.2.8
Requires PHP: 8.4
*/
* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--ki-ink);
    background: var(--ki-canvas);
    font: 16px/1.5 Inter, Arial, sans-serif;
}
a { color: var(--ki-action); }
a:focus-visible { outline: 3px solid var(--ki-purple-text); outline-offset: 4px; }
.ki-wrap { width: min(1360px, calc(100% - 40px)); margin-inline: auto; }
.ki-skip { position: fixed; left: 12px; top: 12px; z-index: 20; background: #fff; padding: 10px; }
.ki-skip:not(:focus) { clip-path: inset(50%); }
.ki-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--ki-border); }
@supports (backdrop-filter: blur(12px)) {
    .ki-header { background: rgb(255 255 255 / 88%); backdrop-filter: blur(12px); }
}
.ki-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.ki-header-inner img { display: block; width: clamp(126px, 31vw, 174px); max-width: 100%; height: auto; }
.ki-header nav, .ki-tabs, .ki-pages, .ki-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.ki-header nav a { color: var(--ki-ink); font-weight: 650; text-decoration: none; }
.ki-main { flex: 1; padding-block: 30px 56px; }
.ki-hero { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 32px; background: linear-gradient(120deg, var(--ki-mint), #eff7ff 66%, #eadbff); }
.ki-hero-copy { padding: clamp(24px, 5vw, 64px); align-self: center; }
.ki-hero-image { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.ki-kicker { color: var(--ki-action); font-weight: 700; margin: 0 0 12px; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 60px); letter-spacing: -.035em; line-height: 1.08; }
.ki-lead { color: var(--ki-text-muted); font-size: clamp(17px, 2.1vw, 22px); margin: 17px 0 24px; }
.ki-button { display: inline-block; padding: 12px 22px; border-radius: 14px; color: #fff; background: var(--ki-action); text-decoration: none; font-weight: 700; }
.ki-crumbs { margin-bottom: 18px; color: var(--ki-text-muted); }
.ki-note { padding: 12px 16px; background: var(--ki-mint); border-radius: 12px; line-height: 1.45; }
.ki-tabs { margin-block: 22px; }
.ki-tabs a { text-decoration: none; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--ki-border); }
.ki-tabs a[aria-current] { background: var(--ki-action); border-color: var(--ki-action); color: #fff; }
.ki-summary { color: var(--ki-text-muted); }
.ki-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ki-card { border: 1px solid var(--ki-border); border-radius: 22px; background: #fff; padding: 20px; min-width: 0; }
.ki-brand { font-weight: 700; margin: 0 0 8px; color: var(--ki-text-muted); }
.ki-card h2 { font-size: 21px; margin: 0 0 12px; line-height: 1.2; }
.ki-speed { display: inline-block; padding: 5px 10px; border-radius: 9px; background: var(--ki-mint); margin: 0 0 12px; }
.ki-card dl { margin: 0; }
.ki-card dl div { display: flex; gap: 8px; justify-content: space-between; border-top: 1px solid var(--ki-border); padding-block: 8px; }
.ki-card dd { margin: 0; font-weight: 650; text-align: right; }
.ki-pages { justify-content: center; margin-top: 24px; }
.ki-pages a { padding: 8px; }
.ki-footer { padding: 24px 0; color: var(--ki-text-muted); border-top: 1px solid var(--ki-border); }
@media (max-width: 1190px) { .ki-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .ki-grid, .ki-hero { grid-template-columns: minmax(0, 1fr); }
    .ki-hero-image { min-height: 0; aspect-ratio: 1.65; }
    .ki-button { width: 100%; text-align: center; }
    .ki-wrap { width: calc(100% - 28px); }
}
