.se-nav .se-nav__consult { display:none; }
@media (max-width:600px) {
    .se-nav.is-open .se-nav__consult { display:block; color:#991c19; }
}
html.consult-open { overflow:hidden; }
.consult-dialog:not([open]) { display:none; }
.consult-dialog {
    position:fixed; inset:0; width:min(520px, calc(100% - 32px));
    max-width:none; max-height:calc(100% - 32px); max-height:calc(100dvh - 32px);
    margin:auto; padding:0; border:0; border-radius:20px;
    background:#fffcf7; color:#38211e; font:inherit; overflow:auto;
    overscroll-behavior:contain; box-shadow:0 26px 95px #220c1152;
}
.consult-dialog[open] { animation:consult-in .46s cubic-bezier(.17,.83,.24,1) both; }
.consult-dialog::backdrop {
    background:rgba(35,17,20,.55); backdrop-filter:blur(5px);
    animation:consult-veil-in .32s ease both;
}
.consult-dialog.is-leaving { animation:consult-out .25s cubic-bezier(.4,0,.65,1) both; }
.consult-dialog.is-leaving::backdrop { animation:consult-veil-out .25s ease both; }
.consult-banner {
    position:relative; isolation:isolate; overflow:hidden; padding:28px 32px;
    color:white; background:linear-gradient(100deg,#670d1a 1%,rgba(113,16,23,.94) 37%,rgba(87,21,28,.30)),url('../images/generated/about-skyline.webp') center 64% / cover;
}
.consult-banner::after {
    content:""; position:absolute; z-index:-1; inset:auto -10% -22px 22%;
    height:50px; transform:rotate(-7deg); border-radius:50%;
    border-top:1px solid #f2c07b; box-shadow:0 -7px 0 #eab66d29,0 -18px 0 #bd383636;
}
.consult-dialog[open]:not(.is-leaving) .consult-banner::after { animation:consult-sweep .65s ease-out both; }
.consult-banner h2 { margin:0 0 4px; font-family:inherit; font-size:31px; line-height:1.25; font-weight:700; color:#fff; outline:0; }
.consult-banner p { margin:0; font-size:14px; color:#ffebd8; }
.consult-close {
    position:absolute; right:12px; top:12px; width:40px; height:40px;
    padding:0; border:1px solid #ffffff63; border-radius:50%; color:#fff;
    background:#38151960; font:26px/1 sans-serif; cursor:pointer;
}
.consult-close:hover { background:#551519; }
.consult-body { padding:24px 32px 28px; }
.consult-form { display:grid; gap:16px; }
.consult-pair { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.consult-form label { display:grid; min-width:0; gap:6px; margin:0; font-size:14px; font-weight:600; color:#48312d; }
.consult-form label :is(input,select,textarea) {
    box-sizing:border-box; width:100%; max-width:100%; min-width:0; margin:0; padding:10px 12px;
    border:1px solid #dacdc2; border-radius:8px; background:#fff; color:#36231e;
    font:inherit; font-weight:400; line-height:1.5;
}
.consult-form textarea { resize:vertical; min-height:78px; }
.consult-form label :is(input,select,textarea):focus { border-color:#a1302d; box-shadow:0 0 0 2px #a1302d1c; outline:0; }
.consult-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; }
.consult-actions .consult-phone { display:inline-flex; align-items:center; gap:9px; min-height:44px; color:#653234; }
.consult-phone .iconfont { display:grid; place-items:center; width:35px; height:35px; border:1px solid #e4cbb9; border-radius:50%; color:#99292e; background:#f7eadd; font-size:17px; }
.consult-phone small,.consult-phone strong { display:block; }
.consult-phone small { font-size:12px; line-height:1.5; color:#70554c; }
.consult-phone strong { font-size:16px; line-height:1.3; font-weight:600; letter-spacing:.02em; font-variant-numeric:tabular-nums; }
.consult-phone:hover .iconfont,.consult-phone:focus-visible .iconfont { color:white; background:#923036; border-color:#923036; }
.consult-actions button {
    margin-left:auto; border:0; padding:12px 22px; border-radius:24px; color:#fff; background:#a4171b;
    font:inherit; font-weight:600; cursor:pointer;
}
.consult-actions button:hover { background:#831519; }
.consult-actions button span { margin-left:8px; }
@keyframes consult-in {
    from { opacity:0; transform:perspective(900px) translateY(32px) rotateX(-8deg) scale(.95); }
    to { opacity:1; transform:none; }
}
@keyframes consult-out {
    to { opacity:0; transform:perspective(900px) translateY(20px) rotateX(4deg) scale(.96); }
}
@keyframes consult-sweep { from { transform:translateX(65%) rotate(-7deg); opacity:0; } }
@keyframes consult-veil-in { from { opacity:0; } }
@keyframes consult-veil-out { to { opacity:0; } }
@media (max-width:600px) {
    .consult-dialog { inset:auto 0 0; width:100%; margin:0; border-radius:20px 20px 0 0; max-height:94dvh; }
    .consult-dialog[open] { animation-name:consult-sheet-in; }
    .consult-dialog.is-leaving { animation-name:consult-out; }
    .consult-banner { padding:22px; }
    .consult-banner h2 { font-size:26px; }
    .consult-body { padding:18px 20px max(20px,env(safe-area-inset-bottom)); }
    .consult-form label :is(input,select,textarea) { font-size:16px; }
    @keyframes consult-sheet-in { from { transform:translateY(70%); opacity:.4; } }
}
@media (prefers-reduced-motion:reduce) {
    .consult-dialog[open], .consult-dialog::backdrop, .consult-dialog[open] .consult-banner::after { animation:none !important; }
}
