/*
Theme Name: AS-start.V1
Version: 1.4.10
Description: Стартовая тема ArcticSafe с общей шапкой и подвалом из макета v15.
Requires PHP: 8.0
Text Domain: as-start-v1
*/
.as-start-main {min-height: 52svh; padding-block: clamp(7rem, 13vw, 13rem) 4rem;}

.as-contact-confirmation {
    box-sizing: border-box;
    inset: 0;
    width: min(36rem, calc(100% - 2rem));
    max-width: none;
    height: fit-content;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1.25rem, 5vw, 3rem);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #d6c7ab;
    border-top: 4px solid var(--brass, #a58852);
    background: #fcfaf6;
    color: #282119;
    text-align: center;
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .3);
}
.as-contact-confirmation:not([open]) { display: none; }
.as-contact-confirmation[open] { display: grid; justify-items: center; gap: .75rem; }
.as-contact-confirmation::backdrop { background: rgba(16, 13, 10, .76); }
html:has(.as-contact-confirmation:modal) { overflow: hidden; }
.as-contact-confirmation.as-confirmation-inline { position: static; width: 100%; margin: 1.5rem 0 0; }
.as-confirmation-mark {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: .5rem;
    border: 1px solid #a58852;
    border-radius: 50%;
    color: #795c2d;
}
.as-confirmation-mark::after {
    content: "";
    width: .65rem;
    height: 1.2rem;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translateY(-.15rem) rotate(45deg);
}
.as-contact-confirmation h2 {
    margin: 0;
    font: 500 clamp(2.2rem, 5vw, 3.5rem)/1.06 var(--serif, Georgia, serif);
    color: inherit;
    text-wrap: balance;
}
.as-contact-confirmation p {
    margin: 0;
    font: 400 clamp(1.05rem, 2vw, 1.25rem)/1.45 var(--sans, sans-serif);
    color: #53493c;
}
.as-contact-confirmation button {
    box-sizing: border-box;
    width: min(100%, 12rem);
    min-height: 48px;
    margin-top: .9rem;
    padding: .65rem 1.25rem;
    border: 1px solid #30271d;
    border-radius: 2px;
    background: #30271d;
    color: #fffaf2;
    font: 600 1rem/1.3 var(--sans, sans-serif);
    cursor: pointer;
}
.as-contact-confirmation button:hover { background: #4c3a28; }
.as-contact-confirmation button:focus-visible { outline: 2px solid #80602b; outline-offset: 4px; }
@media (max-height: 420px) {
    .as-contact-confirmation { padding-block: 1rem; }
    .as-contact-confirmation[open] { gap: .5rem; }
    .as-confirmation-mark { width: 2.5rem; height: 2.5rem; margin: 0; }
}
body:not(.home) #top {background: var(--bg, #100e0b);}
body.admin-bar #top {top: var(--wp-admin--admin-bar--height, 32px);}

/* Use the v15 crop for finish samples and handle previews at every width. */
.custom .sw img,
.custom .hdl img {
    height: auto;
}

@media (min-width: 901px) {
    #models .model.rev, .as-landing .model.rev {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    }

    #models .model > .model-photos, .as-landing .model > .model-photos {
        --gallery-top: calc(96px + var(--wp-admin--admin-bar--height, 0px));
        position: sticky;
        top: var(--gallery-top);
        align-self: start;
        order: 0;
    }

    #models .model-photos[data-set="mini"], .as-landing .model-photos[data-set="mini"] {
        max-height: calc(100svh - var(--gallery-top) - 16px);
    }
}

.as-landing > .band:first-child { padding-top: clamp(108px, 11vw, 168px); }
.as-landing #care .art h2 { font-size: clamp(26px, 2.4vw, 34px); margin: 24px 0 16px; }
.as-landing .expo-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 42px); margin-top: 2.5rem; }
.as-landing .expo-card { display: grid; gap: .65rem; align-content: start; color: inherit; }
.as-landing .expo-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.as-landing .expo-card h2 { font-size: clamp(28px, 3.5vw, 56px); }
.as-landing .expo-intro { max-width: 68ch; margin-top: 1.25rem; }
.as-landing .expo-nav { display: flex; flex-wrap: wrap; gap: .85rem 2rem; margin-block: 2rem; }
.as-landing .expo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px,2vw,28px); }
.as-landing .expo-grid button { display: grid; align-content: start; gap: .5rem; padding: 0; background: transparent; border: 0; color: var(--mute); font: inherit; text-align: start; cursor: zoom-in; }
.as-landing .expo-grid img { width: 100%; height: clamp(130px,18vw,240px); object-fit: contain; background: var(--surf); }
.as-landing .expo-grid span { font-size: .85rem; }
.as-landing .expo-video { display: block; width: min(100%, 800px); aspect-ratio: 16/9; margin: 1.25rem 0 0; background: var(--bg); }
.as-landing .expo-grid + h2 { margin-top: 3rem; }
.as-landing .policy-content h1 { overflow-wrap: break-word; }
@media (max-width: 650px) {
    .as-landing .expo-index { grid-template-columns: 1fr; }
    .as-landing .expo-card img { max-height: 32svh; }
    .as-landing .expo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
    .pk .pt {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 3px;
    }
    .pk b {
        grid-row: auto;
    }
}

@media (min-width: 601px) {
    .cmp td[colspan] {
        text-align: center;
        background-color: rgba(165, 136, 82, .06);
        border-inline: 1px solid var(--line);
    }
}

.custom #otdelka {
    scroll-margin-top: calc(96px + var(--wp-admin--admin-bar--height, 0px));
    margin: 1.5rem 0 .75rem;
}
.custom .as-finish-note { margin: .6rem 0 1.25rem; }

.as-finishes {
    position: relative;
    min-width: 0;
    scroll-margin-top: calc(96px + var(--wp-admin--admin-bar--height, 0px));
}
.as-finish-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.as-finish-track::-webkit-scrollbar { display: none; }
.as-finish-track > button {
    flex: 0 0 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: var(--surf);
    scroll-snap-align: start;
    cursor: zoom-in;
}
.as-finish-track img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.as-finish-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    color: #fff;
    background: rgba(12, 11, 7, .7);
    font-size: 0;
    cursor: pointer;
}
.as-finish-arrow::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px;
    height: 14px;
    background: currentColor;
    clip-path: polygon(20% 0, 100% 50%, 20% 100%, 0 86%, 60% 50%, 0 14%);
}
#finish-prev { left: 8px; }
#finish-prev::before { transform: scaleX(-1); }
#finish-next { right: 8px; }
.as-finishes button:focus-visible { outline: 2px solid var(--led); outline-offset: -3px; }

.as-analytics-settings {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}
