:root {
  --primary: #2ecc71;
  --secondary: #2c3e50;
  --accent: #f1c40f;
  --bg: #ffffff;
  --text: #2d3436;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.rd-wrap {
  width: min(1220px, 94%);
  margin: 0 auto;
}

.rd-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #ffffff;
  border-bottom: 1px solid #d9e5ed;
}

.rd-header-wrap {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.rd-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rd-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--secondary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.rd-logo-text {
  display: inline-flex;
  gap: 3px;
  font-size: 20px;
  line-height: 1;
}

.rd-logo-text strong {
  color: var(--secondary);
}

.rd-logo-text em {
  color: var(--primary);
  font-style: normal;
}

.rd-header-search-wrap {
  position: relative;
}

.rd-header-search {
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  border: 1px solid #ccdce6;
  border-radius: 10px;
  overflow: hidden;
}

.rd-header-search input {
  border: 0;
  min-height: 42px;
  padding: 0 12px;
  font: inherit;
  color: var(--text);
}

.rd-header-search button {
  border: 0;
  min-height: 42px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.rd-header-live-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #d6e1e9;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(24, 31, 45, 0.12);
  display: none;
  max-height: 340px;
  overflow: auto;
  z-index: 99;
}

.rd-search-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  color: var(--secondary);
  border-bottom: 1px solid #e8eef3;
}

.rd-search-item:last-child {
  border-bottom: 0;
}

.rd-search-item img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #d7e3eb;
  object-fit: contain;
  background: #fff;
}

.rd-search-item span {
  font-size: 14px;
  line-height: 1.35;
}

.rd-search-item:hover {
  background: #f5faf8;
  color: var(--primary);
}

.rd-search-item mark {
  background: #f1c40f;
  color: #2c3e50;
  padding: 0 2px;
}

.rd-menu-toggle {
  display: none;
  border: 1px solid #c8d8e2;
  background: #fff;
  color: var(--secondary);
  border-radius: 8px;
  padding: 8px 11px;
  font-weight: 600;
}

.rd-nav {
  grid-column: 1 / -1;
}

.rd-nav ul {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rd-nav li {
  position: relative;
}

.rd-nav li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 600;
}

.rd-nav li > a:hover {
  background: #f4fbf7;
  color: var(--primary);
}

.rd-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #dbe7ee;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(28, 39, 57, 0.12);
  padding: 6px;
  display: none;
  z-index: 99;
}

.rd-dropdown a {
  display: block;
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--secondary);
  font-size: 13px;
}

.rd-dropdown a:hover {
  background: #f5faf8;
  color: var(--primary);
}

.rd-has-dropdown:hover .rd-dropdown {
  display: block;
}

.rd-footer {
  background: var(--secondary);
  color: #fff;
  padding: 34px 0 20px;
  margin-top: 18px;
}

.rd-newsletter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--primary);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  margin-bottom: 22px;
}

.rd-newsletter-copy h3 {
  margin: 0;
  font-size: 17px;
}

.rd-newsletter-copy p {
  margin: 4px 0 0;
  font-size: 12px;
}

.rd-newsletter-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 420px;
  max-width: 100%;
}

.rd-newsletter-form input {
  flex: 1;
  min-height: 38px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 10px;
}

.rd-newsletter-form button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
}

.rd-newsletter-msg {
  margin: -8px 0 14px;
  font-size: 12px;
}

.rd-newsletter-msg.success { color: var(--primary); }
.rd-newsletter-msg.error { color: var(--accent); }

.rd-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.rd-footer-col h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.rd-footer-col a {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 3px;
}

.rd-footer-col a:hover { color: var(--accent); }

.rd-copy,
.rd-note {
  text-align: center;
  margin: 0;
}

.rd-copy { font-size: 14px; }
.rd-note { font-size: 12px; margin: 6px auto 14px; max-width: 900px; }

.rd-socials {
  display: flex;
  justify-content: center;
  gap: 11px;
}

.rd-socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rd-socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.rd-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 16px;
}

.rd-popup-overlay.rd-open { display: flex; }

.rd-popup-box {
  width: 620px;
  max-width: 100%;
  background: #fff;
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 22px;
  position: relative;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
}

.rd-popup-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
}

.rd-popup-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rd-popup-store-logo {
  width: 125px;
  height: 125px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-popup-store-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
}

.rd-popup-kicker {
  margin: 0 0 5px;
  font-size: 11px;
  color: var(--primary);
}

.rd-popup-box h3 {
  margin: 0;
  color: var(--secondary);
  font-size: 23px;
  line-height: 1.35;
  font-weight: 400;
}

#rdPopupPageName { font-weight: 700; }

.rd-popup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.rd-popup-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 0 13px;
}

.rd-popup-form button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 0 14px;
}

.rd-popup-msg { margin: 10px 0 0; font-size: 13px; }
.rd-popup-msg.success { color: var(--primary); }
.rd-popup-msg.error { color: var(--accent); }

@media (max-width: 980px) {
  .rd-header-wrap {
    grid-template-columns: auto 1fr auto;
  }

  .rd-menu-toggle { display: inline-block; }

  .rd-nav {
    display: none;
    grid-column: 1 / -1;
  }

  .rd-nav.rd-open {
    display: block;
  }

  .rd-nav ul {
    display: grid;
    gap: 6px;
  }

  .rd-has-dropdown:hover .rd-dropdown {
    display: none;
  }

  .rd-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .rd-newsletter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .rd-newsletter-form { width: 100%; }
}

@media (max-width: 640px) {
  .rd-header-wrap {
    grid-template-columns: auto auto;
    grid-template-areas:
      "logo menu"
      "search search";
    gap: 8px;
    padding: 8px 0;
  }

  .rd-logo {
    grid-area: logo;
    min-width: 0;
  }

  .rd-logo-mark {
    width: 32px;
    height: 32px;
  }

  .rd-logo-text {
    font-size: 16px;
    white-space: nowrap;
    gap: 2px;
  }

  .rd-menu-toggle {
    grid-area: menu;
    justify-self: end;
  }

  .rd-header-search-wrap {
    grid-area: search;
  }

  .rd-header-search {
    grid-template-columns: 1fr 38px;
  }

  .rd-header-search input,
  .rd-header-search button {
    min-height: 38px;
  }

  .rd-footer-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .rd-popup-box {
    padding: 16px;
  }

  .rd-popup-box h3 {
    font-size: 17px;
  }

  .rd-popup-form {
    grid-template-columns: 1fr;
  }
}
