/* Uk-top10choices — editorial light theme (distinct from NewDanilWhite dark/amber) */
:root {
  --paper: #f3efe6;
  --paper-2: #ebe6db;
  --ink: #1c1915;
  --ink-muted: #5c574e;
  /* aliases for legacy inline styles in HTML */
  --text: var(--ink);
  --text-muted: var(--ink-muted);
  --accent: #9b2249;
  --accent-hover: #b82d5a;
  --accent-soft: rgba(155, 34, 73, 0.12);
  --link: #2c5282;
  --link-hover: #1a365d;
  --card: #fffefb;
  --card-edge: #e0d9cc;
  --footer-bg: #231f1a;
  --footer-text: #d8d3c9;
  --radius: 4px;
  --radius-sm: 3px;
  --font-ui: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
  --shadow-soft:
    0 2px 0 rgba(28, 25, 21, 0.06), 0 12px 32px rgba(28, 25, 21, 0.08);
  --header-h: auto;
  --maxw: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(
      180deg,
      var(--paper) 0%,
      var(--paper-2) 55%,
      var(--paper) 100%
    ),
    repeating-linear-gradient(
      -11deg,
      transparent,
      transparent 120px,
      rgba(44, 82, 130, 0.02) 120px,
      rgba(44, 82, 130, 0.02) 121px
    );
  min-height: 100vh;
}

body.dm-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--link-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  margin: 2.25rem 0 0.85rem;
}

h3 {
  font-size: 1.12rem;
  margin: 1.5rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  color: var(--ink-muted);
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.35rem;
}

/* Header — light bar, sharp rule */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 254, 251, 0.94);
  border-bottom: 2px solid var(--ink);
  box-shadow: 0 6px 24px rgba(28, 25, 21, 0.05);
  backdrop-filter: blur(10px);
}

.site-header .inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.85rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand:hover {
  color: var(--accent);
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-edge);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.nav-main a {
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-main a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent-soft);
  text-decoration: none;
}

/* Hero — left-aligned editorial block */
.hero {
  padding: 2.75rem 0 1.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero .lead {
  font-size: 1.08rem;
  max-width: 38rem;
  margin-inline: 0;
}

.badge-updated {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 1rem;
}

.section-block {
  padding: 2rem 0 3rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-edge);
}
.section-title h2 {
  margin: 0 0 0.5rem;
  font-style: italic;
}

.offers-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Cards — paper white, left mast, not floating dark tiles */
.offer-card {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr auto;
  gap: 1.35rem;
  align-items: center;
  padding: 1.35rem 1.5rem 1.35rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.offer-card:hover {
  transform: translateX(4px);
  box-shadow:
    0 2px 0 rgba(155, 34, 73, 0.15),
    0 16px 40px rgba(28, 25, 21, 0.1);
}

.offer-logo {
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  border: 1px dashed var(--card-edge);
}

.offer-logo img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.offer-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.offer-body .bonus {
  font-family: var(--font-display);
  font-size: 1.22rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.offer-body .fine {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.offer-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: stretch;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.4rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 0 #6e1734;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-muted);
  border: 2px solid var(--ink);
}
.btn-secondary:hover {
  color: var(--ink);
  background: rgba(28, 25, 21, 0.05);
  text-decoration: none;
}

.btn-block {
  width: 100%;
}

.prose {
  max-width: 44rem;
  margin-inline: auto;
  padding: 2.25rem 0 3.25rem;
}

.prose h2 {
  color: var(--ink);
  font-style: italic;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 4px solid var(--accent);
  padding: 2.75rem 0 2rem;
  margin-top: 2rem;
}

.site-footer h3 {
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .offer-card {
    grid-template-columns: 1fr;
    text-align: center;
    border-left-width: 3px;
  }
  .offer-card:hover {
    transform: none;
  }
  .offer-cta {
    align-items: stretch;
  }
  .nav-main {
    justify-content: flex-end;
  }
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: var(--footer-text);
  font-size: 0.9rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(216, 211, 201, 0.35);
}
.footer-links a:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

.footer-disclaimer {
  font-size: 0.82rem;
  color: rgba(216, 211, 201, 0.88);
  line-height: 1.6;
}
.footer-disclaimer p {
  color: inherit;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-badges a {
  display: flex;
  align-items: center;
  opacity: 0.82;
  transition: opacity 0.2s;
  filter: grayscale(0.15) brightness(1.1);
}
.footer-badges a:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1.15);
}

.footer-badges img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}

.footer-badges .badge-18 img {
  height: 40px;
}

/* Modals — light panels on dim wash */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(35, 31, 26, 0.72);
  backdrop-filter: blur(6px);
}

.overlay[hidden] {
  display: none !important;
}

.modal-panel {
  width: min(420px, 100%);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.85rem;
  box-shadow: 12px 12px 0 rgba(28, 25, 21, 0.12);
  text-align: center;
}

.modal-panel .modal-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-edge);
}

.modal-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.modal-panel p {
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.captcha-panel {
  width: min(380px, 100%);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 10px 10px 0 rgba(155, 34, 73, 0.15);
}

.captcha-panel .modal-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  display: block;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-edge);
}

.captcha-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 1rem 0;
  border: 2px solid var(--ink);
  min-height: 120px;
}

.captcha-wrap canvas#captcha-mosaic {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.captcha-slider-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
  text-align: left;
}

.captcha-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.captcha-status {
  min-height: 1.25rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--accent);
  font-weight: 600;
}

.captcha-piece-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#captcha-piece {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: 100%;
  width: auto;
  border: 2px solid var(--accent);
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(28, 25, 21, 0.25);
  will-change: transform;
}

.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--card);
  border-top: 2px solid var(--ink);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  box-shadow: 0 -8px 32px rgba(28, 25, 21, 0.12);
}

.cookie-bar[hidden] {
  display: none !important;
}

.cookie-inner {
  width: min(960px, 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1;
  min-width: 220px;
}

.cookie-text img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-edge);
}

.cookie-text p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.cookie-text strong {
  color: var(--ink);
}

.form-card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-left: 5px solid var(--link);
  border-radius: var(--radius);
  padding: 1.85rem;
  max-width: 32rem;
  margin-inline: auto;
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--card-edge);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1rem;
}
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 1rem;
}
