/* Template 4 (Mystery Box) — minimal redesign, scoped under .t4-page
   so it reliably overrides template-1's base styles regardless of load order. */

.t4-page {
    --t4-ink: #111111;
    --t4-paper: #ffffff;
    --t4-bg: #fafafa;
    --t4-line: #e2e2e2;
    --t4-muted: #767676;
    --t4-accent: #a8402b;
    --t4-radius: 8px;

    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background: var(--t4-paper);
    color: var(--t4-ink);
}

.t4-page * {
    box-sizing: border-box;
}

.t4-page p {
    padding: 0 20px 16px;
    color: var(--t4-muted);
}

/* ---------- Hero ---------- */

.t4-page .header {
    background: var(--t4-paper);
    padding-bottom: 0;
}

.t4-page .header h1.green_bg {
    background: transparent;
    color: var(--t4-ink);
    padding: 28px 20px 4px;
    margin: 0;
    font-size: 23px !important;
    line-height: 30px !important;
    letter-spacing: -0.01em;
    text-transform: none;
    font-weight: 700;
}

.t4-page .box_subtitle {
    display: block;
    text-align: center;
    padding: 0 20px 16px;
    color: var(--t4-muted);
    font-size: 13px;
}

.t4-page .header img {
    border: 1px solid var(--t4-line);
    border-radius: var(--t4-radius);
    width: calc(100% - 40px) !important;
    margin: 0 20px;
}

.t4-page .reyt {
    display: flex;
    align-items: center;
    margin: 14px 20px 0;
    padding: 0;
    background: none;
    color: var(--t4-muted);
    font-size: 12px;
}

.t4-page .reyt .stars {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.t4-page .reyt .stars b {
    color: var(--t4-ink);
}

/* ---------- Timer + price ---------- */

.t4-page .timer_price {
    background: var(--t4-paper);
    width: auto;
    margin: 18px 20px 0;
    padding: 14px;
    border-top: 1px solid var(--t4-line);
    border-bottom: 1px solid var(--t4-line);
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.t4-page .timer_block {
    text-align: left;
}

.t4-page .timer_block p {
    padding: 0 0 4px;
    margin: 0;
    font-size: 11px;
    color: var(--t4-muted);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.t4-page .timer {
    display: flex;
    justify-content: flex-start;
    gap: 1px;
}

.t4-page .timer_item {
    color: var(--t4-ink);
    padding: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.t4-page .timer_item:not(:last-child):after {
    content: ":";
    margin: 0 2px;
    color: var(--t4-muted);
    font-weight: 400;
}

.t4-page .price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.t4-page .price .old {
    color: var(--t4-muted);
    text-decoration: line-through;
    font-size: 12px;
    order: 1;
}

.t4-page .price .sale {
    background: none;
    color: var(--t4-accent);
    font-weight: 700;
    font-size: 11px;
    padding: 0;
    border-radius: 0;
    order: 3;
}

.t4-page .price .new {
    font-size: 20px;
    font-weight: 700;
    color: var(--t4-ink);
    order: 2;
}

/* ---------- Advantages ---------- */

.t4-page ul.ul_white {
    list-style: none;
    margin: 18px 20px 0 !important;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.t4-page ul.ul_white li {
    background: none;
    color: var(--t4-ink);
    font-size: 13px;
    line-height: 18px;
    padding: 0 0 0 20px;
    border-radius: 0;
    position: relative;
}

.t4-page ul.ul_white li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--t4-muted);
}

/* ---------- CTA button ---------- */

.t4-page .button-m {
    display: block;
    width: calc(100% - 40px);
    height: auto;
    margin: 22px 20px 0;
    padding: 15px 20px;
    background: var(--t4-ink);
    color: #ffffff;
    text-align: center;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--t4-radius);
    box-shadow: none;
    cursor: pointer;
    transition: background 0.15s ease;
}

.t4-page .button-m:hover,
.t4-page .button-m:focus {
    background: #333333;
}

.t4-page .header .guard_all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 20px;
    border: none;
    flex-wrap: wrap;
}

.t4-page .guard_all .guard,
.t4-page .guard_all .products_count {
    background: none;
    color: var(--t4-muted);
    font-size: 13px;
    padding: 0;
    border-radius: 0;
    width: auto !important;
}

.t4-page .guard_all .guard {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: none;
    float: none;
    height: auto;
    margin-right: 0;
}

.t4-page .guard_all .guard svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.t4-page .guard_all .prod1 {
    height: auto;
}

/* ---------- Value banner ---------- */

.t4-page .box_value_banner {
    margin: 0 20px;
    padding: 14px 16px;
    text-align: left;
    background: var(--t4-bg);
    border: none;
    border-left: 2px solid var(--t4-ink);
    border-radius: 0;
    font-size: 13px;
    line-height: 19px;
    color: var(--t4-ink);
    box-shadow: none;
}

.t4-page .box_value_banner b {
    color: var(--t4-ink);
}

/* ---------- Section heading ---------- */

.t4-page h2.venzel {
    background: none;
    text-align: left;
    padding: 30px 20px 14px;
    margin: 0;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: var(--t4-ink);
}

.t4-page h2.venzel .green {
    color: var(--t4-ink);
}

/* ---------- Description content ---------- */

.t4-page .opisanie.content {
    padding: 0;
    color: var(--t4-ink);
    line-height: 22px;
}

.t4-page .opisanie img {
    border-radius: var(--t4-radius);
    width: 100% !important;
}

/* ---------- What's inside the box ---------- */

.t4-page .box_contents {
    padding: 0 20px 6px;
}

.t4-page .box_contents .box_contents_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 12px 0;
}

.t4-page .box_contents .box_contents_list li {
    width: 48%;
    box-sizing: border-box;
    text-align: left;
    background: var(--t4-paper);
    border: 1px solid var(--t4-line);
    border-radius: var(--t4-radius);
    padding: 10px;
    box-shadow: none;
}

.t4-page .box_contents .box_contents_list img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.t4-page .box_contents .box_contents_list .name {
    font-size: 12px;
    line-height: 16px;
    min-height: 32px;
    color: var(--t4-ink);
    font-weight: 500;
}

.t4-page .box_contents .box_contents_list .value {
    display: inline-block;
    margin-top: 4px;
    font-weight: 700;
    color: var(--t4-ink);
    font-size: 13px;
}

.t4-page .box_contents .box_note {
    font-size: 11px;
    color: var(--t4-muted);
    text-align: left;
    padding: 12px 0 0;
}

/* ---------- Reviews ---------- */

.t4-page .b10-avas {
    padding-bottom: 6px;
}

.t4-page .b10-avas .slick-next,
.t4-page .b10-avas .slick-prev {
    top: 100px;
}

.t4-page .hit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 20px 14px;
    padding: 0 0 10px;
    background: none;
    border-bottom: 1px solid var(--t4-line);
    border-radius: 0;
    box-shadow: none;
}

.t4-page .hit p {
    padding: 0;
    font-size: 12px;
    color: var(--t4-muted);
}

.t4-page .hit-left p {
    color: var(--t4-ink);
    font-weight: 600;
}

.t4-page .hit-right p span {
    color: var(--t4-ink);
    font-weight: 600;
}

.t4-page .reviews {
    padding: 0 20px;
}

.t4-page .rev {
    background: var(--t4-paper);
    border: 1px solid var(--t4-line);
    border-radius: var(--t4-radius);
    padding: 16px;
    margin: 0 6px;
    box-shadow: none;
    height: auto !important;
}

.t4-page .rev img {
    border-radius: 4px;
    margin-bottom: 10px;
}

.t4-page .rev p {
    padding: 0 0 10px;
    font-size: 13px;
    line-height: 19px;
    color: var(--t4-ink);
}

.t4-page .rev p.name {
    padding: 0;
    font-size: 12px;
    color: var(--t4-muted);
}

.t4-page .rev p.name b {
    color: var(--t4-ink);
}

/* ---------- Trust info (delivery / payment / guarantee) ---------- */

.t4-page ul.deliv {
    list-style: none;
    margin: 0;
    padding: 6px 20px 24px;
    border-top: 1px solid var(--t4-line);
}

.t4-page ul.deliv li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    text-align: left;
    border-bottom: 1px solid var(--t4-line);
}

.t4-page ul.deliv li:last-child {
    border-bottom: none;
}

.t4-page ul.deliv li img {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.t4-page ul.deliv li .deliv_text {
    flex: 1 1 auto;
}

.t4-page ul.deliv li h3 {
    font-size: 13px;
    margin: 0 0 6px;
    color: #ffffff;
    font-weight: 600;
}

.t4-page ul.deliv li p {
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 17px;
    color: #ffffff;
}

/* ---------- Process steps ---------- */

.t4-page ul.deliv_v2 {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 6px 20px 20px;
}

.t4-page ul.deliv_v2 li {
    flex: 1 1 50%;
    background: none;
    border: none;
    border-radius: 0;
    padding: 14px 10px;
    text-align: center;
    box-shadow: none;
}

.t4-page ul.deliv_v2 li img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 8px;
}

.t4-page ul.deliv_v2 li h3 {
    font-size: 12px;
    margin: 0 0 4px;
    color: var(--t4-ink);
    font-weight: 600;
}

.t4-page ul.deliv_v2 li p {
    padding: 0;
    font-size: 11px;
    line-height: 15px;
    color: var(--t4-muted);
}

.t4-page .border_bottom {
    border-bottom: none;
}

/* ---------- Box size dropdown (Select2) ---------- */

.t4-page .box_size_picker_label {
    padding: 0 0 8px;
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--t4-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.t4-page select#box_size_select {
    margin-bottom: 14px;
}

.t4-page .select2-container {
    width: 100% !important;
    margin-bottom: 14px;
}

.t4-page .select2-container .select2-selection--single {
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--t4-line);
    border-radius: var(--t4-radius);
    background: var(--t4-paper);
    display: flex;
    align-items: center;
}

.t4-page .select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: normal;
    font-size: 14px;
    font-weight: 500;
    color: var(--t4-ink);
}

.t4-page .select2-container .select2-selection--single .select2-selection__arrow {
    height: 20px;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
}

.t4-page .select2-container .select2-selection--single .select2-selection__arrow b {
    top: 50%;
    margin-top: -2px;
}

.t4-page .select2-container--open .select2-selection--single {
    border-color: var(--t4-ink);
}

/* Select2's dropdown renders appended to <body>, outside .t4-page — but this
   stylesheet only loads on template-4 pages, so no extra scoping is needed. */
.select2-dropdown {
    border-color: var(--t4-ink);
    border-radius: var(--t4-radius);
    overflow: hidden;
    margin-top: 20px;
}

.select2-container--default .select2-results > .select2-results__options {
    margin-top: 20px;
}

.select2-results__option--highlighted {
    background: var(--t4-bg) !important;
    color: var(--t4-ink) !important;
}

.t4-page .header.footer .select2-container .select2-selection--single {
    background: var(--t4-paper);
    border-color: transparent;
}

/* ---------- Order form (bottom block) ---------- */

.t4-page .header.footer {
    background: var(--t4-bg);
    margin-top: 30px;
    border-top: 1px solid var(--t4-line);
    border-radius: 0;
}

.t4-page .header.footer h1.green_bg {
    display: none;
}

.t4-page .header.footer img {
    display: none;
}

.t4-page .header.footer .reyt {
    display: none;
}

.t4-page .header.footer .box_subtitle {
    display: none;
}

.t4-page .header.footer h3 {
    text-align: left;
    color: var(--t4-ink);
    font-size: 17px;
    font-weight: 700;
    margin: 24px 20px 4px;
}

.t4-page .header.footer .posttile {
    text-align: left;
    color: var(--t4-muted);
    font-size: 12px;
    padding: 0 20px 6px;
}

.t4-page .m1-form {
    padding: 10px 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.t4-page .m1-form .field {
    width: 100%;
    height: 60px;
    line-height: normal;
    padding: 0 14px;
    margin: 0;
    border-radius: var(--t4-radius);
    border: 1px solid var(--t4-line);
    font-size: 14px;
    background: var(--t4-paper);
    color: var(--t4-ink);
}

.t4-page .m1-form .field::placeholder {
    color: var(--t4-muted);
}

.t4-page .m1-form .field:focus {
    outline: none;
    border-color: var(--t4-ink);
}

.t4-page .header.footer .box_size_picker_label {
    color: var(--t4-muted);
}

.t4-page .header.footer .m1-form button.button-m {
    margin-top: 4px;
}

.t4-page .header.footer .guard_all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 20px 28px;
    border: none;
    text-align: center;
}

.t4-page .header.footer .guard_all .guard,
.t4-page .header.footer .guard_all .products_count {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--t4-muted);
}

.t4-page .header.footer .guard_all .guard:after {
    content: "";
    display: inline-block;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--t4-line);
    margin-left: 8px;
    vertical-align: middle;
}

.t4-page .header.footer .guard_all .products_count b {
    color: var(--t4-ink);
}

/* ---------- Footer ---------- */

.t4-page .cpu {
    padding: 20px 20px 30px;
}

.t4-page .cpu p {
    padding: 0;
    font-size: 11px;
    color: var(--t4-muted);
}

.t4-page .cpu a {
    color: var(--t4-muted) !important;
}

.t4-page .phone-validation-error {
    margin-top: 4px !important;
}
