/*
 * URTA — слой дизайна поверх темы Webasyst «Дефолт» (2026-09-30).
 * Стили default.css лежат в @layer, поэтому этот файл без слоёв всегда главнее.
 * Витрина всегда светлая: color-scheme: light.
 */

:root {
    color-scheme: light !important;

    --u-ink: #101114;
    --u-ink-2: #2b2e35;
    --u-muted: #6b6f78;
    --u-line: #e8e6e0;
    --u-bg: #f5f4f0;
    --u-surface: #ffffff;
    --u-accent: #ff5a1f;
    --u-accent-hover: #ff7440;
    --u-accent-press: #e2460f;
    --u-accent-soft: #fff0e9;
    --u-lime: #d4f73c;
    --u-radius: 20px;
    --u-radius-sm: 12px;
    --u-shadow: 0 1px 2px rgba(16, 17, 20, .04), 0 8px 24px rgba(16, 17, 20, .06);
    --u-shadow-lg: 0 2px 4px rgba(16, 17, 20, .05), 0 24px 48px rgba(16, 17, 20, .12);
    --u-ease: cubic-bezier(.2, .8, .2, 1);

    --accent-color: var(--u-accent) !important;
    --accent-color-light: var(--u-accent-hover) !important;
    --accent-color-dark: var(--u-accent-press) !important;
    --bg-color-light: var(--u-bg) !important;
    --bg-color: var(--u-bg) !important;
    --bg-color-accent: var(--u-surface) !important;
    --text-color: var(--u-ink) !important;
    --link-color: var(--u-ink) !important;
    --link-hover-color: var(--u-accent) !important;
    --link-visited-color: var(--u-ink) !important;
    --font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    --element-border-radius: var(--u-radius-sm) !important;
    --header-cart-total-bg-color: var(--u-accent) !important;
    --shadow: var(--u-shadow) !important;
    --shadow1: 0 1px 0 var(--u-line) !important;
}

html { scroll-behavior: smooth; }
body {
    background: var(--u-bg);
    color: var(--u-ink);
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    line-height: 1.45;
}
::selection { background: var(--u-lime); color: var(--u-ink); }

.container { --container-max-width: 1240px; --container-min-width: 0; --container-padding: 20px; }

h1, h2, h3, h4, h5 { font-family: var(--font-family); letter-spacing: -.02em; color: var(--u-ink); }
h1 { font-weight: 800; }
h2, h3 { font-weight: 750; }

a { transition: color .2s var(--u-ease); }

/* ---------- Кнопки ---------- */
button, .button, input[type="submit"], input[type="button"] {
    font-family: var(--font-family);
    font-weight: 600;
    border-radius: 999px !important;
    transition: transform .2s var(--u-ease), background-color .2s var(--u-ease), box-shadow .2s var(--u-ease);
}
button:not(.gray):not(#mobile-nav-toggle):not(.increase-volume):hover,
.button:not(.gray):hover { transform: translateY(-1px); }
button:active, .button:active { transform: translateY(0) scale(.98); }

.u-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .95rem 1.6rem; border-radius: 999px; font-weight: 650; font-size: 1rem; line-height: 1;
    text-decoration: none !important; white-space: nowrap;
    transition: transform .25s var(--u-ease), background-color .25s var(--u-ease), box-shadow .25s var(--u-ease), color .25s;
}
.u-btn svg { transition: transform .25s var(--u-ease); }
.u-btn:hover svg { transform: translateX(4px); }
.u-btn--primary { background: var(--u-accent); color: #fff !important; box-shadow: 0 10px 30px -8px rgba(255, 90, 31, .65); }
.u-btn--primary:hover { background: var(--u-accent-hover); transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 90, 31, .75); }
.u-btn--ghost { background: rgba(255, 255, 255, .08); color: #fff !important; border: 1px solid rgba(255, 255, 255, .22); }
.u-btn--ghost:hover { background: rgba(255, 255, 255, .16); }
.u-btn--light { background: #fff; color: var(--u-ink) !important; }
.u-btn--light:hover { transform: translateY(-2px); }
.u-btn--outline-light { color: #fff !important; border: 1px solid rgba(255, 255, 255, .4); }
.u-btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Шапка ---------- */
header.globalheader {
    position: sticky; top: 0; z-index: 998;
    margin-bottom: 1.75rem;
    padding: .7rem 0 .8rem;
    background: rgba(255, 255, 255, .86) !important;
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 1px 0 var(--u-line);
    transition: box-shadow .3s var(--u-ease), padding .3s var(--u-ease);
}
header.globalheader.u-scrolled { box-shadow: 0 1px 0 var(--u-line), 0 10px 30px -12px rgba(16, 17, 20, .18); }
html:not(.is-order-page) .maincontent { margin-top: 0; }

#globalnav h2 { margin: 0 1.5rem 0 0; }
#globalnav h2 a {
    display: inline-flex; align-items: center; gap: .45rem;
    font-size: 1.55rem; font-weight: 850; letter-spacing: -.04em; color: var(--u-ink) !important; text-decoration: none;
}
#globalnav h2 a::before {
    content: ""; width: 26px; height: 26px; border-radius: 8px;
    background:
        radial-gradient(circle at 50% 50%, #fff 0 4px, transparent 4.5px),
        conic-gradient(from 210deg, var(--u-accent), #ffb03a, var(--u-accent));
    box-shadow: 0 4px 14px -4px rgba(255, 90, 31, .8);
}
header .apps li a { color: var(--u-ink-2) !important; font-weight: 500; font-size: .95rem; }
header .apps li a:hover, header .apps li.selected a { color: var(--u-accent) !important; }

#cart .cart-summary {
    display: inline-flex; align-items: center; gap: .15rem;
    padding: .45rem .95rem .45rem .7rem; border-radius: 999px;
    background: var(--u-ink); color: #fff !important; text-decoration: none; font-weight: 600;
    transition: background-color .2s var(--u-ease), transform .2s var(--u-ease);
}
#cart .cart-summary:hover { background: var(--u-accent); transform: translateY(-1px); }
#cart .cart-summary svg { color: #fff; }
#cart .cart-total {
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
    background: var(--u-accent); color: #fff; font-size: .78rem;
    display: inline-flex; align-items: center; justify-content: center;
}
#cart .cart-total:empty { display: none; }
#cart:not(.empty) .cart-summary:hover .cart-total { background: #fff; color: var(--u-accent); }
#cart.u-bump .cart-summary { animation: u-bump .6s var(--u-ease); }
@keyframes u-bump { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.12); } 65% { transform: scale(.96); } }

header .appnav { margin-top: .6rem; gap: .75rem !important; }
header .category-btn-item > a.button {
    background: var(--u-accent) !important; color: #fff !important;
    padding: .8rem 1.25rem; border-radius: 999px !important; font-weight: 650;
    box-shadow: 0 8px 22px -10px rgba(255, 90, 31, .9);
}
header .category-btn-item > a.button:hover { background: var(--u-accent-hover) !important; }
header .search-wrapper input {
    height: 46px; border-radius: 999px !important;
    background: var(--u-bg) !important; border: 1px solid transparent !important;
    padding-left: 1.2rem !important; font-family: var(--font-family); font-size: .98rem;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
header .search-wrapper input:focus {
    background: #fff !important; border-color: var(--u-accent) !important;
    box-shadow: 0 0 0 4px rgba(255, 90, 31, .14); outline: none;
}
header .flyout { border-radius: 0 0 var(--u-radius) var(--u-radius); box-shadow: var(--u-shadow-lg); }
header .departments a:hover { color: var(--u-accent) !important; }

/* ---------- Плашка бесплатной доставки ---------- */
.u-promo {
    background: var(--u-ink); color: #fff; text-align: center; font-size: .88rem; line-height: 1.35;
    padding: .55rem 16px;
}
.u-promo b { color: var(--u-lime); font-weight: 650; }
.u-promo a { color: #fff !important; opacity: .7; margin-left: .5rem; text-decoration: underline; }
.u-promo a:hover { opacity: 1; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { font-size: .9rem; margin-bottom: 1rem; }
.breadcrumbs a { color: var(--u-muted) !important; }
.breadcrumbs a:hover { color: var(--u-accent) !important; }

/* ---------- Главная: hero ---------- */
.u-hero {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: 32px; margin: .25rem 0 1.25rem;
    padding: clamp(2rem, 5vw, 4.5rem) clamp(1.25rem, 4.5vw, 4rem);
    background: #0f1013;
    color: #fff;
}
.u-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.u-hero__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .7; pointer-events: none; }
.u-hero__glow--1 { width: 460px; height: 460px; right: -80px; top: -140px; background: var(--u-accent); animation: u-drift 14s ease-in-out infinite alternate; }
.u-hero__glow--2 { width: 360px; height: 360px; right: 26%; bottom: -200px; background: #7c5cff; opacity: .45; animation: u-drift 18s ease-in-out infinite alternate-reverse; }
@keyframes u-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 50px) scale(1.15); } }

.u-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; }
.u-hero__title { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.9rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; margin: 1.1rem 0 1.1rem; }
.u-accent-text {
    background: linear-gradient(92deg, #ff8a4c, var(--u-accent) 45%, #ffc53d);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.u-hero__lead { color: rgba(255, 255, 255, .72); font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.55; max-width: 34rem; margin: 0 0 1.8rem; }
.u-hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.2rem; }

.u-chip {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .45rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 550;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .9);
}
.u-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--u-lime); box-shadow: 0 0 0 0 rgba(212, 247, 60, .7); animation: u-pulse 2s infinite; }
@keyframes u-pulse { 0% { box-shadow: 0 0 0 0 rgba(212, 247, 60, .6); } 70% { box-shadow: 0 0 0 10px rgba(212, 247, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 247, 60, 0); } }

.u-hero__facts { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 1.4rem 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.u-hero__facts li { display: flex; flex-direction: column; gap: .35rem; margin: 0; }
.u-hero__facts strong { font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; color: #fff; }
.u-hero__facts span { font-size: .82rem; line-height: 1.3; color: rgba(255, 255, 255, .55); }

.u-hero__showcase { position: relative; height: 440px; }
.u-float-card {
    position: absolute; width: 220px; padding: 12px 12px 14px;
    display: flex; flex-direction: column; gap: 6px;
    background: rgba(255, 255, 255, .96); border-radius: 22px; color: var(--u-ink) !important; text-decoration: none !important;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
    transition: transform .45s var(--u-ease), box-shadow .45s var(--u-ease);
    animation: u-float 7s ease-in-out infinite;
}
.u-float-card:hover { box-shadow: 0 40px 70px -20px rgba(0, 0, 0, .7); z-index: 5; }
.u-float-card__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 14px; background: #f3f2ee; overflow: hidden; }
.u-float-card__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.u-float-card__name { font-size: .85rem; font-weight: 550; line-height: 1.25; }
.u-float-card__price { font-size: 1.05rem; font-weight: 800; }
.u-float-card--1 { right: 36%; top: 6%; --r: -6deg; transform: rotate(-6deg); animation-delay: 0s; }
.u-float-card--2 { right: 2%; top: 0; --r: 5deg; transform: rotate(5deg); animation-delay: -2.3s; }
.u-float-card--3 { right: 16%; bottom: -2%; --r: -2deg; transform: rotate(-2deg); animation-delay: -4.6s; }
@keyframes u-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.u-float-card:hover { transform: rotate(0deg) scale(1.04); }

/* ---------- Главная: преимущества ---------- */
.u-perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 3.5rem; }
.u-perk {
    display: flex; gap: 1rem; align-items: center;
    padding: 1.25rem 1.35rem; background: var(--u-surface); border-radius: var(--u-radius); box-shadow: var(--u-shadow);
    transition: transform .3s var(--u-ease), box-shadow .3s var(--u-ease);
}
.u-perk:hover { transform: translateY(-3px); box-shadow: var(--u-shadow-lg); }
.u-perk__icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--u-accent-soft); color: var(--u-accent); }
.u-perk b { display: block; font-size: 1rem; margin-bottom: .2rem; }
.u-perk span { font-size: .87rem; color: var(--u-muted); line-height: 1.35; }

/* ---------- Секции ---------- */
.u-section { margin: 0 0 4rem; }
.u-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.4rem; }
.u-section__head h2 { font-size: clamp(1.6rem, 2.6vw, 2.25rem); margin: 0; }
.u-section__head p { margin: 0; color: var(--u-muted); font-size: .92rem; }
.u-empty { padding: 2rem; background: #fff; border-radius: var(--u-radius); color: var(--u-muted); }

.u-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.u-cat {
    position: relative; overflow: hidden; min-height: 150px;
    display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem;
    padding: 1.3rem 1.4rem; border-radius: var(--u-radius); text-decoration: none !important; color: var(--u-ink) !important;
    transition: transform .35s var(--u-ease), box-shadow .35s var(--u-ease);
}
.u-cat::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -70px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: transform .5s var(--u-ease); }
.u-cat:hover { transform: translateY(-4px); box-shadow: var(--u-shadow-lg); }
.u-cat:hover::after { transform: scale(1.25); }
.u-cat--1 { background: linear-gradient(135deg, #ffe3d6, #ffc7ae); }
.u-cat--2 { background: linear-gradient(135deg, #eef9c4, #d4f73c); }
.u-cat--3 { background: linear-gradient(135deg, #e3ddff, #c3b6ff); }
.u-cat--4 { background: linear-gradient(135deg, #d9f1ff, #a9dcff); }
.u-cat__name { position: relative; z-index: 1; font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.u-cat__count { position: relative; z-index: 1; font-size: .85rem; color: rgba(16, 17, 20, .6); }
.u-cat__arrow {
    position: absolute; z-index: 1; top: 1.1rem; right: 1.1rem; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: var(--u-ink); color: #fff;
    transition: transform .3s var(--u-ease), background-color .3s;
}
.u-cat:hover .u-cat__arrow { transform: rotate(-45deg); background: var(--u-accent); }

.u-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.u-steps li { position: relative; margin: 0; padding: 1.6rem 1.5rem 1.5rem; background: #fff; border-radius: var(--u-radius); box-shadow: var(--u-shadow); display: flex; flex-direction: column; gap: .45rem; }
.u-steps li::marker { content: none; }
.u-steps__n { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--u-ink); color: #fff; font-weight: 800; margin-bottom: .6rem; }
.u-steps li:nth-child(2) .u-steps__n { background: var(--u-accent); }
.u-steps li:nth-child(3) .u-steps__n { background: var(--u-lime); color: var(--u-ink); }
.u-steps b { font-size: 1.08rem; }
.u-steps li > span:last-child { color: var(--u-muted); font-size: .92rem; line-height: 1.45; }

.u-cta {
    position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
    margin: 0 0 3rem; padding: clamp(1.75rem, 4vw, 3rem); border-radius: 28px;
    background: linear-gradient(120deg, var(--u-accent) 0%, #ff7a2f 55%, #ffae3d 100%); color: #fff;
}
.u-cta::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; bottom: -220px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .12); }
.u-cta h2 { color: #fff; margin: 0 0 .5rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.u-cta p { margin: 0; color: rgba(255, 255, 255, .88); line-height: 1.5; }
.u-cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Список товаров ---------- */
ul.thumbs.product-list { gap: 1rem !important; }
ul.thumbs.product-list > li {
    position: relative;
    padding: 12px 12px 16px !important; margin: 0 !important;
    background: var(--u-surface); border-radius: var(--u-radius);
    box-shadow: var(--u-shadow);
    transition: transform .35s var(--u-ease), box-shadow .35s var(--u-ease);
}
ul.thumbs.product-list > li:hover { transform: translateY(-5px); box-shadow: var(--u-shadow-lg); }
ul.thumbs.product-list .image {
    aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: #f3f2ee;
    display: flex; align-items: center; justify-content: center;
}
ul.thumbs.product-list .image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--u-ease); }
ul.thumbs.product-list > li:hover .image img { transform: scale(1.06); }
ul.thumbs.product-list .pricing { margin-top: 12px !important; }
ul.thumbs.product-list .price { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--u-ink); }
ul.thumbs.product-list .compare-at-price { color: var(--u-muted); font-size: .95rem; }
ul.thumbs.product-list h5 { font-size: .95rem; font-weight: 550; line-height: 1.3; margin: 0; color: var(--u-ink-2); }
ul.thumbs.product-list a:hover h5 { color: var(--u-accent); }
ul.thumbs.product-list .summary { display: none; }
ul.thumbs.product-list .offers { padding-top: 14px !important; }
ul.thumbs.product-list .addtocart-btn { height: 44px; background: var(--u-ink) !important; color: #fff !important; }
ul.thumbs.product-list .addtocart-btn:hover { background: var(--u-accent) !important; }
ul.thumbs.product-list .gotocart-btn { background: var(--u-lime) !important; color: var(--u-ink) !important; border-radius: 999px !important; }
ul.thumbs.product-list .compare { color: var(--u-muted); }
ul.thumbs.product-list .compare svg.active { color: var(--u-accent); }
.badge-wrapper .badge { border-radius: 999px !important; font-weight: 700; }

/* ---------- Карточка товара ---------- */
#page-content h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; }
.product-media-purchase {
    background: var(--u-surface) !important; border-radius: 28px !important; box-shadow: var(--u-shadow) !important;
    padding: clamp(1rem, 2.5vw, 2rem) !important;
}
.product-media .img-main, .product-media .product-gallery { border-radius: 18px; }
.product-media .img-thumbs img, .product-media .more-images img { border-radius: 10px; }
.product-purchase .price { font-size: clamp(2rem, 3.4vw, 2.6rem) !important; font-weight: 800; letter-spacing: -.03em; }
.product-purchase .purchase button[type="submit"],
.product-purchase .addtocart .button,
.product-purchase input[type="submit"] {
    min-height: 52px; padding-left: 2rem !important; padding-right: 2rem !important; font-size: 1.05rem;
    background: var(--u-accent) !important; color: #fff !important; box-shadow: 0 12px 28px -12px rgba(255, 90, 31, .9);
}
.product-purchase .purchase button[type="submit"]:hover { background: var(--u-accent-hover) !important; }
.product-purchase .increase-volume { border-radius: 999px !important; }
.product-purchase .quantity-wrapper input { border-radius: 999px !important; }
.product-purchase .stocks .text-green,
.product-purchase .stocks strong { color: #1a9e46; font-weight: 600; }
.product-topbar .selected, .product-topbar .selected a { background: transparent !important; color: var(--u-ink) !important; font-weight: 700; }
.product-topbar .selected { box-shadow: inset 0 -2px 0 var(--u-accent); border-radius: 0 !important; }
.u-trust {
    display: grid; gap: .55rem; margin-top: 1.25rem; padding: 1rem 1.1rem;
    border-radius: 16px; background: var(--u-bg); font-size: .88rem; color: var(--u-ink-2);
}
.u-trust div { display: flex; align-items: flex-start; gap: .55rem; line-height: 1.35; }
.u-trust div::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--u-lime) var(--check-svg) center / 9px no-repeat; }
.s-product-desc, .product-info { line-height: 1.6; }
.content .reviews, #page-content .s-description { line-height: 1.6; }

/* ---------- Выбор цвета и размера ---------- */
ul.skus.u-skus-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.u-opts { display: grid; gap: 1.1rem; margin: .4rem 0 1.2rem; }
.u-opt-head { font-size: .92rem; color: var(--u-muted); margin-bottom: .5rem; }
.u-opt-head b { color: var(--u-ink); font-weight: 650; }
.u-opt-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.u-opt {
    min-width: 48px; height: 44px; padding: 0 .95rem; border-radius: 12px !important;
    background: #fff !important; color: var(--u-ink) !important; border: 1.5px solid var(--u-line) !important;
    font-weight: 600; font-size: .95rem; cursor: pointer; box-shadow: none !important;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.u-opt:hover { border-color: var(--u-ink) !important; transform: none !important; }
.u-opt.is-on { border-color: var(--u-accent) !important; box-shadow: 0 0 0 3px rgba(255, 90, 31, .18) !important; }
.u-opt.is-off { opacity: .35; text-decoration: line-through; }
.u-opt--img { width: 64px; height: 64px; padding: 3px; min-width: 0; }
.u-opt--img img { width: 100%; height: 100%; object-fit: cover; border-radius: 9px; display: block; }
.u-opt--img.is-off { text-decoration: none; }

/* ---------- Характеристики в описании товара ---------- */
table.u-specs { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; font-size: .95rem; }
table.u-specs td { padding: .55rem .75rem; border-bottom: 1px solid var(--u-line); vertical-align: top; }
table.u-specs td:first-child { color: var(--u-muted); width: 42%; }
table.u-specs tr.u-specs__group th { text-align: left; padding: 1rem .75rem .4rem; font-size: .85rem;
    text-transform: uppercase; letter-spacing: .06em; color: var(--u-ink); border-bottom: 2px solid var(--u-ink); }
.s-description h3, #page-content .product-info h3 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }

/* ---------- Страницы (о магазине, доставка и т. п.) ---------- */
.maincontent .content > h1:first-child,
.maincontent article > h1:first-child { margin-top: .5rem; }
.u-page {
    background: #fff; border-radius: var(--u-radius); padding: clamp(1.25rem, 3vw, 2.5rem); box-shadow: var(--u-shadow);
    line-height: 1.65;
}

.u-page { max-width: 860px; }
.u-page h1 { margin-top: 0; }
.u-page h2 { font-size: 1.35rem; margin: 1.6rem 0 .5rem; }
.u-page p { margin: 0 0 .9rem; color: var(--u-ink-2); }
.u-page a { color: var(--u-accent) !important; }
/* второе меню страниц под шапкой на страницах сайта дублирует верхнее */
header .appnav > ul.pages:not(.flyout-nav) { display: none; }

/* ---------- Подвал ---------- */
footer.globalfooter { background: var(--u-ink) !important; color: rgba(255, 255, 255, .7); margin-top: 3rem; padding-top: 0 !important; border: 0 !important; }
footer.globalfooter a { color: rgba(255, 255, 255, .78) !important; }
footer.globalfooter a:hover { color: #fff !important; }
footer.globalfooter .appfooter { background: transparent !important; border-top: 1px solid rgba(255, 255, 255, .1) !important; color: rgba(255, 255, 255, .45); }
footer.globalfooter .appfooter select { background-color: rgba(255, 255, 255, .08) !important; color: #fff !important; border-radius: 999px; border: 0; }
footer.globalfooter .appfooter select option { color: var(--u-ink); }
.u-foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: 3.25rem 0 2.5rem; }
footer.globalfooter .u-foot p.u-foot__brand, .u-foot__brand { font-size: 1.7rem; font-weight: 850; letter-spacing: -.04em; color: #fff; margin: 0 0 .75rem; }
.u-foot p { margin: 0 0 .5rem; line-height: 1.5; font-size: .92rem; }
.u-foot h4 { color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1rem; font-weight: 700; }
.u-foot ul { list-style: none; margin: 0; padding: 0; }
.u-foot li { margin: 0 0 .55rem; font-size: .93rem; }
.u-foot .u-foot__phone { display: inline-block; font-size: 1.3rem; font-weight: 750; color: #fff !important; margin-bottom: .35rem; }

/* ---------- Появление при прокрутке ---------- */
.u-js .u-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--u-ease), transform .7s var(--u-ease); }
.u-js .u-reveal.u-in { opacity: 1; transform: none; }
.u-js ul.thumbs.product-list > li.u-reveal { transition: opacity .7s var(--u-ease), transform .7s var(--u-ease), box-shadow .35s var(--u-ease); }
.u-js ul.thumbs.product-list > li.u-reveal.u-in:hover { transform: translateY(-5px); }

/* ---------- Кнопка «наверх» ---------- */
.u-top {
    position: fixed; left: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: var(--u-ink); color: #fff; border: 0; cursor: pointer;
    box-shadow: var(--u-shadow-lg); opacity: 0; pointer-events: none; transform: translateY(12px);
    transition: opacity .3s, transform .3s var(--u-ease), background-color .2s;
}
.u-top.u-show { opacity: 1; pointer-events: auto; transform: none; }
.u-top:hover { background: var(--u-accent); }
.u-top svg { transform: rotate(-90deg); }

/* Куки-плашка */
#cookie-agreement .cookie-agreement-content { border-radius: 16px !important; box-shadow: var(--u-shadow-lg) !important; }
#cookie-agreement button { background: var(--u-ink) !important; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
    .u-hero__grid { grid-template-columns: 1fr; }
    .u-hero__showcase { height: 300px; }
    .u-float-card { width: 170px; }
    .u-float-card--1 { right: auto; left: 0; }
    .u-float-card--2 { right: 0; }
    .u-float-card--3 { right: 30%; bottom: -6%; }
    .u-foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .container { --container-padding: 16px; }
    header.globalheader { padding: .55rem 0 .6rem; margin-bottom: 1rem; }
    .u-hero { border-radius: 24px; }
    .u-hero__facts { gap: 1.1rem; }
    .u-hero__facts strong { font-size: 1.15rem; }
    .u-hero__showcase { display: none; }
    .u-perks, .u-steps { grid-template-columns: 1fr; }
    .u-section { margin-bottom: 2.75rem; }
    .u-foot { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2.5rem; }
    ul.thumbs.product-list > li { padding: 8px 8px 12px !important; border-radius: 16px; }
    ul.thumbs.product-list .price { font-size: 1.1rem; }
    ul.thumbs.product-list h5 { font-size: .86rem; }
    .u-cta__actions, .u-cta__actions .u-btn { width: 100%; }
    .u-top { left: auto; right: 16px; bottom: 84px; }
    #cart .cart-summary { padding: .4rem .6rem; min-width: 44px; justify-content: center; }
    #cart .cart-summary svg { width: 24px; height: 24px; }
}

/* Категории на главной, телефон: компактная сетка 2×4 и кнопка «Все категории» (2026-10-04). Десктоп не меняется. */
.u-cats-more { display: none; }
@media (max-width: 640px) {
    .u-cats { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .u-cat { min-height: 84px; padding: .75rem .85rem; gap: .15rem; }
    .u-cat::after { width: 110px; height: 110px; right: -45px; top: -55px; }
    .u-cat__name { font-size: .92rem; padding-right: 1.4rem; }
    .u-cat__count { font-size: .75rem; }
    .u-cat__arrow { width: 26px; height: 26px; top: .55rem; right: .55rem; }
    .u-cat__arrow svg { width: 14px; height: 14px; }
    .u-cats-toggle:not(:checked) + .u-cats .u-cat--more { display: none; }
    .u-cats-more {
        display: flex; align-items: center; justify-content: center; margin-top: .7rem; padding: .85rem;
        border-radius: var(--u-radius); background: #fff; box-shadow: var(--u-shadow, 0 2px 10px rgba(0,0,0,.06));
        font-weight: 700; cursor: pointer; color: var(--u-ink);
    }
    .u-cats-toggle:checked ~ .u-cats-more { display: none; }
}

/* Главная на телефоне: компактный баннер и плашки, чтобы категории были на первом экране (2026-10-04). Десктоп не меняется. */
@media (max-width: 640px) {
    .u-hero { padding: 1.05rem 1.1rem 1rem; border-radius: 20px; margin: 0 0 .7rem; }
    .u-hero .u-chip { display: none; }
    .u-hero__title { font-size: 1.5rem; line-height: 1.08; margin: 0 0 .7rem; }
    .u-hero__lead { display: none; }
    .u-hero__cta { margin-bottom: .8rem; gap: .5rem; }
    .u-hero__cta .u-btn { padding: .6rem 1rem; font-size: .9rem; }
    .u-hero__cta .u-btn--ghost { display: none; }
    .u-hero__facts { gap: .5rem; padding-top: .65rem; justify-content: space-between; }
    .u-hero__facts li { gap: .1rem; }
    .u-hero__facts strong { font-size: .95rem; }
    .u-hero__facts span { font-size: .68rem; line-height: 1.2; }
    .u-perks { grid-template-columns: repeat(3, 1fr); gap: .45rem; margin-bottom: 1.4rem; }
    .u-perk { flex-direction: column; justify-content: center; gap: 0; padding: .6rem .4rem; text-align: center; }
    .u-perk__icon { display: none; }
    .u-perk b { font-size: .7rem; line-height: 1.2; margin: 0; }
    .u-perk span { display: none; }
    /* «Каталог товаров»: список с прокруткой вместо бесконечной простыни */
    header .category-btn-item .flyout { max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .u-js .u-reveal { opacity: 1; transform: none; }
}

/* «Каталог товаров» — раскрывающийся список (2026-10-05): главные разделы, по нажатию подразделы; список не длиннее экрана. */
header ul.flyout-nav li.category-btn-item.submenu-is-shown > .flyout {
    max-height: calc(100vh - var(--globalheader-height, 4rem) - 12px);
    max-height: calc(100dvh - var(--globalheader-height, 4rem) - 12px);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
header ul.flyout-nav li .flyout .departments ul.menu-v.u-acc {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 1.5rem; align-items: start;
}
header ul.flyout-nav li .flyout .departments ul.menu-v.u-acc > li {
    width: auto; margin: 0; padding: 0; border-bottom: 1px solid rgba(0,0,0,.07);
}
header ul.flyout-nav li .flyout .departments ul.menu-v.u-acc > li > a {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .7rem .25rem; font-size: 1rem; line-height: 1.25;
}
header ul.flyout-nav li .flyout .departments ul.menu-v.u-acc > li.u-acc-has > a::after {
    content: ""; flex: none; width: .5em; height: .5em; margin-right: .2em;
    border: solid currentColor; border-width: 0 .14em .14em 0; transform: rotate(45deg) translateY(-25%);
    opacity: .55; transition: transform .2s;
}
header ul.flyout-nav li .flyout .departments ul.menu-v.u-acc > li.u-open > a::after { transform: rotate(-135deg); }
header ul.flyout-nav li .flyout .departments ul.menu-v.u-acc > li > ul { display: none; padding: 0 0 .6rem .6rem; margin: 0; }
header ul.flyout-nav li .flyout .departments ul.menu-v.u-acc > li.u-open > ul { display: block; }
header ul.flyout-nav li .flyout .departments ul.menu-v.u-acc > li > ul > li { width: auto; }
header ul.flyout-nav li .flyout .departments ul.menu-v.u-acc > li > ul > li > a { display: block; padding: .35rem 0; font-size: .95rem; }
header ul.flyout-nav li .flyout .departments ul.menu-v.u-acc > li > ul > li.u-acc-all > a { font-weight: 600; }
@media (max-width: 640px) {
    header ul.flyout-nav li .flyout .departments ul.menu-v.u-acc { grid-template-columns: 1fr; }
}

/* Подбор аналога по фото шильдика или BOM (07.10.2026), разметку рисует urta.js в [data-urta-rfq] */
.u-rfq { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2rem; align-items: start; margin: 2.5rem 0; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--u-ink); color: #fff; border-radius: var(--u-radius); box-shadow: var(--u-shadow-lg); }
.u-rfq h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: .8rem 0 .6rem; line-height: 1.15; }
.u-rfq p { color: rgba(255, 255, 255, .78); margin: 0 0 1rem; line-height: 1.5; }
.u-rfq .u-chip { background: rgba(255, 255, 255, .1); color: #fff; }
.u-rfq__facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.u-rfq__facts li { padding-left: 1.4rem; position: relative; color: rgba(255, 255, 255, .9); font-size: .95rem; }
.u-rfq__facts li::before { content: ""; position: absolute; left: 0; top: .45em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--u-accent); }
.u-rfq__form { display: grid; gap: .7rem; background: var(--u-surface); color: var(--u-ink); padding: 1.1rem; border-radius: var(--u-radius-sm); }
.u-rfq__form input, .u-rfq__form textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--u-line); border-radius: 10px; padding: .7rem .8rem; font: inherit; font-size: 16px; background: #fff; color: var(--u-ink); }
.u-rfq__form input:focus, .u-rfq__form textarea:focus { outline: 2px solid var(--u-accent); outline-offset: 0; border-color: transparent; }
.u-rfq__row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.u-rfq__drop { position: relative; display: grid; gap: .15rem; justify-items: center; text-align: center; padding: 1rem; border: 2px dashed var(--u-accent); border-radius: 12px; background: var(--u-accent-soft); cursor: pointer; }
.u-rfq__drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.u-rfq__drop b { color: var(--u-accent-press); }
.u-rfq__drop span { font-size: .85rem; color: var(--u-muted); }
.u-rfq__files { font-style: normal; font-size: .85rem; color: var(--u-ink); }
.u-rfq__form .u-btn { width: 100%; justify-content: center; border: 0; cursor: pointer; }
.u-rfq__form .u-btn:disabled { opacity: .6; cursor: wait; }
.u-rfq .u-rfq__msg { margin: 0; min-height: 1.2em; color: var(--u-accent-press); font-size: .9rem; }
.u-rfq .u-rfq__note { margin: 0; font-size: .78rem; color: var(--u-muted); }
.u-rfq__hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.u-rfq__done { display: grid; gap: .4rem; padding: 1.5rem .5rem; text-align: center; }
.u-rfq__done b { font-size: 1.15rem; }
.u-rfq__done span { color: var(--u-muted); }
@media (max-width: 860px) { .u-rfq { grid-template-columns: 1fr; gap: 1.25rem; } .u-rfq__row { grid-template-columns: 1fr; } }
