/* Main landing campaign additions, 2026-09-25. */

.site-header .header-brand-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin-right: auto;
}

.site-header .header-brand-logo .brand-mark {
  width: 116px;
  height: auto;
  aspect-ratio: 249.45 / 129.36;
  object-fit: contain;
}

.utm-offer-dialog {
  box-sizing: border-box;
  width: min(560px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid #cbd8ce;
  border-radius: 28px;
  background: #f7f5ef;
  color: #102b25;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 100px rgba(4, 24, 18, .32);
}

.utm-offer-dialog::backdrop {
  background: rgba(6, 24, 19, .72);
  backdrop-filter: blur(5px);
}

.utm-offer-dialog[open] {
  animation: utm-offer-enter .2s cubic-bezier(.2, .65, .3, 1) both;
}

.utm-offer-shell {
  position: relative;
  min-width: 0;
  padding: 32px;
}

.utm-offer-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #c8d2ca;
  border-radius: 50%;
  background: #ecefe8;
  color: #173c31;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.utm-offer-close:hover {
  background: #dce6dc;
  transform: rotate(4deg);
}

.utm-offer-close svg {
  display: block;
  width: 22px;
  height: 22px;
}

.utm-offer-eyebrow {
  margin: 0 64px 21px 0;
  color: #376555;
  font: 750 11px/1.4 Manrope, Arial, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.utm-offer-dialog h2 {
  max-width: 15ch;
  margin: 0;
  font: 750 clamp(34px, 4.1vw, 46px)/1.04 Manrope, Arial, sans-serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.utm-offer-dialog h2:focus {
  outline: none;
}

.utm-offer-description {
  max-width: 49ch;
  margin: 24px 0 0;
  color: #566b62;
  font-size: 17px;
  line-height: 1.62;
}

.utm-offer-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 27px;
  padding: 19px 21px;
  border: 1px solid #ccd9ce;
  border-radius: 18px;
  background: #e6eee5;
}

.utm-offer-price-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
}

.utm-offer-price-copy small {
  color: #62746b;
  font-size: 12px;
  font-weight: 550;
}

.utm-offer-price-values {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}

.utm-offer-price-values del {
  color: #6a7d73;
  font-size: 17px;
  font-weight: 650;
  text-decoration-color: #8c3e34;
  text-decoration-thickness: 2px;
}

.utm-offer-price-values strong {
  color: #173c31;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.035em;
}

.utm-offer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.utm-offer-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font: 750 14px/1.3 Manrope, Arial, sans-serif;
  box-shadow: 0 8px 22px rgba(5, 30, 22, .16);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.utm-offer-action:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
  box-shadow: 0 12px 26px rgba(5, 30, 22, .23);
}

.utm-offer-action--telegram {
  background: #1688bd;
}

.utm-offer-action--max {
  background: linear-gradient(120deg, #471aff 0%, #6e1aff 48%, #9500ff 100%);
}

.utm-offer-action--whatsapp {
  background: #0f7f45;
}

.utm-offer-action-icon {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.utm-offer-action-icon svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.utm-offer-action-icon img {
  display: block;
  width: 23px;
  height: 23px;
  object-fit: contain;
}

.utm-offer-close:focus-visible,
.utm-offer-action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #173c31;
}

.utm-offer-dialog[data-offer-variant="b"] {
  border-color: #3a5d50;
  background: #102b25;
  color: #f4f4ed;
}

.utm-offer-dialog[data-offer-variant="b"] .utm-offer-close {
  border-color: #426257;
  background: #1b3a31;
  color: #f4f4ed;
}

.utm-offer-dialog[data-offer-variant="b"] .utm-offer-close:hover {
  background: #284a3f;
}

.utm-offer-dialog[data-offer-variant="b"] .utm-offer-eyebrow {
  color: #b9d0c3;
}

.utm-offer-dialog[data-offer-variant="b"] .utm-offer-description {
  color: #c7d2cc;
}

.utm-offer-dialog[data-offer-variant="b"] .utm-offer-price {
  border-color: #345449;
  background: #1a382f;
}

.utm-offer-dialog[data-offer-variant="b"] .utm-offer-price-copy small,
.utm-offer-dialog[data-offer-variant="b"] .utm-offer-price-values del {
  color: #aec0b6;
}

.utm-offer-dialog[data-offer-variant="b"] .utm-offer-price-values strong {
  color: #f4f4ed;
}

@keyframes utm-offer-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 760px) {
  .site-header .header-brand-logo .brand-mark {
    width: 94px;
  }

  .header-inner .header-cta {
    flex-basis: 108px;
    white-space: nowrap;
  }

  .hero-media {
    height: clamp(285px, 78vw, 350px);
  }

  .hero-media img {
    /* Keep the face centred while showing both ears, shoulders and more of the
       cabinet around the portrait on narrow screens. */
    object-position: 100% 42%;
    transform: none;
  }

  .utm-offer-dialog {
    width: min(540px, calc(100vw - 32px));
  }

  .utm-offer-shell {
    padding: 26px;
  }
}

@media (max-width: 600px) {
  .site-header .header-brand-logo .brand-mark {
    width: 86px;
  }

  .header-inner .header-cta {
    flex-basis: 101px;
    padding-inline: 12px;
    white-space: nowrap;
  }

  .utm-offer-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 22px;
  }

  .utm-offer-shell {
    padding: 20px;
  }

  .utm-offer-close {
    top: 12px;
    right: 12px;
  }

  .utm-offer-eyebrow {
    margin: 2px 58px 19px 0;
    font-size: 10px;
  }

  .utm-offer-dialog h2 {
    max-width: 13.5ch;
    font-size: clamp(27px, 8vw, 34px);
  }

  .utm-offer-description {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.55;
  }

  .utm-offer-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 15px;
  }

  .utm-offer-price-values {
    justify-content: flex-start;
    white-space: normal;
  }

  .utm-offer-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }

  .utm-offer-action {
    min-height: 54px;
  }
}

@media (max-width: 359px) {
  .site-header .header-brand-logo .brand-mark {
    width: 76px;
  }

  .header-inner .header-cta {
    flex-basis: 96px;
    font-size: 9px;
    white-space: nowrap;
  }

  .utm-offer-shell {
    padding: 18px;
  }

  .hero-media {
    height: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .utm-offer-dialog[open] {
    animation: none;
  }

  .utm-offer-close,
  .utm-offer-action {
    transition: none;
  }

  .utm-offer-close:hover,
  .utm-offer-action:hover {
    transform: none;
  }
}

@media print {
  .utm-offer-dialog {
    display: none !important;
  }
}
