.nav-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.nav-mobile-login {
  display: none;
}

@media (max-width: 980px) {
  .nav-menu-toggle {
    display: inline-flex;
    order: -1;
  }

  .nav.is-menu-open {
    border-radius: 24px;
  }

  .nav.is-menu-open .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px 0;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 44px #0f172a2e;
  }

  .nav.is-menu-open .nav-links a {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .nav.is-menu-open .nav-links a:last-child {
    border-bottom: 0;
  }

  .nav-mobile-login {
    display: block;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 220px;
  }

  .nav-cta {
    display: none;
  }

  .template-grid {
    row-gap: 34px;
  }

  .template-card {
    position: relative;
  }

  .template-card + .template-card::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: -17px;
    height: 1px;
    background: #d9e0ea;
  }
}

.faq-list.ted-faq-accordion {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 920px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.ted-faq-row {
  border-bottom: 1px solid var(--line);
}

.ted-faq-question {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.ted-faq-question span:first-child {
  flex: 1;
  text-align: center;
}

.ted-faq-question:hover {
  color: var(--pink-dark);
}

.ted-faq-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f6f8fb;
  color: var(--pink-dark);
  font-weight: 900;
}

.ted-faq-answer {
  padding: 0 40px 18px 4px;
  color: var(--muted);
  text-align: center;
}

.ted-faq-answer p {
  margin: 0 0 10px;
  line-height: 1.58;
}

.ted-faq-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 620px) {
  .ted-faq-question {
    min-height: 54px;
    font-size: 15px;
    padding: 14px 0;
  }

  .ted-faq-answer {
    padding: 0 34px 16px 0;
  }
}

@media (max-width: 620px) {
  .footer {
    text-align: center;
    justify-items: center;
  }

  .footer img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer .button {
    justify-self: center;
  }
}

.ted-legal-links {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-top: 8px;
  color: #ffffffb8;
  font-size: 13px;
}

.ted-legal-links a,
.ted-legal-links button {
  color: inherit;
  border: 0;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.ted-cookie-popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  width: min(390px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 44px #0f172a2e;
}

.ted-cookie-popup h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ted-cookie-popup p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.ted-cookie-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.ted-cookie-actions button {
  min-height: 42px;
  border: 1px solid var(--pink-dark);
  border-radius: 8px;
  background: #fff;
  color: var(--pink-dark);
  font-weight: 900;
  cursor: pointer;
}

.ted-cookie-actions [data-cookie-accept] {
  background: var(--pink-dark);
  color: #fff;
}

.ted-cookie-popup a {
  color: var(--pink-dark);
  font-weight: 800;
}

@media (max-width: 620px) {
  .ted-cookie-popup {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }
}
