.contact-page, .lost-page {
    padding-block: clamp(35px, 6vw, 88px);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
    grid-template-areas: "sidebar form" "brief form";
    align-items: start;
    align-content: center;
    gap: clamp(22px, 3vw, 44px) clamp(30px, 6vw, 96px);
    max-width: 1190px;
    margin-inline: auto;
}
.contact-layout-direct { grid-template-areas: "sidebar brief"; align-items: center; }
.contact-layout-booking { grid-template-areas: "sidebar form"; }
.contact-layout-booking.contact-layout-direct { grid-template-areas: "sidebar"; }
.contact-sidebar { grid-area: sidebar; }
.contact-heading h1, .lost-copy h1 {
    margin-bottom: 16px;
    font-size: clamp(43px, 7.6vw, 105px);
    text-wrap: balance;
}
.contact-heading p, .lost-description {
    max-width: 36ch;
    margin-bottom: clamp(22px, 3vw, 35px);
    color: var(--quiet);
    font-size: clamp(15px, 1.55vw, 19px);
}
.contact-links-labeled { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-links-labeled a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding-block: 10px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}
.contact-links-labeled a:hover .contact-link-value { text-decoration: underline; text-underline-offset: 4px; }
.contact-link-label { color: var(--quiet); font-size: 12px; font-weight: 700; }
.contact-link-value { grid-row: 2; font-weight: 750; }
.contact-link-arrow { grid-area: 1 / 2 / 3 / 3; color: var(--accent); font-size: 20px; }
.contact-sidebar .social-links { margin-top: 17px; }
.contact-sidebar .social-links a { border-color: #54554e; }

.contact-brief {
    grid-area: brief;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px clamp(14px, 2.1vw, 27px);
    border: 1px solid var(--line);
    border-inline-start: 3px solid var(--accent);
    background: linear-gradient(120deg, #251c18, #181917 74%);
    text-decoration: none;
}
.contact-brief:hover { border-color: var(--accent); }
.contact-brief-text { display: grid; gap: 4px; }
.contact-brief-text strong { font-size: clamp(17px, 1.7vw, 23px); line-height: 1.25; }
.contact-brief-text > span { color: #c4c3ba; font-size: 13px; line-height: 1.5; }
.contact-brief-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    height: 42px;
    border: 1px solid #805140;
    color: #ff967d;
    font-size: 23px;
}
.contact-brief:hover .contact-brief-arrow { background: var(--accent); border-color: var(--accent); color: var(--ink); }

.contact-panel {
    grid-area: form;
    align-self: stretch;
    min-width: 0;
    padding: clamp(22px, 4vw, 53px);
    border-top: 3px solid var(--accent);
    color-scheme: light;
    color: #1e201d;
    background: #f0eee8;
}
.contact-panel h2 { margin-bottom: clamp(20px, 3vw, 33px); font-size: clamp(25px, 3.2vw, 46px); }
.contact-booking-artist { margin: -12px 0 12px; padding-inline-start: 12px; border-inline-start: 3px solid #9c2d17; font-weight: 800; }
.contact-booking-hint { margin: 0 0 19px; color: #4c4b43; font-size: 14px; }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 15px; }
.contact-form label { display: grid; align-content: end; gap: 6px; font-size: 13px; font-weight: 750; }
.contact-message, .contact-form-actions { grid-column: 1 / -1; }
.contact-form input:not([type="hidden"]), .contact-form textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 11px;
    border: 1px solid #918e83;
    border-radius: 0;
    background: #faf8f2;
    color: inherit;
    font-size: 16px;
    font-weight: 500;
}
.contact-form textarea { min-height: 135px; resize: vertical; }
.contact-form :focus-visible { outline-color: #9c2d17; outline-offset: 2px; }
.contact-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px 19px; }
.contact-form-actions .button { background: #22231f; color: #fffaf1; }
.contact-form-actions .button:hover { background: #3d3f37; }
.contact-form-actions .button span { color: #ff9c84; }
.contact-privacy { flex: 1 1 160px; margin: 0; color: #4c4b43; font-size: 12px; }
.contact-privacy a { text-underline-offset: 3px; }
.contact-result, .contact-panel .form-error {
    margin: 0 0 17px;
    padding: 12px 14px;
    border-inline-start: 3px solid #716d60;
    background: #e2dfd4;
    overflow-wrap: anywhere;
}
.contact-panel .form-error { border-color: #a83a25; color: #782510; }

.lost-page { display: grid; align-items: center; }
.lost-layout {
    display: grid;
    grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr);
    gap: clamp(25px, 4vw, 65px);
    align-items: center;
}
.lost-copy h1 { font-size: clamp(38px, 5.8vw, 89px); }
html[lang="hy"] .lost-copy h1 { font-size: clamp(36px, 4.85vw, 72px); }
.lost-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lost-actions .button { gap: 12px; }
.lost-instrument {
    container-type: inline-size;
    padding: clamp(12px, 2vw, 24px);
    border: 1px solid #41423a;
    background: #1a1b17;
}
.lost-display {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.19fr) minmax(0, 1fr);
    align-items: center;
    min-height: clamp(150px, 30vw, 410px);
    border: 1px solid #35372f;
    background: repeating-linear-gradient(0deg, #a8aa9520 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, #a8aa9520 0 1px, transparent 1px 24px), radial-gradient(ellipse, #292922, #11120f 82%);
    background-position: center;
    text-align: center;
}
.lost-digit {
    font: 800 clamp(58px, 28cqi, 225px)/1 Manrope, sans-serif;
    color: #78796c;
}
@supports (-webkit-text-stroke: 1px #888) {
    .lost-digit { color: #24251f; -webkit-text-stroke: 1px #97978a; }
}
.lost-zero {
    position: relative;
    overflow: hidden;
    aspect-ratio: .83;
    border: 1px solid #ff795b;
    border-radius: 50%;
    background: radial-gradient(ellipse, #3e281f, #181713 79%);
    box-shadow: 0 0 25px #ff573426, inset 0 0 20px #ff573427;
}
.lost-zero::before {
    position: absolute;
    inset: 50% 0 auto;
    height: 1px;
    background: #eb7355;
    opacity: .65;
    content: "";
}
.lost-zero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lost-pulse {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 13px;
    padding: 5px 12px;
    border: 1px solid #55564d;
    background: #11120f;
    color: var(--paper);
    font-size: 13px;
    font-weight: 750;
}
.lost-pulse:hover, .lost-instrument.is-pulsing .lost-pulse { border-color: var(--accent); }
.lost-pulse-icon {
    width: 16px;
    height: 12px;
    background: var(--accent);
    clip-path: polygon(0 53%, 24% 53%, 39% 3%, 60% 81%, 72% 45%, 100% 45%, 100% 59%, 79% 59%, 59% 100%, 39% 29%, 29% 67%, 0 67%);
}

@media (max-width: 820px) {
    .contact-layout { gap: 22px 30px; }
    .lost-layout { grid-template-columns: minmax(0, 1fr); }
    .lost-copy h1 { text-wrap: initial; }
    .lost-display { min-height: clamp(150px, 45vw, 330px); }
}
@media (max-width: 700px) {
    .contact-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sidebar" "form" "brief"; }
    .contact-layout-direct { grid-template-areas: "sidebar" "brief"; }
    .contact-layout-booking { grid-template-areas: "sidebar" "form"; }
}
@media (max-width: 470px) {
    .contact-form { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .contact-form-actions { align-items: start; flex-direction: column; }
    .contact-privacy { flex: auto; }
    .lost-actions .button { min-height: 44px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-page .button, .lost-page .button { transition: none; }
}
