/*
 * Shevronych parent shell
 * Visual layer for Webasyst 2026. Native application templates stay intact.
 */

:root {
    --shevronych-black: #101010;
    --shevronych-white: #ffffff;
    --shevronych-red: #ff2b22;
    --shevronych-blue: #1b5cff;
    --shevronych-paper: #f5f3ef;
    --shevronych-line: #d8d6d1;
    --shevronych-muted: #706f6b;
    --shevronych-radius: 20px;
    --container-max-width: 1400px;
    --container-padding: 24px;
    --element-border-radius: var(--shevronych-radius);
    --accent-color: var(--shevronych-red);
    --link-color: var(--shevronych-black);
    --link-hover-color: var(--shevronych-red);
    --button-bg-color: var(--shevronych-black);
    --button-hover-bg-color: var(--shevronych-red);
    --button-active-bg-color: #d91e17;
    --header-cart-total-bg-color: var(--shevronych-red);
}

/* v0.6.8: minimal non-indexable hand-off page for branded /go/ links. */
.shv-go-page {
    min-height: 100%;
    margin: 0;
    background: #101010;
    color: #fff;
}

.shv-go-redirect {
    min-height: 100vh;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    padding: 24px;
    text-align: center;
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.shv-go-redirect p {
    margin: 0;
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 800;
}

.shv-go-redirect a {
    color: #fff;
    text-underline-offset: 4px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--shevronych-white);
    color: var(--shevronych-black);
    text-rendering: geometricPrecision;
}

a,
button,
input {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--shevronych-blue);
    outline-offset: 3px;
}

.container {
    width: 100%;
}

header.globalheader {
    --globalheader-mb: 0;
    margin-bottom: 0;
    padding: 0 0 10px;
    border: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
}

header.globalheader.is-sticky {
    position: sticky;
    z-index: 1000;
    top: 0;
    isolation: isolate;
    box-shadow: 0 8px 24px rgba(16, 16, 16, 0.07);
}

.shevronych-announcement {
    background: var(--shevronych-black);
    color: var(--shevronych-white);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shevronych-announcement .container {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

header #globalnav {
    margin: 0;
}

header #globalnav .globalnav-bar {
    min-height: 98px;
    gap: 28px !important;
    color: var(--shevronych-black);
}

header #globalnav .globalnav-bar > h2 {
    min-width: 270px;
}

header h2 a {
    display: inline-flex;
    align-items: center;
}

header h2 a img#logo {
    width: 278px;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

header .apps {
    justify-content: center;
    gap: clamp(16px, 1.8vw, 30px);
    font-size: 15px;
    font-weight: 700;
}

header .apps > li > a {
    position: relative;
    padding: 12px 0;
}

header .apps > li > a::before {
    position: absolute;
    right: 0;
    bottom: 5px;
    left: 0;
    height: 2px;
    background: var(--shevronych-red);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

header .apps > li > a:hover::before,
header .apps > li.selected > a::before {
    transform: scaleX(1);
    transform-origin: left;
}

header .cart a.cart-summary {
    gap: 7px;
    color: var(--shevronych-black);
    font-weight: 700;
}

header .cart a .cart-total {
    display: inline-grid;
    min-width: 25px;
    height: 25px;
    place-items: center;
    padding: 0 7px;
    background: var(--shevronych-red);
    font-weight: 700;
}

header .cart.empty a .cart-total {
    display: none !important;
}

header.globalheader .appnav {
    min-height: 62px;
    gap: 14px;
    padding-top: 0;
    padding-bottom: 0;
}

header .pages li.category-btn-item > a.button,
header .pages li a.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    border-radius: var(--shevronych-radius);
    background: var(--shevronych-black);
    font-size: 16px;
    font-weight: 800;
}

header .search {
    min-width: 280px;
}

header .search .search-wrapper {
    overflow: hidden;
    border: 1px solid var(--shevronych-line);
    border-radius: var(--shevronych-radius);
    background: var(--shevronych-white);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

header .search .search-wrapper:focus-within {
    border-color: var(--shevronych-blue);
    box-shadow: 0 0 0 3px rgba(27, 92, 255, 0.14);
}

header .search [type="search"] {
    min-height: 54px;
    background: transparent;
    color: var(--shevronych-black);
    font-size: 17px;
}

header .search .search-wrapper button {
    color: var(--shevronych-black);
}

.maincontent {
    min-height: 50vh;
}

[id^="shevronych-"] {
    scroll-margin-top: 180px;
}

.maincontent > .container {
    padding-top: 0;
    padding-bottom: 0;
}

.button,
button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    border-radius: var(--shevronych-radius);
    font-weight: 800;
}

footer.globalfooter {
    margin-top: 0;
    padding-top: 0;
    background: var(--shevronych-black);
    color: var(--shevronych-white);
}

.shevronych-footer-showcase {
    padding: clamp(44px, 5vw, 58px) 0 30px;
    background: var(--shevronych-black);
    color: var(--shevronych-white);
}

.shevronych-footer-lead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    align-items: end;
    gap: clamp(28px, 5vw, 64px);
}

.shevronych-footer-lead p {
    margin: 0 0 16px;
    color: #8fb0ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shevronych-footer-lead h2 {
    margin: 0;
    font-size: clamp(38px, 4vw, 56px);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.shevronych-footer-lead > a {
    display: flex;
    min-height: 56px;
    min-width: 220px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 18px;
    border: 1px solid #4a4a4a;
    border-radius: 16px;
    color: var(--shevronych-white);
    font-weight: 800;
    transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.shevronych-footer-lead > a span {
    color: var(--shevronych-red);
    font-size: 22px;
}

.shevronych-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(180px, .72fr) minmax(190px, .76fr) minmax(230px, .9fr);
    align-items: start;
    gap: clamp(26px, 3vw, 44px);
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid #3b3b3b;
}

.shevronych-footer-grid span {
    display: block;
    margin-bottom: 16px;
    color: #8fb0ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.shevronych-footer-about p {
    max-width: 520px;
    margin: 0;
    color: #bcbcbc;
    font-size: 17px;
    line-height: 1.5;
}

.shevronych-footer-grid nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
}

.shevronych-footer-grid nav span {
    margin-bottom: 8px;
}

.shevronych-footer-grid nav a {
    display: flex;
    min-height: 34px;
    align-items: center;
    color: var(--shevronych-white);
    font-weight: 700;
    line-height: 1.25;
}

.shevronych-footer-grid .shevronych-footer-legal {
    grid-template-columns: 1fr;
}

.shevronych-footer-grid .shevronych-footer-legal a {
    color: var(--shevronych-white);
}

.shevronych-footer-legal a:hover {
    color: var(--shevronych-red);
}

.shevronych-footer-contact a,
.shevronych-footer-contact strong {
    display: block;
    color: var(--shevronych-white);
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.shevronych-footer-contact p {
    max-width: 300px;
    margin: 13px 0 0;
    color: #9b9b9b;
    font-size: 14px;
    line-height: 1.45;
}

.shevronych-footer-contact a.shevronych-footer-email {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* v0.6.9: keep the workshop phone on one aligned line in the desktop footer. */
.shevronych-footer-contact a.shevronych-footer-phone {
    white-space: nowrap;
    font-size: clamp(20px, 1.55vw, 26px);
    letter-spacing: -0.055em;
}

.shevronych-footer-socials {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    margin-top: 16px;
}

.shevronych-footer-contact .shevronych-footer-socials a {
    display: flex;
    min-width: 0;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid #494949;
    border-radius: 10px;
    color: var(--shevronych-white);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
    box-sizing: border-box;
}

.shevronych-footer-contact .shevronych-footer-socials a:hover {
    border-color: var(--shevronych-red);
    background: var(--shevronych-red);
    color: var(--shevronych-white);
}

.shevronych-footer-grid nav a:hover,
.shevronych-footer-lead > a:hover,
.shevronych-footer-contact a:hover {
    color: var(--shevronych-red);
}

.shevronych-footer-lead > a:hover {
    border-color: var(--shevronych-red);
    transform: translateY(-2px);
}

footer.globalfooter .footer-block a.top {
    color: var(--shevronych-white);
    font-weight: 900;
}

footer.globalfooter .footer-block a:hover {
    color: var(--shevronych-red);
}

footer.globalfooter .appfooter {
    margin-top: 0;
    padding: 20px 0;
    border-top: 1px solid #343434;
    background: var(--shevronych-black);
    color: #969696;
}

footer.globalfooter .appfooter a {
    color: #d0d0d0;
}

footer.globalfooter .appfooter a:hover {
    color: var(--shevronych-white);
}

footer.globalfooter .appfooter select {
    border-color: #464646;
    background-color: #262626;
    color: var(--shevronych-white);
}

footer.globalfooter .s-footer-notice {
    margin-top: 14px;
    color: #858585;
    line-height: 1.6;
}

.shv-error-page {
    display: grid;
    width: min(calc(100% - 32px), 1014px);
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
    margin: clamp(48px, 8vw, 112px) auto;
    overflow: hidden;
    border: 1px solid #d7d5d0;
    border-radius: 20px;
    background: #f4f2ee;
}

.shv-error-code {
    display: grid;
    min-height: 430px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shv-error-code span {
    display: grid;
    place-items: center;
    background: var(--shevronych-blue);
    color: var(--shevronych-white);
    font-size: clamp(82px, 10vw, 148px);
    font-weight: 900;
    letter-spacing: -0.09em;
    line-height: 1;
}

.shv-error-code span:nth-child(2) {
    background: var(--shevronych-black);
}

.shv-error-code span:nth-child(3) {
    background: var(--shevronych-red);
}

.shv-error-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 5vw, 66px);
}

.shv-error-eyebrow {
    margin: 0 0 18px;
    color: var(--shevronych-red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shv-error-copy h1 {
    max-width: 640px;
    margin: 0;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.shv-error-copy > p:not(.shv-error-eyebrow) {
    max-width: 580px;
    margin: 22px 0 0;
    color: #67645f;
    font-size: 18px;
    line-height: 1.55;
}

.shv-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.shv-error-button {
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1.5px solid var(--shevronych-black);
    border-radius: 16px;
    font-weight: 900;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.shv-error-button:hover {
    transform: translateY(-2px);
}

.shv-error-button-dark {
    background: var(--shevronych-black);
    color: var(--shevronych-white) !important;
}

.shv-error-button-dark:hover {
    border-color: var(--shevronych-red);
    background: var(--shevronych-red);
}

.shv-error-button-light {
    background: var(--shevronych-white);
    color: var(--shevronych-black) !important;
}

.shv-error-button-light:hover {
    border-color: var(--shevronych-blue);
    color: var(--shevronych-blue) !important;
}

@media (max-width: 1024px) {
    :root {
        --container-padding: 20px;
    }

    header #globalnav .globalnav-bar > h2 {
        min-width: 220px;
    }

    header h2 a img#logo {
        width: 220px;
    }

    header .apps {
        gap: 18px;
    }

    .shevronych-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shevronych-footer-about {
        grid-column: 1 / -1;
    }

    .shevronych-footer-contact {
        grid-column: 1 / -1;
    }

    .shv-error-page {
        grid-template-columns: 1fr;
    }

    .shv-error-code {
        min-height: 210px;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 16px;
    }

    header.globalheader:not(.is-sticky) {
        position: relative;
        top: auto;
        max-height: none;
    }

    .shevronych-announcement .container {
        min-height: 32px;
        justify-content: center;
        text-align: center;
    }

    .shevronych-announcement span:last-child {
        display: none;
    }

    header #globalnav .globalnav-bar {
        min-height: 74px;
    }

    header #globalnav .globalnav-bar > h2 {
        min-width: 0;
        margin-left: 0 !important;
    }

    header h2 a img#logo {
        display: block;
        width: 180px;
        max-height: 54px;
    }

    header h2 a span {
        display: none;
    }

    header #mobile-nav-toggle {
        display: block;
    }

    header.globalheader .appnav {
        min-height: 54px;
        margin-top: 0;
    }

    header .search {
        min-width: 0;
    }

    header .search .search-wrapper {
        border-radius: 16px;
    }

    header .search [type="search"] {
        min-height: 50px;
    }

    footer.globalfooter {
        margin-top: 0;
    }

    .shevronych-footer-lead,
    .shevronych-footer-grid {
        grid-template-columns: 1fr;
    }

    .shevronych-footer-lead {
        align-items: start;
        gap: 24px;
    }

    .shevronych-footer-showcase {
        padding: 42px 0 30px;
    }

    .shevronych-footer-lead h2 {
        font-size: clamp(36px, 10vw, 42px);
    }

    .shevronych-footer-grid {
        gap: 26px;
        margin-top: 32px;
        padding-top: 24px;
    }

    .shevronych-footer-lead > a {
        min-width: 0;
    }

    .shevronych-footer-grid nav {
        max-width: 420px;
    }

    .shevronych-footer-socials {
        max-width: 420px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shevronych-footer-about,
    .shevronych-footer-contact {
        grid-column: auto;
    }

    .shv-error-page {
        margin: 32px auto 56px;
    }

    .shv-error-code {
        min-height: 160px;
    }

    .shv-error-copy {
        padding: 30px 24px 34px;
    }
}

@media (max-width: 480px) {
    header h2 a img#logo {
        width: 150px;
    }

    header .h-cart-title {
        display: none;
    }

    .shv-error-actions,
    .shv-error-button {
        width: 100%;
    }
}

/* v0.6.10: compact consent card leaves the floating phone action available. */
#cookie-agreement {
    z-index: 8500;
}

@media (max-width: 640px) {
    #cookie-agreement,
    #cookie-agreement.has-analytics-choice {
        right: auto !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        left: 12px !important;
        width: min(50vw, 240px) !important;
        max-width: none !important;
    }

    #cookie-agreement .cookie-agreement-content {
        padding: 12px !important;
        border: 1px solid rgba(16, 16, 16, 0.1);
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 16px 42px rgba(16, 16, 16, 0.2);
        filter: none !important;
        backdrop-filter: blur(12px);
    }

    #cookie-agreement .cookie-agreement-content .text-gray {
        color: #54534f !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    #cookie-agreement .cookie-agreement-actions {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 6px !important;
        margin-top: 9px !important;
    }

    #cookie-agreement .cookie-agreement-actions .button,
    #cookie-agreement > .cookie-agreement-content > .button {
        width: 100%;
        min-height: 34px;
        margin: 0 !important;
        padding: 7px 8px !important;
        border-radius: 9px !important;
        font-size: 10px !important;
        line-height: 1.15 !important;
        white-space: normal;
    }
}
