.inspection-popup {
    width: min(1120px, calc(100vw - 48px));
    height: min(830px, calc(100dvh - 48px));
    max-width: none;
    max-height: none;
    padding: 0;
    margin: auto;
    border: 1px solid #e8d7bc;
    border-radius: 26px;
    background: #eee2d2;
    color: #24201b;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 24px 90px #0009;
    overflow: hidden;
}
.inspection-popup[open] { animation: inspection-enter .22s ease-out; }
.inspection-popup::backdrop { background: rgb(0 0 0 / 72%); animation: inspection-backdrop .22s ease-out; }
.inspection-popup.is-closing { animation: inspection-exit .18s ease-in forwards; }
.inspection-popup.is-closing::backdrop { animation: inspection-backdrop .18s ease-in reverse forwards; }
.inspection-popup__scroll { display: grid; grid-template-columns: 36.5% 63.5%; height: 100%; min-height: 0; }
.inspection-popup__visual { position: relative; display: grid; grid-template-rows: 62% 38%; min-width: 0; min-height: 0; overflow: auto; background: #211c16; }
.inspection-popup__photo { position: relative; min-height: 0; overflow: hidden; }
.inspection-popup__photo > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.inspection-popup__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 75%, #211c1640 85%, #211c16 100%); }
.inspection-popup__benefits { position: relative; z-index: 1; align-self: center; list-style: none; margin: 0; padding: 0 30px 10px; color: #fffaf2; }
.inspection-popup__benefits li { display: flex; gap: 17px; padding: 20px 0; border-bottom: 1px solid #ddc59f40; }
.inspection-popup__benefits li:last-child { border-bottom: 0; }
.inspection-popup__benefits svg { width: 38px; height: 38px; flex-shrink: 0; color: #e0b264; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.inspection-popup__benefits h3 { color: #fffaf2; font-size: 17px; font-weight: 750; line-height: 1.4; margin: 0 0 5px; }
.inspection-popup__benefits p { font-size: 13px; line-height: 1.65; margin: 0; }
.inspection-popup__content { overflow-y: auto; overscroll-behavior: contain; min-width: 0; padding: 30px 32px 20px; background: linear-gradient(#efdfcba6,#ead8c0a6), url('../../img/services/marble.jpg') center / cover no-repeat; }
.inspection-popup__close { position: absolute; z-index: 3; top: 10px; right: 10px; display: grid; place-items: center; width: 38px; height: 38px; padding: 8px; border: 0; border-radius: 50%; background: #f3e8d9ed; color: #29221c; cursor: pointer; }
.inspection-popup__close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.inspection-popup :focus-visible { outline: 2px solid #80531d; outline-offset: 3px; }
.inspection-popup .contact-form__title { color: #211d18; font-size: 30px; line-height: 1.25; margin: 0 22px 12px 0; font-weight: 800; }
.inspection-popup .inspection-popup__intro { color: #332a22; font-size: 14px; line-height: 1.65; margin: 0 0 12px; }
.inspection-popup .contact-form__notice { padding: 7px 10px; margin: 0 0 14px; font-size: 11px; line-height: 1.55; background: #c78b4814; color: #594323; border: 1px solid #ba914b55; border-radius: 8px; box-shadow: none; }
.inspection-popup .contact-form__fields { gap: 12px 20px; }
.inspection-popup .contact-form__label { position: static; display: block; width: auto; height: auto; margin: 0 0 5px; overflow: visible; clip: auto; clip-path: none; white-space: normal; font-size: 13px; font-weight: 750; color: #282019; }
.inspection-popup .contact-form__control input,
.inspection-popup .contact-form__control select,
.inspection-popup .contact-form__control textarea { height: 44px; min-height: 44px; padding: 10px 12px 10px 42px; border: 1px solid #c7b5a1; border-radius: 10px; background: #fffaf3b8; color: #332a22; box-shadow: 0 2px 5px #6b4e2510; font-family: inherit; font-size: 13px; }
.inspection-popup .contact-form__control input::placeholder,
.inspection-popup .contact-form__control textarea::placeholder { color: #756a60; opacity: 1; }
.inspection-popup .contact-form__control select { padding-right: 24px; color-scheme: light; text-overflow: ellipsis; }
.inspection-popup .contact-form__control option { color: #282019; background: #faf4eb; }
.inspection-popup .contact-form__control textarea { height: 75px; min-height: 75px; resize: vertical; }
.inspection-popup .contact-form__control svg { width: 21px; height: 21px; left: 13px; top: 12px; color: var(--color-accent, #c78b48); }
.inspection-popup .contact-form__help { color: #705f4a; font-size: 10px; margin: 4px 0 0; }
.inspection-popup .contact-form__consent { color: #332a22; font-size: 11px; line-height: 1.6; }
.inspection-popup .contact-form__consent a { color: #76501f; }
.inspection-popup .contact-form__consent input { accent-color: #a9782e; width: 20px; height: 20px; flex-shrink: 0; }
.inspection-popup .contact-form__submit { min-height: 50px; padding: 12px; border-radius: 12px; background: linear-gradient(110deg,#b98b3e,#946728); border: 1px solid #ac7e33; color: #fffaf0; font-size: 17px; box-shadow: 0 5px 12px #91652e20; }
.inspection-popup .contact-form__submit svg { width: 24px; height: 24px; }
.inspection-popup .contact-form__status { color: #794519; font-size: 12px; margin: 8px 0 0; }
.inspection-popup .contact-form__error { color: #a02222; font-size: 11px; }
@keyframes inspection-enter { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes inspection-exit { to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes inspection-backdrop { from { background-color: transparent; } to { background-color: rgb(0 0 0 / 72%); } }
@media (max-width: 1024px) and (min-width: 768px) {
    .inspection-popup { width: calc(100vw - 32px); }
    .inspection-popup__scroll { grid-template-columns: 32% 68%; }
    .inspection-popup__benefits { padding: 0 18px 10px; }
    .inspection-popup__benefits li { gap: 10px; }
    .inspection-popup__benefits svg { width: 28px; height: 28px; }
    .inspection-popup__benefits h3 { font-size: 14px; }
    .inspection-popup__benefits p { font-size: 11px; }
    .inspection-popup__content { padding: 30px 22px 20px; }
    .inspection-popup .contact-form__title { font-size: 25px; }
}
@media (max-width: 767px) {
    .inspection-popup { width: calc(100vw - 20px); height: calc(100dvh - 20px); border-radius: 18px; }
    .inspection-popup__scroll { display: block; overflow-y: auto; overscroll-behavior: contain; }
    .inspection-popup__visual { display: block; height: auto; overflow: hidden; }
    .inspection-popup__photo { aspect-ratio: 806 / 1000; }
    .inspection-popup__benefits { padding: 0 22px 18px; }
    .inspection-popup__benefits li { padding: 9px 0; gap: 13px; }
    .inspection-popup__benefits h3 { font-size: 14px; margin-bottom: 2px; }
    .inspection-popup__benefits p { font-size: 11px; }
    .inspection-popup__benefits svg { width: 28px; height: 28px; }
    .inspection-popup__content { overflow: visible; padding: 25px 20px 18px; }
    .inspection-popup .contact-form__title { font-size: 24px; margin-right: 25px; }
    .inspection-popup__intro { font-size: 13px; }
    .inspection-popup .contact-form__fields { grid-template-columns: 1fr; gap: 13px; }
    .inspection-popup .contact-form__field--wide { grid-column: 1; }
    .inspection-popup .contact-form__control input,
    .inspection-popup .contact-form__control select,
    .inspection-popup .contact-form__control textarea { font-size: 16px; height: 48px; }
    .inspection-popup .contact-form__control textarea { height: 90px; }
    .inspection-popup .contact-form__submit { font-size: 15px; }
    .inspection-popup__close { top: 7px; right: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .inspection-popup[open], .inspection-popup.is-closing, .inspection-popup::backdrop, .inspection-popup.is-closing::backdrop { animation: none; }
}
