
body.vk-modal-open {
  overflow: hidden;
}

:root {
  --vk-bg: #ffffff;
  --vk-text: #111111;
  --vk-text-soft: #4a4a4a;
  --vk-border: rgba(17, 17, 17, 0.10);
  --vk-border-strong: rgba(17, 17, 17, 0.18);
  --vk-surface: #f8f5f2;
  --vk-accent: #201815;
  --vk-accent-hover: #000000;
  --vk-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
  --vk-radius-lg: 30px;
  --vk-radius-md: 18px;
  --vk-radius-sm: 14px;
}

.vk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 11, 0.60);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: vkFadeIn .2s ease-out;
}

.vk-modal,
.vk-result-modal {
  width: min(1120px, calc(100vw - 48px));
  background: var(--vk-bg);
  color: var(--vk-text);
  border-radius: var(--vk-radius-lg);
  box-shadow: var(--vk-shadow);
  border: 1px solid rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
}

.vk-modal {
  min-height: 0;
}

.vk-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  min-height: min(760px, calc(100vh - 80px));
}

.vk-modal.vk-modal--no-image {
  width: min(760px, calc(100vw - 48px));
}

.vk-modal.vk-modal--no-image .vk-modal-grid {
  grid-template-columns: 1fr;
  min-height: 0;
}

.vk-modal-content {
  padding: 48px 48px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.vk-modal-content h2 {
  margin: 0 56px 20px 0;
  color: var(--vk-text);
  font-size: clamp(2.35rem, 3.8vw, 4.5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

.vk-popup-copy,
.vk-form-wrap {
  max-width: 100%;
}

.vk-popup-copy {
  color: var(--vk-text-soft);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.vk-popup-copy > *:first-child {
  margin-top: 0;
}

.vk-popup-copy > *:last-child {
  margin-bottom: 0;
}

.vk-popup-copy p {
  margin: 0 0 16px;
}

.vk-popup-copy ul,
.vk-popup-copy ol {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.vk-popup-copy li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 12px;
  color: var(--vk-text);
  font-weight: 500;
}

.vk-popup-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #7f6248;
  font-weight: 700;
}

.vk-signup-form,
.vk-coupon-lookup-form {
  display: grid;
  gap: 16px;
}

.vk-signup-form p,
.vk-coupon-lookup-form p {
  margin: 0;
}

.vk-signup-form label,
.vk-coupon-lookup-form label {
  display: block;
  color: var(--vk-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.vk-signup-form label > br,
.vk-coupon-lookup-form label > br {
  display: none;
}

.vk-form-wrap input[type="text"],
.vk-form-wrap input[type="email"],
.vk-modal input[type="text"],
.vk-modal input[type="email"] {
  display: block;
  width: 100% !important;
  min-height: 56px;
  margin-top: 10px;
  padding: 15px 18px;
  border: 1px solid var(--vk-border);
  border-radius: var(--vk-radius-sm);
  background: #fbfaf9;
  box-shadow: inset 0 1px 1px rgba(17, 17, 17, 0.02);
  color: var(--vk-text);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, transform .16s ease;
  box-sizing: border-box;
}

.vk-form-wrap input[type="text"]::placeholder,
.vk-form-wrap input[type="email"]::placeholder,
.vk-modal input[type="text"]::placeholder,
.vk-modal input[type="email"]::placeholder {
  color: #8c8c8c;
}

.vk-form-wrap input[type="text"]:focus,
.vk-form-wrap input[type="email"]:focus,
.vk-modal input[type="text"]:focus,
.vk-modal input[type="email"]:focus {
  outline: none;
  border-color: #7f6248;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(127, 98, 72, 0.12);
}

.vk-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--vk-text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 500;
  margin-top: 4px;
}

.vk-consent input[type="checkbox"] {
  margin: 4px 0 0;
  width: 18px;
  height: 18px;
  accent-color: #201815;
}

.vk-message {
  display: none;
  margin: 0 0 4px;
  padding: 14px 16px;
  border-radius: var(--vk-radius-sm);
  background: #f4efe9;
  color: #3e2d22;
  font-weight: 600;
  line-height: 1.5;
}

.vk-message:not(:empty) {
  display: block;
}

.vk-signup-form .button,
.vk-coupon-lookup-form .button,
.vk-modal .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--vk-accent);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(32, 24, 21, 0.18);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, opacity .16s ease;
}

.vk-signup-form .button:hover,
.vk-coupon-lookup-form .button:hover,
.vk-modal .button:hover {
  background: var(--vk-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(32, 24, 21, 0.24);
}

.vk-signup-form .button:disabled,
.vk-coupon-lookup-form .button:disabled,
.vk-modal .button:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.vk-modal-image {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(18, 14, 13, 0.08), rgba(18, 14, 13, 0.18)),
    linear-gradient(135deg, #ede6de, #cfb89e);
}

.vk-modal-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(180deg, transparent, rgba(18, 14, 13, 0.14));
  pointer-events: none;
}

.vk-modal-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.vk-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111111;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.vk-close:hover {
  transform: scale(1.03);
  background: #ffffff;
  border-color: rgba(17, 17, 17, 0.16);
}

.vk-result-modal {
  width: min(560px, calc(100vw - 48px));
  padding: 34px 32px 30px;
  text-align: center;
}

.vk-result-modal h3 {
  margin: 0 40px 12px;
  color: var(--vk-text);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.vk-result-message {
  color: var(--vk-text-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.vk-coupon-box-wrap {
  margin-top: 24px;
}

.vk-coupon-box {
  margin: 0 0 12px;
}

.vk-coupon-box code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 72px;
  padding: 18px 22px;
  border: 1px dashed var(--vk-border-strong);
  border-radius: 20px;
  background: #fbfaf9;
  color: var(--vk-text);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  user-select: all;
  -webkit-user-select: all;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.vk-coupon-box code:hover,
.vk-coupon-box code:focus {
  border-color: #7f6248;
  background: #ffffff;
  outline: none;
}

.vk-copy-coupon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--vk-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--vk-text);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.vk-copy-coupon:hover,
.vk-copy-coupon:focus {
  border-color: #7f6248;
  background: #fbfaf9;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  outline: none;
}

.vk-copy-feedback {
  min-height: 24px;
  margin-top: 10px;
  color: var(--vk-text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

.vk-shortcode-signup,
.vk-shortcode-lookup {
  max-width: 720px;
  padding: 28px;
  border: 1px solid var(--vk-border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
}

.vk-shortcode-signup .button,
.vk-shortcode-lookup .button {
  width: 100%;
}

@keyframes vkFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .vk-modal-content {
    padding: 40px 36px 34px;
  }

  .vk-modal-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  }
}

@media (max-width: 782px) {
  .vk-overlay {
    padding: 10px;
    align-items: center;
  }

  .vk-modal,
  .vk-result-modal {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 22px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .vk-modal-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .vk-modal-image {
    min-height: 180px;
    max-height: 28vh;
    order: -1;
  }

  .vk-modal.vk-modal--no-image .vk-modal-grid,
  .vk-modal-grid {
    min-height: 0;
  }

  .vk-modal-content {
    padding: 24px 20px 20px;
  }

  .vk-modal-content h2 {
    margin: 0 44px 14px 0;
    font-size: clamp(1.7rem, 9vw, 2.55rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
  }

  .vk-popup-copy {
    font-size: 0.98rem;
    line-height: 1.5;
    margin-bottom: 18px;
  }

  .vk-popup-copy p {
    margin: 0 0 12px;
  }

  .vk-popup-copy ul,
  .vk-popup-copy ol {
    margin-top: 14px;
  }

  .vk-popup-copy li {
    padding-left: 24px;
    margin: 0 0 10px;
    font-size: 0.98rem;
  }

  .vk-signup-form,
  .vk-coupon-lookup-form {
    gap: 12px;
  }

  .vk-signup-form label,
  .vk-coupon-lookup-form label {
    font-size: 0.96rem;
  }

  .vk-form-wrap input[type="text"],
  .vk-form-wrap input[type="email"],
  .vk-modal input[type="text"],
  .vk-modal input[type="email"] {
    min-height: 52px;
    margin-top: 8px;
    padding: 13px 16px;
    font-size: 0.98rem;
  }

  .vk-consent {
    gap: 10px;
    font-size: 0.96rem;
    line-height: 1.45;
  }

  .vk-consent input[type="checkbox"] {
    width: 17px;
    height: 17px;
  }

  .vk-signup-form .button,
  .vk-coupon-lookup-form .button,
  .vk-modal .button {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    font-size: 0.98rem;
  }

  .vk-result-modal {
    padding: 24px 18px 20px;
  }

  .vk-result-modal h3 {
    margin: 0 34px 10px;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .vk-coupon-box-wrap {
    margin-top: 20px;
  }

  .vk-coupon-box {
    margin: 0 0 10px;
  }

  .vk-coupon-box code {
    width: 100%;
    min-height: 64px;
    padding: 16px 10px;
    letter-spacing: 0.04em;
    font-size: clamp(1.1rem, 5.2vw, 1.45rem);
  }

  .vk-copy-coupon {
    width: 100%;
    min-height: 46px;
    font-size: 0.95rem;
  }

  .vk-copy-feedback {
    margin-top: 8px;
    font-size: 0.88rem;
  }

  .vk-shortcode-signup,
  .vk-shortcode-lookup {
    padding: 18px;
    border-radius: 18px;
  }

  .vk-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .vk-overlay {
    padding: 8px;
  }

  .vk-modal,
  .vk-result-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }

  .vk-modal-content {
    padding: 18px 16px 16px;
  }

  .vk-modal-content h2 {
    margin-right: 36px;
    margin-bottom: 12px;
    font-size: clamp(1.45rem, 8.2vw, 2rem);
    line-height: 1.02;
  }

  .vk-popup-copy {
    font-size: 0.92rem;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .vk-popup-copy li {
    font-size: 0.92rem;
    margin-bottom: 8px;
  }

  .vk-signup-form,
  .vk-coupon-lookup-form {
    gap: 10px;
  }

  .vk-signup-form label,
  .vk-coupon-lookup-form label,
  .vk-consent {
    font-size: 0.92rem;
  }

  .vk-form-wrap input[type="text"],
  .vk-form-wrap input[type="email"],
  .vk-modal input[type="text"],
  .vk-modal input[type="email"] {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
  }

  .vk-signup-form .button,
  .vk-coupon-lookup-form .button,
  .vk-modal .button {
    min-height: 50px;
    padding: 12px 16px;
    font-size: 0.94rem;
  }

  .vk-result-modal {
    padding: 20px 16px 16px;
  }

  .vk-result-modal h3 {
    margin: 0 30px 8px;
  }

  .vk-coupon-box code {
    min-height: 58px;
    padding: 14px 8px;
    border-radius: 16px;
    font-size: clamp(1rem, 5vw, 1.2rem);
  }

  .vk-copy-coupon {
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .vk-close {
    width: 34px;
    height: 34px;
    font-size: 24px;
  }
}
