*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green: #3d8a3d;
    --green-dark: #2a6b2a;
    --green-light: #e8f5e8;
    --green-mid: #5aab5a;
    --accent: #6abf6a;
    --red: #d93025;
    --red-light: #fdecea;
    --text: #1a1a1a;
    --text-muted: #555;
    --text-light: #888;
    --bg: #f4f7f4;
    --white: #fff;
    --border: #d8e8d8;
    --shadow: 0 2px 12px rgba(61, 138, 61, 0.08);
}

body {
    font-family: 'Onest', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

header {
    background: var(--white);
    border-bottom: 2px solid var(--green-light);
    position: sticky;
    top: 0;
    z-index: 300;
}

.hdr-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text .name {
    font-size: 18px;
    font-weight: 700;
    color: var(--green-dark);
    white-space: nowrap;
    line-height: 1;
}

.hdr-search {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    height: 36px;
}

.hdr-search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    padding: 0 12px;
    outline: none;
}

.hdr-search input::placeholder {
    color: #bbb;
}

.hdr-search button {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0 11px;
    color: var(--green);
    font-size: 15px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: #D4651A;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    padding: 0 11px;
    align-items: flex-start;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(180, 85, 0, 0.25);
}

.burger b {
    display: block;
    width: 20px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: .3s;
}

.burger b:nth-child(3) {
    width: 14px;
    align-self: flex-start;
}

.burger.is-open b:nth-child(1) {
    width: 20px;
    align-self: center;
    transform: translateY(7.5px) rotate(45deg);
}

.burger.is-open b:nth-child(2) {
    opacity: 0;
}

.burger.is-open b:nth-child(3) {
    width: 20px;
    align-self: center;
    transform: translateY(-7.5px) rotate(-45deg);
}

.hdr-nav {
    border-top: 1px solid var(--green-light);
    background: var(--white);
    overflow: visible;
    position: relative;
    z-index: 200;
}

.hdr-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 40px;
    overflow: visible;
    position: relative;
    flex-wrap: wrap;
}

.has-drop {
    position: relative;
}

.nav-primary {
    order: 1;
}

.nav-break {
    order: 2;
    flex-basis: 100%;
    height: 0;
    border-top: 1px solid var(--green-light);
    display: none;
}

.nav-secondary {
    order: 3;
}

@container (max-width:1px) {
    .nav-break {
        display: block;
    }
}

.hdr-nav-inner a {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 7px;
    white-space: nowrap;
    transition: all .2s;
}

.nav-primary>a,
.hdr-nav-inner a.nav-primary {
    color: var(--text);
    font-weight: 600;
}

.nav-secondary>a,
.hdr-nav-inner a.nav-secondary {
    font-size: 12.5px;
    color: var(--text-light);
}

.hdr-nav-row2-inner {
    border-top: 1px solid var(--green-light);
    background: #f8fbf8;
    min-height: 34px !important;
}

.hdr-nav-row2-inner a {
    font-size: 12px !important;
    color: var(--text-light) !important;
    padding: 4px 9px !important;
}

.hdr-nav-row2-inner a:hover {
    color: var(--green-dark) !important;
    background: var(--green-light);
}

.hdr-nav-inner a:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.hdr-nav-inner a.active {
    background: var(--green);
    color: #fff;
}

.pill-video {
    background: #FFF0E6 !important;
    color: #D4651A !important;
    border: 1.5px solid #D4651A !important;
    font-weight: 700 !important;
}

.pill-video:hover {
    background: #D4651A !important;
    color: #fff !important;
}

.has-drop {
    position: relative;
}

.has-drop>a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.has-drop>a .drop-arr {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform .2s;
}

.has-drop:hover>a .drop-arr {
    transform: rotate(180deg);
}

.dropdown {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    padding: 16px 20px 20px;
    width: min(1160px, 94vw);
    max-height: 80vh;
    display: flex;
    flex-direction: row;
    gap: 0 8px;
    z-index: 500;
    overflow-y: auto;
}

.has-drop:hover .dropdown,
.has-drop:focus-within .dropdown {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.dropdown a {
    display: block;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.dropdown a:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.dropdown a.dd-active {
    color: var(--green-dark);
}

.dropdown a.dd-all {
    color: #fff;
    background: var(--green);
    border-radius: 8px;
    font-weight: 600;
    grid-column: span 4;
    text-align: center;
    margin-bottom: 4px;
}

.dropdown a.dd-all:hover {
    background: var(--green-dark);
    color: #fff;
}

.drw-acc-panel a.sub-all {
    color: var(--green-dark);
    font-weight: 700;
    background: var(--green-light);
}

.drw-acc-panel a.sub-all::before {
    color: var(--green);
}

.dropdown.single {
    grid-template-columns: 1fr !important;
    min-width: 180px;
}

.drw-links {
    list-style: none;
}

.drw-links li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all .15s;
}

.drw-links li a:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.drw-links li a.active {
    color: var(--green-dark);
    font-weight: 700;
    background: var(--green-light);
}

.drw-acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    background: none;
    border: none;
    border-bottom: 1px solid var(--border);
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background .15s;
}

.drw-acc-btn:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.drw-acc-btn.open {
    background: var(--green-light);
    color: var(--green-dark);
}

.drw-acc-btn .acc-arr {
    margin-left: auto;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform .25s;
}

.drw-acc-btn.open .acc-arr {
    transform: rotate(180deg);
}

.drw-acc-panel {
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: max-height .35s ease;
    background: #f9fcf9;
}

.drw-acc-panel.open {
    max-height: 50vh;
}

.drw-acc-panel a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px 11px 56px;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all .15s;
}

.drw-acc-panel a:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.drw-acc-panel a.sub-active {
    color: var(--green-dark);
}

.drw-acc-panel a::before {
    content: '—';
    font-size: 11px;
    color: #bbb;
    flex-shrink: 0;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 92px;
    background: rgba(0, 0, 0, .3);
    z-index: 200;
}

.overlay.on {
    display: block;
}

.drawer {
    position: fixed;
    top: 92px;
    left: 0;
    bottom: 0;
    width: min(320px, 100vw);
    background: var(--white);
    border-right: 2px solid var(--green-light);
    z-index: 250;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, .08);
}

.drawer.is-open {
    transform: translateX(0);
}

.drw-search {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.drw-search-box {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.drw-search-box input {
    flex: 1;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
    padding: 10px 13px;
    outline: none;
}

.drw-search-box input::placeholder {
    color: #bbb;
}

.drw-search-box button {
    border: none;
    background: none;
    color: var(--green);
    font-size: 16px;
    padding: 0 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.drw-video {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    text-decoration: none;
    background: linear-gradient(120deg, #D4651A, #e07a2e);
    border-radius: 12px;
    border-bottom: none;
    box-shadow: 0 4px 12px rgba(180, 85, 0, 0.25);
    margin: 12px 14px;
    gap: 12px;
}

/* play-иконка слева — рисуется через CSS, HTML не нужен */
.drw-video::before {
    content: "";
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: rgba(255,255,255,.18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M5 3.5v9l7-4.5z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.drw-video:hover {
    background: linear-gradient(120deg, #c25a14, #d06f26);
}

.drw-video-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-right: auto;
}

/* подзаголовок «Смотреть все уроки» — добавляется через CSS */
.drw-video-name::after {
    content: "Смотреть все уроки";
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    margin-top: 2px;
}

.drw-video-go {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.drw-video-go svg path {
    stroke: #fff !important;
}

.drw-ico {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--green-light);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.drw-video .drw-ico {
    background: #b8500f;
    border-color: rgba(255,255,255,.4);
    color: #fff;
}

.drw-links li a.active .drw-ico,
.drw-links li a:hover .drw-ico {
    background: var(--green);
    border-color: var(--green);
}

.drw-acc-btn.open .drw-ico,
.drw-acc-btn:hover .drw-ico {
    background: var(--green);
    border-color: var(--green);
}

.bc {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.bc-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 9px 20px;
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.bc-in a {
    color: var(--green);
    text-decoration: none;
}

.bc-in a:hover {
    text-decoration: underline;
}

.bc-sep {
    color: var(--border);
}

.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 60%, var(--green-mid) 100%);
    padding: 44px 20px 38px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: 100px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    pointer-events: none;
}

.hero-in {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .2);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 20px;
    padding: 3px 13px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 13px;
}

.hero h1 {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 11px;
    max-width: 600px;
}

.hero p {
    font-size: 15px;
    opacity: .85;
    max-width: 520px;
    margin-bottom: 22px;
}

.hero-btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-video {
    background: #fff;
    color: var(--green-dark);
    border: none;
    border-radius: 10px;
    padding: 11px 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}

.btn-video:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
}

.btn-video svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-themes {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .4);
    border-radius: 10px;
    padding: 11px 22px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .2s;
}

.btn-themes:hover {
    background: rgba(255, 255, 255, .25);
}

.hero-stats {
    display: flex;
    gap: 24px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .2);
    flex-wrap: wrap;
}

.hs-num {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.hs-lbl {
    font-size: 12px;
    opacity: .75;
    margin-top: 3px;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px;
    display: grid;
    grid-template-columns: 1fr 290px;
    gap: 24px;
    align-items: start;
}

.video-block {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #1a2e1a;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a2e1a 0%, #2a4a2a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    cursor: pointer;
}

.video-play-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: 2px solid rgba(255, 255, 255, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}

.video-play-btn:hover {
    background: rgba(255, 255, 255, .25);
    transform: scale(1.05);
}

.video-play-btn svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    margin-left: 4px;
}

.video-placeholder-text {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    font-weight: 600;
}

.video-placeholder-sub {
    color: rgba(255, 255, 255, .5);
    font-size: 13px;
}

.video-info {
    padding: 16px 20px 18px;
}

.video-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--green-light);
    color: var(--green-dark);
    border-radius: 6px;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.video-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.video-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.qnav {
    background: var(--white);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 18px;
}

.qnav-lbl {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 9px;
}

.qnav-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.qn {
    width: 33px;
    height: 33px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--green-dark);
    background: var(--green-light);
    border: 1.5px solid transparent;
    transition: all .15s;
    cursor: default;
}

.qn:hover {
    background: var(--green);
    color: #fff;
}

.qn[data-state="correct"] {
    background: var(--green) !important;
    color: #fff !important;
    border-color: var(--green) !important;
}

.qn[data-state="wrong"] {
    background: var(--red) !important;
    color: #fff !important;
    border-color: var(--red) !important;
}

.qcard {
    background: var(--white);
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: box-shadow .2s;
}

.qcard:hover {
    box-shadow: 0 4px 20px rgba(61, 138, 61, .13);
}

.qhdr {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 16px;
}

.qnum {
    min-width: 40px;
    height: 40px;
    background: var(--green);
    color: #fff;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}

.qtitle {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.qimg {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 16px;
    max-height: 298px;
    object-fit: cover;
    border: 1px solid var(--border);
    display: block;
}

.qnoimg {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #dce8f0 0%, #c8dce8 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #b8cdd8;
}

.qnoimg-icon {
    font-size: 36px;
    opacity: .45;
}

.qnoimg-text {
    font-size: 13px;
    color: #7a9db0;
    font-weight: 500;
}

.opts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.opt {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    background: var(--white);
    transition: border-color .15s, background .15s;
    user-select: none;
}

.opt:hover:not(.locked) {
    border-color: var(--accent);
    background: var(--green-light);
}

.opt.correct {
    border-color: var(--green);
    background: var(--green-light);
    cursor: default;
}

.opt.wrong {
    border-color: var(--red);
    background: var(--red-light);
    cursor: default;
}

.opt.locked {
    cursor: default;
}

.onum {
    min-width: 25px;
    height: 25px;
    border-radius: 6px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all .15s;
}

.opt.correct .onum {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.opt.wrong .onum {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.otxt {
    font-size: 14px;
    line-height: 1.45;
    padding-top: 1px;
    flex: 1;
}

.badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 5px;
    margin-left: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-ok {
    background: var(--green-light);
    color: var(--green-dark);
}

.badge-err {
    background: var(--red-light);
    color: var(--red);
}

.qfoot {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-ans {
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.btn-ans:hover {
    background: var(--green-dark);
}

.qlink {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
}

.qlink:hover {
    color: var(--green);
}

.ans-box {
    display: none;
    margin-top: 12px;
    padding: 13px;
    background: var(--green-light);
    border-radius: 9px;
    border-left: 4px solid var(--green);
}

.ans-box.on {
    display: block;
}

.ans-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ans-txt {
    font-size: 13px;
    line-height: 1.6;
}

.seo-block {
    background: var(--white);
    border-radius: 16px;
    padding: 22px;
    margin-top: 4px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.seo-block h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.seo-text-wrap {
    position: relative;
}

.seo-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    overflow: hidden;
    transition: max-height .4s ease;
}

.seo-text.collapsed {
    max-height: 80px;
}

.seo-text.expanded {
    max-height: 2000px;
}

.seo-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--white));
    pointer-events: none;
    transition: opacity .3s;
}

.seo-fade.hidden {
    opacity: 0;
}

.seo-toggle {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}

.seo-toggle:hover {
    color: var(--green-dark);
}

.seo-toggle svg {
    width: 14px;
    height: 14px;
    transition: transform .3s;
}

.seo-toggle.expanded svg {
    transform: rotate(180deg);
}

.comments-block {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.comments-block h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    background: var(--bg);
    border-radius: 20px;
    padding: 2px 10px;
}

.comments-block .comment {
    display: block;
}

.comment {
    display: flex;
    gap: 13px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.comment:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.comment-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.comment-city {
    font-size: 12px;
    color: var(--text-light);
}

.comment-date {
    font-size: 12px;
    color: var(--text-light);
    margin-left: auto;
}

.comment-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.comment-like {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    padding: 0;
    transition: color .15s;
}

.comment-like:hover {
    color: var(--green);
}

.sidebar {
    position: sticky;
    top: 108px;
}

.scard {
    background: var(--white);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.scard h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--green-dark);
    background: var(--green-light);
    border-radius: 8px;
    padding: 6px 11px;
    border: 1px solid transparent;
    transition: all .15s;
}

.tag:hover {
    border-color: var(--green);
    background: #fff;
}

.tag.on {
    background: var(--green);
    color: #fff;
}

.tip {
    background: linear-gradient(135deg, var(--green-dark), var(--green));
    color: #fff;
    border-color: transparent !important;
}

.tip-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    opacity: .8;
    margin-bottom: 6px;
}

.tip-txt {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.tip-sub {
    font-size: 12px;
    opacity: .75;
    margin-top: 10px;
}

footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, .7);
    padding: 36px 20px;
    margin-top: 40px;
    font-size: 13px;
}

.foot-in {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr;
    gap: 32px;
}

footer .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-bottom: 10px;
}

footer .logo-text .name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.fdesc {
    line-height: 1.7;
    font-size: 13px;
}

footer h4 {
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 12px;
}

footer a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    display: block;
    margin-bottom: 9px;
    font-size: 14px;
    transition: color .15s;
}

footer a:hover {
    color: #fff;
}

.foot-video-link {
    color: var(--accent) !important;
    font-weight: 700;
}

.foot-copy {
    max-width: 1200px;
    margin: 24px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 12px;
    color: rgba(255, 255, 255, .35);
}

@media (max-width:900px) {
    .hdr-nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .overlay,
    .drawer {
        top: 52px;
    }
}

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

    .sidebar {
        position: static;
    }
}

@media (max-width:600px) {
    .hero {
        padding: 28px 16px;
    }

    .hero-btns {
        flex-direction: column;
    }

    .btn-video,
    .btn-themes {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 16px;
    }

    .wrap {
        padding: 16px;
    }

    .qcard {
        padding: 16px;
    }

    .foot-in {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .comment-date {
        margin-left: 0;
    }
}

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

@media (max-width:720px) {
    .dropdown {
        grid-template-columns: repeat(2, 1fr);
    }
}







.dropdown a.dd-sub {
    font-size: 12px !important;
    color: #888 !important;
    padding: 2px 4px 2px 10px !important;
    border-left: 2px solid #c8e6c8;
    margin-left: 2px;
    line-height: 1.4;
}

.dropdown a.dd-sub:hover {
    color: var(--green-dark) !important;
    border-left-color: var(--green);
}

.drw-acc-panel a.sub-topic {
    font-size: 13px;
    color: #888;
    padding-left: 16px;
    border-left: 2px solid #c8e6c8;
    margin-left: 8px;
}

.dd-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dd-col a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    padding: 5px 8px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .15s;
}

.dd-col a:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.dd-col a.dd-sub {
    font-size: 12px;
    font-weight: 400;
    color: #777;
    padding: 3px 8px 3px 16px;
    border-left: 2px solid #d0ead0;
    margin-left: 4px;
}

.dd-col a.dd-sub:hover {
    color: var(--green-dark);
    border-left-color: var(--green);
}



.dd-all-arrow {
    display: block;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
    margin-top: 4px;
}

.dropdown2 {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12);
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
    z-index: 500;
    min-width: 400px;
}

.dropdown2 a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    padding: 5px 8px;
    border-radius: 6px;
    white-space: nowrap;
    transition: background .15s;
}

.dropdown2 a:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.has-drop:hover .dropdown2 {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════
   Дополнение к style.css — стили страницы вопроса
   Взято из макета Question_Page.html
   ═══════════════════════════════════════════════════════════════ */

/* ── Сетка контент + сайдбар ── */
.page-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    margin-top: 24px;
    align-items: start;
}

/* ── topic-strip (зелёная плашка) ── */
.topic-strip {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    border-radius: 18px;
    color: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 2px rgba(20, 30, 15, .04), 0 18px 40px -16px rgba(20, 30, 15, .12);
    margin-top: 4px;
}

.topic-strip::before,
.topic-strip::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
}

.topic-strip::before {
    width: 380px;
    height: 380px;
    right: -120px;
    top: -180px;
}

.topic-strip::after {
    width: 240px;
    height: 240px;
    right: 80px;
    bottom: -140px;
}

.topic-strip-inner {
    position: relative;
    padding: 28px 36px 30px;
    max-width: 1000px;
}

.ts-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .18);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.ts-title {
    margin: 14px 0 8px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.18;
}

.ts-title-lg {
    font-size: 34px;
}

.ts-title-md {
    font-size: 26px;
    line-height: 1.22;
}

.ts-title-sm {
    font-size: 21px;
    line-height: 1.32;
}

.ts-meta-line {
    font-size: 14px;
    opacity: .88;
    margin: 0;
}

.ts-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
    align-items: center;
}

.ts-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 10px 22px 10px 16px;
    border-radius: 14px;
    background: #fff;
    color: var(--green-dark);
    border: none;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
    transition: transform .15s, box-shadow .15s;
}

.ts-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    color: var(--green-dark);
}

.ts-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ts-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ts-btn-label {
    font-size: 15px;
    font-weight: 700;
}

.ts-btn-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 2px;
}

.ts-btn-arrow {
    font-size: 18px;
    color: var(--green);
    margin-left: 4px;
    transition: transform .15s;
}

.ts-btn-primary:hover .ts-btn-arrow {
    transform: translateX(3px);
}

.ts-btn-ghost {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s;
}

.ts-btn-ghost:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* ── Хлебные крошки ── */
.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 16px 0 12px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

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

.bc-sep {
    color: var(--border);
}

.bc-current {
    color: var(--text);
    font-weight: 600;
}

/* ── Карточка вопроса ── */
.qcard-prompt {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 12px;
}

/* ── Картинка вопроса ── */
.q-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 18px;
    background: var(--bg);
    aspect-ratio: 2.67;
}

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

.q-image-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-family: ui-monospace, monospace;
}

/* ── Варианты ответов (страница вопроса) ── */
.opts .opt {
    display: grid;
    grid-template-columns: 32px 1fr 24px;
    gap: 12px;
    align-items: center;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.opt-num {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}

.opt-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.4;
}

.opt-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.opt-icon-ok {
    background: var(--green);
}

.opt-icon-bad {
    background: var(--red);
}

.opt-icon-ok-muted {
    background: var(--green-light);
    color: var(--green-dark);
}

.opt-selected {
    border-color: var(--green) !important;
    background: var(--green-light) !important;
}

.opt-selected .opt-num {
    background: var(--green);
    color: #fff;
}

.opt-correct {
    border-color: var(--green) !important;
    background: var(--green-light) !important;
}

.opt-correct .opt-num {
    background: var(--green);
    color: #fff;
}

.opt-wrong {
    border-color: var(--red) !important;
    background: var(--red-light) !important;
}

.opt-wrong .opt-num {
    background: var(--red);
    color: #fff;
}

.opt-muted-correct {
    border-color: var(--border) !important;
    border-style: dashed !important;
    background: var(--green-light) !important;
    opacity: .8;
}

/* ── Кнопки карточки ── */
.qcard-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.qcard-actions-right {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid transparent;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.btn-primary:hover:not(:disabled) {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}

.btn-primary:disabled {
    background: var(--green-light);
    color: var(--green-dark);
    border-color: var(--green-light);
    cursor: not-allowed;
}

.btn-outline {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--green-light);
    color: var(--green-dark);
}

.btn-ghost:disabled {
    color: var(--text-light);
    cursor: not-allowed;
    opacity: .5;
}

/* ── Результат ── */
.result {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid;
}

.result-ok {
    border-color: var(--green-light);
    background: var(--green-light);
}

.result-bad {
    border-color: #f6cdcd;
    background: var(--red-light);
}

.result-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 15px 18px;
}

.result-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.result-badge.ok {
    background: var(--green);
}

.result-badge.bad {
    background: var(--red);
}

.result-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
}

.result-sub {
    display: block;
    font-weight: 500;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

.result-explain {
    background: #fff;
    padding: 16px 18px;
    border-top: 1px solid rgba(0, 0, 0, .05);
}

.explain-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.explain-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
}

/* ── Навигатор (сайдбар) ── */
.navcard {
    position: sticky;
    top: 108px;
}

.navcard-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}

.navcard-title {
    font-weight: 700;
    font-size: 15px;
}

.navcard-sub {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.nav-mini {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.nav-cell {
    aspect-ratio: 1;
    border-radius: 8px;
    text-decoration: none;
    background: var(--bg);
    border: 1.5px solid transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.nav-cell:hover {
    background: var(--green-light);
    color: var(--green-dark);
}

.nav-cell-current {
    background: var(--green);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(61, 138, 61, .2);
}

.nav-cell-current:hover {
    background: var(--green-dark);
    color: #fff;
}

.nav-cell-ok {
    background: var(--green-light);
    color: var(--green-dark);
    border-color: var(--green-light);
}

.nav-cell-bad {
    background: var(--red-light);
    color: var(--red);
    border-color: #f6cdcd;
}

.nav-legend {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 11.5px;
    color: var(--text-muted);
}

.nav-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.nav-dot-ok {
    background: var(--green);
}

.nav-dot-bad {
    background: var(--red);
}

.nav-dot-cur {
    background: var(--green);
}

/* ── Похожие вопросы ── */

.related-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.related-item {
    display: grid;
    grid-template-columns: 30px 1fr 16px;
    gap: 10px;
    align-items: center;
    padding: 9px;
    border-radius: 9px;
    text-decoration: none;
    color: inherit;
    transition: background .15s;
}

.related-item:hover {
    background: var(--green-light);
}

.related-num {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.related-text {
    font-size: 13px;
    line-height: 1.35;
    color: var(--text);
    font-weight: 500;
}

.related-topic {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

.related-item:hover .related-text {
    color: var(--green-dark);
}

/* ── Адаптив ── */
@media (max-width: 900px) {
    .page-grid {
        grid-template-columns: 1fr;
    }

    .navcard {
        position: static;
    }
}

@media (max-width: 600px) {
    .topic-strip-inner {
        padding: 22px 18px 24px;
    }

    .ts-title-lg {
        font-size: 22px;
    }

    .ts-title-md {
        font-size: 19px;
    }

    .ts-title-sm {
        font-size: 17px;
    }

    .qcard-actions {
        flex-direction: column;
    }

    .qcard-actions-right {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Дополнение к style.css — вставить в конец файла
   Все классы взяты из макета Question_Page.html
   ═══════════════════════════════════════════════════════════════ */

/* ── .main / .container ── */
.main {
    padding-top: 24px;
    padding-bottom: 80px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Хлебные крошки ── */
.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 18px 0 14px;
    font-size: 13px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

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

.bc-sep {
    color: var(--border);
}

.bc-current {
    color: var(--text);
    font-weight: 600;
}

/* ── topic-strip (зелёная плашка) ── */
.topic-strip {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    border-radius: 18px;
    color: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 2px rgba(20, 30, 15, .04), 0 18px 40px -16px rgba(20, 30, 15, .12);
}

.topic-strip::before,
.topic-strip::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
}

.topic-strip::before {
    width: 380px;
    height: 380px;
    right: -120px;
    top: -180px;
}

.topic-strip::after {
    width: 240px;
    height: 240px;
    right: 80px;
    bottom: -140px;
}

.topic-strip-inner {
    position: relative;
    padding: 28px 36px 30px;
    max-width: 1000px;
}

.ts-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .18);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.ts-title {
    margin: 14px 0 8px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.18;
}

.ts-title-lg {
    font-size: 34px;
}

.ts-title-md {
    font-size: 26px;
    line-height: 1.22;
}

.ts-title-sm {
    font-size: 21px;
    line-height: 1.32;
}

.ts-meta-line {
    font-size: 14px;
    opacity: .88;
    margin: 0;
}

.ts-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
    align-items: center;
}

.ts-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 10px 22px 10px 16px;
    border-radius: 14px;
    background: #fff;
    color: var(--green-dark);
    border: none;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
}

.ts-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    color: var(--green-dark);
}

.ts-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ts-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ts-btn-label {
    font-size: 15px;
    font-weight: 700;
}

.ts-btn-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 2px;
}

.ts-btn-arrow {
    font-size: 18px;
    color: var(--green);
    margin-left: 4px;
    transition: transform .15s;
}

.ts-btn-primary:hover .ts-btn-arrow {
    transform: translateX(3px);
}

.ts-btn-ghost {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}

.ts-btn-ghost:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* ── content-single (карточка на всю ширину) ── */
.content-single {
    margin-top: 24px;
}

/* ── Картинка вопроса ── */
.q-image {
    margin: 0 0 22px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    aspect-ratio: 2.67;
    background: var(--bg);
}

.q-image-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.q-image-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, monospace;
}

/* ── qcard-prompt ── */
.qcard-prompt {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 18px 0 12px;
}

/* ── Варианты ответов ── */
.opts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.opts .opt {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff;
    border: 1.5px solid var(--border);
    text-align: left;
    width: 100%;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s;
}

.opts .opt:hover:not(:disabled) {
    border-color: var(--green);
    background: var(--green-light);
}

.opts .opt:disabled {
    cursor: default;
}

.opt-num {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--bg);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.opt-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.4;
}

.opt-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    min-width: 22px;
}

.opt-icon-ok {
    background: var(--green);
}

.opt-icon-bad {
    background: var(--red);
}

.opt-icon-ok-muted {
    background: var(--green-light);
    color: var(--green-dark);
}

.opt-selected {
    border-color: var(--green) !important;
    background: var(--green-light) !important;
}

.opt-selected .opt-num {
    background: var(--green);
    color: #fff;
}

.opt-correct {
    border-color: var(--green) !important;
    background: var(--green-light) !important;
}

.opt-correct .opt-num {
    background: var(--green);
    color: #fff;
}

.opt-wrong {
    border-color: var(--red) !important;
    background: var(--red-light) !important;
}

.opt-wrong .opt-num {
    background: var(--red);
    color: #fff;
}

.opt-muted-correct {
    border-color: var(--border) !important;
    border-style: dashed !important;
    background: var(--green-light) !important;
}

/* ── Кнопки карточки ── */
.qcard-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.qcard-actions-right {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--green-dark);
    color: #fff;
}

.btn-primary:disabled {
    background: var(--green-light);
    color: var(--green-dark);
    cursor: not-allowed;
}

.btn-outline {
    background: #fff;
    border-color: var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--green);
    color: var(--green-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--green-light);
    color: var(--green-dark);
}

.btn-ghost:disabled {
    color: var(--text-light);
    cursor: not-allowed;
    opacity: .5;
}

/* ── Результат ── */
.result {
    margin-top: 18px;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid;
}

.result-ok {
    border-color: var(--green-light);
    background: var(--green-light);
}

.result-bad {
    border-color: #f6cdcd;
    background: var(--red-light);
}

.result-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
}

.result-badge {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.result-badge.ok {
    background: var(--green);
}

.result-badge.bad {
    background: var(--red);
}

.result-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
}

.result-sub {
    display: block;
    font-weight: 500;
    font-size: 13.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

.result-explain {
    background: #fff;
    padding: 18px;
    border-top: 1px solid rgba(0, 0, 0, .04);
}

.explain-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.explain-text {
    margin: 0 0 14px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text);
}

/* ── Адаптив ── */
@media (max-width: 700px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .topic-strip-inner {
        padding: 22px;
    }

    .ts-title-lg {
        font-size: 24px;
    }

    .ts-title-md {
        font-size: 20px;
    }

    .ts-title-sm {
        font-size: 17px;
    }

    .qcard {
        padding: 18px;
    }

    .qcard-actions {
        flex-direction: column;
    }

    .qcard-actions-right {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Дополнение к style.css — вставить в конец файла
   ═══════════════════════════════════════════════════════════════ */

/* .main — без лишнего padding-top, отступ даёт только .breadcrumbs */
.main {
    padding-bottom: 80px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Хлебные крошки */
.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 0;
    font-size: 13px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

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

.bc-sep {
    color: var(--border);
}

.bc-current {
    color: var(--text);
    font-weight: 600;
}

/* topic-strip */
.topic-strip {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
    border-radius: 18px;
    color: #fff;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 2px rgba(20, 30, 15, .04), 0 18px 40px -16px rgba(20, 30, 15, .12);
}

.topic-strip::before,
.topic-strip::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    pointer-events: none;
}

.topic-strip::before {
    width: 380px;
    height: 380px;
    right: -120px;
    top: -180px;
}

.topic-strip::after {
    width: 240px;
    height: 240px;
    right: 80px;
    bottom: -140px;
}

.topic-strip-inner {
    position: relative;
    padding: 28px 36px 30px;
    max-width: 1000px;
}

.ts-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .18);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.ts-title {
    margin: 14px 0 8px;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.18;
}

.ts-title-lg {
    font-size: 34px;
}

.ts-title-md {
    font-size: 26px;
    line-height: 1.22;
}

.ts-title-sm {
    font-size: 21px;
    line-height: 1.32;
}

.ts-meta-line {
    font-size: 14px;
    opacity: .88;
    margin: 0;
}

.ts-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
    align-items: center;
}

.ts-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 60px;
    padding: 10px 22px 10px 16px;
    border-radius: 14px;
    background: #fff;
    color: var(--green-dark);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
    transition: transform .15s, box-shadow .15s;
}

.ts-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
    color: var(--green-dark);
}

.ts-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green-mid), var(--green-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ts-btn-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.ts-btn-label {
    font-size: 15px;
    font-weight: 700;
}

.ts-btn-sub {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 2px;
}

.ts-btn-arrow {
    font-size: 18px;
    color: var(--green);
    margin-left: 4px;
    transition: transform .15s;
}

.ts-btn-primary:hover .ts-btn-arrow {
    transform: translateX(3px);
}

.ts-btn-ghost {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s;
}

.ts-btn-ghost:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* content-single + qcard */
.content-single {
    margin-top: 20px;
}

.qcard {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
}

/* Картинка вопроса */
.q-image {
    margin: 0 0 22px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    aspect-ratio: 2.67;
    background: var(--bg);
}

.q-image-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.q-image-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-family: ui-monospace, monospace;
}

/* Адаптив */
@media (max-width: 700px) {
    .container {
        padding: 0 16px;
    }

    .topic-strip-inner {
        padding: 22px;
    }

    .ts-title-lg {
        font-size: 24px;
    }

    .ts-title-md {
        font-size: 20px;
    }

    .ts-title-sm {
        font-size: 17px;
    }
}

/* ══════════════════════════════════════════════════════════════
   Страница «Темы ПДД» — /temy/
   ══════════════════════════════════════════════════════════════ */

.themes-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 8px;
}

.themes-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
    margin-bottom: 22px;
}

.themes-toolbar .tb-search {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 9px;
    padding: 0 12px;
    height: 38px;
}

.themes-toolbar .tb-search input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    color: var(--text);
}

.themes-toolbar .tb-search input::placeholder {
    color: #bbb;
}

.tb-search svg {
    width: 16px;
    height: 16px;
    color: var(--green);
    flex-shrink: 0;
}

/* ── Сетка карточек ── */
.themes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}

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

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

/* ── Карточка темы ── */
.tcard {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    position: relative;
    overflow: hidden;
}

.tcard:hover {
    transform: translateY(-2px);
    border-color: var(--green);
    box-shadow: 0 8px 26px rgba(61, 138, 61, .14);
}

.tcard::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--green-dark), var(--green-mid));
    opacity: 0;
    transition: opacity .18s;
}

.tcard:hover::before {
    opacity: 1;
}

.tcard-head {
    display: flex;
    align-items: center;
    gap: 11px;
}

.tcard-pref {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: -6px;
    margin-top: -2px;
}

.tcard-titlewrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tcard-num {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -.01em;
    border: 1.5px solid #d3ead3;
}

.tcard:hover .tcard-num {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.tcard-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    flex: 1;
    text-wrap: pretty;
}

.tcard-title a {
    color: inherit;
    text-decoration: none;
}

.tcard-title a:hover {
    color: var(--green-dark);
}

.tcard-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--text-light);
}

.tcard-q {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
}

.tcard-q b {
    color: var(--green-dark);
    font-weight: 700;
}

.tcard-dot {
    color: #cfd9cf;
}

.tcard-section {
    color: var(--text-light);
}

.tcard-subs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 2px;
}

.sub-chip {
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--green-dark);
    background: var(--green-light);
    border: 1px solid transparent;
    padding: 4px 9px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all .15s;
}

.sub-chip:hover {
    background: #fff;
    border-color: var(--green);
    color: var(--green-dark);
}

.sub-chip i {
    font-style: normal;
    color: var(--text-light);
    font-size: 11px;
    font-weight: 600;
}

.tcard-foot {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.tcard-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .15s, color .15s;
}

.tcard-link:hover {
    color: var(--green-dark);
    gap: 9px;
}

.tcard-link svg {
    width: 14px;
    height: 14px;
}

/* ── Пустое состояние ── */
.themes-empty {
    display: none;
    text-align: center;
    padding: 50px 20px;
    background: var(--white);
    border: 1px dashed var(--border);
    border-radius: 16px;
    margin-bottom: 34px;
}

.themes-empty.on {
    display: block;
}

.themes-empty h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.themes-empty p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Hero stats на странице тем ── */
.hero-stats .hs-block {
    min-width: 80px;
}


/* ══════════════════════════════════════════════════════════════
   Страница «Билеты ПДД» — /tickets/
   ══════════════════════════════════════════════════════════════ */

/* Сетка билетов: 4 в ряд */
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 34px;
}

@media (max-width: 1100px) {
    .tickets-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

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

/* ── Карточка билета ── */
.bcard {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    position: relative;
    overflow: hidden;
}

.bcard:hover {
    transform: translateY(-2px);
    border-color: var(--green);
    box-shadow: 0 8px 26px rgba(61, 138, 61, .14);
}

.bcard::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--green-dark), var(--green-mid));
    opacity: 0;
    transition: opacity .18s;
}

.bcard:hover::before {
    opacity: 1;
}

.bcard-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bcard-num {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--green-light), #d3ead3);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.02em;
    border: 1.5px solid #c8e6c8;
    font-variant-numeric: tabular-nums;
}

.bcard:hover .bcard-num {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff;
    border-color: var(--green-dark);
}

.bcard-titlewrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.bcard-pref {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--green);
}

.bcard-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.bcard-title a {
    color: inherit;
    text-decoration: none;
}

.bcard-title a:hover {
    color: var(--green-dark);
}

.bcard-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--text-light);
}

.bcard-q {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: 12px;
}

.bcard-q b {
    color: var(--green-dark);
    font-weight: 700;
}

.bcard-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
}

.bcard-time svg {
    width: 13px;
    height: 13px;
}

/* Прогресс-бар */
.bcard-progress {
    height: 6px;
    border-radius: 4px;
    background: var(--bg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.bcard-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--green-mid), var(--green));
    border-radius: 4px;
    width: 0;
}

.bcard-progress-lbl {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
    margin-top: -2px;
}

.bcard-foot {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.bcard-link {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .15s, color .15s;
}

.bcard-link:hover {
    color: var(--green-dark);
    gap: 9px;
}

.bcard-link svg {
    width: 14px;
    height: 14px;
}

.bcard-go {
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: var(--green);
    border: 1.5px solid var(--green);
    border-radius: 9px;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .15s;
}

.bcard-go:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}

.bcard-go svg {
    width: 13px;
    height: 13px;
}

/* Быстрые действия над сеткой */
.tickets-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.tickets-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: all .15s;
}

.tickets-action:hover {
    border-color: var(--green);
    color: var(--green-dark);
    background: var(--green-light);
}

.tickets-action svg {
    width: 15px;
    height: 15px;
    color: var(--green);
}

.tickets-action.primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.tickets-action.primary:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
}

.tickets-action.primary svg {
    color: #fff;
}

/* ── Search dropdown ── */
.search {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
    z-index: 9999;
    max-height: 380px;
    overflow-y: auto;
}

.search-dropdown a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #f2f2f2;
}

.search-dropdown a:last-child {
    border-bottom: none;
}

.search-dropdown a:hover {
    background: #f5f7fa;
}

.search-dropdown mark {
    background: none;
    color: inherit;
    font-weight: 600;
}

/* На десктопе баннер полностью скрыт */
.promo-mobile-footer {
    display: none;
}

/* На мобильных (экраны до 768px) */
@media (max-width: 768px) {
    .promo-mobile-footer {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 9999;
        /* Чтобы картинка была поверх всего контента */
        margin: 0;
        padding: 0;
    }

    .promo-mobile-footer img {
        width: 100%;
        display: block;
        height: auto;
    }

    /* Чтобы контент сайта в самом низу не перекрывался баннером, 
       добавим отступ нижнему футеру или body */
    body {
        padding-bottom: 60px;
        /* Подбери высоту под размер своего баннера */
    }
}