main { min-width: 0; }
img { max-width: 100%; height: auto; }
.header .nav { overflow: visible; align-items: center; }
.header .nav > a,
.header .ton-catalog-menu,
.header .ton-catalog-menu summary {
    display: flex;
    align-items: center;
    height: 24px;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 24px;
}
.header .nav a:hover,
.header .nav a:focus-visible,
.header .ton-catalog-menu summary:hover,
.header .ton-catalog-menu summary:focus-visible,
.header .ton-catalog-menu[open] summary {
    text-decoration-thickness: 2px;
}
.ton-megamenu-grid { font-weight: 400; }
.ton-home h1 { font-size: clamp(42px,5vw,76px); }
.ton-home .category h2 { color: #ffd43b; }
.ton-page, .ton-shop { padding-top: 32px; padding-bottom: 32px; }
.ton-article-shell .article-content img { display: block; max-width: 100%; height: auto!important; }
.ton-article-shell .article-content figure { max-width: 100%; margin-left: 0; margin-right: 0; }
.ton-article-shell .article-content a { text-decoration: underline; text-underline-offset: 3px; }
.ton-article-shell .article-content { min-width: 0; overflow-wrap: anywhere; }
.ton-article-shell .article-content table { display: block; max-width: 100%; overflow-x: auto; }
.ton-journal-card { display: flex; align-items: flex-end; height: auto; }
.ton-journal-body { position: relative; bottom: auto; left: auto; right: auto; width: 100%; }
.ton-journal-card::after { background: linear-gradient(180deg,#0006,#000e); }
.ton-journal-body p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.ton-journal-read { opacity: 1; transform: none; background: #171717; color: #fff; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto!important; float: none; margin: 0; padding: 18px; }
.woocommerce div.product { border: 0; display: block; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit { background: #171717; color: #fff; border: 2px solid #171717; border-radius: 3px; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: #fff; color: #171717; }
.woocommerce input, .woocommerce select, .woocommerce textarea { max-width: 100%; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute!important; width: 1px; height: 1px; overflow: hidden; }
.ton-header-search { display: flex; align-items: stretch; width: 276px; height: 42px; padding: 3px; border: 2px solid #d7dbe2; border-radius: 3px; background: #fff; transition: border-color .15s ease, outline-color .15s ease; }
.ton-header-search:hover:not(:focus-within) { border-color: #171717; outline: 2px solid #171717; outline-offset: 3px; }
.ton-header-search:focus-within { border-color: #ffd43b; outline: none; }
.ton-header-search input[type="search"] { flex: 1; width: 100%; min-width: 0; border: 0; padding: 0 11px; background: transparent; color: #17191d; outline: 0; font-size: 13px; }
.ton-header-search input[type="search"]:focus { outline: 0; box-shadow: none; }
.ton-header-search button { width: 0; max-width: 0; overflow: hidden; opacity: 0; border: 0; padding: 0; background: #ffd43b; color: #17191d; font-size: 13px; font-weight: 700; white-space: nowrap; transition: max-width .15s, width .15s, padding .15s, opacity .15s; }
.ton-header-search:focus-within button { width: 66px; max-width: 66px; opacity: 1; margin-left: 3px; border: 0; border-radius: 2px; padding: 0 11px; }
.ton-header-search button:hover { background: #f3c325; }
main .btn,
main .button,
main .ton-button,
main .guide-band a,
main .ton-catalog-help__button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 22px;
    border: 2px solid #171717;
    border-radius: 3px;
    background: #171717;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
main .btn:hover,
main .button:hover,
main .ton-button:hover,
main .guide-band a:hover,
main .ton-catalog-help__button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
main .btn:focus-visible,
main .button:focus-visible,
main .ton-button:focus-visible {
    border-color: #171717;
    background: #fff;
    color: #171717;
    outline: 2px solid #171717;
    outline-offset: 3px;
}
.ton-mobile-nav { display: none; }
@media(max-width:700px) {
    html, body { max-width: 100%; overflow-x: clip; }
    .ton-article-shell { width: 100%; max-width: 100%; min-width: 0; padding-left: 18px; padding-right: 18px; }
    .ton-article-hero { width: 100%; min-width: 0; }
    .ton-article-hero h1 { width: 100%; max-width: 100%; overflow-wrap: anywhere; }
    .ton-article-shell .article-content,
    .ton-article-shell .article-content p,
    .ton-article-shell .article-content li,
    .ton-article-shell .article-content h2,
    .ton-article-shell .article-content h3 { max-width: 100%; min-width: 0; overflow-wrap: anywhere; }
    .categories { grid-template-columns: 1fr; }
    .category { min-height: 250px; }
    .ton-article-hero h1 { font-size: clamp(28px,7vw,38px)!important; padding: 24px; }
    .woocommerce ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
    .woocommerce ul.products li.product { padding: 12px; }
    .ton-journal .ton-journal-body h2 { font-size: 22px; line-height: 1.25; }
    .header .nav { align-items: center; }
    .header .nav > a,
    .header .ton-catalog-menu summary { padding-top: 0; padding-bottom: 0; line-height: 1.5; }
    .header .head-right { order: 2; width: 100%; margin-left: 0; }
    .ton-header-search { flex: 1; width: auto; }
    .header .cart-link { flex-shrink: 0; }
    body { padding-bottom: 72px; }
    .ton-mobile-nav {
        position: fixed;
        z-index: 12000;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: repeat(5,minmax(0,1fr));
        min-height: 66px;
        padding: 7px 5px max(7px,env(safe-area-inset-bottom));
        border-top: 1px solid #dfe2e7;
        background: #fff;
        box-shadow: 0 -5px 18px rgba(0,0,0,.07);
    }
    .ton-mobile-nav a { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #17191d; font-size: 11px; line-height: 1.15; text-decoration: none; }
    .ton-mobile-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; }
    .ton-mobile-nav a:hover,
    .ton-mobile-nav a:focus-visible,
    .ton-mobile-nav a.is-active { color: #806100; }
    .ton-mobile-nav a.is-active svg { stroke-width: 2.2; }
}
