/* KRASNOV Studio Footer v3 (Hybrid 3: Warm Travertine & Graphite Split) + 4 Selling Popups */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=Montserrat:wght@400;500;600;700&family=Oranienbaum&display=swap');

.kh-h3 {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  text-align: left;
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 2;
}
.kh-h3 *, .kh-h3 *::before, .kh-h3 *::after {
  box-sizing: border-box;
}
.kh-h3 a {
  color: inherit;
  text-decoration: none !important;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.kh-h3 button {
  font-family: inherit;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.kh-h3 ul, .kh-h3 li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kh-h3 .kh-brand-svg {
  display: block;
  width: 100%;
  max-width: 176px;
  height: auto;
}

/* Top Conversion Layer: Warm Travertine Stone */
.kh-h3-stone {
  background: #F3EFE8;
  color: #1A1917;
  padding: 56px 48px 48px;
  border-top: 1px solid #DDD6C9;
}
.kh-h3-container {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
.kh-h3-stone-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.kh-h3-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7A1C24;
  margin: 0 0 8px;
}
.kh-h3-title {
  font-family: 'Oranienbaum', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.14;
  color: #181715;
  margin: 0;
}
.kh-h3-stone-sub {
  max-width: 390px;
  font-size: 13px;
  color: #5C574F;
  margin: 0;
}
.kh-h3-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kh-h3-card {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: #FFFFFF;
  border: 1px solid #DDD6C9;
  border-radius: 6px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  color: #1A1917;
}
.kh-h3-card:hover {
  border-color: #7A1C24;
  box-shadow: 0 12px 28px rgba(24, 23, 21, 0.09);
  transform: translateY(-2px);
}
.kh-h3-card:focus-visible {
  outline: 2px solid #7A1C24;
  outline-offset: 2px;
}
.kh-h3-card--dark {
  background: #1A1917;
  border-color: #1A1917;
  color: #FAF8F5;
}
.kh-h3-card--dark:hover {
  background: #7A1C24;
  border-color: #7A1C24;
  color: #FFFFFF;
}
.kh-h3-card-h {
  font-family: 'Oranienbaum', 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 8px;
  color: inherit;
}
.kh-h3-card-p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #5C574F;
  margin: 0;
}
.kh-h3-card--dark .kh-h3-card-p {
  color: rgba(250, 248, 245, 0.82);
}
.kh-h3-card-go {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7A1C24;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kh-h3-card--dark .kh-h3-card-go {
  color: #E2CEB5;
}

/* Bottom Clean Graphite Base */
.kh-h3-base {
  background: #141517;
  color: #F1EFEA;
  padding: 52px 48px 36px;
}
.kh-h3-base-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.kh-h3-phone {
  display: block;
  font-family: 'Oranienbaum', 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  line-height: 1.15;
  color: #FFFFFF !important;
  margin: 18px 0 6px;
}
.kh-h3-phone:hover {
  color: #D6C3AA !important;
}
.kh-h3-email {
  display: inline-block;
  font-size: 13px;
  color: #D6C3AA !important;
  border-bottom: 1px solid rgba(214, 195, 170, 0.35);
  margin-bottom: 12px;
}
.kh-h3-email:hover {
  color: #FFFFFF !important;
  border-bottom-color: #FFFFFF;
}
.kh-h3-info {
  font-size: 12.5px;
  color: #A1A1AA;
  margin: 0 0 18px;
  line-height: 1.55;
}
.kh-h3-msgr-trigger {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F3EFE8;
  color: #181715;
  border: 1px solid #F3EFE8;
  padding: 11px 16px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.kh-h3-msgr-trigger:hover {
  background: #D6C3AA;
  border-color: #D6C3AA;
}
.kh-h3-col-h {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #D6C3AA;
  margin: 0 0 14px;
}
.kh-h3-list li {
  margin-bottom: 9px;
}
.kh-h3-list a {
  font-size: 13px;
  color: #D4D4D8 !important;
}
.kh-h3-list a:hover {
  color: #FFFFFF !important;
}

/* Social Media Strip (All 11 Channels) */
.kh-h3-media-strip {
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.kh-h3-soc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.kh-h3-soc-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 5px;
  background: #1C1E22;
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 12px;
  font-weight: 500;
  color: #E4E4E7 !important;
}
.kh-h3-soc-pill:hover {
  background: #F3EFE8;
  color: #181715 !important;
  border-color: #F3EFE8;
}

/* Legal Bottom */
.kh-h3-foot {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: #8E929B;
}
.kh-h3-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 8px;
}
.kh-h3-legal a {
  color: #A1A1AA !important;
}
.kh-h3-legal a:hover {
  color: #F1EFEA !important;
}
.kh-h3-meta-note {
  margin: 6px 0 0;
  font-size: 10.5px;
  color: #666B75;
}

@media (max-width: 1080px) {
  .kh-h3-cards { grid-template-columns: repeat(2, 1fr); }
  .kh-h3-base-grid { grid-template-columns: repeat(2, 1fr); }
  .kh-h3-media-strip { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .kh-h3-stone, .kh-h3-base { padding: 34px 20px; }
  .kh-h3-cards, .kh-h3-base-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SELLING POPUP MODALS (4 SCENARIOS)
   ========================================================= */
.kh-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(8, 9, 12, 0.80);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  text-align: left;
}
.kh-modal-backdrop[hidden] {
  display: none !important;
}
.kh-modal-backdrop *, .kh-modal-backdrop *::before, .kh-modal-backdrop *::after {
  box-sizing: border-box;
}
.kh-modal {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: #171618;
  color: #F5F2ED;
  border: 1px solid rgba(212, 192, 166, 0.30);
  border-radius: 12px;
  padding: 30px 30px 26px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.72);
}
.kh-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #F5F2ED;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kh-modal-close:hover {
  background: #7A1C24;
  border-color: #7A1C24;
  color: #FFFFFF;
}
.kh-modal-kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D4C0A6;
  margin: 0 0 6px;
  padding-right: 36px;
}
.kh-modal-title {
  font-family: 'Oranienbaum', 'Cormorant Garamond', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.14;
  margin: 0 0 10px;
  color: #FFFFFF;
}
.kh-modal-sub {
  font-size: 13px;
  color: #C4C1BC;
  margin: 0 0 16px;
}
.kh-modal-bullets {
  list-style: none;
  margin: 0 0 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(212, 192, 166, 0.15);
  border-radius: 8px;
}
.kh-modal-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  color: #E7E4DE;
  margin-bottom: 7px;
}
.kh-modal-bullets li:last-child {
  margin-bottom: 0;
}
.kh-modal-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B83A45;
}

/* Form controls inside selling modals */
.kh-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kh-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px) {
  .kh-modal { padding: 24px 18px 20px; }
  .kh-modal-title { font-size: 25px; }
  .kh-field-row { grid-template-columns: 1fr; }
}
.kh-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B4B0A8;
  margin-bottom: 5px;
}
.kh-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #212023;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.kh-input::placeholder {
  color: #7D7B78;
}
.kh-input:focus {
  border-color: #D4C0A6;
  background: #262529;
}
.kh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kh-pill-btn {
  appearance: none;
  background: #212023;
  color: #D4D4D8;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.kh-pill-btn.is-active {
  background: #D4C0A6;
  border-color: #D4C0A6;
  color: #181715;
}
.kh-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11.5px;
  color: #A8A59E;
  cursor: pointer;
  margin-top: 2px;
}
.kh-consent input {
  margin-top: 2px;
  accent-color: #7A1C24;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.kh-consent a {
  color: #D4C0A6 !important;
  text-decoration: underline;
}
.kh-submit-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 6px;
  border: 1px solid #8E232D;
  background: #7A1C24;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  margin-top: 2px;
}
.kh-submit-btn:hover {
  background: #962630;
}
.kh-submit-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.kh-form-err {
  font-size: 12px;
  color: #FCA5A5;
  background: rgba(127, 29, 29, 0.35);
  border: 1px solid rgba(248, 113, 113, 0.4);
  padding: 8px 11px;
  border-radius: 6px;
}
.kh-trust-note {
  font-size: 11.5px;
  color: #9A9791;
  text-align: center;
  margin: 2px 0 0;
}
.kh-alt-msgr {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #A1A1AA;
}
.kh-alt-msgr-links {
  display: flex;
  gap: 8px;
}
.kh-alt-msgr-links a {
  color: #D4C0A6 !important;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(212, 192, 166, 0.1);
}
.kh-alt-msgr-links a:hover {
  background: #D4C0A6;
  color: #181715 !important;
}

/* Messenger List Modal */
.kh-modal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kh-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.16s ease;
}
.kh-modal-item:hover {
  transform: translateY(-1px);
  border-color: #D4C0A6;
  background: rgba(212, 192, 166, 0.13);
}
.kh-modal-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.kh-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kh-modal-icon--max { background: #2D5BFF; color: #FFFFFF; }
.kh-modal-icon--tg { background: #229ED9; color: #FFFFFF; }
.kh-modal-icon--wa { background: #25D366; color: #0B1F11; }
.kh-modal-item-name { font-size: 14.5px; font-weight: 600; display: block; color: #FFFFFF; }
.kh-modal-item-hint { font-size: 11.5px; color: #A8A59E; display: block; }
.kh-modal-arrow { font-size: 13px; color: #D4C0A6; font-weight: 700; }
.kh-modal-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #A8A59E;
  flex-wrap: wrap;
  gap: 8px;
}
.kh-modal-foot a {
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 600;
}

/* Success State */
.kh-success {
  text-align: center;
  padding: 18px 8px 10px;
}
.kh-success-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #4ADE80;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kh-success h4 {
  font-family: 'Oranienbaum', 'Cormorant Garamond', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 8px;
  color: #FFFFFF;
}
.kh-success p {
  font-size: 13.5px;
  color: #C4C1BC;
  margin: 0 0 18px;
}
