/* preview.css — кастом для статичной версии. Поверх scent/css. */

/* === Modal (popup-12141 replacement) === */
.krsk-modal{position:fixed;inset:0;z-index:99999;display:none;align-items:center;justify-content:center}
.krsk-modal.is-open{display:flex}
.krsk-modal__overlay{position:absolute;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(2px)}
.krsk-modal__box{
  position:relative !important;
  background:
    linear-gradient(rgba(0,0,0,.15), rgba(0,0,0,.35)),
    url("/uploads/background-dark-blue-600x400.jpg") center center / cover no-repeat !important;
  background-color:#0f1928 !important;
  color:#f0eee8;
  max-width:560px;width:92%;
  border-radius:6px;
  padding:32px 34px 28px;
  box-shadow:0 20px 50px rgba(0,0,0,.5);
  font-family:Roboto,Arial,sans-serif;
}
.krsk-modal__close{position:absolute;top:8px;right:12px;background:transparent;border:0;font-size:32px;line-height:1;color:#999;cursor:pointer;padding:0;width:32px;height:32px; color:#eee;}
.krsk-modal__close:hover{color:#5B503C}
.krsk-modal__title{margin:0 0 12px;font-family:Oranienbaum,Georgia,serif;font-size:22px;color:#e8d9b0;font-weight:400}
.krsk-modal__body p{line-height:1.55;margin:0 0 10px}
.krsk-modal__body a{color:#e8d9b0;text-decoration:underline}

/* === Modern contact form === */
.krsk-form-modern{max-width:540px;margin:0 auto;font-family:Roboto,Arial,sans-serif}
.krsk-form-modern__row{position:relative;margin:0 0 22px}
.krsk-form-modern__row input,
.krsk-form-modern__row textarea{
  width:100%;border:1px solid #ccc;border-radius:4px;background:#fff;
  padding:18px 14px 8px;font:15px/1.4 Roboto,Arial,sans-serif;color:#222;
  transition:border-color .15s, box-shadow .15s;
  appearance:none;-webkit-appearance:none;
}
.krsk-form-modern__row textarea{min-height:110px;resize:vertical}
.krsk-form-modern__row input:focus,
.krsk-form-modern__row textarea:focus{outline:0;border-color:#807154;box-shadow:0 0 0 3px rgba(128,113,84,.15)}
.krsk-form-modern__row label{
  position:absolute;left:14px;top:14px;pointer-events:none;
  font:14px/1 Roboto,Arial,sans-serif;color:#888;
  transition:transform .15s ease, color .15s ease, font-size .15s ease;
  background:#fff;padding:0 4px;
}
.krsk-form-modern__row input:focus + label,
.krsk-form-modern__row input:not(:placeholder-shown) + label,
.krsk-form-modern__row textarea:focus + label,
.krsk-form-modern__row textarea:not(:placeholder-shown) + label{
  transform:translateY(-22px);
  color:#5B503C;
  font-size:12px;
}
.krsk-form-modern__file{margin:0 0 22px}
.krsk-form-modern__file > label{display:block;font:14px/1.3 Roboto;color:#5B503C;margin-bottom:6px}
.krsk-form-modern__file input[type=file]{width:100%;border:1px dashed #c4b89a;border-radius:4px;background:#fafaf6;padding:12px;font:14px/1.3 Roboto;cursor:pointer}
.krsk-form-modern__file input[type=file]:hover{border-color:#807154;background:#fff}
.krsk-form-modern__submit{
  display:inline-block;border:0;cursor:pointer;
  background:linear-gradient(to bottom,#807154 0,#5B503C 100%);
  color:#fff;font:600 15px/1 Roboto,Arial,sans-serif;letter-spacing:.5px;text-transform:uppercase;
  padding:14px 30px;border-radius:24px;transition:background .15s;
}
.krsk-form-modern__submit:hover{background:linear-gradient(to top,#807154 0,#5B503C 100%)}
.krsk-form-modern__hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.krsk-form-modern__note{font-size:12px;color:#888;margin-top:8px}

/* Status messages */
.krsk-msg{margin:18px 0;padding:12px 16px;border-radius:4px;font:14px/1.4 Roboto}
.krsk-msg--ok{background:#e8f5e9;color:#2e7d32;border:1px solid #c8e6c9}
.krsk-msg--err{background:#ffebee;color:#c62828;border:1px solid #ffcdd2}


/* === form variant tabs === */
.krsk-formvars{max-width:760px;margin:30px auto 20px;font-family:Roboto,Arial,sans-serif}
.krsk-formvars__tabs{display:flex;gap:0;border-bottom:1px solid #ddd;margin-bottom:0}
.krsk-formvars__tab{
  background:#f5f5f5;border:1px solid #ddd;border-bottom:0;
  padding:10px 22px;font:14px/1 Roboto,Arial,sans-serif;color:#555;
  cursor:pointer;border-radius:6px 6px 0 0;margin-right:4px;
  transition:background .15s, color .15s;
}
.krsk-formvars__tab:hover{background:#ebebeb}
.krsk-formvars__tab.is-active{background:#fff;color:#5B503C;font-weight:600;border-color:#5B503C #5B503C #fff #5B503C}
.krsk-formvars__pane{display:none;padding:24px;border:1px solid #5B503C;border-top:0;background:#fff;color:#333}
.krsk-formvars__pane.is-active{display:block}
.krsk-formvars__hint{font-size:13px;color:#777;margin:0 0 14px}
