:root {
  --color-white: #fff;
  --color-black-primary: #000;
  --color-black-second: rgba(0, 0, 0, 0.7);
  --color-primary: #1d4ed8;
  --color-purple: #be185d;
  --hero-gradient: linear-gradient(108deg, rgba(0, 158, 226, 0.9) -57.13%, #8b2fff 11.08%, rgba(245, 5, 79, 0.9) 102.57%);
  --title-underline: linear-gradient(108deg, rgba(0, 158, 226, 0.9) -57.13%, #8b2fff 11.08%, rgba(245, 5, 79, 0.9) 102.57%);
  --btn-gradient: linear-gradient(315deg, #60a5fa, #2563eb);
  --btn-gradient-home: linear-gradient(135deg, #2563eb, #8b2fff 52%, #f5054f);
}
[data-theme="dark"] {
  --color-white: #1f1f23;
  --color-black-primary: #f5f5f7;
  --color-black-second: rgba(245, 245, 247, 0.75);
  --color-primary: #60a5fa;
  --color-purple: #f472b6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--color-black-primary);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}
[data-theme="dark"] body { background: #121214; color: var(--color-black-primary); }
img, svg { max-width: 100%; display: block; }
a { color: var(--color-primary); }
button { font-family: inherit; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 984px;
  padding: 6px 20px;
  width: 100%;
  background: transparent;
}
.header-bar {
  background: var(--color-white);
  border-bottom: 1px solid transparent;
}
[data-theme="dark"] .header-bar { border-bottom-color: hsla(0,0%,100%,.08); }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.brand img, .brand svg { width: 36px; height: 36px; }
.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: #7e17ff;
  letter-spacing: -0.03em;
  line-height: 1;
}
[data-theme="dark"] .brand-name { color: #c4b5fd; }
.header__nav {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: center;
}
.header__faq {
  color: var(--color-black-primary);
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  padding: 12px;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .3s ease-in;
}
.header__faq:hover { opacity: .4; }
.header__theme-toggle {
  align-items: center;
  background: inherit;
  border: none;
  color: var(--color-black-primary);
  cursor: pointer;
  display: flex;
  height: 48px;
  width: 48px;
  justify-content: center;
  margin: 0;
  padding: 0;
  transition: opacity .3s ease-in;
}
.header__theme-toggle:hover { opacity: .4; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun, :root:not([data-theme="dark"]) .icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: flex; }
.header__lang { position: relative; }
.header__lang-button {
  align-items: center;
  background: inherit;
  border: none;
  color: var(--color-black-primary);
  cursor: pointer;
  display: flex;
  font-size: 18px;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
  padding: 12px 8px 12px 12px;
  text-transform: uppercase;
  transition: opacity .3s ease-in;
}
.header__lang-button:hover { opacity: .4; }
.header__lang-menu {
  background: var(--color-white);
  border-radius: 12px;
  display: none;
  list-style: none;
  margin: 0;
  overflow: auto;
  max-height: 70vh;
  padding: 8px 0;
  position: absolute;
  right: 0;
  top: 56px;
  width: 300px;
  z-index: 50;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.header__lang-menu.is-open { display: block; }
.header__lang-menu a, .header__lang-menu span {
  display: block;
  padding: 8px 16px;
  color: var(--color-black-primary);
  text-decoration: none;
  font-size: 16px;
}
.header__lang-menu a:hover { background: #f3f4f6; }
[data-theme="dark"] .header__lang-menu a:hover { background: #2a2a30; color: #fff; }

/* Hero */
.section-main {
  background: var(--hero-gradient);
  margin: 0 auto;
  padding: 20px 20px 30px;
}
@media (min-width: 769px) {
  .section-main { padding: 30px 20px 44px; }
}
.category {
  background: hsla(0,0%,100%,.24);
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 100%;
  overflow: hidden;
}
@media (min-width: 769px) {
  .category { max-width: max-content; }
}
.category__element { position: relative; }
.category__element:after {
  background: hsla(0,0%,100%,.2);
  content: "";
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
}
.category__element:last-child:after { content: none; }
.category a, .category span.is-active {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 0;
  font-weight: 400;
  gap: 0;
  justify-content: center;
  line-height: 24px;
  padding: 6px 2px;
  text-decoration: none;
  transition: opacity .3s ease-in;
  min-height: 36px;
}
.category a:hover { opacity: .5; }
.category .is-current, .category span.is-active { opacity: .55; pointer-events: none; }
.category svg { width: 22px; height: 22px; flex-shrink: 0; }
.category .tab-label { font-size: 0; }
@media (min-width: 769px) {
  .category a, .category span.is-active {
    font-size: 16px;
    gap: 6px;
    padding: 6px 10px;
  }
  .category .tab-label { font-size: 16px; }
}
.section-main__content {
  margin: 24px auto 30px;
  max-width: 816px;
  text-align: center;
}
.section-main__title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  margin: 10px auto;
}
@media (min-width: 769px) {
  .section-main__title { font-size: 44px; line-height: 48px; }
}
.section-main__text {
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  margin: 10px auto;
}
@media (min-width: 769px) {
  .section-main__text { font-size: 18px; }
}

/* Search form */
.search-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin: 0 auto;
  max-width: 672px;
  padding: 0;
  width: 100%;
  background: none;
  box-shadow: none;
}
.search-form__field {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr max-content;
  background: var(--color-white);
  border-radius: 8px;
}
.search-form__input {
  border: none;
  background: transparent;
  color: var(--color-black-primary);
  font-size: 18px;
  font-weight: 400;
  padding: 0 14px;
  width: 100%;
  border-radius: 8px 0 0 8px;
  min-height: 56px;
}
.search-form__input:focus { outline: none; }
.search-form__input::placeholder { color: #9ca3af; }
.search-form__clipboard { display: flex; }
.search-form__clipboard button {
  align-items: center;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 0 8px 8px 0;
  color: var(--color-black-primary);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 400;
  gap: 4px;
  line-height: 24px;
  padding: 18px 12px;
  transition: background .25s ease, border-color .25s ease;
}
.search-form__clipboard button:hover { background: #e5e7eb; border-color: #d1d5db; }
.search-form__clipboard button[hidden] { display: none; }
[data-theme="dark"] .search-form__clipboard button {
  background: #2a2a30;
  border-color: hsla(0,0%,100%,.08);
  color: #fff;
}
.search-form__button {
  background: var(--btn-gradient);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  padding: 16px 20px;
  transition: filter .3s ease, box-shadow .3s ease, transform .2s ease;
  width: 100%;
}
.search-form__button:hover {
  box-shadow: 0 6px 18px rgba(37,99,235,.35);
  filter: saturate(1.25) brightness(1.05);
  transform: translateY(-1px);
}
.search-form__button:disabled { opacity: .65; cursor: not-allowed; transform: none; }
@media (min-width: 769px) {
  .search-form {
    grid-template-columns: 1fr max-content;
    align-items: stretch;
  }
  .search-form__button {
    background: var(--btn-gradient-home);
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(139,47,255,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    padding: 0 34px;
    width: auto;
    min-width: 160px;
  }
}
.status-banner, .form-note {
  max-width: 672px;
  margin: 14px auto 0;
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}
.status-banner {
  background: rgba(0,0,0,.18);
  border-radius: 8px;
  padding: 12px 14px;
}
.status { max-width: 672px; margin: 10px auto 0; color: #fff; text-align: center; font-size: 15px; }
.status[hidden] { display: none; }
.form-note a { color: #fff; text-decoration: underline; }

/* Shared section titles */
.section-text, .section-instruction, .section-benefits, .section-features,
.instruction-redirect, .section-faq, .legal-wrap, .section-compare {
  margin: 32px auto;
  max-width: 1024px;
  padding: 0 20px;
}
@media (min-width: 769px) {
  .section-text, .section-instruction, .section-benefits, .section-features,
  .instruction-redirect, .section-faq, .legal-wrap, .section-compare {
    margin: 64px auto;
  }
}
.section-instruction__title, .section-benefits__title, .section-features__title,
.instruction-redirect__title, .section-faq__title, .section-text__content h2,
.legal-wrap h1, .section-compare h1, .section-compare h2 {
  color: var(--color-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
  margin: 0 auto 18px;
  text-align: center;
}
@media (min-width: 769px) {
  .section-instruction__title, .section-benefits__title, .section-features__title,
  .instruction-redirect__title, .section-faq__title, .section-text__content h2,
  .legal-wrap h1, .section-compare h1, .section-compare h2 {
    font-size: 32px;
    line-height: 100%;
  }
}
.section-instruction__title, .section-benefits__title, .section-features__title,
.instruction-redirect__title, .section-faq__title {
  border-bottom: 2px solid transparent;
  border-image: var(--title-underline) 1;
  padding-bottom: 20px;
}
.section-instruction__text, .section-benefits__text, .section-features__text, .section-faq__text {
  color: var(--color-black-second);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  margin: 20px auto;
  text-align: center;
}

/* Intro text card */
.section-text__card {
  display: grid;
  gap: 24px;
  align-items: center;
}
@media (min-width: 769px) {
  .section-text__card { grid-template-columns: 328px 1fr; }
}
.section-text__visual {
  border-radius: 16px;
  overflow: hidden;
  background: #eef2ff;
}
.section-text__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}
[data-theme="dark"] .section-text__visual { background: #1a1a1d; }
.section-text__content p {
  color: var(--color-black-second);
  font-size: 18px;
  line-height: 28px;
}
.section-text__content h2 { text-align: left; border: 0; padding: 0; margin: 0 0 12px; }

/* How-to steps */
.section-instruction__list {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
}
.section-instruction__list li {
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 18px;
  box-shadow: 0 8px 24px -14px rgba(16,24,40,.16);
  overflow: hidden;
  background: var(--color-white);
  transition: transform .28s ease, box-shadow .28s ease;
}
.section-instruction__list li:hover {
  border-color: rgba(37,99,235,.3);
  box-shadow: 0 22px 42px -20px rgba(16,24,40,.3);
  transform: translateY(-6px);
}
@media (min-width: 769px) {
  .section-instruction__list {
    grid-template-columns: repeat(3, 1fr);
    padding-top: 26px;
    gap: 20px;
  }
}
.section-instruction__list picture,
.section-instruction__list img {
  display: block;
  width: 100%;
  height: auto;
  background: #eef2ff;
  aspect-ratio: 312 / 198;
  object-fit: cover;
}
[data-theme="dark"] .section-instruction__list img { background: #1a1a1d; }
.step-visual {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eff6ff, #faf5ff);
  color: #2563eb;
  font-size: 42px;
  font-weight: 800;
}
[data-theme="dark"] .step-visual { background: #1a1a1d; color: #93c5fd; }
.section-instruction__list h3 {
  margin: 0 0 8px;
  font-size: 18px;
  padding: 16px 20px 0;
}
.section-instruction__list p {
  margin: 0;
  padding: 0 20px 22px;
  color: var(--color-black-second);
  font-size: 16px;
  line-height: 26px;
}

/* Address / tip section */
.instruction-redirect > div {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin: 20px auto;
  align-items: center;
}
@media (min-width: 769px) {
  .instruction-redirect > div {
    grid-template-columns: minmax(200px, 396px) minmax(400px, 1fr);
    margin: 40px auto 20px;
  }
}
.tip-visual {
  border-radius: 16px;
  overflow: hidden;
  background: #eef2ff;
}
.tip-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}
[data-theme="dark"] .tip-visual { background: #1a1a1d; }
.instruction-redirect ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.instruction-redirect ul p {
  color: var(--color-black-second);
  font-size: 18px;
  line-height: 28px;
  margin: 0;
}

/* Benefits */
.section-benefits__list {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
}
@media (min-width: 769px) {
  .section-benefits__list { grid-template-columns: repeat(4, 1fr); }
}
.section-benefits__list li { text-align: left; }
.section-benefits__list h3 { margin: 12px 0 8px; font-size: 18px; }
.section-benefits__list p { margin: 0; color: var(--color-black-second); font-size: 16px; line-height: 26px; }
.benefit-icon { width: 42px; height: 42px; color: var(--color-black-primary); }

/* Features */
.section-features__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
}
.section-features__list li {
  display: grid;
  gap: 20px;
  align-items: center;
}
@media (min-width: 769px) {
  .section-features__list li { grid-template-columns: 1fr 328px; }
  .section-features__list li:nth-child(even) { grid-template-columns: 328px 1fr; }
  .section-features__list li:nth-child(even) .feature-copy { order: 2; }
}
.section-features__list h3 { margin: 0 0 8px; font-size: 22px; }
.section-features__list p { margin: 0 0 10px; color: var(--color-black-second); font-size: 18px; line-height: 28px; }
.section-features__link { font-weight: 600; text-decoration: none; }
.section-features__link:hover { text-decoration: underline; }
.feature-visual {
  border-radius: 16px;
  overflow: hidden;
  background: #eef2ff;
}
.feature-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
}
[data-theme="dark"] .feature-visual { background: #1a1a1d; }

/* FAQ */
.section-faq ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 10px 0 0;
}
.section-faq ul h3 {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  margin: 0 auto 10px;
}
.section-faq ul p, .section-faq ul li > div {
  color: var(--color-black-second);
  font-size: 18px;
  line-height: 28px;
  margin: 10px auto 0;
}
.section-faq ol { padding-left: 20px; }

/* Legal / long form */
.legal-wrap h1 { margin-bottom: 16px; }
.legal-wrap h2 {
  color: var(--color-primary);
  font-size: 22px;
  margin: 28px 0 12px;
  text-align: left;
}
.legal-wrap p, .legal-wrap li { color: var(--color-black-second); font-size: 18px; line-height: 28px; }
.legal-wrap ul { padding-left: 20px; }
.compare-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 769px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-card {
  border: 1px solid rgba(17,24,39,.1);
  border-radius: 16px;
  padding: 20px;
}
.compare-card h3 { margin-top: 0; }

/* Footer */
.footer {
  margin-top: 40px;
  padding: 32px 20px 40px;
  border-top: 1px solid #e5e7eb;
}
[data-theme="dark"] .footer { border-top-color: hsla(0,0%,100%,.08); }
.footer__links {
  display: grid;
  gap: 24px;
  max-width: 1024px;
  margin: 0 auto;
}
@media (min-width: 769px) {
  .footer__links { grid-template-columns: 1fr 1fr; }
}
.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.footer__list a {
  color: var(--color-black-primary);
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
}
.footer__list a:hover { opacity: .5; }
.disclaimer-strip {
  max-width: 1024px;
  margin: 0 auto 18px;
  color: var(--color-black-second);
  font-size: 14px;
  line-height: 22px;
}
.footer__copyright {
  max-width: 1024px;
  margin: 24px auto 0;
  color: var(--color-black-second);
  font-size: 14px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.footer__mark { width: 22px; height: 22px; flex-shrink: 0; }
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--btn-gradient);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37,99,235,.3);
}
.back-to-top:hover { filter: brightness(1.08); }

[dir="rtl"] .header__lang-menu { right: auto; left: 0; }
[dir="rtl"] .category__element:after { right: auto; left: 0; }

/* Rating widget: hidden until a lookup result is shown. Original styles, not copied. */
.search-result { width: 100%; }
.rating-box {
  max-width: 672px;
  margin: 16px auto 0;
  padding: 14px 16px 16px;
  background: rgba(0,0,0,.16);
  border-radius: 12px;
  color: #fff;
  text-align: center;
}
.rating-box[hidden] { display: none; }
.rating-box__prompt {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.rating-box__stars {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.rating-box__star {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: hsla(0,0%,100%,.45);
  line-height: 0;
}
.rating-box__star svg { display: block; fill: currentColor; }
.rating-box__star:hover,
.rating-box__star.is-hot,
.rating-box__star.is-on { color: #fbbf24; }
.rating-box__star:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.rating-box.is-locked .rating-box__star { cursor: default; }
.rating-box__meta {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: hsla(0,0%,100%,.92);
}
.rating-box__meta[hidden] { display: none; }
[data-theme="dark"] .rating-box { background: hsla(0,0%,100%,.08); }
